/* /Components/Crm/ArvTierTable.razor.rz.scp.css */
.arv-tier-table[b-yxso17ow40] { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .4rem; }
.arv-tier-table th[b-yxso17ow40] {
    text-align: left;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .4rem .3rem 0;
}
.arv-tier-table td[b-yxso17ow40] { padding: .2rem .4rem .2rem 0; }
.arv-tier-table td:first-child[b-yxso17ow40], .arv-tier-table td:nth-child(3)[b-yxso17ow40] { width: 7rem; }
.arv-tier-table td:last-child[b-yxso17ow40] { width: 2rem; padding-right: 0; }
.tier-remove[b-yxso17ow40] {
    background: none;
    border: 0;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--crm-c9c3b2c-text);
    cursor: pointer;
}
.tier-add[b-yxso17ow40] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
}
.tier-add:hover[b-yxso17ow40] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
/* /Components/Crm/ColdCallFunnel.razor.rz.scp.css */
.funnel-block[b-n0vy4oxw8g] {
    --ink-secondary: #52514e;
    --ink-muted: #898781;
    --gridline: #e1e0d9;
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid var(--gridline);
}

.funnel-title[b-n0vy4oxw8g] {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.funnel-note[b-n0vy4oxw8g] {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin: 0.25rem 0 0.75rem;
    max-width: 60ch;
}

.funnel[b-n0vy4oxw8g] {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 0.75rem;
}

/* Each step is a chevron-ended block; the last one is the payoff, so it is filled. */
.funnel-step[b-n0vy4oxw8g] {
    display: flex;
    flex-direction: column;
    flex: 1 1 120px;
    padding: 0.55rem 0.9rem 0.55rem 1.1rem;
    border: 1px solid rgba(var(--crm-rgb11-11-11-line), 0.10);
    border-radius: 6px;
    position: relative;
    font-variant-numeric: tabular-nums;
}

.funnel-step:not(:last-child)[b-n0vy4oxw8g]::after {
    content: "";
    position: absolute;
    right: -0.55rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 1px solid rgba(var(--crm-rgb11-11-11-line), 0.25);
    border-right: 1px solid rgba(var(--crm-rgb11-11-11-line), 0.25);
    transform: translateY(-50%) rotate(45deg);
    background: var(--crm-cffffff-bg);
}

.funnel-step:last-child[b-n0vy4oxw8g] {
    background: var(--crm-c1a1a19-bg);
    border-color: var(--crm-c1a1a19-line);
    color: var(--crm-cffffff-text);
}

.funnel-value[b-n0vy4oxw8g] {
    font-size: 1.3rem;
    font-weight: 650;
    line-height: 1.1;
}

.funnel-label[b-n0vy4oxw8g] {
    font-size: 0.78rem;
    color: var(--ink-secondary);
}

.funnel-step:last-child .funnel-label[b-n0vy4oxw8g] {
    color: rgba(var(--crm-rgb255-255-255-text), 0.8);
}

/* ---------- passed-leads table ---------- */

.funnel-table-wrap[b-n0vy4oxw8g] {
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.funnel-table-wrap summary[b-n0vy4oxw8g] {
    cursor: pointer;
    color: var(--ink-secondary);
}

.funnel-table-scroll[b-n0vy4oxw8g] {
    overflow-x: auto;
}

.funnel-table[b-n0vy4oxw8g] {
    border-collapse: collapse;
    margin-top: 0.5rem;
    min-width: 320px;
}

.funnel-table th[b-n0vy4oxw8g],
.funnel-table td[b-n0vy4oxw8g] {
    border: 1px solid var(--gridline);
    padding: 0.3rem 0.7rem;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.funnel-table th.num[b-n0vy4oxw8g],
.funnel-table td.num[b-n0vy4oxw8g] {
    text-align: right;
}

.funnel-hot[b-n0vy4oxw8g] {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0 0.35rem;
    border-radius: 3px;
    background: var(--crm-cfdecc8-bg);
    color: var(--crm-c8a5a00-text);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.status-closed[b-n0vy4oxw8g] { color: var(--crm-c1b7a48-text); font-weight: 600; }
.status-deal[b-n0vy4oxw8g] { color: var(--crm-c8a5a00-text); font-weight: 600; }
.status-working[b-n0vy4oxw8g] { color: var(--ink-secondary); }
.status-dead[b-n0vy4oxw8g] { color: var(--ink-muted); }
/* /Components/Crm/CrmAlert.razor.rz.scp.css */
.crm-alert[b-t1rzshnxiy] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(var(--crm-rgb156-59-44-bg), .08);
    border: 1px solid rgba(var(--crm-rgb156-59-44-line), .30);
    color: var(--crm-c7f2f22-text);
    border-radius: 10px;
    padding: .8rem 1.1rem;
    margin-bottom: 1.1rem;
    font-size: .95rem;
}
.crm-alert button[b-t1rzshnxiy] {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
/* /Components/Crm/CrmCard.razor.rz.scp.css */
.crm-card[b-e8gnbkmt6x] {
    background: var(--crm-cffffff-bg);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Lets a dropdown inside hang past the card's edge. The card no longer clips its children,
   so the toolbar rounds its own top corners. */
.crm-card-overflow[b-e8gnbkmt6x] { overflow: visible; }
.crm-card-overflow > .crm-toolbar[b-e8gnbkmt6x] { border-radius: var(--radius) var(--radius) 0 0; }

.crm-toolbar[b-e8gnbkmt6x] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(180deg, rgba(var(--crm-rgb239-233-220-bg), .55), rgba(var(--crm-rgb239-233-220-bg), .25));
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .10);
}

/* Primary toolbar action (a page-authored .btn.btn-gold): compact and pushed to the right edge. */
.crm-toolbar[b-e8gnbkmt6x]  .crm-new {
    margin-left: auto;
    padding: .6rem 1.5rem;
    border: none;
    white-space: nowrap;
}

/* Groups the trailing actions so they wrap as a unit. Two buttons each carrying .crm-new would
   both claim the auto margin and break onto separate lines. */
.crm-toolbar[b-e8gnbkmt6x]  .crm-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.crm-toolbar[b-e8gnbkmt6x]  .crm-actions .crm-new { margin-left: 0; }

/* Secondary toolbar action: the outlined-pill counterpart to the gold primary, matching the
   grid's row buttons so the page has one button language. */
.crm-toolbar[b-e8gnbkmt6x]  .crm-secondary {
    padding: .6rem 1.4rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    cursor: pointer;
    background: var(--crm-cffffff-bg);
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.crm-toolbar[b-e8gnbkmt6x]  .crm-secondary:hover {
    background: var(--crm-green-bg);
    color: var(--crm-cffffff-text);
    transform: translateY(-1px);
}

.crm-count[b-e8gnbkmt6x] {
    padding: .7rem 1.25rem;
    font-size: .82rem;
    color: var(--crm-c6b6b64-text);
    background: rgba(var(--crm-rgb239-233-220-bg), .35);
    border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
}

/* Mobile: tighter toolbar, primary action becomes a full-width bar. */
@media (max-width: 860px) {
    .crm-toolbar[b-e8gnbkmt6x] {
        padding: .9rem 1rem;
        gap: .7rem;
    }
    .crm-toolbar[b-e8gnbkmt6x]  .crm-new {
        width: 100%;
        margin-left: 0;
    }

    /* The action group spans the toolbar: the secondary actions share a row and wrap when they
       don't fit (their labels never shrink), and the primary action gets a full-width row. */
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions > * { flex: 1 1 auto; text-align: center; }
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions .crm-new { flex-basis: 100%; }
}
/* /Components/Crm/CrmField.razor.rz.scp.css */
.crm-field[b-9hmnz3djny] {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.crm-field label[b-9hmnz3djny] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--crm-green-text);
}
/* Wide variant: grows to fill leftover toolbar space (e.g. search boxes). */
.crm-field-wide[b-9hmnz3djny] {
    flex: 1 1 220px;
    min-width: 200px;
}
/* Mobile-only variant: hidden on desktop, shown under the site breakpoint
   (e.g. a sort control replacing hidden sortable column headers). */
.crm-field-mobile[b-9hmnz3djny] { display: none; }
/* ::deep — the control is supplied as child content by the consuming page/component. */
.crm-field[b-9hmnz3djny]  input,
.crm-field[b-9hmnz3djny]  select {
    font: inherit;
    font-size: .92rem;
    color: var(--crm-ink-text);
    background: var(--crm-cffffff-bg);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
    border-radius: 8px;
    padding: .48rem .65rem;
}
.crm-field[b-9hmnz3djny]  input:focus,
.crm-field[b-9hmnz3djny]  select:focus {
    outline: none;
    border-color: var(--crm-green-line);
    box-shadow: 0 0 0 3px rgba(var(--crm-rgb58-107-76-shadow), .15);
}

/* Mobile: fields flow two per row, wide fields take a full row. */
@media (max-width: 860px) {
    .crm-field[b-9hmnz3djny] { flex: 1 1 calc(50% - .45rem); }
    .crm-field[b-9hmnz3djny]  input,
    .crm-field[b-9hmnz3djny]  select { width: 100%; }
    .crm-field-wide[b-9hmnz3djny] { flex: 1 1 100%; }
    .crm-field-mobile[b-9hmnz3djny] { display: flex; }
}
/* /Components/Crm/CrmLoading.razor.rz.scp.css */
.crm-loading[b-4cxuis3ohc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3.5rem 1rem;
    /* Hold invisible briefly so fast loads never flash a spinner;
       only slower loads fade it in. */
    opacity: 0;
    animation: crm-fade-in-b-4cxuis3ohc .25s ease .4s forwards;
}

@keyframes crm-fade-in-b-4cxuis3ohc {
    to { opacity: 1; }
}

.spinner[b-4cxuis3ohc] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(var(--crm-rgb58-107-76-line), .18);
    border-top-color: var(--crm-gold-line);
    animation: crm-spin-b-4cxuis3ohc .8s linear infinite;
}

.label[b-4cxuis3ohc] {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    color: var(--crm-forest-text);
}

@keyframes crm-spin-b-4cxuis3ohc {
    to { transform: rotate(360deg); }
}

/* Users who prefer reduced motion get a static progress ring (still delayed). */
@media (prefers-reduced-motion: reduce) {
    .spinner[b-4cxuis3ohc] { animation: none; }
}
/* /Components/Crm/CrmModal.razor.rz.scp.css */
/* Forest-green scrim behind the dialog. */
.crm-modal[b-v5abbqfikb] {
    background: rgba(var(--crm-rgb31-61-43-bg), .55);
}

/* ::deep throughout — the modal surface and everything on it is authored by the consuming
   page (or by sibling CRM components), so it doesn't carry this component's scope attribute. */
.crm-modal[b-v5abbqfikb]  .modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.crm-modal[b-v5abbqfikb]  .modal-body { padding: 1.3rem 1.4rem; }
.crm-modal[b-v5abbqfikb]  .modal-footer {
    border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .10);
    background: rgba(var(--crm-rgb239-233-220-bg), .35);
    padding: .85rem 1.4rem;
}

/* ---------- Form sections and fields ---------- */
.crm-modal[b-v5abbqfikb]  .form-section {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--crm-gold-dark-text);
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    padding-bottom: .35rem;
    margin: 1.3rem 0 .8rem;
}
.crm-modal[b-v5abbqfikb]  .modal-body .form-section:first-of-type { margin-top: 0; }

.crm-modal[b-v5abbqfikb]  .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--crm-forest-text);
    margin-bottom: .25rem;
}
.crm-modal[b-v5abbqfikb]  .form-control,
.crm-modal[b-v5abbqfikb]  .form-select {
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
    border-radius: 8px;
    color: var(--crm-ink-text);
}
.crm-modal[b-v5abbqfikb]  .form-control:focus,
.crm-modal[b-v5abbqfikb]  .form-select:focus {
    border-color: var(--crm-green-line);
    box-shadow: 0 0 0 3px rgba(var(--crm-rgb58-107-76-shadow), .15);
}
.crm-modal[b-v5abbqfikb]  .invalid { border-color: var(--crm-c9c3b2c-line); }
.crm-modal[b-v5abbqfikb]  .validation-message,
.crm-modal[b-v5abbqfikb]  .validation-errors {
    color: var(--crm-c9c3b2c-text);
    font-size: .85rem;
}
.crm-modal[b-v5abbqfikb]  .validation-errors {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

/* ---------- Footer buttons ---------- */
.crm-modal[b-v5abbqfikb]  .btn-save {
    padding: .55rem 1.6rem;
    border: none;
}
.crm-modal[b-v5abbqfikb]  .btn-quiet {
    padding: .5rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb31-61-43-line), .30);
    color: var(--crm-forest-text);
    cursor: pointer;
    transition: all .15s ease;
}
.crm-modal[b-v5abbqfikb]  .btn-quiet:hover { background: rgba(var(--crm-rgb31-61-43-bg), .06); }
/* Footer links (e.g. Add to calendar) share the quiet button look. */
.crm-modal[b-v5abbqfikb]  a.btn-quiet { text-decoration: none; display: inline-block; }
.crm-modal[b-v5abbqfikb]  .btn-brick {
    padding: .55rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    background: var(--crm-c9c3b2c-bg);
    color: var(--crm-cffffff-text);
    transition: background .15s ease;
}
.crm-modal[b-v5abbqfikb]  .btn-brick:hover { background: var(--crm-c7f2f22-bg); }
/* /Components/Crm/CrmModalHeader.razor.rz.scp.css */
.modal-header[b-2pjbj5fneo] {
    background: var(--crm-forest-bg);
    border-bottom: 3px solid var(--crm-gold-line);
    padding: 1rem 1.4rem;
}
.modal-title[b-2pjbj5fneo] {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--crm-cffffff-text);
    font-size: 1.25rem;
}
/* /Components/Crm/CrmSortHeader.razor.rz.scp.css */
/* Sticks inside the grid's scroll viewport (.crm-scroll). The consuming table must use
   border-collapse: separate — collapsed borders detach from sticky headers. */
th[b-8ejx82dpbv] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--crm-cffffff-bg);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-forest-text);
    padding: .8rem 1rem;
    border-bottom: 2px solid var(--crm-gold-line);
    text-align: left;
    white-space: nowrap;
    user-select: none;
}
th.sortable[b-8ejx82dpbv] { cursor: pointer; }
th.sortable:hover[b-8ejx82dpbv] { color: var(--crm-gold-dark-text); }
th.num[b-8ejx82dpbv] { text-align: right; }

