/* FinMS — Design System
   Light admin theme in the AdminLTE idiom: white boxes on a grey canvas,
   a dark sidebar, one flat blue for actions, and solid colour blocks that
   carry meaning rather than decoration.
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────── */
:root {
  /* Surfaces */
  --bg-body:      #ecf0f5;
  --bg-box:       #ffffff;
  --bg-input:     #ffffff;
  --bg-sidebar:   #222d32;
  --bg-sidebar-2: #1a2226;
  --bg-hover:     #f6f8f9;

  /* Sidebar */
  --side-link:    #b8c7ce;
  --side-hover:   #1e282c;
  --side-header:  #4b646f;

  /* Text */
  --text-primary:   #333333;
  --text-secondary: #666666;
  --text-muted:     #999999;

  /* Lines */
  --border:      #d2d6de;
  --border-soft: #f4f4f4;

  /* Brand + semantics — AdminLTE's flat palette */
  --blue:    #3c8dbc;
  --blue-dk: #367fa9;
  --aqua:    #00c0ef;
  --green:   #00a65a;
  --yellow:  #f39c12;
  --orange:  #ff851b;
  --red:     #dd4b39;
  --purple:  #605ca8;
  --teal:    #39cccc;
  --navy:    #001f3f;

  /* Kept for inline styles in app.js that still reference it. Flat by
     design now — the old gradient is what made this look generated. */
  --grad-primary: var(--blue);

  --radius-md: 3px;
  --radius-sm: 2px;

  --shadow-box: 0 1px 1px rgba(0, 0, 0, 0.1);
  --duration-fast: 0.15s;

  --sidebar-w: 230px;
  --topbar-h: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); }

::selection { background: rgba(60, 141, 188, 0.25); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ══ LAYOUT ═══════════════════════════════════════ */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 900;
  overflow-y: auto;
}

