/* refresh.css — Kogi State Polytechnic brand palette (loaded after style.css) */

:root {
  /* Brand tokens — the source of truth */
  --ksp-navy:      #002147;
  --ksp-navy-900:  #001529;
  --ksp-navy-600:  #17457d;
  --ksp-navy-100:  #dfe8f2;
  --ksp-teal:      #2E7877;
  --ksp-teal-300:  #7FC8C2;
  --ksp-orange:    #C4681A;
  --ksp-ice:       #f4f7fb;

  /* Legacy aliases — existing rules consume these names */
  --navy-900: #001529;
  --navy-800: #002147;
  --navy-700: #0b3160;
  --blue-600: #17457d;
  --blue-500: #1d5390;
  --blue-400: #2a67ab;
  --sky-300:  #7FC8C2;
  --sky-200:  #b9deda;
  --sky-100:  #dff0ee;
  --ice:      #f4f7fb;
  --ice-2:    #e9f0f7;
  --ink:      #002147;
  --slate:    #475569;
  --slate-2:  #64748b;
  --rule:     rgba(0, 33, 71, 0.10);
  --rule-2:   rgba(0, 33, 71, 0.18);
  --shadow-sm: 0 1px 2px rgba(0,33,71,0.06), 0 1px 3px rgba(0,33,71,0.04);
  --shadow-md: 0 4px 12px rgba(0,33,71,0.08), 0 2px 4px rgba(0,33,71,0.04);
}

html, body { background: var(--ice); color: var(--ink); }

/* top navbar */
#head-nav,
.navbar-default,
#head-nav.navbar-default {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 8px rgba(11,36,71,0.25);
}
.navbar-default .navbar-brand,
.navbar-brand { color: #fff !important; }
.navbar-brand span { color: var(--sky-300); }
.navbar-brand img { box-shadow: 0 0 0 2px var(--sky-300), 0 0 0 4px var(--navy-900); border-radius: 50%; }

.navbar-default .navbar-nav > li > a {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a {
  color: var(--sky-300) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--sky-300);
}

.navbar-nav.user-nav .dropdown-menu {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}
.navbar-nav.user-nav .dropdown-menu > li > a { color: #fff; }
.navbar-nav.user-nav .dropdown-menu > li > a:hover { background: rgba(125,211,252,0.12); color: var(--sky-300); }

/* sidebar */
.cl-sidebar {
  background: #fff;
  border-right: 1px solid var(--rule);
}
.cl-sidebar .cl-toggle { background: var(--navy-900); color: var(--sky-300); }
.cl-sidebar .cl-toggle i { color: var(--sky-300); }

.side-user { background: linear-gradient(180deg, var(--ice-2), #fff); border-bottom: 1px solid var(--rule); }
.side-user .avatar img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue-500), var(--shadow-md);
}
.side-user .info a { color: var(--navy-900); font-weight: 600; }
.side-user .info span { color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 600; }

.cl-vnavigation li a {
  color: var(--navy-900) !important;
  border-bottom: none !important;
  border-radius: 6px;
  margin: 2px 6px;
  padding: 9px 12px !important;
  transition: background 160ms ease, color 160ms ease;
}
.cl-vnavigation li a:hover { background: var(--ice-2); color: var(--blue-600) !important; }
.cl-vnavigation li.active > a, .cl-vnavigation li > a.active {
  background: var(--navy-900);
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--sky-300);
}
.cl-vnavigation li a i { color: var(--blue-500); }

.cl-vnavigation .sub-menu {
  background: transparent;
  border-left: 1px solid var(--rule);
  margin-left: 22px;
}
.cl-vnavigation .sub-menu li a { color: var(--slate) !important; font-weight: 400; }
.cl-vnavigation .sub-menu li a:hover { color: var(--blue-600) !important; background: transparent; }

/* cards / blocks */
.block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.block:hover { box-shadow: var(--shadow-md); }
.block .header {
  background: linear-gradient(180deg, var(--ice-2), #fff 70%);
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding: 16px 20px 12px;
}
.block .header::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--blue-500);
}
.block .header h2 { color: var(--navy-900); font-weight: 600; }

