:root {
  --bg: #f1f5f3;
  --bg2: #e8f1ed;
  --ink: #15221c;
  --muted: #5d6d64;
  --line: #cddad3;
  --panel: #ffffffcc;
  --shadow: 0 12px 30px rgba(18, 51, 39, 0.08);
  --shadow-soft: 0 6px 18px rgba(18, 51, 39, 0.05);
  --brand-primary: #0d6efd;
  --brand-accent: #14a2b8;
  --brand-warning: #f4b400;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(950px 500px at 100% -10%, #d1e7da 0, transparent 60%),
    radial-gradient(800px 400px at -10% 100%, #d9e9f4 0, transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
h1, h2, h3, h4, h5, h6, .page-title, .header-meta, .section-title, .form-label {
  font-family: "Plus Jakarta Sans", sans-serif;
}
.top-strip { height: 8px; background: #c9d7ee; border-bottom: 1px solid #b7c7df; }
.layout { display: flex; min-height: calc(100vh - 8px); }
.sidebar {
  width: 260px;
  border-right: 1px solid #c8d7cf;
  background: linear-gradient(180deg, #f9fcfa, #eaf2ee);
  padding: .58rem;
  display: flex;
  flex-direction: column;
}
.logo-box {
  padding: .5rem;
  border: 1px solid #cad8d0;
  border-radius: .9rem;
  background: linear-gradient(135deg, #fff, #eef4f1);
  margin-bottom: .7rem;
}
.logo-mark { font-size: 1.75rem; letter-spacing: .5px; font-weight: 700; color: #2262a5; line-height: 1; }
.logo-sub { font-size: .92rem; color: #6b7f73; text-transform: lowercase; }
.nav-group { padding: 0; }
.nav-link-app {
  text-decoration: none;
  text-align: left;
  border: 1px solid transparent;
  border-radius: .52rem;
  background: transparent;
  padding: 0.52rem 0.6rem;
  color: #1f3028;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .2rem;
}
.nav-link-app:hover,
.nav-link-app.active {
  background: #d9e9e1;
  border-color: #b9cdc2;
  color: #0f1f17;
}
.nav-sub .nav-link-app { margin-left: .3rem; }
.main { flex: 1; min-width: 0; padding: .58rem; }
.topbar {
  border: 1px solid #cad9d2;
  background: linear-gradient(135deg, #ffffff, #e8f0eb);
  border-radius: .72rem;
  box-shadow: var(--shadow);
  padding: .95rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-wrap { padding: 0; }
.page-title { font-size: 2rem; margin: 0 0 .7rem; font-weight: 700; }
.page-title-md { font-size: 2.15rem; }
.header-meta { font-size: 2rem; margin: 0 0 .7rem; font-weight: 600; }
.section-title { font-size: 1.25rem; margin: 0; font-weight: 700; }
.small-muted { color: var(--muted); font-size: .95rem; }
.card-app {
  border: 1px solid #cfddd6;
  border-radius: .72rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card-app .card-head-blue {
  border-top: 4px solid var(--brand-primary);
  border-radius: .72rem .72rem 0 0;
}
.card-app .card-body { padding: .58rem; }
.card-app:hover { box-shadow: var(--shadow-soft); }
.form-label { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1px solid #c8d6cf;
  min-height: 46px;
  background: #fff;
  font-size: 1rem;
}
.table { --bs-table-bg: transparent; }
.table th {
  border-top: 1px solid #d4e0da;
  border-bottom: 2px solid #d4e0da;
  font-size: .92rem;
  font-weight: 700;
}
.table td {
  border-bottom: 1px solid #e0e9e4;
  font-size: .95rem;
}
.table tbody tr:hover td { background: #f6fbf8; }
.badge-pill-yellow {
  background: var(--brand-warning);
  color: #1e2b36;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}
.badge-pill-gray {
  background: #74828b;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}
.btn-square {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
}
.btn-cyan { background: var(--brand-accent); color: #fff; border: 0; }
.btn-cyan:hover { background: #108ea1; color: #fff; }
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.nav-link-app:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}
.split-kpi {
  text-align: center;
  border-left: 1px solid #d2ddd7;
  color: #31463c;
  font-size: .95rem;
  padding-top: .5rem;
}
.split-kpi strong {
  display: block;
  font-size: 1.8rem;
  color: #12271d;
}
.white-label-box {
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px solid #c8d7cf;
  color: var(--muted);
  font-size: .7rem;
}
.topbar-meta { font-size: .78rem; }

.demo-callout {
  border: 1px solid #bfd3c8;
  background: linear-gradient(135deg, #f8fcfa, #edf5f1);
  border-radius: .72rem;
  padding: .52rem .66rem;
  margin-bottom: .62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.demo-callout strong { display: block; font-size: .84rem; color: #1a2f25; }
.demo-callout span { font-size: .76rem; color: #4d6258; }
.demo-callout-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .52rem;
  font-size: .66rem;
  font-weight: 700;
  color: #0a4a67;
  background: #d8eef8;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #c8d7cf;
  }
}

/* Coherent compact mode: readable but dense */
body { font-size: 14px; }
.page-title { font-size: 1.6rem; margin-bottom: .45rem; }
.page-title-md { font-size: 1.75rem; }
.header-meta { font-size: 1.45rem; margin-bottom: .4rem; }
.section-title { font-size: 1.06rem; }
.small-muted { font-size: .8rem; }
.logo-mark { font-size: 1.3rem; }
.logo-sub { font-size: .78rem; }

.sidebar { gap: .2rem; }
.nav-link-app { padding: .36rem .5rem; font-size: .82rem; border-radius: .56rem; }
.topbar { padding: .62rem .72rem; margin-bottom: .72rem; }
.card-app { margin-bottom: .7rem; border-radius: .78rem; }
.card-app .card-body { padding: .62rem; }

.form-label { font-size: .8rem; margin-bottom: .24rem; }
.form-control, .form-select {
  min-height: 34px;
  font-size: .8rem;
  padding: .25rem .46rem;
  border-radius: .48rem;
}

.table th { font-size: .74rem; padding: .38rem .42rem; }
.table td { font-size: .77rem; padding: .34rem .42rem; vertical-align: middle; }

.badge-pill-yellow, .badge-pill-gray { font-size: .66rem; padding: 2px 8px; }
.split-kpi { font-size: .72rem; padding-top: .4rem; }
.split-kpi strong { font-size: 1.2rem; }

.btn {
  --bs-btn-padding-y: .2rem;
  --bs-btn-padding-x: .44rem;
  --bs-btn-font-size: .72rem;
  --bs-btn-border-radius: .36rem;
}
.btn-sm {
  --bs-btn-padding-y: .14rem;
  --bs-btn-padding-x: .32rem;
  --bs-btn-font-size: .67rem;
}
.btn-lg {
  --bs-btn-padding-y: .24rem;
  --bs-btn-padding-x: .56rem;
  --bs-btn-font-size: .78rem;
}
.btn-square { width: 30px; height: 30px; border-radius: .38rem; }

@media (min-width: 1101px) {
  .sidebar { position: sticky; top: 0; height: calc(100vh - 8px); }
  .main { max-width: calc(100vw - 260px); }
}

@media (max-width: 768px) {
  body { font-size: 13px; }
  .main { padding: .5rem; }
  .page-title, .page-title-md { font-size: 1.35rem; }
  .header-meta { font-size: 1.2rem; }
  .topbar { padding: .52rem .58rem; }
  .card-app .card-body { padding: .52rem; }
  .table th, .table td { white-space: nowrap; }
  .demo-callout { flex-direction: column; align-items: flex-start; }
}
