@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --sa-font: 'Poppins', system-ui, sans-serif;
  --sa-bg-page: #f0f4f8;
  --sa-bg-white: #ffffff;
  --sa-bg-subtle: #f7f9fc;
  --sa-bg-alt: #e8edf4;
  --sa-border: #d5dde8;
  --sa-border-light: #ebf0f6;
  --sa-text-85: rgba(0, 0, 0, 0.85);
  --sa-text-70: rgba(0, 0, 0, 0.7);
  --sa-text-60: rgba(0, 0, 0, 0.6);
  --sa-info: #216aae;
  --sa-danger: #dc2626;
  --sa-danger-bg: #fef2f2;
  --sa-btn-primary: linear-gradient(135deg, #10314f 0%, #216aae 100%);
  --sa-btn-primary-hover: linear-gradient(135deg, #0d2942 0%, #1b5c98 100%);
  --sa-btn-light-bg: #f7f9fc;
  --sa-btn-light-hover: #eef3f8;
  --sa-grad-blue: linear-gradient(89deg, #3a86ce 2%, #2c6192 100%);
  --sa-grad-navy: linear-gradient(89deg, #216aae 2%, #10314f 100%);
  --sa-grad-h1: linear-gradient(90deg, #10314f 3%, #216aae 100%);
  --sa-shadow-xs: 0 1px 3px rgba(1, 22, 42, 0.06);
  --sa-shadow-md: 0 4px 20px rgba(1, 22, 42, 0.1);
  --sa-r-md: 10px;
  --sa-r-lg: 14px;
  --sa-r-pill: 999px;
  --sa-t: 0.18s ease;
}

html,
body {
  height: 100%;
}

body.intranet-shell {
  margin: 0;
  background: var(--sa-bg-page);
  color: var(--sa-text-70);
  font-family: var(--sa-font);
}

.intranet-shell,
.intranet-shell * {
  font-family: var(--sa-font);
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--sa-bg-page);
}

.left-nav {
  width: 260px;
  flex-shrink: 0;
  background: var(--sa-bg-white);
  border-right: 1px solid var(--sa-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.2s ease, width 0.2s ease;
  z-index: 40;
}

body.sidebar-collapsed .left-nav {
  width: 0;
  border-right: 0;
  overflow: hidden;
}

.ln-logo {
  padding: 0 16px;
  height: 64px;
  border-bottom: 1px solid var(--sa-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.ln-logo-media img {
  display: block;
  max-height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.ln-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sa-grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.ln-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--sa-text-85);
}

.ln-brand-sub {
  font-size: 10px;
  color: var(--sa-text-60);
}

.ln-scroll {
  padding: 12px 0;
}

.ln-section {
  padding: 10px 16px 4px;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--sa-text-60);
}

.ln-item,
.ln-child,
.th-user-dd-item {
  text-decoration: none;
}

.ln-item,
.ln-item-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--sa-text-70);
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  transition: background var(--sa-t), color var(--sa-t);
  text-align: left;
  cursor: pointer;
}

.ln-item:hover,
.ln-item-button:hover,
.ln-child:hover {
  background: var(--sa-bg-subtle);
  color: #216aae;
}

.ln-item:hover .ln-ic,
.ln-item-button:hover .ln-ic,
.ln-child:hover .ln-cdot,
.ln-item:hover span,
.ln-item-button:hover span,
.ln-child:hover span {
  color: #216aae;
  opacity: 1;
}

.ln-active {
  background: #eef4ff;
  color: #216aae;
  font-weight: 600;
  border-left-color: var(--sa-info);
}

.ln-ic {
  width: 16px;
  font-size: 13px;
  opacity: 0.6;
  flex-shrink: 0;
}

.ln-active .ln-ic,
.ln-active span,
.ln-item.ln-active,
.ln-item-button.ln-active {
  color: #216aae;
  opacity: 1;
}

.ln-chevron {
  margin-left: auto;
  font-size: 10px;
  color: var(--sa-text-60);
  transition: transform 0.2s ease;
}

.ln-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease, opacity 0.22s ease;
  opacity: 0;
  will-change: max-height;
}

.ln-children.open {
  max-height: var(--ln-height, 0px);
  opacity: 1;
}

.ln-child {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px 4px 34px;
  font-size: 12px;
  color: var(--sa-text-60);
  border-left: 2px solid transparent;
  transition: background var(--sa-t), color var(--sa-t);
}

.ln-child-active {
  color: #216aae;
  font-weight: 600;
  background: #f0f5ff;
  border-left-color: var(--sa-info);
}

.ln-child-active .ln-cdot,
.ln-child-active span {
  color: #216aae;
  opacity: 1;
}

.ln-cdot {
  width: 14px;
  min-width: 14px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.6;
  flex-shrink: 0;
}

.ln-footer {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--sa-border-light);
  font-size: 10px;
  color: var(--sa-text-60);
}

