/* ==========================================================================
   SJSV Admin Panel - modern theme (override layer on top of Stack admin)
   Loaded AFTER assets/css/style.css.
   To roll back: remove the <link> to this file from views/header.php and views/login.php
   ========================================================================== */

:root {
  --ad-ink: #1b1646;
  --ad-ink-2: #241c5c;
  --ad-indigo: #2b1772;
  --ad-indigo-soft: #4a2fb0;
  --ad-marigold: #f5a524;
  --ad-teal: #0f9d8a;
  --ad-rose: #d6336c;
  --ad-sky: #2f80ed;
  --ad-violet: #7b4fd6;
  --ad-bg: #f3f2fa;
  --ad-line: #e3dff2;
  --ad-text: #3a3658;
  --ad-menu-text: #cfc9ee;
  --ad-radius: 14px;
  --ad-shadow: 0 10px 28px -14px rgba(43, 23, 114, .35);
  --ad-ease: cubic-bezier(.2, .7, .2, 1);
}

html body.vertical-layout,
html body.vertical-layout .app-content.content,
html body.vertical-layout .content-wrapper {
  font-family: 'Figtree', 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ad-text);
}
html body.vertical-layout { background: var(--ad-bg) !important; }
html body.vertical-layout .app-content.content { background: var(--ad-bg); }

html body.vertical-layout h1,
html body.vertical-layout h2,
html body.vertical-layout h3,
html body.vertical-layout h4,
html body.vertical-layout h5,
html body.vertical-layout h6,
html body.vertical-layout .card-title {
  font-family: 'Bricolage Grotesque', 'Figtree', 'Montserrat', Arial, sans-serif;
  color: var(--ad-ink);
  letter-spacing: -.01em;
}

/* ---------- Top navbar ---------- */
html body.vertical-layout .header-navbar,
html body.vertical-layout .header-navbar .navbar-wrapper,
html body.vertical-layout .header-navbar .navbar-container {
  background: #fff !important;
}
html body.vertical-layout .header-navbar.navbar-shadow { box-shadow: 0 4px 24px -16px rgba(27, 22, 70, .5); }
html body.vertical-layout .header-navbar .navbar-header,
html body.vertical-layout .header-navbar .navbar-header ul.nav {
  background: var(--ad-ink) !important;
}
html body.vertical-layout .header-navbar .navbar-header .brand-text {
  color: #fff;
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .01em;
  white-space: nowrap;
  margin: 0;
}
html body.vertical-layout .header-navbar .navbar-header .nav-toggle,
html body.vertical-layout .header-navbar .navbar-header .mobile-menu {
  position: relative;
  z-index: 5;
}
html body.vertical-layout .header-navbar .navbar-header .nav-toggle a { cursor: pointer; }
html body.vertical-layout .header-navbar .navbar-header .brand-text::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ad-marigold);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(245, 165, 36, .25);
}
html body.vertical-layout .header-navbar .navbar-container .nav > li > a,
html body.vertical-layout .header-navbar .navbar-container .navbar-nav > li {
  color: var(--ad-ink);
}
html body.vertical-layout .header-navbar .navbar-container .navbar-nav.mr-auto > li {
  font-weight: 600;
  padding: 1.35rem 1rem;
  color: var(--ad-text);
}
html body.vertical-layout .header-navbar .user-name { color: var(--ad-ink); font-weight: 600; }
html body.vertical-layout .header-navbar .dropdown-menu {
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  box-shadow: var(--ad-shadow);
}
html body.vertical-layout .header-navbar .dropdown-item:hover { background: var(--ad-bg); color: var(--ad-indigo); }

