/* =====================================================================
   Leads list — iOS 26 "Liquid Glass"
   ---------------------------------------------------------------------
   The leads list page (app/Views/leads/index.php) dressed in the app's
   own iOS 26 vocabulary. Nothing here is a new component: the tab bars,
   the card and the buttons are the platform's, restyled only where this
   page adds something of its own —

     .nz-leads-hero       the large plain title + one line of help, with
                          the running lead total on the right
     .nz-leads-statusbar  the lead-status filter strip that sits at the
                          top of the table card. It is a standard
                          `ul.nav.nav-tabs`, so it inherits the capsule
                          skin from assets/scss/_tabs.scss and the
                          sliding selection from assets/js/ios26-tabs.js;
                          this file only gives it its own row, hairline
                          and the status dot / count pill.

   Scoped to `.nz-leads26` (set on #page-content in that view) so it
   cannot reach the kanban board, the lead detail page or any other list.

   Every colour comes from the shared --ios26-* tokens declared in
   app.all.css, which the dark theme (body.color-1E202D) re-declares, so
   dark mode needs no duplicated rules here. The few exceptions carry a
   `body.color-1E202D` prefix + !important, because assets/css/color/
   1E202D.css is injected at RUNTIME and wins every tie (see
   .claude/rules/frontend-ui.md).
   ===================================================================== */

/* ------------------------------------------------------------- hero --- */

.nz-leads26 .nz-leads-hero {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 4px 4px 18px;
}

.nz-leads26 .nz-leads-hero-text {
    min-width: 0;
}

.nz-leads26 .nz-leads-hero h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ios26-text);
}

.nz-leads26 .nz-leads-hero p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ios26-muted);
}

/* the running total, as an iOS "glass" readout */
.nz-leads26 .nz-leads-hero-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 8px 18px;
    border: 1px solid var(--ios26-edge);
    border-radius: var(--ios26-radius);
    background: var(--ios26-surface);
    -webkit-backdrop-filter: var(--ios26-blur-sm);
    backdrop-filter: var(--ios26-blur-sm);
    box-shadow: var(--ios26-inset), var(--ios26-shadow-1);
}

.nz-leads26 .nz-leads-hero-total-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ios26-text);
}

.nz-leads26 .nz-leads-hero-total-label {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ios26-muted);
}

/* ------------------------------------------------- the action buttons --- */

/* `.icon-16` only sets width/height — that sizes a Feather <svg>, but an
   FA <i> is a font and needs a font-size. */
.nz-leads26 .title-button-group i[class*="fa-"] {
    font-size: 15px;
    line-height: 1;
    vertical-align: -1px;
}

/* ------------------------------------------------ status filter strip --- */

.nz-leads26 .nz-leads-statusbar {
    padding: 10px 12px 9px;
    border-bottom: 1px solid var(--ios26-hairline);
}

.nz-leads26 .nz-leads-statusbar .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.nz-leads26 .nz-leads-statusbar .nav-tabs li {
    float: none;
    flex: 0 0 auto;
}

.nz-leads26 .nz-leads-statusbar .nav-tabs li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 13px;
}

/* the status's own colour, as the iOS list dot */
.nz-leads26 .nz-lead-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nz-leads26 .nz-lead-count {
    flex: 0 0 auto;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: var(--ios26-pill);
    background: var(--ios26-fill);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: var(--ios26-muted);
}

.nz-leads26 .nz-leads-statusbar .nav-tabs li a.active .nz-lead-count {
    background: var(--ios26-accent-soft);
    color: var(--ios26-accent-strong);
}

/* --------------------------------------------------------- dark theme --- */

/* 1E202D.css repaints the card and its children after this file loads. */
body.color-1E202D .nz-leads26 .nz-leads-statusbar {
    border-bottom-color: var(--ios26-hairline) !important;
}

body.color-1E202D .nz-leads26 .nz-lead-dot {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

body.color-1E202D .nz-leads26 .nz-lead-count {
    color: var(--ios26-muted) !important;
}

body.color-1E202D .nz-leads26 .nz-leads-statusbar .nav-tabs li a.active .nz-lead-count {
    color: var(--ios26-text) !important;
}

/* -------------------------------------------------------- small screens --- */

@media (max-width: 767px) {
    .nz-leads26 .nz-leads-hero {
        align-items: flex-start;
        gap: 12px;
        padding: 2px 2px 14px;
    }

    .nz-leads26 .nz-leads-hero h1 {
        font-size: 24px;
    }

    .nz-leads26 .nz-leads-hero p {
        font-size: 13px;
    }

    .nz-leads26 .nz-leads-hero-total {
        padding: 6px 12px;
    }

    .nz-leads26 .nz-leads-hero-total-value {
        font-size: 19px;
    }

    .nz-leads26 .nz-leads-statusbar {
        padding: 8px 8px 7px;
    }
}
