/* /Components/Pages/Prices.razor.rz.scp.css */
/* customer-price-manager — the embeddable price page (Blok 4).
   Segoe UI Light, NO bold anywhere: emphasis is colour and tint, never weight (platform rule,
   DESIGN §4.5). Max data / min wasted space. Chrome-less: this renders inside someone else's site. */

.cpm[b-hkwshnf5my] {
    --line: #e3e3e3;
    --ink: #1f1f1f;
    --muted: #6b6b6b;
    --steer: #fbf6e8;       /* the FB_EZML column the pricing steers toward */
    --steer-line: #e7d9ad;
    --gain: #1f7a4d;        /* voordeel — a positive, reassuring green */
    --head: #f4f4f4;

    color: var(--ink);
    max-width: 100%;
    margin: 0;
    padding: 0.75rem;
    font-weight: 300;
}

.cpm-head h1[b-hkwshnf5my] {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 300;
}

/* ---- period tabs: links, never @onclick (static SSR) ---- */
.cpm-tabs[b-hkwshnf5my] {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.cpm-tab[b-hkwshnf5my] {
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    color: var(--muted);
    background: var(--head);
}

.cpm-tab.is-active[b-hkwshnf5my] {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    border-bottom: 2px solid #fff;
    position: relative;
    top: 1px;
}

/* ---- the grid ---- */
.cpm-grid-wrap[b-hkwshnf5my] {
    overflow-x: auto;          /* the page body never scrolls sideways; the table does if it must */
}

.cpm-grid[b-hkwshnf5my] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cpm-grid th[b-hkwshnf5my],
.cpm-grid td[b-hkwshnf5my] {
    padding: 0.4rem 0.7rem;
    border-bottom: 1px solid var(--line);
    font-weight: 300;
    text-align: right;
    white-space: nowrap;
}

.cpm-grid thead th[b-hkwshnf5my] {
    background: var(--head);
    text-align: right;
    vertical-align: bottom;
    color: var(--muted);
}

.cpm-rowhead[b-hkwshnf5my] {
    text-align: left !important;
    color: var(--ink);
}

.cpm-num[b-hkwshnf5my] {
    font-variant-numeric: tabular-nums;
}

/* the steered column, distinct but quiet */
.cpm-steer[b-hkwshnf5my] {
    background: var(--steer);
    border-left: 1px solid var(--steer-line);
    border-right: 1px solid var(--steer-line);
}

thead th.cpm-steer[b-hkwshnf5my] {
    background: var(--steer);
}

.cpm-best[b-hkwshnf5my] {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: #a6801f;
    text-transform: uppercase;
}

/* ---- totals & advantage ---- */
.cpm-total th[b-hkwshnf5my],
.cpm-total td[b-hkwshnf5my] {
    border-top: 2px solid #cfcfcf;
    border-bottom: none;
}

.cpm-advantage td[b-hkwshnf5my],
.cpm-advantage th[b-hkwshnf5my] {
    border-bottom: none;
    padding-top: 0.15rem;
}

.cpm-plus[b-hkwshnf5my] {
    color: var(--gain);
}

.cpm-plus[b-hkwshnf5my]::before {
    content: "▲ ";
    font-size: 0.8em;
}

.cpm-ref[b-hkwshnf5my] {
    color: var(--muted);
    font-style: italic;
}

/* ---- options ---- */
.cpm-options[b-hkwshnf5my] {
    margin-top: 1.25rem;
}

.cpm-options h2[b-hkwshnf5my] {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--muted);
}

/* ---- footer / empty ---- */
.cpm-foot[b-hkwshnf5my] {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.cpm-foot p[b-hkwshnf5my] {
    margin: 0.1rem 0;
}

/* ---- print: operators print these, A4 landscape ---- */
@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    .cpm[b-hkwshnf5my] {
        padding: 0;
    }

    .cpm-tabs[b-hkwshnf5my] {
        display: none;          /* the printed sheet is one period; the tab bar is navigation */
    }

    .cpm-grid[b-hkwshnf5my],
    .cpm-options[b-hkwshnf5my] {
        page-break-inside: avoid;
    }

    .cpm-steer[b-hkwshnf5my] {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
