/* /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;
}

/* The period in words. Hidden on screen — the active tab already says it — and revealed in print,
   where the tab bar is gone. Without it a printed sheet carries no year at all. */
.cpm-period[b-hkwshnf5my] {
    display: none;
}

/* ---- the bar: period tabs left, take-away buttons right ---- */
.cpm-bar[b-hkwshnf5my] {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.5rem;
    /* On a phone the three period tabs already wrap, and without this the buttons squeeze in beside
       them and the caption breaks over two lines. Measured at 390 px (tools/eyetest-takeaway.mjs),
       which is where this page actually gets read — it is embedded on a public website. */
    flex-wrap: wrap;
}

.cpm-tools[b-hkwshnf5my] {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;          /* stays right even when there is only one period (no tabs) */
    margin-bottom: 0.15rem;
}

/* One look for a link and a button, because to the visitor they are the same kind of thing.
   `button` needs the reset: it inherits nothing from the page by default. */
.cpm-tool[b-hkwshnf5my] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;        /* the caption belongs on one line; the BAR wraps, not the word */
}

.cpm-tool:hover[b-hkwshnf5my],
.cpm-tool:focus-visible[b-hkwshnf5my] {
    color: var(--ink);
    border-color: #c9c9c9;
    background: var(--head);
}

.cpm-ico[b-hkwshnf5my] {
    width: 1rem;
    height: 1rem;
    flex: none;
}

/* ---- period tabs: links, never @onclick (static SSR) ---- */
.cpm-tabs[b-hkwshnf5my] {
    display: flex;
    gap: 0.25rem;
    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;
    color: #a6801f;
}

/* ---- 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-tools[b-hkwshnf5my] {
        display: none;          /* a button on paper is nothing */
    }

    /* ...and because both of those go, the year must come back somewhere. */
    .cpm-period[b-hkwshnf5my] {
        display: block;
        margin: 0 0 0.6rem;
        color: var(--muted);
        font-size: 1rem;
    }

    .cpm-period span[b-hkwshnf5my] {
        font-size: 0.75rem;     /* a published year can be SPLIT — print the real period too */
    }

    .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;
    }
}
