/* ============================================================
   SALAM SAAS — Bootstrap 5 RTL Design System
   Full rebuild. Zero legacy. Persian-first.
   ============================================================ */

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir/Vazir-FD.woff2") format("woff2"),
       url("../fonts/Vazir/Vazir-FD.woff") format("woff"),
       url("../fonts/Vazir/Vazir-FD.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── 1. Design Tokens ── */
:root {
  --s-font:        Vazir, "IRANSans", Tahoma, Arial, sans-serif;

  /* Palette */
  --s-blue:        #0369a1;
  --s-blue-light:  #0ea5e9;
  --s-blue-dim:    #e0f2fe;
  --s-ink:         #0c1a2e;
  --s-body:        #1e3a5f;
  --s-muted:       #64748b;
  --s-bg:          #f0f4f8;
  --s-surface:     #ffffff;
  --s-border:      #cbd5e1;
  --s-border-lt:   #e2e8f0;
  --s-green:       #15803d;
  --s-green-dim:   #dcfce7;
  --s-red:         #b91c1c;
  --s-red-dim:     #fee2e2;
  --s-amber:       #b45309;
  --s-amber-dim:   #fef3c7;
  --s-cyan:        #0e7490;
  --s-cyan-dim:    #cffafe;

  /* Sidebar */
  --s-nav-bg:      #0c1a2e;
  --s-nav-text:    #94a3b8;
  --s-nav-active:  #0ea5e9;
  --s-nav-hover:   rgba(14,165,233,.12);
  --s-nav-active-bg: rgba(14,165,233,.15);
  --s-nav-width:   280px;

  /* Radius */
  --s-r:           10px;
  --s-r-sm:        7px;
  --s-r-lg:        16px;

  /* Shadows */
  --s-shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --s-shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 8px 32px rgba(0,0,0,.08);

  /* Bootstrap overrides */
  --bs-body-font-family:    var(--s-font);
  --bs-body-bg:             var(--s-bg);
  --bs-body-color:          var(--s-body);
  --bs-primary:             var(--s-blue-light);
  --bs-primary-rgb:         14,165,233;
  --bs-border-color:        var(--s-border);
  --bs-border-radius:       var(--s-r);
  --bs-border-radius-sm:    var(--s-r-sm);
  --bs-border-radius-lg:    var(--s-r-lg);
  --bs-card-border-radius:  var(--s-r);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  direction: rtl;
  background: var(--s-bg);
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--s-font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--s-body);
  background: var(--s-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--s-blue-light); text-decoration: none; }
a:hover { color: var(--s-blue); }

h1,h2,h3,h4,h5,h6 {
  color: var(--s-ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

/* ── 3. Layout Shell ── */
#salam-wrapper {
  display: flex;
  min-height: 100vh;
}

#salam-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Nav is a toggleable overlay on all screen sizes — no margin/padding needed */

/* ── 4. Sidebar / Nav ── */
/* Pure Bootstrap offcanvas — no forced visibility override.
   Bootstrap handles all open/close via transform. We only style. */
#salam-nav {
  width: var(--s-nav-width) !important;
  background: var(--s-nav-bg) !important;
  border: 0 !important;
}

.salam-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.salam-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.salam-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--s-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.salam-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.salam-brand-text small {
  display: block;
  font-size: 11px;
  color: var(--s-nav-text);
}

.salam-nav-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.salam-nav-body::-webkit-scrollbar { width: 4px; }
.salam-nav-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* Profile card in nav */
.salam-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--s-r);
}

.salam-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}

.salam-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.salam-profile-role {
  font-size: 11px;
  color: var(--s-nav-text);
}

/* Menu search */
.salam-menu-search {
  position: relative;
  margin-bottom: 10px;
}

.salam-menu-search i {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: #475569;
  font-size: 12px;
  pointer-events: none;
}

.salam-menu-search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 12px;
  font-family: var(--s-font);
  font-size: 13px;
  color: #f1f5f9;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--s-r-sm);
  outline: 0;
  transition: border-color .15s;
}

.salam-menu-search input::placeholder { color: #475569; }
.salam-menu-search input:focus { border-color: var(--s-nav-active); }

/* Nav menu */
.salam-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.salam-menu-item { margin: 1px 0; }

.salam-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--s-r-sm);
  color: var(--s-nav-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, color .13s;
  text-decoration: none;
  min-height: 42px;
}

.salam-menu-link:hover {
  background: var(--s-nav-hover);
  color: #f1f5f9;
}

.salam-menu-item.active > .salam-menu-link {
  background: var(--s-nav-active-bg);
  color: var(--s-nav-active);
  font-weight: 700;
}

.salam-menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  font-size: 13px;
  color: inherit;
}

.salam-menu-item.active > .salam-menu-link .salam-menu-icon {
  background: rgba(14,165,233,.2);
  color: var(--s-nav-active);
}

.salam-menu-label { flex: 1; }

.salam-menu-arrow {
  font-size: 11px;
  color: #334155;
  transition: transform .2s;
}

.salam-menu-item.open > .salam-menu-link .salam-menu-arrow {
  transform: rotate(-90deg);
}

/* Submenu */
.salam-submenu {
  list-style: none;
  margin: 2px 8px 4px 0;
  padding: 2px 10px 2px 0;
  border-right: 2px solid rgba(255,255,255,.07);
  display: none;
}

.salam-submenu.show { display: block; }

.salam-submenu .salam-menu-link {
  font-size: 13px;
  min-height: 38px;
  padding: 7px 8px;
}

.salam-submenu .salam-menu-icon {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

/* ── 5. Topbar ── */
#salam-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 20px;
  background: var(--s-surface);
  border-bottom: 1px solid var(--s-border-lt);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}


.salam-topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.salam-menu-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s-bg);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-sm);
  color: var(--s-body);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .13s, border-color .13s;
}

.salam-menu-toggle:hover {
  background: var(--s-blue-dim);
  border-color: var(--s-blue-light);
  color: var(--s-blue);
}

.salam-page-title { min-width: 0; }

.salam-page-title strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--s-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.salam-page-title small {
  display: block;
  font-size: 12px;
  color: var(--s-muted);
}

.salam-topbar-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.salam-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--s-r-sm);
  font-family: var(--s-font);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-muted);
  cursor: pointer;
  transition: background .13s, color .13s;
  text-decoration: none;
}

.salam-topbar-btn:hover { background: var(--s-bg); color: var(--s-body); }

.salam-topbar-btn.logout {
  color: var(--s-red);
  border-color: transparent;
  background: transparent;
}

.salam-topbar-btn.logout:hover { background: var(--s-red-dim); }

/* ── 6. Page Content Area ── */
#salam-content {
  flex: 1;
  padding: 10px 20px 40px;
}

#salam-content > :first-child {
  margin-top: 0 !important;
}

.salam-filter-empty-source {
  display: none !important;
}

html:not(.salam-filters-ready) #salam-content [data-salam-filter],
html:not(.salam-filters-ready) #salam-content .finance-filter-toolbar {
  visibility: hidden;
  min-height: 64px;
}

/* Page heading */
.salam-page-heading {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--s-border-lt);
}

.salam-page-heading h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.2vw + 13px, 26px);
  font-weight: 800;
  color: var(--s-ink);
}

.salam-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--s-muted);
}

.salam-breadcrumb li + li::before {
  content: '/';
  margin-left: 4px;
  color: var(--s-border);
}

.salam-breadcrumb a { color: var(--s-muted); }
.salam-breadcrumb a:hover { color: var(--s-blue-light); }

/* ── 7. Cards ── */
.card {
  background: var(--s-surface) !important;
  border: 1px solid var(--s-border-lt) !important;
  border-radius: var(--s-r) !important;
  box-shadow: var(--s-shadow) !important;
  margin-bottom: 18px;
  overflow: hidden;
}

.card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  background: var(--s-surface) !important;
  border-bottom: 1px solid var(--s-border-lt) !important;
}

.card-header h5,
.card-header .card-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--s-ink) !important;
}

.card-body { padding: 18px !important; }

/* Stat cards */
.salam-stat-card {
  background: var(--s-surface);
  border: 1px solid var(--s-border-lt);
  border-radius: var(--s-r);
  padding: 18px;
  box-shadow: var(--s-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.salam-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.salam-stat-icon.blue   { background: var(--s-blue-dim);  color: var(--s-blue); }
.salam-stat-icon.green  { background: var(--s-green-dim); color: var(--s-green); }
.salam-stat-icon.red    { background: var(--s-red-dim);   color: var(--s-red); }
.salam-stat-icon.amber  { background: var(--s-amber-dim); color: var(--s-amber); }
.salam-stat-icon.cyan   { background: var(--s-cyan-dim);  color: var(--s-cyan); }

.salam-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--s-ink);
  line-height: 1.2;
}

.salam-stat-label { font-size: 12px; color: var(--s-muted); font-weight: 600; }

/* ── 8. Forms ── */
.form-label,
label {
  font-size: 13px;
  font-weight: 700;
  color: var(--s-body) !important;
  margin-bottom: 5px;
  display: inline-block;
}

