/*
 * Ensure Labs panel portal - professional theme.
 * Loaded last (after portal.css and app.css) on every signed-in page and on
 * the sign-in page. Same blues as ensurelabs.in: navy #1c4b96, deep #0d2a57,
 * sky #48a8d8. Type: Inter, with the system stack as fallback.
 */

:root {
    --t-navy: #1c4b96;
    --t-navy-600: #163f80;
    --t-deep: #0d2a57;
    --t-ink: #0f1d33;
    --t-sky: #48a8d8;
    --t-sky-50: #eef7fc;
    --t-tint: #eef3fb;
    --t-bg: #f4f6fb;
    --t-card: #ffffff;
    --t-line: #e4e9f2;
    --t-line-2: #d5deea;
    --t-text: #1e293b;
    --t-muted: #64748b;
    --t-soft: #94a3b8;
    --t-green: #15803d;
    --t-green-50: #ecfdf3;
    --t-red: #b42318;
    --t-red-50: #fef3f2;
    --t-amber: #b45309;
    --t-amber-50: #fffaeb;
    --t-purple: #6d28d9;
    --t-radius: 14px;
    --t-radius-sm: 10px;
    --t-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(13, 42, 87, 0.05);
    --t-shadow-lg: 0 12px 32px rgba(13, 42, 87, 0.12);
    --t-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ================================================================ base */

body.el-app,
body.el-auth {
    font-family: var(--t-font);
    color: var(--t-text);
    background: var(--t-bg);
    font-size: 15px;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
}

.el-app a {
    color: var(--t-navy);
}

.el-app h1,
.el-app h2,
.el-app h3 {
    letter-spacing: -0.02em;
}

/* ================================================================ sidebar */

.el-app .el-side {
    width: 264px;
    padding: 18px 14px 16px;
    gap: 14px;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(72, 168, 216, 0.16) 0%, rgba(72, 168, 216, 0) 60%),
        linear-gradient(180deg, #0b2450 0%, #0f2f63 55%, #133a78 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.el-app .el-side__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.el-app .el-side__logo {
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: none;
}

.el-app .el-side__logo img {
    height: 30px;
}

.el-app .el-side__portal {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #a9d4f0;
}

.el-app .el-side__nav {
    gap: 2px;
}

.el-side__group {
    margin: 14px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(219, 230, 247, 0.5);
}

.el-side__group:first-child {
    margin-top: 6px;
}

.el-app .el-side__link {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(226, 235, 250, 0.82);
}

.el-app .el-side__link svg {
    width: 19px;
    height: 19px;
    opacity: 0.9;
}

.el-app .el-side__link:hover,
.el-app .el-side__link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.el-app .el-side__link.is-on {
    background: rgba(72, 168, 216, 0.16);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.el-app .el-side__link.is-on::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--t-sky);
}

.el-app .el-side__link.is-on svg {
    color: #9fd0ee;
}

.el-app .el-side__foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

.el-side__card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.el-side__card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(219, 230, 247, 0.55);
    font-weight: 600;
}

.el-app .el-side__panel-name {
    font-size: 14px;
}

.el-app .el-side__panel-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: #9fd0ee;
}

.el-app .el-side__link--out {
    color: #ffc9c9;
}

/* ================================================================ top bar */

.el-app .el-app__main {
    margin-left: 264px;
    /* A flex child defaults to min-width: auto, which lets a wide table push
       the whole page sideways on a phone. With 0 the table scrolls inside
       its own .el-table-wrap instead. */
    min-width: 0;
}

/* Screen-reader-only labels inside a scrolling table are absolutely
   positioned; anchor them to the wrap so they cannot widen the page. */
.el-app .el-table-wrap {
    position: relative;
}

.el-app .el-app__content,
.el-app .el-card,
.el-app .el-split > *,
.el-dash > * {
    min-width: 0;
}

.el-app .el-top {
    min-height: 68px;
    padding: 12px 28px;
    gap: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--t-line);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.el-app .el-top__title {
    flex: 0 1 auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--t-ink);
}