/* tables */
#headrow td, .headrow td {
  background: var(--navy-900) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12.5px;
}
.block table tr td[bgcolor="#d1d1d1"],
.block table tr td[bgcolor="#f1f1f1"] {
  background: var(--ice-2) !important;
  color: var(--navy-900) !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.block table tr:hover td { background: var(--sky-100); }

/* forms */
.form-control {
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  color: var(--navy-900);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-control:focus {
  border-color: var(--blue-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
label { color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; font-weight: 600; }

/* buttons */
.btn { border-radius: 4px; font-weight: 500; letter-spacing: 0.02em; transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease; }
.btn:active { transform: translateY(1px); }

.btn-primary, .btn-info {
  background: var(--blue-600); border-color: var(--blue-600); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-info:hover {
  background: var(--blue-500); border-color: var(--blue-500); color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-default {
  background: #fff; border-color: var(--rule-2); color: var(--navy-900);
}
.btn-default:hover { background: var(--ice-2); border-color: var(--navy-800); color: var(--navy-900); }

.btn-success { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.btn-success:hover { background: #0284c7; border-color: #0284c7; color: #fff; }

.btn-warning { background: var(--sky-300); border-color: var(--sky-300); color: var(--navy-900); }
.btn-warning:hover { background: var(--sky-200); border-color: var(--sky-200); color: var(--navy-900); }

.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* misc */
.processed_status {
  background: rgba(59,130,246,0.08);
  border-left: 3px solid var(--blue-500);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  color: var(--navy-900);
}
::selection { background: var(--sky-200); color: var(--navy-900); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ice-2); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 10px; border: 2px solid var(--ice-2); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-800); }

/* student-dashboard overrides (beats dashboard.css rules that set green/other accents) */
.navbar-default .navbar-collapse,
.navbar-default .navbar-form,
.navbar-default .navbar-toggle,
.navbar-default { border-color: rgba(255,255,255,0.08) !important; }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background-color: rgba(255,255,255,0.06) !important; }
.navbar-default .navbar-toggle .icon-bar { background-color: var(--sky-300) !important; }

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background: rgba(125,211,252,0.10) !important;
  color: var(--sky-300) !important;
}

.sidebar,
aside.sidebar,
.sidebar-menu,
.main-sidebar,
.control-sidebar {
  background: #fff !important;
  border-right: 1px solid var(--rule);
}
.sidebar-menu > li > a { color: var(--navy-900) !important; }
.sidebar-menu > li.active > a,
.sidebar-menu > li > a:hover {
  background: var(--ice-2) !important;
  color: var(--blue-600) !important;
  border-left: 3px solid var(--blue-500);
}
.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > i { color: var(--blue-500) !important; }

.sidebar-menu li.sidebar-header,
.sidebar-menu .sidebar-header,
.sidebar .sidebar-header {
  background: var(--navy-900) !important;
  color: #fff !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px !important;
  font-weight: 600;
  padding: 12px 25px 12px 15px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* student sidebar (col-sm-3 left column) — profile card + menu */
.sidebar {
  background: #fff !important;
  border-right: 1px solid var(--rule) !important;
  padding: 16px 0 0 !important;
}
.sidebar > div[style*="min-height"] {
  padding: 16px 14px !important;
  background: linear-gradient(180deg, var(--ice-2) 0%, #fff 85%);
  border-bottom: 1px solid var(--rule);
  min-height: auto !important;
}
.sidebar > div[style*="min-height"] > center img {
  border-radius: 10px !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--blue-500), 0 10px 24px rgba(11,36,71,0.15) !important;
  width: 90px !important; height: 90px !important; object-fit: cover;
}
.sidebar > div[style*="min-height"] {
  text-align: left;
}
.sidebar > div[style*="min-height"] > center {
  display: block;
  text-align: left;
}
/* compact quick profile: all rows visible but tight */
.sidebar .list-group {
  margin: 10px 6px 4px !important;
  border: none;
  background: transparent;
  font-size: 11.5px;
}
.sidebar .list-group-item {
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  color: var(--ink) !important;
  line-height: 1.35;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .list-group-item strong {
  display: inline-block;
  min-width: 58px;
  font-size: 9.5px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate) !important;
  font-weight: 600;
  margin-right: 4px;
}
/* name row (first two items) styled as hero name */
.sidebar .list-group-item:nth-child(1),
.sidebar .list-group-item:nth-child(2) {
  text-align: left;
  white-space: normal;
}
.sidebar .list-group-item:nth-child(1) { padding-top: 8px !important; }
.sidebar .list-group-item:nth-child(1) strong,
.sidebar .list-group-item:nth-child(2) strong { display: none; }
.sidebar .list-group-item:nth-child(1) {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px !important;
  color: var(--navy-900) !important;
}
.sidebar .list-group-item:nth-child(2) {
  font-size: 11.5px !important;
  color: var(--slate) !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed var(--rule) !important;
  margin-bottom: 6px;
}

/* sidebar menu wrapper */
.sidebar ~ section,
section.col-sm-3.col-md-2 {
  background: transparent !important;
}
.sidebar-menu {
  padding: 8px 0 !important;
  list-style: none;
  margin: 0;
}
.sidebar-menu > li { position: relative; }
.sidebar-menu > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 18px !important;
  color: var(--ink) !important;
  font-size: 13.5px;
  font-weight: 500;
  border: none !important;
  border-left: 3px solid transparent !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
  text-decoration: none;
}
.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > i {
  width: 18px; text-align: center;
  color: var(--blue-500) !important;
  font-size: 14px;
  transition: transform 200ms ease, color 200ms ease;
}
.sidebar-menu > li > a > .pull-right.fa-angle-left {
  margin-left: auto;
  color: var(--slate) !important;
  font-size: 12px;
  transition: transform 200ms ease;
}
.sidebar-menu > li > a:hover {
  background: var(--ice-2) !important;
  color: var(--blue-600) !important;
  border-left-color: var(--blue-500) !important;
}
.sidebar-menu > li > a:hover > .fa,
.sidebar-menu > li > a:hover > i { transform: translateX(1px); }
.sidebar-menu > li.active > a,
.sidebar-menu > li > a.active,
.sidebar-menu > li.menu-open > a {
  background: var(--navy-900) !important;
  color: #fff !important;
  border-left-color: var(--sky-300) !important;
}
.sidebar-menu > li.active > a > .fa,
.sidebar-menu > li.active > a > i,
.sidebar-menu > li.menu-open > a > .fa,
.sidebar-menu > li.menu-open > a > i { color: var(--sky-300) !important; }
.sidebar-menu > li.menu-open > a > .pull-right.fa-angle-left { transform: rotate(-90deg); color: var(--sky-300) !important; }

/* submenu */
.sidebar-submenu,
.sidebar-menu .treeview-menu {
  list-style: none;
  margin: 0 !important;
  padding: 2px 0 6px 48px !important;
  background: var(--ice) !important;
  border-left: 2px solid var(--blue-500) !important;
  margin-left: 22px !important;
}
.sidebar-submenu li a,
.sidebar-menu .treeview-menu > li > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 12px !important;
  font-size: 12.5px !important;
  color: var(--slate) !important;
  border: none !important;
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease, background 160ms ease;
}
.sidebar-submenu li a:hover,
.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-submenu li.active a {
  color: var(--blue-600) !important;
  background: transparent !important;
  padding-left: 16px !important;
}
.sidebar-submenu li a > .fa-circle-o {
  font-size: 7px !important;
  color: var(--blue-400) !important;
}

/* expanded / submenu states */
.sidebar-menu .treeview-menu,
.sidebar-menu > li.active > .treeview-menu,
.sidebar-menu > li.menu-open > .treeview-menu,
.sidebar-menu .sub-menu,
.sidebar-menu ul.sub-menu,
.sidebar-menu li ul,
.sidebar-menu li.active ul {
  background: var(--ice) !important;
  border-left: 2px solid var(--blue-500) !important;
  padding-left: 6px !important;
}
.sidebar-menu .treeview-menu > li > a,
.sidebar-menu .sub-menu > li > a,
.sidebar-menu li ul > li > a {
  background: transparent !important;
  color: var(--navy-800) !important;
  border-left: none !important;
  padding: 8px 14px !important;
}
.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-menu .treeview-menu > li.active > a,
.sidebar-menu .sub-menu > li > a:hover,
.sidebar-menu .sub-menu > li.active > a,
.sidebar-menu li ul > li > a:hover,
.sidebar-menu li ul > li.active > a {
  background: var(--ice-2) !important;
  color: var(--blue-600) !important;
}
.sidebar-menu .treeview-menu > li > a > .fa,
.sidebar-menu .treeview-menu > li > a > i,
.sidebar-menu .sub-menu > li > a > .fa,
.sidebar-menu .sub-menu > li > a > i { color: var(--blue-500) !important; }

/* open-state row (parent whose submenu is expanded) */
.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a,
.sidebar-menu > li.treeview.active > a {
  background: var(--navy-900) !important;
  color: #fff !important;
  border-left: 3px solid var(--sky-300) !important;
}
.sidebar-menu > li.active > a > .fa,
.sidebar-menu > li.active > a > i,
.sidebar-menu > li.menu-open > a > .fa,
.sidebar-menu > li.menu-open > a > i { color: var(--sky-300) !important; }

/* nuke any inline-style / hardcoded green/#1b591f backgrounds */
[style*="#1b591f"],
[style*="#2fa84f"],
[style*="color:#1b591f"] {
  background-color: transparent !important;
  color: var(--navy-900) !important;
}
.sidebar .list-group-item {
  background: transparent;
  border-color: var(--rule);
  color: var(--navy-900);
}
.sidebar .list-group-item strong { color: var(--blue-600); }

.alert-success { background: rgba(14,165,233,0.10) !important; border-color: rgba(14,165,233,0.35) !important; color: #075985 !important; }
.alert-info    { background: rgba(59,130,246,0.10) !important; border-color: rgba(59,130,246,0.35) !important; color: var(--navy-800) !important; }
.alert-warning { background: rgba(125,211,252,0.20) !important; border-color: rgba(125,211,252,0.55) !important; color: var(--navy-900) !important; }
.alert-danger  { background: rgba(220,38,38,0.08)  !important; border-color: rgba(220,38,38,0.35)  !important; color: #7f1d1d !important; }

a { color: var(--blue-600); }
a:hover, a:focus { color: var(--blue-500); }

.pagination > li > a,
.pagination > li > span { color: var(--blue-600); }
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span { background: var(--blue-600); border-color: var(--blue-600); }

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover { background-color: var(--blue-600); }
.dropdown-menu > li > a:hover { background-color: var(--sky-100); color: var(--blue-600); }

.breadcrumb { background: var(--ice-2); border-radius: 4px; }
.breadcrumb > .active { color: var(--navy-900); font-weight: 600; }

/* shared page utility classes (pg-*) */
.pg {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: var(--ink);
    padding: 6px 10px 40px;
}
.pg a { text-decoration: none; }

.pg-hero {
    position: relative; overflow: hidden;
    border-radius: 14px; padding: 24px 28px; color: #fff;
    background:
        radial-gradient(800px 380px at 100% 0%,  rgba(125,211,252,0.22), transparent 55%),
        linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 60%, #25467a 100%);
    box-shadow: 0 24px 48px -18px rgba(11,36,71,0.25), 0 10px 20px rgba(11,36,71,0.06);
    margin-bottom: 18px;
}
.pg-hero small { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-300); font-weight: 500; }
.pg-hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 26px; letter-spacing: -0.015em; margin: 6px 0 0; line-height: 1.2; color: #fff; }
.pg-hero p { margin: 10px 0 0; color: rgba(255,255,255,0.78); font-size: 14px; max-width: 640px; }
.pg-hero .pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-top: 12px; }
.pg-hero .pill.ok   { background: rgba(34,197,94,0.18);  color: #86efac; border: 1px solid rgba(34,197,94,0.35); }
.pg-hero .pill.warn { background: rgba(251,191,36,0.16); color: #fcd34d; border: 1px solid rgba(251,191,36,0.40); }
.pg-hero .pill.bad  { background: rgba(220,38,38,0.14);  color: #fca5a5; border: 1px solid rgba(220,38,38,0.40); }

.pg-card {
    background: #fff; border: 1px solid var(--rule);
    border-radius: 12px; padding: 22px 24px;
    box-shadow: 0 1px 2px rgba(11,36,71,0.06), 0 1px 3px rgba(11,36,71,0.04);
    margin-bottom: 18px;
}
.pg-card h2 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
    margin: 0 0 14px; color: var(--navy-900); position: relative; padding-bottom: 10px;
}
.pg-card h2::after { content:''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--blue-500); border-radius: 2px; }

.pg-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; font-size: 13px; }
.pg-kv > div { display: flex; flex-direction: column; gap: 2px; }
.pg-kv .k { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.pg-kv .v { color: var(--ink); font-weight: 500; word-break: break-word; }

.pg-btn {
    background: var(--navy-900); color: #fff; border: 1px solid var(--navy-900);
    border-radius: 8px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer; transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.pg-btn:hover { background: var(--navy-800); box-shadow: 0 8px 20px rgba(11,36,71,0.25); color: #fff; }
.pg-btn:active { transform: translateY(1px); }
.pg-btn.primary { background: var(--blue-600); border-color: var(--blue-600); }
.pg-btn.primary:hover { background: var(--blue-500); border-color: var(--blue-500); }
.pg-btn.ghost   { background: #fff; color: var(--navy-900); border-color: rgba(11,36,71,0.18); }
.pg-btn.ghost:hover { background: var(--ice-2); color: var(--navy-900); }
.pg-btn.sky     { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.pg-btn.sky:hover { background: #0284c7; border-color: #0284c7; color: #fff; }
.pg-btn.wine    { background: #dc2626; border-color: #dc2626; color: #fff; }
.pg-btn.wine:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.pg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.pg-table thead th {
    background: var(--ice-2); color: var(--slate);
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
    padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule);
}
.pg-table thead th.right { text-align: right; }
.pg-table tbody td { padding: 12px 14px; border-bottom: 1px dashed var(--rule); color: var(--ink); }
.pg-table tbody tr:hover td { background: var(--ice); }
.pg-table tbody td.num { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 14px; color: var(--slate); width: 34px; }
.pg-table tbody td.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--navy-900); }
.pg-table tfoot td {
    padding: 16px 14px; border-top: 2px solid var(--navy-900);
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 16px; color: var(--navy-900);
}
.pg-table tfoot td.amt { text-align: right; font-size: 20px; }

.pg-empty { padding: 14px 18px; background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.35); border-left: 3px solid #d97706; border-radius: 8px; color: #78350f; font-size: 13.5px; }
.pg-ok    { padding: 14px 18px; background: rgba(14,165,233,0.08);  border: 1px solid rgba(14,165,233,0.35); border-left: 3px solid #0284c7; border-radius: 8px; color: #0c4a6e; font-size: 13.5px; }
.pg-bad   { padding: 14px 18px; background: rgba(220,38,38,0.06);  border: 1px solid rgba(220,38,38,0.30); border-left: 3px solid #dc2626; border-radius: 8px; color: #991b1b; font-size: 13.5px; }

.pg-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 6px; }
.pg-input, .pg-select, .pg-textarea {
    background: #fff; border: 1px solid rgba(11, 36, 71, 0.18); border-radius: 8px;
    padding: 10px 12px; font-size: 14px; color: var(--ink); width: 100%;
    font-family: inherit; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.pg-input:focus, .pg-select:focus, .pg-textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.16); }

.pg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.pg-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; }
.pg-chip.paid    { background: rgba(34,197,94,0.14);  color: #166534; border: 1px solid rgba(34,197,94,0.35); }
.pg-chip.pending { background: rgba(251,191,36,0.14); color: #78350f; border: 1px solid rgba(251,191,36,0.38); }
.pg-chip.failed  { background: rgba(220,38,38,0.10);  color: #991b1b; border: 1px solid rgba(220,38,38,0.35); }
.pg-chip.info    { background: var(--ice-2);          color: var(--navy-900); border: 1px solid var(--rule); }

@keyframes pg-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pg-hero, .pg-card { animation: pg-rise 420ms cubic-bezier(.22,1,.36,1) both; }
.pg-card { animation-delay: 60ms; }
.pg-card + .pg-card { animation-delay: 120ms; }

/* Any green lingering from the base themes */
[style*="color:green"],
[style*="color: green"] { color: var(--blue-600) !important; }
[style*="background:green"],
[style*="background: green"],
[style*="background-color:green"],
[style*="background-color: green"] { background: var(--blue-600) !important; color: #fff !important; }

/* ====== ADMIN: cl-sidebar (Cloud-Admin template) — mirror the student sidebar aesthetic ====== */
.cl-sidebar,
.cl-sidebar .cl-navblock,
.cl-sidebar .menu-space,
.cl-sidebar .menu-space .content {
    background: #fff !important;
    box-shadow: none !important;
}
.cl-sidebar {
    border-right: 1px solid var(--rule);
}

.cl-sidebar .cl-vnavigation {
    padding: 6px 10px !important;
    margin: 0 !important;
    list-style: none;
    background: transparent !important;
}
.cl-sidebar .cl-vnavigation > li {
    border: none !important;
    margin: 0 0 2px !important;
    position: relative;
    background: transparent !important;
}
.cl-sidebar .cl-vnavigation > li > a,
.cl-sidebar .cl-vnavigation > li > .menuitem {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    color: var(--ink) !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 8px !important;
    margin: 0 !important;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.cl-sidebar .cl-vnavigation > li > a > i,
.cl-sidebar .cl-vnavigation > li > .menuitem > i,
.cl-sidebar .cl-vnavigation > li > a > .fa,
.cl-sidebar .cl-vnavigation > li > .menuitem > .fa {
    width: 18px !important;
    text-align: center;
    font-size: 14px !important;
    color: var(--blue-500) !important;
    transition: transform 200ms ease, color 200ms ease;
    margin: 0 !important;
}
.cl-sidebar .cl-vnavigation > li > a > span,
.cl-sidebar .cl-vnavigation > li > .menuitem > span {
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    flex: 1;
}

/* dropdown indicator for parent items with a submenu */
.cl-sidebar .cl-vnavigation > li:has(> .sub-menu) > .menuitem::after,
.cl-sidebar .cl-vnavigation > li:has(> .sub-menu) > a::after {
    content: '\f105';  /* fa-angle-right */
    font-family: 'FontAwesome';
    font-weight: 400;
    margin-left: auto;
    font-size: 14px;
    color: var(--slate);
    transition: transform 200ms ease, color 200ms ease;
}
.cl-sidebar .cl-vnavigation > li.open:has(> .sub-menu) > .menuitem::after,
.cl-sidebar .cl-vnavigation > li.active:has(> .sub-menu) > .menuitem::after,
.cl-sidebar .cl-vnavigation > li.open:has(> .sub-menu) > a::after {
    transform: rotate(90deg);
    color: var(--sky-300);
}
.cl-sidebar .cl-vnavigation > li:has(> .sub-menu):hover > .menuitem::after,
.cl-sidebar .cl-vnavigation > li:has(> .sub-menu):hover > a::after { color: var(--blue-500); }
.cl-sidebar .cl-vnavigation > li > a:hover,
.cl-sidebar .cl-vnavigation > li > .menuitem:hover {
    background: var(--ice-2) !important;
    color: var(--blue-600) !important;
    border-left-color: var(--blue-500) !important;
}
.cl-sidebar .cl-vnavigation > li > a:hover > i,
.cl-sidebar .cl-vnavigation > li > .menuitem:hover > i { transform: translateX(1px); }

.cl-sidebar .cl-vnavigation > li.active > a,
.cl-sidebar .cl-vnavigation > li.active > .menuitem,
.cl-sidebar .cl-vnavigation > li.open > .menuitem,
.cl-sidebar .cl-vnavigation > li > a.active {
    background: var(--navy-900) !important;
    color: #fff !important;
    border-left-color: var(--sky-300) !important;
}
.cl-sidebar .cl-vnavigation > li.active > a > i,
.cl-sidebar .cl-vnavigation > li.open > .menuitem > i { color: var(--sky-300) !important; }

/* submenus */
.cl-sidebar .cl-vnavigation .sub-menu {
    list-style: none !important;
    padding: 4px 0 8px 8px !important;
    margin: 2px 6px 6px 22px !important;
    background: var(--ice) !important;
    border-left: 2px solid var(--blue-500) !important;
    border-radius: 0 8px 8px 0;
}
.cl-sidebar .cl-vnavigation .sub-menu li { border: none !important; background: transparent !important; margin: 0 !important; }
.cl-sidebar .cl-vnavigation .sub-menu li a {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 12px !important;
    font-size: 12.5px !important;
    color: var(--slate) !important;
    font-weight: 400 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px;
    text-decoration: none !important;
    transition: color 160ms ease, background 160ms ease, padding-left 160ms ease;
}
.cl-sidebar .cl-vnavigation .sub-menu li a::before {
    content: '›';
    color: var(--blue-500);
    font-size: 12px;
    opacity: 0;
    transition: opacity 160ms ease;
}
.cl-sidebar .cl-vnavigation .sub-menu li a:hover {
    color: var(--blue-600) !important;
    background: transparent !important;
    padding-left: 18px !important;
}
.cl-sidebar .cl-vnavigation .sub-menu li a:hover::before { opacity: 1; }
.cl-sidebar .cl-vnavigation .sub-menu li a.active,
.cl-sidebar .cl-vnavigation .sub-menu li.active > a {
    color: var(--blue-600) !important;
    font-weight: 600 !important;
}
.cl-sidebar .cl-toggle {
    background: var(--navy-900) !important;
    color: var(--sky-300) !important;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cl-sidebar .cl-toggle i { color: var(--sky-300) !important; }

.cl-navblock .menu-space .content {
    padding: 0 !important;
    background: transparent !important;
}

.cl-sidebar .side-user {
    padding: 20px 18px 16px !important;
    background: linear-gradient(180deg, var(--ice-2) 0%, #fff 100%) !important;
    border-bottom: 1px solid var(--rule) !important;
}
.cl-sidebar .side-user .avatar {
    float: left;
    margin-right: 14px;
}
.cl-sidebar .side-user .avatar img {
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue-500), 0 6px 14px rgba(11,36,71,0.15) !important;
    object-fit: cover;
}
/* initials avatar - replaces the old static avatar image */
.cl-sidebar .side-user .avatar .pg-ini {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue-500), 0 6px 14px rgba(11,36,71,0.15);
    user-select: none;
}
/* status line: live green dot + role label */
.cl-sidebar .side-user .info .pg-status { display: inline-flex; align-items: center; gap: 6px; }
.cl-sidebar .side-user .info .pg-status .pg-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.20);
    display: inline-block;
}
.sb-collapsed .cl-sidebar .side-user .avatar .pg-ini { margin: 0 auto; }
.cl-sidebar .side-user .info a {
    font-family: 'Fraunces', serif !important;
    font-size: 14px !important; font-weight: 600 !important;
    color: var(--navy-900) !important;
    letter-spacing: -0.01em;
}
.cl-sidebar .side-user .info span {
    font-size: 10.5px !important;
    color: var(--blue-500) !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    font-weight: 600;
}
.cl-sidebar .side-user .info img { display: none; }

.cl-vnavigation {
    padding: 10px 8px !important;
    background: transparent !important;
    list-style: none;
    margin: 0;
}
.cl-vnavigation > li { border-bottom: none !important; }
.cl-vnavigation li a,
.cl-vnavigation .menuitem {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    color: var(--ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    border-radius: 8px !important;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    margin: 2px 0;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
    text-decoration: none;
    cursor: pointer;
}
.cl-vnavigation li a i,
.cl-vnavigation .menuitem i {
    color: var(--blue-500) !important;
    font-size: 13.5px;
    width: 18px;
    text-align: center;
    transition: transform 200ms ease;
}
.cl-vnavigation li a:hover,
.cl-vnavigation .menuitem:hover {
    background: var(--ice-2) !important;
    color: var(--blue-600) !important;
    border-left-color: var(--blue-500) !important;
}
.cl-vnavigation li a:hover i,
.cl-vnavigation .menuitem:hover i { transform: translateX(1px); }
.cl-vnavigation > li.active > a,
.cl-vnavigation > li.open > .menuitem,
.cl-vnavigation > li > a.active {
    background: var(--navy-900) !important;
    color: #fff !important;
    border-left-color: var(--sky-300) !important;
    border-radius: 8px !important;
}
.cl-vnavigation > li.active > a i,
.cl-vnavigation > li.open > .menuitem i { color: var(--sky-300) !important; }

.cl-vnavigation .sub-menu {
    list-style: none; padding: 4px 0 6px 8px !important;
    margin: 2px 0 4px 18px !important;
    background: var(--ice) !important;
    border-left: 2px solid var(--blue-500) !important;
    border-radius: 0 8px 8px 0;
}
.cl-vnavigation .sub-menu li a {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    color: var(--slate) !important;
    font-weight: 400 !important;
    border-left: none !important;
    border-radius: 6px;
    margin: 0;
    display: block !important;
}
.cl-vnavigation .sub-menu li a::before { content: ''; }
.cl-vnavigation .sub-menu li a:hover {
    color: var(--blue-600) !important;
    background: transparent !important;
    padding-left: 18px !important;
}

.sb-collapsed .cl-sidebar .side-user .avatar { float: none; margin: 0 auto; }
.sb-collapsed .cl-vnavigation li a,
.sb-collapsed .cl-vnavigation .menuitem { justify-content: center; padding: 12px 6px !important; }

.collapse-button {
    padding: 10px !important;
    background: var(--ice-2) !important;
    border-top: 1px solid var(--rule) !important;
}
.collapse-button .form-control.search {
    background: #fff !important;
    border: 1px solid var(--rule-2) !important;
    border-radius: 999px !important;
    padding: 7px 14px !important;
    font-size: 12.5px;
    box-shadow: none;
}
.collapse-button .form-control.search:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.16) !important;
}
.collapse-button .btn-default {
    background: var(--navy-900) !important;
    border-color: var(--navy-900) !important;
    border-radius: 999px !important;
    width: 32px; height: 32px; padding: 0;
}
.collapse-button .btn-default i { color: var(--sky-300) !important; }

/* ====== ADMIN: tables inside .block ====== */
.cl-mcont .block .content table,
.cl-mcont table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px;
}
.cl-mcont .block .content table td,
.cl-mcont .block .content table th {
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 1px solid var(--rule) !important;
    vertical-align: middle !important;
    background: transparent;
}
/* header row (id=headrow or class=headrow) */
.cl-mcont .block .content #headrow,
.cl-mcont .block .content .headrow,
.cl-mcont .block .content #headrow td,
.cl-mcont .block .content .headrow td {
    background: var(--navy-900) !important;
    color: #fff !important;
    font-family: 'Fraunces', serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 14px !important;
    border: none !important;
}
.cl-mcont .block .content #headrow td:first-child,
.cl-mcont .block .content .headrow td:first-child { border-top-left-radius: 8px; }
.cl-mcont .block .content #headrow td:last-child,
.cl-mcont .block .content .headrow td:last-child  { border-top-right-radius: 8px; }

/* sub-header rows (those with bgcolor="#d1d1d1" / "#f1f1f1") */
.cl-mcont .block .content table tr td[bgcolor="#d1d1d1"],
.cl-mcont .block .content table tr td[bgcolor="#f1f1f1"] {
    background: var(--ice-2) !important;
    color: var(--navy-900) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    padding: 10px 12px !important;
}

.cl-mcont .block .content table tbody tr.odd td,
.cl-mcont .block .content table tbody tr td {
    color: var(--ink) !important;
    font-variant-numeric: tabular-nums;
}
.cl-mcont .block .content table tbody tr:hover td { background: var(--ice) !important; }
.cl-mcont .block .content table td.faclist,
.cl-mcont .block .content table td.faclist strong {
    font-family: 'Fraunces', serif !important;
    font-weight: 600 !important;
    color: var(--navy-900) !important;
}

/* Total row */
.cl-mcont .block .content table tr.odd:last-child td,
.cl-mcont .block .content table tbody tr:last-child td {
    background: var(--ice-2) !important;
    font-family: 'Fraunces', serif !important;
    font-weight: 600 !important;
    color: var(--navy-900) !important;
    border-bottom: 2px solid var(--navy-900) !important;
}

/* scrollable wrapper for wide tables */
.cl-mcont .block .content { overflow-x: auto; }

/* ── Brand badge ─────────────────────────────────────────────
   Full-colour crest inset in a white circle. Required treatment
   wherever the crest appears on a navy surface. */
.ksp-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ksp-teal-300), 0 2px 6px rgba(0,0,0,0.25);
  flex: 0 0 auto;
  overflow: hidden;
}
.ksp-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* cancel the legacy .navbar-brand img ring so it does not double up */
  box-shadow: none !important;
  border-radius: 0 !important;
}
.ksp-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}
.ksp-brand-lockup .ksp-brand-text {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ksp-brand-lockup .ksp-brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ksp-teal-300);
  font-weight: 500;
}
@media (max-width: 767px) {
  .ksp-brand-badge { width: 34px; height: 34px; }
  .ksp-brand-lockup .ksp-brand-text small { display: none; }
}

/* Bootstrap pins .navbar-brand to height:50px with float:left, which is
   shorter than the 42px badge + padding the lockup needs — so the brand
   rendered top-aligned in a taller bar. Let it size to its content and
   centre it. */
.navbar-brand.ksp-brand-lockup,
.main-header .navbar-brand.ksp-brand-lockup {
  float: none;
  height: auto;
  min-height: 0;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
}
.main-header .navbar-header,
.navbar-default .navbar-header {
  display: flex;
  align-items: center;
  min-height: 62px;
}
/* Turning .navbar-header into a flex container makes Bootstrap's
   float:right on .navbar-toggle a no-op — flex items lay out in source
   order instead. The admin/student headers use Bootstrap's own markup
   order (toggle button before the brand link), while the applicant
   header has brand before toggle, so a plain margin-left:auto on the
   toggle is not enough on its own: it would keep the toggle glued to
   the left next to the brand on admin/student. Force the visual order
   explicitly so the brand is always first (left) and the toggle is
   always last (right), regardless of markup order. */
.main-header .navbar-header .navbar-brand,
.navbar-default .navbar-header .navbar-brand { order: 1; }
.main-header .navbar-header .navbar-toggle,
.navbar-default .navbar-header .navbar-toggle {
  order: 2;
  margin-left: auto;
  float: none;
}
@media (max-width: 767px) {
  .main-header .navbar-header,
  .navbar-default .navbar-header { min-height: 54px; }
  .navbar-brand.ksp-brand-lockup,
  .main-header .navbar-brand.ksp-brand-lockup { padding: 8px 12px; }
}

/* ── AdminLTE header (applicant module) ──────────────────────
   The applicant portal uses AdminLTE's .main-header/.navbar-static-top
   markup, which none of the .navbar-default rules above reach. */
.main-header .navbar,
.main-header .navbar-static-top,
.navbar.navbar-static-top {
  background: linear-gradient(180deg, var(--ksp-navy-900) 0%, var(--ksp-navy) 100%) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 2px 8px rgba(0,33,71,0.25);
}
.main-header .navbar .nav > li > a,
.main-header .navbar .navbar-nav > li > a {
  color: #fff !important;
}
.main-header .navbar .nav > li > a:hover,
.main-header .navbar .nav > li > a:focus,
.main-header .navbar .navbar-nav > li.active > a {
  background: rgba(255,255,255,0.08) !important;
  color: var(--ksp-teal-300) !important;
}
.main-header .navbar .navbar-toggle {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.main-header .navbar .navbar-toggle .fa { color: #fff; }
/* search box inside the header */
.main-header .navbar .navbar-form .form-control {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.main-header .navbar .navbar-form .form-control::placeholder {
  color: rgba(255,255,255,0.65);
}
/* AdminLTE logo slot, if a layout ever uses it */
.main-header .logo {
  background: var(--ksp-navy-900) !important;
  color: #fff !important;
  border-bottom: none !important;
}

/* ==========================================================================
   APPLICANT PORTAL — wizard shell and stepper
   --------------------------------------------------------------------------
   The applicant journey is a linear, one-time task for an external user, not
   a dashboard for a returning one. So it gets a stepper-led shell rather than
   the cl-sidebar layout the student and admin portals use.

   This is also what removes the duplicate navigation: the module this replaced
   listed the same seven steps in a sidebar AND a breadcrumb, in different
   orders with different labels. Here the stepper IS the navigation, so there
   is only one list and it is generated from config/applicationsteps.php.

   Everything below consumes the tokens already declared in :root at the top of
   this file. No new colours are introduced.
   ========================================================================== */

/* ---------------------------------------------------------------- shell --- */

.ap-body {
    margin: 0;
    min-height: 100vh;
    background: var(--ice);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ap-topbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--ksp-navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.ap-topbar-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
}

.ap-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; }
.ap-brand img {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 50%; background: #fff; padding: 4px;
    object-fit: contain;
    box-shadow: 0 0 0 2px var(--ksp-teal-300);
}
.ap-brand .name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-brand .name small {
    display: block;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ksp-teal-300); margin-top: 1px;
}

.ap-user { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.ap-user .who { text-align: right; line-height: 1.25; min-width: 0; }
.ap-user .who .nm { display: block; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ap-user .who .id { display: block; color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.06em; }
.ap-user .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    display: flex; align-items: center; justify-content: center;
}
.ap-user .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-signout {
    color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none;
    padding: 7px 12px; border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 150ms ease, color 150ms ease;
    white-space: nowrap;
}
.ap-signout:hover { background: rgba(255,255,255,0.10); color: #fff; text-decoration: none; }

.ap-main { max-width: 1140px; margin: 0 auto; padding: 24px 24px 64px; }

@media (max-width: 640px) {
    .ap-topbar-inner { padding: 10px 14px; gap: 10px; }
    .ap-main { padding: 16px 14px 48px; }
    .ap-brand .name { font-size: 14px; }
    .ap-user .who { display: none; }
}

/* --------------------------------------------------------------- stepper --- */

.pg-steps-wrap {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 18px 20px 14px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.pg-steps-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.pg-steps-head .lbl {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--slate);
}
.pg-steps-head .cnt { font-size: 13px; color: var(--slate); font-weight: 500; }
.pg-steps-head .cnt b { color: var(--navy-900); font-weight: 600; }

/* progress meter — the honest summary, always visible even when the rail
   scrolls out of view on a narrow screen */
.pg-progress {
    height: 5px; border-radius: 999px;
    background: var(--ice-2); overflow: hidden; margin-bottom: 16px;
}
.pg-progress > i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--ksp-teal), var(--ksp-teal-300));
    transition: width 400ms cubic-bezier(.22,1,.36,1);
}

.pg-steps {
    list-style: none; margin: 0; padding: 0 0 4px;
    display: flex; gap: 0;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.pg-steps::-webkit-scrollbar { height: 4px; }
.pg-steps::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 4px; }

.pg-steps > li {
    flex: 1 1 0; min-width: 104px;
    position: relative; text-align: center;
    margin: 0; padding: 0;
}

/* connector — drawn behind the dot, trimmed at the two ends of the rail */
.pg-steps > li::before {
    content: ''; position: absolute;
    top: 17px; left: 0; right: 0; height: 2px;
    background: var(--ice-2);
}
.pg-steps > li:first-child::before { left: 50%; }
.pg-steps > li:last-child::before  { right: 50%; }
.pg-steps > li.is-done::before     { background: var(--ksp-teal-300); }

.pg-steps > li > a,
.pg-steps > li > span {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 0 6px; text-decoration: none; color: var(--slate);
}

.pg-steps .dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 2px solid var(--rule-2);
    color: var(--slate-2);
    font-size: 13px; font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.pg-steps .txt {
    font-size: 12px; font-weight: 500; line-height: 1.3;
    color: var(--slate);
    max-width: 100%;
}

/* done */
.pg-steps > li.is-done .dot {
    background: var(--ksp-teal); border-color: var(--ksp-teal); color: #fff;
}
.pg-steps > li.is-done .txt { color: var(--navy-900); }

/* current — ring, so it reads as "you are here" rather than "finished" */
.pg-steps > li.is-current .dot {
    background: var(--navy-800); border-color: var(--navy-800); color: #fff;
    box-shadow: 0 0 0 4px rgba(0,33,71,0.12);
}
.pg-steps > li.is-current .txt { color: var(--navy-900); font-weight: 600; }

/* locked — visible but plainly unavailable. The module this replaced hid
   locked steps entirely, so an unpaid applicant saw an almost empty portal
   and no indication of what the process involved. */
.pg-steps > li.is-locked .dot {
    background: var(--ice); border-color: var(--rule); color: var(--slate-2);
    border-style: dashed;
}
.pg-steps > li.is-locked .txt { color: var(--slate-2); }
.pg-steps > li.is-locked > span { cursor: not-allowed; }

.pg-steps > li > a:hover .dot { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pg-steps > li > a:focus-visible { outline: none; }
.pg-steps > li > a:focus-visible .dot { outline: 3px solid var(--ksp-teal-300); outline-offset: 2px; }

@media (max-width: 640px) {
    .pg-steps > li { min-width: 88px; }
    .pg-steps .txt { font-size: 11px; }
    .pg-steps .dot { width: 32px; height: 32px; font-size: 12px; }
    .pg-steps > li::before { top: 15px; }
}

/* ------------------------------------------------------------ step footer --- */
/* Back / Continue. The module this replaced rendered "Back" as a
   <button type="submit">, so pressing it submitted the form it was meant to
   leave. Back is a link here; only Continue submits. */

.pg-stepnav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--rule);
}
.pg-stepnav .spacer { flex: 1 1 auto; }
.pg-stepnav .pg-btn { min-width: 128px; justify-content: center; }

@media (max-width: 520px) {
    .pg-stepnav { flex-direction: column-reverse; align-items: stretch; }
    .pg-stepnav .pg-btn { width: 100%; }
}

/* ----------------------------------------------------------- locked panel --- */

.pg-locked {
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed var(--rule-2);
    border-radius: 12px;
    background: var(--ice);
}
.pg-locked .ic {
    width: 52px; height: 52px; margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff; border: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
    color: var(--ksp-orange); font-size: 20px;
}
.pg-locked h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px; font-weight: 600; color: var(--navy-900);
    margin: 0 0 8px;
}
.pg-locked p { color: var(--slate); font-size: 14px; max-width: 460px; margin: 0 auto 20px; line-height: 1.6; }