.form-control,
.form-select,
select.form-control {
  font-family: var(--s-font);
  font-size: 13.5px;
  color: var(--s-ink);
  background: var(--s-surface);
  border: 1px solid var(--s-border) !important;
  border-radius: var(--s-r-sm) !important;
  box-shadow: none !important;
  min-height: 40px;
  padding: 8px 12px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--s-blue-light) !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15) !important;
  outline: 0;
}

textarea.form-control { min-height: 100px; }
.form-group { margin-bottom: 14px; }
.mb-3 { margin-bottom: 14px !important; }

/* ── 9. Buttons ── */
.btn {
  font-family: var(--s-font);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--s-r-sm) !important;
  min-height: 36px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-primary {
  background: var(--s-blue-light) !important;
  border-color: var(--s-blue-light) !important;
  color: #fff !important;
}
.btn-primary:hover { background: var(--s-blue) !important; border-color: var(--s-blue) !important; }

.btn-success  { background: var(--s-green) !important; border-color: var(--s-green) !important; color: #fff !important; }
.btn-danger   { background: var(--s-red) !important;   border-color: var(--s-red) !important;   color: #fff !important; }
.btn-warning  { background: var(--s-amber) !important; border-color: var(--s-amber) !important; color: #fff !important; }
.btn-info     { background: var(--s-cyan) !important;  border-color: var(--s-cyan) !important;  color: #fff !important; }

.btn-secondary,
.btn-default,
.btn-white,
.btn-outline-secondary {
  background: var(--s-surface) !important;
  border: 1px solid var(--s-border) !important;
  color: var(--s-body) !important;
}
.btn-default:hover, .btn-white:hover { background: var(--s-bg) !important; }

.btn-xs, .btn-sm { font-size: 12px !important; min-height: 28px !important; padding: 4px 10px !important; }
.btn-lg { font-size: 15px !important; min-height: 44px !important; padding: 10px 20px !important; }
.btn.block, .btn.full-width, .w-100 { width: 100%; }

.finance-category-main-table .detailbtn,
.finance-category-main-table .finance-open-predict {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1.4;
}

.finance-category-main-table .detailbtn i,
.finance-category-main-table .finance-open-predict i {
  font-size: 12px;
}

.finance-category-main-table .finance-predict-locked {
  color: #78350f !important;
  background: #fbbf24 !important;
  border-color: #f59e0b !important;
}

.finance-category-main-table .finance-predict-editable {
  color: #fff !important;
  background: var(--s-green) !important;
  border-color: var(--s-green) !important;
}

.finance-filter-toolbar {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.45fr) minmax(150px, .85fr) minmax(140px, .75fr) minmax(210px, 1.15fr) minmax(120px, .6fr);
  gap: 12px;
  align-items: end;
  margin: 0 !important;
}

.finance-filter-toolbar .finance-filter-col {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
}

.finance-filter-toolbar label {
  margin-bottom: 6px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}

.finance-filter-toolbar .btn-block,
.finance-filter-toolbar .btn {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 1199.98px) {
  .finance-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-filter-col-school,
  .finance-filter-col-submit {
    grid-column: 1 / -1;
  }
}

.finance-cat-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-family: var(--s-font);
  font-size: 12px;
  font-weight: 900;
}

.finance-cat-name {
  display: inline-block;
  max-width: 260px;
  color: var(--s-ink);
  font-weight: 900;
  line-height: 1.7;
}

.finance-predict-cell {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.finance-predict-cell > strong {
  color: var(--s-ink);
  font-weight: 950;
  white-space: nowrap;
}

.finance-table-amount {
  color: var(--s-ink);
  font-weight: 950;
  white-space: nowrap;
}

.finance-table-amount-muted {
  color: #64748b;
}

.finance-predict-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.4;
  white-space: nowrap;
}

.finance-predict-change-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.finance-predict-change-warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.finance-predict-change-danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.finance-predict-change-alert {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: #ef4444;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, .22);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.job-add-form-inner {
  display: grid;
  gap: 14px;
  padding: 4px 2px;
}

.job-add-form-inner .form-group {
  margin-bottom: 0;
}

.job-add-label-main,
.salary-personel-search-label {
  display: block;
  margin-bottom: 7px;
  color: var(--s-ink);
  font-size: 12px;
  font-weight: 950;
}

.job-add-form-inner select,
.job-add-form-inner .form-select,
.job-add-form-inner .form-control {
  min-height: 44px !important;
  width: 100% !important;
  color: var(--s-ink);
  background-color: #fff !important;
  border: 1px solid var(--s-border) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  font-family: var(--s-font) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.job-add-sticky-job,
.job-add-personel-bundle {
  padding: 13px;
  background: #f8fafc;
  border: 1px solid var(--s-border-lt);
  border-radius: 18px;
}

.salary-personel-search-shell {
  margin-bottom: 10px;
}

.salary-personel-search-box {
  position: relative;
}

.salary-personel-search-box i {
  position: absolute;
  top: 50%;
  inset-inline-start: 13px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--s-blue);
}

.salary-personel-search-box .form-control {
  padding-inline-start: 42px !important;
}

.salary-personel-search-status {
  margin-top: 7px;
  line-height: 1.8;
  font-weight: 800;
}

.salary-personel-native-select {
  display: block !important;
  appearance: auto !important;
}

.salary-rial-amount-input {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--s-font), ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 850 !important;
  letter-spacing: .02em;
}

.salary-add-job-modal-body .bootstrap-select {
  width: 100% !important;
}

.job-add-submit-btn {
  min-height: 44px;
  border-radius: 13px !important;
  font-weight: 950 !important;
}

.salary-assignment-edit-btn {
  min-height: 26px !important;
  margin-top: 6px;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.salary-assignment-modal .modal-body {
  background: #f8fafc;
}

.salary-assignment-edit-status .alert {
  margin-bottom: 12px;
}

.salary-pay-modal .modal-dialog {
  max-height: calc(100vh - 1.5rem);
}

.salary-pay-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.salary-pay-modal .modal-header,
.salary-pay-modal .modal-footer {
  flex: 0 0 auto;
}

.salary-pay-modal .modal-header {
  align-items: flex-start;
}

.salary-pay-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.salary-pay-modal-title .modal-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-radius: 14px;
  font-size: 18px;
}

.salary-pay-modal-title h6 {
  margin: 6px 0 0;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.8;
}

.salary-pay-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.salary-pay-modal .salary-contract-modal {
  max-height: none !important;
  overflow: visible !important;
}

.salarylist-hero,
.salarylist-filter-card,
.salarylist-table-card,
.salarylist-incomplete-card {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.salarylist-hero .card-body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.salarylist-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.salarylist-hero-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(14, 165, 233, .18);
  font-size: 22px;
}

.salarylist-hero h4 {
  margin: 0 0 5px;
  color: var(--s-ink);
  font-size: 18px;
  font-weight: 950;
}

.salarylist-hero p {
  margin: 0;
  color: var(--s-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
}

.salarylist-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  flex: 1;
}

.salarylist-hero-stats > div {
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid var(--s-border-lt);
  border-radius: 16px;
}

.salarylist-hero-stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--s-muted);
  font-size: 11px;
  font-weight: 900;
}

.salarylist-hero-stats strong {
  display: block;
  color: var(--s-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.7;
}

.salarylist-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.salarylist-filter-actions .btn {
  min-height: 40px;
  border-radius: 12px !important;
  font-weight: 900 !important;
}

.salarylist-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--s-border-lt);
  border-radius: 18px;
}

.salarylist-table-wrap > .form-control {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--s-border-lt) !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
}

.salarylist-main-table,
.salarylist-summary-table {
  min-width: 980px;
}

.salarylist-main-table thead th,
.salarylist-summary-table thead th {
  font-size: 11.5px;
  font-weight: 950;
}

.salarylist-num {
  color: var(--s-blue);
  font-weight: 950 !important;
  white-space: nowrap;
}

.salarylist-col-sheba {
  direction: ltr;
  text-align: left !important;
  font-weight: 850;
}

.salarylist-incomplete-card .card-header {
  cursor: pointer;
}

.salarylist-incomplete-card .badge {
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
}

.salarylist-quick-person-form {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

@media (max-width: 991.98px) {
  .salarylist-hero .card-body {
    display: grid;
  }

  .salarylist-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .salarylist-hero-stats {
    grid-template-columns: 1fr;
  }

  .salarylist-filter-actions .btn {
    width: 100%;
  }

  .salarylist-table-wrap {
    border: 0;
    overflow: visible;
  }

  .salarylist-main-table,
  .salarylist-summary-table {
    min-width: 0;
  }
}

/* ── 10. Tables ── */
.table {
  font-size: 13px;
  color: var(--s-body);
  width: 100%;
  margin-bottom: 0;
  border-color: var(--s-border-lt);
}

.table > thead > tr > th,
.table thead th {
  background: #f8fafc !important;
  color: var(--s-muted) !important;
  font-size: 12px;
  font-weight: 800;
  padding: 11px 14px;
  border-color: var(--s-border) !important;
  text-align: right;
  white-space: nowrap;
}

.table > tbody > tr > td,
.table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  border-color: var(--s-border-lt) !important;
  text-align: right;
}

