/* =========================================================================
   Olaif Finance Dashboard — Design System v3 (WEBARQ-branded)
   Primary: WEBARQ blue. Olaif teal kept for org-specific (Zoho section).
   ========================================================================= */

:root {
  /* Olaif teal (DIPAKAI HANYA UNTUK COMPONENT OLAIF-SPECIFIC di Zoho section) */
  --teal-50:  #e6f7f5;
  --teal-100: #c0ebe6;
  --teal-300: #5cc2b3;
  --teal-500: #009787;
  --teal-600: #007e71;
  --teal-700: #00665b;

  /* WEBARQ blue — PRIMARY BRAND COLOR */
  --blue-50:  #e6f3fb;
  --blue-100: #c0e0f3;
  --blue-300: #5cb1de;
  --blue-500: #0081c3;
  --blue-600: #006ba3;
  --blue-700: #005583;

  /* Neutral */
  --ink-900: #0f172a;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f9fafb;
  --bg:      #f5f7fa;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #0ea5e9;

  --grad-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow:    0 1px 3px 0 rgba(15, 23, 42, 0.07), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.14);

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --sidebar-w: 232px;
  --topbar-h:  64px;
}

* { box-sizing: border-box; }

body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.01em; margin: 0;
}
code, pre, .mono {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

/* ───────────────────────────────────────────────────────────────────────
   LAYOUT — sidebar + topbar + content
   ─────────────────────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows:    var(--topbar-h)  1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ── Sidebar ── */
.app-sidebar {
  grid-area: sidebar;
  background: white;
  border-right: 1px solid var(--ink-200);
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-100);
}
.sidebar-brand img {
  height: 26px;
}
.sidebar-brand-text {
  font-size: 14px; font-weight: 800; color: var(--ink-900);
  letter-spacing: -0.01em;
}

.sidebar-nav {
  padding: 14px 12px;
  flex: 1; overflow-y: auto;
}
.sidebar-section {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 10px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-600);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  transition: all 0.12s ease;
  position: relative;
}
.sidebar-link:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}
.sidebar-link.active {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: "";
  position: absolute; left: -12px; top: 6px; bottom: 6px;
  width: 3px; background: var(--blue-500); border-radius: 0 3px 3px 0;
}
.sidebar-link svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.sidebar-link .link-emoji { font-size: 16px; line-height: 1; }
.sidebar-link .link-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--ink-100); color: var(--ink-600);
  font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}
.sidebar-link.active .badge-count {
  background: white; color: var(--blue-700);
}

.sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--ink-100);
  display: flex; gap: 8px; align-items: center;
}
.sidebar-foot .lang-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px;
  font-size: 11px; font-weight: 700;
  background: var(--ink-100); color: var(--ink-600);
  border-radius: 6px;
}
.sidebar-foot .lang-pill.active {
  background: var(--blue-500); color: white;
}

/* ── Topbar ── */
.app-topbar {
  grid-area: topbar;
  background: white;
  border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title {
  font-size: 16px; font-weight: 700; color: var(--ink-900);
}
.topbar-spacer { flex: 1; }

.user-chip {
  display: flex; align-items: center; gap: 12px;
}
.user-meta { text-align: right; line-height: 1.2; }
.user-name { font-weight: 700; font-size: 13px; color: var(--ink-900); }
.user-role { font-size: 11.5px; color: var(--ink-500); }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-700); font-weight: 800; font-size: 12px;
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  flex-shrink: 0;
}
.user-avatar.av-team { color: var(--blue-600); background: var(--blue-50); border-color: var(--blue-100); }
.btn-logout {
  background: transparent; border: none;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); cursor: pointer;
  transition: all 0.12s;
}
.btn-logout:hover { background: var(--ink-100); color: var(--ink-900); }
.btn-logout svg { width: 18px; height: 18px; }

/* ── Main content ── */
.app-main {
  grid-area: main;
  padding: 28px 32px 40px;
  max-width: 1200px;
}

/* ───────────────────────────────────────────────────────────────────────
   COMPONENTS
   ─────────────────────────────────────────────────────────────────────── */

/* Page header */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 22px; letter-spacing: -0.01em; }
.page-header .lead { color: var(--ink-500); font-size: 13.5px; margin-top: 4px; max-width: 720px; }

.crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-500);
  margin-bottom: 8px;
}
.crumbs a { color: var(--ink-500); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--blue-600); }
.crumbs .sep { opacity: 0.5; }
.crumbs .crumb-current { color: var(--ink-700); font-weight: 600; }

/* Card (clean white surface) */
.card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.card-head h3 { font-size: 14.5px; }
.card-head .head-sub { font-size: 12.5px; color: var(--ink-500); }
.card-body { padding: 20px; }

