/*
    The site itself: the shell chrome, the sign-in card, and the three-column board. Anything a
    control owns lives in the control library's stylesheet, not here. Colours and metrics are lifted
    from the WebForms site's own CSS so the two read as the same product while both are live.
*/

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--alro-font);
    font-size: var(--alro-font-size);
    color: var(--alro-text);
    background: var(--alro-surface);
}

button {
    font-family: inherit;
}

#app {
    height: 100%;
}

/* What is on screen for the second or two the WebAssembly runtime takes to download, and for
   considerably longer on a cold cache. It says what it is doing, because "Loading" on its own beside
   a blank page is indistinguishable from a page that has given up. */
.ec-boot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--alro-bg);
}

.ec-boot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    max-width: 460px;
    padding: 32px 36px;
    border: 1px solid var(--alro-line);
    border-radius: 8px;
    background: var(--alro-surface);
    box-shadow: 0 .75rem 1.75rem var(--alro-shadow-navy-10);
    text-align: center;
}

.ec-boot-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--alro-line);
    border-top-color: var(--alro-primary);
    border-radius: 50%;
    animation: ecBootSpin .8s linear infinite;
}

@keyframes ecBootSpin {
    to {
        transform: rotate(360deg);
    }
}

.ec-boot-title {
    font-size: 15px;
    font-weight: 600;
}

.ec-boot-message {
    font-size: 13px;
    line-height: 1.5;
    color: var(--alro-text-dim);
}

/* ---------------------------------------------------------------- sign in ---- */

/* border-box, or the 30px of padding is added ON TOP of the full-height minimum and the page is
   always exactly 60px taller than the window - a scrollbar on a screen holding one card. There is no
   global border-box reset in this stylesheet, so it has to be said here. */
.lg-page {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 30px 16px;
    background: var(--alro-bg);
}

.lg-card {
    width: 100%;
    max-width: 430px;
    background: var(--alro-surface);
    border: 1px solid var(--alro-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 .75rem 2rem var(--alro-shadow-navy-10);
    animation: lgRise .45s ease-out both;
}

@keyframes lgRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-card {
        animation: none;
    }
}

/* The top bar's look: the roundel and the name on the card's own ground, a hairline under them. */
.lg-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    color: var(--alro-text);
    background: var(--alro-surface);
    border-bottom: 1px solid var(--alro-line);
}

.lg-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}

.lg-title {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.lg-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.lg-sub {
    font-size: .8rem;
    color: var(--alro-text-dim);
}

/* Pushed hard right by the auto margin rather than by a spacer, so it stays pinned when the title
   wraps. */
.lg-lock {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--alro-text-faint);
}

.lg-body {
    padding: 24px 26px 26px;
}

/* One outlined control split into two halves, not two buttons side by side - the divider is the
   second half's left border, so there is no double line in the middle. */
.lg-mode {
    display: flex;
    margin-bottom: 18px;
    border: 1px solid var(--alro-line-strong);
    border-radius: 8px;
    overflow: hidden;
}

.lg-mode-btn {
    flex: 1 1 50%;
    padding: 8px 6px;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--alro-text-dim);
    background: var(--alro-surface);
    border: 0;
    cursor: pointer;
    transition: background .12s ease-out, color .12s ease-out;
}

    .lg-mode-btn + .lg-mode-btn {
        border-left: 1px solid var(--alro-line-strong);
    }

    .lg-mode-btn i {
        margin-right: 6px;
        opacity: .75;
    }

    .lg-mode-btn:hover {
        background: var(--alro-bg-blue-98);
        color: var(--alro-text);
    }

    /* Lit the way the theme switch in the account menu is, rather than filled in charcoal. */
    .lg-mode-btn.lg-mode-on,
    .lg-mode-btn.lg-mode-on:hover {
        background: var(--alro-primary-soft);
        color: var(--alro-primary);
    }

        .lg-mode-btn.lg-mode-on i {
            opacity: 1;
        }

/* The shared field control, skinned for this page rather than forked into a second input. */
.lg-body .alro-field {
    margin-bottom: 16px;
}

.lg-body .alro-label {
    margin-bottom: 3px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--alro-text-dim);
}

.lg-body .alro-input {
    padding: 9px 12px;
    font-size: .92rem;
    color: var(--alro-text);
    border: 1px solid var(--alro-line-strong);
    border-radius: 8px;
}

    .lg-body .alro-input:focus {
        outline: 0;
        border-color: var(--alro-line-blue-34);
        box-shadow: 0 0 0 .2rem var(--alro-shadow-navy-18);
    }

.lg-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    font-size: .84rem;
    color: var(--alro-ink-gray-31);
}

    .lg-remember input {
        margin: 0;
    }

    .lg-remember label {
        margin: 0;
        cursor: pointer;
    }

.lg-error {
    display: block;
    margin-bottom: 16px;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: .84rem;
    color: var(--alro-danger);
    background: var(--alro-danger-soft);
    border: 1px solid var(--alro-danger-line);
}

/* Not an error - nothing the person did - so it is said in the calmer colour. */
.lg-notice {
    display: block;
    margin-bottom: 16px;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: .84rem;
    color: var(--alro-primary);
    background: var(--alro-primary-soft);
    border: 1px solid var(--alro-line-strong);
}

.lg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    color: var(--alro-ink-gray-100);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--alro-primary-fill);
}

    .lg-btn:hover:not(:disabled) {
        filter: brightness(1.1);
        color: var(--alro-ink-gray-100);
    }

    .lg-btn:focus {
        outline: 0;
        box-shadow: 0 0 0 .2rem var(--alro-shadow-navy-30);
    }

    .lg-btn:disabled {
        opacity: .75;
        cursor: default;
    }

.lg-foot {
    padding: 12px 26px;
    border-top: 1px solid var(--alro-line);
    background: var(--alro-bg-blue-98);
    text-align: center;
    font-size: .72rem;
    color: var(--alro-ink-gray-56);
}

/* ------------------------------------------------------------------ shell ---- */

.ec-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--alro-bg);
}

/* The one bar across the top. It wraps only on a phone, where the pages drop to a row of their own
   under the name. Lifted over the page so the account menu opens on top of whatever is below it. */
.ec-bar {
    position: relative;
    z-index: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    padding: 0 20px;
    background: var(--alro-bar);
    border-bottom: 1px solid var(--alro-line);
}

.ec-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    height: 56px;
    color: var(--alro-text);
    text-decoration: none;
    user-select: none;
}

    .ec-brand:hover {
        color: var(--alro-text);
        text-decoration: none;
    }

    .ec-brand:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: 2px;
        border-radius: 4px;
    }

.ec-brand-logo {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}

.ec-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ec-brand-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ec-brand-sub {
    font-size: 11.5px;
    color: var(--alro-text-dim);
    white-space: nowrap;
}

/* The pages, beside the name with a hairline between them. Stretched to the bar's full height so the
   open page's underline can sit on the bar's bottom edge. */
.ec-tabs {
    position: relative;
    display: flex;
    align-self: stretch;
    gap: 2px;
    min-width: 0;
    padding-left: 12px;
}

    .ec-tabs::before {
        content: "";
        position: absolute;
        left: 0;
        top: 16px;
        bottom: 16px;
        width: 1px;
        background: var(--alro-line);
    }

.ec-tab {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--alro-text-dim);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .ec-tab:hover {
        color: var(--alro-text);
        text-decoration: none;
    }

/* Home while viewing as an account: a button, since it stops the view, drawn as the other tabs. */
.ec-tab-button {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

    .ec-tab:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: -8px;
        border-radius: 10px;
    }

    .ec-tab.active {
        color: var(--alro-text);
    }

        /* Drawn over the bar's bottom border, so the open page reads as joined to what is under it. */
        .ec-tab.active::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: -1px;
            height: 2px;
            border-radius: 2px;
            background: var(--alro-primary);
        }

/* Between an employee's own pages and the pages of the view they chose. */
.ec-tab-gap {
    width: 1px;
    margin: 18px 6px;
    background: var(--alro-line);
}

.ec-bar-spacer {
    flex: 1 1 auto;
}

/* Pushed to the right by the spacer rather than by its own margin, so a long row of tabs can never
   run under it. */
.ec-user {
    position: relative;
    flex: 0 0 auto;
    z-index: 601;
}

.ec-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 11px 0 4px;
    border: 1px solid var(--alro-line);
    border-radius: 18px;
    background: var(--alro-surface);
    color: var(--alro-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.ec-user:hover .ec-user-btn,
.ec-user:focus-within .ec-user-btn {
    background: var(--alro-bg-blue-98);
    border-color: var(--alro-line-strong);
}

.ec-user-caret {
    font-size: 9px;
    color: var(--alro-text-dim);
}

/* Initials in a circle, the way the Helpdesk and Teams show a person. */
.ec-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* The 8px of padding is a pointer bridge: without it the menu closes as the cursor crosses the gap
   between the chip and the card. */
.ec-user-menu {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 8px;
    display: none;
}

.ec-user:hover .ec-user-menu,
.ec-user:focus-within .ec-user-menu {
    display: block;
}

.ec-user-card {
    width: 270px;
    padding: 6px;
    border-radius: 10px;
    background: var(--alro-surface);
    border: 1px solid var(--alro-line);
    box-shadow: 0 12px 40px var(--alro-shadow-shade-22);
}

.ec-user-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
}

    .ec-user-head .ec-avatar {
        width: 36px;
        height: 36px;
        font-size: 12.5px;
    }

.ec-user-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

    .ec-user-who b,
    .ec-user-who span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ec-user-who b {
        font-size: 13.5px;
    }

    .ec-user-who span {
        font-size: 11.5px;
        color: var(--alro-text-dim);
    }

.ec-user-sep {
    height: 1px;
    margin: 4px 2px;
    background: var(--alro-line);
}

/* Light and Dark side by side with the chosen one lit, so which is on shows before anything is
   pressed - a single toggle only ever named the other one. */
.ec-theme-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
}

    .ec-theme-row > span {
        flex: 1 1 auto;
        font-size: .82rem;
        font-weight: 600;
    }

.ec-seg {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--alro-line-strong);
    border-radius: 8px;
    background: var(--alro-surface);
}

    .ec-seg button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border: 0;
        background: transparent;
        color: var(--alro-text-dim);
        font-size: .78rem;
        font-weight: 600;
        cursor: pointer;
    }

        .ec-seg button + button {
            border-left: 1px solid var(--alro-line);
        }

        .ec-seg button:hover {
            color: var(--alro-text);
        }

        .ec-seg button.ec-seg-on {
            background: var(--alro-primary-soft);
            color: var(--alro-primary);
        }