.table-hover > tbody > tr:hover > * { background: rgba(14,165,233,.04) !important; }

.table-responsive {
  border: 1px solid var(--s-border-lt);
  border-radius: var(--s-r);
  overflow: hidden;
  overflow-x: auto;
  box-shadow: var(--s-shadow);
}

/* D3 charts */
.salam-d3-chart {
  width: 100%;
  min-height: 260px;
  direction: ltr;
  position: relative;
}

.salam-d3-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.salam-d3-axis path,
.salam-d3-axis line {
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
  shape-rendering: geometricPrecision;
}

.salam-d3-axis-domain,
.salam-d3-axis-tick {
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
  opacity: 1 !important;
}

.salam-d3-chart .domain,
.salam-d3-chart .salam-d3-axis .tick line {
  display: initial !important;
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
  opacity: 1;
}

.salam-d3-axis text {
  fill: #8a97aa !important;
  font-family: var(--s-font);
  font-size: 11px;
  font-weight: 700;
}

.salam-d3-grid line {
  stroke: #f1f5f9 !important;
  stroke-width: .6px;
  stroke-dasharray: 2 8;
}

.salam-d3-grid path {
  display: none;
}

.finance-d3-line-chart .salam-d3-axis path {
  stroke: #d7e0ec !important;
}

.finance-d3-line-chart .salam-d3-axis line,
.finance-detail-d3-chart .salam-d3-axis line {
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
}

.finance-d3-line-chart .salam-d3-axis text,
.finance-detail-d3-chart .salam-d3-axis text {
  fill: #94a3b8 !important;
}

.finance-detail-d3-chart .salam-d3-axis path {
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
}

.finance-detail-basic-bar .salam-d3-grid {
  display: none !important;
}

.finance-detail-basic-bar .salam-d3-axis path,
.finance-detail-basic-bar .salam-d3-axis line {
  display: initial !important;
  stroke: #d1d5db !important;
  stroke-width: 1.2px !important;
  opacity: 1;
}

.finance-detail-basic-bar .salam-d3-axis text {
  fill: #94a3b8 !important;
  font-size: 10px;
  font-weight: 700;
}

.finance-detail-basic-bar .salam-d3-bar {
  filter: none;
  rx: 0;
}

.finance-detail-basic-bar .salam-d3-group rect:nth-child(1) {
  fill: #69b3a2 !important;
}

.finance-detail-basic-bar .salam-d3-group rect:nth-child(2) {
  fill: #4077b7 !important;
}

.salam-d3-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salam-d3-dot {
  stroke: #fff;
  stroke-width: 2;
}

.salam-d3-hover-line {
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.salam-d3-hover-dot {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .18));
}

.salam-d3-tooltip {
  position: absolute;
  z-index: 5;
  width: 240px;
  direction: rtl;
  padding: 10px 12px;
  background: rgba(15, 23, 42, .94);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  font-family: var(--s-font);
  pointer-events: none;
}

.salam-d3-tooltip-follow {
  direction: rtl;
  text-align: right;
  transition: left .06s linear, top .06s linear;
}

.salam-d3-tooltip strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.salam-d3-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}

.salam-d3-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.salam-d3-tooltip-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.salam-d3-tooltip-row b {
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.salam-d3-bar {
  fill: var(--s-blue-light);
  rx: 8;
  filter: drop-shadow(0 5px 8px rgba(14, 165, 233, .12));
}

.salam-d3-bar:hover {
  fill: var(--s-blue);
}

.salam-d3-legend {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 700;
}

.salam-d3-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.salam-d3-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.salam-d3-empty {
  direction: rtl;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s-muted);
  background: #f8fafc;
  border: 1px dashed var(--s-border);
  border-radius: var(--s-r);
}

.salam-d3-gauge-bg {
  fill: none;
  stroke: #e2e8f0;
}

.salam-d3-gauge-fg {
  fill: #0ea5e9;
}

.salam-d3-gauge-over {
  fill: #ef4444;
}

.salam-d3-gauge-overrun .salam-d3-gauge-over {
  animation: salamGaugeBlink var(--gauge-blink-speed, 1s) ease-in-out infinite;
}

.salam-d3-gauge-overrun .salam-d3-gauge-value {
  animation: salamGaugeTextBlink var(--gauge-blink-speed, 1s) ease-in-out infinite;
}

.salam-d3-gauge-overrun-low .salam-d3-gauge-over {
  fill: #f97316;
}

.salam-d3-gauge-overrun-mid .salam-d3-gauge-over {
  fill: #ef4444;
}

.salam-d3-gauge-overrun-high .salam-d3-gauge-over {
  fill: #be123c;
  filter: drop-shadow(0 0 10px rgba(190, 18, 60, .45));
}

@keyframes salamGaugeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .34; }
}

@keyframes salamGaugeTextBlink {
  0%, 100% { fill: var(--s-red); }
  50% { fill: #7f1d1d; }
}

.salam-d3-gauge-value {
  fill: var(--s-ink);
  font-family: var(--s-font);
  font-size: 24px;
  font-weight: 900;
}

.salam-d3-gauge-label {
  fill: var(--s-muted);
  font-family: var(--s-font);
  font-size: 11px;
  font-weight: 700;
}

.finance-gauge-panel {
  padding: 14px !important;
}

.finance-gauge-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--s-r);
  font-size: 12.5px;
  font-weight: 700;
}

.finance-gauge-note i {
  margin-top: 3px;
  color: var(--s-blue);
}

.finance-gauge-grid {
  row-gap: 14px;
}

.finance-gauge-card {
  height: 100%;
  margin-bottom: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
}

.finance-gauge-card-head {
  min-height: 48px;
  padding: 10px 12px !important;
  gap: 8px;
}

.finance-gauge-card-head h5 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55;
  font-weight: 900 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-gauge-ratio-pill {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.finance-gauge-ratio-success { color: var(--s-green); background: var(--s-green-dim); }
.finance-gauge-ratio-warning { color: var(--s-amber); background: var(--s-amber-dim); }
.finance-gauge-ratio-danger { color: var(--s-red); background: var(--s-red-dim); }

.finance-gauge-card-overrun {
  border-color: #fecaca !important;
}

.finance-gauge-card-overrun .finance-gauge-ratio-pill {
  animation: salamGaugePillBlink 1s ease-in-out infinite;
}

@keyframes salamGaugePillBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .34); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .12); }
}

.finance-gauge-card-body {
  padding: 10px 12px 12px !important;
}

.finance-main-gauge-chart {
  min-height: 145px !important;
  margin: -8px 0 2px;
}

.finance-main-gauge-chart svg {
  max-height: 145px;
}

.finance-gauge-metrics {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.finance-gauge-metric {
  display: grid;
  grid-template-columns: minmax(78px, 38%) 1fr;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--s-border-lt);
  border-radius: 10px;
  background: #f8fafc;
}

.finance-gauge-metric span {
  color: var(--s-muted);
  font-size: 11px;
  font-weight: 900;
}

.finance-gauge-metric strong {
  justify-self: end;
  color: var(--s-ink);
  font-size: 11.5px;
  font-weight: 900;
  text-align: left;
  direction: rtl;
}

.finance-gauge-metric.metric-info {
  background: #f8fafc;
}

.finance-gauge-metric.metric-primary {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.finance-gauge-metric.metric-primary strong {
  color: var(--s-blue);
}

.finance-gauge-metric.metric-accent {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.finance-gauge-metric.metric-accent strong {
  color: var(--s-cyan);
}

.finance-gauge-metric.metric-success {
  background: var(--s-green-dim);
  border-color: #bbf7d0;
}

.finance-gauge-metric.metric-success strong {
  color: var(--s-green);
}

.finance-gauge-metric.metric-warning {
  background: var(--s-amber-dim);
  border-color: #fde68a;
}

.finance-gauge-metric.metric-warning strong {
  color: var(--s-amber);
}

.finance-gauge-metric.metric-danger {
  background: var(--s-red-dim);
  border-color: #fecaca;
}

.finance-gauge-metric.metric-danger strong {
  color: var(--s-red);
}

.salam-d3-progress-track {
  direction: rtl;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.salam-d3-progress {
  width: 100%;
  min-width: 120px;
  min-height: 0 !important;
  height: 18px;
  direction: rtl;
}

.table .salam-d3-progress {
  margin: 0;
}

.salam-d3-progress-fill {
  height: 100%;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, var(--s-blue-light), var(--s-green));
  border-radius: inherit;
  font-size: 11px;
  font-weight: 900;
}

.finance-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--s-border-lt);
  border-radius: var(--s-r);
}

.finance-detail-heading-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--s-blue-light);
  border-radius: 12px;
}

.finance-detail-heading h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 900;
}

.finance-detail-heading small {
  color: var(--s-muted);
  font-weight: 700;
}

.finance-detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.finance-detail-transaction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  color: #475569;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.finance-detail-transaction i {
  flex: 0 0 auto;
  margin-top: 5px;
  color: #ea580c;
}