/* Stat tile (top of dashboard) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 26px; font-weight: 800; color: var(--ink-900); line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-foot {
  margin-top: 8px;
  font-size: 12px; color: var(--ink-500);
}

/* Quick actions card */
.quick-row {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.quick-row .quick-text { flex: 1; min-width: 260px; }
.quick-row h4 { font-size: 14.5px; margin-bottom: 2px; }
.quick-row .quick-sub { font-size: 12.5px; color: var(--ink-500); }
.quick-row .quick-actions { display: flex; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 10px 22px; font-size: 14px; }

.btn-primary {
  background: var(--blue-500); color: white;
}
.btn-primary:hover { background: var(--blue-600); color: white; }

.btn-secondary {
  background: white; color: var(--ink-800); border-color: var(--ink-300);
}
.btn-secondary:hover { background: var(--ink-50); color: var(--ink-900); }

.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: #0284c7; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form */
.form-control, .form-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  background: white;
  color: var(--ink-900);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0, 151, 135, 0.12);
}
.form-label { font-weight: 600; color: var(--ink-700); font-size: 12.5px; margin-bottom: 4px; display: block; }

/* Status dot */
.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-700);
}
.status-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}
.status-dot.pending::before { background: var(--ink-300); }
.status-dot.running::before { background: var(--info); animation: blink 1.2s ease-in-out infinite; }
.status-dot.success::before { background: var(--blue-500); }
.status-dot.warning::before { background: var(--warning); }
.status-dot.error::before   { background: var(--danger); }
@keyframes blink { 50% { opacity: 0.35; } }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--ink-100); color: var(--ink-700);
}
.pill-teal    { background: var(--teal-50);  color: var(--teal-700); }
.pill-blue    { background: var(--blue-50);  color: var(--blue-600); }
.pill-success { background: #d1fae5;          color: #065f46; }
.pill-warning { background: #fef3c7;          color: #92400e; }
.pill-danger  { background: #fee2e2;          color: #991b1b; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
}
.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-800);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--ink-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-tight tbody td { padding: 8px 14px; }

/* Reminder list */
.reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.reminder-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  background: white;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s;
}
.reminder-item:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}
.reminder-item .r-icon {
  width: 36px; height: 36px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.reminder-item.done .r-icon { background: var(--ink-50); }
.reminder-item .r-text { flex: 1; min-width: 0; }
.reminder-item .r-name { font-weight: 600; font-size: 13px; color: var(--ink-900); }
.reminder-item .r-hint { font-size: 11.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Log box */
.log-box {
  background: #0d1117; color: #c7d2e0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; line-height: 1.6;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0;
  height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #1f2937;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  margin-bottom: 12px;
}
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-light   { background: var(--ink-50); border-color: var(--ink-200); color: var(--ink-700); }

/* Dev banner */
.dev-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b;
  color: #78350f;
  padding: 7px 0;
  grid-column: 1 / -1;
  font-size: 12px;
}
.dev-banner .dev-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.dev-banner code {
  background: rgba(255,255,255,0.6); padding: 1px 6px;
  border-radius: 4px; font-size: 11px; color: #78350f;
}

/* ───────────────────────────────────────────────────────────────────────
   AGENT PAGE — preview pipeline stepper
   ─────────────────────────────────────────────────────────────────────── */
.pipeline {
  display: flex; align-items: stretch;
  gap: 0; margin-bottom: 20px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 16px 8px;
  overflow-x: auto;
}
.pipeline-step {
  flex: 1; min-width: 130px;
  padding: 4px 16px;
  position: relative;
  text-align: center;
}
.pipeline-step + .pipeline-step::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 12px; height: 2px; background: var(--ink-200);
  transform: translateX(-50%);
}
.pipeline-step .ps-icon {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: var(--ink-50); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  border: 1px solid var(--ink-200);
}
.pipeline-step.active .ps-icon  { background: var(--blue-500); color: white; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.pipeline-step.done .ps-icon    { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-300); }
.pipeline-step .ps-name { font-size: 12px; font-weight: 600; color: var(--ink-700); margin-bottom: 2px; }
.pipeline-step .ps-sub  { font-size: 10.5px; color: var(--ink-500); }
.pipeline-step.active .ps-name { color: var(--ink-900); }
.pipeline-step.done   .ps-name { color: var(--ink-900); }
.pipeline-step .ps-logo { height: 14px; vertical-align: -2px; }

/* ─── Cardholder card (credit-card Stage B breakdown) ──────────────── */
.ch-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.ch-card:hover { box-shadow: var(--shadow); }
.ch-banner { height: 3px; background: var(--ink-300); }
.ch-card.ch-olaif    .ch-banner { background: var(--teal-500); }
.ch-card.ch-webarq   .ch-banner { background: var(--blue-500); }
.ch-card.ch-personal .ch-banner { background: var(--ink-400); }
.ch-card .ch-body { padding: 12px 14px; }
.ch-card.ch-personal { background: linear-gradient(180deg, var(--ink-50), white); }