.right-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sa-bg-white);
  border-bottom: 1px solid var(--sa-border);
  flex-shrink: 0;
  box-sizing: border-box;
}

.th-page-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-text-85);
}

.th-spacer {
  flex: 1;
}

.th-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header .navbar-nav {
  align-items: center;
}

.top-header .nav-link.dropdown-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--sa-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sa-text-60);
}

.top-header .nav-link.dropdown-toggle:hover {
  background: var(--sa-bg-subtle);
  color: var(--sa-text-85);
}

.top-header .nav-link.dropdown-toggle::after {
  display: none;
}

.top-header .nav-link .badge {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border-radius: 999px;
}

.top-header .notification-menu {
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-r-lg);
  box-shadow: var(--sa-shadow-md);
  padding: 8px 0;
}

.top-header .notification-menu .dropdown-item {
  padding: 8px 14px;
  font-size: 12px;
}

.intranet-shell .form-control,
.intranet-shell .form-select,
.intranet-shell select.form-control {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border-color: var(--sa-border);
  background: #f8fafc;
  box-shadow: none;
}

.intranet-shell textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.intranet-shell .form-control:focus,
.intranet-shell .form-select:focus,
.intranet-shell select.form-control:focus {
  border-color: var(--sa-info);
  box-shadow: 0 0 0 3px rgba(33, 106, 174, 0.1);
  background: #fff;
}

.intranet-shell .iti {
  width: 100%;
}

.intranet-shell .iti--separate-dial-code .form-control {
  padding-left: 106px !important;
}

.intranet-shell .iti__selected-country {
  height: 40px;
  border-right: 1px solid var(--sa-border);
  border-radius: 11px 0 0 11px;
  background: #f8fafc;
}

.sa-form-wrap {
  max-width: 980px;
}

.sa-form-card {
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.sa-form-body {
  padding: 22px;
}

.sa-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sa-form-full {
  grid-column: 1 / -1;
}

.sa-form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.sa-form-help {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.sa-form-error-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.sa-form-error-text {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
}

.sa-radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #334155;
}

.sa-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.sa-plan-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.sa-plan-pill.is-full {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.cf-wrap {
  max-width: 960px;
}

.cf-card {
  background: #fff;
  border: 1px solid var(--sa-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.cf-body {
  padding: 22px;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cf-full {
  grid-column: 1 / -1;
}

.cf-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  padding: 11px 13px;
  min-height: 46px;
  outline: none;
  transition: 0.15s border-color, 0.15s box-shadow, 0.15s background;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.cf-textarea {
  min-height: 110px;
  resize: vertical;
}

.cf-help {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.cf-error-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.cf-phone-wrap {
  position: relative;
}

.cf-phone-wrap .iti {
  display: block;
  width: 100%;
}

.cf-phone-wrap .iti input {
  width: 100%;
}

.cf-phone-wrap .iti--separate-dial-code .cf-input {
  padding-left: 110px !important;
}

.cf-phone-wrap .iti__country-container {
  top: 1px;
  left: 1px;
  bottom: 1px;
}

.cf-phone-wrap .iti__selected-country {
  height: 44px;
  padding: 0 10px 0 12px;
  border-right: 1px solid #dbe2ea;
  border-radius: 11px 0 0 11px;
  background: #f8fafc;
}

.cf-phone-wrap .iti__selected-dial-code,
.cf-phone-wrap .iti__flag-container {
  font-size: 13px;
}

.cf-radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #334155;
}

.cf-radio.is-invalid {
  border-color: #ef4444;
}

.cf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #f8fafc;
}

.cf-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-toggle-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.cf-toggle-note {
  color: #64748b;
  font-size: 12px;
}

.cf-toggle .form-check {
  margin: 0;
  min-height: auto;
}

.cf-note {
  margin-top: 10px;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
}

.cf-input.is-invalid,
.cf-select.is-invalid,
.cf-textarea.is-invalid,
.cf-phone-wrap .cf-input.is-invalid {
  border-color: #ef4444;
  background: #fff;
}

.cf-error-text {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
}

.cf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cf-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-danger-form {
  margin: 0;
}

@media (max-width: 768px) {
  .sa-form-body {
    padding: 18px;
  }

  .sa-form-grid {
    grid-template-columns: 1fr;
  }

  .cf-body {
    padding: 18px;
  }

  .cf-grid {
    grid-template-columns: 1fr;
  }

  .cf-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
}

.th-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: var(--sa-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sa-text-60);
  transition: background var(--sa-t), color var(--sa-t);
}

.th-icon-btn:hover {
  background: var(--sa-bg-subtle);
  color: var(--sa-text-85);
}

.th-user-menu {
  position: relative;
}

.th-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: var(--sa-r-pill);
  border: 1px solid var(--sa-border);
  background: var(--sa-bg-white);
  position: relative;
  transition: background var(--sa-t), box-shadow var(--sa-t);
  font: inherit;
}

.th-user-btn:hover {
  background: var(--sa-bg-subtle);
  box-shadow: var(--sa-shadow-xs);
}

.th-user-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sa-grad-navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.th-user-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-text-85);
}