/* Sign Out is the same shape as the other items, in red: it ends the session. */
.ec-menu-item,
.ec-signout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--alro-text);
    font-size: .82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .ec-menu-item i,
    .ec-signout i {
        width: 16px;
        text-align: center;
    }

    .ec-menu-item i {
        color: var(--alro-text-dim);
    }

    .ec-menu-item:hover {
        background: var(--alro-bg-blue-98);
    }

.ec-signout {
    color: var(--alro-danger);
}

    .ec-signout:hover {
        background: var(--alro-danger-soft);
        color: var(--alro-danger);
    }

/* A phone: the name loses its second line and the person their name, and the pages drop to a row of
   their own under the bar, scrolling sideways when they will not fit. The underline sits inside that
   row, which would otherwise clip it. */
@media (max-width: 720px) {
    .ec-bar {
        column-gap: 10px;
        padding: 0 12px;
    }

    .ec-brand-sub,
    .ec-user-name {
        display: none;
    }

    .ec-tabs {
        order: 3;
        flex: 0 0 calc(100% + 24px);
        height: 42px;
        margin: 0 -12px;
        padding: 0 6px;
        overflow-x: auto;
        border-top: 1px solid var(--alro-line);
    }

        .ec-tabs::before {
            display: none;
        }

    .ec-tab-gap {
        margin: 12px 6px;
    }

    .ec-tab.active::after {
        bottom: 0;
    }
}

.ec-main {
    flex: 1;
    min-height: 0;
}

.ec-notfound {
    padding: 30px;
    text-align: center;
    color: var(--alro-text-dim);
}

/* ------------------------------------------------------------------ board ---- */

/* border-box, for the same reason .lg-page needs it: height is 100% of the main area and the padding
   is added ON TOP of that, so the board came out 10px taller than the space it was given and the
   whole page grew a scrollbar for it. There is no global border-box reset in this stylesheet. */
.bd-wrap {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 10px 10px 0;
}

.bd-page-error {
    margin: 0 0 8px;
}

.bd-board {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 10px;
}

.bd-col-filter .alro-checkbox {
    margin-bottom: 0;
    font-size: .8rem;
    white-space: nowrap;
}

.bd-po-pct {
    margin-left: 4px;
    font-weight: 400;
    font-size: .7rem;
    color: var(--alro-ink-gray-58);
}

.bd-po-add.alro-button {
    padding: 0 6px;
    font-size: .7rem;
    line-height: 1.6;
}

.bd-truck-btns .alro-icon-button {
    width: 22px;
    height: 22px;
    font-size: .72rem;
    border-color: var(--alro-line-strong);
}

@media (max-width: 1500px) {
    .bd-board {
        grid-template-columns: 340px minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 1300px) {
    .bd-board {
        grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ---- vendor card ---- */

.bd-vendor {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    grid-template-areas: "name upd" "sub upd" "badges badges";
    padding: 7px 10px;
    margin-bottom: 6px;
    background: var(--alro-surface);
    border: 1px solid var(--alro-line-blue-88);
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 1px 1px var(--alro-shadow-navy-05-b);
}

    .bd-vendor:hover {
        border-color: var(--alro-line-blue-62);
        box-shadow: 0 2px 5px var(--alro-shadow-navy-12);
    }

    .bd-vendor.active {
        background: var(--alro-charcoal);
        border-color: var(--alro-line-gray-23);
        color: var(--alro-ink-gray-100);
    }

.bd-vendor-name {
    grid-area: name;
    font-weight: 600;
    font-size: .85rem;
}

.bd-vendor-sub {
    grid-area: sub;
    color: var(--alro-text-dim);
    font-size: .72rem;
}

.bd-vendor.active .bd-vendor-sub {
    color: var(--alro-ink-blue-84);
}

.bd-vendor-upd {
    grid-area: upd;
    align-self: start;
    text-align: right;
    white-space: nowrap;
}

    .bd-vendor-upd .bd-stat-label {
        display: block;
        font-size: .62rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--alro-ink-gray-58);
        line-height: 1.3;
    }

    .bd-vendor-upd b {
        display: block;
        font-size: .64rem;
        font-weight: 400;
        color: var(--alro-text-dim);
        font-variant-numeric: tabular-nums;
    }

.bd-vendor.active .bd-vendor-upd .bd-stat-label {
    color: var(--alro-ink-blue-72);
}

.bd-vendor.active .bd-vendor-upd b {
    color: var(--alro-ink-blue-84);
}

/* All four counts stay on one line at every width - they read as a set, so the badge padding
   tightens instead of the row wrapping. */
.bd-vendor-badges {
    grid-area: badges;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    max-width: 100%;
    margin-top: 5px;
}

/* A count that is EMPTY is lifted on the selected card, because the base badge is a pale grey chip
   and the selected card is charcoal - it would otherwise disappear into it. */
.bd-vendor.active .bd-badge:not(.bd-badge-live) {
    background: var(--alro-bg-light-18);
    color: var(--alro-ink-blue-84);
}

/* A count that is LIVE keeps its own colour, selected or not.
   Selecting a vendor used to repaint every live badge white and then paint the fire and partial ones
   back again - so in practice only the PO count changed, going blue to white for no reason anybody
   could see, on the one card being looked at. A badge's colour means what the count IS; it has
   nothing to say about which card is selected. */

.bd-vendor-off {
    grid-area: badges;
    justify-self: end;
}

.bd-vendor-busy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: var(--alro-bg-light-55);
    border-radius: 5px;
}

    .bd-vendor-busy i {
        font-size: 1.3rem;
        color: var(--alro-ink-blue-38);
    }

.bd-vendor.active .bd-vendor-busy {
    background: var(--alro-bg-navy-55);
}

    .bd-vendor.active .bd-vendor-busy i {
        color: var(--alro-ink-gray-100);
    }

/* The last-update stamp is the first thing to go when the column narrows - it is reference, where
   the badges are the reason the column exists. */
@media (max-width: 1500px) {
    .bd-vendor {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "name" "sub" "badges";
    }

    .bd-vendor-upd {
        display: none;
    }
}

@media (max-width: 1080px) {
    .bd-vendor-badges {
        gap: 4px;
    }

    .bd-badge {
        padding: 2px 6px;
        gap: 4px;
    }
}

/* ---- shared card furniture ---- */

.bd-stat-label {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--alro-ink-gray-58);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-stat b {
    display: block;
    color: var(--alro-ink-gray-15);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* Declared against the element too, so it beats .bd-stat b on specificity. */
    .bd-late,
    .bd-stat b.bd-late {
        color: var(--alro-ink-red-54);
        font-weight: 600;
    }

/* The ship-to reads as one thing everywhere it appears, on a PO line or on a truck. */
/* The location code, down the left of every PO and every truck.
   It is the thing people scan a column for - "which of these is the Battle Creek one" - so it gets a
   rail of its own rather than a chip in among the header text, at a size that can be read without
   reading anything else on the card. Every code sits at the same x, so the column can be scanned
   straight down. */
.bd-po-ship,
.bd-truck-ship {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* One width for every code, on both card kinds, so the numbers beside them start at the same x
       down the whole column and the PO card can lay its first column out around a known size. Wide
       enough for a three-letter code. */
    box-sizing: border-box;
    width: var(--bd-rail);
    /* A floor, so a card whose title row happens to be short does not get a squashed-looking rail.
       Above it the rail follows its row, which is what keeps the two card kinds matching even though
       a truck's title row carries buttons and a PO's does not. */
    min-height: 26px;
    padding: 0 4px;
    background: var(--alro-bg-slate-45);
    color: var(--alro-ink-gray-100);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .5px;
    line-height: 1.1;
}

/* Two columns: the rail, then everything else. The body carries the padding the card used to, so the
   rail can run edge to edge. */
.bd-po,
.bd-truck-body {
    display: grid;
    --bd-rail: 3.8rem;
    grid-template-columns: auto 1fr;
    align-items: stretch;
}

    /* The title row sits BESIDE the rail. min-width: 0 because a grid track otherwise refuses to shrink
   below its content, and a long title is enough to push the card wider than its column. */
    .bd-truck-body > .bd-truck-head {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    /* Everything below the title runs the FULL width, starting under the rail. The rail only has to
   label the card, and reserving a column of empty space beneath it for the length of the card cost
   46px off every row of figures. */
    .bd-truck-body > .bd-truck-meta,
    .bd-truck-body > .bd-truck-lines {
        grid-column: 1 / -1;
        min-width: 0;
    }

/* A PO card is ONE set of columns, top to bottom: four equal columns across the whole card. The title
   row used to be laid out on its own beside the rail while the figures ran the full width under it,
   so the two rows measured their columns from different edges and the description and size never
   sat over anything in particular. Now the description starts over the second figure and the size
   sits over the fourth, on every card, on a truck or off one.

   The rail and the PO number share the FIRST column rather than taking one each. Given a column of
   its own, the rail made the first figure's column the rail plus the number, far wider than the
   rest. The first column's floor is what the rail and a PO number need, so a narrow board squeezes
   the other columns before it cuts the number off.

   The buttons used to be a fifth column of their own, and they cost the figures their spread: the
   four were weighted 1.1 / 1 / 1 / 1.2 inside what was left, which crowded them into the left two
   thirds of the card. They now sit at the end of the first row of figures (see .bd-po-tools), so
   the four columns are true quarters. */
.bd-po {
    grid-template-columns: minmax(calc(var(--bd-rail) + 92px), 1fr) repeat(3, minmax(0, 1fr));
    column-gap: 12px;
}

    /* The title row's pieces become cells of the card's own grid rather than a row of their own. */
    .bd-po > .bd-po-top {
        display: contents;
    }

.bd-po-top > * {
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding: 8px 0 4px;
}

/* Beside the rail, in the rail's column. A margin rather than padding, so the space over the rail is
   not part of the link - a click on the location code must not open the PO. */
.bd-po-top > .bd-po-num {
    grid-column: 1;
    justify-self: start;
    max-width: calc(100% - var(--bd-rail) - 10px);
    margin-left: calc(var(--bd-rail) + 10px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-po-top > .bd-po-desc {
    grid-column: 2 / 4;
}

/* The size has the whole of the last quarter, which is what lets it fit: sharing that quarter with
   the buttons cut "60 IN x 120 IN" short on a board of ordinary width. */
.bd-po-top > .bd-po-size {
    grid-column: 4;
    padding-right: 12px;
}

/* The buttons sit at the right-hand end of the first row of figures, beside Type (Due on a truck's
   line) and level with its label. They overlap the figures' grid rather than taking a column, so
   they are lifted above it - otherwise the grid, drawn after them, would take their clicks. */
.bd-po-top > .bd-po-tools {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    position: relative;
    z-index: 1;
    padding: 5px 10px 0 0;
}

.bd-po > .bd-po-ship {
    justify-self: start;
}

/* Everything else runs the full width, under the rail. */
.bd-po > :not(.bd-po-ship):not(.bd-po-top) {
    grid-column: 1 / -1;
}

/* The figures sit on the card's columns too, so the second lands under the description and the
   fourth under the size, placed by position four to a row. Pinned to row 2, because the buttons are
   placed there as well, and an unpinned grid would be pushed down a row to make way for them. */
.bd-po > .bd-po-grid {
    grid-row: 2;
    grid-template-columns: subgrid;
    column-gap: 12px;
    padding: 0 12px;
}

.bd-po-grid > :nth-child(4n + 1) {
    grid-column: 1;
}

.bd-po-grid > :nth-child(4n + 2) {
    grid-column: 2;
}

.bd-po-grid > :nth-child(4n + 3) {
    grid-column: 3;
}

.bd-po-grid > :nth-child(4n + 4) {
    grid-column: 4;
}

/* The first row's fourth figure keeps clear of the buttons beside it. */
.bd-po-grid > :nth-child(4) {
    padding-right: 70px;
}

.bd-po > .bd-po-foot {
    padding: 0 12px;
}


/* The clip goes HERE and not on .bd-truck. The re-order strip is a direct child of the card with a
   negative top margin that puts it entirely above the card's box - clipping the card would hide it
   and, worse, take its hit area with it, so the gesture would look present and do nothing. */
.bd-truck-body {
    overflow: hidden;
    border-radius: 4px;
}

.bd-pill {
    display: inline-block;
    padding: 0 6px;
    border-radius: 9px;
    font-size: .68rem;
    font-weight: 600;
}

.bd-pill-bad {
    background: var(--alro-danger-soft);
    color: var(--alro-danger);
}

.bd-pill-grey {
    background: var(--alro-surface-sunk);
    color: var(--alro-text-dim);
}

.bd-pill-info {
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
}

/* A PO line's note: the same bar as the short-shipment warning (.bd-po-short) - same place, size and
   left accent - in the information blue rather than amber, because a note is not a problem. It used
   to be a pill clipped to one line at the foot of the card, where it read as one more status chip. */
.bd-po-notebar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 12px 0;
    padding: 5px 8px;
    border-radius: var(--alro-radius);
    border-left: 3px solid var(--alro-primary);
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: .74rem;
}

.bd-po-notebar-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bd-flame {
    color: var(--alro-ink-red-54);
}

/* ---- purchase order card ---- */

.bd-po {
    /* No padding at the top or sides - the rail runs to those edges and the rows carry their own.
       overflow clips the rail's corners to the card's radius; safe here because, unlike the truck
       card, nothing inside a PO card hangs outside its box. */
    padding: 0 0 9px;
    overflow: hidden;
    margin-bottom: 6px;
    background: var(--alro-surface);
    /* A uniform 1px border. The 4px coloured stripe down the left is gone: the location tile owns
       that edge now, and two things competing for it read as one confused band. Urgency moves to the
       whole border instead, which is more visible rather than less. */
    border: 1px solid var(--alro-line-blue-88);
    border-radius: 5px;
    font-size: .78rem;
    box-shadow: 0 1px 1px var(--alro-shadow-navy-05-b);
}

    .bd-po:hover {
        border-color: var(--alro-line-blue-77);
        box-shadow: 0 2px 5px var(--alro-shadow-navy-10-b);
    }

    /* The WHOLE border turns red now that the left edge belongs to the location tile. A hot line is
   still findable by scanning the column, and from further away than a 4px stripe was. */
    .bd-po.bd-hot {
        border-color: var(--alro-line-red-54);
    }

        /* And a faint red wash behind the card, so a hot line reads as hot even where the border is lost in a
   busy column. Selection keeps its own blue: a selected hot card is still visibly selected. */
        .bd-po.bd-hot:not(.bd-sel) {
            background: var(--alro-bg-red-97);
        }

.bd-po-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.bd-po-size {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--alro-ink-gray-31);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .bd-po-size i {
        flex: 0 0 auto;
        color: var(--alro-text-faint);
    }

.bd-po-num {
    flex: 0 0 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--alro-ink-blue-35);
}

.bd-po-desc {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--alro-ink-gray-23);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-po-acts {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
}

.bd-po-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 12px;
    margin-top: 5px;
}

.bd-po-ready {
    color: var(--alro-success) !important;
}

.bd-po-ready-warn {
    color: var(--alro-ink-amber-37) !important;
    font-weight: 600;
}

.bd-po-ready-bad {
    color: var(--alro-ink-red-54) !important;
    font-weight: 600;
}

/* A partial receipt is a question for the vendor rather than a number to act on, so it is tinted
   rather than left to read as another figure. */
.bd-stat-partial {
    justify-self: start;
    max-width: 100%;
    margin: -2px 0;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--alro-warning-soft);
    cursor: help;
    white-space: nowrap;
    overflow: hidden;
}

    .bd-stat-partial .bd-stat-label,
    .bd-stat-partial b {
        color: var(--alro-warning);
    }

/* The same chip for a line whose leg is not linked, in its own colour: not a problem with the line or
   the vendor, but a link the ERP missed. */
.bd-stat-leg {
    justify-self: start;
    max-width: 100%;
    margin: -2px 0;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--alro-violet-soft);
    cursor: help;
    white-space: nowrap;
    overflow: hidden;
}

    .bd-stat-leg .bd-stat-label,
    .bd-stat-leg b {
        color: var(--alro-violet);
    }