/* ─── Preview file (XLSX/CSV) ───────────────────────────────────────── */
.sheet-tabs {
  display: flex; gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ink-200);
  overflow-x: auto;
}
.sheet-tab {
  background: transparent; border: none;
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.12s ease;
}
.sheet-tab:hover { color: var(--ink-800); background: var(--ink-50); }
.sheet-tab.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-500);
}
.sheet-tab .sheet-count {
  background: var(--ink-100); color: var(--ink-600);
  font-size: 10.5px; padding: 1px 6px;
  border-radius: 99px;
}
.sheet-tab.active .sheet-count {
  background: var(--blue-50); color: var(--blue-700);
}
.sheet-panel.hidden { display: none; }

.preview-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.preview-table thead {
  position: sticky; top: 0; z-index: 5;
  background: var(--ink-50);
}
.preview-table thead th {
  padding: 8px 12px;
  font-weight: 700; font-size: 11px;
  color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 2px solid var(--ink-200);
  border-right: 1px solid var(--ink-100);
  text-align: left;
  white-space: nowrap;
  background: var(--ink-50);
}
.preview-table tbody td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--ink-100);
  border-right: 1px solid var(--ink-100);
  vertical-align: top;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden; text-overflow: ellipsis;
}
.preview-table tbody tr:hover td { background: #fffbe6; }
.preview-table tbody tr:nth-child(even) td { background: var(--ink-50); }
.preview-table tbody tr:nth-child(even):hover td { background: #fffbe6; }
.preview-table th.num, .preview-table td.num {
  text-align: right; font-variant-numeric: tabular-nums;
}
.preview-table .row-num {
  background: var(--ink-100) !important;
  color: var(--ink-500);
  font-size: 10.5px;
  text-align: right;
  width: 36px;
  position: sticky; left: 0; z-index: 1;
}

/* Btn preview di file list */
.btn-preview {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  margin-right: 4px;
  transition: all 0.12s;
}
.btn-preview:hover {
  background: var(--blue-500); color: white;
  border-color: var(--blue-500);
}

/* Month picker — dropdown filter di home & agent */
.month-picker {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 4px 4px 4px 12px;
  font-size: 12.5px;
  color: var(--ink-700);
}
.month-picker label { font-weight: 600; color: var(--ink-500); }
.month-picker select {
  border: none; outline: none;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-900);
  background: transparent;
  padding: 4px 6px;
  cursor: pointer;
}
.month-picker select:focus { box-shadow: none; }
.month-picker .reset {
  color: var(--ink-500); font-size: 11.5px;
  text-decoration: none; padding: 0 8px 0 4px;
  border-left: 1px solid var(--ink-200);
}
.month-picker .reset:hover { color: var(--danger); }

/* Zoho push preview (per-org card) */
.zoho-preview-box {
  border: 1px solid var(--ink-200); border-radius: 8px;
  padding: 8px 10px;
  background: var(--ink-50);
  max-height: 180px; overflow: auto;
  margin-bottom: 10px;
}
.dryrun-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-700);
  cursor: pointer; margin: 0;
}
.zoho-push-form {
  display: flex; align-items: center; gap: 8px;
  justify-content: space-between;
}

/* File list inside cards */
.file-list { max-height: 260px; overflow-y: auto; }
.file-list table { font-size: 12.5px; }
.file-list table tbody td { padding: 9px 12px; }

/* Section number pill */
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-500); color: white;
  font-size: 11px; font-weight: 800;
  margin-right: 8px;
}

/* Org card (settings) */
.org-card { position: relative; }
.org-card .org-banner { height: 4px; background: var(--grad-brand); }
.org-card.org-olaif  .org-banner { background: linear-gradient(90deg, var(--teal-500), var(--teal-600)); }
.org-card.org-webarq .org-banner { background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); }
.org-card .org-header {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--ink-200);
}
.org-logo-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  padding: 6px;
  background: var(--ink-50);
}
.org-card.org-olaif  .org-logo-wrap { background: var(--teal-50); }
.org-card.org-webarq .org-logo-wrap { background: var(--blue-50); }
.org-logo-wrap img { max-width: 100%; max-height: 100%; }

/* Footer */
.app-footer {
  grid-column: 2; padding: 16px 32px;
  text-align: center; color: var(--ink-400); font-size: 12px;
  border-top: 1px solid var(--ink-200); background: white;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 70px; }
  .sidebar-brand-text, .sidebar-link span:not(.badge-count), .sidebar-section { display: none; }
  .sidebar-link { justify-content: center; padding: 9px; }
  .sidebar-link.active::before { display: none; }
  .app-main { padding: 20px; }
  .topbar-title { font-size: 14px; }
}

/* Hide scrollbar on sidebar but keep functional */
.sidebar-nav::-webkit-scrollbar { width: 0; }
.log-box::-webkit-scrollbar { width: 8px; height: 8px; }
.log-box::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.log-box::-webkit-scrollbar-track { background: transparent; }