.th-user-caret {
  font-size: 9px;
  color: var(--sa-text-60);
  transition: transform 0.18s ease;
}

.th-user-btn.open .th-user-caret {
  transform: rotate(180deg);
}

.th-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--sa-bg-white);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-r-lg);
  box-shadow: var(--sa-shadow-md);
  z-index: 300;
  display: none;
  overflow: hidden;
}

.th-user-dropdown.open {
  display: block;
}

.th-user-dd-info {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--sa-border-light);
}

.th-user-dd-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sa-text-85);
}

.th-user-dd-role {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sa-info);
}

.th-user-dd-email {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--sa-text-60);
}

.th-user-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--sa-text-70);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sa-border-light);
  text-align: left;
}

.th-user-dd-item:last-child {
  border-bottom: 0;
}

.th-user-dd-item:hover {
  background: var(--sa-bg-subtle);
  color: var(--sa-text-85);
}

.th-user-dd-item.danger,
.th-user-dd-item.danger i {
  color: var(--sa-danger);
}

.th-user-dd-item.danger:hover {
  background: var(--sa-danger-bg);
}

.sidebarCollapse {
  width: 38px;
  height: 38px;
  border-radius: var(--sa-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sa-text-60);
  text-decoration: none;
}

.sidebarCollapse:hover {
  background: var(--sa-bg-subtle);
  color: var(--sa-text-85);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--sa-bg-page);
}

.content-inner {
  padding: 22px 24px 40px;
}

.main_wrapper {
  width: 100%;
}

.intranet-shell .main_wrapper h1,
.intranet-shell .main_wrapper h2,
.intranet-shell .main_wrapper h3,
.intranet-shell .main_wrapper h4,
.intranet-shell .main_wrapper h5,
.intranet-shell .main_wrapper h6 {
  color: #10314f;
  letter-spacing: -0.02em;
}

.intranet-shell .main_wrapper h1 {
  font-size: 2.15rem;
  font-weight: 700;
  /* line-height: 1.1; */
}

.intranet-shell .main_wrapper h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
}

.intranet-shell .main_wrapper h3 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.intranet-shell .main_wrapper h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.intranet-shell .main_wrapper p {
  color: rgba(0, 0, 0, 0.66);
}

.page-header {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title-block h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.intranet-shell .main_wrapper .page-header .page-title-block h1,
.intranet-shell .main_wrapper .page-header .page-title-block .h1-grad {
  font-size: 22px !important;
  line-height: 1.15;
}

.h1-grad {
  display: inline-block;
  background: var(--sa-grad-h1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--sa-text-60);
}

.intranet-shell .nav.nav-tabs {
  gap: 8px;
  padding: 0;
  border-bottom: 0;
  align-items: center;
  flex-wrap: wrap;
}

.intranet-shell .nav.nav-tabs .nav-item {
  margin-bottom: 0;
}

.intranet-shell .nav.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background var(--sa-t), color var(--sa-t), border-color var(--sa-t), box-shadow var(--sa-t), transform var(--sa-t);
}

.intranet-shell .nav.nav-tabs .nav-link:hover,
.intranet-shell .nav.nav-tabs .nav-link:focus {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #10314f;
}