.bd-po-foot {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
}

    .bd-po-foot:empty {
        display: none;
    }

/* ---- truck card ---- */

.bd-tabs {
    display: flex;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--alro-line);
}

.bd-tab {
    flex: 1 1 0;
    padding: 6px 4px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--alro-text-dim);
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    user-select: none;
}

    .bd-tab.active {
        color: var(--alro-ink-gray-15);
        border-bottom-color: var(--alro-line-blue-38);
    }

.bd-tab-hot {
    margin-left: 7px;
    color: var(--alro-ink-red-54);
    font-size: .74rem;
}

    .bd-tab-hot b {
        font-size: .8rem;
    }

@media (max-width: 900px) {
    .bd-tab {
        font-size: .72rem;
        padding: 6px 2px;
    }
}

/* Tinted in the light theme, where the PO cards are white. Expanded, a truck is a card full of cards,
   and with both on the same white the truck's own header read as just one more line in the list.
   In the dark theme it takes the PO cards' own ground: there the tint read as a lighter, washed-out
   slate beside the charcoal PO cards, and an open truck's well still sets its lines apart. */
:root {
    --bd-truck-ground: var(--alro-bg-blue-96);
}

    :root[data-theme="dark"] {
        --bd-truck-ground: var(--alro-surface);
    }

.bd-truck {
    position: relative;
    margin-bottom: 7px;
    background: var(--bd-truck-ground);
    border: 1px solid var(--alro-line-blue-88);
    border-radius: 5px;
    box-shadow: 0 1px 2px var(--alro-shadow-navy-06);
}

    .bd-truck:hover {
        border-color: var(--alro-line-blue-77);
        box-shadow: 0 2px 6px var(--alro-shadow-navy-12);
    }

    .bd-truck.expanded {
        border-color: var(--alro-line-blue-76);
    }

.bd-truck-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 3px;
}

.bd-truck-id {
    font-weight: 700;
    font-size: .95rem;
    color: var(--alro-ink-blue-35);
}

/* Says TRUCK before anything is read. A PO card has no icon here, so the two kinds tell apart at a
   glance even when a truck is open with its lines inside it. */
.bd-truck-icon {
    color: var(--alro-ink-blue-35);
    font-size: .9rem;
}

.bd-truck-btns {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* Even columns. They used to be weighted - .55fr for Lines, 1.25fr for the two dates - which left
   the row looking ragged and made the same field sit at a different x on every truck, so the column
   could not be read straight down. Six here rather than the legacy's five because this row carries
   Lines as well. */
.bd-truck-meta {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px 14px;
    padding: 6px 12px 9px;
    cursor: pointer;
}

.bd-truck-lines {
    padding: 10px;
    border-top: 1px solid var(--alro-line-blue-90-b);
    border-radius: 0 0 4px 4px;
    background: var(--alro-bg-blue-93-b);
}

    .bd-truck-lines .bd-po:last-child {
        margin-bottom: 0;
    }

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--alro-warning-soft);
    color: var(--alro-warning);
    box-shadow: 0 -1px 2px var(--alro-shadow-shade-20);
}

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 12px;
        top: 8px;
        cursor: pointer;
    }

@media (max-width: 1100px) {
    .bd-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        overflow-y: auto;
    }

    .alro-column {
        border-right: none;
        border-bottom: 1px solid var(--alro-line);
    }

    .alro-column-body {
        max-height: 60vh;
    }
}

/* Hidden until the page has scrolled far enough to have lost its header. */
.ec-top {
    position: fixed;
    bottom: 2em;
    left: 5px;
    z-index: 900;
    display: none;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--alro-ink-gray-00);
    background: var(--alro-bg-tint-80);
    border: 1px solid var(--alro-line-gray-66);
    border-radius: 4px;
    cursor: pointer;
}

    .ec-top.ec-top-on {
        display: block;
    }

/* ------------------------------------------------------------- deploy ---- */

/* A deploy, seen from a tab that was already open. See EConnect.Web/Security/SiteStatus.cs. */

.su-veil {
    position: fixed;
    inset: 0;
    /* Above everything, including the drill-in and its dialogs: there is nothing useful to do with
       any of them until the site is back. */
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: var(--alro-bg-shade-45);
}

.su-card {
    width: min(100%, 440px);
    padding: 30px 30px 24px;
    border-radius: 8px;
    background: var(--alro-surface);
    box-shadow: 0 .75rem 1.75rem var(--alro-shadow-navy-22);
    text-align: center;
}

    .su-card h2 {
        margin: 0 0 8px;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .su-card p {
        margin: 0 0 8px;
        color: var(--alro-text-dim);
        line-height: 1.5;
    }

.su-small {
    font-size: .8rem;
}

.su-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border: 4px solid var(--alro-primary-soft);
    border-top-color: var(--alro-primary);
    border-radius: 50%;
    animation: su-spin .9s linear infinite;
}

