/* ============================================================================
   LONGFELLOW LAW GROUP — "Counsel" identity.
   Loaded only for the lawfirm pack; re-skins the shared UI kit into a traditional,
   prestigious legal product. Language: warm IVORY PARCHMENT field, a deep HUNTER-
   GREEN rail, BRASS hairlines & small-caps labels, and a classic LIBRE BASKERVILLE
   serif display over Inter body. Restrained, bookish, counsel's-office gravitas.
   Deliberately unlike catering (garnet + Playfair) and the realestate navy+gold:
   green-and-brass, quieter, more legal-ledger than luxury.
   ============================================================================ */
:root {
    --accent: #1f4d3d;            /* hunter green */
    --accent-2: #2f6b54;          /* mid green */
    --accent-soft: #e3ede7;       /* pale green wash */
    --accent-deep: #143528;       /* deep green */
    --brass: #a98a4b;             /* brass / gold */
    --brass-soft: #f1e8d4;
    --bg: #f4f1e9;               /* ivory parchment */
    --panel: #fffefa;
    --ink: #21282b;              /* charcoal */
    --ink-soft: #6a7370;
    --line: #e2dbcb;            /* warm hairline */
    --side: #1b2b24;            /* deep green-charcoal */
    --side-ink: #9aa9a1;
    --side-ink-bright: #ffffff;
    --pos: #2f7a55;
    --neg: #b23a32;
    --display-font: "Libre Baskerville", "Georgia", serif;
    --radius: 5px;
    --shadow: 0 1px 2px rgba(33,40,43,.05), 0 16px 36px -26px rgba(33,40,43,.4);
}

body {
    font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(900px 520px at 100% -10%, rgba(31,77,61,.06), transparent 60%);
    background-attachment: fixed;
    letter-spacing: .1px;
}

/* ---------------- Sidebar: counsel's office ---------------- */
.side { background: linear-gradient(180deg, #20342b, #15211b); border-right: 1px solid #0c1410; }
.brand { border-bottom: 1px solid rgba(255,255,255,.08); margin: -2px -6px 14px; padding: 6px 14px 16px; }
.brand-mark {
    background: var(--accent); border-radius: 4px; box-shadow: 0 0 0 3px rgba(169,138,75,.25);
    font-family: var(--display-font); font-weight: 700; color: #f4f1e9;
}
.brand-name { font-family: var(--display-font); font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand-pack { text-transform: uppercase; letter-spacing: .22em; font-size: 9px; color: var(--brass); opacity: .95; }
.nav-link {
    border-radius: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
    color: #9fada4; border-left: 2px solid transparent; padding-left: 10px;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link.active {
    background: linear-gradient(90deg, rgba(31,77,61,.34), rgba(31,77,61,.04));
    color: #fff; border-left-color: var(--brass);
}
.nav-link.active .nav-ico { color: var(--brass); opacity: 1; }
.side-foot { text-transform: uppercase; letter-spacing: .2em; font-size: 9px; }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.client-id strong { font-family: var(--display-font); font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.client-id .dot { border-radius: 50%; }

/* ---------------- Page header: ledger masthead ---------------- */
.page-head { position: relative; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); }
.page-head h1 { font-family: var(--display-font); font-weight: 700; font-size: 27px; letter-spacing: .1px; }
.page-head .sub { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; }

/* serif display on panel titles + numerals */
.rpanel .panel-h h3 { font-family: var(--display-font); font-weight: 700; font-size: 15px; letter-spacing: .1px; }
.kpi-num, .kpi-val { font-family: var(--display-font); font-weight: 700; }
.kpi-lab, .kpi-label { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }

/* buttons */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------------- Status badge palette ---------------- */
/* neutral / new / queued (parchment grey) */
.badge-intake, .badge-new-lead, .badge-draft, .badge-not-run, .badge-unbilled,
.badge-low, .badge-prospect, .badge-pending { background: #e9e6db; color: #5e665f; }
/* info / in-motion (green wash) */
.badge-open, .badge-discovery, .badge-contacted, .badge-consult-scheduled, .badge-conflict-check,
.badge-engagement-sent, .badge-sent, .badge-in-progress, .badge-normal, .badge-billed,
.badge-partial, .badge-clear, .badge-deposit, .badge-transfer-to-operating { background: var(--accent-soft); color: var(--accent-deep); }
/* attention (brass) */
.badge-on-hold, .badge-consult-held, .badge-high, .badge-waived { background: var(--brass-soft); color: #8a6d2f; }
/* done / paid / healthy (deep green) */
.badge-closed, .badge-retained, .badge-paid, .badge-done, .badge-executed, .badge-filed,
.badge-final, .badge-active { background: #dcece1; color: #246048; }
/* alerts (garnet) */
.badge-declined, .badge-overdue, .badge-conflict, .badge-no-show, .badge-written-off,
.badge-statute-of-limitations, .badge-refund, .badge-archived { background: #f3e0dd; color: #a8403a; }

/* practice areas + fee types + categories + doc types + trust info chips (muted green-grey) */
.badge-family-law, .badge-real-estate, .badge-estate-planning, .badge-business-corporate,
.badge-civil-litigation, .badge-criminal-defense, .badge-personal-injury, .badge-bankruptcy,
.badge-employment, .badge-landlord-tenant,
.badge-hourly, .badge-flat-fee, .badge-contingency, .badge-retainer, .badge-pro-bono,
.badge-individual, .badge-business, .badge-estate, .badge-nonprofit, .badge-government,
.badge-disbursement, .badge-non-billable,
.badge-filing-fee, .badge-court-cost, .badge-service-of-process, .badge-deposition,
.badge-expert-witness, .badge-courier, .badge-mileage, .badge-copying, .badge-recording-fee, .badge-postage, .badge-other,
.badge-hearing, .badge-trial, .badge-filing-deadline, .badge-discovery-deadline, .badge-motion-deadline,
.badge-answer-due, .badge-mediation, .badge-settlement-conference, .badge-closing, .badge-appeal-deadline, .badge-client-meeting,
.badge-pleading, .badge-motion, .badge-contract, .badge-will-trust, .badge-closing-document,
.badge-correspondence, .badge-engagement-letter, .badge-demand-letter, .badge-court-order { background: #e5e8df; color: #4c5b4c; }

.ph-pos { color: var(--pos); } .ph-neg { color: var(--neg); }
.ph-money { font-variant-numeric: tabular-nums; }

/* deadline alert chip helper (SOL / due-soon / overdue) for custom views */
.lf-alert { display:inline-flex; align-items:center; gap:6px; font-weight:700; color:#a8403a; text-transform:uppercase; letter-spacing:.08em; font-size:11px; }
.lf-alert::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--neg); }