/* --------------------------------------------------------------- notices --- */

.pg-note {
    border-radius: 9px; padding: 12px 16px;
    font-size: 13.5px; line-height: 1.5;
    border: 1px solid transparent; margin-bottom: 16px;
    display: flex; gap: 10px; align-items: flex-start;
}
.pg-note .fa { margin-top: 2px; flex: 0 0 auto; }
.pg-note.ok   { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.32);  color: #14532d; }
.pg-note.bad  { background: rgba(220,38,38,0.06);  border-color: rgba(220,38,38,0.30);  color: #991b1b; }
.pg-note.warn { background: rgba(196,104,26,0.08); border-color: rgba(196,104,26,0.35); color: #8a4712; }
.pg-note.info { background: rgba(29,83,144,0.06);  border-color: rgba(29,83,144,0.28);  color: var(--blue-600); }

/* --------------------------------------------------------------- form aid --- */

.pg-field { margin-bottom: 16px; }
.pg-field .hint { display: block; margin-top: 5px; font-size: 12px; color: var(--slate-2); line-height: 1.45; }
.pg-field.req .pg-label::after { content: ' *'; color: #dc2626; }

.pg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }

/* pg-form: lets a table-free form reuse CodeIgniter's form helpers unchanged.
   form_dropdown()/form_input() emit class="form-control"; inside .pg-form they
   pick up the same rounded, full-width look as .pg-input/.pg-select. */
.pg-form .form-control,
.pg-card form .form-control,
.pg-form .pg-input, .pg-form .pg-select, .pg-form .pg-textarea { width: 100%; }
.pg-form select.form-control, .pg-card form select.form-control, .pg-card form select,
.pg-form input.form-control,  .pg-card form input[type="text"], .pg-card form input[type="number"],
.pg-card form input[type="email"], .pg-card form input[type="password"], .pg-card form input[type="date"],
.pg-form textarea.form-control, .pg-card form textarea {
    border: 1px solid rgba(11, 36, 71, 0.18);
    border-radius: 8px;
    padding: 10px 12px;
    height: auto;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.pg-form select.form-control:focus, .pg-card form select:focus,
.pg-form input.form-control:focus,  .pg-card form input:focus,
.pg-form textarea.form-control:focus, .pg-card form textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.16);
}

/* ------------------------------------------------------------ fee summary --- */

.pg-fee {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid var(--rule);
    border-radius: 11px;
    background: #fff;
    margin-bottom: 12px;
}
.pg-fee .meta { min-width: 0; }
.pg-fee .meta .t { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.pg-fee .meta .d { font-size: 12.5px; color: var(--slate); margin-top: 3px; }
.pg-fee .amt {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px; font-weight: 600; color: var(--navy-900);
    white-space: nowrap;
}
.pg-fee.is-paid { background: rgba(34,197,94,0.04); border-color: rgba(34,197,94,0.30); }

@media (prefers-reduced-motion: reduce) {
    .pg-progress > i,
    .pg-steps .dot { transition: none; }
}

/* ---------------------------------------------------------------- footer --- */

.ap-foot {
    border-top: 1px solid var(--rule);
    background: #fff;
    margin-top: 40px;
}
.ap-foot-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px 24px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--slate);
}
.ap-foot-inner a { color: var(--blue-600); text-decoration: none; }
.ap-foot-inner a:hover { color: var(--blue-500); text-decoration: underline; }