.finance-detail-transaction span {
  flex: 1;
  word-break: break-word;
}

.finance-detail-table-wrap {
  border-radius: 16px;
  box-shadow: none;
}

.finance-detail-table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
}

.finance-detail-table thead th {
  background: linear-gradient(180deg, #f8fafc, #eef5fb) !important;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 900;
}

.finance-detail-table tbody td {
  background: #fff;
  font-weight: 800;
}

.finance-detail-month-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  color: var(--s-blue);
  background: var(--s-blue-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.finance-detail-predict-cell {
  color: var(--s-blue) !important;
}

.finance-detail-expense-cell {
  color: var(--s-green) !important;
}

.finance-detail-row-over td {
  background: #fff7f7 !important;
}

.finance-detail-row-under td {
  background: #f3fff7 !important;
}

.finance-overrun-blink {
  --finance-overrun-bg: #fff7ed;
  --finance-overrun-border: #fed7aa;
  --finance-overrun-glow: rgba(251, 146, 60, .16);
  --finance-overrun-speed: 1.5s;
}

.finance-overrun-low {
  --finance-overrun-bg: #fff7ed;
  --finance-overrun-border: #fdba74;
  --finance-overrun-glow: rgba(251, 146, 60, .16);
  --finance-overrun-speed: 1.7s;
}

.finance-overrun-mid {
  --finance-overrun-bg: #fef2f2;
  --finance-overrun-border: #fca5a5;
  --finance-overrun-glow: rgba(239, 68, 68, .22);
  --finance-overrun-speed: 1.15s;
}

.finance-overrun-high {
  --finance-overrun-bg: #fff1f2;
  --finance-overrun-border: #fb7185;
  --finance-overrun-glow: rgba(190, 18, 60, .30);
  --finance-overrun-speed: .72s;
}

.finance-overrun-blink > td {
  background: var(--finance-overrun-bg) !important;
  animation: financeOverrunRowBlink var(--finance-overrun-speed) ease-in-out infinite;
}

.finance-overrun-blink > td:first-child {
  border-right: 4px solid var(--finance-overrun-border) !important;
}

.finance-overrun-blink .finance-detail-expense-cell,
.finance-overrun-blink .finance-cat-name {
  color: #be123c !important;
}

@keyframes financeOverrunRowBlink {
  0%, 100% {
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 9999px var(--finance-overrun-glow);
  }
}

.finance-budget-report {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.finance-budget-report .card-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.finance-budget-report-hero {
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.finance-budget-report-hero h4 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 950;
}

.finance-budget-report-hero p {
  margin: 0;
  line-height: 2;
  font-size: 13.5px;
  font-weight: 750;
}

.finance-budget-report-danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.finance-budget-report-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.finance-budget-report-info {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.finance-budget-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-budget-report-grid section {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 16px;
}

.finance-budget-report-grid h6 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--s-ink);
  font-size: 13px;
  font-weight: 950;
}

.finance-budget-report-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: finance-report-rank;
}

.finance-budget-report-list li {
  position: relative;
  padding: 9px 40px 9px 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 13px;
  counter-increment: finance-report-rank;
}

.finance-budget-report-list li::before {
  content: counter(finance-report-rank);
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--s-blue);
  background: var(--s-blue-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.finance-budget-report-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--s-ink);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.7;
}

.finance-budget-report-list small {
  display: block;
  margin-bottom: 4px;
  color: var(--s-muted);
  font-size: 11px;
  font-weight: 800;
}

.finance-budget-report-list span,
.finance-budget-report-empty {
  display: block;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
}

.finance-budget-report-conclusion {
  margin-top: 12px;
  padding: 13px 15px;
  color: #334155;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  line-height: 2;
  font-size: 13px;
  font-weight: 750;
}

.finance-budget-report-conclusion p {
  margin: 0 0 7px;
}

@media (max-width: 767.98px) {
  .finance-budget-report-grid {
    grid-template-columns: 1fr;
  }
}

.policy-locks-hero {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.policy-locks-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.policy-locks-hero-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--s-blue-light), var(--s-blue));
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(14, 165, 233, .25);
  font-size: 22px;
}

.policy-locks-hero h4 {
  margin: 0 0 5px;
  color: var(--s-ink);
  font-size: 17px;
  font-weight: 950;
}

.policy-locks-hero p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 13.5px;
  font-weight: 750;
}

.policy-locks-panel {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.policy-locks-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.policy-locks-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.policy-locks-filter-fields .form-group {
  margin-bottom: 0;
}

.policy-locks-filter-fields label {
  margin-bottom: 5px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 850;
}

.policy-locks-filter-fields .form-control {
  min-height: 40px;
  border-radius: 12px;
}

.policy-locks-form hr {
  border-color: var(--s-border-lt);
  opacity: 1;
}

.pl-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--s-ink);
  font-size: 14px;
  font-weight: 950;
}

.pl-section-hint {
  margin: 0 0 12px;
  color: var(--s-muted);
  line-height: 1.9;
  font-size: 12.5px;
  font-weight: 750;
}

.policy-lock-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-lock-row {
  margin: 0;
  padding: 0;
}

.policy-lock-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  color: var(--s-body);
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}

.policy-lock-row label:hover {
  border-color: rgba(14, 165, 233, .32);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.policy-lock-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--s-blue);
}

.policy-lock-name {
  flex: 1;
  min-width: 0;
  color: var(--s-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.7;
}

.policy-lock-badge {
  flex: 0 0 auto;
  direction: ltr;
  padding: 3px 8px;
  color: var(--s-muted);
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.policy-lock-select-all-row label {
  color: #075985;
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
  border-color: #bae6fd;
}

.policy-lock-select-all-row .policy-lock-name {
  color: #075985;
  font-weight: 950;
}

@media (max-width: 767.98px) {
  .policy-locks-hero-main,
  .policy-locks-toolbar,
  .policy-locks-filter-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .policy-locks-hero-icon {
    width: 48px;
    height: 48px;
  }

  .policy-locks-toolbar .form-group,
  .policy-locks-toolbar .btn,
  .policy-locks-filter-fields .bootstrap-select {
    width: 100% !important;
  }

  .policy-lock-row label {
    min-height: 54px;
    align-items: flex-start;
  }
}

.fastregister-hero {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.fastregister-hero .card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fastregister-hero-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--s-green), #0ea5e9);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(34, 197, 94, .22);
  font-size: 22px;
}

.fastregister-hero h4 {
  margin: 0 0 5px;
  color: var(--s-ink);
  font-size: 18px;
  font-weight: 950;
}

.fastregister-hero p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 13.5px;
  font-weight: 750;
}

.fastregister-card {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.fastregister-card .card-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.fastregister-note {
  margin-bottom: 16px;
}

.fastregister-required-grid,
.fastregister-optional-grid {
  row-gap: 4px;
}

.fastregister-required-grid > .col-md-12 {
  flex: 0 0 25%;
  max-width: 25%;
}

.fastregister-required-grid > .col-md-12:nth-last-child(1) {
  flex: 0 0 100%;
  max-width: 100%;
}

.fastregister-required-grid .form-group,
.fastregister-optional-grid .form-group {
  height: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .04);
}

.fastregister-required-grid label,
.fastregister-optional-grid label {
  margin-bottom: 7px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}

.fastregister-required-grid .form-control,
.fastregister-optional-grid .form-control {
  min-height: 42px;
  border-radius: 12px !important;
}

.fastregister-required-grid .btn[data-bs-toggle="collapse"],
.fastregister-required-grid .btn[data-toggle="collapse"] {
  min-height: 44px;
  color: var(--s-blue);
  background: var(--s-blue-dim) !important;
  border-color: #bfdbfe !important;
  font-weight: 900;
}

.fastregister-optional-shell {
  margin: 4px 0 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--s-border-lt);
  border-radius: 18px;
}

.fastregister-optional-grid > .col-md-12 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.fastregister-optional-grid > .col-md-12:has(hr),
.fastregister-optional-grid > .fastregister-section-title {
  flex: 0 0 100%;
  max-width: 100%;
}

.fastregister-optional-grid h4 {
  margin: 4px 0 6px;
  color: var(--s-ink);
  font-size: 14px;
  font-weight: 950;
}

.fastregister-optional-grid hr {
  margin: 12px 0 8px;
  border-color: var(--s-border-lt);
  opacity: 1;
}

.fastregister-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.fastregister-actions .btn {
  min-width: 190px;
  border-radius: 14px;
  font-weight: 950;
}

.expenselist-hero {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.expenselist-hero .card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: center;
}

.expenselist-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.expenselist-hero-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #0ea5e9);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(249, 115, 22, .20);
  font-size: 22px;
}

.expenselist-hero h4 {
  margin: 0 0 5px;
  color: var(--s-ink);
  font-size: 18px;
  font-weight: 950;
}

.expenselist-hero p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 13.5px;
  font-weight: 750;
}

.expenselist-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.expenselist-summary div {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--s-border-lt);
  border-radius: 14px;
}

