:root {
  --ink: #0f172a;
  --muted: #64748b;
  --teal: #0e7490;
  --teal-2: #0284c7;
  --sand: #eef6fb;
  --line: #d7e6f2;
  --line-strong: #b6d4ea;
  --warn: #b45309;
  --card: #ffffff;
  --sidebar: #0b3a53;
  --sidebar-2: #0c4a6e;
  --sidebar-text: #e0f2fe;
  --sidebar-muted: #7dd3fc;
  --accent: #0284c7;
  --accent-deep: #0369a1;
  --accent-soft: #e0f2fe;
  --radius: 1rem;
  --shadow-sm: 0 4px 14px rgba(8, 47, 73, .06);
  --shadow-md: 0 12px 30px rgba(8, 47, 73, .08);
  --shadow-lg: 0 18px 40px rgba(3, 105, 161, .12);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.1), transparent 30%),
    linear-gradient(180deg, #e4f1f9 0%, #eef6fb 42%, #f7fafc 100%);
  min-height: 100vh;
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
h1,h2,h3,h4,.brand-font { font-family: "Outfit", sans-serif; }
a { text-decoration: none; }

/* —— App shell —— */
.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
}
.sidebar {
  background: linear-gradient(180deg, #0c4a6e 0%, #0b3a53 48%, #082f43 100%);
  background-attachment: local;
  color: var(--sidebar-text);
  padding: 1.1rem .9rem 1.25rem;
  position: relative;
  align-self: stretch;
  min-height: 100%;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(125,211,252,.18);
  box-shadow: 8px 0 32px rgba(8, 47, 73, .18);
  z-index: 1040;
}
.sidebar-nav { flex: 1 1 auto; padding: .15rem 0 1rem; }
.sidebar-foot {
  margin-top: auto;
  flex-shrink: 0;
  padding: .9rem .75rem 0;
  border-top: 1px solid rgba(125,211,252,.16);
  font-size: .72rem;
  color: rgba(186,230,253,.75);
  letter-spacing: .02em;
}
.sidebar .logo {
  display: flex; gap: .75rem; align-items: center;
  padding: .55rem .7rem 1.1rem;
  border-bottom: 1px solid rgba(125,211,252,.16);
  margin-bottom: .85rem;
  color: #fff;
}
.sidebar .logo .fw-bold {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  color: #fff;
}
.sidebar .logo small {
  color: #7dd3fc !important;
  opacity: 1 !important;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .66rem;
}
.sidebar .logo-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  display:grid; place-items:center; font-weight:800; color:#fff; flex-shrink:0;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  font-family: Outfit, sans-serif;
}
.sidebar .logo-img {
  width: 44px; height: 44px; border-radius: 13px; object-fit: contain;
  background: #fff; padding: 4px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.sidebar .nav-link {
  display:flex; align-items:center; gap:.7rem;
  color: rgba(224,242,254,.88);
  padding:.62rem .8rem;
  border-radius:.8rem;
  margin-bottom:.18rem;
  font-weight:600;
  font-size: .9rem;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  border: 1px solid transparent;
}
.sidebar .nav-link i {
  width: 1.15rem;
  text-align: center;
  opacity: .9;
  font-size: 1.05rem;
}
.sidebar .nav-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(14,165,233,.16));
  color: #fff;
  border-color: rgba(125,211,252,.28);
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.08);
  font-weight: 700;
}
.sidebar .nav-link.active i { color: #7dd3fc; }
.sidebar .nav-section {
  font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color: rgba(125,211,252,.72);
  margin: 1.05rem .8rem .35rem; font-weight: 700;
}
.sidebar button.nav-link {
  cursor: pointer;
  font-family: inherit;
}

/* —— Main / topbar —— */
.main {
  padding: 0;
  background: transparent;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.5rem;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid rgba(3,105,161,.1);
  box-shadow: 0 8px 24px rgba(8,47,73,.04);
}
.admin-topbar .page-title {
  margin: 0;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.admin-topbar .page-sub {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  margin-top: .12rem;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem .35rem .35rem;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid rgba(3,105,161,.12);
  font-size: .82rem;
  font-weight: 700;
  color: #0c4a6e;
}
.admin-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0369a1, #0284c7);
  color: #fff; font-size: .85rem;
}
.admin-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1 1 auto;
}
.topbar {
  display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.25rem;
}
.page-title { margin:0; font-size:1.6rem; color: var(--ink); }