@media (max-width: 640px) {
    .ap-foot-inner { padding: 16px 14px; flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   APPLICANT PORTAL — account shell (sign in, register, recover)
   --------------------------------------------------------------------------
   Lifted out of applicant/views/index/indexview.php, where it lived as ~180
   lines of inline <style>. Because it was inline, the registration page could
   not reuse it: register sat in the legacy AdminLTE shell and looked like a
   different product from the sign-in page one click away.

   Consumes the :root tokens declared at the top of this file.
   ========================================================================== */

.ap-login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}
@media (max-width: 960px) {
    .ap-login-shell { grid-template-columns: 1fr; }
    .ap-login-shell .ap-login-hero { min-height: 300px; }
}

/* ------------------------------------------------------------------ hero --- */

.ap-login-hero {
    position: relative;
    padding: 56px 64px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 20% 0%,   rgba(125,211,252,0.22), transparent 60%),
        radial-gradient(900px 600px at 110% 110%, rgba(37,99,235,0.25),   transparent 55%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.ap-login-hero::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: .9;
    background-size: 120px 120px;
    background-image:
        radial-gradient(1px 1px   at 18% 30%, rgba(255,255,255,0.22) 50%, transparent 51%),
        radial-gradient(1px 1px   at 72% 62%, rgba(255,255,255,0.15) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 42% 82%, rgba(255,255,255,0.18) 50%, transparent 51%),
        radial-gradient(1px 1px   at 88% 18%, rgba(255,255,255,0.12) 50%, transparent 51%);
}

.ap-login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.ap-login-brand img {
    width: 58px; height: 58px; border-radius: 50%;
    background: #fff; padding: 5px; object-fit: contain;
    box-shadow: 0 0 0 2px var(--sky-300), 0 10px 30px rgba(0,0,0,0.25);
}
.ap-login-brand .wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
}
.ap-login-brand .wordmark small {
    display: block; margin-top: 2px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sky-300);
}