.el-top__search {
    flex: 1;
    max-width: 420px;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
}

.el-top__search svg {
    position: absolute;
    left: 12px;
    width: 17px;
    height: 17px;
    color: var(--t-soft);
    pointer-events: none;
}

.el-top__search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--t-line);
    border-radius: 10px;
    background: #f8fafc;
    font: inherit;
    font-size: 14px;
    color: var(--t-text);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.el-top__search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--t-sky);
    box-shadow: 0 0 0 3px rgba(72, 168, 216, 0.2);
}

.el-app .el-top__who {
    gap: 12px;
}

.el-app .el-top__balance {
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid var(--t-line);
    background: #fff;
    align-items: flex-end;
}

.el-app .el-top__balance--ok { background: var(--t-green-50); border-color: #c6f0d6; }
.el-app .el-top__balance--due { background: var(--t-red-50); border-color: #fbd5d1; }

.el-app .el-top__balance-label {
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

.el-usermenu {
    position: relative;
}

.el-usermenu__toggle {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 6px 4px 4px;
    border-radius: 12px;
}

.el-usermenu__toggle::-webkit-details-marker {
    display: none;
}

.el-usermenu__toggle:hover {
    background: #f1f5f9;
}

.el-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--t-navy) 0%, var(--t-sky) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.el-usermenu__name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 600;
    font-size: 14px;
    color: var(--t-ink);
}

.el-usermenu__name small {
    font-weight: 500;
    font-size: 12px;
    color: var(--t-muted);
}

.el-usermenu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: 12px;
    box-shadow: var(--t-shadow-lg);
    z-index: 50;
}

.el-usermenu__who {
    margin: 0 0 6px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--t-line);
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.el-usermenu__who span {
    color: var(--t-muted);
}

.el-usermenu__panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--t-text);
    text-decoration: none;
    font-size: 14px;
}

.el-usermenu__panel a svg {
    width: 17px;
    height: 17px;
    color: var(--t-muted);
}

.el-usermenu__panel a:hover {
    background: #f1f5f9;
}

.el-usermenu__panel .el-usermenu__out {
    color: var(--t-red);
}

.el-usermenu__panel .el-usermenu__out svg {
    color: var(--t-red);
}

/* ================================================================ content + footer */

.el-app .el-app__content {
    max-width: 1320px;
    padding: 28px 32px 40px;
}

.el-app .el-app__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 32px 24px;
    font-size: 12.5px;
    color: var(--t-soft);
}

.el-app .el-app__footer a {
    color: var(--t-muted);
}

@media (max-width: 1024px) {
    .el-app .el-side {
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    }

    body.el-app.el-side-open .el-side {
        transform: none;
    }

    .el-app .el-app__main {
        margin-left: 0;
    }

    .el-app .el-top__menu {
        display: inline-flex;
    }

    .el-app .el-top {
        padding: 10px 16px;
        gap: 10px;
    }

    .el-app .el-app__content {
        padding: 20px 16px 32px;
    }

    .el-app .el-app__footer {
        padding: 12px 16px 20px;
    }
}

@media (max-width: 760px) {
    .el-top__search,
    .el-usermenu__name {
        display: none;
    }

    .el-app .el-top__title {
        flex: 1;
    }
}

/* ================================================================ page head */

.el-app .el-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.el-app .el-page-head__eyebrow {
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--t-muted);
}

.el-app .el-page-head__eyebrow a {
    color: var(--t-navy);
    text-decoration: none;
}

.el-app .el-page-head__eyebrow a:hover {
    text-decoration: underline;
}

.el-app .el-page-head__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--t-ink);
}

.el-app .el-page-head__lead {
    margin: 6px 0 0;
    max-width: 70ch;
    color: var(--t-muted);
    font-size: 14.5px;
}

.el-app .el-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ================================================================ cards */

.el-app .el-card {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 22px 24px;
}

.el-app .el-card--table {
    padding: 4px 0 6px;
    overflow: hidden;
}

.el-app .el-card__head {
    align-items: flex-start;
    margin-bottom: 16px;
}

