:root {
  --navy-950: #071a2e;
  --navy-900: #0a2540;
  --navy-800: #0f3357;
  --navy-700: #164a77;
  --blue: #1e5f9e;
  --blue-soft: #e8f0f9;
  --gold: #e7b746;
  --gold-dark: #b3861c;
  --bg: #f2f5f9;
  --surface: #ffffff;
  --ink: #152a42;
  --muted: #5f728a;
  --line: #e0e7f0;
  --success: #0b6b52;
  --success-bg: #e7f6f0;
  --danger: #b42318;
  --danger-bg: #fdeaea;
  --warning: #8a5b00;
  --warning-bg: #fdf3d8;
  --info: #1d4ed8;
  --info-bg: #e8f0fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.04), 0 18px 40px -30px rgba(10, 37, 64, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: #eef2f7;
  border-radius: 5px;
  padding: 1px 5px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  white-space: normal;
}

.right {
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ shell */

.layout {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  color: #dbe6f2;
  background:
    radial-gradient(circle at 20% 0%, rgba(231, 183, 70, 0.12), transparent 38%),
    linear-gradient(180deg, #0a2540 0%, #071a2e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3cd6e, var(--gold-dark));
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(231, 183, 70, 0.7);
}

.brand-mark-lg {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 24px;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-text small {
  display: block;
  font-size: 10px;
  color: #9fb3c8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  flex: 1;
  margin-top: 8px;
  overflow-y: auto;
}

.nav-label {
  margin: 20px 10px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7189a2;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c3d3e3;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.is-active {
  color: #fff;
  background: rgba(231, 183, 70, 0.14);
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 8px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 700;
}

.user-meta strong {
  display: block;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.3;
}

.user-meta small {
  color: #9fb3c8;
  font-size: 11px;
}

.sidebar-backdrop {
  display: none;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 264px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 32px;
  background: rgba(242, 245, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-titles {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.date-pill,
.role-pill {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.role-pill {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 32px 40px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px 24px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #23180a;
}

.btn-gold:hover {
  background: #f0c45b;
  border-color: #f0c45b;
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #b7c8da;
  background: #f9fbfd;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  background: #e9eff6;
  color: var(--ink);
}

.btn-danger-ghost {
  border-color: #f3c9c6;
  background: #fff;
  color: var(--danger);
}

.btn-danger-ghost:hover {
  background: #fdf3f2;
}

.btn-sm {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----------------------------------------------------------------- cards */

.card {
  margin-bottom: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.card-note {
  background: #fbfcfe;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

.grid-2 > .card {
  margin-bottom: 20px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.page-head p {
  margin-top: 4px;
  font-size: 12.5px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------- jenis data switch */

.jenis-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.jenis-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.jenis-option:hover {
  border-color: #b7c8da;
  box-shadow: 0 6px 18px -12px rgba(10, 37, 64, 0.45);
  transform: translateY(-1px);
}

.jenis-option::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(231, 183, 70, 0.15));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.jenis-option.is-active {
  border-color: var(--navy-900);
  background:
    radial-gradient(circle at 96% 0%, rgba(231, 183, 70, 0.22), transparent 40%),
    linear-gradient(118deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.jenis-option.is-active::after {
  opacity: 1;
}

.jenis-chip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.chip-pns {
  background: var(--info-bg);
  color: var(--info);
}

.chip-pppk {
  background: #f3e8ff;
  color: #7e22ce;
}

.jenis-option.is-active .jenis-chip {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.jenis-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jenis-info strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.jenis-info span {
  color: var(--muted);
  font-size: 11px;
}

.jenis-option.is-active .jenis-info strong {
  color: #fff;
}

.jenis-option.is-active .jenis-info span {
  color: #b9cde0;
}

.jenis-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.jenis-state .status-dot {
  margin-top: 0;
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.jenis-state.is-warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.jenis-option.is-active .jenis-state {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.version-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 28px 30px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(231, 183, 70, 0.28), transparent 34%),
    linear-gradient(118deg, #0a2540 0%, #123f66 62%, #15507f 100%);
  color: #fff;
  box-shadow: 0 24px 50px -34px rgba(10, 37, 64, 0.8);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #f0c96a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 8px;
  max-width: 570px;
  color: #c6d6e6;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: none;
  min-width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero-status-stack {
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}

.hero-status-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-status small {
  display: block;
  color: #9fb8ce;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin: 2px 0;
  font-size: 17px;
}

.hero-status span {
  display: block;
  color: #b9cde0;
  font-size: 10.5px;
  line-height: 1.4;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.14);
}

.status-dot-warn {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(231, 183, 70, 0.16);
}

/* ------------------------------------------------------------------- kpi */

.kpi-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.8;
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  margin: 5px 0 1px;
  color: var(--navy-900);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi-value-sm {
  font-size: 15px;
  line-height: 1.35;
}

.kpi-meta {
  color: var(--muted);
  font-size: 11px;
}

/* ----------------------------------------------------------------- table */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.table-scroll {
  max-height: 430px;
  overflow-y: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12.5px;
}

.table th {
  padding: 10px 12px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #f9fbfd;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-compact td {
  padding: 8px 10px;
}

.table-compact th {
  padding: 8px 10px;
}

.table td.empty-note {
  padding: 26px 12px;
  color: var(--muted);
  text-align: center;
}

.subline {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
}

.truncate {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.detail-cell {
  max-width: 380px;
  color: #3d536b;
}

.bar-cell {
  min-width: 130px;
}

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-lg {
  padding: 6px 12px;
  font-size: 12px;
}

.badge-soft {
  background: #f0f4f9;
  color: #33506f;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-muted {
  background: #eef2f6;
  color: var(--muted);
}

.badge-navy {
  background: #e7edf5;
  color: var(--navy-900);
}

.badge-pns {
  background: var(--info-bg);
  color: var(--info);
}

.badge-pppk {
  background: #f3e8ff;
  color: #7e22ce;
}

/* -------------------------------------------------------------- category */

.stacked-bar {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.stacked-bar-sm {
  height: 7px;
}

.seg {
  display: block;
  height: 100%;
}

.seg-1 { background: #10b981; }
.seg-2 { background: #3b82f6; }
.seg-3 { background: #f59e0b; }
.seg-4 { background: #ef4444; }

.legend {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed #e8edf4;
  font-size: 12px;
}

.legend li:last-child {
  border-bottom: 0;
}

.legend strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.legend small {
  width: 46px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.legend-roomy li {
  padding: 12px 0;
  font-size: 12.5px;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-1 { background: #10b981; }
.dot-2 { background: #3b82f6; }
.dot-3 { background: #f59e0b; }
.dot-4 { background: #ef4444; }

.cat-1-text { color: #047857; }
.cat-2-text { color: #1d4ed8; }
.cat-3-text { color: #b45309; }
.cat-4-text { color: #b91c1c; }

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cat-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.cat-1 { background: #e7f6f0; color: #047857; }
.cat-2 { background: #e8f0fb; color: #1d4ed8; }
.cat-3 { background: #fdf3d8; color: #b45309; }
.cat-4 { background: #fdeaea; color: #b91c1c; }

/* --------------------------------------------------------------- satker */

.satker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.satker-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.satker-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.satker-card-head h3 {
  font-size: 13.5px;
  line-height: 1.35;
}

.satker-card-head .muted {
  font-size: 11px;
}

.satker-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 800;
}

.satker-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.satker-metrics small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.satker-metrics strong {
  display: block;
  font-size: 15px;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- detail */

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-head h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.detail-head p {
  margin-top: 4px;
  font-size: 12px;
}

.download-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}

.download-form label {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-form .select {
  min-width: 210px;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px dashed #e8edf4;
  color: #3d536b;
  font-size: 12.5px;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.info-list strong {
  color: var(--ink);
}

/* ------------------------------------------------------------------ form */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.filter-bar label {
  color: #3c5068;
  font-size: 12px;
  font-weight: 600;
}

.input,
.select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfdae6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #5f728a 50%), linear-gradient(135deg, #5f728a 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.input:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.14);
}

.input::placeholder {
  color: #9aa9bb;
}

.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.security-card {
  margin-top: 4px;
}

.checkbox-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfe;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}

.checkbox-item:hover {
  background: #eef4fb;
}

.checkbox-item input {
  margin-top: 2px;
  accent-color: var(--navy-800);
}

.checkbox-item[hidden] {
  display: none;
}

.card.is-disabled,
[data-grants].is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.4);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-form .input {
  width: 280px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-bar .field {
  flex: 1 1 170px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px;
}

.alert-success {
  background: var(--success-bg);
  border-color: #bfe8da;
  color: #075e46;
}

.alert-error {
  background: var(--danger-bg);
  border-color: #f6cecb;
  color: #8f1d14;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: #f0dfa9;
  color: #7a5100;
}

.alert-info {
  background: var(--info-bg);
  border-color: #cbdcf8;
  color: #1e3f9e;
}

.alert-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.alert-link {
  flex: none;
  font-weight: 700;
  text-decoration: underline;
}

.alert-close {
  flex: none;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}

/* ----------------------------------------------------------------- misc */

.link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.empty-note {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 46px 24px;
  background: #fff;
  border: 1px dashed #c9d6e4;
  border-radius: var(--radius);
  text-align: center;
}

.empty-state h3 {
  font-size: 16px;
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed #e8edf4;
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.timeline strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.timeline .muted {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.timeline time {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 320px;
}

.chip {
  padding: 2px 7px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  background: #f7fafd;
  color: #3c5a78;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-more {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.actions form {
  display: inline;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed #e8edf4;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps > li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 800;
}

.steps strong {
  font-size: 12.5px;
}

.steps p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.callout {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 9px 9px 0;
  background: #fafbfd;
}

.callout strong {
  font-size: 12px;
}

.callout p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 26px 18px;
  border: 1.5px dashed #b9c9da;
  border-radius: 12px;
  background: #fafcff;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--blue);
  background: #f2f7fd;
}

.dropzone svg {
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  color: var(--blue);
}

.dropzone strong {
  font-size: 13px;
}

.dropzone span {
  color: var(--muted);
  font-size: 11.5px;
}

.dropzone input {
  display: none;
}

.version-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: none;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.version-chip small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.version-chip strong {
  display: block;
  font-size: 16px;
  color: var(--navy-900);
}

.version-chip span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.confirm-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  background: #fbfcfe;
  border-style: dashed;
}

.confirm-card h3 {
  font-size: 15px;
}

.confirm-card p {
  margin-top: 3px;
  max-width: 460px;
  font-size: 11.5px;
}

.confirm-fields {
  flex: 1;
  max-width: 560px;
}

.confirm-fields .button-row {
  justify-content: flex-end;
  margin-top: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 11.5px;
}

.grid-upload {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ------------------------------------------------------------------ auth */

.auth-body {
  background: #eef3f9;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(231, 183, 70, 0.3), transparent 32%),
    radial-gradient(circle at 10% 92%, rgba(30, 95, 158, 0.55), transparent 40%),
    linear-gradient(145deg, #0a2540 0%, #071a2e 68%, #0b2b4a 100%);
  color: #fff;
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-brand-top strong {
  display: block;
  font-size: 17px;
}

.auth-brand-top small {
  display: block;
  color: #a8bccf;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 40px 0;
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #f0c96a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-kicker-dark {
  color: var(--blue);
}

.auth-brand h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-brand-copy > p {
  margin-top: 18px;
  max-width: 470px;
  color: #bfd0e1;
  font-size: 14px;
}

.auth-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #d7e3ee;
  font-size: 13px;
}

.auth-points li span {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.auth-foot {
  position: relative;
  z-index: 1;
  color: #8098ae;
  font-size: 11px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-form-wrap {
  width: min(400px, 100%);
}

.auth-form-wrap h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
}

.auth-form-wrap > .muted {
  margin: 4px 0 24px;
  font-size: 12.5px;
}

.auth-form-wrap .alert {
  margin-bottom: 18px;
}

.auth-legal {
  margin-top: 20px;
  color: #8798aa;
  font-size: 10.5px;
  line-height: 1.5;
}

.error-shell {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 100vh;
  padding: 30px;
}

.brand-center {
  border-bottom: 0;
  color: var(--navy-900);
  padding: 0;
}

.brand-center .brand-text small {
  color: var(--muted);
}

.error-card {
  width: min(540px, 100%);
  padding: 38px;
  text-align: center;
}

.error-code {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-card h1 {
  font-size: 21px;
  line-height: 1.35;
}

.error-card .muted {
  margin: 10px 0 22px;
  font-size: 12.5px;
}

/* --------------------------------------------------------- width helpers */

.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1220px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .grid-upload {
    grid-template-columns: 1fr;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-status {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 280px;
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, 0.5);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(7, 26, 46, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .topbar {
    padding: 12px 18px;
  }

  .content {
    padding: 20px 18px 34px;
  }

  .footer {
    padding: 16px 18px 22px;
  }

  .kpi-grid-3,
  .kpi-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-head,
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-form {
    width: 100%;
  }

  .download-form .select {
    flex: 1;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 30px 22px;
  }
}

@media (max-width: 680px) {
  .kpi-grid-3,
  .kpi-grid-4,
  .kpi-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-value {
    font-size: 23px;
  }

  .hero {
    padding: 22px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .topbar-side .date-pill {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    width: 100%;
  }

  .search-form .input {
    width: 100%;
    flex: 1;
  }

  .confirm-card {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-fields {
    max-width: none;
  }

  .detail-head {
    padding: 18px;
  }

  .card {
    padding: 17px;
  }

  .footer {
    flex-direction: column;
    gap: 3px;
  }

  .timeline time {
    display: none;
  }

  .filter-bar .field {
    flex-basis: 100%;
  }

  .actions {
    justify-content: flex-start;
  }

  .table td,
  .table th {
    padding: 9px 10px;
  }
}

@media (max-width: 440px) {
  .kpi-grid-3,
  .kpi-grid-4,
  .kpi-grid-5 {
    grid-template-columns: 1fr;
  }

  .topbar-side .role-pill {
    display: none;
  }
}
