/*
 * The Anfigo look — one file for every product of the family (ADR 0007): Customer Service (dashboard.html) and
 * Accounting (accounting.html) link it after css/tailwind.css, so a product looks like the others by using it,
 * never by copying its rules. What only one product needs stays in that page.
 *
 *   canvas          the warm cream behind every page (body.bg-gray-50 on the dashboard, body.anfigo-canvas elsewhere)
 *   display type    Newsreader for headings and large figures; Hanken Grotesk (Tailwind's sans) for everything else
 *   accent          the forest green on native form controls
 *   sidebar         .nav-item / .nav-item.active / .nav-divider / .nav-icon — the left menu of every product
 *   filter chips    .overview-filter-chip / .active-chip / .chip-count — the pill filters and period switches
 */

/* Warm cream app canvas. Targets the body element only, so inner bg-gray-50 surfaces (inputs, table headers,
   hovers) keep their neutral gray. */
body.bg-gray-50,
body.anfigo-canvas {
    background: #F1EEE6 !important;
}

/* Display headings use the design's Newsreader serif. Scoped to large headings so dense UI controls/labels keep
   the Hanken Grotesk sans body font. */
h1,
h2,
h3,
.text-xl,
.text-2xl,
.text-3xl {
    font-family: 'Newsreader', Georgia, serif;
}

/* Green focus ring/accent fallback for native form controls. */
input,
textarea,
select {
    accent-color: #176150;
}

/* ── The sidebar ── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 2px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    width: calc(100% - 16px);
    text-align: left;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-item.active {
    background: #176150;
    color: #fff;
}

.nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 16px;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Filter chips ── */
.overview-filter-chip {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}

.overview-filter-chip:hover {
    background: #f1f5f9;
}

.overview-filter-chip.active-chip {
    background: #176150;
    color: #fff;
    border-color: #176150;
}

.chip-count {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.6;
    margin-left: 2px;
}

.overview-filter-chip.active-chip .chip-count {
    opacity: 0.85;
}