.sidebar-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: .75rem;
  border: 1px solid rgba(3,105,161,.14);
  background: #f0f9ff;
  color: #0c4a6e;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,47,73,.45);
  z-index: 1035;
}

/* —— Cards / panels —— */
.card-soft {
  background: var(--card);
  border: 1px solid rgba(3,105,161,.1);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-md);
}
.card-soft > .card-soft-head,
.panel-head {
  padding: .9rem 1.15rem;
  border-bottom: 1px solid rgba(3,105,161,.08);
  background: linear-gradient(180deg, #ffffff, #f5faff);
  border-radius: 1.1rem 1.1rem 0 0;
}
.stat-card {
  padding: 1.1rem 1.2rem; border-radius: 1rem; position:relative; overflow:hidden;
  border: 1px solid var(--line);
}
.stat-card::after {
  content:""; position:absolute; right:-20px; top:-20px; width:90px; height:90px; border-radius:50%;
  background: rgba(255,255,255,.4);
}
.stat-1 { background: linear-gradient(135deg,#99f6e4,#5eead4); color:#115e59; }
.stat-2 { background: linear-gradient(135deg,#93c5fd,#60a5fa); color:#1e3a8a; }
.stat-3 { background: linear-gradient(135deg,#fdba74,#fb923c); color:#9a3412; }
.stat-4 { background: linear-gradient(135deg,#7dd3fc,#38bdf8); color:#0c4a6e; }

/* —— Buttons —— */
.btn-brand {
  background: linear-gradient(135deg, #0c4a6e, #0284c7); border:0; color:#fff; font-weight:700;
  box-shadow: 0 8px 18px rgba(3,105,161,.22);
  border-radius: .75rem;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-brand:hover {
  color:#fff; filter:brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3,105,161,.28);
}
.btn-outline-brand {
  border: 1px solid rgba(3,105,161,.28);
  color: #0369a1;
  background: #fff;
  font-weight: 700;
  border-radius: .75rem;
}
.btn-outline-brand:hover {
  background: #f0f9ff;
  color: #0c4a6e;
  border-color: #0284c7;
}
.btn-outline-success, .btn-outline-danger, .btn-outline-secondary, .btn-outline-primary {
  border-radius: .7rem;
  font-weight: 600;
}

/* —— Forms —— */
.wizard-steps { display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.wizard-step {
  flex:1; min-width:160px; padding:.85rem 1rem; border-radius:.9rem; border:1px solid var(--line);
  background:#fff; font-weight:600; color:#64748b;
}
.wizard-step.active { border-color:#38bdf8; color:#0369a1; box-shadow: inset 0 0 0 1px #38bdf8; background:#dbeafe; }
.wizard-step.done { background:#ccfbf1; color:#0f766e; border-color:#5eead4; }
.form-label { font-weight:600; font-size:.88rem; color:#334155; margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius:.75rem;
  border-color:#c5daf0;
  padding:.62rem .85rem;
  background:#fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
  border-color:#0284c7;
  box-shadow:0 0 0 .2rem rgba(2,132,199,.16);
}
.form-text, .small.text-muted { color: var(--muted) !important; }

/* —— Tables —— */
.table {
  --bs-table-bg: transparent;
}
.table > :not(caption) > * > * {
  padding: .75rem .85rem;
  vertical-align: middle;
}
.table thead th {
  background: linear-gradient(180deg, #e8f4fc, #d7ecf8);
  border-bottom: 1px solid var(--line-strong);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #0c4a6e;
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr {
  transition: background .12s ease;
}
.table tbody tr:hover {
  background: rgba(224,242,254,.45);
}
.table td {
  border-color: #e8f1f8;
  font-size: .92rem;
}
.badge {
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: .5rem;
  padding: .35em .65em;
}

/* —— Alerts —— */
.alert {
  border-radius: .9rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* —— Auth (simple 3D professional) —— */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(56,189,248,.35), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 12%, rgba(14,116,144,.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 90%, rgba(2,132,199,.14), transparent 50%),
    linear-gradient(160deg, #dbeafe 0%, #e0f2fe 42%, #f0f9ff 100%);
  font-family: "DM Sans", sans-serif;
}
.auth-wrap::before,
.auth-wrap::after {
  content: "";
  position: absolute;
  border-radius: 28% 72% 45% 55% / 55% 40% 60% 45%;
  pointer-events: none;
  filter: blur(2px);
}
.auth-wrap::before {
  width: 280px; height: 280px; left: -70px; bottom: -40px;
  background: linear-gradient(145deg, rgba(14,165,233,.22), rgba(12,74,110,.08));
  box-shadow: 20px 30px 60px rgba(3,105,161,.12);
  transform: rotate(-12deg);
}
.auth-wrap::after {
  width: 220px; height: 220px; right: -50px; top: -30px;
  background: linear-gradient(145deg, rgba(125,211,252,.35), rgba(56,189,248,.1));
  box-shadow: -16px 22px 50px rgba(3,105,161,.1);
  transform: rotate(18deg);
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: authRise .5s ease both;
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 1.5rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -1px 0 rgba(3,105,161,.06) inset,
    0 18px 0 -6px rgba(3,105,161,.08),
    0 28px 50px rgba(8,47,73,.16),
    0 8px 18px rgba(3,105,161,.1);
  overflow: hidden;
  transform: translateZ(0);
}
.auth-card-top {
  padding: 1.35rem 1.5rem 1.15rem;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(56,189,248,.35), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #0c4a6e 48%, #0369a1 100%);
  color: #fff;
  position: relative;
}
.auth-card-top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.55rem;
  padding-bottom: 1.35rem;
}
.auth-card-top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #fbbf24, #38bdf8 45%, #7dd3fc);
}
.auth-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #e0f2fe; margin-bottom: .7rem;
}
.auth-card-top-center .auth-badge { margin-bottom: .55rem; }
.auth-card-top h1 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.auth-card-top p {
  margin: .4rem 0 0;
  color: rgba(226,232,240,.88);
  font-size: .9rem;
  line-height: 1.45;
}
.auth-card-top-center p {
  margin-top: .5rem;
  max-width: 22rem;
}
.auth-card-body { padding: 1.4rem 1.5rem 1.5rem; }
.auth-brand-row {
  display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
}
.auth-brand-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: contain;
  background: #fff; padding: 4px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.auth-brand-logo-lg {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto .85rem;
  padding: 6px;
}
.auth-brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, #e0f2fe);
  color: #0c4a6e; font-family: Outfit, sans-serif; font-weight: 800; font-size: .95rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.18), 0 2px 0 rgba(255,255,255,.8) inset;
}
.auth-brand-mark.auth-brand-logo-lg {
  width: 64px; height: 64px; border-radius: 16px; font-size: 1.15rem;
}
.auth-label {
  display: block; font-size: .78rem; font-weight: 700; color: #334155; margin-bottom: .35rem;
}
.auth-input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: .72rem .9rem;
  font-size: .95rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: #0f172a;
  min-height: 46px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(15,23,42,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.auth-input:focus {
  outline: none;
  border-color: #7dd3fc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,.16), 0 4px 12px rgba(3,105,161,.08);
}
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; border: 0; border-radius: 14px;
  padding: .85rem 1.1rem; font-size: .95rem; font-weight: 800; cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #0390d8 0%, #0284c7 40%, #0c4a6e 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 10px 0 #083344,
    0 16px 28px rgba(3,105,161,.28);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.auth-btn:hover {
  color: #fff; filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.3) inset,
    0 12px 0 #083344,
    0 20px 32px rgba(3,105,161,.32);
}
.auth-btn:active {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 4px 0 #083344,
    0 8px 16px rgba(3,105,161,.22);
}
.auth-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 700; color: #0369a1; text-decoration: none;
}
.auth-link:hover { color: #0c4a6e; text-decoration: underline; }
.auth-alert {
  border-radius: 12px; padding: .7rem .85rem; font-size: .88rem; margin-bottom: 1rem;
  border: 1px solid transparent;
}
.auth-alert.danger { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.auth-alert.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.auth-alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.auth-alert.info { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; }
.auth-foot {
  margin-top: 1rem; text-align: center; font-size: .78rem; color: #64748b;
}

/* —— Documents / ID —— */
.letterhead {
  border-bottom: 3px solid #0284c7; padding-bottom:1rem; margin-bottom:1.5rem;
  display:flex; justify-content:space-between; gap:1rem; align-items:center;
}
.letterhead img { max-height:70px; max-width:140px; object-fit:contain; }
.id-card {
  width: 360px; border-radius: 18px; overflow:hidden; border:1px solid #d1d5db;
  box-shadow: 0 18px 40px rgba(0,0,0,.15); background:#fff;
}
.id-card-header {
  background: linear-gradient(135deg,#0369a1,#38bdf8); color:#fff; padding:1rem; text-align:center;
}
.id-card-body { padding:1rem; display:grid; grid-template-columns: 90px 1fr; gap:1rem; align-items:start; }
.id-photo {
  width:90px; height:110px; object-fit:cover; border-radius:10px; border:1px solid #e5e7eb; background:#f8fafc;
}
.edu-row { background:#dbeafe; border:1px dashed #38bdf8; border-radius:.8rem; padding: .85rem; margin-bottom:.75rem; }

/* —— Misc polish —— */
.main .card-soft h1.h5,
.main .card-soft h2.h6,
.main .brand-font.h6 {
  letter-spacing: -.01em;
}
.btn-sm { border-radius: .6rem; }
.border.rounded {
  border-color: var(--line) !important;
}

/* Soft cards: allow horizontal scroll for wide tables */
.card-soft,
.att-panel-b,
.dash-panel,
.profile-panel,
.emp-export-card {
  max-width: 100%;
}
.card-soft:has(> table.table),
.att-panel-b:has(> table.table),
.card-soft:has(> .table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Forms / buttons stack better on narrow screens */
.btn-group-mobile,
.d-flex.gap-2.flex-wrap {
  max-width: 100%;
}

.id-card {
  width: min(360px, 100%);
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .app-shell { grid-template-columns: 248px 1fr; }
  .admin-content { padding: 1.1rem 1.15rem 1.75rem; }
}

@media (max-width: 992px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    align-self: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-shell.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .app-shell.sidebar-open {
    overflow: hidden;
  }
  .sidebar-toggle { display: inline-flex; }
  .admin-topbar {
    padding: .75rem 1rem;
    padding-top: calc(.75rem + env(safe-area-inset-top, 0px));
  }
  .admin-content { padding: 1rem .9rem 1.75rem; }
  .admin-topbar .page-title { font-size: 1.05rem; }
  .admin-topbar .page-sub { font-size: .72rem; }
  .admin-user-chip span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar { flex-direction: column; align-items: stretch; }
  .wizard-steps { flex-direction: column; }
  .wizard-step { min-width: 0; }
  .letterhead { flex-direction: column; text-align: center; }
  /* Keep ID card body left-aligned (do not center on narrow / print viewports) */
  .id-card-body {
    grid-template-columns: 68px 1fr;
    justify-items: start;
    text-align: left;
  }
  .auth-card { border-radius: 1.25rem; }
  .auth-card-body { padding: 1.2rem 1.15rem 1.3rem; }
  .auth-card-top { padding: 1.2rem 1.15rem 1.05rem; }
  .auth-wrap { padding: 1.25rem .85rem; }
  .auth-btn { box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 0 #083344, 0 14px 24px rgba(3,105,161,.26); }
}

@media (max-width: 767.98px) {
  .admin-content { padding: .85rem .75rem 1.5rem; }
  .card-soft { border-radius: .95rem; }
  .card-soft.p-3,
  .card-soft.p-4 { padding: .95rem !important; }
  .admin-topbar-actions .btn-brand { padding: .4rem .7rem; }
  .table > :not(caption) > * > * { padding: .6rem .55rem; font-size: .86rem; }
  .table thead th { font-size: .7rem; letter-spacing: .03em; }
  .form-control, .form-select { font-size: 16px; /* prevents iOS zoom */ }
  .btn { white-space: normal; }
  .row.g-2 > [class*="col-"] > .btn.w-100,
  .row.g-2 > [class*="col-"] > .btn { min-height: 40px; }
  .stat-card, .dash-stat { padding: .95rem; }
  .page-title { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
  .admin-user-chip { display: none !important; }
  .admin-topbar .page-sub { display: none; }
  .sidebar .logo .fw-bold { font-size: .9rem; }
}