.ap-login-lede {
    position: relative; z-index: 2; margin-top: 64px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500; font-size: 46px; line-height: 1.1;
    letter-spacing: -0.02em; max-width: 560px;
}
.ap-login-lede em { font-style: italic; color: var(--sky-300); font-weight: 600; }
.ap-login-sub {
    position: relative; z-index: 2; margin-top: 18px; max-width: 480px;
    color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.6;
}

.ap-guide { position: relative; z-index: 2; margin-top: 40px; max-width: 480px; }
.ap-guide h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 13px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--sky-300); margin: 0 0 14px;
}
.ap-guide ol { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.ap-guide li {
    counter-increment: step;
    padding: 10px 0 10px 42px; position: relative;
    color: rgba(255,255,255,0.86); font-size: 14px; line-height: 1.55;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ap-guide li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 10px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 13px;
    color: var(--sky-300); letter-spacing: 0.02em;
}
.ap-guide li:last-child { border-bottom: none; }
.ap-guide li .note {
    display: block; margin-top: 6px;
    font-size: 12.5px; font-weight: 500; color: var(--ksp-orange);
}

.ap-login-foot {
    position: absolute; bottom: 28px; left: 64px; right: 64px; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    justify-content: space-between; align-items: center;
    color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing: 0.04em;
}
.ap-login-foot a { color: var(--sky-300); text-decoration: none; }
.ap-login-foot a:hover { color: #fff; }

@media (max-width: 960px) {
    .ap-login-hero { padding: 36px 28px 28px; }
    .ap-login-lede { margin-top: 32px; font-size: 32px; }
    .ap-guide { display: none; }
    .ap-login-foot { position: static; margin-top: 24px; left: auto; right: auto; }
}

/* ------------------------------------------------------------------ card --- */

.ap-login-form { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }

.ap-card {
    width: 100%; max-width: 420px;
    position: relative;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 48px -16px rgba(11,36,71,0.20), 0 8px 16px rgba(11,36,71,0.06);
}
/* the register form is wider — two columns of fields */
.ap-card.wide { max-width: 620px; }

.ap-card::before {
    content: '';
    position: absolute; top: -10px; left: 36px;
    width: 60px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--sky-300));
}
.ap-card-mark {
    width: 88px; height: 88px; margin: -4px auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff;
    border: 1px solid var(--rule);
    box-shadow: 0 6px 18px rgba(0,33,71,0.10);
}
.ap-card-mark img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }

.ap-card h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 28px; letter-spacing: -0.015em;
    margin: 0 0 6px; color: var(--navy-900);
}
.ap-card .muted { color: var(--slate); font-size: 14px; margin: 0 0 24px; }

.ap-card .msg {
    border-radius: 8px; padding: 10px 14px;
    font-size: 13.5px; margin-bottom: 14px; line-height: 1.45;
    border: 1px solid transparent;
}
.ap-card .msg.error  { background: rgba(220,38,38,0.06);  border-color: rgba(220,38,38,0.30);  color: #991b1b; }
.ap-card .msg.info   { background: rgba(29,83,144,0.06);  border-color: rgba(29,83,144,0.30);  color: var(--blue-600); }
.ap-card .msg.ok     { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.32);  color: #14532d; }
.ap-card .msg.notice { background: rgba(196,104,26,0.08); border-color: rgba(196,104,26,0.35); color: #8a4712; }
.ap-card .msg ul { margin: 0; padding-left: 18px; }

.ap-card label.fld {
    display: block; margin: 14px 0 6px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
}
.ap-card label.fld.req::after { content: ' *'; color: #dc2626; }

/* Inputs are full-width. The old register form hardcoded style="width:300px"
   on all seven fields, so they could not shrink on a phone. */
.ap-card .input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--rule-2);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ap-card .input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.16);
}
.ap-card .hint { display: block; margin-top: 5px; font-size: 12px; color: var(--slate-2); line-height: 1.45; }