@keyframes su-spin {
    to {
        transform: rotate(360deg);
    }
}

.su-done {
    margin-bottom: 12px;
    font-size: 42px;
    color: var(--alro-success);
}

.su-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

/* For the tab that slept through the whole deploy and only found out from a build name. It has no
   reason to block anything, so it does not. */
.su-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--alro-line-strong);
    border-left: 3px solid var(--alro-primary);
    border-radius: var(--alro-radius);
    background: var(--alro-surface);
    box-shadow: 0 .5rem 1.25rem var(--alro-shadow-navy-18-b);
}

    .su-banner i {
        color: var(--alro-primary);
    }
/* The short-shipment warning on a PO card. Amber rather than red: the line is not broken, it is back
   and wants loading again - the red is reserved for things that failed. */
.bd-po-short {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 12px 0;
    padding: 5px 8px;
    border-radius: var(--alro-radius);
    border-left: 3px solid var(--alro-warning);
    background: var(--alro-warning-soft);
    color: var(--alro-warning);
    font-size: .74rem;
}

.bd-po-short-text {
    flex: 1;
    min-width: 0;
}

.bd-po-short-btn {
    flex: 0 0 auto;
}

/* --------------------------------------------------------------- accounts ---- */

/* The one time a setup or reset link is shown: the link, Copy and Email It on one line. */
.ac-linkrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ac-linkurl {
    flex: 1 1 auto;
    min-width: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: .8rem;
}

/* The buttons keep their size and their one line; the link is what gives way. */
.ac-linkrow > .alro-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Where a link was emailed. */
.ac-mailed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: .88rem;
    color: var(--alro-success);
}

/* The edit window's email, and the box that changes it. */
.ac-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ac-email-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alro-field.ac-email-box {
    width: min(320px, 100%);
    margin-bottom: 0;
}

/* Who a dialog is about, under its title. */
.ac-for {
    margin: 0 0 10px;
    font-size: .86rem;
    color: var(--alro-text-dim);
}

/* A box and its button on one line, the box no wider than a number needs. */
.ac-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 8px;
}

    .ac-inline .alro-field {
        margin-bottom: 0;
    }

/* A table in the account window keeps its distance from the buttons under it. */
.co-frame + .ac-inline {
    margin-top: 10px;
}

.ac-filter {
    width: 260px;
}

/* The account at a glance, label beside value. */
.ac-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 10px 24px;
    margin: 0 0 18px;
    font-size: .88rem;
}

    /* Access is a row of the details: its boxes sit beside the label like any other value, centred on
   it - without the space a checkbox keeps under itself in a form, which pushed them 4px high. */
    .ac-facts .ac-access {
        margin-bottom: 0;
    }

    .ac-facts .alro-checkbox {
        margin-bottom: 0;
    }

    .ac-facts dt {
        color: var(--alro-text-dim);
        font-weight: 600;
    }

    .ac-facts dd {
        margin: 0;
    }

/* What the account can open: short names on one line, the longer words on hover. */
.ac-access {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 4px;
}

.ac-access-fixed {
    margin-bottom: 4px;
    font-size: .88rem;
}

/* The one footer button that changes the account, kept away from Close. */
.alro-dialog-footer .ac-footer-left {
    margin-right: auto;
}

.ac-areas {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 2px 0 10px;
}

.ac-section {
    margin: 18px 0 8px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

    .ac-section:first-of-type {
        margin-top: 0;
    }

.ac-foot-left {
    justify-content: flex-start;
}

.ac-clip {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fills its column but never widens it, so a long email address is cut short on a narrow screen
   instead of pushing the row's buttons out of sight. */
.ac-by {
    max-width: 0;
    min-width: 100%;
}

/* ------------------------------------------------------------ setup page ---- */

.as-intro {
    margin: 0 0 16px;
    font-size: .88rem;
    line-height: 1.45;
}

/* Under the box it is about, closer to it than the next field is. */
.as-rule {
    margin: -10px 0 16px;
    font-size: .75rem;
    line-height: 1.4;
    color: var(--alro-text-dim);
}

.as-done b {
    font-weight: 700;
}

/* The user name a password manager files a reset against: present, never seen. */
.as-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------- customer orders ---- */

/* The page scrolls as one - its head, the filters and the list - with the list's column names held
   at the top as it goes, and it is centred at a reading width rather than stretched edge to edge. */
.co-page {
    height: 100%;
    overflow-y: auto;
}

.co-inner {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

.co-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.co-search {
    position: relative;
    flex: 1 1 360px;
    min-width: 0;
}

    .co-search .alro-field,
    .co-select.alro-field {
        margin: 0;
    }

    /* Room on the left for the magnifier and on the right for the hint and the clear button, which sit
   over the box rather than beside it. */
    .co-search .alro-input {
        height: 40px;
        padding: 0 140px 0 36px;
        border-radius: 8px;
        font-size: .9rem;
    }

.co-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .8rem;
    color: var(--alro-text-dim);
    pointer-events: none;
}

.co-search-tools {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-search-hint {
    font-size: .72rem;
    color: var(--alro-text-faint);
    white-space: nowrap;
}

.co-search-clear {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--alro-text-dim);
    cursor: pointer;
}

    .co-search-clear:hover {
        background: var(--alro-bg-blue-98);
        color: var(--alro-text);
    }

.co-select .alro-select {
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-weight: 600;
}

.co-period {
    flex: 0 0 170px;
}

.co-customer {
    flex: 0 1 260px;
    min-width: 180px;
}

.co-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.co-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--alro-line);
    border-radius: 16px;
    background: var(--alro-surface);
    color: var(--alro-text);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

    .co-pill:hover {
        border-color: var(--alro-line-strong);
    }

    .co-pill:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: 2px;
    }

.co-pill-count {
    font-size: .74rem;
    color: var(--alro-text-dim);
    font-variant-numeric: tabular-nums;
}

.co-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--alro-text-faint);
}

.co-pill.co-tone-ok .co-dot {
    background: var(--alro-success);
}

.co-pill.co-tone-info .co-dot {
    background: var(--alro-primary);
}

.co-pill.co-tone-warn .co-dot {
    background: var(--alro-warning);
}

.co-pill.co-tone-bad .co-dot {
    background: var(--alro-danger);
}

/* The lit pill is drawn the other way round from the rest - the page's own ink as its ground - so
   which is on reads at a glance in either theme. */
.co-pill-on,
.co-pill-on:hover {
    background: var(--alro-text);
    border-color: var(--alro-text);
    color: var(--alro-surface);
}

    .co-pill-on .co-pill-count {
        color: var(--alro-surface);
        opacity: .7;
    }

/* clip rather than hidden: hidden would make the card the sticky column names' scroller, and they
   would never stick. */
.co-card {
    overflow: clip;
    border: 1px solid var(--alro-line);
    border-radius: 12px;
    background: var(--alro-surface);
    box-shadow: 0 1px 2px var(--alro-shadow-navy-05-b);
}

.co-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 18px;
}

    .co-card-head b {
        font-size: .92rem;
    }

/* The count and the sort, at the right of the list's title. */
.co-card-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
}

.co-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-sort-label {
    font-size: .78rem;
    color: var(--alro-text-dim);
    white-space: nowrap;
}

.co-sort-select .alro-select {
    height: 32px;
    font-size: .8rem;
}

/* One grid for the column names and every row, so each value sits under its name. */
.co-grid {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.5fr) minmax(150px, 1.5fr) 70px 120px 16px;
    align-items: center;
    column-gap: 16px;
    padding: 0 18px;
}

    /* An account on several customer numbers: whose each order is, first. */
    .co-grid.co-with-customer {
        grid-template-columns: minmax(170px, 1.6fr) minmax(100px, .9fr) minmax(140px, 1.3fr) minmax(140px, 1.3fr) 60px 120px 16px;
    }

.co-grid-head {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 40px;
    border-top: 1px solid var(--alro-line);
    border-bottom: 1px solid var(--alro-line);
    background: var(--alro-surface);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

.co-day {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 18px 7px;
    border-bottom: 1px solid var(--alro-line);
    background: var(--alro-bg-blue-98);
}

    .co-day b {
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--alro-text-dim);
    }

    .co-day span {
        font-size: .72rem;
        color: var(--alro-text-faint);
    }

/* The whole row is the button that opens the order, so it is reached and opened from the keyboard
   like any other button. */
.co-row {
    width: 100%;
    min-height: 52px;
    padding-top: 9px;
    padding-bottom: 9px;
    border: 0;
    border-bottom: 1px solid var(--alro-line);
    background: transparent;
    color: var(--alro-text);
    font: inherit;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    text-align: left;
    cursor: pointer;
}

    .co-row:hover {
        background: var(--alro-bg-blue-98);
    }

        .co-row:hover .co-chev {
            color: var(--alro-text-dim);
        }

    .co-row:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: -2px;
    }

