/* ============================================================
   BASE — Variables, Reset, Typography
   "New Century Financial" aesthetic
   Libre Baskerville (display) + Outfit (body)
   Charcoal sidebar, warm cream bg, teal-green accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand palette */
    --charcoal-950: #111418;
    --charcoal-900: #181d22;
    --charcoal-800: #222830;
    --charcoal-700: #2e3640;
    --charcoal-600: #3d4855;
    --charcoal-500: #536070;
    --teal-600: #0e7066;
    --teal-500: #0f9080;
    --teal-400: #14b89e;
    --teal-300: #4dd4be;
    --teal-100: #ccf2ec;
    --teal-50:  #f0fdfb;
    --gold-500: #c8922a;
    --gold-400: #e0aa40;
    --gold-100: #fef3d8;
    --rose-600: #be2d3e;
    --rose-50:  #fff3f4;
    --rose-200: #ffc9ce;
    --amber-400: #f59e0b;
    --amber-50:  #fffbeb;
    --amber-200: #fde68a;

    /* Semantic */
    --text-primary:   #1a1f26;
    --text-secondary: #4a5568;
    --text-muted:     #7d8fa3;
    --border:         #dce3ec;
    --border-strong:  #c4cdd8;
    --border-light:   #edf2f7;
    --surface:        #ffffff;
    --surface-soft:   #f8f9fc;
    --surface-warm:   #fafbfd;
    --bg:             #f2f4f8;

    /* Sidebar */
    --sidebar-bg:     var(--charcoal-900);
    --sidebar-border: rgba(255,255,255,0.06);
    --nav-text:       rgba(255,255,255,0.55);
    --nav-hover:      rgba(255,255,255,0.08);
    --nav-active-bg:  rgba(15,144,128,0.25);
    --nav-active-border: var(--teal-400);

    /* Spacing & Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.06);
    --shadow-sm: 0 2px 6px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 18px rgba(15,23,42,0.09), 0 1px 4px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 36px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.05);
    --shadow-card: 0 0 0 1px var(--border), var(--shadow-sm);
    --shadow-teal: 0 4px 14px rgba(15,144,128,0.30);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.14s var(--ease);
    --t-base: 0.22s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-primary);
}

::selection { background: var(--teal-100); color: var(--teal-600); }

:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* =========================================================
   OPENING BALANCES PRINT
   ========================================================= */

.ob-print-card .stmt-summary-row {
    grid-template-columns: repeat(3, 1fr);
}

.ob-print-table th:nth-child(1),
.ob-print-table td:nth-child(1) {
    width: 90px;
}

.ob-print-table th:nth-child(3),
.ob-print-table td:nth-child(3) {
    width: 120px;
}

.ob-print-table th:nth-child(4),
.ob-print-table td:nth-child(4) {
    width: 120px;
}

.ob-print-table th:nth-child(5),
.ob-print-table td:nth-child(5) {
    width: 150px;
}