.expenselist-summary strong {
  display: block;
  color: var(--s-ink);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expenselist-summary span {
  display: block;
  margin-top: 3px;
  color: var(--s-muted);
  font-size: 11px;
  font-weight: 850;
}

.expenselist-filter-card,
.expenselist-table-card {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.expenselist-filter-row {
  align-items: flex-end;
}

.expenselist-filter-row.finance-filter-toolbar {
  grid-template-columns: minmax(240px, 1.45fr) minmax(150px, .85fr) minmax(140px, .75fr) minmax(140px, .75fr) minmax(130px, .65fr);
}

.tuitionstudent-filter-row.finance-filter-toolbar {
  grid-template-columns: minmax(260px, 1.55fr) minmax(160px, .9fr) minmax(130px, .65fr);
}

.salaryceiling-filter-row.finance-filter-toolbar {
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(150px, .85fr) minmax(150px, .85fr) minmax(150px, .85fr) minmax(130px, .7fr);
}

.expenselist-filter-row label {
  margin-bottom: 6px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}

.expenselist-filter-action {
  display: grid;
  gap: 6px;
}

.expenselist-filter-action .btn,
.expenselist-filter-action .badge {
  min-height: 42px;
  width: 100%;
  justify-content: center;
}

.expenselist-filter-action .badge {
  min-height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
}

.expenselist-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.expenselist-table-head strong,
.expenselist-table-head small {
  display: block;
}

.expenselist-table-head strong {
  color: var(--s-ink);
  font-size: 13.5px;
  font-weight: 950;
}

.expenselist-table-head small {
  margin-top: 3px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 800;
}

.expenselist-table-head .form-control {
  width: min(100%, 320px);
  min-height: 40px;
  border-radius: 12px;
}

.expenselist-season {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.expenselist-season-summer { color: #0369a1; background: #e0f2fe; }
.expenselist-season-autumn { color: #9a3412; background: #ffedd5; }
.expenselist-season-winter { color: #4338ca; background: #e0e7ff; }
.expenselist-season-spring { color: #166534; background: #dcfce7; }

.expenselist-note-row td {
  background: #fff7ed !important;
}

.expenselist-note-icon {
  margin-left: 5px;
  color: #f97316;
}

.expenselist-sharh {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expenselist-num {
  color: var(--s-blue);
  font-weight: 950 !important;
  white-space: nowrap;
}

.finance-indicators-toolbar-shell,
.finance-indicators-settings-card {
  border: 1px solid var(--s-border-lt) !important;
  box-shadow: var(--s-shadow) !important;
}

.finance-indicators-toolbar-shell {
  margin-bottom: 14px;
  padding: 12px !important;
  background: #fff;
  border-radius: var(--s-r-lg);
}

.finance-indicators-filter-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.15fr) minmax(180px, .85fr) minmax(210px, .9fr) minmax(170px, auto);
  align-items: end;
  gap: 12px;
  margin: 0 !important;
}

.finance-indicators-filter-row .finance-filter-col {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
}

.finance-indicators-filter-row label {
  margin-bottom: 6px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}

.finance-indicators-filter-row .finance-filter-col-submit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.finance-indicators-filter-row .finance-filter-col-submit .btn {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px !important;
  font-weight: 900;
}

.finance-indicators-settings-card .card-body {
  background:
    radial-gradient(circle at 96% 4%, rgba(14, 165, 233, .08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fafc 78%);
}

.finance-indicator-section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  box-shadow: none;
}

.finance-indicator-section-intro span {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 4px 10px;
  color: #0369a1;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.finance-indicator-section-intro strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.finance-indicator-section-intro p {
  max-width: 540px;
  margin: 0;
  color: #075985;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.9;
}

.finance-indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 14px;
  margin: 12px 0 18px;
}

.finance-indicator-card {
  position: relative;
  overflow: hidden;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.finance-indicator-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, #0ea5e9, #6366f1);
}

.finance-indicator-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #10b981, #0ea5e9);
}

.finance-indicator-card:nth-child(3n)::before {
  background: linear-gradient(180deg, #f59e0b, #ef4444);
}

.finance-indicator-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.finance-indicator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 12px;
}

.finance-indicator-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.finance-indicator-card-title i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 12px;
}

.finance-indicator-card-head span {
  color: var(--s-ink);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.6;
}

.finance-indicator-card-head small {
  flex: 0 0 auto;
  direction: ltr;
  padding: 5px 9px;
  color: var(--s-muted);
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.finance-indicator-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-indicator-metric {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
}

.finance-indicator-metric-index {
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-color: #bfdbfe;
}

.finance-indicator-metric-inflation {
  background: linear-gradient(180deg, #ecfdf5, #fff);
  border-color: #bbf7d0;
}

.finance-indicator-card-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.finance-indicator-card-fields label i {
  color: #2563eb;
}

.finance-indicator-metric-inflation label i {
  color: #059669;
}

.finance-indicator-metric .input-group {
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
}

.finance-indicator-metric-inflation .input-group {
  border-color: #bbf7d0;
}

.finance-indicator-metric .form-control {
  height: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  background: #fff !important;
  color: #0f172a;
  font-size: 15px !important;
  font-weight: 950;
  box-shadow: none !important;
}

.finance-indicator-card .input-group-text {
  min-width: 40px;
  justify-content: center;
  color: #2563eb;
  background: #eff6ff;
  border: 0;
  border-inline-start: 1px solid #dbeafe;
  font-weight: 950;
}

.finance-indicator-metric-inflation .input-group-text {
  color: #059669;
  background: #ecfdf5;
  border-inline-start-color: #bbf7d0;
}

@media (max-width: 1199.98px) {
  .finance-indicator-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .finance-indicators-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.finance-indicator-matrix-note {
  margin: 14px 0 10px;
  padding: 11px 13px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  line-height: 1.9;
  font-size: 12.5px;
  font-weight: 800;
}

.finance-indicator-matrix-wrap {
  border-radius: 18px;
  box-shadow: none;
}

.finance-indicator-matrix-table {
  border-collapse: separate !important;
  border-spacing: 0;
  font-size: 12px;
}

.finance-indicator-matrix-table thead th {
  min-width: 108px;
  color: #475569 !important;
  background: linear-gradient(180deg, #f8fafc, #eef5fb) !important;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.finance-indicator-matrix-table thead th:first-child {
  min-width: 190px;
}

.finance-indicator-main-name {
  color: var(--s-ink);
  font-weight: 900 !important;
  line-height: 1.7;
}

.finance-indicator-percent-input {
  min-width: 78px;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 11px !important;
  font-weight: 900;
}

.finance-indicator-row-sum,
.finance-indicator-total-row td {
  color: var(--s-blue);
  background: #f0f9ff !important;
  font-weight: 950 !important;
}

@media (max-width: 991.98px) {
  .fastregister-required-grid > .col-md-12,
  .fastregister-optional-grid > .col-md-12 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .finance-indicators-hero .card-body {
    align-items: flex-start;
  }

  .finance-indicators-filter-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .finance-indicators-filter-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .finance-indicator-grid {
    grid-template-columns: 1fr;
  }

  .finance-indicator-section-intro {
    display: block;
  }

  .finance-indicator-section-intro p {
    margin-top: 10px;
  }

  .finance-indicator-card-fields {
    grid-template-columns: 1fr;
  }

  .finance-indicator-matrix-wrap {
    border: 0 !important;
    overflow: visible !important;
  }

  .finance-indicator-matrix-table {
    display: block !important;
    background: transparent !important;
  }

  .finance-indicator-matrix-table thead {
    display: none !important;
  }

  .finance-indicator-matrix-table tbody {
    display: grid !important;
    gap: 12px !important;
  }

  .finance-indicator-matrix-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid var(--s-border-lt);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  }

  .finance-indicator-matrix-table tbody td {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px;
    padding: 6px 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: right !important;
  }

  .finance-indicator-matrix-table tbody td::before {
    content: attr(data-label);
    color: var(--s-muted);
    font-size: 11px;
    font-weight: 950;
  }

  .expenselist-hero .card-body,
  .expenselist-summary,
  .expenselist-table-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .expenselist-hero-main {
    align-items: flex-start;
  }

  .expenselist-filter-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .expenselist-filter-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .expenselist-table-head .form-control {
    width: 100%;
  }

  .expenselist-table-wrap {
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .expenselist-table {
    display: block !important;
    background: transparent !important;
  }

  .expenselist-table thead,
  .expenselist-table tfoot {
    display: none !important;
  }

  .expenselist-table tbody {
    display: grid !important;
    gap: 12px !important;
  }

  .expenselist-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid var(--s-border-lt) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
  }

  .expenselist-table tbody td {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 6px 0 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: normal !important;
    text-align: right !important;
  }

  .expenselist-table tbody td::before {
    content: attr(data-label);
    color: var(--s-muted);
    font-size: 11px;
    font-weight: 950;
  }

  .expenselist-sharh {
    max-width: 100%;
    white-space: normal;
  }

  .fastregister-hero .card-body {
    align-items: flex-start;
  }

  .fastregister-required-grid > .col-md-12,
  .fastregister-optional-grid > .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fastregister-optional-shell {
    padding: 10px;
  }

  .fastregister-actions,
  .fastregister-actions .btn {
    width: 100%;
  }
}

/* ── 11. Badges & Labels ── */
.badge, .label {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.label-primary, .badge-primary, .text-bg-primary   { background: var(--s-blue-dim) !important;  color: var(--s-blue) !important; }
.label-success, .badge-success, .text-bg-success   { background: var(--s-green-dim) !important; color: var(--s-green) !important; }
.label-danger,  .badge-danger,  .text-bg-danger    { background: var(--s-red-dim) !important;   color: var(--s-red) !important; }
.label-warning, .badge-warning, .text-bg-warning   { background: var(--s-amber-dim) !important; color: var(--s-amber) !important; }
.label-info,    .badge-info,    .text-bg-info      { background: var(--s-cyan-dim) !important;  color: var(--s-cyan) !important; }
.label-default, .badge-secondary                   { background: var(--s-border-lt) !important; color: var(--s-muted) !important; }

/* ── 12. Alerts ── */
.alert {
  border-radius: var(--s-r) !important;
  border: 0 !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
}
.alert-success  { background: var(--s-green-dim) !important; color: var(--s-green) !important; }
.alert-danger   { background: var(--s-red-dim) !important;   color: var(--s-red) !important; }
.alert-warning  { background: var(--s-amber-dim) !important; color: var(--s-amber) !important; }
.alert-info     { background: var(--s-cyan-dim) !important;  color: var(--s-cyan) !important; }

.alert-dismissible {
  padding-left: 44px !important;
  padding-right: 16px !important;
}

.alert-dismissible .btn-close {
  left: 12px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  opacity: .65;
}

.close {
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--s-muted);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
}

.close:hover {
  background: rgba(239, 68, 68, .10);
  color: var(--s-red);
}

/* ── 13. Tabs ── */
.nav-tabs {
  border-bottom: 1px solid var(--s-border) !important;
  gap: 2px;
}

.nav-tabs .nav-link {
  font-family: var(--s-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--s-muted);
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 10px 16px;
  transition: color .13s, border-color .13s;
  background: transparent !important;
}

.nav-tabs .nav-link:hover { color: var(--s-body); border-bottom-color: var(--s-border) !important; }
.nav-tabs .nav-link.active { color: var(--s-blue-light) !important; border-bottom-color: var(--s-blue-light) !important; background: transparent !important; }

.tab-content {
  padding: 18px !important;
  background: var(--s-surface) !important;
  border: 1px solid var(--s-border) !important;
  border-top: 0 !important;
  border-radius: 0 0 var(--s-r) var(--s-r) !important;
}

/* ── 14. Modals ── */
.modal-content {
  border: 0 !important;
  border-radius: var(--s-r-lg) !important;
  box-shadow: var(--s-shadow-md) !important;
  font-family: var(--s-font);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--s-border-lt);
}

.modal-title { font-size: 16px !important; font-weight: 800 !important; color: var(--s-ink) !important; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--s-border-lt); gap: 8px; }

#modalFinancePredict .modal-dialog {
  max-height: calc(100vh - 1.5rem);
}

#modalFinancePredict .modal-content,
#modalFinancePredict #form-finance-predict-modal {
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
}

#modalFinancePredict .finance-modal-scroll-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modalFinancePredict .modal-header,
#modalFinancePredict .modal-footer {
  flex: 0 0 auto;
}

/* ── 15. Pagination ── */
.pagination { gap: 3px; flex-wrap: wrap; }
.page-link {
  font-family: var(--s-font);
  font-size: 13px;
  font-weight: 700;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--s-border) !important;
  border-radius: var(--s-r-sm) !important;
  color: var(--s-muted);
  background: var(--s-surface);
  padding: 4px 10px;
}
.page-link:hover { background: var(--s-bg); color: var(--s-body); }
.page-item.active .page-link { background: var(--s-blue-light) !important; border-color: var(--s-blue-light) !important; color: #fff !important; }
.page-item.disabled .page-link { opacity: .4; }

.tuitionstudent-table-card .dataTables_wrapper {
  direction: rtl;
}

.tuitionstudent-table-card .dataTables_wrapper > .row:last-child,
.tuitionstudent-table-card .dataTables_wrapper .dataTables_info,
.tuitionstudent-table-card .dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tuitionstudent-table-card .dataTables_wrapper > .row:last-child {
  margin: 14px 0 0 !important;
  padding: 12px;
  border: 1px solid var(--s-border-lt);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 250, 252, .92), rgba(255, 255, 255, .98));
}