.co-c {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .co-c b,
    .co-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .co-c b {
        font-weight: 600;
    }

.co-c-order b,
.co-c-total b {
    font-weight: 700;
}

.co-sub {
    font-size: .74rem;
    color: var(--alro-text-dim);
}

.co-c-status {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.co-right {
    align-items: flex-end;
    text-align: right;
}

.co-chev {
    justify-self: end;
    font-size: .7rem;
    color: var(--alro-text-faint);
}

/* A status as a pill with a dot of its colour, the dot carrying the colour for anyone the wash alone
   does not reach. */
.co-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border: 1px solid var(--alro-line);
    border-radius: 999px;
    background: var(--alro-surface-sunk);
    color: var(--alro-text-dim);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

    .co-status::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .co-status.co-nodot::before {
        display: none;
    }

    .co-status.co-tone-ok {
        color: var(--alro-success);
        background: var(--alro-success-soft);
        border-color: var(--alro-line-green-86);
    }

    .co-status.co-tone-info {
        color: var(--alro-primary);
        background: var(--alro-primary-soft);
        border-color: var(--alro-primary-line);
    }

    .co-status.co-tone-warn {
        color: var(--alro-warning);
        background: var(--alro-warning-soft);
        border-color: var(--alro-line-amber-82);
    }

    .co-status.co-tone-bad {
        color: var(--alro-danger);
        background: var(--alro-danger-soft);
        border-color: var(--alro-danger-line);
    }

.co-empty {
    padding: 40px 18px;
    text-align: center;
    color: var(--alro-text-dim);
}

/* Where the list will be, while it is being read. The API and invite dialogs borrow it as well. */
.alro-loader.co-loading {
    justify-content: center;
    padding: 48px 0;
    font-size: .9rem;
}

.co-loading .alro-loader-spinner {
    width: 18px;
    height: 18px;
}

.co-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
}

/* "Open" in the dialog takes the plain badge, whose fill is the grey of the panel it sits on, so a
   ring keeps its shape in view. */
.co-facts .alro-badge-default {
    box-shadow: inset 0 0 0 1px var(--alro-line-strong);
}

/* A phone: the column names go, Lines goes, and each order becomes two lines - the order and its
   total over the PO and its status. */
@media (max-width: 760px) {
    .co-inner {
        padding: 16px 12px 28px;
    }

    .co-search-hint {
        display: none;
    }

    .co-search .alro-input {
        padding-right: 40px;
    }

    .co-period,
    .co-customer {
        flex: 1 1 160px;
    }

    .co-card-head {
        padding: 10px 14px;
    }

    .co-card-tools {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .co-grid-head {
        display: none;
    }

    .co-grid,
    .co-grid.co-with-customer {
        grid-template-columns: minmax(0, 1fr) auto 12px;
        grid-template-areas: "order total chev" "po status chev";
        row-gap: 4px;
        padding: 0 14px;
    }

        .co-grid.co-with-customer {
            grid-template-areas: "customer total chev" "order status chev" "po po chev";
        }

    .co-day {
        padding: 8px 14px 7px;
    }

    .co-c-customer {
        grid-area: customer;
    }

    .co-c-order {
        grid-area: order;
    }

    .co-c-po {
        grid-area: po;
    }

    .co-c-status {
        grid-area: status;
        justify-content: flex-end;
    }

    .co-c-lines {
        display: none;
    }

    .co-c-total {
        grid-area: total;
    }

    .co-chev {
        grid-area: chev;
    }
}

/* The order at a glance, across the top of the dialog like the head of an invoice: small labels
   over their values. */
.co-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px 24px;
    margin: 0 0 4px;
    padding: 12px 16px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
}

    .co-facts > div {
        min-width: 0;
    }

    /* Ship To takes the whole second row, below everything else. */
    .co-facts .co-fact-row {
        grid-column: 1 / -1;
    }

.co-ship-name {
    font-weight: 600;
}

.co-ship-gap {
    margin: 0 6px;
    color: var(--alro-text-dim);
}

.co-facts dt {
    margin-bottom: 3px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

.co-facts dd {
    margin: 0;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.co-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 8px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

/* The Lines heading, with the search for them at its right. */
.co-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 8px;
}

    .co-section-row .co-section {
        margin: 0;
    }

.alro-field.co-line-search {
    width: 260px;
    margin-bottom: 0;
}

/* All Certs beside the search, on the Lines header's right. */
.co-line-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-table td.co-no-match {
    padding: 18px 12px;
    text-align: center;
    color: var(--alro-text-dim);
}

.co-count {
    padding: 0 7px;
    border-radius: 9px;
    background: var(--alro-surface-sunk);
    font-size: .7rem;
    letter-spacing: 0;
    line-height: 18px;
}

/* As wide as the order's columns need, up to the window: a short order stays compact, and a long
   one shows every column without scrolling sideways. The scrollbar keeps its own room, so it never
   takes the last column's. */
.alro-dialog.co-dialog {
    width: max-content;
    min-width: min(760px, 100%);
    max-width: 100%;
}

    .alro-dialog.co-dialog > .alro-dialog-body {
        scrollbar-gutter: stable;
    }

/* Closer to the window's edges than other dialogs, for the room a long order's columns need. */
.alro-dialog-veil:has(> .alro-dialog.co-dialog) {
    padding: 12px;
}

.co-frame {
    overflow-x: auto;
    border: 1px solid var(--alro-line-strong);
    border-radius: var(--alro-radius);
}

/* The dialog's tables take a quiet heading rather than the list's dark bar, so three stacked in one
   dialog read as parts of one order, not three more lists. */
.co-table thead th {
    position: static;
    padding: 7px 8px;
    background: var(--alro-surface-sunk);
    color: var(--alro-text-dim);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--alro-line-strong);
}

.co-table td {
    padding: 7px 8px;
    border-top: 1px solid var(--alro-line);
}

.co-table tbody tr:first-child > td {
    border-top: 0;
}

/* Nothing in these tables opens anything, and a row that spans several RTs would only light up in
   part. */
.al-table.co-table tbody tr:hover > td {
    background: none;
}

/* What shipped against a line - its RT, heat and cert - set off from what was ordered. */
.co-table .co-ship-start {
    border-left: 1px solid var(--alro-line-strong);
}

/* A line's second and later RTs: a lighter rule, so they read as more of the same line. */
.co-table tbody tr.co-rt-more > td {
    border-top: 1px dashed var(--alro-line);
}

.co-table td.co-wrap {
    min-width: 180px;
    white-space: normal;
}

.co-table .co-narrow {
    width: 1%;
}

.co-table tfoot td {
    padding: 9px 8px;
    border-top: 1px solid var(--alro-line-strong);
    background: var(--alro-surface-sunk);
}

.co-total-label {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

.co-total {
    font-size: .9rem;
    font-weight: 700;
}

.co-none {
    color: var(--alro-text-dim);
}

/* Money credited back. */
.co-table .co-credit {
    color: var(--alro-danger);
}

.co-docs {
    display: inline-flex;
    gap: 6px;
}

.alro-button.co-doc {
    padding: 2px 9px;
    font-size: .74rem;
}

.co-note {
    margin: 8px 2px 0;
    color: var(--alro-text-dim);
    font-size: .8rem;
}

.co-wait {
    padding: 16px 0;
}

/* A phone: the cards and the facts go two to a row, every value to the left. */
@media (max-width: 760px) {
    .co-search,
    .co-customer {
        width: 100%;
    }

    .co-order,
    .co-with-release .co-order,
    .co-with-customer .co-order,
    .co-with-customer.co-with-release .co-order,
    .co-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Two to a row there are no columns to hold, so an empty release spot would only leave a gap. */
    .co-blank {
        display: none;
    }

    .co-order .co-right {
        align-items: flex-start;
        text-align: left;
    }
}

/* ---------------------------------------------------------------- emulating ---- */

/* An admin seeing the site as an account. Amber, at the very top and never scrolled away, so whose
   eyes the page is seen through is never in doubt. */
.ec-emulating {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 7px 16px;
    border-bottom: 1px solid var(--alro-line-amber-82);
    background: var(--alro-bg-amber-96);
    color: var(--alro-ink-amber-25);
    font-size: .86rem;
}

    .ec-emulating > i {
        font-size: 1rem;
    }

.ec-emulating-text {
    flex: 1 1 260px;
}

.ec-emulating-stop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--alro-warning);
    border-radius: var(--alro-radius);
    background: var(--alro-surface);
    color: var(--alro-ink-amber-25);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .ec-emulating-stop:hover {
        background: var(--alro-bg-amber-96);
    }

    .ec-emulating-stop:focus-visible {
        outline: 2px solid var(--alro-warning);
        outline-offset: 1px;
    }

/* ------------------------------------------------------------ employee home ---- */

.eh-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.eh-choice {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 10px;
    row-gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--alro-line-blue-89);
    border-radius: 8px;
    background: var(--alro-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .eh-choice:hover {
        background: var(--alro-bg-blue-96-b);
    }

    .eh-choice:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: 1px;
    }

    .eh-choice.eh-on {
        border-color: var(--alro-primary);
        box-shadow: inset 0 0 0 1px var(--alro-primary);
        background: var(--alro-primary-soft);
    }

.eh-icon {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 2px;
    font-size: 1.5rem;
    color: var(--alro-primary);
}

.eh-title {
    font-size: 1rem;
    font-weight: 600;
}

.eh-text {
    font-size: .82rem;
    line-height: 1.4;
    color: var(--alro-text-dim);
}

.eh-count {
    font-size: .76rem;
    font-weight: 600;
    color: var(--alro-text-dim);
}

.eh-panel {
    padding: 12px 14px;
    border: 1px solid var(--alro-line-blue-89);
    border-radius: 8px;
    background: var(--alro-surface);
}

.eh-toolbar {
    margin-bottom: 4px;
}

.eh-search {
    width: 280px;
}

.eh-group {
    margin-bottom: 10px;
}

.eh-group-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0 4px;
    border-bottom: 1px solid var(--alro-line-blue-95);
    font-size: .9rem;
}

.eh-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 6px 0 6px 12px;
    border-bottom: 1px solid var(--alro-line-blue-95);
    font-size: .86rem;
}

.eh-account-name {
    display: flex;
    flex-direction: column;
}

.eh-empty {
    padding: 12px 0;
}

/* Vendor View's group header: "+4 more" vendor numbers beside the first one's name, all of them on hover. */
.eh-more {
    align-self: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: help;
}

/* The vendors using their emailed links with no login yet, in columns across every vendor: the same
   grid on every row and on the heads above them, so each column lines up. */
/* The no-login vendors: one grid for the heads and every row, each row a subgrid on its columns, so a
   head always sits over its own column whatever any row's buttons take. */
.eh-visits {
    display: grid;
    grid-template-columns: 22px minmax(180px, 2fr) minmax(150px, 1.1fr) minmax(90px, .7fr) minmax(90px, .6fr) 50px minmax(130px, .8fr) minmax(100px, .6fr) auto;
    column-gap: 16px;
}

