/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 220px;
  --primary:   #2563eb;
  --primary-d: #1d4ed8;
  --sidebar:   #0f172a;
  --sidebar-h: #1e293b;
  --success:   #16a34a;
  --danger:    #dc2626;
  --warning:   #d97706;
  --text:      #1e293b;
  --text-m:    #64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --card:      #ffffff;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

#sidebar-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#sidebar-brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}
#sidebar-brand small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

#sidebar-nav { flex: 1; padding: 8px 0; }

.nav-section {
  padding: 16px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #475569;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s;
  font-size: 13.5px;
}
.nav-item:hover  { background: var(--sidebar-h); color: #e2e8f0; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item svg    { width: 16px; height: 16px; flex-shrink: 0; }

#sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#user-info { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
#user-info strong { display: block; color: #e2e8f0; }
#btn-logout {
  width: 100%;
  padding: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  transition: background .15s;
}
#btn-logout:hover { background: rgba(220,38,38,.2); color: #fca5a5; border-color: rgba(220,38,38,.3); }

/* ── Main content ─────────────────────────────────────────────────────────── */
#main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#page-title { font-size: 18px; font-weight: 600; }
#page-actions { display: flex; gap: 8px; align-items: center; }

#page-content { flex: 1; padding: 24px; }

/* ── Auth ─────────────────────────────────────────────────────────────────── */
#auth-screen {
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  align-items: center;
  justify-content: center;
}
#auth-screen.visible { display: flex; }