/* ---------- Sidebar ---------- */
html body.vertical-layout .main-menu,
html body.vertical-layout .main-menu .main-menu-content,
html body.vertical-layout .main-menu .navigation {
  background: var(--ad-ink) !important;
}
html body.vertical-layout .main-menu {
  background: linear-gradient(180deg, var(--ad-ink) 0%, #170f3d 100%) !important;
  box-shadow: 4px 0 24px -18px rgba(0, 0, 0, .6);
}
html body.vertical-layout .main-menu .navigation-header { color: #8f87c6; }
html body.vertical-layout .main-menu .navigation-header span {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
}

html body.vertical-layout .main-menu.menu-dark .navigation > li > a,
html body.vertical-layout .main-menu .navigation > li > a {
  color: var(--ad-menu-text) !important;
  font-weight: 500;
  margin: 2px 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  transition: background-color .2s var(--ad-ease), color .2s var(--ad-ease), transform .2s var(--ad-ease);
}
html body.vertical-layout .main-menu .navigation > li > a i { color: #a79fe0; transition: color .2s; }
html body.vertical-layout .main-menu .navigation > li:hover > a,
html body.vertical-layout .main-menu.menu-dark .navigation > li:hover > a {
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
}
html body.vertical-layout .main-menu .navigation > li:hover > a i { color: var(--ad-marigold); }

html body.vertical-layout .main-menu .navigation > li.open > a,
html body.vertical-layout .main-menu .navigation > li.active > a,
html body.vertical-layout .main-menu.menu-dark .navigation > li.open > a,
html body.vertical-layout .main-menu.menu-dark .navigation > li.active > a {
  background: rgba(245, 165, 36, .14) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--ad-marigold);
}
html body.vertical-layout .main-menu .navigation > li.open > a i,
html body.vertical-layout .main-menu .navigation > li.active > a i { color: var(--ad-marigold); }

html body.vertical-layout .main-menu .navigation li.has-sub > a:not(.mm-next)::after { color: #8f87c6; }

html body.vertical-layout .main-menu .navigation > li ul.menu-content,
html body.vertical-layout .main-menu.menu-dark .navigation > li ul {
  background: rgba(0, 0, 0, .18) !important;
  margin: 2px 12px 6px;
  border-radius: 10px;
  padding: 4px 0;
}
html body.vertical-layout .main-menu .navigation li ul.menu-content li a,
html body.vertical-layout .main-menu.menu-dark .navigation li ul li > a {
  color: #bdb5ea !important;
  background: transparent !important;
  padding: 8px 14px 8px 44px;
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
html body.vertical-layout .main-menu .navigation li ul.menu-content li a:hover,
html body.vertical-layout .main-menu.menu-dark .navigation li ul li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .06) !important;
}
html body.vertical-layout .main-menu .navigation li ul.menu-content li.active > a { color: var(--ad-marigold) !important; }

/* ---------- Cards, tables, buttons ---------- */
html body.vertical-layout .card {
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  box-shadow: 0 4px 18px -14px rgba(43, 23, 114, .4);
}
html body.vertical-layout .card-header { background: transparent; border-bottom: 1px solid var(--ad-line); }
html body.vertical-layout .card-title { font-weight: 700; text-transform: none; }

html body.vertical-layout .table thead th {
  background: var(--ad-bg);
  color: var(--ad-ink);
  border-bottom: 2px solid var(--ad-line);
  font-weight: 700;
}
html body.vertical-layout .table td { vertical-align: middle; }
html body.vertical-layout .table-hover tbody tr:hover { background: rgba(67, 41, 143, .04); }

html body.vertical-layout .btn-primary {
  background: linear-gradient(135deg, var(--ad-indigo), var(--ad-indigo-soft)) !important;
  border-color: transparent !important;
  border-radius: 10px;
  box-shadow: 0 8px 18px -10px rgba(43, 23, 114, .8);
}
html body.vertical-layout .btn-primary:hover { transform: translateY(-1px); }
html body.vertical-layout .btn-success { border-radius: 10px; }
html body.vertical-layout .btn-danger { border-radius: 10px; }
html body.vertical-layout .btn-warning { border-radius: 10px; }
html body.vertical-layout .btn-info { border-radius: 10px; }

html body.vertical-layout .form-control {
  border: 1px solid #d6d1ea;
  border-radius: 10px;
  color: var(--ad-ink);
  transition: border-color .2s, box-shadow .2s;
}
html body.vertical-layout .form-control:focus {
  border-color: var(--ad-indigo-soft);
  box-shadow: 0 0 0 4px rgba(74, 47, 176, .14);
}

html body.vertical-layout .page-item.active .page-link {
  background: var(--ad-indigo);
  border-color: var(--ad-indigo);
}
html body.vertical-layout .dataTables_wrapper .paginate_button.current,
html body.vertical-layout .dataTables_wrapper .paginate_button.current:hover {
  background: var(--ad-indigo) !important;
  color: #fff !important;
  border-color: var(--ad-indigo) !important;
  border-radius: 8px;
}

html body.vertical-layout .footer { background: transparent; border-top: 1px solid var(--ad-line); }
html body.vertical-layout .footer a { color: var(--ad-indigo); }

/* ---------- Dashboard tiles ---------- */
.sj-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.sj-tile {
  --tone: var(--ad-indigo);
  --tone-bg: rgba(43, 23, 114, .09);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .28s var(--ad-ease), box-shadow .28s var(--ad-ease), border-color .28s;
}
.sj-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--tone);
}
.sj-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--ad-shadow);
  border-color: var(--tone);
}
.sj-tile .sj-ico {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tone-bg);
  color: var(--tone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.sj-tile .sj-ico i { font-size: 24px; line-height: 1; }
.sj-tile .sj-name {
  display: block;
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ad-ink);
  line-height: 1.25;
}
.sj-tile .sj-hint { display: block; font-size: 13px; color: #7a76a0; margin-top: 2px; }
.sj-tile .sj-go {
  margin-left: auto;
  color: var(--tone);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s var(--ad-ease);
}
.sj-tile:hover .sj-go { opacity: 1; transform: none; }

.sj-tone-indigo { --tone: #2b1772; --tone-bg: rgba(43, 23, 114, .09); }
.sj-tone-teal   { --tone: #0f9d8a; --tone-bg: rgba(15, 157, 138, .11); }
.sj-tone-amber  { --tone: #d98200; --tone-bg: rgba(245, 165, 36, .16); }
.sj-tone-rose   { --tone: #d6336c; --tone-bg: rgba(214, 51, 108, .1); }
.sj-tone-sky    { --tone: #2f80ed; --tone-bg: rgba(47, 128, 237, .1); }
.sj-tone-violet { --tone: #7b4fd6; --tone-bg: rgba(123, 79, 214, .11); }

.sj-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, var(--ad-ink), var(--ad-indigo) 60%, #5a1a4a 130%);
  color: #fff;
  border-radius: var(--ad-radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.sj-welcome h3 { color: #fff !important; margin: 0 0 4px; font-size: 22px; }
.sj-welcome p { margin: 0; color: #d7d1f5; }
.sj-welcome .sj-pip {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ad-marigold);
  box-shadow: 0 0 0 6px rgba(245, 165, 36, .25);
}

/* ---------- Login page ---------- */
html body.blank-page {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 165, 36, .28), transparent 60%),
    linear-gradient(135deg, #1b1646 0%, #2b1772 60%, #4a1a55 130%) !important;
}
html body.blank-page .card {
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55) !important;
  overflow: hidden;
}
.sj-login-logo { text-align: center; padding-top: 6px; }
.sj-login-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 26px -14px rgba(27, 22, 70, .7);
}
.sj-login-title {
  text-align: center;
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-weight: 700;
  color: var(--ad-ink);
  margin: 18px 0 2px;
  font-size: 22px;
}
.sj-login-sub { text-align: center; color: #7a76a0; margin-bottom: 8px; }
html body.blank-page .btn-sj-login {
  background: linear-gradient(135deg, var(--ad-indigo), var(--ad-indigo-soft)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px;
  font-weight: 700;
  padding: 13px;
  box-shadow: 0 14px 24px -12px rgba(43, 23, 114, .9);
  transition: transform .2s var(--ad-ease), box-shadow .2s;
}
html body.blank-page .btn-sj-login:hover { transform: translateY(-2px); }
html body.blank-page .form-control-lg { border-radius: 12px; }

/* ---------- Accessibility ---------- */
html body.vertical-layout a:focus-visible,
html body.vertical-layout button:focus-visible {
  outline: 3px solid var(--ad-marigold);
  outline-offset: 2px;
}
@media (max-width: 575px) {
  .sj-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sj-tile, .sj-tile .sj-go, html body.vertical-layout .main-menu .navigation > li > a { transition: none !important; }
}


/* ==========================================================================
   Multi-colour sidebar icons
   ========================================================================== */
html body.vertical-layout .main-menu .navigation > li > a > i {
  --c: #8fd0ff;
  --cb: rgba(143, 208, 255, .14);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 9px;
  margin-right: 12px;
  font-size: 16px;
  color: var(--c) !important;
  background: var(--cb);
  transition: transform .2s var(--ad-ease), background-color .2s;
}
html body.vertical-layout .main-menu .navigation > li > a:hover > i { transform: scale(1.08); }
html body.vertical-layout .main-menu .navigation > li.open > a > i,
html body.vertical-layout .main-menu .navigation > li.active > a > i { background: rgba(255, 255, 255, .12); }

.sj-c1 { --c: #8fd0ff; --cb: rgba(143, 208, 255, .14); }
.sj-c2 { --c: #7ee0b0; --cb: rgba(126, 224, 176, .14); }
.sj-c3 { --c: #ffc46b; --cb: rgba(255, 196, 107, .15); }
.sj-c4 { --c: #ff8fb8; --cb: rgba(255, 143, 184, .15); }
.sj-c5 { --c: #c3a6ff; --cb: rgba(195, 166, 255, .16); }
.sj-c6 { --c: #ff9c7a; --cb: rgba(255, 156, 122, .15); }
.sj-c7 { --c: #6fe3e8; --cb: rgba(111, 227, 232, .14); }
.sj-c8 { --c: #d4e86a; --cb: rgba(212, 232, 106, .14); }

/* ==========================================================================
   Dashboard: section titles + count cards
   ========================================================================== */
.sj-section {
  margin: 8px 0 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ad-ink);
}
.sj-section::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--ad-marigold);
  margin-top: 6px;
}
.sj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.sj-stats-forms { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.sj-stat {
  --tone: var(--ad-indigo);
  --tone-bg: rgba(43, 23, 114, .09);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s var(--ad-ease), box-shadow .28s var(--ad-ease), border-color .28s;
}
.sj-stat::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--tone);
}
.sj-stat:hover { transform: translateY(-3px); box-shadow: var(--ad-shadow); border-color: var(--tone); }
.sj-stat .sj-ico {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tone-bg);
  color: var(--tone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sj-stat .sj-ico i { font-size: 24px; line-height: 1; }
.sj-stat-body { display: block; min-width: 0; }
.sj-stat-label { display: block; font-weight: 600; color: #6b6791; font-size: 14px; }
.sj-stat-num {
  display: block;
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ad-ink);
  margin: 2px 0 8px;
}
.sj-stat-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.sj-sub {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ad-bg);
  color: #5c5886;
  font-size: 12px;
  font-weight: 600;
}
.sj-sub-green { background: rgba(15, 157, 138, .12); color: #0b7a6b; }
.sj-sub-red   { background: rgba(214, 51, 108, .1);  color: #b3245a; }

/* tiles: keep them above any overlay so they always receive the click */
.sj-tile { position: relative; z-index: 1; cursor: pointer; }

/* ==========================================================================
   List pages (Associate / Student / Applicants): filter bar + table
   ========================================================================== */
.sj-list-card { overflow: hidden; }
.sj-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 18px 20px 14px;
}
.sj-field { display: flex; flex-direction: column; min-width: 160px; position: relative; }
.sj-field label {
  font-size: 12px;
  font-weight: 700;
  color: #6b6791;
  margin: 0 0 4px 2px;
}
.sj-field .form-control { height: 42px; }
.sj-field-search { flex: 1 1 280px; }
.sj-field-search i {
  position: absolute;
  left: 13px;
  bottom: 12px;
  color: #8f8bb5;
  pointer-events: none;
}
.sj-field-search .form-control { padding-left: 38px; }
.sj-field-btns { flex-direction: row; gap: 8px; min-width: 0; }
.sj-field-btns .btn { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; }

.sj-table-wrap { overflow-x: auto; border: 1px solid var(--ad-line); border-radius: 12px; }
table.sj-table { margin: 0 !important; border-collapse: separate; border-spacing: 0; }
table.sj-table thead th {
  background: #efedf9;
  color: var(--ad-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: left;
  padding: 13px 14px;
  border: 0 !important;
  border-bottom: 1px solid var(--ad-line) !important;
}
table.sj-table tbody td {
  padding: 14px;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #efedf8 !important;
  font-size: 13.5px;
  color: var(--ad-text);
}
table.sj-table tbody tr:last-child td { border-bottom: 0 !important; }
table.sj-table tbody tr:hover td { background: #faf9fe; }
table.sj-table.dataTable thead .sorting,
table.sj-table.dataTable thead .sorting_asc,
table.sj-table.dataTable thead .sorting_desc { cursor: pointer; }

.sj-person { display: flex; align-items: center; gap: 12px; min-width: 170px; }
.sj-person-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sj-person-text b { color: var(--ad-ink); font-size: 14px; }
.sj-person-text span { color: #7a76a0; font-size: 12.5px; }

.sj-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #ece9f8;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px -2px rgba(27, 22, 70, .35);
}
.sj-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-indigo);
  font-weight: 700;
  font-size: 14px;
}

.sj-kv { font-size: 13px; line-height: 1.55; white-space: nowrap; }
.sj-kv span {
  display: inline-block;
  min-width: 46px;
  margin-right: 6px;
  color: #8a86ad;
  font-size: 11.5px;
  font-weight: 700;
}
.sj-addr { max-width: 260px; min-width: 150px; line-height: 1.5; }

.sj-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(43, 23, 114, .09);
  color: var(--ad-indigo);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  margin-top: 2px;
}

.sj-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sj-badge-green { background: rgba(15, 157, 138, .13); color: #0b7a6b; }
.sj-badge-red   { background: rgba(214, 51, 108, .11); color: #b3245a; }

.sj-docs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 130px; }
.sj-doc {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: #1f5fbf;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sj-doc:hover { background: #dce9ff; text-decoration: none; }
.sj-doc-empty { background: #f3f2f8; color: #aaa6c6; font-weight: 500; }

.sj-acts { display: flex; gap: 6px; flex-wrap: wrap; min-width: 120px; }
.sj-act {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 15px;
  transition: transform .2s var(--ad-ease), background-color .2s;
}
.sj-act:hover { transform: translateY(-2px); }
.sj-act-blue   { background: rgba(47, 128, 237, .12); color: #1f66d1; }
.sj-act-violet { background: rgba(123, 79, 214, .12); color: #6338c0; }
.sj-act-amber  { background: rgba(245, 165, 36, .18); color: #b86e00; }
.sj-act-green  { background: rgba(15, 157, 138, .13); color: #0b7a6b; }
.sj-act-red    { background: rgba(214, 51, 108, .11); color: #c0245c; }

/* DataTables controls */
.sj-top { padding: 12px 2px 12px; }
.sj-top .dataTables_length label { font-weight: 600; color: #6b6791; margin: 0; }
.sj-top .dataTables_length select {
  border: 1px solid #d6d1ea;
  border-radius: 8px;
  padding: 4px 8px;
  margin: 0 6px;
}
.sj-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px 4px; }
.sj-foot .dataTables_info { color: #6b6791; font-size: 13px; padding: 0; }
.sj-foot .dataTables_paginate { padding: 0; }
.sj-foot .dataTables_paginate .paginate_button {
  border: 1px solid var(--ad-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--ad-ink) !important;
  min-width: 36px;
  margin: 0 2px !important;
  padding: 6px 10px !important;
}
.sj-foot .dataTables_paginate .paginate_button:hover { background: var(--ad-bg) !important; }
.sj-foot .dataTables_paginate .paginate_button.current,
.sj-foot .dataTables_paginate .paginate_button.current:hover {
  background: var(--ad-indigo) !important;
  border-color: var(--ad-indigo) !important;
  color: #fff !important;
}
.sj-foot .dataTables_paginate .paginate_button.disabled { opacity: .45; }
div.dataTables_processing {
  background: #fff !important;
  color: var(--ad-indigo) !important;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  box-shadow: var(--ad-shadow);
  font-weight: 700;
  padding: 10px 18px !important;
}

/* ==========================================================================
   Every other table page (News, Banner, Gallery, Team, Download, Question, Result, Center, Donation)
   ========================================================================== */
html body.vertical-layout table.file-export.table,
html body.vertical-layout table.zero-configuration.table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  overflow: hidden;
}
html body.vertical-layout table.file-export thead th,
html body.vertical-layout table.zero-configuration thead th {
  background: #efedf9;
  color: var(--ad-ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  padding: 13px 14px;
  border: 0 !important;
  border-bottom: 1px solid var(--ad-line) !important;
}
html body.vertical-layout table.file-export tbody td,
html body.vertical-layout table.zero-configuration tbody td {
  padding: 13px 14px;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #efedf8 !important;
  font-size: 13.5px;
}
html body.vertical-layout table.file-export.table-striped tbody tr:nth-of-type(odd) { background: #fcfbff; }
html body.vertical-layout table.file-export tbody tr:hover td { background: #f4f2fd; }
html body.vertical-layout table.file-export td img {
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px -3px rgba(27, 22, 70, .4);
}
html body.vertical-layout table.file-export .badge-success { background: rgba(15, 157, 138, .13); color: #0b7a6b; }
html body.vertical-layout table.file-export .badge-danger  { background: rgba(214, 51, 108, .11); color: #b3245a; }
html body.vertical-layout table.file-export .badge { padding: 5px 12px; font-weight: 700; }
html body.vertical-layout table.file-export .invoice-action { display: flex; gap: 8px; align-items: center; }
html body.vertical-layout table.file-export .invoice-action a {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 23, 114, .08);
  color: var(--ad-indigo);
  margin: 0 !important;
  transition: transform .2s var(--ad-ease), background-color .2s;
}
html body.vertical-layout table.file-export .invoice-action a:hover { transform: translateY(-2px); background: rgba(43, 23, 114, .16); }
html body.vertical-layout .dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d6d1ea;
  border-radius: 10px;
  padding: 6px 12px;
  margin-left: 8px;
}
html body.vertical-layout .dataTables_wrapper .dt-buttons .btn,
html body.vertical-layout .dataTables_wrapper .dt-buttons .dt-button {
  border-radius: 9px;
  margin-right: 4px;
}

@media (max-width: 767px) {
  .sj-filterbar { padding: 14px; }
  .sj-field { min-width: 46%; flex: 1 1 46%; }
  .sj-field-search { flex-basis: 100%; }
  .sj-field-btns { flex-basis: 100%; }
  .sj-stat-num { font-size: 28px; }
}

/* ---------- Project Manager ---------- */
.sj-proj-thumb { display: block; width: 84px; height: 52px; object-fit: cover; border-radius: 8px; }
.sj-proj-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b1772, #8f1e1f); color: #fff; font-size: 20px; }

/* ==========================================================================
   Sidebar sections (separators + group labels)
   ========================================================================== */
html body.vertical-layout .main-menu .navigation > li.sj-sep {
  display: block;
  margin: 18px 18px 6px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: transparent !important;
}
html body.vertical-layout .main-menu .navigation > li.sj-sep span {
  display: block;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8f87c6;
}
html body.vertical-layout .main-menu .navigation > li.sj-sep i { display: none; }
html body.vertical-layout .main-menu .navigation > li.nav-item:first-child { margin-top: 8px; }
html body.vertical-layout .main-menu .navigation li ul.menu-content li.active > a { background: rgba(245, 165, 36, .1) !important; }