.eh-visit {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    row-gap: 6px;
    padding: 6px 0 6px 12px;
    border-bottom: 1px solid var(--alro-line-blue-95);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.eh-visit-heads {
    padding-top: 8px;
    padding-bottom: 4px;
    color: var(--alro-text-dim);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.eh-visit-num {
    text-align: right;
}

/* A no-login vendors' column head: sorts by its column, the caret saying which way. */
.eh-sort {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    user-select: none;
}

.eh-sort.eh-visit-num {
    justify-self: end;
}

.eh-sort:hover,
.eh-sort-on {
    color: var(--alro-text);
}

.eh-visit-pick {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--alro-primary);
    cursor: pointer;
}

.eh-visit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* Open PO and quote requests: a vendor group's, or one vendor's. Lit when there is something open. */
.eh-open {
    display: inline-flex;
    gap: 4px;
    align-self: center;
}

.eh-open-pill {
    padding: 1px 8px;
    border: 1px solid var(--alro-line);
    border-radius: 999px;
    color: var(--alro-text-dim);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.eh-open-on {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
}

/* Vendor View's search by PO or RFQ number: every request on it, in columns like the no-login vendors'. */
.eh-req-group {
    margin-bottom: 18px;
}

/* The PO and RFQ search results: one grid for the heads and every result, each a subgrid on its
   columns, as .eh-visits. */
.eh-reqs {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.6fr) minmax(130px, .8fr) 96px minmax(170px, 1.3fr) minmax(100px, .7fr) auto;
    column-gap: 16px;
}

.eh-req {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    row-gap: 6px;
    padding: 6px 0 6px 12px;
    border-bottom: 1px solid var(--alro-line-blue-95);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.eh-req-kind {
    margin-right: 6px;
    padding: 0 6px;
    border: 1px solid var(--alro-line-strong);
    border-radius: 4px;
    color: var(--alro-text-dim);
    font-size: .68rem;
    font-weight: 700;
}

.eh-req-status {
    padding: 1px 8px;
    border: 1px solid var(--alro-line);
    border-radius: 999px;
    color: var(--alro-text-dim);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.eh-req-open {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
}

.eh-req-answered {
    border-color: var(--alro-success);
    background: var(--alro-success-soft);
    color: var(--alro-success);
}

@media (max-width: 760px) {
    .eh-reqs {
        display: block;
    }

    .eh-req {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .eh-req > .eh-account-name:first-child {
        flex: 1 0 100%;
    }

    .eh-req.eh-visit-heads {
        display: none;
    }
}

/* The invite's setup link, to copy if the email does not arrive. */
.eh-linkurl {
    width: 100%;
    margin: 8px 0;
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: .82rem;
}

/* A phone: the vendor on its own line, the rest wrapping under it. */
@media (max-width: 760px) {
    .eh-visits {
        display: block;
    }

    .eh-visit {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .eh-visit .eh-account-name {
        flex: 1 0 100%;
    }

    .eh-visit-heads {
        display: none;
    }
}

/* A vendor using its emailed links with no login yet: a quiet chip where View As would be, since there
   is no account to view as. */
.eh-visit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px dashed var(--alro-line-strong);
    border-radius: 999px;
    color: var(--alro-text-dim);
    font-size: .78rem;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .eh-search {
        width: 100%;
    }
}

/* ------------------------------------------------------------------ API keys ---- */

.alro-dialog.ak-dialog {
    width: min(1000px, 100%);
}

.ak-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: -4px 0 14px;
    border-bottom: 1px solid var(--alro-line-strong);
}

.ak-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: -1px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--alro-text-dim);
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
}

    .ak-tab:hover {
        color: var(--alro-text);
    }

    .ak-tab:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: -2px;
    }

.ak-tab-on {
    border-bottom-color: var(--alro-primary);
    color: var(--alro-primary);
}

.ak-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

/* Making a key: its name, when it expires, and the button. */
.ak-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
}

    .ak-form .alro-field {
        margin-bottom: 0;
    }

.ak-name {
    flex: 1 1 260px;
}

.ak-expiry {
    width: 160px;
}

.ak-form-buttons {
    display: flex;
    gap: 8px;
}

/* The new key, the one time it is shown. */
.ak-new {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--alro-success);
    border-radius: var(--alro-radius);
    background: var(--alro-success-soft);
}

.ak-new-head {
    margin-bottom: 8px;
    color: var(--alro-success);
}

.ak-new-key {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ak-new-key code {
        flex: 1 1 auto;
        min-width: 0;
        padding: 7px 10px;
        border: 1px solid var(--alro-line-strong);
        border-radius: var(--alro-radius);
        background: var(--alro-surface);
        color: var(--alro-text);
        font-size: .9rem;
        overflow-wrap: anywhere;
        user-select: all;
    }

.ak-new-warn {
    margin: 8px 0;
    font-size: .84rem;
}

.ak-new-foot {
    display: flex;
    justify-content: flex-end;
}

.ak-masked,
.ak-call {
    font-size: .8rem;
}

.ak-docs {
    font-size: .88rem;
}

    .ak-docs h4 {
        margin: 16px 0 6px;
        font-size: .74rem;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--alro-text-dim);
    }

    .ak-docs p {
        margin: 0 0 8px;
        line-height: 1.5;
    }

.ak-code {
    margin: 0 0 8px;
    padding: 9px 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
    font-size: .8rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* How to Call It: every call an expander, each holding what it is asked with, a Send that tries it,
   how to make it yourself, and what it answers with - an example until it has been sent. */
/* What the API is, in grey under everything else on How to Call It. */
.ak-docs-foot {
    margin-top: 18px;
    padding: 10px 12px;
    font-size: .8rem;
    line-height: 1.55;
    color: var(--alro-text-dim);
    background: var(--alro-surface-sunk);
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
}

.ak-ref-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin-bottom: 6px;
}

.ak-ref-address {
    flex: 1 1 280px;
    min-width: 0;
}

    .ak-ref-address .ak-code {
        margin-bottom: 0;
    }

.alro-field.ak-ref-key {
    width: min(300px, 100%);
    margin-bottom: 0;
}

.ak-calls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ak-callbox {
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
}

.ak-callbox-open {
    border-color: var(--alro-line-strong);
}

.ak-callbox-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    font: inherit;
    text-align: left;
    color: var(--alro-text);
    background: none;
    border: 0;
    cursor: pointer;
}

    .ak-callbox-head:hover {
        background: var(--alro-surface-sunk);
    }

    .ak-callbox-head:focus-visible {
        outline: 2px solid var(--alro-primary);
        outline-offset: -2px;
    }

.ak-chevron {
    font-size: .7rem;
    color: var(--alro-text-dim);
    transition: transform .15s ease;
}

.ak-callbox-open .ak-chevron {
    transform: rotate(90deg);
}

.ak-verb {
    padding: 1px 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--alro-success);
    border: 1px solid currentColor;
    border-radius: 4px;
}

.ak-route {
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.ak-callbox-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--alro-text-dim);
}

.ak-answer {
    flex: 0 0 auto;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--alro-surface-sunk);
    border: 1px solid var(--alro-line);
}

.ak-callbox-body {
    padding: 4px 14px 14px 36px;
    border-top: 1px solid var(--alro-line);
}

    .ak-callbox-body > p:first-child {
        margin-top: 10px;
    }

    .ak-callbox-body h5 {
        margin: 14px 0 6px;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--alro-text-dim);
    }

.ak-sample-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.ak-sample-tab {
    padding: 4px 10px;
    font: inherit;
    font-size: .82rem;
    color: var(--alro-text-dim);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--alro-radius);
    cursor: pointer;
}

    .ak-sample-tab:hover {
        color: var(--alro-text);
    }

.ak-sample-on {
    color: var(--alro-text);
    background: var(--alro-surface-sunk);
    border-color: var(--alro-line);
}

.ak-sample {
    white-space: pre-wrap;
}

.ak-example {
    color: var(--alro-text-dim);
}

.ak-try-args {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    margin-bottom: 6px;
}

/* The boxes keep no space under them here, so Send sits level with them. */
.alro-field.ak-try-arg {
    flex: 1 1 170px;
    max-width: 280px;
    margin-bottom: 0;
}

.ak-try-run {
    margin-left: auto;
}

.ak-response {
    margin-top: 12px;
    padding: 10px 12px 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
}

.ak-response-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}

.ak-response-title {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

.ak-response-address {
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.ak-result {
    min-height: 160px;
    max-height: 420px;
    margin: 0;
    overflow: auto;
    white-space: pre;
}

.ak-result-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    font-style: italic;
    color: var(--alro-text-dim);
}

.ak-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
}

    .ak-file > i {
        font-size: 1.6rem;
        color: var(--alro-text-dim);
    }

.ak-file-name {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Invite: a new invite and its link, the invites still open, and who is already on the same numbers. */
.alro-dialog.iv-dialog {
    width: min(920px, 100%);
}

.iv-head {
    margin: 16px 0 6px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

.iv-field {
    flex: 1 1 170px;
}

.iv-email {
    flex-basis: 240px;
}

.iv-you {
    margin-left: 6px;
}

/* Admin > Accounts: an account's API calls, which can be many. */
/* The account window is wider than the other account dialogs, so its API Calls tab shows each call
   whole on one line rather than in a table that scrolls sideways (Dan, 2026-11-18). */
.alro-dialog.al-wide.ac-window {
    width: min(1100px, 100%);
}

.ac-calls {
    max-height: 60vh;
    overflow: auto;
}

    /* Should a call still be longer than its column, its path breaks where it must, and an empty Answer
   column claims no room: neither may push the table past the window. */
    .ac-calls .ak-call {
        word-break: break-all;
    }

    .ac-calls td.co-wrap:last-child {
        min-width: 0;
    }

/* Nothing to list on a tab of the account window: said in the middle of where the table would be. */
.ac-none {
    padding: 22px 0;
    text-align: center;
}

@media (max-width: 760px) {
    .ak-callbox-body {
        padding-left: 14px;
    }

    .ak-callbox-text {
        display: none;
    }
}

/* ------------------------------------------------------------- vendor ---- */

/* The pages a vendor reaches from an emailed link - see VendorLayout, which wears MainLayout's bar
   (ec-bar). The shell grows with its content instead of filling the screen, because these are
   reading pages and the window (which the back-to-top button watches) is what should scroll. */

.vp-shell {
    height: auto;
    min-height: 100vh;
}

.vp-main {
    display: flex;
    flex-direction: column;
}

/* border-box: a full width plus its own padding ran 32px past the window on every vendor page. */
.vp-page {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Home, with how many requests are open on it: a quiet counter in the cards' count blue, not an
   alarm - an open request is the vendor's work, not an error. */
.vp-tab {
    gap: 6px;
}

.vp-tab-count {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--alro-primary);
    background: var(--alro-primary-soft);
}

.vp-footer {
    padding: 14px 16px 24px;
    text-align: center;
    font-size: .82rem;
    color: var(--alro-text-dim);
    border-top: 1px solid var(--alro-line);
}

.vp-footer a {
    color: var(--alro-primary);
}

.vp-section {
    margin-top: 16px;
}

/* ---- the open-request lists (VendorRequestCards): the Orders page's card ---- */

/* The title and its count on the card itself, and the column names in small capitals under a line,
   rather than a dark title bar stacked on a dark table head. The tables keep their sorting. */
/* Only as tall as what is in it. A section card is made to fill its slot (height: 100%), which on
   /requests - inside the page's full-height column - stretched each card to the window. */
.vp-list.mt-card {
    flex: none;
    height: auto;
    border: 1px solid var(--alro-line);
    border-radius: 12px;
    background: var(--alro-surface);
    box-shadow: 0 1px 2px var(--alro-shadow-navy-05-b);
}

/* The History view loading: a spinner where the table will be, under the same line as an empty card. */
.vp-list .vp-card-loader {
    justify-content: center;
    padding: 26px 18px;
    border-top: 1px solid var(--alro-line);
}

/* Under a History table: Load More, and why the last page did not load if it did not. */
.vp-history-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    padding: 12px 18px 14px;
    border-top: 1px solid var(--alro-line);
}

.vp-history-error {
    font-size: .85rem;
    color: var(--alro-danger);
}

/* ---- the open lists' refresh clock (VendorRefreshClock), right of the page title ---- */

.vp-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--alro-text-dim);
    font: inherit;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
}