.sidebar-logo {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--blue-dk);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.logo-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  color: #fff;
}
.logo-icon svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-title { font-size: 18px; font-weight: 300; color: #fff; letter-spacing: 0.2px; }
.logo-sub { font-size: 10.5px; color: rgba(255, 255, 255, 0.65); }

/* The markup order is logo, menu, user. AdminLTE reads logo, user, menu — the
   identity sits under the brand rather than at the foot of the column. */
.sidebar-logo { order: 1; }
.sidebar-user { order: 2; }
.sidebar-nav  { order: 3; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 13.5px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role { font-size: 11.5px; color: #a0b3ba; }
.user-role::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: 1px;
}

.logout-btn {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #8aa4ae;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.logout-btn svg { width: 17px; height: 17px; }
.logout-btn:hover { color: #fff; background: var(--side-hover); }

.sidebar-nav { flex: 1; padding-bottom: 20px; }

.nav-section-title {
  padding: 11px 14px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--side-header);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--side-link);
  font-size: 13.5px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.active {
  background: var(--side-hover);
  color: #fff;
  border-left-color: var(--blue);
}

.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 800;
}

.page-title { font-size: 16px; font-weight: 600; color: #fff; }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.topbar-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.topbar-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* The clock carries an inline var(--text-muted) from app.js, which is grey on
   grey against the blue bar — override it rather than edit every caller. */
.topbar-actions #clock-display { color: rgba(255, 255, 255, 0.85) !important; }

/* Mobile menu button sits on the navbar, so it follows the navbar's colours. */
.topbar .btn-icon {
  background: transparent;
  border-color: transparent;
  color: #fff;
}
.topbar .btn-icon:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.page-content { padding: 15px; flex: 1; }

/* Page heading — AdminLTE's content-header: plain, above the boxes. */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}
.page-header-left h1 { font-size: 23px; font-weight: 400; color: #3d444a; }
.page-header-left p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ══ SMALL BOXES (stat cards) ═════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-box);
  box-shadow: var(--shadow-box);
  overflow: hidden;
  color: var(--text-primary);
}

.stat-value { order: 1; font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-label { order: 2; font-size: 13.5px; margin-top: 2px; }
.stat-sub {
  order: 3;
  font-size: 11.5px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

/* The icon becomes a watermark, not a badge — that is the AdminLTE tell. */
.stat-icon {
  position: absolute;
  top: 6px; right: 10px;
  opacity: 0.22;
  pointer-events: none;
}
.stat-icon svg { width: 62px; height: 62px; stroke-width: 1.4; }

/* Colour comes from the icon class the dashboard already sets, so the
   markup in app.js stays as it is. */
.stat-card:has(.stat-icon.cyan)   { background: var(--aqua);   color: #fff; }
.stat-card:has(.stat-icon.green)  { background: var(--green);  color: #fff; }
.stat-card:has(.stat-icon.red)    { background: var(--red);    color: #fff; }
.stat-card:has(.stat-icon.orange) { background: var(--yellow); color: #fff; }
.stat-card:has(.stat-icon.purple) { background: var(--purple); color: #fff; }
.stat-card:has(.stat-icon.blue)   { background: var(--blue);   color: #fff; }

.stat-card[class] :is(.stat-value, .stat-label) { color: inherit; }
.stat-card:has(.stat-icon.cyan) .stat-sub,
.stat-card:has(.stat-icon.green) .stat-sub,
.stat-card:has(.stat-icon.red) .stat-sub,
.stat-card:has(.stat-icon.orange) .stat-sub,
.stat-card:has(.stat-icon.purple) .stat-sub,
.stat-card:has(.stat-icon.blue) .stat-sub {
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 0.25);
}
.stat-card:has(.stat-icon.cyan) .stat-icon,
.stat-card:has(.stat-icon.green) .stat-icon,
.stat-card:has(.stat-icon.red) .stat-icon,
.stat-card:has(.stat-icon.orange) .stat-icon,
.stat-card:has(.stat-icon.purple) .stat-icon,
.stat-card:has(.stat-icon.blue) .stat-icon { color: #fff; opacity: 0.28; }

/* Where a coloured box is not wanted, the icon keeps its own hue. */
.stat-icon.cyan { color: var(--aqua); }
.stat-icon.green { color: var(--green); }
.stat-icon.red { color: var(--red); }
.stat-icon.orange { color: var(--yellow); }
.stat-icon.purple { color: var(--purple); }
.stat-icon.blue { color: var(--blue); }

/* ══ BOXES ════════════════════════════════════════ */
.card {
  background: var(--bg-box);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-box);
  margin-bottom: 15px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-soft);
}

.card-title { font-size: 16px; font-weight: 600; color: #444; }
.card-body { padding: 15px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 15px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }

.divider { height: 1px; background: var(--border-soft); margin: 14px 0; }

/* ══ FILTER BAR ═══════════════════════════════════ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg-box);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-box);
  padding: 12px 15px;
  margin-bottom: 15px;
}

.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
}
.search-box input:focus { outline: none; border-color: var(--blue); }
.search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}
.search-icon svg { width: 15px; height: 15px; }

.filter-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--blue); }

/* ══ TABLES ═══════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #444;
  border-bottom: 2px solid var(--border-soft);
  white-space: nowrap;
}

tbody td {
  padding: 9px 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody tr:hover { background: var(--bg-hover); }

.amount-in { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-out { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }

.table-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.table-empty svg { width: 38px; height: 38px; margin: 0 auto 10px; opacity: 0.35; }
.table-empty p { font-size: 13.5px; }

/* ══ EMPTY STATE ══════════════════════════════════ */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--border); }
.empty-icon svg { width: 100%; height: 100%; }
.empty-title { font-size: 16px; font-weight: 600; color: #444; margin-bottom: 5px; }
.empty-desc { font-size: 13.5px; color: var(--text-muted); }

/* ══ FORMS ════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #444;
  margin-bottom: 5px;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color var(--duration-fast);
}
.form-control { height: 34px; }
.form-select { height: 34px; cursor: pointer; }
.form-textarea { min-height: 88px; resize: vertical; padding-top: 8px; }

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(60, 141, 188, 0.12);
}

.form-control::placeholder { color: #bbb; }

.form-control:disabled,
.form-select:disabled {
  background: #eeeeee;
  color: #888;
  cursor: not-allowed;
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 34px; }
.input-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

/* ══ BUTTONS ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.btn svg { width: 15px; height: 15px; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-primary { background: var(--blue); border-color: #2e6da4; color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dk); }

.btn-success { background: var(--green); border-color: #008d4c; color: #fff; }
.btn-success:hover:not(:disabled) { background: #008d4c; }

.btn-danger { background: var(--red); border-color: #d73925; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #d73925; }

.btn-ghost { background: #f4f4f4; border-color: var(--border); color: #444; }
.btn-ghost:hover:not(:disabled) { background: #e7e7e7; }

.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 15px; }
.w-full { width: 100%; }

.btn-icon {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f4f4f4;
  color: #666;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.btn-icon svg { width: 14px; height: 14px; }
.btn-icon:hover { background: #e7e7e7; color: #333; }
.btn-icon.danger { color: var(--red); }
.btn-icon.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ══ LABELS (badges) ══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.badge-blue   { background: var(--blue); }
.badge-green  { background: var(--green); }
.badge-red    { background: var(--red); }
.badge-orange { background: var(--yellow); }
.badge-gray   { background: #777777; }
.badge-purple { background: var(--purple); }
.badge-yellow { background: var(--yellow); }
.badge-cyan   { background: var(--aqua); }

/* ══ ALERTS ═══════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 15px;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.alert-title { font-weight: 700; display: block; margin-bottom: 2px; }

.alert-warning {
  background: #fcf8e3;
  border-color: #faebcc;
  color: #8a6d3b;
}

/* ══ PROGRESS ═════════════════════════════════════ */
.progress-bar {
  height: 18px;
  background: #f4f4f4;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  transition: width 0.4s ease;
}
.progress-bar.sm { height: 8px; }

/* ══ MODALS ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal {
  width: 100%;
  max-width: 600px;
  background: var(--bg-box);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 880px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title { font-size: 17px; font-weight: 600; color: #444; }

.modal-close {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: #f4f4f4; color: #333; }

.modal-body { padding: 15px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 15px;
  border-top: 1px solid var(--border-soft);
}

/* ══ TOASTS ═══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 18px; right: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 1100;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 380px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.25s ease;
}
.toast-success { background: var(--green); }
.toast-error   { background: var(--red); }
.toast-warning { background: var(--yellow); }
.toast-info    { background: var(--aqua); }

.toast-icon { width: 17px; height: 17px; flex-shrink: 0; }
.toast-msg { flex: 1; }

.toast-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  padding: 0;
}
.toast-close svg { width: 14px; height: 14px; }
.toast-close:hover { color: #fff; }

.toast-out { animation: toastOut 0.35s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ══ CHARTS ═══════════════════════════════════════ */
.chart-container { position: relative; width: 100%; height: 300px; }

/* ══ LOADER ═══════════════════════════════════════ */
.loader {
  width: 34px; height: 34px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ LOGIN ════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background: #d2d6de;
}

/* The decorative blurred orbs were pure ornament and the loudest part of
   the old look. Nothing references them any more. */
.login-bg-orbs, .orb, .orb-1, .orb-2, .orb-3 { display: none; }

.login-card {
  width: 100%;
  max-width: 370px;
  background: var(--bg-box);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-box);
  padding: 24px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.login-logo-icon { width: 34px; height: 34px; color: var(--blue); }
.login-logo-icon svg { width: 100%; height: 100%; }
.login-brand { font-size: 24px; font-weight: 300; color: #444; line-height: 1.1; }
.login-subtitle { font-size: 11.5px; color: var(--text-muted); }

.login-title { font-size: 15px; font-weight: 600; color: #444; margin-bottom: 3px; text-align: center; }
.login-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; text-align: center; }

/* ══ UTILITIES ════════════════════════════════════ */
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mb-4 { margin-bottom: 15px; }
.mb-6 { margin-bottom: 22px; }

/* ══ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.mobile-open { transform: none; }
  .main-content { margin-left: 0; }
  .page-content { padding: 12px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .stat-value { font-size: 26px; }
  .page-header-left h1 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