.intranet-shell .nav.nav-tabs .nav-link.active,
.intranet-shell .nav.nav-tabs .nav-item.show .nav-link {
  border-color: transparent;
  background: linear-gradient(135deg, #10314f 0%, #216aae 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 49, 79, 0.18);
}

.intranet-shell .nav.nav-tabs .nav-link.active *,
.intranet-shell .nav.nav-tabs .nav-item.show .nav-link * {
  color: #ffffff !important;
}

.intranet-shell .nav.nav-tabs .badge,
.intranet-shell .nav.nav-tabs .nav-link .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18) !important;
  color: inherit !important;
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
}

.intranet-shell .nav.nav-tabs .nav-link:not(.active) .badge {
  background: #e8eef6 !important;
  color: #4b5563 !important;
}

.intranet-shell .nav.nav-tabs .nav-link.active .badge,
.intranet-shell .nav.nav-tabs .nav-item.show .nav-link .badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.filter_icons ul {
  margin: 0;
  padding: 0;
}

.filter_icons a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--sa-text-70);
  transition: background var(--sa-t), color var(--sa-t), box-shadow var(--sa-t);
}

.filter_icons a:hover {
  background: #eef2f7;
  color: #2066a7;
  box-shadow: var(--sa-shadow-xs);
}

.filter_icons a i {
  font-size: 1rem !important;
  color: #2066a7 !important;
  line-height: 1;
}

.filter_icons a.page-action-btn.is-add {
  background: #2066a7;
  border-color: #2066a7;
}

.filter_icons a.page-action-btn.is-add:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.filter_icons a.page-action-btn.is-add i {
  color: #ffffff !important;
  font-size: 0.95rem !important;
}

.intranet-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--sa-font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  transition: background var(--sa-t), color var(--sa-t), border-color var(--sa-t), box-shadow var(--sa-t), transform var(--sa-t);
}

.intranet-shell .btn:focus {
  box-shadow: 0 0 0 3px rgba(33, 106, 174, 0.16);
}

.intranet-shell .btn-primary {
  border: 0;
  background: var(--sa-btn-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 106, 174, 0.2);
}

.intranet-shell .btn-primary:hover,
.intranet-shell .btn-primary:focus,
.intranet-shell .btn-primary:active,
.intranet-shell .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--sa-btn-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(16, 49, 79, 0.24);
}

.intranet-shell .btn-light,
.intranet-shell .btn-secondary {
  border: 1px solid var(--sa-border);
  background: var(--sa-btn-light-bg);
  color: #10314f;
  box-shadow: none;
}

.intranet-shell .btn-light:hover,
.intranet-shell .btn-light:focus,
.intranet-shell .btn-light:active,
.intranet-shell .btn-secondary:hover,
.intranet-shell .btn-secondary:focus,
.intranet-shell .btn-secondary:active {
  background: var(--sa-btn-light-hover);
  border-color: #c4d1df;
  color: #10314f;
}

.intranet-shell .btn-outline-danger {
  border: 1px solid #f3b1b1;
  background: #fff5f5;
  color: var(--sa-danger);
  box-shadow: none;
}

.intranet-shell .btn-outline-danger:hover,
.intranet-shell .btn-outline-danger:focus,
.intranet-shell .btn-outline-danger:active {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.intranet-shell .btn-sm {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 12px;
}

.intranet-shell .btn:disabled,
.intranet-shell .btn.disabled {
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.intranet-shell .container-fluid,
.intranet-shell .row,
.intranet-shell .col-lg-12 {
  --bs-gutter-x: 0;
}

.intranet-shell .container-fluid {
  padding: 0;
}

.footer {
  margin-top: 24px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 22, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.profile-hero-card,
.profile-form-card,
.password-panel,
.password-form-card {
  background: #fff;
  border: 1px solid #d5dde8;
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(1, 22, 42, 0.08);
  overflow: hidden;
}

.profile-hero-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(58, 134, 206, 0.22), transparent 34%),
    linear-gradient(160deg, #10314f 0%, #1b5588 46%, #f4f8fc 46%, #ffffff 100%);
  color: #10314f;
  min-height: 100%;
}

.profile-hero-inner {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
}

.profile-hero-card .profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 35px rgba(16, 49, 79, 0.2);
  background: #fff;
}

.profile-hero-card .profile-name {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 14px rgba(16, 49, 79, 0.25);
}

.profile-hero-card .profile-subtitle {
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  max-width: 240px;
}

.profile-identity {
  margin-top: 4px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 37, 62, 0.84) 0%, rgba(16, 49, 79, 0.66) 100%);
  box-shadow: 0 14px 30px rgba(5, 24, 42, 0.12);
}