.vp-refresh:hover:not(:disabled) {
    border-color: var(--alro-line);
    color: var(--alro-text);
}

.vp-refresh:focus-visible {
    outline: 2px solid var(--alro-primary);
    outline-offset: 2px;
}

.vp-refresh:disabled {
    cursor: default;
}

.vp-refresh-failed {
    color: var(--alro-warning);
}

/* Two digits' room, so the words beside it do not shuffle as it counts from 10 down to 9. */
.vp-refresh-secs {
    display: inline-block;
    min-width: 2ch;
    text-align: right;
}

.vp-refresh-wheel {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--alro-primary);
}

.vp-refresh-ring {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg);
}

.vp-refresh-track,
.vp-refresh-left {
    fill: none;
    stroke-width: 3;
}

.vp-refresh-track {
    stroke: var(--alro-line);
}

/* What is left of the minute, emptying clockwise from the top. Its duration is set inline from
   VendorDashboardViewModel.RefreshSeconds. */
.vp-refresh-left {
    stroke: currentColor;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation-name: vp-refresh-countdown;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes vp-refresh-countdown {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 100;
    }
}

@media (max-width: 600px) {
    .vp-refresh-text {
        display: none;
    }
}

/* ---- browser notifications for new requests: the bell (VendorNotifyBell) and the menu row ---- */

.vp-bell-wrap {
    position: relative;
    display: inline-flex;
}

.vp-bell {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--alro-line);
    border-radius: 50%;
    background: var(--alro-surface);
    color: var(--alro-text-dim);
    font-size: .85rem;
    cursor: pointer;
}

.vp-bell:hover {
    border-color: var(--alro-primary);
    color: var(--alro-primary);
}

.vp-bell:focus-visible {
    outline: 2px solid var(--alro-primary);
    outline-offset: 2px;
}

.vp-bell-on {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
}

.vp-bell-blocked,
.vp-bell-blocked:hover {
    border-color: var(--alro-line);
    color: var(--alro-warning);
}

/* How to allow them again, under the bell: only the person can, from the browser's own setting. */
.vp-bell-help {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: min(300px, 80vw);
    padding: 10px 12px;
    border: 1px solid var(--alro-line);
    border-radius: 10px;
    background: var(--alro-surface);
    box-shadow: 0 12px 40px var(--alro-shadow-shade-22);
    color: var(--alro-text);
    font-size: .8rem;
    line-height: 1.45;
    white-space: normal;
}

.vp-bell-help-close {
    flex: none;
    border: 0;
    background: transparent;
    color: var(--alro-text-dim);
    cursor: pointer;
}

/* The one-time offer under the dashboards' title (VendorNotifyOffer): the site's blue info tint, its
   buttons at the end, wrapping under the words on a phone. */
.vp-notify-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 10px 12px 10px 14px;
    border: 1px solid var(--alro-primary);
    border-radius: var(--alro-radius);
    background: var(--alro-primary-soft);
    color: var(--alro-text);
}

.vp-notify-offer-icon {
    color: var(--alro-primary);
    font-size: 1.05rem;
}

.vp-notify-offer-text {
    flex: 1 1 260px;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

.vp-notify-offer-actions {
    display: flex;
    gap: 8px;
}

.ec-notify-blocked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: var(--alro-warning);
    font-size: .8rem;
}

/* Under the Notifications row: what it does, or how to allow them again once blocked. */
.ec-notify-help {
    max-width: 260px;
    margin: 0;
    padding: 0 8px 6px;
    font-size: .75rem;
    line-height: 1.4;
    color: var(--alro-text-dim);
}

.vp-list .mt-card-head {
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 0;
    background: transparent;
    color: var(--alro-text);
    font-size: .92rem;
    letter-spacing: normal;
    text-transform: none;
}

.vp-list .mt-count {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: .72rem;
    font-weight: 700;
}

.vp-list .al-scroll {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.vp-list .al-table {
    font-size: .86rem;
}

.vp-list .al-table thead th {
    padding: 11px 12px;
    border-top: 1px solid var(--alro-line);
    border-bottom: 1px solid var(--alro-line);
    background: var(--alro-surface);
    color: var(--alro-text-dim);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.vp-list .al-sortable:hover {
    background: var(--alro-bg-blue-98);
    color: var(--alro-text);
}

.vp-list .al-table td {
    padding: 10px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--alro-line);
}

.vp-list .al-table tbody tr:last-child > td {
    border-bottom: 0;
}

.vp-list .al-table th:first-child,
.vp-list .al-table td:first-child {
    padding-left: 18px;
}

.vp-list .al-table th:last-child,
.vp-list .al-table td:last-child {
    padding-right: 18px;
}

.vp-list .al-table tbody tr.al-alt > td {
    background: transparent;
}

.vp-list .al-table tbody tr:hover > td {
    background: var(--alro-bg-blue-98);
}

/* No margin: a <p>'s default one pushed the line under the header down, so an empty card's header
   looked taller than one over a table. */
.vp-list .mt-empty {
    margin: 0;
    padding: 26px 18px;
    border-top: 1px solid var(--alro-line);
}

/* A link, not a button: it only opens the request, and a link can be opened in a new tab. */
.vp-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--alro-primary);
    border-radius: var(--alro-radius);
    color: var(--alro-primary);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.vp-view:hover {
    background: var(--alro-primary);
    color: var(--alro-surface);
}

/* Top right of each request card: History, or back to the open requests. */
.vp-card-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.vp-card-note {
    font-size: .78rem;
    font-weight: 400;
    color: var(--alro-text-dim);
}

.vp-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--alro-line-strong);
    border-radius: var(--alro-radius);
    background: var(--alro-surface);
    color: var(--alro-text);
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vp-card-toggle:hover {
    border-color: var(--alro-primary);
    color: var(--alro-primary);
}

.vp-card-toggle:focus-visible {
    outline: 2px solid var(--alro-primary);
    outline-offset: 2px;
}

.vp-card-toggle[aria-pressed="true"] {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
}

/* The two sides joined into one switch, the side showing drawn over the shared edge. */
.vp-card-switch {
    display: inline-flex;
}

.vp-card-switch .vp-card-toggle {
    position: relative;
}

.vp-card-switch .vp-card-toggle:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.vp-card-switch .vp-card-toggle:last-child {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.vp-card-switch .vp-card-toggle[aria-pressed="true"],
.vp-card-switch .vp-card-toggle:focus-visible {
    z-index: 1;
}

.vp-card-switch .vp-card-toggle[aria-pressed="true"] {
    cursor: default;
}

@media (max-width: 600px) {
    .vp-card-note {
        display: none;
    }
}

/* ---- one request ---- */

.vp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--alro-primary);
    font-size: .85rem;
    text-decoration: none;
}

.vp-back:hover {
    text-decoration: underline;
}

.vp-question {
    margin: 0 0 14px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--alro-text);
}

.vp-moves {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.vp-moves-arrow {
    color: var(--alro-text-dim);
}

.vp-address {
    flex: 1 1 200px;
    padding: 10px 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    color: var(--alro-text);
    line-height: 1.5;
}

.vp-address-new {
    border-color: var(--alro-primary);
}

.vp-address-label {
    margin-bottom: 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--alro-text-dim);
}

/* ---- the PO request page (ExpediteResponse): the quote page's layout, 2026-11-20 ---- */

.vx-answer {
    padding: 20px 18px 18px;
}

.vx-question {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--alro-text);
}

/* The purchasing agent's comment as a note from them: their initials, their name, and the words in
   a bubble that points at them. */
.vx-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
}

.vx-note-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.vx-note-bubble {
    flex: 1;
    min-width: 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--alro-line);
    border-radius: 4px 12px 12px 12px;
    background: var(--alro-surface-sunk);
}

.vx-note-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-bottom: 4px;
    font-size: .8rem;
    color: var(--alro-text-dim);
}

.vx-note-who b {
    font-size: .86rem;
    color: var(--alro-text);
}

.vx-note-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--alro-text);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ---- both answer forms (ExpediteResponse, RfqResponseForm) ---- */

.vp-step-title {
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--alro-text);
}

.vp-hint {
    margin: 4px 0 8px;
    font-size: .82rem;
    color: var(--alro-text-dim);
}

/* Two big answers rather than radio buttons: each is the whole of a step, and a vendor on a phone
   should be able to hit one with a thumb. */
.vp-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vp-choice {
    display: inline-flex;
    flex: 1 1 200px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface);
    color: var(--alro-text);
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.vp-choice:hover {
    border-color: var(--alro-primary);
}

.vp-choice-on {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
}

.vp-choice-yes.vp-choice-on {
    border-color: var(--alro-success);
    background: var(--alro-success-soft);
}

.vp-choice-no.vp-choice-on {
    border-color: var(--alro-danger);
    background: var(--alro-danger-soft);
}

.vp-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
    margin-top: 12px;
}

.vp-textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

.vp-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.vp-problems {
    margin-top: 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--alro-danger);
    border-radius: var(--alro-radius);
    background: var(--alro-danger-soft);
    color: var(--alro-danger);
    font-size: .88rem;
}

.vp-problems-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.vp-problems ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.vp-summary {
    margin: 12px 0 16px;
    padding: 12px 16px 12px 32px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface);
    color: var(--alro-text);
    line-height: 1.6;
}

.vp-review {
    max-width: 560px;
}

/* ---- the quote page (RfqResponseForm): Dan's mockup B, 2026-11-19 ---- */

/* What Alro is asking for on the left, in view while the answer fills the right; one column on a
   narrow screen, the request first. */
.vq-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-top: 6px;
}

.vq-left {
    position: sticky;
    top: 12px;
}

.vq-card {
    margin-bottom: 14px;
    border: 1px solid var(--alro-line);
    border-radius: 12px;
    background: var(--alro-surface);
    box-shadow: 0 1px 2px var(--alro-shadow-navy-05-b);
}