.el-app .el-card__head--pad {
    padding: 18px 22px 2px;
}

.el-app .el-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--t-ink);
}

.el-card__sub {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--t-muted);
}

/* ================================================================ buttons */

.el-app .el-btn,
.el-auth .el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--t-radius-sm);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.el-app .el-btn:active,
.el-auth .el-btn:active {
    transform: translateY(1px);
}

.el-app .el-btn svg,
.el-auth .el-btn svg {
    width: 17px;
    height: 17px;
    margin: 0;
    vertical-align: middle;
}

.el-app .el-btn--primary,
.el-auth .el-btn--primary {
    background: var(--t-navy);
    border: 1px solid var(--t-navy);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.el-app .el-btn--primary:hover,
.el-auth .el-btn--primary:hover {
    background: var(--t-navy-600);
    border-color: var(--t-navy-600);
}

.el-app .el-btn--quiet {
    background: #fff;
    border: 1px solid var(--t-line-2);
    color: var(--t-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.el-app .el-btn--quiet:hover {
    background: #f8fafc;
    border-color: #c3cfdf;
    color: var(--t-ink);
}

.el-app .el-btn--light {
    background: #fff;
    border: 1px solid #fff;
    color: var(--t-navy);
}

.el-app .el-btn--light:hover {
    background: var(--t-tint);
}

.el-app .el-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.el-app .el-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.el-app .el-btn--sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.el-app .el-btn--block,
.el-auth .el-btn--block {
    display: flex;
    width: 100%;
}

.el-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--t-line-2);
    background: #fff;
    color: var(--t-navy);
    flex: none;
}

.el-iconbtn svg {
    width: 17px;
    height: 17px;
}

.el-iconbtn:hover {
    background: var(--t-tint);
}

/* ================================================================ forms */

.el-app .el-label,
.el-auth .el-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.el-app .el-input,
.el-app .el-select,
.el-auth .el-input,
.el-auth .el-select {
    min-height: 44px;
    border: 1px solid var(--t-line-2);
    border-radius: var(--t-radius-sm);
    background-color: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--t-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.el-app .el-input:focus,
.el-app .el-select:focus,
.el-auth .el-input:focus,
.el-auth .el-select:focus {
    outline: none;
    border-color: var(--t-sky);
    box-shadow: 0 0 0 3px rgba(72, 168, 216, 0.22);
}

.el-app .el-hint {
    font-size: 12.5px;
    color: var(--t-muted);
}

.el-app .el-error {
    font-size: 13px;
    color: var(--t-red);
    font-weight: 500;
}

.el-app .el-field--bad .el-input,
.el-app .el-field--bad .el-select {
    border-color: #f2a8a1;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

/* Search / filter bars read as a card. */
.el-app .el-toolbar {
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
    gap: 12px 14px;
    align-items: flex-end;
}

/* ================================================================ tables */

.el-app .el-table {
    font-size: 14px;
}

.el-app .el-table thead th {
    background: #f8fafc;
    color: var(--t-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--t-line);
    padding: 12px 16px;
}

.el-app .el-table td {
    padding: 14px 16px;
    border-color: #eef2f7;
    vertical-align: middle;
}

.el-app .el-table tbody tr + tr td {
    border-top: 1px solid #eef2f7;
}

.el-app .el-table tbody tr:hover td {
    background: #f9fbfe;
}

.el-app .el-strong {
    font-weight: 600;
    color: var(--t-ink);
}

.el-app .el-sub {
    font-size: 12.5px;
    color: var(--t-muted);
}

.el-app .el-labno {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 700;
    color: var(--t-navy);
    text-decoration: none;
}

.el-app a.el-labno:hover {
    text-decoration: underline;
}

.el-app .el-pager {
    padding: 14px 18px 10px;
}

/* ================================================================ badges, pills, alerts */

.el-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.el-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.el-pill--blue { background: var(--t-tint); color: var(--t-navy); }
.el-pill--green { background: var(--t-green-50); color: var(--t-green); }
.el-pill--amber { background: var(--t-amber-50); color: var(--t-amber); }
.el-pill--red { background: var(--t-red-50); color: var(--t-red); }

.el-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.el-app .el-badge {
    border-radius: 999px;
    font-weight: 600;
}

.el-app .el-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #fbd5d1;
    background: var(--t-red-50);
    color: #912018;
    margin-bottom: 18px;
}

.el-app .el-alert--ok {
    border-color: #c6f0d6;
    background: var(--t-green-50);
    color: #116132;
}

.el-app .el-empty {
    padding: 44px 24px;
    text-align: center;
}

.el-app .el-empty__title {
    font-weight: 700;
    font-size: 16px;
    color: var(--t-ink);
}

.el-app .el-empty__text {
    color: var(--t-muted);
}

.el-mini-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 10px;
    text-align: center;
    color: var(--t-muted);
    font-size: 13.5px;
}

.el-mini-empty svg {
    width: 34px;
    height: 34px;
    color: #b9c6d8;
}

.el-mini-empty p {
    margin: 0;
    max-width: 30ch;
}

/* ================================================================ KPIs */

.el-app .el-kpi {
    border-radius: var(--t-radius);
    border: 1px solid var(--t-line);
    box-shadow: var(--t-shadow);
    padding: 18px 20px;
    gap: 16px;
}

.el-app .el-kpi__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.el-app .el-kpi__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t-muted);
}