.sort-ind[b-8ejx82dpbv] {
    color: var(--crm-gold-dark-text);
    margin-left: .3rem;
    font-size: .6rem;
    vertical-align: middle;
}
/* /Components/Crm/UwReq.razor.rz.scp.css */
.uw-req[b-a08q79ef44] {
    color: var(--crm-gold-dark-text);
    font-weight: 700;
    margin-left: .15rem;
    cursor: help;
}
/* /Components/DealDates/LeadDealDatesTab.razor.rz.scp.css */
/* The lead form's Deal Dates tab. */
.dd-lede[b-g498a5jp4g], .dd-filled[b-g498a5jp4g] {
    margin: 0 0 .75rem;
    font-size: .88rem;
    color: var(--crm-c6b6b64-text);
}
.dd-filled[b-g498a5jp4g] {
    padding: .45rem .7rem;
    border-radius: 8px;
    color: var(--crm-gold-dark-text);
    background: rgba(var(--crm-rgb200-162-75-bg), .16);
    border: 1px solid rgba(var(--crm-rgb200-162-75-line), .45);
}

.dd-scroll[b-g498a5jp4g] { overflow-x: auto; }
.dd-table[b-g498a5jp4g] {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.dd-table th[b-g498a5jp4g],
.dd-table td[b-g498a5jp4g] {
    padding: .35rem .5rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.dd-table thead th[b-g498a5jp4g] {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--crm-c6b6b64-text);
}
.dd-table tbody th[b-g498a5jp4g] {
    font-weight: 600;
    color: var(--crm-forest-text);
    white-space: nowrap;
}
.dd-table input[type="date"][b-g498a5jp4g] { min-width: 9.5rem; }
.dd-done[b-g498a5jp4g] { text-align: center; width: 4rem; }

.dd-table tr.overdue th[b-g498a5jp4g] { color: var(--crm-c9c3b2c-text); }
.dd-table tr.done th[b-g498a5jp4g],
.dd-table tr.done input[b-g498a5jp4g] { opacity: .55; }
.dd-table tr.dd-readonly td[b-g498a5jp4g],
.dd-table tr.dd-readonly th[b-g498a5jp4g] { color: var(--crm-c6b6b64-text); }
.dd-note[b-g498a5jp4g] { font-size: .8rem; color: var(--crm-c6b6b64-text); }

.dd-actions[b-g498a5jp4g] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-top: .9rem;
}
.dd-saved[b-g498a5jp4g] { font-size: .85rem; color: var(--crm-green-text); }
/* /Components/FollowUps/FollowUpStrip.razor.rz.scp.css */
/* The 14-day strip on the Follow-ups page: an Overdue cell, then a cell per day. */
.fu-strip[b-g17marye87] {
    display: grid;
    /* minmax(0, 1fr): the cells share the card's width evenly and the strip never scrolls on a
       desktop. Narrow screens switch to a scrolling row (below). */
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: .35rem;
    padding: 1rem;
}

.fu-day[b-g17marye87] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .5rem .25rem .55rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    background: var(--crm-cffffff-bg);
    color: var(--crm-forest-text);
    font: inherit;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.fu-day:hover[b-g17marye87] { background: rgba(var(--crm-rgb239-233-220-bg), .6); }
.fu-day.weekend[b-g17marye87] { background: rgba(var(--crm-rgb239-233-220-bg), .35); }
.fu-day.today[b-g17marye87] { border-color: rgba(var(--crm-rgb58-107-76-line), .55); }
.fu-day.selected[b-g17marye87] {
    border-color: var(--crm-cc9a227-line);
    box-shadow: inset 0 0 0 1px var(--crm-cc9a227-line);
    background: rgba(var(--crm-rgb201-162-39-bg), .12);
}
.fu-day.overdue-cell.has-overdue .fu-total[b-g17marye87] { color: var(--crm-c9c3b2c-text); }
.fu-day.overdue-cell.has-overdue[b-g17marye87] { border-color: rgba(var(--crm-rgb156-59-44-line), .45); }

.fu-weekday[b-g17marye87] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--crm-c6b6b64-text);
}
.fu-date[b-g17marye87] { font-size: .8rem; color: var(--crm-c6b6b64-text); }

.fu-counts[b-g17marye87] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    min-height: 2.6rem;
}
.fu-total[b-g17marye87] { font-size: 1.25rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fu-none[b-g17marye87] { font-size: 1.1rem; color: var(--crm-c6b6b64-text); opacity: .5; }

.fu-kinds[b-g17marye87] { display: flex; gap: .15rem; flex-wrap: wrap; justify-content: center; }
.fu-kind[b-g17marye87] {
    min-width: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}
.fu-kind.lead[b-g17marye87] {
    background: rgba(var(--crm-rgb58-107-76-bg), .14);
    color: var(--crm-green-text);
    border: 1px solid rgba(var(--crm-rgb58-107-76-line), .4);
}
.fu-kind.network[b-g17marye87] {
    background: rgba(var(--crm-rgb200-162-75-bg), .16);
    color: var(--crm-gold-dark-text);
    border: 1px solid rgba(var(--crm-rgb200-162-75-line), .5);
}
.fu-kind.buyer[b-g17marye87] {
    background: var(--crm-forest-bg);
    color: var(--crm-cream-text);
    border: 1px solid var(--crm-forest-bg);
}

.fu-kind.deal[b-g17marye87] {
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border: 1px solid rgba(var(--crm-rgb156-59-44-line), .45);
}

/* Too narrow for 15 readable cells: one row that scrolls sideways inside the card, never the page. */
@media (max-width: 1100px) {
    .fu-strip[b-g17marye87] {
        overflow-x: auto;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 4.4rem;
        padding: .75rem;
    }
}
/* /Components/Network/BuyerList.razor.rz.scp.css */
/* ============================================================
   Buyers tab of the Network page — component styles only. Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* ---------- Grid ---------- */
.crm-scroll[b-w5vtscut6q] {
    overflow: auto;
    /* The Leads grid's viewport (see Leads.razor.css) less the Network page's tab row, so
       the page itself never scrolls past the grid. */
    max-height: calc(100dvh - 475px);
    min-height: 320px;
}
.crm-table[b-w5vtscut6q] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-w5vtscut6q] {
    padding: .45rem .75rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-w5vtscut6q] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-w5vtscut6q] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-w5vtscut6q] { border-bottom: none; }

/* The buyer column holds name + contact line; without a floor it was squeezed to a word per line. */
.crm-table tbody td.card-head[b-w5vtscut6q] { min-width: 12rem; }
.cell-main[b-w5vtscut6q] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.cell-sub[b-w5vtscut6q]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.overdue[b-w5vtscut6q]   { color: var(--crm-c9c3b2c-text); font-weight: 600; }
.form-hint[b-w5vtscut6q] { display: block; margin-top: .25rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.num[b-w5vtscut6q] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Inline marker beside the buyer type for land/teardown buyers — the product a
   flipper has no use for, so it needs to be visible at a glance. */
.tag[b-w5vtscut6q] {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(var(--crm-rgb200-162-75-bg), .16);
    color: var(--crm-gold-dark-text);
    border: 1px solid rgba(var(--crm-rgb200-162-75-line), .45);
}

/* ---------- Modal checkbox rows ---------- */
.form-checks[b-w5vtscut6q] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    padding: .2rem 0 .1rem;
}
.form-check[b-w5vtscut6q] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-forest-text);
    cursor: pointer;
}
.form-check input[type="checkbox"][b-w5vtscut6q] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--crm-green-other);
    cursor: pointer;
}

/* ---------- Row action buttons ---------- */
/* Same compact buttons as the Leads grid. */
/* One line of buttons keeps every row a single line tall; stacked they tripled the height. */
.row-actions[b-w5vtscut6q] { text-align: right; white-space: nowrap; }
.crm-table tbody td.row-actions[b-w5vtscut6q] {
    padding-left: .35rem;
    padding-right: .6rem;
}
.row-btn[b-w5vtscut6q] {
    display: inline-block;
    /* Vertical breathing room for when the buttons wrap onto a second line. */
    margin-block: .12rem;
    padding: .26rem .62rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-w5vtscut6q] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn + .row-btn[b-w5vtscut6q] { margin-left: .25rem; }
.row-btn.danger[b-w5vtscut6q] {
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-w5vtscut6q] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Deals column + the read-only deals list ---------- */
/* Reads as a link in the grid: the count opens the list. */
.link-btn[b-w5vtscut6q] {
    padding: 0;
    border: none;
    background: none;
    color: var(--crm-green-text);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.link-btn:hover[b-w5vtscut6q] { color: var(--crm-gold-dark-text); }

.deals-scroll[b-w5vtscut6q] { overflow-x: auto; }
.deals-table[b-w5vtscut6q] { width: 100%; min-width: 560px; font-size: .88rem; border-collapse: collapse; }
.deals-table thead th[b-w5vtscut6q] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .5rem .4rem;
    white-space: nowrap;
}
.deals-table tbody th[b-w5vtscut6q] { font-weight: 600; color: var(--crm-forest-text); padding: .45rem .5rem; }
.deals-table td[b-w5vtscut6q] { padding: .45rem .5rem; white-space: nowrap; }
.deals-table tbody tr + tr[b-w5vtscut6q] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.deals-table .num[b-w5vtscut6q] { text-align: right; font-variant-numeric: tabular-nums; }
.deals-notes[b-w5vtscut6q] { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--crm-c6b6b64-text); }
.deals-foot[b-w5vtscut6q] { margin: .75rem 0 0; font-size: .78rem; color: var(--crm-c6b6b64-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-w5vtscut6q] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-w5vtscut6q] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm-scroll[b-w5vtscut6q] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-w5vtscut6q],
    .crm-table tbody[b-w5vtscut6q] { display: block; }
    .crm-table thead[b-w5vtscut6q] { display: none; }

    .crm-table tbody tr[b-w5vtscut6q] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-w5vtscut6q] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-w5vtscut6q] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-w5vtscut6q] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-w5vtscut6q] {
        display: grid;
        grid-template-columns: 104px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-w5vtscut6q]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-w5vtscut6q] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-w5vtscut6q] { display: block; }

    .row-actions[b-w5vtscut6q] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn + .row-btn[b-w5vtscut6q] { margin-left: 0; }
}
/* /Components/Network/FollowUpFields.razor.rz.scp.css */
.follow-up-hint[b-4isdmkbgn7] {
    display: flex;
    align-items: flex-end;
    font-size: .85rem;
    color: var(--crm-c6b6b64-text);
}
/* /Components/Network/LeadNetworkTab.razor.rz.scp.css */
/* Network tab on the lead form; sized to sit beside the Buyers tab (Leads.razor.css). */
.net-lede[b-8ntp2lt031] { margin: 0 0 .75rem; font-size: .88rem; color: var(--crm-c6b6b64-text); }
.net-note[b-8ntp2lt031] { margin: 0 0 .5rem; font-size: .86rem; color: var(--crm-c6b6b64-text); }

.net-scroll[b-8ntp2lt031] { overflow-x: auto; }
.net-table[b-8ntp2lt031] { width: 100%; min-width: 520px; font-size: .88rem; border-collapse: collapse; }
.net-table thead th[b-8ntp2lt031] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .5rem .4rem;
    white-space: nowrap;
}
.net-table tbody th[b-8ntp2lt031] { font-weight: 600; color: var(--crm-forest-text); padding: .45rem .5rem; }
.net-table td[b-8ntp2lt031] { padding: .45rem .5rem; white-space: nowrap; vertical-align: middle; }
.net-table tbody tr + tr[b-8ntp2lt031] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.net-notes[b-8ntp2lt031] { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--crm-c6b6b64-text); }
.net-actions[b-8ntp2lt031] { text-align: right; }

.row-btn[b-8ntp2lt031] {
    display: inline-block;
    padding: .22rem .58rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
}
.row-btn:hover[b-8ntp2lt031] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn + .row-btn[b-8ntp2lt031] { margin-left: .25rem; }
.row-btn.danger[b-8ntp2lt031] { border-color: rgba(var(--crm-rgb156-59-44-line), .50); color: var(--crm-c9c3b2c-text); }
.row-btn.danger:hover[b-8ntp2lt031] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }
/* /Components/Network/NetworkActivityLog.razor.rz.scp.css */
/* Contact log modal for a realtor or boots contact. */
.log-actions[b-pk7m37lpz9] {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.log-empty[b-pk7m37lpz9] { margin: 0; font-size: .88rem; color: var(--crm-c6b6b64-text); }

.log-scroll[b-pk7m37lpz9] { overflow-x: auto; max-height: 45vh; overflow-y: auto; }
.log-table[b-pk7m37lpz9] { width: 100%; min-width: 560px; font-size: .86rem; border-collapse: collapse; }
.log-table thead th[b-pk7m37lpz9] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .5rem .4rem;
    white-space: nowrap;
}
.log-table td[b-pk7m37lpz9] { padding: .45rem .5rem; white-space: nowrap; vertical-align: middle; }
.log-table tbody tr + tr[b-pk7m37lpz9] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.log-notes[b-pk7m37lpz9] { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--crm-c6b6b64-text); }
.log-row-actions[b-pk7m37lpz9] { text-align: right; }

.row-btn[b-pk7m37lpz9] {
    display: inline-block;
    padding: .22rem .58rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
}
.row-btn:hover[b-pk7m37lpz9] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn + .row-btn[b-pk7m37lpz9] { margin-left: .25rem; }
.row-btn.danger[b-pk7m37lpz9] { border-color: rgba(var(--crm-rgb156-59-44-line), .50); color: var(--crm-c9c3b2c-text); }
.row-btn.danger:hover[b-pk7m37lpz9] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }
/* /Components/Network/NetworkContactForm.razor.rz.scp.css */
/* Realtor / boots contact form — the checkbox rows and hint, as on the buyer form
   (BuyerList.razor.css). Sections, buttons and fields come from CrmModal. */
.form-hint[b-aqp5e0j235] { display: block; margin-top: .25rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }

.form-checks[b-aqp5e0j235] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    padding: .2rem 0 .1rem;
}
.form-check[b-aqp5e0j235] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-forest-text);
    cursor: pointer;
}
.form-check[b-aqp5e0j235]  input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--crm-green-other);
    cursor: pointer;
}
/* /Components/Network/NetworkContactList.razor.rz.scp.css */
/* ============================================================
   Realtors and Boots on the Ground tabs of the Network page.
   Same grid as the Buyers tab (BuyerList.razor.css).
   ============================================================ */

/* ---------- Grid ---------- */
.crm-scroll[b-nzhv5vu93q] {
    overflow: auto;
    /* The Leads grid's viewport (see Leads.razor.css) less the Network page's tab row, so
       the page itself never scrolls past the grid. */
    max-height: calc(100dvh - 475px);
    min-height: 320px;
}
.crm-table[b-nzhv5vu93q] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-nzhv5vu93q] {
    padding: .45rem .75rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-nzhv5vu93q] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-nzhv5vu93q] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-nzhv5vu93q] { border-bottom: none; }