.profile-identity .profile-name + .profile-subtitle {
  padding-top: 2px;
}

.profile-stat-grid {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.profile-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-stat-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 49, 79, 0.6);
}

.profile-stat-value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #10314f;
  word-break: break-word;
}

.profile-form-head,
.password-form-head {
  padding: 28px 28px 0;
}

.profile-form-title,
.password-form-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #10314f;
}

.profile-form-copy,
.password-form-copy {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.profile-form-body,
.password-form-body {
  padding: 24px 28px 28px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-field label,
.password-field label {
  display: block;
  margin-bottom: 8px;
  color: #10314f;
  font-size: 13px;
  font-weight: 600;
}

.profile-form-card .form-control,
.password-form-card .form-control {
  min-height: 48px;
  border: 1px solid #d5dde8;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none;
  padding: 12px 14px;
}

.profile-form-card .form-control:focus,
.password-form-card .form-control:focus {
  border-color: #3a86ce;
  box-shadow: 0 0 0 4px rgba(58, 134, 206, 0.12);
}

.profile-form-card input[type="tel"].form-control,
.profile-form-card input[type="text"].form-control,
.profile-form-card input[type="email"].form-control {
  line-height: 1.4;
}

.profile-form-card input[type="file"].form-control {
  padding: 0;
  overflow: hidden;
}

.profile-form-card input[type="file"].form-control::file-selector-button {
  height: 46px;
  margin-right: 14px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #d5dde8;
  background: #f7f9fc;
  color: #10314f;
  font-weight: 600;
  cursor: pointer;
}

.profile-form-card input[type="file"].form-control::-webkit-file-upload-button {
  height: 46px;
  margin-right: 14px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #d5dde8;
  background: #f7f9fc;
  color: #10314f;
  font-weight: 600;
  cursor: pointer;
}

.profile-upload-note {
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.56);
  font-size: 12px;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.profile-submit-btn,
.password-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #10314f 0%, #216aae 100%);
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(33, 106, 174, 0.22);
}

.profile-submit-btn:hover,
.password-submit-btn:hover {
  color: #fff;
}

.password-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 520px);
  gap: 24px;
  align-items: start;
}

.password-panel {
  background:
    radial-gradient(circle at top left, rgba(33, 106, 174, 0.28), transparent 35%),
    linear-gradient(180deg, #10314f 0%, #15466f 100%);
  color: #fff;
}

.password-panel-inner {
  padding: 28px;
}

.password-panel-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 26px;
}

.password-panel-title {
  margin: 18px 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.password-panel-copy {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.password-tips {
  display: grid;
  gap: 12px;
}

.password-tip {
  display: flex;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.password-tip i {
  font-size: 16px;
  margin-top: 2px;
}

.password-tip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.password-tip span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12.5px;
}

.password-field {
  margin-bottom: 18px;
}

.password-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: #fff;
}

.password-input-wrap:focus-within {
  border-color: #3a86ce;
  box-shadow: 0 0 0 4px rgba(58, 134, 206, 0.12);
}

.password-input-wrap input.form-control {
  border: 0;
  border-radius: 0 !important;
  min-height: 50px;
  box-shadow: none !important;
}

.password-toggle-btn {
  width: 54px;
  border: 0;
  border-left: 1px solid #d5dde8;
  background: #f7f9fc;
  color: #10314f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-strength {
  margin-top: 10px;
}

.password-strength .progress {
  height: 7px;
  border-radius: 999px;
  background: #e8edf4;
}

.password-strength small {
  display: block;
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.56);
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .left-nav {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--sa-shadow-md);
  }

  body.sidebar-open .left-nav {
    transform: translateX(0);
  }

  body.sidebar-collapsed .left-nav {
    width: 260px;
    border-right: 1px solid var(--sa-border);
  }

  .top-header {
    padding: 0 16px;
  }

  .content-inner {
    padding: 18px 16px 32px;
  }

  .th-user-name {
    display: none;
  }

  .profile-shell,
  .password-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-wish-action {
  color: #f6efef;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