.tuitionstudent-table-card .dataTables_info {
  color: var(--s-muted) !important;
  font-size: 12px;
  font-weight: 800;
  padding-top: 0 !important;
}

.tuitionstudent-table-card .dataTables_paginate {
  justify-content: flex-end;
  margin-right: auto;
  padding-top: 0 !important;
}

.tuitionstudent-table-card .dataTables_paginate .pagination {
  margin: 0 !important;
  gap: 6px;
  justify-content: flex-end;
}

.tuitionstudent-table-card .dataTables_paginate .paginate_button,
.tuitionstudent-table-card .dataTables_paginate .pagination > li > a,
.tuitionstudent-table-card .dataTables_paginate .pagination > li > span {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 11px !important;
  border: 1px solid var(--s-border) !important;
  border-radius: 12px !important;
  background: var(--s-surface) !important;
  color: var(--s-muted) !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.tuitionstudent-table-card .dataTables_paginate .paginate_button:hover,
.tuitionstudent-table-card .dataTables_paginate .pagination > li > a:hover {
  border-color: rgba(14, 165, 233, .35) !important;
  background: rgba(14, 165, 233, .08) !important;
  color: var(--s-blue) !important;
}

.tuitionstudent-table-card .dataTables_paginate .paginate_button.current,
.tuitionstudent-table-card .dataTables_paginate .pagination > .active > a,
.tuitionstudent-table-card .dataTables_paginate .pagination > .active > span {
  border-color: var(--s-blue) !important;
  background: var(--s-blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(14, 165, 233, .24);
}

.tuitionstudent-table-card .dataTables_paginate .paginate_button.disabled,
.tuitionstudent-table-card .dataTables_paginate .pagination > .disabled > a,
.tuitionstudent-table-card .dataTables_paginate .pagination > .disabled > span {
  cursor: not-allowed !important;
  opacity: .45;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .tuitionstudent-table-card .dataTables_wrapper > .row:last-child {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tuitionstudent-table-card .dataTables_info,
  .tuitionstudent-table-card .dataTables_paginate,
  .tuitionstudent-table-card .dataTables_paginate .pagination {
    justify-content: center;
    margin-right: 0;
  }
}

/* ── 16. Footer ── */
#salam-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--s-border-lt);
  background: var(--s-surface);
  font-size: 12px;
  color: var(--s-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 17. Widget / Stat boxes (old style) ── */
.widget {
  border-radius: var(--s-r);
  padding: 16px;
  color: #fff;
  margin-bottom: 14px;
}
.widget h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 0; }
.widget span { font-size: 12px; opacity: .85; }
.navy-bg   { background: var(--s-blue); }
.lazur-bg  { background: var(--s-cyan); }
.red-bg    { background: var(--s-red); }
.green-bg  { background: var(--s-green); }
.yellow-bg { background: var(--s-amber); }

/* ── 18. Utility ── */
.text-navy  { color: var(--s-blue) !important; }
.text-muted { color: var(--s-muted) !important; }
.text-xs    { font-size: 11px; }
.font-bold  { font-weight: 700; }
.m-t        { margin-top: 14px; }
.m-b        { margin-bottom: 14px; }
.m-r-xs     { margin-right: 4px; }
.m-l-xs     { margin-left: 4px; }
.m-t-sm     { margin-top: 8px; }
.m-t-md     { margin-top: 16px; }
.m-b-md     { margin-bottom: 16px; }
.float-e-margins .btn { margin: 2px; }
.caret { display: none; }

/* ── 19. Legacy compat — ibox/panel mapped to card ── */
.ibox, .panel, .well {
  background: var(--s-surface) !important;
  border: 1px solid var(--s-border-lt) !important;
  border-radius: var(--s-r) !important;
  box-shadow: var(--s-shadow) !important;
  margin-bottom: 18px;
  overflow: hidden;
}

.ibox-title, .panel-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 18px !important;
  background: var(--s-surface) !important;
  border-bottom: 1px solid var(--s-border-lt) !important;
}

.ibox-title h5, .panel-heading h5, .panel-title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--s-ink) !important;
}

.ibox-content, .panel-body { padding: 18px !important; }

.ibox-tools a { color: var(--s-muted); font-size: 13px; margin-right: 8px; }

/* ── 20. Filter Drawer — identical dark style to nav ── */
#salam-filters {
  width: 360px !important;
  max-width: 92vw;
  background: var(--s-nav-bg) !important;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  color: var(--s-nav-text);
}