/* The name column holds name + contact line; without a floor it is squeezed to a word per line. */
.crm-table tbody td.card-head[b-nzhv5vu93q] { min-width: 12rem; }
.cell-main[b-nzhv5vu93q] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.cell-sub[b-nzhv5vu93q]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.overdue[b-nzhv5vu93q]   { color: var(--crm-c9c3b2c-text); font-weight: 600; }
.form-hint[b-nzhv5vu93q] { display: block; margin-top: .25rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.num[b-nzhv5vu93q] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* What a realtor does for us, or which jobs a boots contact takes. */
.tag[b-nzhv5vu93q] {
    display: inline-block;
    margin: .1rem .3rem .1rem 0;
    padding: .1rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(var(--crm-rgb200-162-75-bg), .16);
    color: var(--crm-gold-dark-text);
    border: 1px solid rgba(var(--crm-rgb200-162-75-line), .45);
}

/* ---------- Row action buttons ---------- */
/* Same compact buttons as the Leads grid. */
/* One line of buttons keeps every row a single line tall; stacked they tripled the height. */
.row-actions[b-nzhv5vu93q] { text-align: right; white-space: nowrap; }
.crm-table tbody td.row-actions[b-nzhv5vu93q] {
    padding-left: .35rem;
    padding-right: .6rem;
}
.row-btn[b-nzhv5vu93q] {
    display: inline-block;
    /* Vertical breathing room for when the buttons wrap onto a second line. */
    margin-block: .12rem;
    padding: .26rem .62rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-nzhv5vu93q] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn + .row-btn[b-nzhv5vu93q] { margin-left: .25rem; }
.row-btn.danger[b-nzhv5vu93q] {
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-nzhv5vu93q] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Leads column + the read-only leads list ---------- */
/* Reads as a link in the grid: the count opens the list. */
.link-btn[b-nzhv5vu93q] {
    padding: 0;
    border: none;
    background: none;
    color: var(--crm-green-text);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.link-btn:hover[b-nzhv5vu93q] { color: var(--crm-gold-dark-text); }

.deals-scroll[b-nzhv5vu93q] { overflow-x: auto; }
.deals-table[b-nzhv5vu93q] { width: 100%; min-width: 560px; font-size: .88rem; border-collapse: collapse; }
.deals-table thead th[b-nzhv5vu93q] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .5rem .4rem;
    white-space: nowrap;
}
.deals-table tbody th[b-nzhv5vu93q] { font-weight: 600; color: var(--crm-forest-text); padding: .45rem .5rem; }
.deals-table td[b-nzhv5vu93q] { padding: .45rem .5rem; white-space: nowrap; }
.deals-table tbody tr + tr[b-nzhv5vu93q] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.deals-table .num[b-nzhv5vu93q] { text-align: right; font-variant-numeric: tabular-nums; }
.deals-notes[b-nzhv5vu93q] { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--crm-c6b6b64-text); }
.deals-foot[b-nzhv5vu93q] { margin: .75rem 0 0; font-size: .78rem; color: var(--crm-c6b6b64-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-nzhv5vu93q] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-nzhv5vu93q] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm-scroll[b-nzhv5vu93q] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-nzhv5vu93q],
    .crm-table tbody[b-nzhv5vu93q] { display: block; }
    .crm-table thead[b-nzhv5vu93q] { display: none; }

    .crm-table tbody tr[b-nzhv5vu93q] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-nzhv5vu93q] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-nzhv5vu93q] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-nzhv5vu93q] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-nzhv5vu93q] {
        display: grid;
        grid-template-columns: 104px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-nzhv5vu93q]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-nzhv5vu93q] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-nzhv5vu93q] { display: block; }

    .row-actions[b-nzhv5vu93q] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn + .row-btn[b-nzhv5vu93q] { margin-left: 0; }
}
/* /Components/Pages/Activities.razor.rz.scp.css */
/* ============================================================
   Activities CRM page — page-specific styles only. Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-ee7ltc1owx] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-ee7ltc1owx] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Lead scope chip ---------- */
.scope-chip[b-ee7ltc1owx] {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(var(--crm-rgb58-107-76-bg), .10);
    border: 1px solid rgba(var(--crm-rgb58-107-76-line), .35);
    color: var(--crm-forest-text);
    font-size: .9rem;
}
.scope-chip button[b-ee7ltc1owx] {
    background: none;
    border: none;
    color: var(--crm-green-text);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    padding: 0;
}
.scope-chip button:hover[b-ee7ltc1owx] { color: var(--crm-gold-dark-text); }

/* ---------- Grid ---------- */
/* Fixed-height scroll viewport: rows virtualize inside it (Virtualize needs a
   scrollable ancestor), so the page itself never grows with the activity count. */
.crm-scroll[b-ee7ltc1owx] {
    overflow: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-ee7ltc1owx] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-ee7ltc1owx] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-ee7ltc1owx] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-ee7ltc1owx] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-ee7ltc1owx] { border-bottom: none; }

.activity-date[b-ee7ltc1owx] { font-weight: 600; color: var(--crm-forest-text); white-space: nowrap; }
.cell-main[b-ee7ltc1owx] { display: block; font-size: .9rem; }
.cell-sub[b-ee7ltc1owx]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.form-hint[b-ee7ltc1owx] { display: block; margin-top: .25rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.num[b-ee7ltc1owx] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cell-notes[b-ee7ltc1owx] {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Row action buttons ---------- */
.row-actions[b-ee7ltc1owx] { text-align: right; white-space: nowrap; }
.row-btn[b-ee7ltc1owx] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-ee7ltc1owx] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-ee7ltc1owx] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-ee7ltc1owx] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-ee7ltc1owx] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-ee7ltc1owx] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ---------- Mobile sort control (visible only under the site breakpoint) ---------- */
.sort-mobile-row[b-ee7ltc1owx] { display: flex; gap: .45rem; }
.sort-mobile-row select[b-ee7ltc1owx] { flex: 1; }
.sort-dir[b-ee7ltc1owx] {
    flex: 0 0 auto;
    width: 2.6rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
    background: var(--crm-cffffff-bg);
    color: var(--crm-gold-dark-text);
    font-size: .7rem;
    cursor: pointer;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-ee7ltc1owx] { padding: 1rem 1.25rem 2.5rem; }

    /* Cards size themselves; scroll the page naturally (Virtualize
       falls back to the document as its scroll container). */
    .crm-scroll[b-ee7ltc1owx] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-ee7ltc1owx],
    .crm-table tbody[b-ee7ltc1owx] { display: block; }
    .crm-table thead[b-ee7ltc1owx] { display: none; }

    .crm-table tbody tr[b-ee7ltc1owx] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-ee7ltc1owx] { background: var(--crm-cffffff-bg); }
    /* Virtualize's empty spacer <tr>s must not render as ghost cards. */
    .crm-table tbody tr:empty[b-ee7ltc1owx] {
        border: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .crm-table tbody td[b-ee7ltc1owx] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-ee7ltc1owx] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-ee7ltc1owx] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-ee7ltc1owx]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        /* .num sets text-align right on the td; don't let the label inherit it */
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-ee7ltc1owx] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    .card-head[b-ee7ltc1owx] { display: flex; align-items: center; }

    .cell-notes[b-ee7ltc1owx] {
        max-width: none;
        white-space: normal;
    }

    .row-actions[b-ee7ltc1owx] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-ee7ltc1owx] { margin-left: 0; }
}
/* /Components/Pages/Arv.razor.rz.scp.css */
/* ============================================================
   ARV settings + comps page — page-specific styles only (the grid
   rules match the Buyers page). Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-lwfu5114nw] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-lwfu5114nw] {
    font-size: 1.7rem;
    margin: 0 0 .35rem;
}

.crm-lede[b-lwfu5114nw] {
    margin: 0 0 1rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
    max-width: 60ch;
}

/* ---------- Grid ---------- */
.crm-scroll[b-lwfu5114nw] {
    overflow: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-lwfu5114nw] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-lwfu5114nw] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-lwfu5114nw] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-lwfu5114nw] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-lwfu5114nw] { border-bottom: none; }

.cell-main[b-lwfu5114nw] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.cell-sub[b-lwfu5114nw]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.num[b-lwfu5114nw] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- ARV page ---------- */
.crm-card + .crm-card[b-lwfu5114nw] { margin-top: 1.5rem; }
.crm-table thead th[b-lwfu5114nw] {
    text-align: left;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: .6rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
}
.crm-table thead th.num[b-lwfu5114nw] { text-align: right; }
.arv-card-title[b-lwfu5114nw] { font-size: 1.1rem; margin: 0 auto 0 0; align-self: center; }
.arv-body[b-lwfu5114nw] { padding: 1rem 1.25rem 1.25rem; }
.arv-body .crm-table tbody td[b-lwfu5114nw] { padding: .4rem 1rem; }
.arv-help[b-lwfu5114nw] { display: block; font-size: .78rem; color: var(--crm-c6b6b64-text); margin: .3rem 0 .6rem; }
.arv-scroll-short[b-lwfu5114nw] { min-height: 0; max-height: none; }
.arv-input-zip[b-lwfu5114nw] { width: 6rem; }
.arv-input-num[b-lwfu5114nw] { width: 8rem; }
.arv-features-table[b-lwfu5114nw] { margin-bottom: .2rem; }
.arv-saved[b-lwfu5114nw] {
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    background: rgba(var(--crm-rgb31-61-43-bg), .1);
    color: var(--crm-forest-text);
    font-size: .9rem;
}

/* ---------- Modal checkbox rows ---------- */
.form-checks[b-lwfu5114nw] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    padding: .2rem 0 .1rem;
}
.form-check[b-lwfu5114nw] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-forest-text);
    cursor: pointer;
}
.form-check input[type="checkbox"][b-lwfu5114nw] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--crm-green-other);
    cursor: pointer;
}

/* ---------- Row action buttons ---------- */
.row-actions[b-lwfu5114nw] { text-align: right; white-space: nowrap; }
.row-btn[b-lwfu5114nw] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-lwfu5114nw] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-lwfu5114nw] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-lwfu5114nw] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-lwfu5114nw] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-lwfu5114nw] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-lwfu5114nw] { padding: 1rem 1.25rem 2.5rem; }

    .crm-scroll[b-lwfu5114nw] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-lwfu5114nw],
    .crm-table tbody[b-lwfu5114nw] { display: block; }
    .crm-table thead[b-lwfu5114nw] { display: none; }

    .crm-table tbody tr[b-lwfu5114nw] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-lwfu5114nw] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-lwfu5114nw] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-lwfu5114nw] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-lwfu5114nw] {
        display: grid;
        grid-template-columns: 104px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-lwfu5114nw]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-lwfu5114nw] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-lwfu5114nw] { display: block; }

    .row-actions[b-lwfu5114nw] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-lwfu5114nw] { margin-left: 0; }
}
/* /Components/Pages/BuyerActivities.razor.rz.scp.css */
/* ============================================================
   Buyer Activities CRM page — page-specific styles only, kept
   identical to the lead Activities page. Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-szwhn82svy] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-szwhn82svy] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Buyer scope chip ---------- */
.scope-chip[b-szwhn82svy] {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(var(--crm-rgb58-107-76-bg), .10);
    border: 1px solid rgba(var(--crm-rgb58-107-76-line), .35);
    color: var(--crm-forest-text);
    font-size: .9rem;
}
.scope-chip button[b-szwhn82svy] {
    background: none;
    border: none;
    color: var(--crm-green-text);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    padding: 0;
}
.scope-chip button:hover[b-szwhn82svy] { color: var(--crm-gold-dark-text); }

/* ---------- Grid ---------- */
/* Fixed-height scroll viewport: rows virtualize inside it (Virtualize needs a
   scrollable ancestor), so the page itself never grows with the activity count. */
.crm-scroll[b-szwhn82svy] {
    overflow: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-szwhn82svy] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-szwhn82svy] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-szwhn82svy] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-szwhn82svy] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-szwhn82svy] { border-bottom: none; }

.activity-date[b-szwhn82svy] { font-weight: 600; color: var(--crm-forest-text); white-space: nowrap; }
.cell-main[b-szwhn82svy] { display: block; font-size: .9rem; }
.cell-sub[b-szwhn82svy]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.form-hint[b-szwhn82svy] { display: block; margin-top: .25rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.num[b-szwhn82svy] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cell-notes[b-szwhn82svy] {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Row action buttons ---------- */
.row-actions[b-szwhn82svy] { text-align: right; white-space: nowrap; }
.row-btn[b-szwhn82svy] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-szwhn82svy] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-szwhn82svy] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-szwhn82svy] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-szwhn82svy] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-szwhn82svy] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ---------- Mobile sort control (visible only under the site breakpoint) ---------- */
.sort-mobile-row[b-szwhn82svy] { display: flex; gap: .45rem; }
.sort-mobile-row select[b-szwhn82svy] { flex: 1; }
.sort-dir[b-szwhn82svy] {
    flex: 0 0 auto;
    width: 2.6rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
    background: var(--crm-cffffff-bg);
    color: var(--crm-gold-dark-text);
    font-size: .7rem;
    cursor: pointer;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-szwhn82svy] { padding: 1rem 1.25rem 2.5rem; }

    /* Cards size themselves; scroll the page naturally (Virtualize
       falls back to the document as its scroll container). */
    .crm-scroll[b-szwhn82svy] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-szwhn82svy],
    .crm-table tbody[b-szwhn82svy] { display: block; }
    .crm-table thead[b-szwhn82svy] { display: none; }

    .crm-table tbody tr[b-szwhn82svy] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-szwhn82svy] { background: var(--crm-cffffff-bg); }
    /* Virtualize's empty spacer <tr>s must not render as ghost cards. */
    .crm-table tbody tr:empty[b-szwhn82svy] {
        border: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .crm-table tbody td[b-szwhn82svy] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-szwhn82svy] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-szwhn82svy] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-szwhn82svy]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        /* .num sets text-align right on the td; don't let the label inherit it */
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-szwhn82svy] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    .card-head[b-szwhn82svy] { display: flex; align-items: center; }

    .cell-notes[b-szwhn82svy] {
        max-width: none;
        white-space: normal;
    }

    .row-actions[b-szwhn82svy] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-szwhn82svy] { margin-left: 0; }
}
/* /Components/Pages/BuyerImport.razor.rz.scp.css */
/* ============================================================
   Buyer CSV import page, a copy of LeadImport.razor.css (scoped
   CSS cannot be shared between pages). The table and empty-state rules mirror
   Leads.razor.css because CRM grid styling is per-page scoped
   CSS in this project rather than shared — see the note there.
   Form controls come from Bootstrap (loaded globally).
   ============================================================ */

.crm[b-zk6qqe0hen] {
    padding: 1.6rem 1.5rem 4rem;
}

