/* /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(11, 11, 11, 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(11, 11, 11, 0.25);
    border-right: 1px solid rgba(11, 11, 11, 0.25);
    transform: translateY(-50%) rotate(45deg);
    background: #fff;
}

.funnel-step:last-child[b-n0vy4oxw8g] {
    background: #1a1a19;
    border-color: #1a1a19;
    color: #fff;
}

.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(255, 255, 255, 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: #fdecc8;
    color: #8a5a00;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.status-closed[b-n0vy4oxw8g] { color: #1b7a48; font-weight: 600; }
.status-deal[b-n0vy4oxw8g] { color: #8a5a00; 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(156, 59, 44, .08);
    border: 1px solid rgba(156, 59, 44, .30);
    color: #7F2F22;
    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: #fff;
    border: 1px solid rgba(31, 61, 43, .10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.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(239, 233, 220, .55), rgba(239, 233, 220, .25));
    border-bottom: 1px solid rgba(31, 61, 43, .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: #fff;
    border: 1.5px solid rgba(58, 107, 76, .55);
    color: var(--green-600);
    transition: all .15s ease;
}
.crm-toolbar[b-e8gnbkmt6x]  .crm-secondary:hover {
    background: var(--green-600);
    color: #fff;
    transform: translateY(-1px);
}

.crm-count[b-e8gnbkmt6x] {
    padding: .7rem 1.25rem;
    font-size: .82rem;
    color: #6B6B64;
    background: rgba(239, 233, 220, .35);
    border-top: 1px solid rgba(31, 61, 43, .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 becomes a full-width row of equal buttons. */
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions {
        width: 100%;
        margin-left: 0;
    }
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions > * { flex: 1; }
    .crm-toolbar[b-e8gnbkmt6x]  .crm-actions .crm-new { width: auto; }
}
/* /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(--green-600);
}
/* 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(--ink);
    background: #fff;
    border: 1px solid rgba(31, 61, 43, .25);
    border-radius: 8px;
    padding: .48rem .65rem;
}
.crm-field[b-9hmnz3djny]  input:focus,
.crm-field[b-9hmnz3djny]  select:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(58, 107, 76, .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(58, 107, 76, .18);
    border-top-color: var(--gold);
    animation: crm-spin-b-4cxuis3ohc .8s linear infinite;
}

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

@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(31, 61, 43, .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(31, 61, 43, .10);
    background: rgba(239, 233, 220, .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(--gold-dark);
    border-bottom: 1px solid rgba(31, 61, 43, .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(--green-900);
    margin-bottom: .25rem;
}
.crm-modal[b-v5abbqfikb]  .form-control,
.crm-modal[b-v5abbqfikb]  .form-select {
    border: 1px solid rgba(31, 61, 43, .25);
    border-radius: 8px;
    color: var(--ink);
}
.crm-modal[b-v5abbqfikb]  .form-control:focus,
.crm-modal[b-v5abbqfikb]  .form-select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(58, 107, 76, .15);
}
.crm-modal[b-v5abbqfikb]  .invalid { border-color: #9C3B2C; }
.crm-modal[b-v5abbqfikb]  .validation-message,
.crm-modal[b-v5abbqfikb]  .validation-errors {
    color: #9C3B2C;
    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(31, 61, 43, .30);
    color: var(--green-900);
    cursor: pointer;
    transition: all .15s ease;
}
.crm-modal[b-v5abbqfikb]  .btn-quiet:hover { background: rgba(31, 61, 43, .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: #9C3B2C;
    color: #fff;
    transition: background .15s ease;
}
.crm-modal[b-v5abbqfikb]  .btn-brick:hover { background: #7F2F22; }
/* /Components/Crm/CrmModalHeader.razor.rz.scp.css */
.modal-header[b-2pjbj5fneo] {
    background: var(--green-900);
    border-bottom: 3px solid var(--gold);
    padding: 1rem 1.4rem;
}
.modal-title[b-2pjbj5fneo] {
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    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: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-900);
    padding: .8rem 1rem;
    border-bottom: 2px solid var(--gold);
    text-align: left;
    white-space: nowrap;
    user-select: none;
}
th.sortable[b-8ejx82dpbv] { cursor: pointer; }
th.sortable:hover[b-8ejx82dpbv] { color: var(--gold-dark); }
th.num[b-8ejx82dpbv] { text-align: right; }