/* Head — mirrors .salam-nav-head */
.salam-fnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.salam-fnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.salam-fnav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--s-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.salam-fnav-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.salam-fnav-text small {
  display: block;
  font-size: 11px;
  color: var(--s-nav-text);
}

/* Body */
.salam-fnav-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 14px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.salam-fnav-body::-webkit-scrollbar { width: 4px; }
.salam-fnav-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* Collapsible filter sections — same interaction pattern as menu */
.salam-fnav-section {
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.salam-fnav-section-toggle {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--s-nav-text);
  background: transparent;
  border: 0;
  border-radius: var(--s-r-sm);
  font-family: var(--s-font);
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: background .13s, color .13s;
}

.salam-fnav-section-toggle:hover,
.salam-fnav-section-toggle[aria-expanded="true"] {
  color: #f1f5f9;
  background: var(--s-nav-hover);
}

.salam-fnav-section-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.salam-fnav-section-toggle span i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--s-r-sm);
  color: var(--s-nav-active);
  background: rgba(14,165,233,.13);
  flex-shrink: 0;
}

.salam-fnav-section-arrow {
  color: #475569;
  transition: transform .16s ease, color .16s ease;
}

.salam-fnav-section-toggle[aria-expanded="true"] .salam-fnav-section-arrow {
  color: var(--s-nav-active);
  transform: rotate(-90deg);
}

.salam-fnav-section-body {
  padding: 12px;
}

.salam-fnav-body .row,
.salam-fnav-body .finance-filter-toolbar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 0 !important;
}

.salam-fnav-body [class*="col-"],
.salam-fnav-body .finance-filter-col {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.salam-fnav-body .form-group,
.salam-fnav-body .mb-3 {
  margin: 0 !important;
}

.salam-fnav-body .control-label,
.salam-fnav-body label,
.salam-fnav-body .form-label {
  display: flex !important;
  align-items: center;
  min-height: 20px;
  margin: 0 0 6px !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

/* Fields inside filter — override dark background */
.salam-fnav-body .form-control,
.salam-fnav-body .form-select,
.salam-fnav-body select:not(.bs-select-hidden) {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  background: rgba(15,23,42,.66) !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.10) !important;
  font-size: 13px !important;
}

.salam-fnav-body .form-control::placeholder { color: #475569 !important; }
.salam-fnav-body .form-control:focus,
.salam-fnav-body .form-select:focus,
.salam-fnav-body select:focus {
  border-color: var(--s-nav-active) !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.2) !important;
}

.salam-fnav-body .bootstrap-select {
  width: 100% !important;
  display: block !important;
}

.salam-fnav-body .bootstrap-select > select.selectpicker,
.salam-fnav-body .bootstrap-select > select.bs-select-hidden {
  display: none !important;
}

.salam-fnav-body .bootstrap-select > .dropdown-toggle,
.salam-fnav-body .btn.dropdown-toggle {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background: linear-gradient(180deg, rgba(30,41,59,.88), rgba(15,23,42,.88)) !important;
  border: 1px solid rgba(148,163,184,.24) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.16) !important;
  overflow: hidden;
}

.salam-fnav-body .bootstrap-select > .dropdown-toggle:focus,
.salam-fnav-body .bootstrap-select.show > .dropdown-toggle {
  border-color: var(--s-nav-active) !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.18), 0 10px 22px rgba(0,0,0,.16) !important;
}

.salam-fnav-body .bootstrap-select .filter-option,
.salam-fnav-body .bootstrap-select .filter-option-inner,
.salam-fnav-body .bootstrap-select .filter-option-inner-inner {
  width: 100%;
  max-width: 100%;
  color: #f8fafc !important;
  text-align: right !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salam-fnav-body .bootstrap-select .caret {
  display: inline-block !important;
}

.salam-fnav-body select.salam-school-select,
.salam-fnav-body select[name="schools[]"] {
  display: none !important;
}

.salam-school-multi {
  position: relative;
  width: 100%;
}

.salam-school-multi-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(30,41,59,.88), rgba(15,23,42,.88));
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.16);
  font-family: var(--s-font);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.salam-school-multi-toggle.has-selection {
  border-color: rgba(56,189,248,.40);
}

.salam-school-multi-toggle i {
  color: #94a3b8;
  transition: transform .16s ease;
}

.salam-school-multi.open .salam-school-multi-toggle i {
  transform: rotate(180deg);
}

.salam-school-multi-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salam-school-multi-menu {
  display: none;
  position: static;
  z-index: 1060;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--s-border-lt);
  border-radius: 14px;
  box-shadow: var(--s-shadow-md);
  min-height: 320px;
}

.salam-school-multi.open .salam-school-multi-menu {
  display: block;
}

.salam-school-multi-search {
  width: 100%;
  height: 38px;
  margin-bottom: 8px;
  padding: 7px 10px;
  color: var(--s-body);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--s-font);
  font-size: 13px;
  outline: none;
}

.salam-school-multi-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.salam-school-multi-actions button {
  min-height: 32px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: var(--s-blue);
  background: var(--s-blue-dim);
  font-family: var(--s-font);
  font-size: 12px;
  font-weight: 900;
}

.salam-school-multi-options {
  max-height: 520px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
}

.salam-school-multi-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  min-height: 34px;
  margin: 0 !important;
  padding: 6px 8px;
  color: var(--s-body) !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.salam-school-multi-option:hover {
  background: var(--s-blue-dim);
  color: var(--s-blue) !important;
}

.salam-school-multi-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--s-blue);
}

.salam-fnav-body .finance-filter-submit-spacer,
.salam-fnav-body .clearfix {
  display: none !important;
}

.bootstrap-select .dropdown-menu {
  border: 1px solid var(--s-border-lt) !important;
  border-radius: 14px !important;
  box-shadow: var(--s-shadow-md) !important;
  overflow: hidden;
  font-family: var(--s-font);
}

.bootstrap-select .dropdown-menu .bs-searchbox {
  padding: 10px !important;
  background: #f8fafc;
}

.bootstrap-select .dropdown-menu .bs-searchbox .form-control {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.bootstrap-select .dropdown-menu .bs-actionsbox {
  padding: 8px 10px !important;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.bootstrap-select .dropdown-menu .bs-actionsbox .btn {
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.bootstrap-select .dropdown-menu li a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 12px !important;
  color: var(--s-body) !important;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li a:hover {
  background: var(--s-blue-dim) !important;
  color: var(--s-blue) !important;
}

.bootstrap-select .dropdown-menu li.selected a::before {
  content: "\f00c";
  font-family: FontAwesome;
  margin-left: 8px;
  color: var(--s-blue);
}

/* Hide card chrome inside filter drawer — show only content */
.salam-fnav-body .card,
.salam-fnav-body .ibox,
.salam-fnav-body .panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.salam-fnav-body .card-header,
.salam-fnav-body .ibox-title {
  display: none !important;
}

.salam-fnav-body .card-body,
.salam-fnav-body .ibox-content {
  padding: 0 !important;
}

.salam-fnav-body .salam-filter-submit-source {
  display: none !important;
}

/* Divider between sections */
.salam-fnav-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 12px 0;
}

.salam-fnav-empty {
  text-align: center;
  color: #475569;
  font-size: 13px;
  padding: 48px 20px;
  line-height: 2;
}

/* Foot */
.salam-fnav-foot {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.salam-fnav-apply-btn {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: var(--s-r-sm);
  background: var(--s-blue-light);
  color: #fff;
  font-family: var(--s-font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .13s;
}
.salam-fnav-apply-btn:hover { background: var(--s-blue); }

.salam-fnav-reset-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--s-r-sm);
  background: transparent;
  color: #94a3b8;
  font-family: var(--s-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .13s, color .13s;
}
.salam-fnav-reset-btn:hover { background: rgba(248,113,113,.15); color: #f87171; border-color: transparent; }

/* Filter badge on topbar toggle button */
.salam-filter-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--s-blue-light);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Active state for filter toggle button */
.salam-filter-toggle-btn.has-filters {
  background: var(--s-blue-dim) !important;
  color: var(--s-blue) !important;
  border-color: var(--s-blue-light) !important;
}

/* ── 21. Login page ── */
.salam-login-body {
  overflow-x: hidden;
  background: #06111f;
}

.salam-login-wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .74)),
    radial-gradient(circle at 82% 16%, rgba(56, 189, 248, .32), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(99, 102, 241, .28), transparent 31%),
    #06111f;
}

.salam-login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.salam-login-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .7;
}

.salam-login-orb-a {
  top: 8%;
  left: 8%;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(14, 165, 233, .44), transparent 67%);
}

.salam-login-orb-b {
  right: 9%;
  bottom: 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, .32), transparent 68%);
}

.salam-login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  gap: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.salam-login-brand-panel,
.salam-login-card {
  min-height: 580px;
  border-radius: 26px;
}

.salam-login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .2), transparent 26%),
    linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(14, 165, 233, .86) 52%, rgba(16, 185, 129, .82));
}

.salam-login-brand-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  bottom: -115px;
  width: 340px;
  height: 340px;
  border: 42px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.salam-login-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.salam-login-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 950;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
}