/* ---------- Page header ---------- */
.crm-head[b-zk6qqe0hen] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-title[b-zk6qqe0hen] {
    font-size: 1.7rem;
    margin: 0 0 .25rem;
}

.crm-subtitle[b-zk6qqe0hen] {
    margin: 0;
    max-width: 46rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
}

.crm-back[b-zk6qqe0hen] {
    flex: 0 0 auto;
    padding-top: .4rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-green-text);
    text-decoration: none;
    white-space: nowrap;
}
.crm-back:hover[b-zk6qqe0hen] { color: var(--crm-forest-text); text-decoration: underline; }

/* CrmCard renders child content with no padding of its own — a grid supplies its own via cell
   padding, but form content has to bring it. */
.import-body[b-zk6qqe0hen] {
    padding: 1.3rem 1.4rem;
}

/* Cards stack down the page. ::deep — the card element belongs to CrmCard, not this page. */
[b-zk6qqe0hen] .crm-card + .crm-card {
    margin-top: 1.1rem;
}

/* ---------- File picker ---------- */
.file-row[b-zk6qqe0hen] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.file-field[b-zk6qqe0hen] {
    flex: 1 1 22rem;
    max-width: 34rem;
}

/* ::deep — the input is rendered by the InputFile component, not by this page. */
.file-field[b-zk6qqe0hen]  input[type="file"] {
    display: block;
    width: 100%;
    padding: .8rem .9rem;
    border: 1.5px dashed rgba(var(--crm-rgb58-107-76-line), .45);
    border-radius: 12px;
    background: rgba(var(--crm-rgb239-233-220-bg), .35);
    font-size: .9rem;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.file-field[b-zk6qqe0hen]  input[type="file"]:hover {
    border-color: var(--crm-green-line);
    background: rgba(var(--crm-rgb239-233-220-bg), .6);
}
.file-field[b-zk6qqe0hen]  input[type="file"]::file-selector-button {
    margin-right: .9rem;
    padding: .45rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: var(--crm-gold-bg);
    color: var(--crm-ink-text);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s ease;
}
.file-field[b-zk6qqe0hen]  input[type="file"]::file-selector-button:hover {
    background: var(--crm-gold-dark-bg);
    color: var(--crm-cffffff-text);
}

/* ---------- Card footers ---------- */
.card-actions[b-zk6qqe0hen] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}

.footer-note[b-zk6qqe0hen] {
    flex: 1 1 20rem;
    min-width: 14rem;
    font-size: .8rem;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Mapping ---------- */
.form-hint[b-zk6qqe0hen] {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    color: var(--crm-c6b6b64-text);
}

.import-group[b-zk6qqe0hen] {
    padding: .3rem 0 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    margin-bottom: 1rem;
}
.import-group:last-of-type[b-zk6qqe0hen] { border-bottom: none; }

.import-group-title[b-zk6qqe0hen] {
    display: block;
    margin-bottom: .6rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
}

.import-mapping-actions[b-zk6qqe0hen] {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* ---------- Counts ---------- */
.import-summary[b-zk6qqe0hen] {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    padding: .4rem 0 1.2rem;
}

.import-stat[b-zk6qqe0hen] {
    color: var(--crm-c6b6b64-text);
    font-size: .85rem;
}
.import-stat .big[b-zk6qqe0hen] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--crm-forest-text);
}

/* ---------- Section headings (the modal's copy is scoped to the modal) ---------- */
.form-section[b-zk6qqe0hen] {
    margin: 1.4rem 0 .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
}
.form-section:first-of-type[b-zk6qqe0hen] { margin-top: 0; }

.btn-quiet[b-zk6qqe0hen] {
    background: transparent;
    border: none;
    padding: .5rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.btn-quiet:hover[b-zk6qqe0hen] { color: var(--crm-forest-text); }
.btn-quiet.danger[b-zk6qqe0hen] { color: var(--crm-c9c3b2c-text); }

/* ---------- Preview / issue tables ---------- */
.crm-scroll[b-zk6qqe0hen] {
    overflow: auto;
    max-height: 420px;
}
.crm-table[b-zk6qqe0hen] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table thead th[b-zk6qqe0hen] {
    padding: .6rem 1rem;
    text-align: left;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    white-space: nowrap;
}
.crm-table tbody td[b-zk6qqe0hen] {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr:last-child td[b-zk6qqe0hen] { border-bottom: none; }

.cell-sub[b-zk6qqe0hen] {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--crm-c6b6b64-text);
}

.crm-empty[b-zk6qqe0hen] {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-zk6qqe0hen] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile: the issue table becomes labeled rows, same treatment
   as the leads grid.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-zk6qqe0hen] { padding: 1rem 1.25rem 2.5rem; }

    .crm-head[b-zk6qqe0hen] {
        flex-direction: column;
        gap: .4rem;
    }
    .crm-back[b-zk6qqe0hen] { padding-top: 0; }

    .import-body[b-zk6qqe0hen] { padding: 1.1rem 1rem; }
    .import-summary[b-zk6qqe0hen] { gap: 1.4rem; }
    .card-actions > .btn[b-zk6qqe0hen] { width: 100%; }

    .crm-table[b-zk6qqe0hen], .crm-table tbody[b-zk6qqe0hen] { display: block; }
    .crm-table thead[b-zk6qqe0hen] { display: none; }

    .crm-table tbody tr[b-zk6qqe0hen] {
        display: block;
        margin: .8rem 0;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        background: var(--crm-cffffff-bg);
    }

    .crm-table tbody td[b-zk6qqe0hen] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
        padding: .55rem 0;
    }
    .crm-table tbody td[b-zk6qqe0hen]::before {
        content: attr(data-label);
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
    }
}
/* /Components/Pages/FollowUps.razor.rz.scp.css */
/* ============================================================
   Follow-ups page: count tiles, the 14-day strip (FollowUpStrip),
   then a list each for leads, network contacts and buyers.
   ============================================================ */

/* Page shell, as on the Leads and Network pages. Padding shorthand overrides .container's side
   padding (scoped selector wins), so the 1.5rem sides are restated. */
.crm[b-3sxsidwvlh] {
    padding: 1.6rem 1.5rem 4rem;
}
.crm-title[b-3sxsidwvlh] {
    font-size: 1.7rem;
    margin: 0 0 .35rem;
}
.crm-subtitle[b-3sxsidwvlh] {
    margin: 0 0 1rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Count tiles ---------- */
.fu-tiles[b-3sxsidwvlh] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}
.fu-tile[b-3sxsidwvlh] {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .75rem .95rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    background: var(--crm-cffffff-bg);
}
.fu-tile-label[b-3sxsidwvlh] {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--crm-c6b6b64-text);
}
.fu-tile-value[b-3sxsidwvlh] {
    font-size: 1.7rem;
    font-weight: 650;
    line-height: 1.15;
    color: var(--crm-forest-text);
    font-variant-numeric: tabular-nums;
}
.fu-tile-sub[b-3sxsidwvlh] { font-size: .8rem; color: var(--crm-c9c3b2c-text); }
.fu-tile.warn[b-3sxsidwvlh] { border-color: rgba(var(--crm-rgb156-59-44-line), .45); }
.fu-tile.warn .fu-tile-value[b-3sxsidwvlh] { color: var(--crm-c9c3b2c-text); }

/* ---------- Window heading between the strip and the lists ---------- */
.fu-window[b-3sxsidwvlh] {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: .5rem 0 -.25rem;
}
.fu-window h2[b-3sxsidwvlh] {
    margin: 0;
    font-size: 1.15rem;
    color: var(--crm-forest-text);
}
.link-btn[b-3sxsidwvlh] {
    padding: 0;
    border: none;
    background: none;
    color: var(--crm-green-text);
    font: inherit;
    font-size: .9rem;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Tabs: one list at a time (same look as the Network page's tabs) ---------- */
.fu-tabs[b-3sxsidwvlh] {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    border-bottom: 2px solid rgba(var(--crm-rgb31-61-43-line), .12);
    margin-bottom: -.25rem;
}
.fu-tab[b-3sxsidwvlh] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .45rem .9rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.fu-tab:hover[b-3sxsidwvlh] { color: var(--crm-forest-text); }
.fu-tab.active[b-3sxsidwvlh] { color: var(--crm-forest-text); border-bottom-color: var(--crm-gold-line); }
.fu-tab-count[b-3sxsidwvlh] {
    min-width: 1.4rem;
    padding: 0 .4rem;
    border-radius: 999px;
    font-size: .74rem;
    line-height: 1.3rem;
    text-align: center;
    background: rgba(var(--crm-rgb31-61-43-bg), .08);
    color: var(--crm-forest-text);
}
.fu-tab-count.overdue[b-3sxsidwvlh] {
    background: rgba(var(--crm-rgb156-59-44-bg), .14);
    color: var(--crm-c9c3b2c-text);
}

/* The list scrolls inside the card, so the page stays one screen tall however many are due.
   The subtrahend is roughly the header, title, tiles, strip, heading and tabs above it. */
.fu-scroll[b-3sxsidwvlh] {
    overflow-y: auto;
    max-height: calc(100dvh - 300px);
    min-height: 280px;
}

/* ---------- Sections ---------- */

.fu-subhead[b-3sxsidwvlh] {
    padding: .5rem 1rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(var(--crm-rgb31-61-43-text), .7);
    background: rgba(var(--crm-rgb239-233-220-bg), .5);
}
.fu-subhead.warn[b-3sxsidwvlh] {
    color: var(--crm-c9c3b2c-text);
    background: rgba(var(--crm-rgb156-59-44-bg), .08);
}
.fu-subhead.pinned[b-3sxsidwvlh] {
    color: var(--crm-gold-dark-text);
    background: rgba(var(--crm-rgb201-162-39-bg), .12);
}

.fu-empty[b-3sxsidwvlh], .fu-note[b-3sxsidwvlh] {
    margin: 0;
    padding: 1rem;
    font-size: .9rem;
    color: var(--crm-c6b6b64-text);
}
.fu-note[b-3sxsidwvlh] { padding-bottom: 0; }

/* ---------- Rows ---------- */
.fu-list[b-3sxsidwvlh] {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fu-row[b-3sxsidwvlh] {
    display: grid;
    grid-template-columns: minmax(12rem, 2fr) minmax(10rem, 1fr) auto;
    align-items: center;
    gap: .4rem 1rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
}
.fu-row:last-child[b-3sxsidwvlh] { border-bottom: none; }
.fu-row:hover[b-3sxsidwvlh] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.fu-row.pinned[b-3sxsidwvlh] { box-shadow: inset 3px 0 0 var(--crm-cc9a227-line); }

.fu-who[b-3sxsidwvlh], .fu-when[b-3sxsidwvlh] { display: flex; flex-direction: column; min-width: 0; }
.fu-name[b-3sxsidwvlh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--crm-forest-text);
}
.fu-detail[b-3sxsidwvlh], .fu-last[b-3sxsidwvlh] {
    font-size: .8rem;
    color: var(--crm-c6b6b64-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fu-due[b-3sxsidwvlh] { font-size: .88rem; font-weight: 600; color: var(--crm-forest-text); }
.fu-due.overdue[b-3sxsidwvlh] { color: var(--crm-c9c3b2c-text); }

.fu-actions[b-3sxsidwvlh] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .25rem;
}
.row-btn[b-3sxsidwvlh] {
    display: inline-block;
    padding: .26rem .62rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-3sxsidwvlh] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }

/* ---------- Deal date label ---------- */
.deal-chip[b-3sxsidwvlh] {
    display: inline-block;
    padding: .08rem .5rem;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(var(--crm-rgb31-61-43-bg), .06);
    color: var(--crm-forest-text);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
}
.deal-chip.soon[b-3sxsidwvlh] {
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border-color: rgba(var(--crm-rgb156-59-44-line), .45);
}

/* ---------- Stacked lead badges (as on the Leads page) ---------- */
.stack-badges[b-3sxsidwvlh] { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0; }
.stack-chip[b-3sxsidwvlh],
.sale-chip[b-3sxsidwvlh] {
    display: inline-block;
    padding: .08rem .5rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}
.stack-chip[b-3sxsidwvlh] {
    background: rgba(var(--crm-rgb31-61-43-bg), .08);
    color: var(--crm-c1f3d2b-text);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
}
.stack-chip.top[b-3sxsidwvlh] {
    background: var(--crm-cc9a227-bg);
    color: var(--crm-cffffff-text);
    border-color: var(--crm-cc9a227-line);
}
.sale-chip[b-3sxsidwvlh] {
    background: rgba(var(--crm-rgb31-61-43-bg), .05);
    color: rgba(var(--crm-rgb31-61-43-text), .8);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .2);
}
.sale-chip.soon[b-3sxsidwvlh] {
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border-color: rgba(var(--crm-rgb156-59-44-line), .45);
}

/* The tiles, strip and lists in one column with even gaps. */
.fu-stack[b-3sxsidwvlh] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------- Phones ---------- */
@media (max-width: 860px) {
    .crm[b-3sxsidwvlh] { padding: 1rem 1.25rem 2.5rem; }
    .fu-scroll[b-3sxsidwvlh] { max-height: none; min-height: 0; overflow: visible; }

    /* One row of tabs: tighter, and sideways scrolling on the narrowest phones rather than wrapping. */
    .fu-tabs[b-3sxsidwvlh] {
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
    .fu-tab[b-3sxsidwvlh] {
        flex: 0 0 auto;
        margin-bottom: 0;
        gap: .3rem;
        padding: .45rem .55rem;
        font-size: .88rem;
        white-space: nowrap;
    }
    .fu-tab-count[b-3sxsidwvlh] { min-width: 1.2rem; padding: 0 .3rem; font-size: .7rem; }
    .fu-row[b-3sxsidwvlh] { grid-template-columns: 1fr; }
    .fu-actions[b-3sxsidwvlh] { justify-content: flex-start; }
    .fu-detail[b-3sxsidwvlh], .fu-last[b-3sxsidwvlh] { white-space: normal; }
}
/* /Components/Pages/Health.razor.rz.scp.css */
/* ============================================================
   System Health page — page-specific styles only. Shared CRM styling
   (card, toolbar, alert) lives with the components in Components/Crm/.
   Title and container sizing match the other CRM pages exactly.
   ============================================================ */

.crm[b-a4s3ffo47s] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-a4s3ffo47s] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Verdict chip in the toolbar ---------- */
.verdict[b-a4s3ffo47s] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.verdict-ok[b-a4s3ffo47s]  { background: rgba(var(--crm-rgb31-61-43-bg), .10); color: var(--crm-forest-text); }
.verdict-bad[b-a4s3ffo47s] { background: rgba(var(--crm-rgb156-59-44-bg), .12); color: var(--crm-c9c3b2c-text); }
.verdict-dot[b-a4s3ffo47s] { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.verdict-time[b-a4s3ffo47s] { font-weight: 400; font-size: .85rem; opacity: .75; }

/* ---------- Sections ---------- */
/* Same horizontal rhythm as the toolbar (1.25rem) so headings, header row and rows all
   share one left edge. The section title matches the KPI page's section titles. */
.health-section h2[b-a4s3ffo47s] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-secondary, var(--crm-c52514e-text));
    margin: 0;
    padding: 1.1rem 1.25rem .35rem;
}
.health-section + .health-section h2[b-a4s3ffo47s] { padding-top: 1.4rem; }

