:root {
  --bg: #eef1f0;
  --surface: #ffffff;
  --surface-2: #f5f6f5;
  --surface-3: #e9ece9;
  --border: #e4e7e5;
  --text: #10201c;
  --text-muted: #6d7873;
  --text-faint: #98a29d;
  --primary: #17342f;
  --primary-hover: #0f2723;
  --primary-tint: #e5efec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(16,32,28,0.04), 0 8px 24px rgba(16,32,28,0.06);

  --good: #0ca30c;
  --good-text: #006300;
  --critical: #d03b3b;
  --warning: #fab219;

  --c-income: #1baf7a;
  --c-expenditure: #e34948;
  --c-investment: #2a78d6;
  --c-capital: #4a3aa7;

  --chart-grid: #e1e0d9;
  --chart-axis: #c3c2b7;
  --chart-muted: #898781;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== LOGIN ===== */
#gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.gate-logo {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.gate-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.gate-card .subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

.login-form { text-align: left; }
.login-form .field { margin-bottom: 0.9rem; }
.login-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.login-form select,
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
}
.login-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236d7873' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.login-form select:focus,
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,52,47,0.14);
}
.login-error {
  background: rgba(208,59,59,0.08);
  border: 1px solid rgba(208,59,59,0.3);
  color: var(--critical);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
  display: none;
}
.login-error.show { display: block; }
.btn-login {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: white;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background 0.15s;
}
.btn-login:hover { background: var(--primary-hover); }

/* ===== APP SHELL ===== */
#app { display: none; }
.app-shell { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.18s ease;
}
.sidebar.collapsed { width: 76px; }
.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1rem 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.78rem;
}
.brand-name {
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar.collapsed .brand-name { display: none; }
.sidebar-collapse {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; font-size: 0.75rem;
}
.sidebar-collapse:hover { background: var(--surface-2); color: var(--text); }

.sidebar-search {
  margin: 0 1rem 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
.sidebar-search svg { flex-shrink: 0; color: var(--text-faint); }
.sidebar-search input {
  border: none; background: transparent; outline: none;
  font: inherit; font-size: 0.8rem; color: var(--text); width: 100%;
  min-width: 0;
}
.sidebar-search input::placeholder { color: var(--text-faint); }
.sidebar-search kbd {
  font-size: 0.65rem; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 4px; padding: 0.05rem 0.3rem;
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-search { display: none; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.2rem 0.75rem; }
.nav-group-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); font-weight: 700;
  padding: 0.9rem 0.6rem 0.4rem;
}
.sidebar.collapsed .nav-group-label { text-align: center; padding-left: 0; padding-right: 0; }
.nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; padding: 0.55rem 0.65rem;
  border: none; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 0.84rem; font-weight: 500;
  border-radius: 10px; cursor: pointer; text-align: left;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.nav-icon { width: 18px; text-align: center; font-size: 0.95rem; flex-shrink: 0; }
.nav-item span.nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0.55rem; }
.sidebar.collapsed .nav-item span.nav-text { display: none; }