/* The vendor's PDFs on a quote request (RfqFiles): the list, and the Help Desk's drop box - the file
   input covers the whole box, so a drop anywhere on it lands in the input. */
.vq-files {
    padding: 14px 18px;
}

.vq-files-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.vq-files-hint,
.vq-files-note {
    font-size: 12px;
    color: var(--alro-text-faint);
}

.vq-files-note {
    margin: 8px 0 0;
}

.vq-file-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.vq-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--alro-line);
}

.vq-file:first-child {
    border-top: 0;
}

.vq-file-icon {
    color: var(--alro-danger);
}

.vq-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--alro-primary);
}

.vq-file-meta {
    font-size: 12px;
    color: var(--alro-text-dim);
}

.vq-file-remove {
    border: 0;
    border-radius: var(--alro-radius);
    background: transparent;
    color: var(--alro-text-dim);
    padding: 2px 6px;
    cursor: pointer;
}

.vq-file-remove:hover {
    background: var(--alro-danger-soft);
    color: var(--alro-danger);
}

.vq-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 18px 14px;
    border: 1px dashed var(--alro-line-strong);
    border-radius: 8px;
    background: var(--alro-surface-sunk);
    color: var(--alro-text-dim);
    text-align: center;
    cursor: pointer;
}

.vq-dropzone:hover,
.vq-dropzone.over {
    border-color: var(--alro-primary);
    background: var(--alro-primary-soft);
}

.vq-dropzone i {
    font-size: 17px;
}

.vq-dropzone-link {
    color: var(--alro-primary);
    font-size: 13px;
}

.vq-dropzone-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vq-dropzone.busy,
.vq-dropzone.busy .vq-dropzone-cover {
    cursor: progress;
}

.vq-files-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--alro-line-strong);
    border-top-color: var(--alro-primary);
    border-radius: 50%;
    animation: su-spin 0.8s linear infinite;
}

.vq-files-error {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--alro-danger);
}

.vq-summary {
    padding: 16px 18px;
}

.vq-eyebrow {
    font-size: .8rem;
    color: var(--alro-text-dim);
}

/* "Description 2": the quantity large, its unit in a chip, then its size. */
.vq-qty {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-top: 6px;
    color: var(--alro-text);
}

.vq-qty-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.vq-qty-unit {
    padding: 1px 10px;
    border: 1px solid var(--alro-line-strong);
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
}

.vq-qty-dot {
    color: var(--alro-text-faint);
}

.vq-qty-size {
    font-size: .95rem;
}

/* The description exactly as Alro sent it: monospace, so its spacing reads as it was typed. */
.vq-desc {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--alro-line);
    border-radius: 6px;
    background: var(--alro-surface-sunk);
    color: var(--alro-text);
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vq-desc-caption {
    margin-top: 4px;
    font-size: .75rem;
    color: var(--alro-text-dim);
}

.vq-facts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
    margin: 14px 0 0;
    font-size: .86rem;
}

.vq-facts dt {
    color: var(--alro-text-dim);
}

.vq-facts dd {
    margin: 0;
    color: var(--alro-text);
}

.vq-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--alro-line);
}

.vq-k {
    display: block;
    margin-bottom: 6px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--alro-text-faint);
}

.vq-note {
    margin: 0 0 6px;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--alro-text);
    white-space: pre-line;
}

/* "Can you quote this?" - the first thing on the right. */
.vq-ask {
    padding: 20px 18px;
    text-align: center;
}

.vq-ask-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--alro-text);
}

.vq-ask-choices {
    justify-content: center;
    margin-top: 14px;
}

.vq-ask-choices .vp-choice {
    flex: 0 1 230px;
    justify-content: center;
}

/* Each step after the answer, numbered in the order it is given. */
.vq-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--alro-line);
}

.vq-num {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--alro-primary-soft);
    color: var(--alro-primary);
    font-size: .85rem;
    font-weight: 700;
}

.vq-step-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vq-step-title b {
    font-size: .98rem;
    color: var(--alro-text);
}

.vq-step-sub {
    font-size: .82rem;
    color: var(--alro-text-dim);
}

.vq-step-state {
    font-size: .8rem;
    font-weight: 700;
    color: var(--alro-text-dim);
    white-space: nowrap;
}

.vq-step-body {
    padding: 16px 18px;
}

/* "Requirements C": every note line Alro sent, numbered, in order. A requirement's text is bold and,
   once the vendor can quote, asks "Can you meet this?" with a Yes and a No. */
.vq-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--alro-line);
}

.vq-sheet-head b {
    font-size: .98rem;
    color: var(--alro-text);
}

.vq-lines {
    margin: 0;
    padding: 4px 18px;
    list-style: none;
}

.vq-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--alro-line);
    font-size: .9rem;
    color: var(--alro-text);
}

.vq-line:last-child {
    border-bottom: 0;
}

.vq-line-num {
    flex: 0 0 20px;
    font-size: .78rem;
    color: var(--alro-text-dim);
}

.vq-line-text {
    flex: 1 1 200px;
    min-width: 0;
    line-height: 1.4;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.vq-line-req .vq-line-text {
    font-weight: 600;
}

/* Stands out a little (Dan): a muted yellow, not an alarm. */
.vq-line-ask {
    padding: 3px 10px;
    border: 1px solid var(--alro-warning-soft);
    border-color: color-mix(in srgb, var(--alro-warning) 30%, var(--alro-warning-soft));
    border-radius: 6px;
    background: var(--alro-warning-soft);
    color: var(--alro-warning);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.vq-yn {
    display: inline-flex;
    gap: 6px;
}

.vq-yn-btn {
    min-width: 52px;
    padding: 4px 12px;
    border: 1px solid var(--alro-line-strong);
    border-radius: 6px;
    background: var(--alro-surface);
    color: var(--alro-text);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.vq-yn-btn:hover:not(:disabled) {
    border-color: var(--alro-primary);
}

.vq-yn-btn:focus-visible {
    outline: 2px solid var(--alro-primary);
    outline-offset: 2px;
}

.vq-yn-yes.vq-yn-on {
    border-color: var(--alro-success);
    background: var(--alro-success-soft);
    color: var(--alro-success);
}

.vq-yn-no.vq-yn-on {
    border-color: var(--alro-danger);
    background: var(--alro-danger-soft);
    color: var(--alro-danger);
}

/* Send, greyed out until everything required is in, with what is still needed beside it. */
.vq-send {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
    margin-top: 14px;
}

.vq-missing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--alro-text-dim);
}

.vq-missing b {
    color: var(--alro-text);
}

/* ---- an answered request, read-only (the History view's View link) ---- */

.vq-answered {
    margin-bottom: 12px;
}

/* Locked, but read as answers rather than greyed out: text keeps its colour, the chosen answer stays
   lit, and the ones not chosen fade. */
.vq-readonly .alro-input:disabled,
.vq-readonly .alro-select:disabled {
    color: var(--alro-text);
    opacity: 1;
}

.vq-readonly .vp-choice:disabled,
.vq-readonly .vq-yn-btn:disabled {
    cursor: default;
}

.vq-readonly .vp-choice:not(.vp-choice-on):disabled,
.vq-readonly .vq-yn-btn:not(.vq-yn-on):disabled {
    opacity: .45;
}

.vq-readonly .vp-choice:not(.vp-choice-on):disabled:hover {
    border-color: var(--alro-line);
}

/* A long answer as it was sent, or "None." */
.vq-text {
    padding: 10px 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
    color: var(--alro-text);
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vq-none {
    margin: 0;
    font-size: .88rem;
    color: var(--alro-text-dim);
}

@media (max-width: 1000px) {
    .vq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vq-left {
        position: static;
    }
}

/* ---- quote form, mockup layout ---- */

/* The one inner padding for a vendor card's body. A section card's body has none of its own (it is
   made for tables that run edge to edge), so every vendor card holding text or a form is listed here:
   the dashboard's "create an account" and "add vendor" cards. */
.vp-signup .mt-card-body,
.vp-pad {
    padding: 14px 16px;
}

/* The sunken box: the verification popup's spec list. */
.vp-verify {
    padding: 10px 12px;
    border: 1px solid var(--alro-line);
    border-radius: var(--alro-radius);
    background: var(--alro-surface-sunk);
}

.vp-narrow {
    max-width: 460px;
}

.vp-decline .mt-card-head {
    color: var(--alro-danger);
    background: var(--alro-danger-soft);
}

.vp-actions-start {
    justify-content: flex-start;
}

/* ---- "Create an account", along the top of every emailed-link page (VendorSignUpBar) ---- */

.vp-signup-text {
    margin: 0;
    line-height: 1.5;
}

/* The offer: one blue bar, its button at the end, wrapping under the words on a phone. */
.vp-signup.alro-infobar {
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 10px 8px 14px;
}

.vp-signup.alro-infobar .alro-infobar-text {
    min-width: 240px;
}

/* Sign in is a link to a page of its own, in the bar and on the top bar, dressed as a button. */
.vp-signin,
.vp-signin:hover {
    text-decoration: none;
}

/* The form it opens into, in place and in the same blue: the fields in one row on a wide screen. */
.vp-signup-form {
    margin-bottom: var(--alro-gap);
    padding: 12px 14px;
    border-left: 3px solid var(--alro-primary);
    border-radius: var(--alro-radius);
    background: var(--alro-primary-soft);
}

.vp-signup-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 10px 14px;
    margin-top: 10px;
}

.vp-signup-row .alro-field {
    margin-bottom: 0;
}

.vp-signup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-signup-error.alro-infobar {
    margin: 10px 0 0;
}

@media (max-width: 900px) {
    .vp-signup-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- quote form, continued: the variance boxes, the verification popup ---- */

.vp-textarea-short {
    min-height: 60px;
    margin-bottom: 10px;
}

.vp-verify {
    margin-bottom: 12px;
}

.vp-verify-ok,
.vp-verify-warn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
}

.vp-verify-ok {
    color: var(--alro-success);
}

.vp-verify-warn {
    color: var(--alro-warning);
}

/* In the heading's orange: one warning, not a red list under an orange one. */
.vp-verify-list {
    margin: 6px 0 0;
    padding-left: 22px;
    color: var(--alro-warning);
}

/* The mockup's three full-width choices, one above the other. */
.vp-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-stack .alro-button {
    width: 100%;
    justify-content: center;
}

/* ---- expedite answer form, and the previews' request-type switcher ---- */

.vp-gap {
    margin-top: 16px;
}

/* The development preview's request-type switcher. */
.vp-preview-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}

.vp-preview-types .vp-choice {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: .8rem;
}