/* ---------- Grid ---------- */
/* One grid for both sections: fixed column tracks keep them aligned and stop the long
   "what we know" text from pushing the columns around as it does in an auto table. */
.health-grid[b-a4s3ffo47s] {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) 100px minmax(0, 3fr) 160px;
    column-gap: 1rem;
    align-items: start;
    padding: 0 1.25rem;
}

/* Header row: the same treatment as the sortable column headers on the Leads grid. */
.health-grid-head span[b-a4s3ffo47s] {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-forest-text);
    padding: .6rem 0;
    border-bottom: 2px solid var(--crm-gold-line);
    white-space: nowrap;
}
.health-grid-head span:last-child[b-a4s3ffo47s] { text-align: right; }

.health-row[b-a4s3ffo47s] {
    padding-top: .8rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    transition: background .12s ease;
}
.health-section .health-row:last-child[b-a4s3ffo47s] { border-bottom: none; }
.health-row:hover[b-a4s3ffo47s] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }

.h-name[b-a4s3ffo47s] { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.h-label[b-a4s3ffo47s] { font-weight: 600; color: var(--crm-forest-text); }
.h-cadence[b-a4s3ffo47s] { font-size: .8rem; color: var(--crm-c6b6b64-text); }
.h-status[b-a4s3ffo47s] { padding-top: .1rem; }
.h-detail[b-a4s3ffo47s] { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.h-reason[b-a4s3ffo47s] { font-size: .9rem; overflow-wrap: anywhere; }
.h-sub[b-a4s3ffo47s] { font-size: .8rem; color: var(--crm-c6b6b64-text); overflow-wrap: anywhere; }
.h-when[b-a4s3ffo47s] { font-size: .9rem; white-space: nowrap; text-align: right; }

.pill[b-a4s3ffo47s] {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
}
.pill-ok[b-a4s3ffo47s]      { background: rgba(var(--crm-rgb31-61-43-bg), .12); color: var(--crm-forest-text); }
.pill-warn[b-a4s3ffo47s]    { background: rgba(var(--crm-rgb201-162-39-bg), .22); color: var(--crm-c6b4e00-text); }
.pill-bad[b-a4s3ffo47s]     { background: rgba(var(--crm-rgb156-59-44-bg), .15); color: var(--crm-c9c3b2c-text); }
.pill-unknown[b-a4s3ffo47s] { background: rgba(var(--crm-rgb107-107-100-bg), .15); color: var(--crm-c6b6b64-text); }

.spend[b-a4s3ffo47s] {
    margin: 0;
    padding: 1.1rem 1.25rem 1.25rem;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Phone: one card per row ---------- */
@media (max-width: 760px) {
    .health-grid-head[b-a4s3ffo47s] { display: none; }
    .health-grid[b-a4s3ffo47s] {
        grid-template-columns: 1fr auto;
        row-gap: .35rem;
        padding: 0 1rem;
    }
    .health-section h2[b-a4s3ffo47s] { padding: 1rem 1rem .35rem; }
    .h-detail[b-a4s3ffo47s] { grid-column: 1 / -1; }
    .h-when[b-a4s3ffo47s] { grid-column: 1 / -1; text-align: left; font-size: .8rem; color: var(--crm-c6b6b64-text); }
    .h-when:empty[b-a4s3ffo47s] { display: none; }
    .spend[b-a4s3ffo47s] { padding: 1rem; }
}
/* /Components/Pages/InvestorMaoComps.razor.rz.scp.css */
/* ============================================================
   Investor comps page — page-specific styles only (the grid
   rules match the Buyers page). Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* ---------- Grid ---------- */
/* Fixed-height viewport like the Leads grid: it scrolls down only, and the page never grows
   with the comp count. The subtrahend is what is stacked around it: site header (~72), title
   and lede (~130), toolbar (~95), count footer (~40) and the page's bottom padding (~64). */
.crm-scroll[b-7wzst37a89] {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - 420px);
    min-height: 320px;
}
.crm-table[b-7wzst37a89] {
    width: 100%;
    /* fixed: columns keep the widths below instead of growing with their content, so a long
       subdivision or buyer name can never widen the table or make a row four lines tall. */
    table-layout: fixed;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-7wzst37a89] {
    padding: .6rem .75rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody td:first-child[b-7wzst37a89],
.crm-table thead th:first-child[b-7wzst37a89] { padding-left: 1.25rem; }

/* Column widths (sum to 100%), in header order: Address, Subdivision, Buyer, Sold, Price,
   $/sq ft, Score, Used?, actions. Fixed layout sizes columns from the header row. */
.crm-table thead th:nth-child(1)[b-7wzst37a89] { width: 19%; }
.crm-table thead th:nth-child(2)[b-7wzst37a89] { width: 15%; }
.crm-table thead th:nth-child(3)[b-7wzst37a89] { width: 15%; }
.crm-table thead th:nth-child(4)[b-7wzst37a89] { width: 8%; }
.crm-table thead th:nth-child(5)[b-7wzst37a89] { width: 9%; }
.crm-table thead th:nth-child(6)[b-7wzst37a89] { width: 7%; }
.crm-table thead th:nth-child(7)[b-7wzst37a89] { width: 6%; }
.crm-table thead th:nth-child(8)[b-7wzst37a89] { width: 13%; }
.crm-table thead th:nth-child(9)[b-7wzst37a89] { width: 8%; }

/* One line per value: what outgrows its column shows an ellipsis, and its title the whole text. */
.crm-table tbody td > span[b-7wzst37a89],
.crm-table tbody td .cell-main[b-7wzst37a89],
.crm-table tbody td .cell-sub[b-7wzst37a89] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.imao-used-cell .cell-sub[b-7wzst37a89] { margin-top: .15rem; }
.crm-table tbody tr[b-7wzst37a89] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-7wzst37a89] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-7wzst37a89] { border-bottom: none; }

.cell-main[b-7wzst37a89] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.cell-sub[b-7wzst37a89]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.num[b-7wzst37a89] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Grid header ---------- */
.crm-table thead th[b-7wzst37a89] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--crm-cfbf9f4-bg);
    text-align: left;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: .6rem .75rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
}
.crm-table thead th.num[b-7wzst37a89] { text-align: right; }

/* ---------- Row action buttons ---------- */
.row-actions[b-7wzst37a89] { text-align: right; white-space: nowrap; }
.row-btn[b-7wzst37a89] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-7wzst37a89] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-7wzst37a89] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-7wzst37a89] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-7wzst37a89] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-7wzst37a89] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm-scroll[b-7wzst37a89] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-7wzst37a89],
    .crm-table tbody[b-7wzst37a89] { display: block; }
    .crm-table thead[b-7wzst37a89] { display: none; }
    .crm-table tbody td:first-child[b-7wzst37a89] { padding-left: 0; }
    /* Cards have the room: values wrap instead of cutting off. */
    .crm-table tbody td > span[b-7wzst37a89],
    .crm-table tbody td .cell-main[b-7wzst37a89],
    .crm-table tbody td .cell-sub[b-7wzst37a89] { white-space: normal; overflow: visible; }

    .crm-table tbody tr[b-7wzst37a89] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-7wzst37a89] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-7wzst37a89] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-7wzst37a89] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-7wzst37a89] {
        display: grid;
        grid-template-columns: 104px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-7wzst37a89]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-7wzst37a89] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-7wzst37a89] { display: block; }

    .row-actions[b-7wzst37a89] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-7wzst37a89] { margin-left: 0; }
}

/* ---------- Import status strip ---------- */
.imao-status[b-7wzst37a89] { padding: .6rem 1.25rem; font-size: .86rem; background: var(--crm-cf4efe3-bg); color: var(--crm-c3d3d38-text); }
/* /Components/Pages/Kpis.razor.rz.scp.css */
/* Page shell — same container padding and title scale as the other CRM pages
   (each page carries these in its scoped CSS; without them the public site's
   h1 styling leaks in). */
.crm[b-57cfiv0kn0] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-57cfiv0kn0] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

.crm-subtitle[b-57cfiv0kn0] {
    margin: -.5rem 0 1rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
}

/* Chart palette — validated slots 1–3 (light mode, white surface):
   see docs/kpi-dashboard.md. Text stays in ink tokens, never series color. */
.kpi-chart-block[b-57cfiv0kn0] {
    --series-dials: #2a78d6;
    --series-connects: #eb6834;
    --series-interested: #1baf7a;
    --ink-secondary: #52514e;
    --ink-muted: #898781;
    --gridline: #e1e0d9;
    --baseline: #c3c2b7;
    padding: 0 1.25rem 1rem;
}

/* ---------- date-range toolbar ---------- */

.kpi-presets[b-57cfiv0kn0] {
    display: flex;
    gap: 0.35rem;
    align-items: flex-end;
}

.kpi-preset[b-57cfiv0kn0] {
    border: 1px solid var(--baseline, var(--crm-cc3c2b7-line));
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
}

.kpi-preset.active[b-57cfiv0kn0] {
    background: var(--crm-c1a1a19-bg);
    border-color: var(--crm-c1a1a19-line);
    color: var(--crm-cffffff-text);
    font-weight: 600;
}

/* ---------- stat tiles ---------- */

.kpi-tiles[b-57cfiv0kn0] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
}

.kpi-tile[b-57cfiv0kn0] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid rgba(var(--crm-rgb11-11-11-line), 0.10);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.kpi-label[b-57cfiv0kn0] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted, var(--crm-c898781-text));
}

.kpi-value[b-57cfiv0kn0] {
    font-size: 1.7rem;
    font-weight: 650;
    line-height: 1.15;
}

.kpi-sub[b-57cfiv0kn0] {
    font-size: 0.82rem;
    color: var(--ink-secondary, var(--crm-c52514e-text));
}

.kpi-empty[b-57cfiv0kn0] {
    padding: 2.5rem 1.25rem;
    color: var(--ink-secondary, var(--crm-c52514e-text));
}

/* ---------- chart ---------- */

