/* PINDICS — Professional Admin UI  */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --sidebar-bg:      #0f172a;
  --sidebar-active:  #1d4ed8;
  --sidebar-hover:   rgba(255,255,255,.07);
  --sidebar-text:    rgba(255,255,255,.65);
  --sidebar-width:   240px;
  --sidebar-slim:    64px;

  --topbar-h:        60px;

  --app-bg:          #f1f5f9;
  --surface:         #ffffff;
  --border:          #e2e8f0;
  --ink:             #0f172a;
  --muted:           #64748b;
  --primary:         #1d4ed8;
  --primary-lt:      #eff6ff;
  --success:         #059669;
  --warning:         #d97706;
  --danger:          #dc2626;
  --info:            #0891b2;
  --accent:          #7c3aed;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 20px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);

  --r-sm:  8px;
  --r-md: 12px;
  --r-lg: 16px;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--app-bg);
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── App shell ────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #15203a 0%, #0f172a 55%, #0b1120 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  transition: width .22s ease;
  overflow: hidden;
}

.app-sidebar.slim { width: var(--sidebar-slim); }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  flex-shrink: 0;
}

/* ── Sidebar Logo ─────────────────────────────────────────── */
.sidebar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  padding: 2px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .18s;
  overflow: hidden;
}

.brand-school {
  font-weight: 700;
  font-size: .78rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.brand-sub {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-sidebar.slim .brand-name { opacity: 0; pointer-events: none; }
.app-sidebar.slim .sidebar-logo { width: 36px; height: 36px; }

.sidebar-nav {
  flex: 1;
  padding: .75rem .6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-label {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.28);
  padding: .8rem .6rem .25rem;
  white-space: nowrap;
  transition: opacity .18s;
}

.app-sidebar.slim .sidebar-label { opacity: 0; }

.s-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .75rem;
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .14s, color .14s;
}

.s-link { position: relative; }
.s-link i {
  font-size: 1.02rem; flex-shrink: 0; width: 18px; text-align: center;
  color: rgba(255,255,255,.5);
  transition: color .14s, transform .14s;
}

.s-link:hover  { background: var(--sidebar-hover); color: #fff; }
.s-link:hover i { color: #93c5fd; transform: translateX(1px); }

.s-link.active {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(29,78,216,.38);
}
.s-link.active i { color: #fff; }
.s-link.active::before {
  content: ""; position: absolute; left: -.6rem; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 62%;
  border-radius: 0 4px 4px 0;
  background: #bfdbfe;
}
.app-sidebar.slim .s-link.active::before { display: none; }

/* Slim, themed scrollbar for the nav */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 99px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.s-link-text { transition: opacity .18s; }
.app-sidebar.slim .s-link-text { opacity: 0; width: 0; overflow: hidden; }
.app-sidebar.slim .s-link { justify-content: center; padding: .6rem; }

.sidebar-footer {
  padding: .6rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-footer .s-link:hover {
  background: rgba(220,38,38,.14);
  color: #fca5a5 !important;
}
.sidebar-footer .s-link:hover i { color: #fca5a5; }

/* ── Content wrapper ──────────────────────────────────────── */
.app-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .22s ease;
}

.app-content.wide { margin-left: var(--sidebar-slim); }

/* ── Fully-collapsed sidebar (max reading width) ──────────── */
.app-sidebar.collapsed {
  width: 0 !important;
  min-width: 0;
  border-right: none;
  overflow: hidden;
}
.app-content.expanded { margin-left: 0 !important; }

/* ── Topbar ───────────────────────────────────────────────── */
.app-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.25rem;
  padding: .3rem .45rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  line-height: 1;
  transition: background .12s;
}

.sidebar-toggle:hover { background: var(--app-bg); color: var(--ink); }

.topbar-page-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}

.user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.role-pill {
  font-size: .68rem;
  font-weight: 600;
  background: var(--primary-lt);
  color: var(--primary);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.user-menu .btn:focus { box-shadow: none; }

/* ── Main / Footer ────────────────────────────────────────── */
.app-main { flex: 1; padding: 1.5rem; }

.app-footer {
  padding: .85rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ── Page header ──────────────────────────────────────────── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.45rem; font-weight: 800; color: var(--ink); margin: 0 0 .2rem; }
.section-kicker {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--info);
  margin-bottom: .25rem;
}

/* ── Metric cards ─────────────────────────────────────────── */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .15s, transform .15s;
}

.metric-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.metric-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.mi-blue   { background: #eff6ff; color: #1d4ed8; }
.mi-green  { background: #ecfdf5; color: #059669; }
.mi-orange { background: #fffbeb; color: #d97706; }
.mi-red    { background: #fef2f2; color: #dc2626; }
.mi-purple { background: #f5f3ff; color: #7c3aed; }

/* ── RO discrepancy highlight ─────────────────────────────── */
tr.rating-discrepancy {
  background: #fffbeb !important;
  border-left: 3px solid #d97706;
}
tr.rating-discrepancy td:first-child::after {
  content: ' ⚠ Discrepancy';
  display: block;
  font-size: .65rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .25rem;
}

/* ── Assessment accordion ─────────────────────────────────── */
.accordion-button {
  font-size: .875rem !important;
  font-weight: 600 !important;
  padding-top: .65rem !important;
  padding-bottom: .65rem !important;
}

.ps-label { font-size: .875rem; }

/* ── Quick Action buttons ─────────────────────────────────── */
.qa-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.mi-teal   { background: #ecfeff; color: #0891b2; }

.metric-body { min-width: 0; }
.metric-body strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.metric-body span   { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  border-radius: var(--r-md) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}

.app-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface);
}

.app-card .card-header, .card-header {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
}

.assessment-card .card-header {
  background: var(--primary) !important;
  color: #fff;
  border: none;
}

/* ── Tables ───────────────────────────────────────────────── */
.table { font-size: .865rem; }

.table thead th {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border) !important;
  padding: .65rem .75rem;
}

.table td { padding: .65rem .75rem; vertical-align: middle; }
.table-hover tbody tr:hover td { background: #f8fafc; }

.table-responsive { border-radius: var(--r-md); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { font-weight: 500; font-size: .85rem; border-radius: var(--r-sm); }
.btn-primary    { background: var(--primary);  border-color: var(--primary); }
.btn-primary:hover { background: #1e3a8a; border-color: #1e3a8a; }
.btn-success    { background: var(--success);  border-color: var(--success); }
.btn-success:hover  { background: #047857; border-color: #047857; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ── Badges ───────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: .71rem; border-radius: 6px; padding: .3em .55em; }
.badge-status { min-width: 88px; display: inline-block; text-align: center; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item.active { color: var(--muted); }

/* ── Form controls ────────────────────────────────────────── */
.form-control, .form-select { border-radius: var(--r-sm); border-color: var(--border); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
textarea.form-control { line-height: 1.6; }

/* ── Rating legend ────────────────────────────────────────── */
.rating-legend-item { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .78rem; font-weight: 600; color: var(--muted); }
.rating-legend-item strong, .rating-head { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: .74rem; }
.rating-legend-1 strong, .rating-head-1 { background: #dc2626; }
.rating-legend-2 strong, .rating-head-2 { background: #d97706; }
.rating-legend-3 strong, .rating-head-3 { background: var(--primary); }
.rating-legend-4 strong, .rating-head-4 { background: #059669; }

/* ── Assessment ───────────────────────────────────────────── */
.assessment-header { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.15rem 1.5rem; box-shadow: var(--shadow-sm); }
.assessment-table { --bs-table-border-color: var(--border); }
.assessment-table thead th { background: #f8fafc; color: var(--muted); border-bottom: 1px solid var(--border); }
.assessment-table .indicator-col { min-width: 300px; }
.ps-indicator-col { min-width: 260px; }
.ps-rating-col { min-width: 230px; width: 242px; }
.ps-evidence-col { min-width: 200px; }

/* Unified dashboard language ------------------------------------------------ */
.dashboard-page { --dash-blue:#1d4ed8; --dash-ink:#172033; --dash-muted:#667085; }
.dashboard-hero { position:relative; overflow:hidden; padding:1.5rem 1.65rem; margin-bottom:1.5rem;
  border-radius:20px; color:#fff; background:linear-gradient(125deg,#173ea5 0%,#2563eb 58%,#36a3f7 100%);
  box-shadow:0 15px 35px rgba(37,99,235,.2); }
.dashboard-hero::after { content:""; position:absolute; width:250px; height:250px; right:-70px; top:-125px;
  border-radius:50%; background:rgba(255,255,255,.11); pointer-events:none; }
.dashboard-hero-content { position:relative; z-index:1; }
.dashboard-hero h1,.dashboard-hero h2 { color:#fff; font-size:1.5rem; font-weight:750; letter-spacing:-.025em; }
.dashboard-hero p,.dashboard-hero .dashboard-context { color:rgba(255,255,255,.8)!important; }
.dashboard-hero .btn { border-radius:10px; font-weight:600; padding:.52rem .82rem; }
.dashboard-tabs { gap:.4rem; padding:.35rem; margin-bottom:1.25rem; width:max-content; max-width:100%;
  border:1px solid #e5eaf2; border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(16,24,40,.045); }
.dashboard-tabs .nav-link { border-radius:9px; padding:.55rem .9rem; color:#475467; font-size:.84rem; font-weight:650; }
.dashboard-tabs .nav-link.active { color:#fff; background:#2563eb; box-shadow:0 5px 12px rgba(37,99,235,.22); }
.dashboard-metrics .metric-card,.dashboard-metrics .track-card { min-height:88px; border:1px solid #e8edf5!important;
  border-radius:16px!important; background:#fff!important; box-shadow:0 7px 22px rgba(16,24,40,.055)!important; }
.dashboard-metrics .track-card { display:flex; flex-direction:column; justify-content:center; }
.dashboard-metrics .track-card:hover { transform:translateY(-2px); box-shadow:0 11px 25px rgba(16,24,40,.09)!important; }
.dashboard-metrics .track-card.active { border-color:currentColor!important; box-shadow:inset 0 -3px currentColor,0 8px 22px rgba(16,24,40,.08)!important; }
.dashboard-metrics .track-card .num { font-size:1.65rem!important; }
.dashboard-panel,.track-filters { overflow:hidden; border:1px solid #e8edf5!important; border-radius:17px!important;
  background:#fff; box-shadow:0 7px 22px rgba(16,24,40,.05)!important; }
.dashboard-panel .card-header,.track-filters .card-header { padding:.9rem 1.1rem!important; background:#fff!important; border-color:#edf1f7!important; }
.dashboard-page .table thead th { padding:.75rem 1rem; color:#667085; background:#f8fafc!important; border-color:#edf1f7;
  font-size:.7rem; letter-spacing:.045em; text-transform:uppercase; }
.dashboard-page .table tbody td { padding:.82rem 1rem; border-color:#eef2f6; }
.dashboard-page .table tbody tr:hover { background:#f8fbff; }
.dashboard-empty { min-height:125px; padding:1.5rem; border:1px solid #e8edf5; border-radius:17px;
  background:linear-gradient(100deg,#f7fdf9,#fff); box-shadow:0 7px 22px rgba(16,24,40,.05); }
@media(max-width:767.98px) {
  .dashboard-hero{padding:1.2rem}.dashboard-tabs{width:100%;overflow-x:auto;flex-wrap:nowrap}
  .dashboard-tabs .nav-link{white-space:nowrap}.dashboard-hero-actions{width:100%}.dashboard-hero-actions .btn{flex:1}
}
.indicator-cell strong { display: block; color: var(--primary); font-size: .73rem; font-weight: 700; }
.indicator-cell span { display: block; font-weight: 600; font-size: .85rem; color: var(--ink); }
tr.rating-selected td { background: #eff6ff !important; }
.ps-score-footer { font-size: .8rem; }
.ps-score-badge { font-size: .73rem; white-space: nowrap; }
.ps-score-bar { transition: width .4s ease; }

/* ── Segmented rating buttons ─────────────────────────────── */
.rbn-group { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.rbn-input { display: none; }
.rbn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; padding: 5px 4px 4px; border: 2px solid var(--border); border-radius: var(--r-sm); cursor: pointer; transition: all .12s; user-select: none; line-height: 1.2; }
.rbn:hover { border-color: #94a3b8; background: #f8fafc; }
.rbn-num { font-size: 1rem; font-weight: 700; color: #475569; }
.rbn-lbl { font-size: .6rem; color: var(--muted); text-align: center; line-height: 1.1; }
.rbn-input[value="1"]:checked + .rbn { background: #dc2626; border-color: #dc2626; transform: scale(1.07); }
.rbn-input[value="2"]:checked + .rbn { background: #d97706; border-color: #d97706; transform: scale(1.07); }
.rbn-input[value="3"]:checked + .rbn { background: var(--primary); border-color: var(--primary); transform: scale(1.07); }
.rbn-input[value="4"]:checked + .rbn { background: #059669; border-color: #059669; transform: scale(1.07); }
.rbn-input[value="1"]:checked + .rbn .rbn-num, .rbn-input[value="1"]:checked + .rbn .rbn-lbl,
.rbn-input[value="2"]:checked + .rbn .rbn-num, .rbn-input[value="2"]:checked + .rbn .rbn-lbl,
.rbn-input[value="3"]:checked + .rbn .rbn-num, .rbn-input[value="3"]:checked + .rbn .rbn-lbl,
.rbn-input[value="4"]:checked + .rbn .rbn-num, .rbn-input[value="4"]:checked + .rbn .rbn-lbl { color: #fff; }
.rbn-input:disabled + .rbn { opacity: .65; cursor: not-allowed; }
.rbn-input:disabled:checked + .rbn { opacity: .85; }

/* ── Assessment actions sticky ────────────────────────────── */
.assessment-actions { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: .75rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: rgba(241,245,249,.96); backdrop-filter: blur(10px); }

/* ── Old rating rows ──────────────────────────────────────── */
.rating-row input[type=radio] { display: none; }
.rating-row label.rating-btn { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; border: 2px solid #dee2e6; cursor: pointer; font-weight: 600; font-size: .85rem; transition: all .1s; color: #6c757d; }
.rating-row input[value="1"]:checked ~ label[for$="-1"] { background: #dc2626; color: #fff; border-color: #dc2626; }
.rating-row input[value="2"]:checked ~ label[for$="-2"] { background: #d97706; color: #fff; border-color: #d97706; }
.rating-row input[value="3"]:checked ~ label[for$="-3"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.rating-row input[value="4"]:checked ~ label[for$="-4"] { background: #059669; color: #fff; border-color: #059669; }

/* ── Teacher hero ─────────────────────────────────────────── */
.teacher-hero { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.teacher-hero h1 { font-size: 1.65rem; font-weight: 800; margin-bottom: .5rem; }
.teacher-hero p { color: var(--muted); max-width: 520px; }
.teacher-entry-panel { background: var(--primary-lt); border: 1px solid #bfdbfe; border-radius: var(--r-md); padding: 1.25rem; }
.teacher-entry-panel h2 { font-size: 1.05rem; font-weight: 700; }

/* ── Entry list / empty state ─────────────────────────────── */
.entry-list { display: grid; gap: .45rem; }
.entry-list-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fbfdff; transition: background .12s; }
.entry-list-item:hover { background: var(--primary-lt); }
.entry-list-item strong { display: block; font-size: .875rem; }
.entry-list-item span { color: var(--muted); font-size: .8rem; }
.empty-state { display: grid; gap: .3rem; padding: 2rem 1rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.25rem; margin-bottom: .5rem; opacity: .35; }
.empty-state strong { color: var(--ink); display: block; font-size: .95rem; }

/* ── DataTables ───────────────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: var(--r-sm); border: 1px solid var(--border);
  padding: .3rem .6rem; font-size: .85rem;
}

/* Pagination – DataTables 2.x uses div.dt-paging; 1.x uses div.dataTables_paginate */
div.dt-paging ul.pagination,
.dataTables_wrapper .dataTables_paginate .pagination {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  gap: 3px;
  flex-wrap: wrap;
}

div.dt-paging ul.pagination li,
div.dt-paging ul.pagination .page-item,
.dataTables_wrapper .dataTables_paginate .page-item {
  list-style: none !important;
}

div.dt-paging .page-link,
.dataTables_wrapper .dataTables_paginate .page-link {
  border-radius: var(--r-sm) !important;
  font-size: .8rem;
  padding: .32rem .65rem;
  color: var(--primary);
  border-color: var(--border);
  background: var(--surface);
  line-height: 1.4;
}

div.dt-paging .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

div.dt-paging .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  color: var(--muted); background: #f8fafc; border-color: var(--border);
}

div.dt-info,
.dataTables_wrapper .dataTables_info {
  font-size: .8rem; color: var(--muted); padding-top: .6rem;
}

div.dt-paging,
.dataTables_wrapper .dataTables_paginate { padding-top: .25rem; }
.table-sticky-head thead th { position: sticky; top: 0; z-index: 1; }

/* ── Auth ─────────────────────────────────────────────────── */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 50%, #fef9c3 100%); padding: 1.5rem; }
.auth-panel { width: min(1040px, 100%); overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 64px rgba(15,23,42,.16); display: flex; }
.auth-form-wrap { flex: 0 0 420px; padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-story { flex: 1; min-height: 580px; display: flex; flex-direction: column; justify-content: center; padding: 3rem; color: #fff; background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%); }
.auth-story .brand-mark { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 1.5rem; }
.brand-lockup { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.03em; }
.auth-story h1 { font-size: 2rem; font-weight: 800; max-width: 380px; line-height: 1.15; margin-bottom: .85rem; }
.auth-story p { color: rgba(255,255,255,.72); font-size: .95rem; max-width: 360px; }
.auth-story-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.auth-story-strip span { border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: .3rem .75rem; font-size: .78rem; color: rgba(255,255,255,.8); }
.auth-card { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ── Utility ──────────────────────────────────────────────── */
.section-kicker { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.text-primary { color: var(--primary) !important; }
.badge { font-weight: 600; letter-spacing: .02em; }
.btn { font-weight: 500; border-radius: var(--r-sm); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #1e40af; border-color: #1e40af; }
.form-control, .form-select { border-radius: var(--r-sm); border-color: var(--border); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
