/* /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;
}

.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;
    }
}
/* /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); }
.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/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: auto;
    max-height: calc(100dvh - 320px);
    min-height: 320px;
}
.crm-table[b-pkgf2vdfcp] {
    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-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-main[b-pkgf2vdfcp] { display: block; font-size: .9rem; }
.cell-sub[b-pkgf2vdfcp]  { display: block; font-size: .8rem; color: #6B6B64; }
.cell-muted[b-pkgf2vdfcp] { 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;
}

/* 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 ---------- */
.row-actions[b-pkgf2vdfcp] { text-align: right; white-space: nowrap; }
.row-btn[b-pkgf2vdfcp] {
    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-pkgf2vdfcp] { background: var(--green-600); color: #fff; }
.row-btn + .row-btn[b-pkgf2vdfcp] { margin-left: .4rem; }
.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; }

    .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. */
    .crm-table tbody td[data-label][b-pkgf2vdfcp] {
        display: grid;
        grid-template-columns: 92px 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);
        /* .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-pkgf2vdfcp] {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    .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/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; }
}