.kpi-chart-head[b-57cfiv0kn0] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.kpi-chart-title[b-57cfiv0kn0] {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.kpi-legend[b-57cfiv0kn0] {
    display: flex;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: var(--ink-secondary);
}

.kpi-chip[b-57cfiv0kn0] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kpi-swatch[b-57cfiv0kn0] {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.swatch-dials[b-57cfiv0kn0] { background: var(--series-dials); }
.swatch-connects[b-57cfiv0kn0] { background: var(--series-connects); }
.swatch-interested[b-57cfiv0kn0] { background: var(--series-interested); }

.kpi-chart[b-57cfiv0kn0] {
    width: 100%;
    height: auto;
    display: block;
}

.kpi-grid[b-57cfiv0kn0] {
    stroke: var(--gridline);
    stroke-width: 1;
}

.kpi-baseline[b-57cfiv0kn0] {
    stroke: var(--baseline);
    stroke-width: 1;
}

.kpi-axis[b-57cfiv0kn0] {
    fill: var(--ink-muted);
    font-size: 10px;
}

.kpi-line[b-57cfiv0kn0] {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.line-dials[b-57cfiv0kn0] { stroke: var(--series-dials); }
.line-connects[b-57cfiv0kn0] { stroke: var(--series-connects); }
.line-interested[b-57cfiv0kn0] { stroke: var(--series-interested); }

.kpi-endlabel[b-57cfiv0kn0] {
    fill: var(--ink-secondary);
    font-size: 10px;
}

.kpi-crosshair[b-57cfiv0kn0] {
    stroke: var(--baseline);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

/* 2px surface ring so overlapping markers stay separable */
.kpi-marker[b-57cfiv0kn0] {
    stroke: var(--crm-cffffff-text);
    stroke-width: 2;
}

.marker-dials[b-57cfiv0kn0] { fill: var(--series-dials); }
.marker-connects[b-57cfiv0kn0] { fill: var(--series-connects); }
.marker-interested[b-57cfiv0kn0] { fill: var(--series-interested); }

.kpi-tooltip rect[b-57cfiv0kn0] {
    fill: var(--crm-cffffff-text);
    stroke: rgba(var(--crm-rgb11-11-11-text), 0.15);
    filter: drop-shadow(0 1px 3px rgba(var(--crm-rgb11-11-11-shadow), 0.15));
}

.kpi-tooltip text[b-57cfiv0kn0] {
    fill: var(--ink-secondary);
    font-size: 10px;
}

.kpi-tooltip .tip-title[b-57cfiv0kn0] {
    fill: var(--crm-c0b0b0b-text);
    font-weight: 600;
}

.kpi-hit[b-57cfiv0kn0] {
    fill: transparent;
}

/* ---------- table view ---------- */

.kpi-table-wrap[b-57cfiv0kn0] {
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.kpi-table-wrap summary[b-57cfiv0kn0] {
    cursor: pointer;
    color: var(--ink-secondary);
}

.kpi-table-scroll[b-57cfiv0kn0] {
    overflow-x: auto;
}

.kpi-table[b-57cfiv0kn0] {
    border-collapse: collapse;
    margin-top: 0.5rem;
    min-width: 320px;
}

.kpi-table th[b-57cfiv0kn0],
.kpi-table td[b-57cfiv0kn0] {
    border: 1px solid var(--gridline);
    padding: 0.3rem 0.7rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.kpi-table th:first-child[b-57cfiv0kn0],
.kpi-table td:first-child[b-57cfiv0kn0] {
    text-align: left;
}

@media (max-width: 640px) {
    .kpi-endlabel[b-57cfiv0kn0] { display: none; }
}

/* ---------- section headings (two cards on one page) ---------- */

.kpi-section-title[b-57cfiv0kn0] {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--ink-secondary, var(--crm-c52514e-text));
}

.kpi-section-title:first-of-type[b-57cfiv0kn0] {
    margin-top: 0;
}

.kpi-month[b-57cfiv0kn0] {
    align-self: center;
    min-width: 9rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- deals table block (the funnel itself is the ColdCallFunnel component) ---------- */

.kpi-funnel-block[b-57cfiv0kn0] {
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid var(--gridline, var(--crm-ce1e0d9-line));
}

.kpi-note[b-57cfiv0kn0] {
    font-size: 0.85rem;
    color: var(--ink-secondary, var(--crm-c52514e-text));
    margin: 0.25rem 0 0.75rem;
    max-width: 60ch;
}

/* Text tables (leads, deals) read left-aligned; only money columns stay right-aligned. */
.kpi-table-text th[b-57cfiv0kn0],
.kpi-table-text td[b-57cfiv0kn0] {
    text-align: left;
}

.kpi-table-text th.num[b-57cfiv0kn0],
.kpi-table-text td.num[b-57cfiv0kn0] {
    text-align: right;
}


.kpi-status-closed[b-57cfiv0kn0] { color: var(--crm-c1b7a48-text); font-weight: 600; }
.kpi-status-deal[b-57cfiv0kn0] { color: var(--crm-c8a5a00-text); font-weight: 600; }
.kpi-status-working[b-57cfiv0kn0] { color: var(--ink-secondary, var(--crm-c52514e-text)); }
.kpi-status-dead[b-57cfiv0kn0] { color: var(--ink-muted, var(--crm-c898781-text)); }

.kpi-overdue[b-57cfiv0kn0] {
    color: var(--crm-cb42318-text);
}

.kpi-tile-warn[b-57cfiv0kn0] {
    border-color: var(--crm-cf0c36d-line);
    background: var(--crm-cfff8e8-bg);
}
/* /Components/Pages/LeadImport.razor.rz.scp.css */
/* ============================================================
   Lead CSV import page. The table and empty-state rules mirror
   Leads.razor.css because CRM grid styling is per-page scoped
   CSS in this project rather than shared — see the note there.
   Form controls come from Bootstrap (loaded globally).
   ============================================================ */

.crm[b-u1n8sc54v0] {
    padding: 1.6rem 1.5rem 4rem;
}

/* ---------- Page header ---------- */
.crm-head[b-u1n8sc54v0] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-title[b-u1n8sc54v0] {
    font-size: 1.7rem;
    margin: 0 0 .25rem;
}

.crm-subtitle[b-u1n8sc54v0] {
    margin: 0;
    max-width: 46rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
}

.crm-back[b-u1n8sc54v0] {
    flex: 0 0 auto;
    padding-top: .4rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-green-text);
    text-decoration: none;
    white-space: nowrap;
}
.crm-back:hover[b-u1n8sc54v0] { color: var(--crm-forest-text); text-decoration: underline; }

/* CrmCard renders child content with no padding of its own — a grid supplies its own via cell
   padding, but form content has to bring it. */
.import-body[b-u1n8sc54v0] {
    padding: 1.3rem 1.4rem;
}

/* Cards stack down the page. ::deep — the card element belongs to CrmCard, not this page. */
[b-u1n8sc54v0] .crm-card + .crm-card {
    margin-top: 1.1rem;
}

/* ---------- File picker ---------- */
.file-row[b-u1n8sc54v0] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.file-field[b-u1n8sc54v0] {
    flex: 1 1 22rem;
    max-width: 34rem;
}

/* ::deep — the input is rendered by the InputFile component, not by this page. */
.file-field[b-u1n8sc54v0]  input[type="file"] {
    display: block;
    width: 100%;
    padding: .8rem .9rem;
    border: 1.5px dashed rgba(var(--crm-rgb58-107-76-line), .45);
    border-radius: 12px;
    background: rgba(var(--crm-rgb239-233-220-bg), .35);
    font-size: .9rem;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.file-field[b-u1n8sc54v0]  input[type="file"]:hover {
    border-color: var(--crm-green-line);
    background: rgba(var(--crm-rgb239-233-220-bg), .6);
}
.file-field[b-u1n8sc54v0]  input[type="file"]::file-selector-button {
    margin-right: .9rem;
    padding: .45rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: var(--crm-gold-bg);
    color: var(--crm-ink-text);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s ease;
}
.file-field[b-u1n8sc54v0]  input[type="file"]::file-selector-button:hover {
    background: var(--crm-gold-dark-bg);
    color: var(--crm-cffffff-text);
}

/* ---------- Card footers ---------- */
.card-actions[b-u1n8sc54v0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}

.footer-note[b-u1n8sc54v0] {
    flex: 1 1 20rem;
    min-width: 14rem;
    font-size: .8rem;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Mapping ---------- */
.form-hint[b-u1n8sc54v0] {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    color: var(--crm-c6b6b64-text);
}

.import-group[b-u1n8sc54v0] {
    padding: .3rem 0 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    margin-bottom: 1rem;
}
.import-group:last-of-type[b-u1n8sc54v0] { border-bottom: none; }

.import-group-title[b-u1n8sc54v0] {
    display: block;
    margin-bottom: .6rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
}

.import-mapping-actions[b-u1n8sc54v0] {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* ---------- Counts ---------- */
.import-summary[b-u1n8sc54v0] {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    padding: .4rem 0 1.2rem;
}

.import-stat[b-u1n8sc54v0] {
    color: var(--crm-c6b6b64-text);
    font-size: .85rem;
}
.import-stat .big[b-u1n8sc54v0] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--crm-forest-text);
}

/* ---------- Section headings (the modal's copy is scoped to the modal) ---------- */
.form-section[b-u1n8sc54v0] {
    margin: 1.4rem 0 .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
}
.form-section:first-of-type[b-u1n8sc54v0] { margin-top: 0; }

.btn-quiet[b-u1n8sc54v0] {
    background: transparent;
    border: none;
    padding: .5rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.btn-quiet:hover[b-u1n8sc54v0] { color: var(--crm-forest-text); }
.btn-quiet.danger[b-u1n8sc54v0] { color: var(--crm-c9c3b2c-text); }

/* ---------- Preview / issue tables ---------- */
.crm-scroll[b-u1n8sc54v0] {
    overflow: auto;
    max-height: 420px;
}
.crm-table[b-u1n8sc54v0] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table thead th[b-u1n8sc54v0] {
    padding: .6rem 1rem;
    text-align: left;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    white-space: nowrap;
}
.crm-table tbody td[b-u1n8sc54v0] {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr:last-child td[b-u1n8sc54v0] { border-bottom: none; }

.cell-sub[b-u1n8sc54v0] {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--crm-c6b6b64-text);
}

.crm-empty[b-u1n8sc54v0] {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-u1n8sc54v0] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile: the issue table becomes labeled rows, same treatment
   as the leads grid.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-u1n8sc54v0] { padding: 1rem 1.25rem 2.5rem; }

    .crm-head[b-u1n8sc54v0] {
        flex-direction: column;
        gap: .4rem;
    }
    .crm-back[b-u1n8sc54v0] { padding-top: 0; }

    .import-body[b-u1n8sc54v0] { padding: 1.1rem 1rem; }
    .import-summary[b-u1n8sc54v0] { gap: 1.4rem; }
    .card-actions > .btn[b-u1n8sc54v0] { width: 100%; }

    .crm-table[b-u1n8sc54v0], .crm-table tbody[b-u1n8sc54v0] { display: block; }
    .crm-table thead[b-u1n8sc54v0] { display: none; }

    .crm-table tbody tr[b-u1n8sc54v0] {
        display: block;
        margin: .8rem 0;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        background: var(--crm-cffffff-bg);
    }

    .crm-table tbody td[b-u1n8sc54v0] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
        padding: .55rem 0;
    }
    .crm-table tbody td[b-u1n8sc54v0]::before {
        content: attr(data-label);
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
    }
}
/* /Components/Pages/Leads.razor.rz.scp.css */
/* ============================================================
   Leads CRM page — page-specific styles only. Shared CRM styling
   (card, toolbar, fields, modals, sort headers, alert) lives with
   the components in Components/Crm/.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-pkgf2vdfcp] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-pkgf2vdfcp] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Grid ---------- */
/* Fixed-height scroll viewport: rows virtualize inside it (Virtualize needs a
   scrollable ancestor), so the page itself never grows with the lead count. */
.crm-scroll[b-pkgf2vdfcp] {
    overflow-y: auto;
    /* The grid never scrolls sideways — the table is sized to fit instead (see table-layout
       below), so a horizontal bar would only ever mean a column is misbehaving. */
    overflow-x: hidden;
    /* The subtrahend is everything stacked around the scroll viewport: site header (~72), page
       title and its margins (~72), the toolbar's filter row plus the wrapped actions row (~170),
       the result count footer (~40), and the page's 4rem bottom padding. Approximate by nature —
       the toolbar wraps differently by width — so it errs on the safe side. Too small a value
       and the card's footer is pushed below the fold, which is what a 320 offset did once the
       toolbar grew a second row. */
    max-height: calc(100dvh - 430px);
    min-height: 320px;
}
.crm-table[b-pkgf2vdfcp] {
    width: 100%;
    /* fixed: columns take the widths declared below instead of growing to fit their content, so
       adding a column or a long email address can never widen the table past the card. */
    table-layout: fixed;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}

/* ---------- Column widths (sum to 100%) ----------
   Ordered as the header row is: Name, Contact, Location, Status, Motivation, Asking, Follow-up,
   actions. Change one and change another — they have to keep summing to 100. The widths are sized
   to what each column actually holds: full status pills and three row buttons never truncate,
   while free text (email, city, motivation) is allowed to ellipsis.
   ::deep is load-bearing: the th cells are rendered by CrmSortHeader, so they carry that
   component's isolation scope — a plain th selector here compiles to th[this-file's-scope] and
   matches nothing, leaving the fixed-layout table to split into equal eighths. th only, no td:
   fixed layout sizes columns from the first row alone, so td width rules are inert on desktop —
   and actively harmful on mobile, where the tds become block/grid cards and a stray percentage
   width squeezes the card into its label column. */
.crm-table[b-pkgf2vdfcp]  th:nth-child(1) { width: 12%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(2) { width: 10%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(3) { width: 16%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(4) { width: 13%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(5) { width: 12%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(6) { width: 7%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(7) { width: 9%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(8) { width: 21%; }

/* Below this the three row buttons and eight columns stop coexisting. Motivation goes first: it
   is the least load-bearing column and is usually empty. The widths it frees go to the columns
   that cannot shrink — the status pill and the buttons. */
@media (min-width: 861px) and (max-width: 1250px) {
    /* The th needs ::deep (child component, see above); the tds are this file's own markup. */
    .crm-table[b-pkgf2vdfcp]  th:nth-child(5), .crm-table td:nth-child(5)[b-pkgf2vdfcp] { display: none; }

    .crm-table[b-pkgf2vdfcp]  th:nth-child(1) { width: 13%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(2) { width: 12%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(3) { width: 16%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(4) { width: 14%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(6) { width: 8%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(7) { width: 10%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(8) { width: 27%; }
}

.crm-table tbody td[b-pkgf2vdfcp] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-pkgf2vdfcp] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-pkgf2vdfcp] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
/* The row the user just came back to (from its activities): a soft gold wash so the eye
   lands on it, stronger than hover so hovering neighbours doesn't hide it. */
.crm-table tbody tr.returned[b-pkgf2vdfcp] { background: rgba(var(--crm-rgb201-162-39-bg), .18); }
.crm-table tbody tr.returned:hover[b-pkgf2vdfcp] { background: rgba(var(--crm-rgb201-162-39-bg), .26); }
.crm-table tbody tr:last-child td[b-pkgf2vdfcp] { border-bottom: none; }

.lead-name[b-pkgf2vdfcp] { font-weight: 600; color: var(--crm-forest-text); }
.cell-muted[b-pkgf2vdfcp] { color: var(--crm-c6b6b64-text); }

/* Free-text values too long for their column get an ellipsis rather than widening the table.
   Nothing is lost: the cell carries a title attribute and search still matches the full value.
   Deliberately scoped to these text spans — pills, chips and badges have to stay inline, and a
   blanket rule on every span in a cell stacks them into blocks instead. */
.cell-main[b-pkgf2vdfcp],
.cell-sub[b-pkgf2vdfcp],
.cell-muted > span[b-pkgf2vdfcp] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The address and the motivation are read, not skimmed: they wrap onto a second line instead
   of cutting off. The row is already two lines tall (its buttons wrap), so it costs no height. */
.cell-wrap .cell-main[b-pkgf2vdfcp],
.cell-wrap .cell-sub[b-pkgf2vdfcp],
.cell-wrap.cell-muted > span[b-pkgf2vdfcp] {
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
}
.cell-main[b-pkgf2vdfcp] { font-size: .9rem; }
.cell-sub[b-pkgf2vdfcp]  { font-size: .8rem; color: var(--crm-c6b6b64-text); }
.num[b-pkgf2vdfcp] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.overdue[b-pkgf2vdfcp] { color: var(--crm-c9c3b2c-text); font-weight: 600; }

/* Red "!" badge shown when an appointment-set lead is missing its manual follow-up date. */
.followup-required[b-pkgf2vdfcp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: .4rem;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border: 1px solid rgba(var(--crm-rgb156-59-44-line), .35);
    cursor: help;
    vertical-align: middle;
}

/* Amber badge beside the status pill: "W" for a parked warm call awaiting qualification,
   "?" for an acquisitions-stage lead missing a qualification pillar. */
.qualify-required[b-pkgf2vdfcp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: .4rem;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(var(--crm-rgb176-122-15-bg), .14);
    color: var(--crm-c8a6110-text);
    border: 1px solid rgba(var(--crm-rgb176-122-15-line), .4);
    cursor: help;
    vertical-align: middle;
}

/* Status pills are shared CRM styling — see app.css. */

.dnc-chip[b-pkgf2vdfcp] {
    display: inline-block;
    margin-left: .45rem;
    padding: .08rem .5rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border: 1px solid rgba(var(--crm-rgb156-59-44-line), .35);
    vertical-align: middle;
}

/* ---------- Stacked leads: a gold edge and their priority badges ---------- */
.crm-table tbody tr.pinned td:first-child[b-pkgf2vdfcp] { box-shadow: inset 3px 0 0 var(--crm-cc9a227-shadow); }

.stack-badges[b-pkgf2vdfcp] {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .25rem;
}
.stack-chip[b-pkgf2vdfcp],
.sale-chip[b-pkgf2vdfcp] {
    display: inline-block;
    padding: .08rem .5rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}
.stack-chip[b-pkgf2vdfcp] {
    background: rgba(var(--crm-rgb31-61-43-bg), .08);
    color: var(--crm-c1f3d2b-text);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
}
.stack-chip.top[b-pkgf2vdfcp] {
    background: var(--crm-cc9a227-bg);
    color: var(--crm-cffffff-text);
    border-color: var(--crm-cc9a227-line);
}
.sale-chip[b-pkgf2vdfcp] {
    background: rgba(var(--crm-rgb31-61-43-bg), .05);
    color: rgba(var(--crm-rgb31-61-43-text), .8);
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .2);
}
.sale-chip.soon[b-pkgf2vdfcp] {
    background: rgba(var(--crm-rgb156-59-44-bg), .12);
    color: var(--crm-c9c3b2c-text);
    border-color: rgba(var(--crm-rgb156-59-44-line), .45);
}

/* ---------- Row action buttons ---------- */
/* Compact enough that three of them fit the actions column without the table needing to grow.
   The cell's usual 1rem side padding is trimmed too — 2rem of it was the difference between the
   buttons fitting and Delete being clipped.
   The buttons are allowed to wrap rather than clip: with the grid's overflow-x hidden, a
   nowrap+hidden cell made a too-narrow column silently swallow the Delete button. Wrapping
   costs a taller row in the worst case; an invisible button cost the feature. */
.row-actions[b-pkgf2vdfcp] {
    text-align: right;
}
/* Outweighs the .crm-table tbody td padding rule without resorting to !important. */
.crm-table tbody td.row-actions[b-pkgf2vdfcp] {
    padding-left: .35rem;
    padding-right: .6rem;
}
.row-btn[b-pkgf2vdfcp] {
    display: inline-block;
    /* Vertical breathing room for when the buttons wrap onto a second line (see .row-actions). */
    margin-block: .12rem;
    padding: .26rem .62rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-pkgf2vdfcp] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
/* The calendar action is a download link, not a button; keep it looking like its siblings. */
a.row-btn[b-pkgf2vdfcp] { text-decoration: none; line-height: normal; }
.row-btn + .row-btn[b-pkgf2vdfcp] { margin-left: .25rem; }
.row-btn.danger[b-pkgf2vdfcp] {
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-pkgf2vdfcp] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Empty / loading state ---------- */
.crm-empty[b-pkgf2vdfcp] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-pkgf2vdfcp] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ---------- Mobile sort control (visible only under the site breakpoint) ---------- */
.sort-mobile-row[b-pkgf2vdfcp] { display: flex; gap: .45rem; }
.sort-mobile-row select[b-pkgf2vdfcp] { flex: 1; }
.sort-dir[b-pkgf2vdfcp] {
    flex: 0 0 auto;
    width: 2.6rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .25);
    background: var(--crm-cffffff-bg);
    color: var(--crm-gold-dark-text);
    font-size: .7rem;
    cursor: pointer;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-pkgf2vdfcp] { padding: 1rem 1.25rem 2.5rem; }

    /* Cards size themselves; scroll the page naturally (Virtualize
       falls back to the document as its scroll container). */
    .crm-scroll[b-pkgf2vdfcp] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-pkgf2vdfcp],
    .crm-table tbody[b-pkgf2vdfcp] { display: block; }
    .crm-table thead[b-pkgf2vdfcp] { display: none; }

    /* Cards are full-width blocks, so the desktop column widths and the fixed layout that
       enforces them no longer apply. No per-cell width rules are needed (or wanted) here: the
       desktop widths live on the ::deep th rules above, and the header row is display: none, so
       the block/grid cells naturally take the card's width. The stranded-left/squeezed-card bugs
       this block used to fight were the old td percentage widths leaking in — those rules are
       gone at the source. */
    .crm-table[b-pkgf2vdfcp] { table-layout: auto; }

    /* Nor does truncation: a card row has room to wrap, so show the whole value. */
    .cell-main[b-pkgf2vdfcp],
    .cell-sub[b-pkgf2vdfcp],
    .cell-muted > span[b-pkgf2vdfcp] {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .crm-table tbody tr[b-pkgf2vdfcp] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-pkgf2vdfcp] { background: var(--crm-cffffff-bg); }
    /* A stacked lead's card keeps its gold edge on the card, not on one cell. */
    .crm-table tbody tr.pinned[b-pkgf2vdfcp] { border-left: 4px solid var(--crm-cc9a227-line); }
    .crm-table tbody tr.pinned td:first-child[b-pkgf2vdfcp] { box-shadow: none; }
    /* Virtualize's empty spacer <tr>s must not render as ghost cards. */
    .crm-table tbody tr:empty[b-pkgf2vdfcp] {
        border: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .crm-table tbody td[b-pkgf2vdfcp] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-pkgf2vdfcp] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label.
       Two-column grid, matching Users/Activities: the label owns a fixed first column and every
       value lands in the second, right-aligned. A floated label was tried instead, but only
       inline values flow beside a float — the block-level .cell-main/.cell-sub spans dropped
       below it and re-aligned left. Grid places them regardless of their display. */
    .crm-table tbody td[data-label][b-pkgf2vdfcp] {
        display: grid;
        /* Wide enough that the longest label ("Follow-up") stays on one line. The value track is
           minmax(0, 1fr), not 1fr: a bare 1fr floors at the content's min-content width, which
           lets a long email push the row wider than the card. */
        grid-template-columns: 92px minmax(0, 1fr);
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-pkgf2vdfcp]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    /* Every value — one span, two stacked spans, a pill, a badge beside a date — sits in the
       second column against the right edge. Stacked spans auto-place into successive rows.
       justify-self is required, not just text-align: grid blockifies its items, so the status
       pill would otherwise stretch into a full-width bar instead of hugging its label.
       break-word, not anywhere: anywhere reduces the track's min-content to one character, which
       collapses the track and wraps every value one letter per line. */
    .crm-table tbody td[data-label] > *[b-pkgf2vdfcp] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: break-word;
    }

    .card-head[b-pkgf2vdfcp] {
        display: flex;
        align-items: center;
        gap: .1rem;
    }
    .card-head .lead-name[b-pkgf2vdfcp] { font-size: 1.05rem; }

    .row-actions[b-pkgf2vdfcp] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn + .row-btn[b-pkgf2vdfcp] { margin-left: 0; }
}

/* ---------- Lead modal tabs (Lead / Intake / ARV / Photos) ---------- */
.lead-tabs[b-pkgf2vdfcp] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    border-bottom: 2px solid rgba(var(--crm-rgb31-61-43-line), .12);
    margin-bottom: 1rem;
}
.lead-tab[b-pkgf2vdfcp] {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .45rem .9rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.lead-tab:hover[b-pkgf2vdfcp] { color: var(--crm-forest-text); }
.lead-tab.active[b-pkgf2vdfcp] { color: var(--crm-forest-text); border-bottom-color: var(--crm-gold-line); }
.uw-legend[b-pkgf2vdfcp] { margin-left: auto; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.uw-req[b-pkgf2vdfcp] { color: var(--crm-gold-dark-text); font-weight: 700; }

.uw-note[b-pkgf2vdfcp] { font-size: .9rem; color: var(--crm-c3b3b36-text); }

/* ---------- ARV tab ---------- */
.arv-lede[b-pkgf2vdfcp] { font-size: .88rem; color: var(--crm-c6b6b64-text); margin-bottom: .75rem; }
.arv-lede a[b-pkgf2vdfcp] { color: var(--crm-gold-dark-text); }
.arv-features[b-pkgf2vdfcp] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .15rem 1rem;
    font-size: .9rem;
}
.arv-amount[b-pkgf2vdfcp] { color: var(--crm-c6b6b64-text); font-size: .8rem; font-variant-numeric: tabular-nums; margin-left: .25rem; }
.arv-result[b-pkgf2vdfcp] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    background: rgba(var(--crm-rgb201-162-39-bg), .14);
    margin-bottom: .75rem;
}
.arv-headline[b-pkgf2vdfcp] { display: flex; flex-direction: column; margin-right: auto; }
.arv-headline span[b-pkgf2vdfcp] { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--crm-c6b6b64-text); }
.arv-headline strong[b-pkgf2vdfcp] { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--crm-forest-text); }
.arv-check[b-pkgf2vdfcp] { padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.arv-check-ok[b-pkgf2vdfcp] { background: rgba(var(--crm-rgb31-61-43-bg), .12); color: var(--crm-forest-text); }
.arv-check-warn[b-pkgf2vdfcp] { background: rgba(var(--crm-rgb156-59-44-bg), .15); color: var(--crm-c9c3b2c-text); }
.arv-lines[b-pkgf2vdfcp] { width: 100%; font-size: .88rem; border-collapse: collapse; }
.arv-lines th[b-pkgf2vdfcp] { font-weight: 400; color: var(--crm-c3b3b36-text); padding: .3rem .5rem .3rem 0; }
.arv-lines td[b-pkgf2vdfcp] { text-align: right; font-variant-numeric: tabular-nums; padding: .3rem 0; white-space: nowrap; }
.arv-lines tr + tr[b-pkgf2vdfcp] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.arv-foot[b-pkgf2vdfcp] { font-size: .78rem; color: var(--crm-c6b6b64-text); margin: .5rem 0 0; }

/* ---------- Rehab tab ---------- */
.rehab-scroll[b-pkgf2vdfcp] { overflow-x: auto; }
.rehab-lines[b-pkgf2vdfcp] { width: 100%; min-width: 640px; font-size: .86rem; border-collapse: collapse; }
.rehab-lines thead th[b-pkgf2vdfcp] {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: 0 .4rem .35rem;
    white-space: nowrap;
}
.rehab-lines tbody th[b-pkgf2vdfcp] { font-weight: 600; color: var(--crm-forest-text); padding: .25rem .4rem; white-space: nowrap; }
.rehab-lines td[b-pkgf2vdfcp] { padding: .25rem .4rem; }
.rehab-lines .num[b-pkgf2vdfcp] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rehab-lines tbody tr + tr[b-pkgf2vdfcp] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08); }
.rehab-lines .rehab-off[b-pkgf2vdfcp] { color: var(--crm-c8a8a82-text); }
.rehab-lines .rehab-off th[b-pkgf2vdfcp] { color: var(--crm-c6b6b64-text); font-weight: 400; }
.rehab-lines select[b-pkgf2vdfcp] { min-width: 11rem; }
.rehab-bid[b-pkgf2vdfcp] { width: 6.5rem; }

/* ---------- Buyers tab: the deal's sends (on the rehab-lines table) and the send picker ---------- */
.deal-sends select[b-pkgf2vdfcp] { min-width: 9.5rem; }
.deal-offer[b-pkgf2vdfcp] { width: 7rem; }
.deal-actions[b-pkgf2vdfcp] { text-align: right; white-space: nowrap; }
.deal-actions .row-btn + .row-btn[b-pkgf2vdfcp] { margin-left: .25rem; }
.deal-confirm[b-pkgf2vdfcp] { font-size: .78rem; color: var(--crm-c6b6b64-text); margin-right: .4rem; }
.deal-picker[b-pkgf2vdfcp] {
    display: grid;
    gap: .15rem;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
    border-radius: 8px;
    padding: .35rem .6rem;
}
.deal-pick[b-pkgf2vdfcp] {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem 0;
    font-size: .88rem;
    color: var(--crm-forest-text);
    cursor: pointer;
}
.deal-pick + .deal-pick[b-pkgf2vdfcp] { border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .06); }
.deal-pick input[type="checkbox"][b-pkgf2vdfcp] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    accent-color: var(--crm-green-other);
    cursor: pointer;
}
.deal-pick > span:nth-of-type(1)[b-pkgf2vdfcp] { flex: 1; min-width: 0; }
.deal-pick-sub[b-pkgf2vdfcp] { display: block; font-size: .78rem; color: var(--crm-c6b6b64-text); }

/* Explains what the Follow-ups view includes, under its title. */
.crm-subtitle[b-pkgf2vdfcp] {
    margin: -.5rem 0 1rem;
    max-width: 46rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
}

/* ---------- Photos tab ---------- */
.photo-head[b-pkgf2vdfcp] { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.photo-add[b-pkgf2vdfcp] { cursor: pointer; margin: 0; }
.photo-add.disabled[b-pkgf2vdfcp] { pointer-events: none; opacity: .65; }
.photo-grid[b-pkgf2vdfcp] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.photo-tile[b-pkgf2vdfcp] { margin: 0; }
.photo-tile img[b-pkgf2vdfcp] {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(var(--crm-rgb31-61-43-bg), .06);
}
.photo-tile figcaption[b-pkgf2vdfcp] { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: .3rem; font-size: .78rem; color: var(--crm-c6b6b64-text); }
.photo-tile figcaption .row-btn[b-pkgf2vdfcp] { margin-left: 0; }
@media (max-width: 860px) {
    .photo-grid[b-pkgf2vdfcp] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* /Components/Pages/MyResults.razor.rz.scp.css */
/* Page shell — same container padding and title scale as the other CRM pages. */
.crm[b-2fm9jgpfvp] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-2fm9jgpfvp] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

.res-presets[b-2fm9jgpfvp] {
    display: flex;
    gap: 0.35rem;
    align-items: flex-end;
}

.res-preset[b-2fm9jgpfvp] {
    border: 1px solid var(--crm-cc3c2b7-line);
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
}

.res-preset.active[b-2fm9jgpfvp] {
    background: var(--crm-c1a1a19-bg);
    border-color: var(--crm-c1a1a19-line);
    color: var(--crm-cffffff-text);
    font-weight: 600;
}

.res-tiles[b-2fm9jgpfvp] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
}

.res-tile[b-2fm9jgpfvp] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid rgba(var(--crm-rgb11-11-11-line), 0.10);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.res-label[b-2fm9jgpfvp] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--crm-c898781-text);
}

.res-value[b-2fm9jgpfvp] {
    font-size: 1.7rem;
    font-weight: 650;
    line-height: 1.15;
}

.res-sub[b-2fm9jgpfvp] {
    font-size: 0.82rem;
    color: var(--crm-c52514e-text);
}

.res-empty[b-2fm9jgpfvp] {
    padding: 2.5rem 1.25rem;
    color: var(--crm-c52514e-text);
}
/* /Components/Pages/Network.razor.rz.scp.css */
/* ============================================================
   Network page shell: title and tabs. Each tab's grid carries
   its own styles (Components/Network/).
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-5wndeab6n6] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-5wndeab6n6] {
    font-size: 1.7rem;
    margin: 0 0 .35rem;
}

.crm-lede[b-5wndeab6n6] {
    margin: 0 0 1rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
    max-width: 60ch;
}

/* Same look as the lead form's tabs (Leads.razor.css). */
.network-tabs[b-5wndeab6n6] {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    border-bottom: 2px solid rgba(var(--crm-rgb31-61-43-line), .12);
    margin-bottom: 1rem;
}
.network-tab[b-5wndeab6n6] {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .45rem .9rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: pointer;
}
.network-tab:hover[b-5wndeab6n6] { color: var(--crm-forest-text); }
.network-tab.active[b-5wndeab6n6] { color: var(--crm-forest-text); border-bottom-color: var(--crm-gold-line); }

@media (max-width: 860px) {
    .crm[b-5wndeab6n6] { padding: 1rem 1.25rem 2.5rem; }
}
/* /Components/Pages/Rehab.razor.rz.scp.css */
/* ============================================================
   Rehab rates + bid history page — page-specific styles only (the
   grid rules match the Buyers and ARV pages). Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-9m4xkulzal] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-9m4xkulzal] {
    font-size: 1.7rem;
    margin: 0 0 .35rem;
}

.crm-lede[b-9m4xkulzal] {
    margin: 0 0 1rem;
    font-size: .92rem;
    color: var(--crm-c6b6b64-text);
    max-width: 60ch;
}

/* ---------- Grid ---------- */
.crm-scroll[b-9m4xkulzal] {
    overflow: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-9m4xkulzal] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-9m4xkulzal] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-9m4xkulzal] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-9m4xkulzal] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-9m4xkulzal] { border-bottom: none; }