.el-app .el-kpi__value {
    font-size: 26px;
    font-weight: 800;
    color: var(--t-ink);
    letter-spacing: -0.02em;
}

.el-kpi__sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--t-soft);
}

.el-trend {
    font-weight: 700;
}

.el-trend--up { color: var(--t-green); }
.el-trend--down { color: var(--t-red); }

/* ================================================================ dashboard grid */

.el-dash {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.el-dash > .el-card,
.el-dash > section {
    margin: 0 !important;
}

.el-dash__kpis {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 1180px) {
    .el-dash {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* welcome banner */
.el-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 30px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(72, 168, 216, 0.45) 0%, rgba(72, 168, 216, 0) 55%),
        linear-gradient(120deg, #0b2450 0%, #123670 45%, #1c4b96 100%);
    box-shadow: 0 16px 36px rgba(13, 42, 87, 0.22);
}

.el-welcome__eyebrow {
    margin: 0;
    font-size: 13px;
    color: #bcdcf2;
    font-weight: 500;
}

.el-welcome__title {
    margin: 6px 0 4px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.el-welcome__lead {
    margin: 0;
    color: #d5e6f7;
    font-size: 14.5px;
}

.el-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.el-welcome__art {
    width: 170px;
    height: auto;
    flex: none;
}

@media (max-width: 640px) {
    .el-welcome__art { display: none; }
    .el-welcome { padding: 22px 20px; }
    .el-welcome__title { font-size: 23px; }
}

/* account card */
.el-account {
    display: flex;
    flex-direction: column;
    padding: 22px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--t-line);
    box-shadow: var(--t-shadow);
}

.el-account__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.el-account__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t-muted);
}

.el-account--ok .el-chip { background: var(--t-green-50); color: var(--t-green); }
.el-account--due .el-chip { background: var(--t-red-50); color: var(--t-red); }

.el-account__value {
    margin: 8px 0 14px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.el-account--ok .el-account__value { color: var(--t-green); }
.el-account--due .el-account__value { color: var(--t-red); }

.el-account__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 0;
    border-top: 1px solid var(--t-line);
    border-bottom: 1px solid var(--t-line);
}

.el-account__facts dt {
    font-size: 12px;
    color: var(--t-muted);
}

.el-account__facts dd {
    margin: 2px 0 0;
    font-weight: 700;
    color: var(--t-ink);
}

.el-account__actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.el-account__actions .el-btn--primary {
    flex: 1;
}

/* registrations chart - fills its card, which the grid stretches to the
   height of the report-status card beside it */
.el-dash__chart {
    display: flex;
    flex-direction: column;
}

.el-bars {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 1;
    min-height: 190px;
    padding-top: 6px;
}