.sort-ind[b-8ejx82dpbv] {
    color: var(--gold-dark);
    margin-left: .3rem;
    font-size: .6rem;
    vertical-align: middle;
}
/* /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(58, 107, 76, .10);
    border: 1px solid rgba(58, 107, 76, .35);
    color: var(--green-900);
    font-size: .9rem;
}
.scope-chip button[b-ee7ltc1owx] {
    background: none;
    border: none;
    color: var(--green-600);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    padding: 0;
}
.scope-chip button:hover[b-ee7ltc1owx] { color: var(--gold-dark); }

/* ---------- 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(31, 61, 43, .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-ee7ltc1owx] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-ee7ltc1owx] { background: rgba(239, 233, 220, .45); }
.crm-table tbody tr:last-child td[b-ee7ltc1owx] { border-bottom: none; }

.activity-date[b-ee7ltc1owx] { font-weight: 600; color: var(--green-900); white-space: nowrap; }
.cell-main[b-ee7ltc1owx] { display: block; font-size: .9rem; }
.cell-sub[b-ee7ltc1owx]  { display: block; font-size: .8rem; color: #6B6B64; }
.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: #6B6B64;
}

/* ---------- 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(58, 107, 76, .55);
    color: var(--green-600);
    transition: all .15s ease;
}
.row-btn:hover[b-ee7ltc1owx] { background: var(--green-600); color: #fff; }
.row-btn.danger[b-ee7ltc1owx] {
    margin-left: .4rem;
    border-color: rgba(156, 59, 44, .50);
    color: #9C3B2C;
}
.row-btn.danger:hover[b-ee7ltc1owx] { background: #9C3B2C; color: #fff; }

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-ee7ltc1owx] {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B6B64;
    font-size: .95rem;
}
.crm-empty .big[b-ee7ltc1owx] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--green-900);
    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(31, 61, 43, .25);
    background: #fff;
    color: var(--gold-dark);
    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(31, 61, 43, .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: #fff;
    }
    .crm-table tbody tr:hover[b-ee7ltc1owx] { background: #fff; }
    /* 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(31, 61, 43, .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(--green-600);
        /* .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/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;
}

/* 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, #c3c2b7);
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
}

.kpi-preset.active[b-57cfiv0kn0] {
    background: #1a1a19;
    border-color: #1a1a19;
    color: #fff;
    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(11, 11, 11, 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, #898781);
}

.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, #52514e);
}

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

/* ---------- 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: #fff;
    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: #fff;
    stroke: rgba(11, 11, 11, 0.15);
    filter: drop-shadow(0 1px 3px rgba(11, 11, 11, 0.15));
}

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

.kpi-tooltip .tip-title[b-57cfiv0kn0] {
    fill: #0b0b0b;
    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, #52514e);
}

.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, #e1e0d9);
}

.kpi-note[b-57cfiv0kn0] {
    font-size: 0.85rem;
    color: var(--ink-secondary, #52514e);
    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: #1b7a48; font-weight: 600; }
.kpi-status-deal[b-57cfiv0kn0] { color: #8a5a00; font-weight: 600; }
.kpi-status-working[b-57cfiv0kn0] { color: var(--ink-secondary, #52514e); }
.kpi-status-dead[b-57cfiv0kn0] { color: var(--ink-muted, #898781); }

.kpi-overdue[b-57cfiv0kn0] {
    color: #b42318;
}

.kpi-tile-warn[b-57cfiv0kn0] {
    border-color: #f0c36d;
    background: #fff8e8;
}
/* /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: #6B6B64;
}

.crm-back[b-u1n8sc54v0] {
    flex: 0 0 auto;
    padding-top: .4rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--green-600);
    text-decoration: none;
    white-space: nowrap;
}
.crm-back:hover[b-u1n8sc54v0] { color: var(--green-900); 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(58, 107, 76, .45);
    border-radius: 12px;
    background: rgba(239, 233, 220, .35);
    font-size: .9rem;
    color: #6B6B64;
    cursor: pointer;
}
.file-field[b-u1n8sc54v0]  input[type="file"]:hover {
    border-color: var(--green-600);
    background: rgba(239, 233, 220, .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(--gold);
    color: var(--ink);
    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(--gold-dark);
    color: #fff;
}

/* ---------- 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: #6B6B64;
}

/* ---------- Mapping ---------- */
.form-hint[b-u1n8sc54v0] {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    color: #6B6B64;
}

.import-group[b-u1n8sc54v0] {
    padding: .3rem 0 1rem;
    border-bottom: 1px solid rgba(31, 61, 43, .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(--green-600);
}

.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: #6B6B64;
    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(--green-900);
}

