/* Last edited by Nathan | 27-Jul-2026 | 05:20 IST */

/* Self-hosted, latin subset only, ~86 KB for all four faces. No font CDN: the app has to
   come up on a shop's 3G connection and inside a single container with no outbound DNS. */
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2");
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
}

:root {
    --flow-ground: #14161C;
    --flow-marigold: #E8A33D;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    /* The light ground must fill the viewport, not just wrap the content. On a short page
       the body box stops at its content; without this the root shows through below it. */
    min-height: 100dvh;
    background: #FAFAFB;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1:focus { outline: none; }

/* MudBlazor leans on shadows to separate surfaces. This product separates them with a
   hairline instead, so a dense list stays flat and readable on a small screen. */
.mud-elevation-1, .mud-elevation-2, .mud-elevation-3, .mud-elevation-4 { box-shadow: none !important; }

.mud-paper-outlined { border-color: var(--mud-palette-lines-default); }

/* Anywhere digits line up — PINs, counts, money later on. */
.flow-mono {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.flow-nums { font-variant-numeric: tabular-nums; }

/* The wordmark. Two weights of one face, no image — it has to stay crisp at 14px in an
   app bar and it has to render before the network does anything. */
.flow-wordmark {
    font-weight: 600;
    letter-spacing: .16em;
    font-size: 1rem;
}

.flow-wordmark span { color: var(--flow-marigold); margin-left: .3em; }

/* --- the two screens that exist outside the shell -------------------------
   Sign-in and the forced PIN change both render with no app bar and no drawer,
   so they share one centred card rather than each inventing a layout. */
.signin-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    background: var(--mud-palette-background);
}

.signin-card {
    width: 100%;
    max-width: 22rem;
}

.signin-mark {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .18em;
    color: var(--mud-palette-text-primary);
}

.signin-mark span { color: var(--flow-marigold); margin-left: .35em; }

/* A PIN is four to six digits. Spacing them makes a mistyped one visible without
   ever showing what it is. */
.flow-pin input {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    letter-spacing: .5em;
}

/* --- drawer footer -------------------------------------------------------- */
.flow-nav-foot {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* --- Login as banner ------------------------------------------------------
   Marigold, not red: this is a state to be aware of, not an error. It sits above
   the page content and scrolls with it, because a sticky bar costs a row of screen
   on the phones this runs on. */
.flow-imp {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    background: var(--flow-marigold);
    color: #14161C;
    font-size: .8125rem;
}

.flow-imp-text { flex: 1 1 auto; }

.flow-imp-left {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    opacity: .75;
}

@media (max-width: 599px) {
    .flow-imp-text strong { display: block; }
}

/* --- page furniture ------------------------------------------------------- */
.flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.flow-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .75rem;
}

/* --- the people list ------------------------------------------------------
   Cards, not a data grid: the sentence saying what somebody can see is the most
   important thing on the row and it does not fit in a column. */
.flow-people {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flow-person-card { padding: .875rem 1rem; }

.flow-person-off { opacity: .55; }

.flow-person {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.flow-person-main { flex: 1 1 auto; min-width: 0; }

.flow-person-name {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.flow-person-access {
    margin-top: .35rem;
    color: var(--mud-palette-text-primary);
}

.flow-person-acts {
    display: flex;
    align-items: center;
    gap: .125rem;
    flex: 0 0 auto;
}

/* --- the parties list -----------------------------------------------------
   Same card-not-grid reasoning as the people list: the completeness ring and
   the where-it-is line matter more than any single column would allow. */
.flow-parties {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flow-party-card {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    width: 100%;
    background: transparent;
    border-radius: 0;
    text-transform: none;
}

/* MudBlazor sets a min-height and centre-justify on button-styled surfaces; a
   row of parties reads as a list, not a stack of buttons. */
.flow-party-card.mud-button-root { justify-content: flex-start; font-weight: 400; }

.flow-party-main { flex: 1 1 auto; min-width: 0; }

.flow-party-name {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.flow-party-name .flow-party-code {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
}

.flow-party-where {
    margin-top: .15rem;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The completeness ring, centred number inside a MudProgressCircular. */
.flow-ring {
    flex: 0 0 auto;
    position: relative;
    display: grid;
    place-items: center;
}

.flow-ring-num {
    position: absolute;
    font-size: .6875rem;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-secondary);
}

/* --- the party form ------------------------------------------------------- */
.flow-party-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.flow-party-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.flow-party-row > * { flex: 1 1 10rem; min-width: 8rem; }

/* Tap-friendly facet chips — follow-up bands and data-quality gaps — wrap on narrow screens. */
.flow-facet-chips {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    align-items: center;
}

.flow-facet-chips .mud-chip { cursor: pointer; }

/* The advanced-filter drawer sits under the search row and reads as one grouped surface. */
.flow-filter-panel { border-radius: var(--mud-default-borderradius); }

/* The live GSTIN read-out — state + PAN once it parses. */
.flow-gstin-parsed {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .8125rem;
}

/* --- party detail --------------------------------------------------------- */
.flow-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .75rem 1.5rem;
}

.flow-fact-label {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mud-palette-text-secondary);
}

.flow-timeline {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flow-timeline-row {
    display: flex;
    gap: .75rem;
    align-items: baseline;
}

.flow-timeline-when {
    flex: 0 0 auto;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* --- merge chooser -------------------------------------------------------- */
.flow-merge {
    display: flex;
    gap: .75rem;
    align-items: stretch;
}

.flow-merge-side { flex: 1 1 0; min-width: 0; }

.flow-merge-arrow {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--mud-palette-text-secondary);
}

/* --- territory editor ----------------------------------------------------- */
.flow-terr-add {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: .5rem 0 .75rem;
    flex-wrap: wrap;
}

.flow-terr-state { flex: 1 1 9rem; min-width: 9rem; }
.flow-terr-city  { flex: 2 1 12rem; min-width: 12rem; }

.flow-terr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

/* --- vocabulary editors (company master lists) ---------------------------- */
.flow-vocab-add {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}

.flow-vocab-add-field { flex: 1 1 18rem; min-width: 14rem; }

.flow-vocab-group { margin-top: 1rem; }

.flow-vocab-rows {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.flow-vocab-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem .35rem .25rem;
}

/* A hidden row is still shown — just visibly set aside, not gone. */
.flow-vocab-off { opacity: .6; }

.flow-vocab-order {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.flow-vocab-label {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.flow-vocab-acts {
    display: flex;
    align-items: center;
    gap: .125rem;
    flex: 0 0 auto;
}

/* The one-time PIN. Big, spaced and monospaced, because it is read aloud down a
   phone line more often than it is copied. */
.flow-pin-reveal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-background-gray);
}

.flow-pin-reveal .flow-mono {
    font-size: 1.5rem;
    letter-spacing: .35em;
}

/* --- the today feed -------------------------------------------------------
   The day's work, grouped into three bands. Same card-not-grid reasoning as the
   parties list: the shop's name and its due line matter more than any column. */
.flow-today-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.flow-bucket { margin-top: 1.25rem; }

.flow-bucket-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.flow-bucket-count { font-variant-numeric: tabular-nums; }

.flow-feed {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flow-feed-card {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Overdue that has crossed the red threshold: a hairline left edge, not a filled
   card — loud enough to find, quiet enough to sit in a list of them. */
.flow-feed-card.is-red { border-left: 3px solid var(--mud-palette-error); }

.flow-feed-main { flex: 1 1 auto; min-width: 0; cursor: pointer; }

.flow-feed-name {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.flow-feed-name .flow-feed-code {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
}

.flow-feed-where {
    margin-top: .15rem;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-feed-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

/* The "last bought" hint — a quiet chip, so it reads as context on the meta line, not an action. */
.flow-feed-meta .flow-feed-brand.mud-chip {
    height: 20px;
    font-size: .7rem;
}

.flow-feed-meta .flow-feed-brand .mud-chip-icon {
    font-size: .85rem;
}

.flow-feed-acts {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 0 0 auto;
}

/* --- the three-tap log ----------------------------------------------------
   Chips and tiles, sized for a thumb. Big enough to hit one-handed in a shop
   doorway, laid out to wrap rather than scroll. */
.flow-log-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .35rem;
}

.flow-outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: .5rem;
    margin: .5rem 0;
}

.flow-outcome-tile {
    min-height: 3rem;
    text-transform: none;
    justify-content: center;
}

.flow-log-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 1.25rem;
}

/* The confirm step's read-only recap — a quiet key/value grid, aligned so the eye runs down it fast. */
.flow-log-summary {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .4rem .9rem;
    margin-top: .6rem;
}

.flow-log-summary-row {
    display: contents;
}

.flow-log-summary-key {
    align-self: center;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.flow-log-summary-val {
    align-self: center;
    word-break: break-word;
}

/* --- pre-Blazor boot screen ------------------------------------------------
   Plain CSS because none of the app exists yet. Deliberately quiet: it is on
   screen for under a second on a warm cache and should not announce itself. */
.boot {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1.1rem;
    background: #FAFAFB;
}
.boot-mark {
    font: 600 1.05rem/1 "IBM Plex Sans", system-ui, sans-serif;
    letter-spacing: .18em;
    color: #14161C;
}
.boot-mark span { color: var(--flow-marigold); margin-left: .35em; }
.boot-bar {
    width: 9rem; height: 2px;
    background: #E4E6EB; border-radius: 2px; overflow: hidden;
}
.boot-bar i {
    display: block; height: 100%;
    background: var(--flow-marigold);
    width: calc(var(--blazor-load-percentage, 15%));
    transition: width .15s linear;
}

/* No dark-mode override here. The app renders a single light MudBlazor theme; darkening
   the root for prefers-color-scheme:dark left the light content sitting on a dark root, so
   every dark-mode user saw a black band below short pages. The boot screen stays light to
   match the app it hands off to. */

@media (prefers-reduced-motion: reduce) {
    .boot-bar i { transition: none; }
}

#blazor-error-ui {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
    background: #14161C; color: #F2F3F5;
    padding: .7rem 1.25rem;
    font-size: .875rem;
}
#blazor-error-ui .reload { color: var(--flow-marigold); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .55rem; }

/* --- block 5a: targets, pace line, attendance -----------------------------
   The pace strip and the attendance strip sit at the top of the Today feed; the
   targets grid is its own manager/owner screen. All three lean on the same MudBlazor
   palette variables the rest of the app uses, so they follow the theme without a
   second set of colours. */

/* The month stepper — one tap either way around a centred label, no calendar. */
.flow-month {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.flow-month-label {
    min-width: 10rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* The grid scrolls sideways on a narrow screen rather than shoving the page body. */
.flow-grid-scroll { overflow-x: auto; }

.flow-target-grid {
    width: 100%;
    border-collapse: collapse;
}
.flow-target-grid th,
.flow-target-grid td {
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
}
.flow-target-grid thead th {
    text-align: left;
    font: 600 .75rem/1.2 inherit;
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.flow-target-name { min-width: 11rem; }
.flow-target-col {
    width: 7.5rem;
    text-align: center;
}
.flow-target-input { max-width: 6rem; margin: 0 auto; }

.flow-target-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Bulk apply — three narrow fields and a button, wrapping on a phone. */
.flow-bulk {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.flow-bulk-state { min-width: 11rem; }
.flow-bulk-metric { min-width: 9rem; }
.flow-bulk-value { max-width: 7rem; }

/* The mix report — three headline counts, then a table per dimension. */
.flow-mix-kpis {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.flow-mix-kpi {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    flex: 1 1 7rem;
    min-width: 7rem;
}

.flow-mix-block { }
.flow-mix-title {
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mud-palette-text-secondary);
    margin-bottom: .3rem;
}

.flow-mix-grid {
    width: 100%;
    border-collapse: collapse;
}
.flow-mix-grid th,
.flow-mix-grid td {
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
}
.flow-mix-grid thead th {
    font: 600 .75rem/1.2 inherit;
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.flow-mix-label {
    text-align: left;
    min-width: 12rem;
}
.flow-mix-num {
    text-align: right;
    width: 5rem;
    font-variant-numeric: tabular-nums;
}

/* The label cell carries a faint share bar behind the words — busiest row is full width. */
.flow-mix-bar {
    position: relative;
    padding: .15rem .4rem;
    border-radius: 4px;
    overflow: hidden;
}
.flow-mix-bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w, 0%);
    background: var(--mud-palette-primary-hover);
    border-radius: 4px;
}
.flow-mix-bar > span {
    position: relative;
}
.flow-mix-unset {
    color: var(--mud-palette-text-secondary);
    font-style: italic;
}

/* The visits detail — a plain named row per visit. Left-aligned text, no share bars. */
.flow-detail-grid th { text-align: left; }
.flow-detail-grid td { text-align: left; }
.flow-detail-date {
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}
.flow-detail-shop { font-weight: 500; }
.flow-detail-code {
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}
/* A win reads at a glance without a whole extra column. */
.flow-detail-won {
    color: var(--mud-palette-success-text, var(--mud-palette-success));
    font-weight: 600;
}

/* ---- The two-report host (Coverage / Activity) and its shared table furniture ---- */

/* The base toggle sits alone on its row, left-aligned under the scope switch. */
.flow-report-base { display: flex; }

/* "Group by" label sitting beside its chip row, both on one line. */
.flow-groupby {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}
.flow-groupby-label {
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* A summary row you can open — the whole row is the target, and the open one stays lit. */
.flow-row-click { cursor: pointer; transition: background-color .12s ease; }
.flow-row-click:hover { background: var(--mud-palette-action-default-hover); }
.flow-row-open { background: var(--mud-palette-primary-hover); }
.flow-row-open:hover { background: var(--mud-palette-primary-hover); }

/* Numbers that carry a warning wear the colour rather than an extra icon. */
.flow-num-alert { color: var(--mud-palette-error); font-weight: 600; }
.flow-num-warn { color: var(--mud-palette-warning); font-weight: 600; }

/* The drill panel — the rows behind one tapped number. */
.flow-drill { padding: 0; overflow: hidden; }
.flow-drill-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .9rem;
    background: var(--mud-palette-background-grey);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-wrap: wrap;
}
.flow-detail-tags {
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
}
.flow-detail-notes {
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
    font-style: italic;
    margin-top: .1rem;
}

/* Coverage flag chips — the four counts double as filters, so each is a button. */
.flow-flag {
    cursor: pointer;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    transition: border-color .12s ease, background-color .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.flow-flag:hover { background: var(--mud-palette-action-default-hover); }
.flow-flag-on {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary-hover);
}

/* Coverage detail — the due note under the date, and the tap-to-call cell. */
.flow-detail-late { color: var(--mud-palette-error); font-size: .72rem; font-weight: 600; }
.flow-detail-soon { color: var(--mud-palette-info); font-size: .72rem; }
.flow-detail-call {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.flow-detail-who { font-size: .78rem; }

/* The pace strip — one thin bar per set metric, stacked. */
.flow-pace {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem 1rem;
}
.flow-pace-row {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.flow-pace-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.flow-pace-label { font-weight: 600; }
.flow-pace-bar { height: 6px; border-radius: 3px; }

/* The day's scoreboard — "done / planned · pending", one headline bar, and a per-rep breakdown
   underneath when more than one salesperson is in view. */
.flow-score {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .75rem 1rem;
}
.flow-score-head {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}
.flow-score-title { font-weight: 600; }
.flow-score-tally { margin-left: auto; }
.flow-score-of { color: var(--mud-palette-text-secondary); }
.flow-score-pending { color: var(--mud-palette-warning); margin-left: .35rem; }
.flow-score-clear { color: var(--mud-palette-success); margin-left: .35rem; }
.flow-score-bar { height: 6px; border-radius: 3px; }
.flow-score-reps {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .5rem;
    padding-top: .6rem;
    border-top: 1px solid var(--mud-palette-divider);
}
.flow-score-rep {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.flow-score-rep-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.flow-score-rep-name { font-weight: 500; }
.flow-score-rep-bar { height: 4px; border-radius: 2px; }

/* The attendance strip — a status line and a single action, on one row. */
.flow-attend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 1rem;
}
.flow-attend-text {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* --- dashboard ------------------------------------------------------------
   The escalation row wears a party card but keeps its reassign button at the
   end, so the card body can be tapped through to the party while the action
   stays its own target. */
.flow-esc-card {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Two columns on a wide screen — pace on the left, the day's roll and feed on
   the right — collapsing to a single stack on a phone. */
.flow-dash-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .flow-dash-cols { grid-template-columns: 1fr 1fr; }
}

.flow-attend-roll {
    display: flex;
    flex-direction: column;
}

.flow-attend-mark {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
}

.flow-attend-mark .flow-nums { margin-left: auto; }