.salam-login-logo-text strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.salam-login-logo-text small {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.salam-login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.salam-login-brand-copy span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.salam-login-brand-copy h1 {
  max-width: 640px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.salam-login-brand-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 2.1;
}

.salam-login-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.salam-login-feature-grid > div {
  min-height: 118px;
  padding: 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.salam-login-feature-grid i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #0f172a;
  background: #fff;
  border-radius: 12px;
}

.salam-login-feature-grid strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.salam-login-feature-grid small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.8;
}

.salam-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.salam-login-form-head {
  margin-bottom: 26px;
}

.salam-login-kicker {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 11px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.salam-login-form-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.salam-login-form-head p {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 2;
}

.salam-login-field .form-label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 950;
}

.salam-login-input-wrap {
  position: relative;
}

.salam-login-input-wrap > i {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  z-index: 2;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 18px;
}

.salam-login-input-wrap .form-control {
  min-height: 58px !important;
  padding-inline-start: 48px !important;
  color: #0f172a;
  background: #f8fafc !important;
  border: 1px solid #dbeafe !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 900;
}

.salam-login-input-wrap .form-control:focus {
  background: #fff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

.salam-login-submit {
  min-height: 58px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
  font-size: 14px !important;
  font-weight: 950 !important;
}

.salam-login-back {
  min-height: 54px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

.salam-login-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.9;
}

@media (max-width: 991.98px) {
  .salam-login-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .salam-login-brand-panel {
    min-height: auto;
    padding: 24px;
  }

  .salam-login-brand-copy {
    margin: 34px 0 22px;
  }

  .salam-login-brand-copy h1 {
    font-size: 30px;
  }

  .salam-login-feature-grid {
    grid-template-columns: 1fr;
  }

  .salam-login-feature-grid > div {
    min-height: auto;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
  }

  .salam-login-feature-grid i {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .salam-login-card {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .salam-login-wrap {
    padding: 12px;
    place-items: stretch;
  }

  .salam-login-shell {
    min-height: calc(100vh - 24px);
    padding: 8px;
    border-radius: 28px;
  }

  .salam-login-brand-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .salam-login-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .salam-login-brand-copy {
    margin: 24px 0 0;
  }

  .salam-login-brand-copy span,
  .salam-login-feature-grid {
    display: none;
  }

  .salam-login-brand-copy h1 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .salam-login-brand-copy p {
    font-size: 12.5px;
    line-height: 1.9;
  }

  .salam-login-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .salam-login-form-head h2 {
    font-size: 22px;
  }

  .salam-login-input-wrap .form-control,
  .salam-login-submit {
    min-height: 54px !important;
  }
}

/* ── 21. Mobile bottom nav ── */
.salam-mobile-nav { display: none; }

@media (max-width: 767.98px) {
  .salam-mobile-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--s-surface);
    border-top: 1px solid var(--s-border-lt);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }

  .salam-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 10px;
    color: var(--s-muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    border-top: 2px solid transparent;
  }

  .salam-mobile-nav a:hover,
  .salam-mobile-nav a.active { color: var(--s-blue-light); border-top-color: var(--s-blue-light); }
  .salam-mobile-nav i { font-size: 18px; }
}

/* ── 22. Responsive ── */
@media (max-width: 991.98px) {
  /* #salam-nav visibility managed by Bootstrap offcanvas — never override with display:none */
  #salam-topbar { padding: 0 14px; height: 56px; }
  #salam-content { padding: 14px 14px 90px; }
  #salam-footer { display: none; }
}

@media (max-width: 767.98px) {
  .ibox-content, .panel-body, .card-body, .tab-content { padding: 14px !important; }
  .card, .ibox, .panel { border-radius: var(--s-r-sm) !important; }

  #modalFinancePredict .modal-dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
  }

  #modalFinancePredict .modal-content,
  #modalFinancePredict #form-finance-predict-modal {
    height: 100%;
    max-height: 100%;
  }

  #modalFinancePredict .finance-modal-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 14px !important;
    overflow-y: auto !important;
  }

  #modalFinancePredict .modal-footer {
    flex-wrap: nowrap;
  }

  .salary-pay-modal .modal-dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
  }

  .salary-pay-modal .modal-content {
    height: 100%;
    max-height: 100%;
  }

  .salary-pay-modal-body {
    padding: 14px !important;
  }

  .finance-categories-table-wrap,
  .finance-category-h-scroll,
  .finance-category-body-scroll {
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .finance-category-main-table {
    display: block !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
  }

  .finance-category-main-table colgroup,
  .finance-category-main-table thead,
  .finance-category-main-table tfoot {
    display: none !important;
  }

  .finance-category-main-table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .finance-category-main-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px 10px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid var(--s-border-lt) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
  }

  .finance-category-main-table tbody tr > td {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 7px 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .finance-category-main-table tbody tr > td::before {
    content: attr(data-label);
    color: var(--s-muted);
    font-size: 11px;
    font-weight: 900;
  }

  .finance-category-main-table tbody tr > td:nth-child(1),
  .finance-category-main-table tbody tr > td:nth-child(2),
  .finance-category-main-table tbody tr > td:nth-child(10) {
    grid-column: 1 / -1 !important;
  }

  .finance-category-main-table tbody tr > td:nth-child(2) {
    display: block !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed var(--s-border-lt) !important;
  }

  .finance-category-main-table tbody tr > td:nth-child(2)::before {
    display: block;
    margin-bottom: 4px;
  }

  .finance-category-main-table .finance-cat-id {
    min-width: 38px;
  }

  .finance-category-main-table .finance-cat-name {
    max-width: 100% !important;
    display: block !important;
    font-size: 14px;
    line-height: 1.7;
  }

  .finance-category-main-table .detailbtn,
  .finance-category-main-table .finance-open-predict {
    width: 100% !important;
    min-height: 38px !important;
    margin-top: 0 !important;
    justify-content: center;
  }

  .finance-category-main-table tbody tr > td:nth-child(8),
  .finance-category-main-table tbody tr > td:nth-child(9) {
    display: block !important;
  }

  .finance-category-main-table tbody tr > td:nth-child(8)::before,
  .finance-category-main-table tbody tr > td:nth-child(9)::before,
  .finance-category-main-table tbody tr > td:nth-child(10)::before {
    display: block;
    margin-bottom: 5px;
  }

  .finance-category-main-table .salam-d3-progress {
    min-width: 0 !important;
  }
}

/* ── 23. Legacy shell overrides ── */
.wrapper-content, .content { padding: 0 !important; }
.gray-bg, .white-bg, .dashbard-1, #wrapper, #page-wrapper { background: transparent !important; }
.app-breadcrumb { display: none !important; }
.logo-element { display: none !important; }
.nav-header { background: transparent !important; padding: 0 !important; }
.profile-element, .dropdown.profile-element { display: none !important; }
.app-saas-nav, .app-saas-topbar-row, .app-saas-menu-search-wrap,
.app-mobile-quick-nav { display: none !important; }

/* chosen / bootstrap-select */
.chosen-container-single .chosen-single,
.bootstrap-select > .dropdown-toggle,
.select2-container .select2-choice {
  font-family: var(--s-font);
  min-height: 40px;
  border: 1px solid var(--s-border) !important;
  border-radius: var(--s-r-sm) !important;
  box-shadow: none !important;
  background: var(--s-surface) !important;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--s-ink);
}

/* Table toolbar */
.salam-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: var(--s-surface);
  border: 1px solid var(--s-border-lt);
  border-radius: var(--s-r);
  box-shadow: var(--s-shadow);
}

.salam-table-search { position: relative; width: min(100%, 300px); }
.salam-table-search i {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: var(--s-muted);
  font-size: 12px;
  pointer-events: none;
}
.salam-table-search .form-control { padding-right: 34px; height: 36px; min-height: 36px; }

.salam-sortable-th {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-left: 24px !important;
}

.salam-sortable-th::after {
  content: "\f0dc";
  font-family: FontAwesome;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 11px;
}

.salam-sortable-th.salam-sort-asc::after {
  content: "\f0de";
  color: var(--s-blue);
}

.salam-sortable-th.salam-sort-desc::after {
  content: "\f0dd";
  color: var(--s-blue);
}

/* Dropdown menus */
.dropdown-menu {
  font-family: var(--s-font);
  font-size: 13.5px;
  border: 1px solid var(--s-border-lt);
  border-radius: var(--s-r);
  box-shadow: var(--s-shadow-md);
  padding: 6px;
}
.dropdown-item { border-radius: var(--s-r-sm); padding: 8px 12px; font-weight: 600; color: var(--s-body); }
.dropdown-item:hover { background: var(--s-blue-dim); color: var(--s-blue); }
.dropdown-divider { border-color: var(--s-border-lt); }

/* Print */
@media print {
  #salam-nav, #salam-topbar, #salam-footer, .salam-mobile-nav { display: none !important; }
  #salam-main { margin: 0 !important; }
  #salam-content { padding: 0 !important; }
  body { background: #fff !important; }
}