/* ---------- 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(--green-600);
}
.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: #6B6B64;
    cursor: pointer;
}
.btn-quiet:hover[b-u1n8sc54v0] { color: var(--green-900); }
.btn-quiet.danger[b-u1n8sc54v0] { color: #9C3B2C; }

/* ---------- 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(--green-600);
    border-bottom: 1px solid rgba(31, 61, 43, .12);
    white-space: nowrap;
}
.crm-table tbody td[b-u1n8sc54v0] {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(31, 61, 43, .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: #6B6B64;
}

.crm-empty[b-u1n8sc54v0] {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6B6B64;
    font-size: .95rem;
}
.crm-empty .big[b-u1n8sc54v0] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--green-900);
    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(31, 61, 43, .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        background: #fff;
    }

    .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(--green-600);
    }
}
/* /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: 13%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(2) { width: 13%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(3) { width: 9%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(4) { width: 13%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(5) { width: 9%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(6) { width: 7%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(7) { width: 12%; }
.crm-table[b-pkgf2vdfcp]  th:nth-child(8) { width: 24%; }

/* 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: 14%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(2) { width: 14%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(3) { width: 10%; }
    .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: 12%; }
    .crm-table[b-pkgf2vdfcp]  th:nth-child(8) { width: 28%; }
}

.crm-table tbody td[b-pkgf2vdfcp] {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(31, 61, 43, .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-pkgf2vdfcp] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-pkgf2vdfcp] { background: rgba(239, 233, 220, .45); }
.crm-table tbody tr:last-child td[b-pkgf2vdfcp] { border-bottom: none; }

.lead-name[b-pkgf2vdfcp] { font-weight: 600; color: var(--green-900); }
.cell-muted[b-pkgf2vdfcp] { color: #6B6B64; }

/* 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;
}
.cell-main[b-pkgf2vdfcp] { font-size: .9rem; }
.cell-sub[b-pkgf2vdfcp]  { font-size: .8rem; color: #6B6B64; }
.num[b-pkgf2vdfcp] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.overdue[b-pkgf2vdfcp] { color: #9C3B2C; 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(156, 59, 44, .12);
    color: #9C3B2C;
    border: 1px solid rgba(156, 59, 44, .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(176, 122, 15, .14);
    color: #8A6110;
    border: 1px solid rgba(176, 122, 15, .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(156, 59, 44, .12);
    color: #9C3B2C;
    border: 1px solid rgba(156, 59, 44, .35);
    vertical-align: middle;
}

/* ---------- 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(58, 107, 76, .55);
    color: var(--green-600);
    transition: all .15s ease;
}
.row-btn:hover[b-pkgf2vdfcp] { background: var(--green-600); color: #fff; }
/* 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(156, 59, 44, .50);
    color: #9C3B2C;
}
.row-btn.danger:hover[b-pkgf2vdfcp] { background: #9C3B2C; color: #fff; }

/* ---------- Empty / loading state ---------- */
.crm-empty[b-pkgf2vdfcp] {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B6B64;
    font-size: .95rem;
}
.crm-empty .big[b-pkgf2vdfcp] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--green-900);
    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(31, 61, 43, .25);
    background: #fff;
    color: var(--gold-dark);
    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(31, 61, 43, .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: #fff;
    }
    .crm-table tbody tr:hover[b-pkgf2vdfcp] { background: #fff; }
    /* 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(31, 61, 43, .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(--green-600);
        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; }
}
/* /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 #c3c2b7;
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
}

.res-preset.active[b-2fm9jgpfvp] {
    background: #1a1a19;
    border-color: #1a1a19;
    color: #fff;
    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(11, 11, 11, 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: #898781;
}

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

.res-sub[b-2fm9jgpfvp] {
    font-size: 0.82rem;
    color: #52514e;
}

.res-empty[b-2fm9jgpfvp] {
    padding: 2.5rem 1.25rem;
    color: #52514e;
}
/* /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(31, 61, 43, .08);
    vertical-align: middle;
}
.crm-table tbody tr[b-84oa5swomr] { transition: background .12s ease; }
.crm-table tbody tr:hover[b-84oa5swomr] { background: rgba(239, 233, 220, .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(--green-900); }

/* ---------- 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(58, 107, 76, .55);
    color: var(--green-600);
    transition: all .15s ease;
}
.row-btn:hover[b-84oa5swomr] { background: var(--green-600); color: #fff; }
.row-btn.danger[b-84oa5swomr] {
    margin-left: .4rem;
    border-color: rgba(156, 59, 44, .50);
    color: #9C3B2C;
}
.row-btn.danger:hover[b-84oa5swomr] { background: #9C3B2C; color: #fff; }

/* 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: #6B6B64;
    cursor: default;
}

/* ---------- Footer count + empty state ---------- */
.crm-empty[b-84oa5swomr] {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B6B64;
    font-size: .95rem;
}
.crm-empty .big[b-84oa5swomr] {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--green-900);
    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(31, 61, 43, .12);
        border-radius: 12px;
        padding: .2rem .95rem;
        box-shadow: var(--shadow-sm);
        background: #fff;
    }
    .crm-table tbody tr:hover[b-84oa5swomr] { background: #fff; }

    .crm-table tbody td[b-84oa5swomr] {
        display: block;
        border-bottom: 1px solid rgba(31, 61, 43, .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(--green-600);
        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; }
}
