/* Akupara Design Tokens & Base Layout Stylesheet (Zero-FOUC & Offline-Resilient) */
:root {
    --bg-canvas: #020617;
    --bg-surface: #0f172a;
    --bg-elevated: #1e293b;
    --border-subtle: rgba(30, 41, 59, 0.9);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-indigo: #6366f1;
}

html, body {
    background-color: var(--bg-canvas);
    color: var(--text-secondary);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #020617; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #334155; }

#sidebar { transition: width 0.2s ease; }
#sidebar.collapsed { width: 4.5rem; }
#sidebar.collapsed .nav-label,
#sidebar.collapsed .nav-group-label,
#sidebar.collapsed .sidebar-brand-text,
#sidebar.collapsed .sidebar-footer-text,
#sidebar.collapsed .sidebar-switcher-panel { display: none; }
#sidebar.collapsed .sidebar-turtle-crest { height: 4rem; padding: 0.35rem; }
#sidebar.collapsed .sidebar-turtle-crest button { display: none; }
#sidebar.collapsed .sidebar-turtle-crest a > div:first-child { width: 3rem; height: 3rem; padding: 0.25rem; border-radius: 0.75rem; }
#sidebar.collapsed .sidebar-turtle-crest img { width: 2.5rem; height: 2.5rem; }
#sidebar.collapsed .nav-item { justify-content: center; padding-left: 0.25rem; padding-right: 0.25rem; }

#drawer-slot:empty, #modal-slot:empty { display: none; }

/* Production Financial Redaction Visual Treatment (Disabled in Beta Mode) */
.redacted-hatch {
    background: repeating-linear-gradient(
        -45deg,
        rgba(245, 158, 11, 0.12),
        rgba(245, 158, 11, 0.12) 6px,
        rgba(15, 23, 42, 0.85) 6px,
        rgba(15, 23, 42, 0.85) 12px
    );
    border: 1px dashed rgba(245, 158, 11, 0.45);
}

main table tbody tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.38);
}
main table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.65) !important;
}

.text-\[9px\], .text-\[10px\], .text-\[11px\] {
    font-size: 0.75rem !important;
    line-height: 1.15rem !important;
}
main table tbody td {
    font-size: 0.875rem;
    line-height: 1.35rem;
}