.cell-main[b-9m4xkulzal] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.cell-sub[b-9m4xkulzal]  { display: block; font-size: .8rem; color: var(--crm-c6b6b64-text); }
.num[b-9m4xkulzal] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- ARV page ---------- */
.crm-card + .crm-card[b-9m4xkulzal] { margin-top: 1.5rem; }
.crm-table thead th[b-9m4xkulzal] {
    text-align: left;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-green-text);
    padding: .6rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
}
.crm-table thead th.num[b-9m4xkulzal] { text-align: right; }
.arv-card-title[b-9m4xkulzal] { font-size: 1.1rem; margin: 0 auto 0 0; align-self: center; }
.arv-body[b-9m4xkulzal] { padding: 1rem 1.25rem 1.25rem; }
.arv-body .crm-table tbody td[b-9m4xkulzal] { padding: .4rem 1rem; }
.arv-help[b-9m4xkulzal] { display: block; font-size: .78rem; color: var(--crm-c6b6b64-text); margin: .3rem 0 .6rem; }
.arv-scroll-short[b-9m4xkulzal] { min-height: 0; max-height: none; }
.arv-input-zip[b-9m4xkulzal] { width: 6rem; }
.arv-input-num[b-9m4xkulzal] { width: 8rem; }
.rehab-ratio[b-9m4xkulzal] { font-size: 1.4rem; color: var(--crm-forest-text); font-variant-numeric: tabular-nums; }
.rehab-averages[b-9m4xkulzal] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .5rem .9rem;
}
.rehab-averages > div[b-9m4xkulzal] {
    display: flex;
    flex-direction: column;
    padding: .4rem .6rem;
    background: rgba(var(--crm-rgb239-233-220-bg), .35);
    border-radius: 6px;
}
.rehab-averages span[b-9m4xkulzal] { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--crm-c6b6b64-text); }
.rehab-averages strong[b-9m4xkulzal] { font-variant-numeric: tabular-nums; }
.rehab-averages small[b-9m4xkulzal] { font-size: .72rem; color: var(--crm-c6b6b64-text); }
.arv-saved[b-9m4xkulzal] {
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    background: rgba(var(--crm-rgb31-61-43-bg), .1);
    color: var(--crm-forest-text);
    font-size: .9rem;
}