.el-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.el-bars__bar {
    width: 100%;
    max-width: 30px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #7cc1e6 0%, var(--t-sky) 100%);
    opacity: 0.75;
    transition: opacity 0.15s;
}

.el-bars__bar.is-today {
    background: linear-gradient(180deg, #2f62b4 0%, var(--t-navy) 100%);
    opacity: 1;
}

.el-bars__col:hover .el-bars__bar {
    opacity: 1;
}

.el-bars__n {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--t-ink);
    min-height: 14px;
}

.el-bars__d {
    font-size: 11px;
    color: var(--t-soft);
    font-variant-numeric: tabular-nums;
}

/* report status */
.el-stack {
    display: flex;
    gap: 3px;
    height: 12px;
    margin: 4px 0 16px;
    border-radius: 999px;
    overflow: hidden;
}

.el-stack__seg { min-width: 4px; }
.el-stack__seg--approved { background: #16a34a; }
.el-stack__seg--printed { background: #0e7490; }
.el-stack__seg--not_approved { background: #f59e0b; }
.el-stack__seg--rejected { background: var(--t-purple); }
.el-stack__seg--empty { background: #e9eef5; }

.el-statuslist {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.el-statuslist li {
    display: flex;
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
    color: var(--t-text);
}

.el-statuslist li + li {
    border-top: 1px dashed var(--t-line);
}

.el-statuslist strong {
    margin-left: auto;
    font-weight: 700;
    color: var(--t-ink);
}

.el-dash__status .el-dot--approved { background: #16a34a; }
.el-dash__status .el-dot--not_approved { background: #f59e0b; }

/* ready list */
.el-readylist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.el-readylist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}

.el-readylist li + li {
    border-top: 1px solid var(--t-line);
}

.el-readylist__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--t-green-50);
    color: var(--t-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.el-readylist__icon svg {
    width: 19px;
    height: 19px;
}

.el-readylist__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.el-readylist__text strong {
    font-weight: 600;
    color: var(--t-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-readylist__text span {
    font-size: 12.5px;
    color: var(--t-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================================ sign-in */

body.el-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #fff;
}

.el-auth__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 52px;
    color: #fff;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(72, 168, 216, 0.4) 0%, rgba(72, 168, 216, 0) 60%),
        radial-gradient(60% 50% at 0% 100%, rgba(72, 168, 216, 0.18) 0%, rgba(72, 168, 216, 0) 60%),
        linear-gradient(150deg, #0b2450 0%, #123670 55%, #1c4b96 100%);
}

.el-auth__logo {
    display: inline-flex;
    align-self: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
}

.el-auth__logo img {
    height: 38px;
    display: block;
}

.el-auth__pitch {
    max-width: 30rem;
}

.el-auth__eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a9d4f0;
}

.el-auth__headline {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.el-auth__copy {
    margin: 14px 0 0;
    color: #d5e6f7;
    font-size: 16px;
    line-height: 1.55;
}

.el-auth__features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.el-auth__features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #e6f0fb;
    font-size: 15px;
}

.el-auth__features svg {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #9fd0ee;
}

.el-auth__foot {
    font-size: 13px;
    color: #a9c3e0;
}

.el-auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
}

.el-auth__card {
    width: 100%;
    max-width: 420px;
}

.el-auth__card .el-signin__title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--t-ink);
    letter-spacing: -0.02em;
}

.el-auth__card .el-signin__lead {
    margin: 6px 0 24px;
    color: var(--t-muted);
}

.el-auth__card .el-field {
    margin-bottom: 16px;
}

.el-auth__card .el-switch {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--t-line);
}

.el-auth__card .el-alert {
    border-radius: 12px;
    border: 1px solid #fbd5d1;
    background: var(--t-red-50);
    color: #912018;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.el-auth__card .el-alert svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.el-auth__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--t-muted);
}

.el-auth__secure svg {
    width: 16px;
    height: 16px;
    color: var(--t-green);
}

@media (max-width: 900px) {
    body.el-auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .el-auth__brand {
        padding: 26px 22px;
        gap: 18px;
    }

    .el-auth__headline {
        font-size: 26px;
    }

    .el-auth__features,
    .el-auth__foot {
        display: none;
    }
}

/* ================================================================ phase 6: notices + sample rejections */

.el-notices {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.el-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cfe0f5;
    border-left: 4px solid var(--t-navy);
    background: var(--t-tint);
    color: var(--t-deep);
    font-size: 14px;
}

.el-notice--warning { border-color: #f6dfb0; border-left-color: #d97706; background: var(--t-amber-50); color: #7a3e06; }
.el-notice--critical { border-color: #fbd5d1; border-left-color: var(--t-red); background: var(--t-red-50); color: #7a1a12; }

.el-notice__icon svg { width: 20px; height: 20px; display: block; margin-top: 1px; }
.el-notice__text { flex: 1; min-width: 0; }
.el-notice__text strong { display: block; font-weight: 700; }
.el-notice__text span { display: block; margin-top: 2px; opacity: 0.9; overflow-wrap: anywhere; }
.el-notice__date { font-size: 12px; font-weight: 600; opacity: 0.7; white-space: nowrap; }

.el-app .el-alert--warn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-color: #f6dfb0;
    background: var(--t-amber-50);
    color: #7a3e06;
}

.el-app .el-alert--warn svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.el-app .el-alert--warn ul { margin: 6px 0 0; padding-left: 18px; }

.el-rejlist { list-style: none; margin: 0; padding: 0; }
.el-rejlist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--t-line); }
.el-rejlist li:first-child { border-top: 0; padding-top: 0; }
.el-rejlist__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--t-amber-50); color: var(--t-amber); }
.el-rejlist__icon svg { width: 18px; height: 18px; }
.el-rejlist__text { flex: 1; min-width: 0; font-size: 13.5px; }
.el-rejlist__text strong { display: block; color: var(--t-ink); }
.el-rejlist__text span { display: block; color: var(--t-muted); }

.el-dash__rejections { grid-column: 1 / -1; border-left: 4px solid #d97706; }

.el-status--sample_rejected { background: var(--t-amber-50); color: var(--t-amber); }
.el-status--recollected { background: var(--t-tint); color: var(--t-navy); }
.el-status--cancelled { background: #f1f5f9; color: #475569; }

.el-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
/* In the narrow side column the status sits under the text. */
.el-sticky .el-rejlist li { flex-wrap: wrap; }
.el-sticky .el-rejlist__text { flex-basis: calc(100% - 46px); }
.el-sticky .el-rejlist .el-status { margin-left: 46px; }

/* ================================================================ wallet (06-Oct brief) */

.el-wallet {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.el-wallet > * { min-width: 0; margin: 0 !important; }
.el-wallet__kpis { grid-template-columns: minmax(0, 1fr); align-content: start; }
.el-wallet__due { margin: 10px 0 0; font-size: 13.5px; }
.el-wallet__amt { font-weight: 700; white-space: nowrap; }
.el-wallet__amt--in { color: var(--t-green); }
.el-wallet__amt--out { color: var(--t-red); }

@media (max-width: 900px) {
    .el-wallet { grid-template-columns: minmax(0, 1fr); }
}

/* report format groups on the case page */
.el-format { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border: 1px solid var(--t-line); border-radius: 10px; background: #fafbfe; }
.el-format__label { font-size: 11.5px; font-weight: 700; color: var(--t-muted); text-transform: uppercase; letter-spacing: .03em; }
[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ================================================================ global back (06-Oct) */
.el-app .el-top__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    height: 36px;
    padding: 0 12px 0 8px;
    border: 1px solid var(--t-line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--t-navy);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.el-app .el-top__back:hover { background: var(--t-tint); border-color: #c4d3ea; }
.el-app .el-top__back:focus-visible { outline: 2px solid var(--t-sky); outline-offset: 2px; }
.el-app .el-top__back svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
    .el-app .el-top__back { padding: 0 8px; }
    .el-app .el-top__back span { display: none; }
}