.ap-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .ap-card .cols { grid-template-columns: 1fr; } }

.ap-card .row-flex {
    display: flex; justify-content: space-between; align-items: center;
    margin: 18px 0 22px; font-size: 13px;
}
.ap-card .row-flex a { color: var(--blue-600); text-decoration: none; font-weight: 500; }
.ap-card .row-flex a:hover { color: var(--blue-500); }

.ap-card .btn-primary {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--navy-900); color: #fff;
    border: 1px solid var(--navy-900); border-radius: 8px;
    padding: 13px 18px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 600; font-size: 14.5px; letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}
.ap-card .btn-primary:hover { background: var(--navy-800); box-shadow: 0 8px 20px rgba(11,36,71,0.25); }
.ap-card .btn-primary:active { transform: translateY(1px); }
.ap-card .btn-primary .fa { color: var(--sky-300); }
.ap-card .input:focus-visible,
.ap-card .btn-primary:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }

.ap-card-links { text-align: center; margin-top: 18px; font-size: 13px; }
.ap-card-links a { color: var(--blue-600); text-decoration: none; font-weight: 500; }
.ap-card-links a:hover { color: var(--blue-500); }

.ap-card-foot {
    text-align: center; margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--rule);
    color: var(--slate); font-size: 12.5px;
}
.ap-card-foot strong { color: var(--navy-900); font-weight: 600; }