.sidebar-footer {
  padding: 0.85rem; border-top: 1px solid var(--border);
}
.session-card {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem; border-radius: 10px; background: var(--surface-2);
  margin-bottom: 0.5rem;
}
.session-avatar, .user-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.session-info { min-width: 0; }
.session-info strong { display: block; font-size: 0.78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-info span { display: block; font-size: 0.68rem; color: var(--text-muted); }
.sidebar.collapsed .session-info { display: none; }
.sidebar.collapsed .session-card { justify-content: center; }
.btn-logout {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: transparent; border: 1px solid var(--border); color: var(--critical);
  padding: 0.5rem; border-radius: 10px; font: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
}
.btn-logout:hover { background: rgba(208,59,59,0.06); }
.sidebar.collapsed .btn-logout span.nav-text { display: none; }

/* ---- Main column ---- */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.6rem; flex-wrap: wrap;
}
.topbar-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.5rem 0.75rem; flex: 1; max-width: 340px; min-width: 200px;
}
.topbar-search svg { color: var(--text-faint); flex-shrink: 0; }
.topbar-search input {
  border: none; outline: none; background: transparent; font: inherit;
  font-size: 0.82rem; color: var(--text); width: 100%;
}
.topbar-search input::placeholder { color: var(--text-faint); }
.topbar-search.disabled { opacity: 0.55; }
.topbar-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.pill-select {
  display: flex; align-items: center; gap: 0.35rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.85rem;
}
.pill-select-icon { font-size: 0.78rem; }
.pill-select select {
  appearance: none; border: none; background: transparent; outline: none;
  font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--text);
  cursor: pointer; padding-right: 0.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236d7873' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.notif-dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 999px; background: var(--critical); border: 1.5px solid var(--surface);
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 300px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card); z-index: 50; text-align: left; overflow: hidden;
}
.notif-panel-h {
  padding: 0.7rem 0.9rem; font-size: 0.78rem; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.notif-item { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item .n-action { font-size: 0.78rem; color: var(--text); font-weight: 600; }
.notif-item .n-detail { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.notif-item .n-time { font-size: 0.66rem; color: var(--text-faint); margin-top: 0.15rem; }
.notif-empty { padding: 1rem; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.notif-viewall {
  width: 100%; padding: 0.55rem; background: var(--surface-2); border: none;
  border-top: 1px solid var(--border); color: var(--primary); font: inherit;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.notif-viewall:hover { background: var(--primary-tint); }

.user-chip { display: flex; align-items: center; gap: 0.55rem; }
.user-meta { line-height: 1.25; }
.user-meta strong { display: block; font-size: 0.8rem; color: var(--text); }
.user-meta span { display: block; font-size: 0.68rem; color: var(--text-muted); }

.page-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: 0 1.6rem 1rem;
}
.page-header-title .title-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.page-header-title h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.page-header-title p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.page-header-actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
}
.badge-master { background: rgba(74,58,167,0.12); color: #4a3aa7; }
.badge-dept { background: var(--primary-tint); color: var(--primary); }
.badge-viewer { background: rgba(250,178,25,0.16); color: #9a6b00; }

.btn {
  padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem; transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); }
.btn-success { background: var(--good); color: #fff; }
.btn-success:hover { filter: brightness(1.08); }
.btn-excel { background: #1e7145; color: #fff; }
.btn-excel:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 0.32rem 0.65rem; font-size: 0.74rem; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.main-content { padding: 0 1.6rem 3rem; }

/* ---- KPI cards ---- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 1rem;
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-card); cursor: pointer;
}
.kpi-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.kpi-label { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.kpi-menu { background: transparent; border: none; color: var(--text-faint); font-size: 0.9rem; cursor: pointer; padding: 0.1rem 0.3rem; }
.kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.kpi-value-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.kpi-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.kpi-value.pos { color: var(--good-text); }
.kpi-value.neg { color: var(--critical); }

.trend { font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; }
.trend-good { color: var(--good-text); background: rgba(12,163,12,0.1); }
.trend-bad { color: var(--critical); background: rgba(208,59,59,0.08); }
.trend-flat { color: var(--text-muted); background: var(--surface-2); }

.composition-bar {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); margin-top: 0.7rem; gap: 2px;
}
.composition-bar span { display: block; height: 100%; }
.composition-legend { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.55rem; }
.composition-legend span { display: flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; color: var(--text-muted); }
.composition-legend i { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }

/* ---- Chart cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.95rem; overflow: hidden; box-shadow: var(--shadow-card);
}
.card-h {
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
}
.card-h h2 { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.muted-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.card-b { padding: 1rem 1.1rem; }

.chart-wrap { position: relative; height: 260px; }
.chart-wrap-sm { height: 220px; }

.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.95rem; margin-bottom: 0.95rem; align-items: stretch; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col .card { margin-bottom: 0; }

/* ---- Breakdown table ---- */
.breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.breakdown-table th {
  text-align: right; padding: 0.4rem 0.5rem; font-size: 0.66rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--border);
}
.breakdown-table th:first-child { text-align: left; }
.breakdown-table td { padding: 0.55rem 0.5rem; text-align: right; border-bottom: 1px solid var(--border); vertical-align: middle; }
.breakdown-table td:first-child { text-align: left; }
.breakdown-cat { display: flex; align-items: center; gap: 0.5rem; }
.breakdown-icon {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.breakdown-bar-wrap { width: 100px; }
.breakdown-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.breakdown-bar span { display: block; height: 100%; background: var(--c-expenditure); }
.breakdown-share { font-size: 0.7rem; color: var(--text-muted); }
.breakdown-action {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 0.7rem; padding: 0.25rem 0.55rem; cursor: pointer; font-weight: 600;
}
.breakdown-action:hover { background: var(--surface-2); color: var(--text); }

/* ---- Generic tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 0.5rem 0.5rem; text-align: right; border-bottom: 1px solid var(--border); }
th {
  background: var(--surface-2); color: var(--text-muted); font-weight: 600; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
tr:hover td { background: var(--surface-2); }
.section-row td { background: var(--surface-2) !important; font-weight: 700; color: var(--primary); text-align: left; }
.total-row td { font-weight: 700; background: var(--primary-tint) !important; border-top: 2px solid var(--primary); }

.inp {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 0.8rem; text-align: right; width: 100%; min-width: 80px;
  padding: 0.3rem 0.45rem; border-radius: 6px;
}
.inp:hover { border-color: #b9c2be; }
.inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(23,52,47,0.12); }
.inp.name { text-align: left; min-width: 140px; }
.inp:disabled { opacity: 0.55; cursor: not-allowed; }
.zero { color: var(--text-faint); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.add-form {
  display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: flex-end;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.6rem;
}
.add-form .field { flex: 1; min-width: 100px; }
.add-form .field input { width: 100%; }
.add-form label { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 0.2rem; }

.del-btn {
  background: transparent; border: none; color: var(--text-faint); cursor: pointer;
  padding: 0.18rem 0.3rem; border-radius: 4px; font-size: 0.82rem;
}
.del-btn:hover { color: var(--critical); background: rgba(208,59,59,0.08); }

.empty-state { text-align: center; padding: 1.75rem 1rem; color: var(--text-muted); font-size: 0.85rem; }

.toast {
  position: fixed; bottom: 1.2rem; right: 1.2rem;
  background: var(--text); color: #fff;
  padding: 0.65rem 1rem; border-radius: 10px; font-size: 0.82rem;
  transform: translateY(120%); transition: transform 0.25s ease; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.show { transform: translateY(0); }

.summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; margin-bottom: 0.95rem; }
@media (max-width: 700px) { .summary-cards { grid-template-columns: 1fr; } }
.sum-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem; }
.sum-card h3 { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sum-row { display: flex; justify-content: space-between; padding: 0.25rem 0; font-size: 0.8rem; border-bottom: 1px solid var(--border); }
.sum-row:last-child { border-bottom: none; font-weight: 700; padding-top: 0.4rem; }
.sum-row .lbl { color: var(--text-muted); }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.7rem; margin-bottom: 0.95rem; }
.dept-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; cursor: pointer; transition: border-color 0.15s; }
.dept-card:hover { border-color: var(--primary); }
.dept-card h4 { font-size: 0.82rem; margin-bottom: 0.35rem; color: var(--text); }
.dept-card .dv { font-size: 0.75rem; color: var(--text-muted); }
.dept-card .dv span { color: var(--text); font-weight: 600; }

.readonly-note { background: rgba(250,178,25,0.1); border: 1px solid rgba(250,178,25,0.35); color: #8a5f00; padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.78rem; margin-bottom: 0.8rem; }
.perm-note { background: var(--primary-tint); border: 1px solid rgba(23,52,47,0.15); color: var(--primary); padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.78rem; margin-bottom: 0.8rem; }

.footer { text-align: center; padding: 1.15rem; color: var(--text-faint); font-size: 0.7rem; border-top: 1px solid var(--border); }

.pos { color: var(--good-text); }
.neg { color: var(--critical); }

@media (max-width: 800px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 0.5rem 0.75rem; }
  .sidebar-top { padding: 0.3rem 0; }
  .sidebar-search, .sidebar-footer { display: none; }
  .sidebar-nav { display: flex; flex-wrap: wrap; padding: 0.3rem; }
  .nav-item { width: auto; flex: 1; min-width: 100px; justify-content: center; font-size: 0.76rem; }
  .nav-group-label { display: none; }
  .topbar { padding: 0.85rem 1rem; }
  .page-header { padding: 0 1rem 0.8rem; }
  .main-content { padding: 0 1rem 3rem; }
}