/* ---------- Modal checkbox rows ---------- */
.form-checks[b-9m4xkulzal] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    padding: .2rem 0 .1rem;
}
.form-check[b-9m4xkulzal] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--crm-forest-text);
    cursor: pointer;
}
.form-check input[type="checkbox"][b-9m4xkulzal] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--crm-green-other);
    cursor: pointer;
}

/* ---------- Row action buttons ---------- */
.row-actions[b-9m4xkulzal] { text-align: right; white-space: nowrap; }
.row-btn[b-9m4xkulzal] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-9m4xkulzal] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-9m4xkulzal] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-9m4xkulzal] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-9m4xkulzal] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-9m4xkulzal] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-9m4xkulzal] { padding: 1rem 1.25rem 2.5rem; }

    .crm-scroll[b-9m4xkulzal] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-9m4xkulzal],
    .crm-table tbody[b-9m4xkulzal] { display: block; }
    .crm-table thead[b-9m4xkulzal] { display: none; }

    .crm-table tbody tr[b-9m4xkulzal] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-9m4xkulzal] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-9m4xkulzal] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-9m4xkulzal] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-9m4xkulzal] {
        display: grid;
        grid-template-columns: 104px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-9m4xkulzal]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-9m4xkulzal] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-9m4xkulzal] { display: block; }

    .row-actions[b-9m4xkulzal] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-9m4xkulzal] { margin-left: 0; }
}
/* /Components/Pages/Spend.razor.rz.scp.css */
/* ============================================================
   Spend page — page-specific styles only. Title, container and
   grid rhythm match the System Health page.
   ============================================================ */

.crm[b-on09ogoctu] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-on09ogoctu] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Month picker in the toolbar ---------- */
.month-nav[b-on09ogoctu] {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.month-nav button[b-on09ogoctu] { min-width: 2.4rem; }
.month-label[b-on09ogoctu] {
    font-weight: 600;
    color: var(--crm-forest-text);
    min-width: 9.5rem;
    text-align: center;
}

/* ---------- Service grid ---------- */
.spend-section[b-on09ogoctu] { padding-bottom: .4rem; }

.spend-grid[b-on09ogoctu] {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 110px minmax(200px, 2fr) 150px;
    column-gap: 1rem;
    align-items: center;
    padding: 0 1.25rem;
}

.spend-grid-head span[b-on09ogoctu] {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-forest-text);
    padding: .6rem 0;
    border-bottom: 2px solid var(--crm-gold-line);
    white-space: nowrap;
}

/* Each row is a button: it opens that service's entries below. */
.spend-row[b-on09ogoctu] {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    padding-top: .85rem;
    padding-bottom: .85rem;
    cursor: pointer;
    transition: background .12s ease;
}
.spend-row:hover[b-on09ogoctu] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.spend-row.selected[b-on09ogoctu] { background: rgba(var(--crm-rgb239-233-220-bg), .8); box-shadow: inset 3px 0 0 var(--crm-gold-shadow); }

.s-name[b-on09ogoctu] { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.s-label[b-on09ogoctu] { font-weight: 600; color: var(--crm-forest-text); }
.s-sub[b-on09ogoctu] { font-size: .8rem; color: var(--crm-c6b6b64-text); }
.s-spent[b-on09ogoctu] { font-weight: 600; font-size: 1.05rem; color: var(--crm-forest-text); }
.s-cap[b-on09ogoctu] { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

/* ---------- Cap bar: green, amber from 80%, red at the cap ---------- */
.bar[b-on09ogoctu] {
    display: block;
    height: .55rem;
    border-radius: 999px;
    background: rgba(var(--crm-rgb31-61-43-bg), .10);
    overflow: hidden;
}
.bar-fill[b-on09ogoctu] { display: block; height: 100%; border-radius: 999px; }
.bar-ok[b-on09ogoctu]   { background: var(--crm-green-bg); }
.bar-warn[b-on09ogoctu] { background: var(--crm-cc9a227-bg); }
.bar-over[b-on09ogoctu] { background: var(--crm-c9c3b2c-bg); }

/* ---------- Six-month trend ---------- */
.trend[b-on09ogoctu] {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 2rem;
}
.trend-bar[b-on09ogoctu] {
    flex: 1;
    min-width: 6px;
    border-radius: 2px 2px 0 0;
    background: rgba(var(--crm-rgb58-107-76-bg), .45);
}
.trend-bar:last-child[b-on09ogoctu] { background: var(--crm-green-bg); }

/* ---------- Phone: one card per service ---------- */
@media (max-width: 760px) {
    .crm[b-on09ogoctu] { padding: 1rem 1.25rem 2.5rem; }
    .spend-grid-head[b-on09ogoctu] { display: none; }
    .spend-grid[b-on09ogoctu] {
        grid-template-columns: 1fr auto;
        row-gap: .5rem;
        padding: 0 1rem;
    }
    .spend-row[b-on09ogoctu] { padding-top: .9rem; padding-bottom: .9rem; }
    .s-cap[b-on09ogoctu], .trend[b-on09ogoctu] { grid-column: 1 / -1; }
    .month-label[b-on09ogoctu] { min-width: 0; }
}
/* /Components/Pages/Users.razor.rz.scp.css */
/* ============================================================
   Users CRM page — page-specific styles only. Shared CRM
   styling (card, toolbar, fields, modals, sort headers, alert,
   pills) lives with the components in Components/Crm/ + app.css.
   ============================================================ */

/* Padding shorthand overrides .container's side padding (scoped selector wins
   specificity), so the 1.5rem sides must be restated here. */
.crm[b-84oa5swomr] {
    padding: 1.6rem 1.5rem 4rem;
}

.crm-title[b-84oa5swomr] {
    font-size: 1.7rem;
    margin: 0 0 1rem;
}

/* ---------- Grid ---------- */
.crm-scroll[b-84oa5swomr] {
    overflow: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-84oa5swomr] {
    width: 100%;
    /* separate, not collapse: collapsed borders don't stick with the sticky header */
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table tbody td[b-84oa5swomr] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-84oa5swomr] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-84oa5swomr] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-84oa5swomr] { border-bottom: none; }

.cell-main[b-84oa5swomr] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }

/* ---------- Row action buttons ---------- */
.row-actions[b-84oa5swomr] { text-align: right; white-space: nowrap; }
.row-btn[b-84oa5swomr] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb58-107-76-line), .55);
    color: var(--crm-green-text);
    transition: all .15s ease;
}
.row-btn:hover[b-84oa5swomr] { background: var(--crm-green-bg); color: var(--crm-cffffff-text); }
.row-btn.danger[b-84oa5swomr] {
    margin-left: .4rem;
    border-color: rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
}
.row-btn.danger:hover[b-84oa5swomr] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* Marker on the signed-in admin's own row, in place of Edit/Delete. */
.row-you[b-84oa5swomr] {
    display: inline-block;
    padding: .3rem .95rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--crm-c6b6b64-text);
    cursor: default;
}

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-84oa5swomr] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--crm-c6b6b64-text);
    font-size: .95rem;
}
.crm-empty .big[b-84oa5swomr] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--crm-forest-text);
    margin-bottom: .3rem;
}

/* ============================================================
   Mobile (≤860px, the site's breakpoint): the table becomes a
   stack of cards. Desktop rendering above is untouched.
   ============================================================ */
@media (max-width: 860px) {
    .crm[b-84oa5swomr] { padding: 1rem 1.25rem 2.5rem; }

    .crm-scroll[b-84oa5swomr] {
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .crm-table[b-84oa5swomr],
    .crm-table tbody[b-84oa5swomr] { display: block; }
    .crm-table thead[b-84oa5swomr] { display: none; }

    .crm-table tbody tr[b-84oa5swomr] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-84oa5swomr] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-84oa5swomr] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
    }
    .crm-table tbody td:last-child[b-84oa5swomr] { border-bottom: none; }

    /* Labeled "field: value" rows, label from data-label. */
    .crm-table tbody td[data-label][b-84oa5swomr] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-84oa5swomr]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
        text-align: left;
    }
    .crm-table tbody td[data-label] > *[b-84oa5swomr] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-head[b-84oa5swomr] { display: flex; align-items: center; }

    .row-actions[b-84oa5swomr] {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        padding-top: .65rem;
    }
    .row-btn.danger[b-84oa5swomr] { margin-left: 0; }
}
/* /Components/Spend/SpendUsageTable.razor.rz.scp.css */
/* Drill-down under the spend summary. Table styling mirrors the Users grid. */

.usage h2[b-x59dtzbtnn] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-secondary, var(--crm-c52514e-text));
    margin: 0;
    padding: 1.4rem 1.25rem .35rem;
    border-top: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
}

.usage-empty[b-x59dtzbtnn] {
    margin: 0;
    padding: .6rem 1.25rem 1.2rem;
    color: var(--crm-c6b6b64-text);
}

.crm-table[b-x59dtzbtnn] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}
.crm-table thead th[b-x59dtzbtnn] {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--crm-forest-text);
    padding: .6rem 1rem;
    border-bottom: 2px solid var(--crm-gold-line);
    white-space: nowrap;
    text-align: left;
}
.crm-table tbody td[b-x59dtzbtnn] {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-x59dtzbtnn] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-x59dtzbtnn] { background: rgba(var(--crm-rgb239-233-220-bg), .45); }
.crm-table tbody tr:last-child td[b-x59dtzbtnn] { border-bottom: none; }
.crm-table .num[b-x59dtzbtnn] { text-align: right; white-space: nowrap; }
.crm-table thead th.num[b-x59dtzbtnn] { text-align: right; }

.cell-main[b-x59dtzbtnn] { display: block; font-size: .9rem; font-weight: 600; color: var(--crm-forest-text); }
.note[b-x59dtzbtnn] { font-size: .85rem; color: var(--crm-c6b6b64-text); overflow-wrap: anywhere; }

.row-actions[b-x59dtzbtnn] { text-align: right; white-space: nowrap; }
.row-btn[b-x59dtzbtnn] {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid rgba(var(--crm-rgb156-59-44-line), .50);
    color: var(--crm-c9c3b2c-text);
    transition: all .15s ease;
}
.row-btn:hover[b-x59dtzbtnn] { background: var(--crm-c9c3b2c-bg); color: var(--crm-cffffff-text); }

/* Phone: one card per entry, labels from data-label (as on the Users grid). */
@media (max-width: 860px) {
    .crm-table[b-x59dtzbtnn],
    .crm-table tbody[b-x59dtzbtnn] { display: block; }
    .crm-table thead[b-x59dtzbtnn] { display: none; }

    .crm-table tbody tr[b-x59dtzbtnn] {
        display: block;
        margin: .8rem;
        border: 1px solid rgba(var(--crm-rgb31-61-43-line), .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: var(--crm-cffffff-bg);
    }
    .crm-table tbody tr:hover[b-x59dtzbtnn] { background: var(--crm-cffffff-bg); }

    .crm-table tbody td[b-x59dtzbtnn] {
        display: block;
        border-bottom: 1px solid rgba(var(--crm-rgb31-61-43-line), .06);
        padding: .55rem 0;
        text-align: left;
    }
    .crm-table tbody td:last-child[b-x59dtzbtnn] { border-bottom: none; }

    .crm-table tbody td[data-label][b-x59dtzbtnn] {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: .8rem;
        align-items: baseline;
    }
    .crm-table tbody td[data-label][b-x59dtzbtnn]::before {
        content: attr(data-label);
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--crm-green-text);
    }
    .crm-table tbody td[data-label] > *[b-x59dtzbtnn] {
        justify-self: end;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .row-actions[b-x59dtzbtnn] { display: flex; justify-content: flex-end; padding-top: .65rem; }
    .usage h2[b-x59dtzbtnn] { padding: 1rem 1rem .35rem; }
    .usage-empty[b-x59dtzbtnn] { padding: .6rem 1rem 1rem; }
}