@media (max-width: 960px) { .ap-login-form { padding: 32px 20px 48px; } }

/* entrance */
@keyframes ap-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ap-card, .ap-login-brand, .ap-login-lede, .ap-login-sub, .ap-guide {
    animation: ap-rise 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ap-login-brand { animation-delay: 40ms; }
.ap-login-lede  { animation-delay: 120ms; }
.ap-login-sub   { animation-delay: 180ms; }
.ap-guide       { animation-delay: 240ms; }
.ap-card        { animation-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
    .ap-card, .ap-login-brand, .ap-login-lede, .ap-login-sub, .ap-guide { animation: none; }
}

/* ------------------------------------------------------- uploaded docs --- */
/* Applicants need to see what they actually uploaded, not just its name. */

.pg-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.pg-upload { margin: 0; }
.pg-upload a { display: block; text-decoration: none; }
.pg-upload .thumb {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 130px;
    object-fit: cover;
    border: 1px solid var(--rule);
    border-radius: 9px;
    background: var(--ice-2);
    transition: box-shadow 160ms ease, transform 160ms ease;
}
.pg-upload .thumb.pdf { font-size: 40px; color: #b91c1c; }
.pg-upload a:hover .thumb { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pg-upload a:focus-visible .thumb { outline: 3px solid var(--ksp-teal-300); outline-offset: 2px; }
.pg-upload figcaption { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pg-upload figcaption .nm { font-size: 12.5px; font-weight: 600; color: var(--navy-900); word-break: break-word; line-height: 1.35; }

/* ================================================================== *
 *  List / report tables, DataTables controls & pagination (global)
 *  Restyles the legacy .table-bordered lists and the DataTables chrome
 *  so every list/report page matches the pg-* design without per-page
 *  edits. Does not touch .pg-table (already styled) or form tables.
 * ================================================================== */

/* legacy .table-bordered listings -> clean, aligned with pg-table */
.content .table.table-bordered,
.table-responsive .table.table-bordered {
    border: 1px solid var(--rule);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}
.content .table.table-bordered thead th,
.table-responsive .table.table-bordered thead th {
    background: var(--ice-2) !important;
    color: var(--slate) !important;
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600; border: none !important; border-bottom: 1px solid var(--rule) !important;
    padding: 12px; vertical-align: middle;
}
.content .table.table-bordered tbody td,
.table-responsive .table.table-bordered tbody td {
    border: none !important; border-bottom: 1px dashed var(--rule) !important;
    padding: 10px 12px; vertical-align: middle; color: var(--ink);
}
.content .table.table-bordered tbody tr:hover td { background: var(--ice); }

/* DataTables control bar */
.dataTables_wrapper { margin-top: 6px; }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--ink);
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.16);
}
.dataTables_wrapper .dataTables_info { color: var(--slate-2); font-size: 12.5px; padding-top: 12px; }

/* export buttons (copy / excel / pdf) */
.dt-buttons .dt-button,
.dt-panelmenu .dt-button {
    background: #fff; border: 1px solid var(--rule-2); border-radius: 8px;
    padding: 6px 12px; margin-right: 6px; color: var(--navy-900); font-size: 12.5px; font-weight: 500;
}
.dt-buttons .dt-button:hover,
.dt-panelmenu .dt-button:hover { background: var(--ice-2); border-color: var(--blue-500); color: var(--blue-600); }

/* pagination — DataTables paginate + CodeIgniter $links wrapped in .pg-pagination */
.pg-pagination { margin: 14px 0 2px; }
/* CI's full_tag_open is often '<p>', so links arrive wrapped in an inner <p>;
   strip its default margin so the button row sits flush in the .pg-pagination box. */
.pg-pagination p { margin: 0; }
.dataTables_paginate .paginate_button,
.pg-pagination a,
.pg-pagination strong,
.pg-pagination .current {
    display: inline-block; min-width: 34px; text-align: center;
    padding: 6px 11px; margin: 0 2px; border-radius: 8px;
    border: 1px solid var(--rule); background: #fff; color: var(--navy-900) !important;
    font-size: 13px; text-decoration: none !important; cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.dataTables_paginate .paginate_button:hover,
.pg-pagination a:hover { background: var(--ice-2); border-color: var(--blue-500); color: var(--blue-600) !important; }
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover,
.pg-pagination strong,
.pg-pagination .current {
    background: var(--navy-900); border-color: var(--navy-900); color: #fff !important;
}
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    opacity: .45; cursor: default; background: #fff; border-color: var(--rule); color: var(--slate-2) !important;
}