.auth-box {
  background: var(--card);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo h1 { font-size: 24px; font-weight: 700; color: var(--text); }
.auth-logo p  { color: var(--text-m); margin-top: 4px; font-size: 13px; }

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-m);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 13px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-hint { font-size: 11px; color: var(--text-m); margin-top: 3px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s, opacity .15s, border-color .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled)  { background: var(--primary-d); }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled)  { background: #15803d; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled)   { background: #b91c1c; }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled)  { background: var(--bg); }
.btn-ghost    { background: transparent; border-color: transparent; color: var(--text-m); }
.btn-ghost:hover:not(:disabled)    { background: var(--bg); color: var(--text); }
.btn-sm       { padding: 5px 10px; font-size: 12px; }
.btn-full     { width: 100%; justify-content: center; }
.btn-icon     { padding: 6px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 14px; font-weight: 600; }
.card-body  { padding: 20px; }

/* ── Dashboard tiles ──────────────────────────────────────────────────────── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.tile-label  { font-size: 12px; color: var(--text-m); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.tile-value  { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.tile-sub    { font-size: 12px; color: var(--text-m); }
.tile-green  .tile-value { color: var(--success); }
.tile-blue   .tile-value { color: var(--primary); }
.tile-orange .tile-value { color: var(--warning); }
.tile-red    .tile-value { color: var(--danger); }

/* ── Tables ───────────────────────────────────────────────────────────────── */

/* ── Developers ───────────────────────────────────────────────────────────── */
.developer-shell { display: grid; gap: 24px; }
.developer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(37,99,235,.12);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6f9ff 55%, #eef4ff 100%);
}
.developer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.developer-hero h2 { font-size: 30px; line-height: 1.1; margin: 16px 0 12px; }
.developer-hero p { color: var(--text-m); font-size: 15px; max-width: 58ch; }
.developer-hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.developer-stat-grid { display: grid; gap: 12px; }
.developer-stat {
  padding: 18px;
  border-radius: 14px;
  background: rgba(15,23,42,.92);
  color: #e2e8f0;
  box-shadow: var(--shadow-md);
}
.developer-stat span { display: block; color: #93c5fd; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.developer-stat strong { display: block; font-size: 22px; margin: 8px 0 6px; color: #fff; }
.developer-stat small { color: #94a3b8; line-height: 1.5; }
.developer-resource-grid { margin-bottom: 0; }
.developer-scope-list { display: flex; gap: 6px; flex-wrap: wrap; }
.developer-scope-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.developer-scope-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.developer-scope-option input { width: auto; }
.developer-modal { max-width: 760px; }
.developer-copy-note { color: var(--text-m); margin-bottom: 12px; }
.developer-code-block,
.docs-code {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
}
.muted { color: var(--text-m); font-size: 12px; }
.badge-neutral {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

/* ── Docs ─────────────────────────────────────────────────────────────────── */
.docs-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 32%, #eef3fb 100%);
}
.docs-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}
.docs-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.docs-brand { margin-bottom: 18px; }
.docs-brand h1 { font-size: 22px; margin-bottom: 4px; }
.docs-brand p { color: var(--text-m); font-size: 13px; }
.docs-nav { display: grid; gap: 6px; }
.docs-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
}
.docs-nav a:hover { background: var(--bg); text-decoration: none; }
.docs-main { display: grid; gap: 22px; }
.docs-hero {
  padding: 34px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(147,197,253,.4), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #102746 40%, #1d4ed8 100%);
  box-shadow: var(--shadow-md);
}
.docs-hero h2 { font-size: 36px; line-height: 1.06; margin: 14px 0 10px; max-width: 12ch; }
.docs-hero p { max-width: 62ch; color: rgba(255,255,255,.82); font-size: 15px; }
.docs-hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.docs-hero .btn-outline { border-color: rgba(255,255,255,.24); color: #fff; }
.docs-hero .btn-outline:hover { background: rgba(255,255,255,.08); }
.docs-section.card { overflow: hidden; }
.docs-section-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.docs-section-header p { color: var(--text-m); font-size: 13px; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.docs-mini-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.docs-mini-card h4 { margin-bottom: 8px; font-size: 15px; }
.docs-mini-card p { color: var(--text-m); line-height: 1.5; }
.docs-table { width: 100%; border-collapse: collapse; }
.docs-table th, .docs-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs-table th { font-size: 12px; color: var(--text-m); text-transform: uppercase; letter-spacing: .06em; }
.docs-table code { font-size: 12px; }
.docs-endpoint-path { font-weight: 700; color: var(--sidebar); }
.docs-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.docs-method-get { background: var(--success); }
.docs-method-post { background: var(--primary); }
.docs-method-put, .docs-method-patch { background: var(--warning); }
.docs-method-delete { background: var(--danger); }
.docs-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.docs-note {
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: #eff6ff;
  color: var(--text);
}

@media (max-width: 980px) {
  .developer-hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar { position: static; }
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-m);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
.td-right { text-align: right; font-variant-numeric: tabular-nums; }
.td-mono  { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-asset     { background: #dbeafe; color: #1d4ed8; }
.badge-liability { background: #fef3c7; color: #92400e; }
.badge-equity    { background: #ede9fe; color: #5b21b6; }
.badge-revenue   { background: #dcfce7; color: #166534; }
.badge-expense   { background: #fee2e2; color: #991b1b; }
.badge-success   { background: #dcfce7; color: #166534; }
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-neutral   { background: #f1f5f9; color: #475569; }
.badge-info      { background: #dbeafe; color: #1e40af; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in .15s ease;
}
.modal-lg { max-width: 740px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-m); padding: 4px; border-radius: 4px; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Alert / Toast ────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  min-width: 260px;
  max-width: 380px;
  pointer-events: all;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }
.toast-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.toast-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.toast-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Alert banner ─────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Journal lines ────────────────────────────────────────────────────────── */
#journal-lines-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
#journal-lines-table th {
  padding: 6px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border);
}
#journal-lines-table td { padding: 6px 4px; vertical-align: middle; }
#journal-lines-table input,
#journal-lines-table select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
#journal-lines-table input:focus,
#journal-lines-table select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.1);
}
.line-totals-row td {
  font-weight: 600;
  padding: 8px 4px;
  border-top: 2px solid var(--border);
  font-size: 13.5px;
}
.balance-ok   { color: var(--success); }
.balance-diff { color: var(--danger); }

/* ── COA hierarchy indent ─────────────────────────────────────────────────── */
.coa-child { padding-left: 24px !important; color: var(--text); }
.coa-parent { font-weight: 600; }

/* ── Filters bar ──────────────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters-bar .form-group { margin-bottom: 0; }
.filters-bar label { font-size: 11px; }
.filters-bar input,
.filters-bar select { padding: 7px 10px; font-size: 13px; }

/* ── Report sections ──────────────────────────────────────────────────────── */
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.report-title { font-size: 20px; font-weight: 700; }
.report-period { color: var(--text-m); font-size: 13px; }
.report-section-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-m);
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.report-total {
  font-weight: 700;
  background: #f1f5f9;
}
.report-grand-total {
  font-weight: 700;
  font-size: 14px;
  background: var(--sidebar);
  color: #fff;
}
.report-balanced-ok  { color: var(--success); font-weight: 600; }
.report-balanced-err { color: var(--danger);  font-weight: 600; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-m);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3  { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p   { font-size: 13px; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 16px 0 0;
}
.page-info { font-size: 12px; color: var(--text-m); margin: 0 8px; }

/* ── Misc utilities ───────────────────────────────────────────────────────── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-m); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-mono    { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.flex-1 { flex: 1; }
.amount-positive { color: var(--success); }
.amount-negative { color: var(--danger); }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
.spinner-dark {
  border-color: rgba(37,99,235,.2);
  border-top-color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Loading state ────────────────────────────────────────────────────────── */
.loading-row td { text-align: center; padding: 32px; color: var(--text-m); }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  #sidebar { display: none; }
  #page-content { padding: 16px; }
}
