@import '_content/DogWatchFSM.Shared.UI/DogWatchFSM.Shared.UI.ld4t9t4699.bundle.scp.css';

/* /Components/Bucket.razor.rz.scp.css */
.bucket[b-uo03hmqgte] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    min-width: 0;
}

/* Tone is carried by the top rail rather than a background wash: a tinted card is
   invisible in direct sun, and a solid bar survives. */
.bucket.overdue[b-uo03hmqgte]   { border-top-color: var(--overdue); }
.bucket.due-soon[b-uo03hmqgte]  { border-top-color: var(--due-soon); }
.bucket.scheduled[b-uo03hmqgte] { border-top-color: var(--scheduled); }
.bucket.unknown[b-uo03hmqgte]   { border-top-color: var(--unknown); }

.bucket header[b-uo03hmqgte] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.bucket h2[b-uo03hmqgte] {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.count[b-uo03hmqgte] {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text);
}

.bucket.overdue .count[b-uo03hmqgte] { color: var(--overdue); }
.bucket.due-soon .count[b-uo03hmqgte] { color: var(--due-soon); }

.bucket-note[b-uo03hmqgte] {
    margin: 0 0 var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-subtle);
    line-height: var(--leading-normal);
}

.bucket-empty[b-uo03hmqgte] {
    margin: 0;
    padding: var(--space-4) 0;
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

.bucket ul[b-uo03hmqgte] { list-style: none; margin: 0; padding: 0; }

.bucket li[b-uo03hmqgte] {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border);
}

.bucket li:first-child[b-uo03hmqgte] { border-top: none; }

.row-main[b-uo03hmqgte] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
}

.pet[b-uo03hmqgte] {
    font-weight: var(--weight-semibold);
    color: var(--text);
}

.due[b-uo03hmqgte] {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    padding: 2px var(--space-2);
    border-radius: var(--radius-pill);
}

.bucket.overdue .due[b-uo03hmqgte]   { color: var(--overdue);   background: var(--overdue-bg); }
.bucket.due-soon .due[b-uo03hmqgte]  { color: var(--due-soon);  background: var(--due-soon-bg); }
.bucket.scheduled .due[b-uo03hmqgte] { color: var(--scheduled); background: var(--scheduled-bg); }
.bucket.unknown .due[b-uo03hmqgte]   { color: var(--unknown);   background: var(--unknown-bg); }

.row-client[b-uo03hmqgte] {
    font-size: var(--text-sm);
    color: var(--text);
    margin-top: 2px;
}

.row-meta[b-uo03hmqgte] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.row-meta.subtle[b-uo03hmqgte] { color: var(--text-subtle); }

.row-meta a[b-uo03hmqgte] {
    color: var(--primary);
    text-decoration: none;
    /* A tappable phone number on a phone. This list is worked from a truck. */
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

.hazard[b-uo03hmqgte] {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--hazard-bg);
    border: 1px solid var(--hazard-border);
    border-radius: var(--radius-sm);
    color: var(--hazard);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

.hazard strong[b-uo03hmqgte] { text-transform: uppercase; letter-spacing: 0.04em; }

.mark-changed[b-uo03hmqgte] {
    margin-top: var(--space-2);
    min-height: var(--touch-min);
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.mark-changed:hover:not(:disabled)[b-uo03hmqgte] {
    background: var(--primary);
    color: var(--on-primary);
}

.mark-changed:disabled[b-uo03hmqgte] { opacity: 0.6; cursor: default; }

.mark-changed:focus-visible[b-uo03hmqgte] { outline: none; box-shadow: var(--focus-ring); }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-qy8yeb8u08] {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.sidebar[b-qy8yeb8u08] {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--dw-blue-900);
    color: var(--text-inverse);
}

.brand[b-qy8yeb8u08] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: var(--header-height);
    padding: 0 var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-mark[b-qy8yeb8u08] {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.brand-text[b-qy8yeb8u08] {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    letter-spacing: 0.01em;
}

.sidebar-footer[b-qy8yeb8u08] {
    margin-top: auto;
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.signed-in-as[b-qy8yeb8u08] {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sign-out[b-qy8yeb8u08] {
    width: 100%;
    min-height: var(--touch-min);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.sign-out:hover[b-qy8yeb8u08] {
    background: rgba(255, 255, 255, 0.18);
}

/* Left-aligned against the sidebar, filling the width beside it. The cap is high enough
   that an ordinary monitor sees no dead strip; it exists only so a battery board does not
   sprawl across an ultrawide and put the dog's name a foot from its due date. */
.content[b-qy8yeb8u08] {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: var(--content-max);
    padding: var(--space-5);
}

/* Room to breathe once there is room to spare. Below this the gutter is the padding above. */
@media (min-width: 1200px) {
    .content[b-qy8yeb8u08] { padding: var(--space-6); }
}

/* Below tablet the sidebar becomes a top bar. A 260px rail on a phone leaves
   nothing for the job you actually opened the app to do. */
@media (max-width: 767px) {
    .app-shell[b-qy8yeb8u08] {
        flex-direction: column;
    }

    .sidebar[b-qy8yeb8u08] {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-right: var(--space-3);
    }

    .sidebar-footer[b-qy8yeb8u08] {
        margin-top: 0;
        padding: 0;
        border-top: none;
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }

    .signed-in-as[b-qy8yeb8u08] {
        display: none;
    }

    .sign-out[b-qy8yeb8u08] {
        width: auto;
        padding: 0 var(--space-3);
    }

    .content[b-qy8yeb8u08] {
        padding: var(--space-4);
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav[b-l7w4u0zzsw] {
    display: flex;
    flex-direction: column;
    padding: var(--space-3) var(--space-2);
    gap: 2px;
}

/* NavLink renders a CHILD component, so its <a> never receives this file's scope
   attribute. ::deep is required — without it these rules compile, ship, and do
   absolutely nothing, silently. Documented in CLAUDE.md; it has bitten this codebase's
   siblings before. */
.nav[b-l7w4u0zzsw]  .nav-link {
    display: flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0 var(--space-3);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.nav[b-l7w4u0zzsw]  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav[b-l7w4u0zzsw]  .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    /* A left rail rather than only a background tint: in direct sunlight a subtle
       background difference disappears entirely, and the shape survives. */
    box-shadow: inset 3px 0 0 0 var(--dw-blue-300);
}

/* The icon beside each main link. Sized by the span, not the svg, so every icon takes the
   same slot and the labels line up whatever the drawing inside. */
.nav[b-l7w4u0zzsw]  .nav-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: var(--space-2);
    flex: none;
    opacity: 0.9;
}

.nav[b-l7w4u0zzsw]  .nav-icon svg {
    width: 100%;
    height: 100%;
}

/* A section: a main link with its children directly under it. */
.nav-group[b-l7w4u0zzsw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* A section heading that is not a destination (Online store): a real button since 2026-11-08,
   because its whole job is opening and closing its children. Dressed like its sibling links,
   with their hover, so the column reads evenly. Rendered directly by this component, so no
   ::deep. */
.nav-group .nav-heading[b-l7w4u0zzsw] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--touch-min);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.nav-group .nav-heading:hover[b-l7w4u0zzsw] {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* The caret that says a link carries children and whether they are showing. Pushed to the
   row's far edge, and rotated rather than swapped so the motion itself reads as open/close.
   ::deep because one caret lives inside a NavLink's anchor; the rule reaches the heading's
   caret the same way. */
.nav[b-l7w4u0zzsw]  .nav-caret {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-left: auto;
    flex: none;
    opacity: 0.7;
    transition: transform var(--transition);
}

.nav[b-l7w4u0zzsw]  .nav-caret svg {
    width: 100%;
    height: 100%;
}

.nav[b-l7w4u0zzsw]  .nav-caret.open {
    transform: rotate(90deg);
}

/* A child link, indented past the parent's icon so it reads as belonging to it, and a step
   quieter. The active state is inherited unchanged — the rail matters more on a sub-link,
   not less. */
.nav[b-l7w4u0zzsw]  .nav-link.sub {
    min-height: calc(var(--touch-min) - 6px);
    padding-left: calc(var(--space-3) + 18px + var(--space-2));
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--text-xs, 0.8rem);
}

.nav[b-l7w4u0zzsw]  .nav-link.sub:hover {
    color: #ffffff;
}

@media (max-width: 767px) {
    .nav[b-l7w4u0zzsw] {
        flex-direction: row;
        padding: 0;
        flex: 1;
        justify-content: flex-start;
        gap: var(--space-1);
        margin-left: var(--space-3);
    }

    /* The horizontal bar has no room for a hierarchy or for icons: labels alone, in a row,
       sub-links indistinguishable from the rest — which is fine, every one is still there. */
    .nav-group[b-l7w4u0zzsw] {
        flex-direction: row;
        gap: var(--space-1);
    }

    .nav[b-l7w4u0zzsw]  .nav-icon {
        display: none;
    }

    /* No room for carets either; the toggle still works, the hint is just not drawn. */
    .nav[b-l7w4u0zzsw]  .nav-caret {
        display: none;
    }

    .nav[b-l7w4u0zzsw]  .nav-link.sub {
        padding-left: var(--space-3);
        min-height: var(--touch-min);
    }
}

/* The count of enquiries waiting.

   ::deep like the rules above, because NavLink renders the anchor and the scope attribute
   does not reach inside another component's markup.

   Deliberately quiet rather than a red alert badge: these are leads to work through, not
   errors, and a number that shouts goes ignored within a week. */
.nav[b-l7w4u0zzsw]  .nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    margin-left: var(--space-2);
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--primary, #154b78);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-k0oagzhrj1],
.components-reconnect-repeated-attempt-visible[b-k0oagzhrj1],
.components-reconnect-failed-visible[b-k0oagzhrj1],
.components-pause-visible[b-k0oagzhrj1],
.components-resume-failed-visible[b-k0oagzhrj1],
.components-rejoining-animation[b-k0oagzhrj1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-retrying[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-failed[b-k0oagzhrj1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-k0oagzhrj1] {
    display: block;
}


#components-reconnect-modal[b-k0oagzhrj1] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-k0oagzhrj1 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-k0oagzhrj1 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-k0oagzhrj1 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-k0oagzhrj1]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-k0oagzhrj1 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-k0oagzhrj1 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-k0oagzhrj1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-k0oagzhrj1 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-k0oagzhrj1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-k0oagzhrj1] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-k0oagzhrj1] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-k0oagzhrj1] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-k0oagzhrj1] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-k0oagzhrj1] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-k0oagzhrj1] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-k0oagzhrj1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-k0oagzhrj1] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-k0oagzhrj1 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/ChangePassword.razor.rz.scp.css */
/* Choosing your own password.

   Everything authored in ChangePassword.razor is styled here and nowhere else: a component's
   scope attribute only reaches the elements its own file draws. work.css supplies .work-page,
   .card, .banner, .grid and the inputs; this adds only what the page needs on top.

   .btn is restated because work.css styles buttons inside .actions, and the link out of the
   finished state is not one. */

.password-page[b-r4d72xhcqa] {
    max-width: 520px;
}

.btn[b-r4d72xhcqa] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    text-decoration: none;
}

.btn.primary[b-r4d72xhcqa] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-text, #fff);
}

.btn.primary:hover[b-r4d72xhcqa] {
    background: var(--primary-hover);
}

.btn:disabled[b-r4d72xhcqa] {
    opacity: 0.6;
    cursor: default;
}

/* The policy explains itself at some length on purpose — a rule somebody can follow beats
   "not strong enough" — so the hint is given room rather than being truncated. */
.hint[b-r4d72xhcqa] {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}
/* /Components/Pages/Clients.razor.rz.scp.css */
.page-head[b-mgdic649rc] {
    margin-bottom: var(--space-4);
    /* The heading and the New client button sit on one line on a desktop and stack on a
       phone, where the button going full width is the right answer rather than a
       compromise — this gets used one-handed in a driveway. */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.page-head h1[b-mgdic649rc] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text);
}

.subtitle[b-mgdic649rc] {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.search-bar[b-mgdic649rc] { margin-bottom: var(--space-4); }

.search-bar input[b-mgdic649rc] {
    width: 100%;
    max-width: 520px;
    min-height: var(--touch-comfortable);
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.search-bar input:focus[b-mgdic649rc] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.state[b-mgdic649rc] {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Failure is styled as failure. An outage that renders like an empty list is how a
   dealer concludes their customer book has vanished. */
.state.error[b-mgdic649rc] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 520px;
    padding: var(--space-4);
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    border-radius: var(--radius);
    color: var(--overdue);
}

.state.error button[b-mgdic649rc] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--on-primary);
    background: var(--overdue);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.result-count[b-mgdic649rc] {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

.client-list[b-mgdic649rc] {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.client-row[b-mgdic649rc] {
    border-bottom: 1px solid var(--border);
}

/* The whole row is one link, so the grid lives on the anchor: a link that only covers the
   name would leave most of the row looking clickable and not being so. */
.client-link[b-mgdic649rc] {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-4);
    min-height: var(--touch-comfortable);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: inherit;
}

.client-row:last-child[b-mgdic649rc] { border-bottom: none; }
.client-link:hover[b-mgdic649rc] { background: var(--primary-subtle); }

/* Visible focus, because the point of the change was the keyboard. */
.client-link:focus-visible[b-mgdic649rc] {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--primary-subtle);
}

.client-name[b-mgdic649rc] {
    font-weight: var(--weight-semibold);
    color: var(--text);
}

.client-meta[b-mgdic649rc] {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.client-type[b-mgdic649rc] {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--scheduled);
    background: var(--scheduled-bg);
    border: 1px solid var(--scheduled-border);
    border-radius: var(--radius-pill);
    padding: 2px var(--space-3);
}

@media (max-width: 767px) {
    .client-row[b-mgdic649rc] {
        grid-template-columns: 1fr;
        gap: var(--space-1);
        padding: var(--space-3);
    }

    .client-meta[b-mgdic649rc] { flex-direction: column; gap: 0; }
}

.client-row[b-mgdic649rc] { cursor: pointer; }

/* The same primary button the login form uses, so the two match rather than merely
   resembling each other. Sized by the shared touch token: this gets tapped one-handed in a
   driveway as often as it gets clicked at a desk. */
.btn-primary[b-mgdic649rc] {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-comfortable);
    padding: 0 var(--space-5);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    color: var(--on-primary);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-primary:hover[b-mgdic649rc] { background: var(--primary-hover); }
.btn-primary:active[b-mgdic649rc] { background: var(--primary-active); }

.btn-primary:focus-visible[b-mgdic649rc] {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (max-width: 540px) {
    .page-head[b-mgdic649rc] { flex-direction: column; align-items: stretch; }
    .btn-primary[b-mgdic649rc] { justify-content: center; }
}

/* ---- CR-20: filters, balances, show more ---------------------------------------------- */

.filter-bar[b-mgdic649rc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin: var(--space-2) 0 var(--space-3);
}

.filter-bar label[b-mgdic649rc] {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted, #5f676d);
}

.filter-bar select[b-mgdic649rc] {
    min-height: var(--touch-min);
    padding: 0 var(--space-2);
    border: 1px solid var(--border, #d5d2cb);
    border-radius: var(--radius);
    font: inherit;
}

.filter-bar .check input[b-mgdic649rc] {
    width: 18px;
    height: 18px;
}

/* AC-63: the figure in words. The colour is a hint, never the message. */
.balance[b-mgdic649rc] {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: var(--text-xs, 0.78rem);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.balance.owes[b-mgdic649rc] {
    background: #fdeeee;
    color: #8f2f2f;
}

.balance.credit[b-mgdic649rc] {
    background: #eaf3ea;
    color: #2f5c33;
}

.more-row[b-mgdic649rc] {
    display: flex;
    justify-content: center;
    margin: var(--space-3) 0;
}
/* /Components/Pages/ClientView.razor.rz.scp.css */
.page-head[b-v9yoj49wtu] { margin-bottom: var(--space-5); }

.back[b-v9yoj49wtu] {
    display: inline-block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--primary);
    text-decoration: none;
}

.page-head h1[b-v9yoj49wtu] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text);
}

.contact[b-v9yoj49wtu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
}

.contact a[b-v9yoj49wtu] { color: var(--primary); text-decoration: none; }

.tag[b-v9yoj49wtu] {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--scheduled);
    background: var(--scheduled-bg);
    border: 1px solid var(--scheduled-border);
    border-radius: var(--radius-pill);
    padding: 2px var(--space-3);
}

.tag.muted[b-v9yoj49wtu] {
    color: var(--unknown);
    background: var(--unknown-bg);
    border-color: var(--unknown-border);
}

.detail[b-v9yoj49wtu] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    /* stretch, not start: Properties and Pets sit side by side and read as a matched pair.
       With start they were two different heights and looked like a rendering fault rather
       than a difference in the data. Pets pages one at a time so it no longer grows. */
    align-items: stretch;
}

.card[b-v9yoj49wtu] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    min-width: 0;
    /* Column flex so the pager can be pushed to the bottom edge of the card rather than
       floating directly under a one-pet list. */
    display: flex;
    flex-direction: column;
}

.card.wide[b-v9yoj49wtu] { grid-column: 1 / -1; }

.card h2[b-v9yoj49wtu] {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.property[b-v9yoj49wtu], .pet[b-v9yoj49wtu], .system[b-v9yoj49wtu] {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border);
}

.property:first-of-type[b-v9yoj49wtu], .pet:first-of-type[b-v9yoj49wtu], .system:first-of-type[b-v9yoj49wtu] { border-top: none; }

.pet.inactive[b-v9yoj49wtu] { opacity: 0.65; }

.property-head[b-v9yoj49wtu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
}

.line[b-v9yoj49wtu] { margin-top: 2px; font-size: var(--text-sm); color: var(--text-muted); }
.line.subtle[b-v9yoj49wtu], .subtle[b-v9yoj49wtu] { color: var(--text-subtle); font-size: var(--text-xs); }

.line code[b-v9yoj49wtu] {
    font-family: var(--font-mono);
    background: var(--surface-sunken);
    padding: 1px var(--space-2);
    border-radius: var(--radius-sm);
}

.empty[b-v9yoj49wtu] { margin: 0; font-size: var(--text-sm); color: var(--text-subtle); }

.hazard[b-v9yoj49wtu] {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--hazard-bg);
    border: 1px solid var(--hazard-border);
    border-radius: var(--radius-sm);
    color: var(--hazard);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.hazard strong[b-v9yoj49wtu] { text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-xs); }

.incomplete[b-v9yoj49wtu] {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--due-soon-bg);
    border: 1px solid var(--due-soon-border);
    border-radius: var(--radius-sm);
    color: var(--due-soon);
    font-size: var(--text-sm);
}

.incomplete strong[b-v9yoj49wtu] { text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-xs); }

.facts[b-v9yoj49wtu] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: var(--space-3) 0 0;
}

.facts div[b-v9yoj49wtu] { min-width: 0; }

.facts dt[b-v9yoj49wtu] {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
}

.facts dd[b-v9yoj49wtu] {
    margin: 2px 0 0;
    font-size: var(--text-sm);
    color: var(--text);
    font-family: var(--font-mono);
}

.collars[b-v9yoj49wtu] {
    width: 100%;
    margin-top: var(--space-3);
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.collars th[b-v9yoj49wtu] {
    text-align: left;
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    border-bottom: 1px solid var(--border);
    font-weight: var(--weight-medium);
}

.collars td[b-v9yoj49wtu] {
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.collars tr.inactive[b-v9yoj49wtu] { opacity: 0.6; }
.collars td .subtle[b-v9yoj49wtu] { display: block; }

.state[b-v9yoj49wtu] { color: var(--text-muted); font-size: var(--text-sm); }

.state.error[b-v9yoj49wtu] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 520px;
    padding: var(--space-4);
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    border-radius: var(--radius);
    color: var(--overdue);
}

.state.error a[b-v9yoj49wtu] { color: var(--overdue); }

@media (max-width: 767px) {
    .facts[b-v9yoj49wtu] { gap: var(--space-4); }
    .collars[b-v9yoj49wtu] { font-size: var(--text-xs); }
}

.banner[b-v9yoj49wtu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.banner.conflict[b-v9yoj49wtu] { background: var(--due-soon-bg); border: 1px solid var(--due-soon-border); color: var(--due-soon); }
.banner.blocked[b-v9yoj49wtu]  { background: var(--overdue-bg);  border: 1px solid var(--overdue-border);  color: var(--overdue); }

.banner button[b-v9yoj49wtu] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    margin-left: auto;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.edit-toggle[b-v9yoj49wtu] {
    margin-top: var(--space-3);
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    cursor: pointer;
}

.edit-toggle:hover[b-v9yoj49wtu] { background: var(--primary); color: var(--on-primary); }

.card-head[b-v9yoj49wtu] { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.card-head h2[b-v9yoj49wtu] { margin: 0 0 var(--space-3); }

.form-card[b-v9yoj49wtu] { margin-bottom: var(--space-4); }

.grid[b-v9yoj49wtu] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-3);
}

label[b-v9yoj49wtu], .inline-form label[b-v9yoj49wtu] {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

label.full[b-v9yoj49wtu] { grid-column: 1 / -1; margin-top: var(--space-3); }

input[b-v9yoj49wtu], textarea[b-v9yoj49wtu], select[b-v9yoj49wtu] {
    display: block;
    width: 100%;
    margin-top: var(--space-1);
    min-height: var(--touch-min);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    text-transform: none;
    letter-spacing: normal;
}

textarea[b-v9yoj49wtu] { min-height: auto; resize: vertical; }

input:focus[b-v9yoj49wtu], textarea:focus[b-v9yoj49wtu], select:focus[b-v9yoj49wtu] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.inline-form[b-v9yoj49wtu] {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    background: var(--surface-sunken);
    border-radius: var(--radius);
}

.inline-form.tight[b-v9yoj49wtu] { margin-top: var(--space-2); margin-bottom: 0; }

.inline-form .note[b-v9yoj49wtu] {
    margin: var(--space-3) 0 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}

.actions[b-v9yoj49wtu] { display: flex; gap: var(--space-2); margin-top: var(--space-3); }

.actions button[b-v9yoj49wtu] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
}

.actions button.primary[b-v9yoj49wtu] {
    color: var(--on-primary);
    background: var(--primary);
    border-color: var(--primary);
}

.actions button:disabled[b-v9yoj49wtu] { opacity: 0.6; cursor: default; }

.link[b-v9yoj49wtu] {
    margin-left: auto;
    padding: 0;
    min-height: var(--touch-min);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.link.danger[b-v9yoj49wtu] { color: var(--overdue); }
.link:disabled[b-v9yoj49wtu] { opacity: 0.5; cursor: default; }

/* Pet pager. margin-top:auto pins it to the bottom edge whatever height the Properties
   card forces on this one. */
.pager[b-v9yoj49wtu] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.pager button[b-v9yoj49wtu] {
    min-width: 2.5rem;
    min-height: 2.5rem;          /* thumb-sized: this gets used on a phone in a driveway */
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.pager button:disabled[b-v9yoj49wtu] { opacity: .4; cursor: default; }

.pager-count[b-v9yoj49wtu] {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: .9rem;
}

/* Configuration notes are settings, not prose, so they get a boxed monospaced treatment
   that separates them at a glance from the narrative notes beside them. */
.config[b-v9yoj49wtu] {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: rgba(0, 0, 0, .03);
    border-left: 3px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.config strong[b-v9yoj49wtu] {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}

.config span[b-v9yoj49wtu] {
    white-space: pre-wrap;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .9rem;
}

/* ---- Pet pictures (CR-18) ------------------------------------------------------------ */

.pet-photos[b-v9yoj49wtu] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-2) 0;
}

.pet-photo[b-v9yoj49wtu] {
    position: relative;
    display: inline-flex;
}

.pet-photo img[b-v9yoj49wtu] {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border, #e3e0d9);
}

.photo-remove[b-v9yoj49wtu] {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: var(--surface, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* The add control is an empty photo slot: same size as a thumbnail, dashed where a
   picture would be, a camera in the middle. The real input stays inside the label so a
   click opens the picker and the keyboard can still reach it — it is hidden from view,
   never from focus, and focus lights the tile up via :focus-within. */
.photo-add[b-v9yoj49wtu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: 2px dashed var(--border-strong, #c9c4b8);
    border-radius: var(--radius);
    color: var(--text-muted, #5f676d);
    cursor: pointer;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.photo-add svg[b-v9yoj49wtu] {
    width: 28px;
    height: 28px;
}

.photo-add:hover[b-v9yoj49wtu],
.photo-add:focus-within[b-v9yoj49wtu] {
    border-color: var(--primary, #154b78);
    color: var(--primary, #154b78);
    background: var(--surface-2, #f7f6f1);
}

/* InputFile renders its own <input>, so the parent's scope attribute never reaches it —
   ::deep or nothing (CLAUDE.md, CSS isolation). Visually hidden, still focusable. */
.photo-add[b-v9yoj49wtu]  input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.photo-add .hidden-words[b-v9yoj49wtu] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---- Client videos (CR-19) ------------------------------------------------------------ */

.video-row[b-v9yoj49wtu] {
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border, #eceef0);
}

.video-player[b-v9yoj49wtu] {
    display: block;
    width: 100%;
    max-width: 640px;
    margin-top: var(--space-2);
    border-radius: var(--radius);
    background: #000;
}
/* /Components/Pages/ForgotPassword.razor.rz.scp.css */
/* Scoped to ForgotPassword.razor.
   Colours come from tokens.css — never redeclared here (CLAUDE.md UI conventions).

   These rules repeat Login.razor.css rather than sharing with it, because Blazor's scoped CSS
   applies only to the component that owns the file: a child component's root element never
   receives the parent's scope attribute, so there is no way to inherit them. Repeating the
   rules is the honest cost of keeping the sign-in surface in static SSR. Nothing here hard-codes
   a colour, so the brand still changes in one place. */

.forgot-page[b-ls1x3aw5jk] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: linear-gradient(160deg, var(--dw-blue-900) 0%, var(--dw-blue-700) 100%);
}

.forgot-card[b-ls1x3aw5jk] {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
}

.brand[b-ls1x3aw5jk] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.mark[b-ls1x3aw5jk] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-subtle);
    color: var(--primary);
    flex-shrink: 0;
}

.brand h1[b-ls1x3aw5jk] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--text);
}

.subtitle[b-ls1x3aw5jk] {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

h2[b-ls1x3aw5jk] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text);
}

.lead[b-ls1x3aw5jk] {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}

.error[b-ls1x3aw5jk] {
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    color: var(--overdue);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.notice[b-ls1x3aw5jk] {
    background: var(--primary-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    color: var(--text);
}

.notice strong[b-ls1x3aw5jk] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.notice p[b-ls1x3aw5jk] {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.note[b-ls1x3aw5jk] {
    margin: var(--space-4) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}

.note a[b-ls1x3aw5jk] {
    color: var(--primary);
}

.field[b-ls1x3aw5jk] {
    margin-bottom: var(--space-4);
}

.field label[b-ls1x3aw5jk] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
}

.field input[b-ls1x3aw5jk] {
    width: 100%;
    /* Comfortable touch target — asked for from a phone as often as a desk. */
    min-height: var(--touch-comfortable);
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus[b-ls1x3aw5jk] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.btn-primary[b-ls1x3aw5jk] {
    display: block;
    width: 100%;
    min-height: var(--touch-comfortable);
    margin-top: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    color: var(--on-primary);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    /* Centres the label when this is an <a> rather than a <button>. */
    line-height: var(--touch-comfortable);
    transition: background var(--transition);
}

.btn-primary:hover[b-ls1x3aw5jk] {
    background: var(--primary-hover);
}

.btn-primary:active[b-ls1x3aw5jk] {
    background: var(--primary-active);
}

.btn-primary:focus-visible[b-ls1x3aw5jk] {
    outline: none;
    box-shadow: var(--focus-ring);
}
/* /Components/Pages/Home.razor.rz.scp.css */
.page-head[b-latrw9chs4] { margin-bottom: var(--space-5); }

.page-head h1[b-latrw9chs4] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text);
}

.subtitle[b-latrw9chs4] {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.board[b-latrw9chs4] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

.state[b-latrw9chs4] { color: var(--text-muted); font-size: var(--text-sm); }

.state.error[b-latrw9chs4] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 520px;
    padding: var(--space-4);
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    border-radius: var(--radius);
    color: var(--overdue);
}

.state.error button[b-latrw9chs4] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--on-primary);
    background: var(--overdue);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Fixed to the bottom of the viewport. Undo has to be reachable without scrolling back
   up, and on a phone the thumb is already down here. */
.undo-bar[b-latrw9chs4] {
    position: fixed;
    left: 50%;
    bottom: var(--space-4);
    transform: translateX(-50%);
    z-index: 50;

    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: calc(100vw - var(--space-6));
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);

    background: var(--dw-blue-900);
    color: var(--text-inverse);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
}

.undo-bar button[b-latrw9chs4] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
}

.undo-bar button:hover:not(:disabled)[b-latrw9chs4] { background: rgba(255, 255, 255, 0.24); }
.undo-bar button:disabled[b-latrw9chs4] { opacity: 0.6; cursor: default; }
.undo-bar button:focus-visible[b-latrw9chs4] { outline: none; box-shadow: var(--focus-ring); }

.undo-bar .dismiss[b-latrw9chs4] {
    padding: 0 var(--space-3);
    background: transparent;
    border-color: transparent;
    font-size: var(--text-lg);
}
/* /Components/Pages/InvoiceEdit.razor.rz.scp.css */
/* An issued invoice, read rather than edited.

   Its own stylesheet because only this screen has a frozen document to render — the quote and
   job screens are always editable. Everything else on the page comes from work.css, which the
   four pipeline screens share. */

.issued-lines[b-p54yvdhval] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.issued-lines th[b-p54yvdhval] {
    padding: var(--space-2) var(--space-2) var(--space-2) 0;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-strong);
}

.issued-lines td[b-p54yvdhval] {
    padding: var(--space-3) var(--space-2) var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* Right-aligned with the digits on a fixed width, so the decimal points line up down the
   page — which is how somebody checks a total at a glance. */
.issued-lines .num[b-p54yvdhval] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* A discount stays visible on the frozen copy too. A customer given fifty dollars off should
   be able to see it a year later. */
.issued-lines .off[b-p54yvdhval] {
    display: block;
    margin-top: 2px;
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--healthy);
}

.issued-totals[b-p54yvdhval] {
    width: min(22rem, 100%);
    margin: var(--space-4) 0 0 auto;
    font-size: var(--text-sm);
}

.issued-totals > div[b-p54yvdhval] {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
}

.issued-totals dt[b-p54yvdhval] { color: var(--text-muted); }

.issued-totals dd[b-p54yvdhval] {
    margin: 0;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.issued-totals .grand[b-p54yvdhval] {
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-strong);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.issued-totals .grand dt[b-p54yvdhval] { color: var(--text); }

@media (max-width: 720px) {
    /* The unit price column goes first: with quantity and amount both present, unit price is
       the one somebody can work out from the other two. */
    .issued-lines th:nth-child(3)[b-p54yvdhval],
    .issued-lines td:nth-child(3)[b-p54yvdhval] { display: none; }

    .issued-totals[b-p54yvdhval] { width: 100%; }
}
/* /Components/Pages/Leads.razor.rz.scp.css */
/* The lead inbox.

   Everything here is authored in Leads.razor, so everything here is styled here — a scope
   attribute only reaches the elements its own file draws. */

.leads-page[b-fum6cf6goc] {
    max-width: 860px;
}

.card[b-fum6cf6goc] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.page-head h1[b-fum6cf6goc] {
    margin: 0;
}

.page-head .sub[b-fum6cf6goc] {
    margin: var(--space-1) 0 var(--space-4);
    color: var(--text-muted);
}

.lead-head[b-fum6cf6goc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-start;
    justify-content: space-between;
}

.lead-head h2[b-fum6cf6goc] {
    margin: 0;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
}

.when[b-fum6cf6goc] {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* The facts as a definition list rather than a sentence: somebody scanning for a phone number
   should find it in the same place on every card. */
.lead-facts[b-fum6cf6goc] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-2) var(--space-4);
    margin: var(--space-3) 0 0;
}

.lead-facts div[b-fum6cf6goc] {
    min-width: 0;
}

.lead-facts dt[b-fum6cf6goc] {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.lead-facts dd[b-fum6cf6goc] {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Their own words, marked as a quotation. What somebody typed into a form is evidence, and it
   should not be mistaken for the software's own text. */
.said[b-fum6cf6goc] {
    margin: var(--space-3) 0 0;
    padding: var(--space-2) var(--space-3);
    border-left: 3px solid var(--border-strong, var(--border));
    background: var(--surface-muted, #f6f7f9);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.take-on[b-fum6cf6goc] {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.matches[b-fum6cf6goc] {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.matches li[b-fum6cf6goc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* Why it matched, said out loud. "Matched on phone" and "matched on phone and email" are
   different levels of confidence, and the person choosing should see which this is. */
.why[b-fum6cf6goc] {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.detail[b-fum6cf6goc] {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.note[b-fum6cf6goc] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.empty[b-fum6cf6goc] {
    margin: 0;
    color: var(--text-muted);
}

.actions[b-fum6cf6goc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-3);
}

@media (max-width: 480px) {
    .lead-head[b-fum6cf6goc],
    .matches li[b-fum6cf6goc] {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---- Not a real enquiry (WP-1c) -----------------------------------------------------------

   The two views, and the quieter of the two actions on a lead. Taking one on is the outcome
   this screen is for, so it keeps the primary button; saying it was never a person is the
   housekeeping beside it and is styled as such. A destructive-looking button would be wrong
   anyway — nothing is destroyed, and the action is undone with one click. */

.views[b-fum6cf6goc] {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.views button[b-fum6cf6goc] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.views button:hover[b-fum6cf6goc] {
    color: var(--text);
    border-color: var(--border-strong);
}

.views button.on[b-fum6cf6goc] {
    color: var(--on-primary);
    background: var(--primary);
    border-color: var(--primary-border);
}

.views button:focus-visible[b-fum6cf6goc],
.lead-actions button:focus-visible[b-fum6cf6goc] {
    outline: none;
    box-shadow: var(--focus-ring);
}

.lead-actions[b-fum6cf6goc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.lead-actions button.quiet[b-fum6cf6goc] {
    min-height: var(--touch-min);
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.lead-actions button.quiet:hover:not(:disabled)[b-fum6cf6goc] {
    color: var(--text);
    border-color: var(--border-strong);
}

.lead-actions button:disabled[b-fum6cf6goc] {
    opacity: 0.55;
    cursor: default;
}

/* The error state gained a second control when the screen gained a second view, so it has to
   lay them out rather than assume one. */
.state.error[b-fum6cf6goc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}
/* /Components/Pages/Leave.razor.rz.scp.css */
/* The caller's own leave (time-clock.md TC-6, TC-7). */

.leave-page[b-67sqziu48l] {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 1rem);
}

.leave-page .head h1[b-67sqziu48l] {
    font-size: var(--text-2xl, 1.5rem);
    margin: 0;
}

.leave-page .card[b-67sqziu48l] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4, 1rem);
}

.leave-page .card h2[b-67sqziu48l] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-3, .75rem);
}

.leave-page .figure[b-67sqziu48l] {
    font-size: var(--text-xl, 1.25rem);
    margin: 0 0 var(--space-2, .5rem);
}

.leave-page .request-form[b-67sqziu48l] {
    display: flex;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
    align-items: end;
}

.leave-page .request-form label[b-67sqziu48l] {
    display: grid;
    gap: var(--space-1, .25rem);
    font-size: var(--text-sm, .875rem);
}

.leave-page .request-form .full[b-67sqziu48l] {
    flex: 1 1 100%;
}

.leave-page table.ledger[b-67sqziu48l],
.leave-page table.requests[b-67sqziu48l] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, .875rem);
    margin-top: var(--space-3, .75rem);
}

.leave-page td[b-67sqziu48l] {
    padding: var(--space-2, .5rem);
    border-bottom: 1px solid var(--border, #e3e6e8);
}

.leave-page .num[b-67sqziu48l] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.leave-page .num.earned[b-67sqziu48l] {
    color: var(--success-strong, #1b6e3c);
}

.leave-page .num.spent[b-67sqziu48l] {
    color: var(--text, #212529);
}

.leave-page .status[b-67sqziu48l] {
    font-size: var(--text-xs, .75rem);
    font-weight: var(--weight-medium, 500);
    border-radius: var(--radius-full, 999px);
    padding: 1px var(--space-2, .5rem);
    border: 1px solid var(--border, #e3e6e8);
}

.leave-page .status.approved[b-67sqziu48l] {
    background: var(--success-subtle, #e3f2e8);
    color: var(--success-strong, #1b6e3c);
    border-color: var(--success, #2e9e57);
}

.leave-page .status.pending[b-67sqziu48l] {
    border-style: dashed;
    color: var(--text-subtle, #5f676d);
}

.leave-page .status.declined[b-67sqziu48l],
.leave-page .status.cancelled[b-67sqziu48l] {
    color: var(--text-subtle, #5f676d);
}

.leave-page .self-made[b-67sqziu48l] {
    margin-left: var(--space-1, .25rem);
    font-size: var(--text-xs, .75rem);
    color: var(--warning-strong, #8a5a00);
}

.leave-page .row-actions[b-67sqziu48l] {
    text-align: right;
}

.leave-page .muted[b-67sqziu48l] {
    color: var(--text-subtle, #5f676d);
}

.leave-page .note[b-67sqziu48l] {
    color: var(--text-subtle, #5f676d);
    font-size: var(--text-sm, .875rem);
}

.leave-page .state.error[b-67sqziu48l] {
    color: var(--danger, #b3261e);
}
/* /Components/Pages/LeaveTeam.razor.rz.scp.css */
/* The team's leave (time-clock.md TC-5, TC-6, TC-7). */

.team-leave-page[b-ddbi0abvur] {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 1rem);
}

.team-leave-page .head h1[b-ddbi0abvur] {
    font-size: var(--text-2xl, 1.5rem);
    margin: 0;
}

.team-leave-page .card[b-ddbi0abvur] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4, 1rem);
}

.team-leave-page .card h2[b-ddbi0abvur] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-3, .75rem);
}

.team-leave-page ul.pending[b-ddbi0abvur] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2, .5rem);
}

.team-leave-page .entry[b-ddbi0abvur] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
    padding: var(--space-3, .75rem);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-md, 8px);
}

.team-leave-page .entry .what[b-ddbi0abvur] {
    display: flex;
    gap: var(--space-2, .5rem);
    flex-wrap: wrap;
    align-items: baseline;
}

.team-leave-page .exceeds[b-ddbi0abvur] {
    font-size: var(--text-xs, .75rem);
    font-weight: var(--weight-medium, 500);
    color: var(--warning-strong, #8a5a00);
    background: var(--warning-subtle, #fdf0d5);
    border: 1px solid var(--warning, #e0a82e);
    border-radius: var(--radius-full, 999px);
    padding: 1px var(--space-2, .5rem);
}

/* The requester's own words reach exactly this screen and the requester's — never the
   calendar, never an audit row (AC-53). */
.team-leave-page .note-text[b-ddbi0abvur] {
    color: var(--text-subtle, #5f676d);
    font-style: italic;
}

.team-leave-page .decide[b-ddbi0abvur] {
    display: inline-flex;
    gap: var(--space-2, .5rem);
}

.team-leave-page table.people[b-ddbi0abvur],
.team-leave-page table.ledger[b-ddbi0abvur] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, .875rem);
}

.team-leave-page th[b-ddbi0abvur],
.team-leave-page td[b-ddbi0abvur] {
    text-align: left;
    padding: var(--space-2, .5rem);
    border-bottom: 1px solid var(--border, #e3e6e8);
}

.team-leave-page .num[b-ddbi0abvur] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.team-leave-page .row-actions[b-ddbi0abvur] {
    text-align: right;
    white-space: nowrap;
}

.team-leave-page .grant-form[b-ddbi0abvur] {
    display: flex;
    gap: var(--space-2, .5rem);
    align-items: end;
    flex-wrap: wrap;
}

.team-leave-page .grant-form label[b-ddbi0abvur] {
    display: grid;
    gap: var(--space-1, .25rem);
    font-size: var(--text-sm, .875rem);
}

.team-leave-page .grant-form input[type="text"][b-ddbi0abvur] {
    min-width: 20rem;
}

.team-leave-page .ledger-row td[b-ddbi0abvur],
.team-leave-page .grant-row td[b-ddbi0abvur] {
    background: var(--surface-subtle, #f7f8f9);
}

.team-leave-page .payout[b-ddbi0abvur] {
    display: inline-flex;
    gap: var(--space-2, .5rem);
    align-items: center;
}

.team-leave-page .muted[b-ddbi0abvur] {
    color: var(--text-subtle, #5f676d);
}

.team-leave-page .note[b-ddbi0abvur] {
    color: var(--text-subtle, #5f676d);
    font-size: var(--text-sm, .875rem);
}

.team-leave-page .state.error[b-ddbi0abvur] {
    color: var(--danger, #b3261e);
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Scoped to Login.razor.
   Colours come from tokens.css — never redeclared here (CLAUDE.md UI conventions). */

.login-page[b-qe1gemfung] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: linear-gradient(160deg, var(--dw-blue-900) 0%, var(--dw-blue-700) 100%);
}

.login-card[b-qe1gemfung] {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
}

.login-brand[b-qe1gemfung] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.login-mark[b-qe1gemfung] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-subtle);
    color: var(--primary);
    flex-shrink: 0;
}

.login-brand h1[b-qe1gemfung] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--text);
}

.login-subtitle[b-qe1gemfung] {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.login-error[b-qe1gemfung] {
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    color: var(--overdue);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

/* A password that was actually changed. Same shape as .login-error, different intent. */
.login-ok[b-qe1gemfung] {
    background: var(--primary-subtle);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.login-help[b-qe1gemfung] {
    margin: var(--space-4) 0 0;
    text-align: center;
    font-size: var(--text-sm);
}

.login-help a[b-qe1gemfung] {
    color: var(--primary);
}

.field[b-qe1gemfung] {
    margin-bottom: var(--space-4);
}

.field label[b-qe1gemfung] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
}

.field input[b-qe1gemfung] {
    width: 100%;
    /* Comfortable touch target — this form is used on a phone in a driveway
       as often as on a desk. */
    min-height: var(--touch-comfortable);
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus[b-qe1gemfung] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.btn-primary[b-qe1gemfung] {
    width: 100%;
    min-height: var(--touch-comfortable);
    margin-top: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    color: var(--on-primary);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.btn-primary:hover[b-qe1gemfung] {
    background: var(--primary-hover);
}

.btn-primary:active[b-qe1gemfung] {
    background: var(--primary-active);
}

.btn-primary:focus-visible[b-qe1gemfung] {
    outline: none;
    box-shadow: var(--focus-ring);
}
/* /Components/Pages/NewClient.razor.rz.scp.css */
/* Field and button styling follow Login.razor.css, which is the reference form in this app.
   Same tokens, same touch target, same focus ring — so the two read as one product rather
   than as two pages that happen to both have inputs. */

.page-head[b-7ie12vamfx] {
    margin-bottom: var(--space-5);
}

.back[b-7ie12vamfx] {
    display: inline-block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--primary);
    text-decoration: none;
}

.back:hover[b-7ie12vamfx] {
    text-decoration: underline;
}

.page-head h1[b-7ie12vamfx] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text);
}

.subtitle[b-7ie12vamfx] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* A bounded column. A form stretched across a wide monitor makes the eye travel from a
   label on the far left to its input on the far right, which is how fields get filled in
   wrong. */
/* Left-aligned, matching the rest of the app. Capped so the fields stay a readable
   distance from their labels, and it shrinks freely below that on a phone. */
.form-card[b-7ie12vamfx] {
    max-width: 64rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
}

.field-group[b-7ie12vamfx] {
    margin: 0 0 var(--space-5);
    padding: 0;
    border: none;
}

.field-group:last-of-type[b-7ie12vamfx] {
    margin-bottom: var(--space-4);
}

/* A real fieldset legend, so a screen reader announces which group a field belongs to. */
.field-group legend[b-7ie12vamfx] {
    padding: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}

.field[b-7ie12vamfx] {
    margin-bottom: var(--space-4);
    min-width: 0;
}

.field:last-child[b-7ie12vamfx] {
    margin-bottom: 0;
}

.field label[b-7ie12vamfx] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
}

.required[b-7ie12vamfx] {
    margin-left: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-normal);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-subtle);
}

.field input[b-7ie12vamfx],
.field select[b-7ie12vamfx],
.field textarea[b-7ie12vamfx] {
    width: 100%;
    /* Comfortable touch target — this gets used on a phone in a driveway as often as at a
       desk. */
    min-height: var(--touch-comfortable);
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea[b-7ie12vamfx] {
    min-height: 0;
    resize: vertical;
}

.field input:focus[b-7ie12vamfx],
.field select:focus[b-7ie12vamfx],
.field textarea:focus[b-7ie12vamfx] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.hint[b-7ie12vamfx] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Two fields on a line on a desktop, one per line on a phone. Side-by-side name fields read
   as one name; stacked they read as two questions. */
.field-row[b-7ie12vamfx] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.field-row .field[b-7ie12vamfx] {
    margin-bottom: 0;
}

.form-error[b-7ie12vamfx] {
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    color: var(--overdue);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.next[b-7ie12vamfx] {
    margin: 0 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-subtle);
    border-left: 3px solid var(--primary-border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--text);
}

.form-actions[b-7ie12vamfx] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.btn-primary[b-7ie12vamfx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-comfortable);
    padding: 0 var(--space-5);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    color: var(--on-primary);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-primary:hover[b-7ie12vamfx] { background: var(--primary-hover); }
.btn-primary:active[b-7ie12vamfx] { background: var(--primary-active); }

.btn-primary:disabled[b-7ie12vamfx] {
    opacity: .6;
    cursor: default;
}

.btn-primary:focus-visible[b-7ie12vamfx],
.btn-quiet:focus-visible[b-7ie12vamfx] {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Cancel is deliberately quiet. Two buttons of equal weight make a person stop and choose,
   and only one of these is the thing they came here to do. */
.btn-quiet[b-7ie12vamfx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-comfortable);
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
}

.btn-quiet:hover[b-7ie12vamfx] {
    color: var(--text);
    border-color: var(--border-strong);
}

@media (max-width: 540px) {
    .form-card[b-7ie12vamfx] {
        padding: var(--space-4);
    }

    /* Full width, stacked, primary first. One thumb, one column. */
    .form-actions[b-7ie12vamfx] {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* The step list. Horizontal on a desktop, horizontally scrollable on a phone rather than
   wrapping into two ragged rows that make the sequence hard to read. */
.stepper[b-7ie12vamfx] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.stepper[b-7ie12vamfx]::-webkit-scrollbar { display: none; }

.stepper li[b-7ie12vamfx] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    white-space: nowrap;
    color: var(--text-muted);
}

.stepper .dot[b-7ie12vamfx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    background: var(--surface-sunken);
    color: var(--text-muted);
}

.stepper li.current[b-7ie12vamfx] {
    background: var(--primary-subtle);
    color: var(--text);
    font-weight: var(--weight-semibold);
}

.stepper li.current .dot[b-7ie12vamfx] {
    background: var(--primary);
    color: var(--on-primary);
}

.stepper li.done .dot[b-7ie12vamfx] {
    background: var(--ok, var(--primary));
    color: var(--on-primary);
}

/* What has already been saved this session. Visible so somebody adding a third dog can see
   the first two landed, rather than wondering whether the button worked. */
.added[b-7ie12vamfx] {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.added li[b-7ie12vamfx] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--primary-subtle);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
}

.added .dot[b-7ie12vamfx] {
    color: var(--primary);
    font-weight: var(--weight-bold);
}

/* Against the field it belongs to, not as a page banner — the person is looking at the box
   they just typed into. */
.field-problem[b-7ie12vamfx] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--overdue);
}

.empty[b-7ie12vamfx] {
    margin: 0 0 var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* A secondary action inside a form, not a form submit — smaller than the buttons at the
   bottom so it does not compete with them for attention. */
.btn-quiet.small[b-7ie12vamfx] {
    min-height: 2.25rem;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
}
/* /Components/Pages/Orders.razor.rz.scp.css */
.orders-page[b-ucqoxabip8] {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.head h1[b-ucqoxabip8] {
    margin: 0;
    font-size: var(--text-2xl);
}

.card[b-ucqoxabip8] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4);
}

.state[b-ucqoxabip8] {
    margin: 0;
    color: var(--text-muted, #5f676d);
}

.state.error[b-ucqoxabip8] {
    color: var(--danger, #a4262c);
}

.order[b-ucqoxabip8] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-head[b-ucqoxabip8] {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.order-head .who[b-ucqoxabip8] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.order-head .when[b-ucqoxabip8] {
    color: var(--text-muted, #5f676d);
    font-size: var(--text-sm);
}

.order-head .total[b-ucqoxabip8] {
    margin-left: auto;
    font-weight: var(--weight-bold, 700);
}

/* The status, in words. Colour supports the word; it never replaces it. */
.chip[b-ucqoxabip8] {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: var(--text-xs, 0.8rem);
    font-weight: var(--weight-semibold, 600);
    background: #eef1f3;
    color: #4d4b4e;
}

.chip.paid[b-ucqoxabip8] {
    background: #e7f0e2;
    color: #2f5417;
}

.chip.done[b-ucqoxabip8] {
    background: #e8eef5;
    color: #154b78;
}

.chip.warn[b-ucqoxabip8] {
    background: #fdf3e7;
    color: #8a5300;
}

.lines[b-ucqoxabip8] {
    width: 100%;
    border-collapse: collapse;
}

.lines td[b-ucqoxabip8] {
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border, #e3e6e8);
}

.lines .num[b-ucqoxabip8] {
    text-align: right;
    white-space: nowrap;
}

.lines tfoot td[b-ucqoxabip8] {
    padding: var(--space-1) 0;
    border-top: none;
    color: var(--text-muted, #5f676d);
    font-size: var(--text-sm);
}

.lines tfoot tr:first-child td[b-ucqoxabip8] {
    padding-top: var(--space-2);
    border-top: 1px solid var(--border, #e3e6e8);
}

.lines tfoot tr.grand td[b-ucqoxabip8] {
    color: inherit;
    font-weight: var(--weight-bold, 700);
    border-top: 2px solid var(--text, #4d4b4e);
    padding-top: var(--space-2);
}

.muted[b-ucqoxabip8] {
    color: var(--text-muted, #5f676d);
}

.meta[b-ucqoxabip8] {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    font-size: var(--text-sm);
}

.meta .contact[b-ucqoxabip8],
.meta .address[b-ucqoxabip8] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta .label[b-ucqoxabip8] {
    color: var(--text-muted, #5f676d);
    font-size: var(--text-xs, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.actions[b-ucqoxabip8] {
    display: flex;
    gap: var(--space-2);
}

.shipped-note[b-ucqoxabip8] {
    margin: 0;
    color: var(--text-muted, #5f676d);
}

/* ---- The search (ST-AC-60) ---------------------------------------------------------- */

.search[b-ucqoxabip8] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: end;
}

.search-fields[b-ucqoxabip8] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    flex: 1;
}

.search-fields label[b-ucqoxabip8] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--text-muted, #5f676d);
}

.search-fields input[b-ucqoxabip8] {
    min-height: var(--touch-min);
    padding: 0 var(--space-2);
    border: 1px solid var(--border, #d5d2cb);
    border-radius: var(--radius);
    font: inherit;
}

.search-actions[b-ucqoxabip8] {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 767px) {
    .search-fields label[b-ucqoxabip8] {
        flex: 1 1 100%;
    }
}
/* /Components/Pages/People.razor.rz.scp.css */
/* Who works here.

   Everything authored in People.razor is styled here and nowhere else: a component's scope
   attribute only reaches the elements its own file draws, which has cost this project three
   bugs already. work.css supplies .work-page, .card, .banner, .grid and the inputs globally;
   what follows is only what this page adds.

   .btn is restated because work.css styles buttons inside .actions, and the switch-off
   buttons in the table are not. */

.people-page[b-c2u39qd6ch] {
    max-width: 1100px;
}

.btn[b-c2u39qd6ch] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover[b-c2u39qd6ch] {
    background: var(--surface-hover, var(--surface));
}

.btn.small[b-c2u39qd6ch] {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    white-space: nowrap;
}

/* The one-off showing of a generated password. Loud on purpose: an owner who scrolls past it
   has lost it, and there is no second look. */
.new-account[b-c2u39qd6ch] {
    border-color: var(--healthy-border);
    background: var(--healthy-bg);
}

.generated[b-c2u39qd6ch] {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--text-lg);
    /* Selectable in one gesture, and wrapping rather than scrolling: it is read aloud down a
       telephone as often as it is copied. */
    user-select: all;
    word-break: break-all;
}

.roles[b-c2u39qd6ch] {
    margin: var(--space-3) 0 0;
    padding: 0;
    border: 0;
}

.roles legend[b-c2u39qd6ch] {
    padding: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.role[b-c2u39qd6ch] {
    display: grid;
    grid-template-columns: auto 8rem 1fr;
    gap: var(--space-2);
    align-items: baseline;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}

.role input[b-c2u39qd6ch] {
    width: auto;
    min-height: auto;
}

.role-name[b-c2u39qd6ch] {
    font-weight: var(--weight-medium);
    color: var(--text);
}

.role-what[b-c2u39qd6ch] {
    color: var(--text-muted);
}

.people[b-c2u39qd6ch] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.people th[b-c2u39qd6ch] {
    text-align: left;
    padding: var(--space-2);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
}

.people td[b-c2u39qd6ch] {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.people .email[b-c2u39qd6ch] {
    color: var(--text-muted);
    word-break: break-all;
}

/* Still listed, and visibly not in use. Switched off is not deleted. */
.switched-off td[b-c2u39qd6ch] {
    opacity: 0.6;
}

.tag[b-c2u39qd6ch] {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 0 var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

.role-picks[b-c2u39qd6ch] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
}

.role-pick[b-c2u39qd6ch] {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--text);
    white-space: nowrap;
}

.role-pick input[b-c2u39qd6ch] {
    width: auto;
    min-height: auto;
}

/* A phone. The table of permissions is the part that cannot usefully shrink, so the table
   scrolls sideways within the card rather than crushing every column. */
@media (max-width: 720px) {
    .role[b-c2u39qd6ch] {
        grid-template-columns: auto 1fr;
    }

    .role-what[b-c2u39qd6ch] {
        grid-column: 2;
    }

    .people[b-c2u39qd6ch] {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* What somebody switched off still has booked (scheduling.md SC-10 AC-38).

   Deliberately not styled as an error. The switch-off worked; this is a handover list, and a
   red banner would read as "that failed, try again". It is prominent because the jobs are
   invisible everywhere else until somebody moves them. */
.still-booked[b-c2u39qd6ch] {
    border-left: 4px solid var(--due-soon);
}

.booked-jobs[b-c2u39qd6ch] {
    margin: var(--space-3) 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.booked-jobs li[b-c2u39qd6ch] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.booked-jobs .when[b-c2u39qd6ch] {
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.booked-jobs .what[b-c2u39qd6ch] {
    color: var(--text-muted);
    font-size: var(--text-sm);
}
/* /Components/Pages/ProductEdit.razor.rz.scp.css */
/* One product (online-store.md ST-7). Colours and spacing from wwwroot/css/tokens.css only. */

.page-head[b-txo4ouyqtc] { margin-bottom: var(--space-4); }
.back[b-txo4ouyqtc] { display: inline-block; margin-bottom: var(--space-2); color: var(--primary); font-weight: var(--weight-semibold); text-decoration: none; }
.page-head h1[b-txo4ouyqtc] { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text); }
.subtitle[b-txo4ouyqtc] { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.layout[b-txo4ouyqtc] { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 1000px) { .layout[b-txo4ouyqtc] { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; } }

.card[b-txo4ouyqtc] { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: var(--space-4); }
.layout .card[b-txo4ouyqtc] { margin-bottom: 0; }
.card h2[b-txo4ouyqtc] { margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text); }

.grid[b-txo4ouyqtc] { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .grid[b-txo4ouyqtc] { grid-template-columns: 1fr 1fr; } }
label[b-txo4ouyqtc] { display: block; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
label.full[b-txo4ouyqtc] { grid-column: 1 / -1; }
label.check[b-txo4ouyqtc] { display: flex; align-items: center; gap: var(--space-2); text-transform: none; letter-spacing: 0; font-size: var(--text-sm); color: var(--text); }
.hint[b-txo4ouyqtc] { text-transform: none; letter-spacing: 0; color: var(--text-subtle); }
input:not([type=checkbox])[b-txo4ouyqtc], select[b-txo4ouyqtc], textarea[b-txo4ouyqtc] {
    display: block; width: 100%; margin-top: var(--space-1); min-height: var(--touch-min); padding: var(--space-2) var(--space-3);
    font: inherit; font-size: var(--text-base); text-transform: none; letter-spacing: 0; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
input:focus[b-txo4ouyqtc], select:focus[b-txo4ouyqtc], textarea:focus[b-txo4ouyqtc] { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
input[type=checkbox][b-txo4ouyqtc] { width: 20px; height: 20px; accent-color: var(--primary); }

.actions[b-txo4ouyqtc] { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
button[b-txo4ouyqtc] {
    min-height: var(--touch-min); padding: 0 var(--space-4); font: inherit; font-weight: var(--weight-semibold);
    color: var(--primary); background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius); cursor: pointer;
}
button.primary[b-txo4ouyqtc] { color: var(--on-primary); background: var(--primary); }
button.primary:hover[b-txo4ouyqtc] { background: var(--primary-hover); }
button.small[b-txo4ouyqtc] { min-height: 2.25rem; padding: 0 var(--space-3); }
button:disabled[b-txo4ouyqtc] { opacity: .6; cursor: default; }
.note[b-txo4ouyqtc] { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.banner[b-txo4ouyqtc] { margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid; font-weight: var(--weight-medium); }
.banner.ok[b-txo4ouyqtc] { color: var(--healthy); background: var(--healthy-bg); border-color: var(--healthy-border); }
.banner.error[b-txo4ouyqtc] { color: var(--overdue); background: var(--overdue-bg); border-color: var(--overdue-border); }

.photo img[b-txo4ouyqtc] { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.no-photo[b-txo4ouyqtc] { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-sunken); border-radius: var(--radius); color: var(--text-muted); font-size: var(--text-sm); }
.upload[b-txo4ouyqtc] {
    position: relative; display: inline-flex; align-items: center; margin-top: var(--space-3); min-height: var(--touch-min); padding: 0 var(--space-4);
    color: var(--on-primary); background: var(--primary); border-radius: var(--radius); cursor: pointer;
    font-size: var(--text-sm); font-weight: var(--weight-semibold); text-transform: none; letter-spacing: 0;
}
.upload[b-txo4ouyqtc]  input[type=file] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }

.options[b-txo4ouyqtc] { width: 100%; border-collapse: collapse; }
.options th[b-txo4ouyqtc], .options td[b-txo4ouyqtc] { padding: var(--space-2); border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.options thead th[b-txo4ouyqtc] { font-size: var(--text-xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.options input[b-txo4ouyqtc] { margin-top: 0; }
.options input.narrow[b-txo4ouyqtc] { max-width: 80px; }
.hidden-row[b-txo4ouyqtc] { opacity: .65; }
.row-msg[b-txo4ouyqtc] { margin-left: var(--space-2); font-size: var(--text-sm); }
.row-msg.ok[b-txo4ouyqtc] { color: var(--healthy); }
.row-msg.error[b-txo4ouyqtc] { color: var(--overdue); }

.badge[b-txo4ouyqtc] { display: inline-block; padding: 2px var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-medium); border: 1px solid; }
.badge.on[b-txo4ouyqtc] { color: var(--healthy); background: var(--healthy-bg); border-color: var(--healthy-border); }
.badge.off[b-txo4ouyqtc] { color: var(--text-muted); background: var(--surface-sunken); border-color: var(--border); }
.slug[b-txo4ouyqtc] { font-family: ui-monospace, monospace; }

.choices[b-txo4ouyqtc] { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--text-sm); }
.choices dt[b-txo4ouyqtc] { font-weight: var(--weight-semibold); color: var(--text); }
.choices dd[b-txo4ouyqtc] { margin: 0; color: var(--text-muted); }
.state[b-txo4ouyqtc] { color: var(--text-muted); font-size: var(--text-sm); }
.state.error[b-txo4ouyqtc] { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); max-width: 520px; padding: var(--space-4); background: var(--overdue-bg); border: 1px solid var(--overdue-border); border-radius: var(--radius); color: var(--overdue); }
.visually-hidden[b-txo4ouyqtc] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 767px) {
    .options thead[b-txo4ouyqtc] { display: none; }
    .options[b-txo4ouyqtc], .options tbody[b-txo4ouyqtc], .options tr[b-txo4ouyqtc], .options td[b-txo4ouyqtc] { display: block; }
    .options tr[b-txo4ouyqtc] { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
    .options td[b-txo4ouyqtc] { border: 0; padding: 0; }
    .options td:first-child[b-txo4ouyqtc], .options td:last-child[b-txo4ouyqtc] { grid-column: 1 / -1; }
}
/* /Components/Pages/Products.razor.rz.scp.css */
/* Product list (online-store.md ST-7). Colours and spacing from wwwroot/css/tokens.css only. */

.page-head[b-y33cjixml6] { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1[b-y33cjixml6] { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text); }
.subtitle[b-y33cjixml6] { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--text-muted); }
a.primary[b-y33cjixml6] {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-4);
    color: var(--on-primary); background: var(--primary); border-radius: var(--radius);
    font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap;
}
a.primary:hover[b-y33cjixml6] { background: var(--primary-hover); }

.filters[b-y33cjixml6] { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.filters input[type=search][b-y33cjixml6], .filters select[b-y33cjixml6] {
    min-height: var(--touch-comfortable); padding: 0 var(--space-3); font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.filters input[type=search][b-y33cjixml6] { flex: 1 1 260px; max-width: 420px; }
.check[b-y33cjixml6] { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

.state[b-y33cjixml6] { color: var(--text-muted); font-size: var(--text-sm); }
.state.error[b-y33cjixml6] {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); max-width: 520px; padding: var(--space-4);
    background: var(--overdue-bg); border: 1px solid var(--overdue-border); border-radius: var(--radius); color: var(--overdue);
}

.products[b-y33cjixml6] { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.products th[b-y33cjixml6], .products td[b-y33cjixml6] { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.products thead th[b-y33cjixml6] { font-size: var(--text-xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.products tbody tr[b-y33cjixml6] { cursor: pointer; }
.products tbody tr:hover[b-y33cjixml6] { background: var(--primary-subtle); }
.products tbody th[b-y33cjixml6] { font-weight: var(--weight-semibold); }
.products tbody th a[b-y33cjixml6] { color: var(--text); text-decoration: none; }
.products .num[b-y33cjixml6] { text-align: right; white-space: nowrap; }
.thumb[b-y33cjixml6] { width: 64px; }
.thumb img[b-y33cjixml6] { display: block; width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.hidden-row[b-y33cjixml6] { opacity: .6; }

.badge[b-y33cjixml6] { display: inline-block; padding: 2px var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-medium); border: 1px solid; }
.badge.on[b-y33cjixml6] { color: var(--healthy); background: var(--healthy-bg); border-color: var(--healthy-border); }
.badge.off[b-y33cjixml6] { color: var(--text-muted); background: var(--surface-sunken); border-color: var(--border); }

.result-count[b-y33cjixml6] { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-subtle); }
.visually-hidden[b-y33cjixml6] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* What each category holds: units or accessories. */
.categories[b-y33cjixml6] { margin-top: var(--space-6); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.categories h2[b-y33cjixml6] { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text); }
.note[b-y33cjixml6] { margin: var(--space-2) 0 var(--space-3); font-size: var(--text-sm); color: var(--text-muted); max-width: 70ch; }
.kinds[b-y33cjixml6] { width: 100%; border-collapse: collapse; }
.kinds th[b-y33cjixml6], .kinds td[b-y33cjixml6] { padding: var(--space-2); border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.kinds thead th[b-y33cjixml6] { font-size: var(--text-xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.kinds tbody th[b-y33cjixml6] { font-weight: var(--weight-semibold); color: var(--text); }
.kinds select[b-y33cjixml6] { min-height: var(--touch-comfortable); padding: 0 var(--space-3); font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.row-msg[b-y33cjixml6] { font-size: var(--text-sm); }
.row-msg.ok[b-y33cjixml6] { color: var(--healthy); }
.row-msg.error[b-y33cjixml6] { color: var(--overdue); }


@media (max-width: 767px) {
    .products thead[b-y33cjixml6] { display: none; }
    .products[b-y33cjixml6], .products tbody[b-y33cjixml6], .products tr[b-y33cjixml6], .products td[b-y33cjixml6], .products th[b-y33cjixml6] { display: block; }
    .products tr[b-y33cjixml6] { display: grid; grid-template-columns: 56px 1fr auto; gap: 2px var(--space-3); padding: var(--space-3); border-bottom: 1px solid var(--border); }
    .products td[b-y33cjixml6], .products th[b-y33cjixml6] { border: 0; padding: 0; }
    .products .thumb[b-y33cjixml6] { grid-row: span 3; }
}
/* /Components/Pages/Reports.razor.rz.scp.css */
/* Reports (reports.md). Isolated CSS cannot reach :root, so everything leans on the
   design tokens already in scope on body. */

.reports-page[b-wbyiiq26ia] {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 1rem);
}

.reports-page .head h1[b-wbyiiq26ia] {
    font-size: var(--text-2xl, 1.5rem);
    margin: 0;
}

.reports-page .report-tabs[b-wbyiiq26ia] {
    display: flex;
    gap: var(--space-2, .5rem);
    flex-wrap: wrap;
}

.reports-page .card[b-wbyiiq26ia] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4, 1rem);
}

.reports-page .card h2[b-wbyiiq26ia] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-2, .5rem);
}

.reports-page .note[b-wbyiiq26ia] {
    color: var(--text-subtle, #5f676d);
    font-size: var(--text-sm, .875rem);
    margin: 0 0 var(--space-3, .75rem);
}

.reports-page .filter-bar[b-wbyiiq26ia] {
    display: flex;
    align-items: end;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
    margin-bottom: var(--space-3, .75rem);
}

.reports-page .filter-bar label[b-wbyiiq26ia] {
    display: grid;
    gap: var(--space-1, .25rem);
    font-size: var(--text-sm, .875rem);
    color: var(--text-subtle, #5f676d);
}

.reports-page .filter-bar .year[b-wbyiiq26ia] {
    width: 6rem;
}

.reports-page .period[b-wbyiiq26ia] {
    margin: 0 0 var(--space-3, .75rem);
}

.reports-page table.report[b-wbyiiq26ia] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, .875rem);
    margin-bottom: var(--space-3, .75rem);
}

.reports-page table.report th[b-wbyiiq26ia],
.reports-page table.report td[b-wbyiiq26ia] {
    text-align: left;
    padding: var(--space-2, .5rem);
    border-bottom: 1px solid var(--border, #e3e6e8);
}

.reports-page table.report .num[b-wbyiiq26ia] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.reports-page table.report tfoot th[b-wbyiiq26ia],
.reports-page table.report tfoot td[b-wbyiiq26ia] {
    border-top: 2px solid var(--border-strong, #c9ced2);
    border-bottom: 0;
}

/* Words carry the meaning; the tint only underlines it (AC-15's rule). */
.reports-page .needs-review[b-wbyiiq26ia] {
    color: var(--warning-strong, #8a5a00);
    font-weight: var(--weight-medium, 500);
}

.reports-page tr.incomplete td[b-wbyiiq26ia] {
    background: var(--warning-surface, #fdf6e7);
}

.reports-page .overdue[b-wbyiiq26ia] {
    color: var(--danger, #b3261e);
    font-weight: var(--weight-medium, 500);
}

.reports-page .muted[b-wbyiiq26ia] {
    color: var(--text-subtle, #5f676d);
}

.reports-page .empty[b-wbyiiq26ia] {
    color: var(--text-subtle, #5f676d);
}

.reports-page .state.error[b-wbyiiq26ia] {
    color: var(--danger, #b3261e);
}

@media (max-width: 640px) {
    .reports-page table.report[b-wbyiiq26ia] {
        display: block;
        overflow-x: auto;
    }
}
/* /Components/Pages/ResetPassword.razor.rz.scp.css */
/* Scoped to ResetPassword.razor.
   Colours come from tokens.css — never redeclared here (CLAUDE.md UI conventions).

   These rules repeat Login.razor.css rather than sharing with it, because Blazor's scoped CSS
   applies only to the component that owns the file: a child component's root element never
   receives the parent's scope attribute, so there is no way to inherit them. Repeating the
   rules is the honest cost of keeping the sign-in surface in static SSR. Nothing here hard-codes
   a colour, so the brand still changes in one place. */

.reset-page[b-qqqb0izyqu] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: linear-gradient(160deg, var(--dw-blue-900) 0%, var(--dw-blue-700) 100%);
}

.reset-card[b-qqqb0izyqu] {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
}

.brand[b-qqqb0izyqu] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.mark[b-qqqb0izyqu] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-subtle);
    color: var(--primary);
    flex-shrink: 0;
}

.brand h1[b-qqqb0izyqu] {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--text);
}

.subtitle[b-qqqb0izyqu] {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

h2[b-qqqb0izyqu] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text);
}

.lead[b-qqqb0izyqu] {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}

.error[b-qqqb0izyqu] {
    background: var(--overdue-bg);
    border: 1px solid var(--overdue-border);
    color: var(--overdue);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.notice[b-qqqb0izyqu] {
    background: var(--primary-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    color: var(--text);
}

.notice strong[b-qqqb0izyqu] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.notice p[b-qqqb0izyqu] {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.note[b-qqqb0izyqu] {
    margin: var(--space-4) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}

.note a[b-qqqb0izyqu] {
    color: var(--primary);
}

.field[b-qqqb0izyqu] {
    margin-bottom: var(--space-4);
}

.field label[b-qqqb0izyqu] {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
}

.field input[b-qqqb0izyqu] {
    width: 100%;
    /* Comfortable touch target — asked for from a phone as often as a desk. */
    min-height: var(--touch-comfortable);
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus[b-qqqb0izyqu] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.btn-primary[b-qqqb0izyqu] {
    display: block;
    width: 100%;
    min-height: var(--touch-comfortable);
    margin-top: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    color: var(--on-primary);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    /* Centres the label when this is an <a> rather than a <button>. */
    line-height: var(--touch-comfortable);
    transition: background var(--transition);
}

.btn-primary:hover[b-qqqb0izyqu] {
    background: var(--primary-hover);
}

.btn-primary:active[b-qqqb0izyqu] {
    background: var(--primary-active);
}

.btn-primary:focus-visible[b-qqqb0izyqu] {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* The policy's rules, shown under the password box rather than only after a refusal. A rule
   somebody can follow before typing beats a rule explained afterwards. */
.hint[b-qqqb0izyqu] {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
}
/* /Components/Pages/Settings.razor.rz.scp.css */
/* The settings page.

   Everything authored in Settings.razor is styled here and nowhere else: a component's scope
   attribute only reaches the elements its own file draws, which has cost this project three
   bugs already. The .card rule is restated rather than inherited for exactly that reason. */

.settings-page[b-lxaj2hbdua] {
    max-width: 960px;
}

.card[b-lxaj2hbdua] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.card h2[b-lxaj2hbdua] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.page-head h1[b-lxaj2hbdua] {
    margin: 0;
}

.page-head .sub[b-lxaj2hbdua] {
    margin: var(--space-1) 0 var(--space-4);
    color: var(--text-muted);
}

/* Two columns on a desktop, one on a phone. Nothing here is a table, so the fields simply
   stack rather than scrolling sideways. */
.grid[b-lxaj2hbdua] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
}

.grid label[b-lxaj2hbdua],
.methods .method[b-lxaj2hbdua] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
    min-width: 0;
}

.grid label.full[b-lxaj2hbdua] {
    grid-column: 1 / -1;
}

.grid input[b-lxaj2hbdua],
.grid textarea[b-lxaj2hbdua] {
    font: inherit;
    color: var(--text);
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    min-height: var(--touch-min);
    width: 100%;
    box-sizing: border-box;
}

.grid input:disabled[b-lxaj2hbdua],
.grid textarea:disabled[b-lxaj2hbdua] {
    background: var(--surface-muted, #f6f7f9);
    color: var(--text-muted);
}

.grid textarea[b-lxaj2hbdua] {
    min-height: calc(var(--touch-min) * 1.5);
    resize: vertical;
}

/* A number with its unit beside it rather than in the placeholder, so the unit is still there
   once something has been typed. */
.suffixed[b-lxaj2hbdua] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.suffixed input[b-lxaj2hbdua] {
    max-width: 8rem;
}

.hint[b-lxaj2hbdua] {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.note[b-lxaj2hbdua] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Something the dealership should act on, rather than a note explaining the screen. */
.warn-note[b-lxaj2hbdua] {
    color: var(--warning-text, #8a5a00);
}

.branding[b-lxaj2hbdua] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.logo-well[b-lxaj2hbdua] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 100px;
    padding: var(--space-3);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-muted, #f6f7f9);
}

.logo-well img[b-lxaj2hbdua] {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
}

.logo-well .empty[b-lxaj2hbdua] {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.logo-actions[b-lxaj2hbdua] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

/* The file input itself is hidden inside its label, because the browser's own control cannot
   be styled and reads "No file chosen" next to a button that already says what it does. */
.file-btn[b-lxaj2hbdua] {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.file-btn input[type="file"][b-lxaj2hbdua] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.colour-row[b-lxaj2hbdua] {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.colour-row input[type="color"][b-lxaj2hbdua] {
    width: var(--touch-min);
    min-width: var(--touch-min);
    padding: 2px;
}

.colour-text[b-lxaj2hbdua] {
    font-family: var(--font-mono, ui-monospace, monospace);
}

.methods[b-lxaj2hbdua] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.methods .method[b-lxaj2hbdua] {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
}

.methods .method input[b-lxaj2hbdua] {
    width: auto;
    min-height: auto;
}

.actions[b-lxaj2hbdua] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-4);
}

.elsewhere[b-lxaj2hbdua] {
    margin: 0;
    padding-left: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 480px) {
    .branding[b-lxaj2hbdua] {
        flex-direction: column;
    }

    .logo-well[b-lxaj2hbdua] {
        width: 100%;
        box-sizing: border-box;
    }
}
/* /Components/Pages/Time.razor.rz.scp.css */
/* The caller's own clock (time-clock.md). Isolated CSS cannot reach :root, so everything
   leans on the design tokens already in scope on body. */

.time-page[b-v3jde6ii6w] {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 1rem);
}

.time-page .head h1[b-v3jde6ii6w] {
    font-size: var(--text-2xl, 1.5rem);
    margin: 0;
}

.time-page .card[b-v3jde6ii6w] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4, 1rem);
}

.time-page .standing[b-v3jde6ii6w] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-3, .75rem);
}

.time-page .break-mark[b-v3jde6ii6w] {
    color: var(--warning-strong, #8a5a00);
    font-weight: var(--weight-medium, 500);
}

/* Gloved hands and bright sun are the field app's problem, but the office tablet by the van
   gets the same big targets for free. */
.time-page .punch-actions[b-v3jde6ii6w] {
    display: flex;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
}

.time-page .btn.big[b-v3jde6ii6w] {
    font-size: var(--text-lg, 1.125rem);
    padding: var(--space-3, .75rem) var(--space-5, 1.5rem);
    min-width: 10rem;
}

/* The punch colours (Chris, 2026-11-08): green in, red out, blue-green for a break, red to
   end one. Values are tokens.css's --punch-* — colours never fork into components. The two
   red buttons never render together: on a break only End break shows. */
.time-page .btn.punch-in[b-v3jde6ii6w] {
    color: var(--on-punch, #fff);
    background: var(--punch-in, #1b6b3a);
    border-color: var(--punch-in, #1b6b3a);
}

.time-page .btn.punch-in:hover[b-v3jde6ii6w] {
    background: var(--punch-in-hover, #14562e);
    border-color: var(--punch-in-hover, #14562e);
    color: var(--on-punch, #fff);
}

.time-page .btn.punch-out[b-v3jde6ii6w],
.time-page .btn.punch-end[b-v3jde6ii6w] {
    color: var(--on-punch, #fff);
    background: var(--punch-out, #b3261e);
    border-color: var(--punch-out, #b3261e);
}

.time-page .btn.punch-out:hover[b-v3jde6ii6w],
.time-page .btn.punch-end:hover[b-v3jde6ii6w] {
    background: var(--punch-out-hover, #8f1d17);
    border-color: var(--punch-out-hover, #8f1d17);
    color: var(--on-punch, #fff);
}

.time-page .btn.punch-break[b-v3jde6ii6w] {
    color: var(--on-punch, #fff);
    background: var(--punch-break, #0f766e);
    border-color: var(--punch-break, #0f766e);
}

.time-page .btn.punch-break:hover[b-v3jde6ii6w] {
    background: var(--punch-break-hover, #0b5d57);
    border-color: var(--punch-break-hover, #0b5d57);
    color: var(--on-punch, #fff);
}

.time-page .week-head[b-v3jde6ii6w] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
    margin-bottom: var(--space-3, .75rem);
}

.time-page .week-head h2[b-v3jde6ii6w] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0;
}

.time-page .week-nav[b-v3jde6ii6w] {
    display: flex;
    gap: var(--space-2, .5rem);
}

.time-page .week-total[b-v3jde6ii6w] {
    margin: 0 0 var(--space-3, .75rem);
}

.time-page table.shifts[b-v3jde6ii6w] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, .875rem);
}

.time-page table.shifts th[b-v3jde6ii6w],
.time-page table.shifts td[b-v3jde6ii6w] {
    text-align: left;
    padding: var(--space-2, .5rem);
    border-bottom: 1px solid var(--border, #e3e6e8);
}

.time-page table.shifts .num[b-v3jde6ii6w] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.time-page .adjusted[b-v3jde6ii6w] {
    display: inline-block;
    margin-left: var(--space-1, .25rem);
    font-size: var(--text-xs, .75rem);
    color: var(--text-subtle, #5f676d);
    border: 1px dashed var(--border, #e3e6e8);
    border-radius: var(--radius-full, 999px);
    padding: 0 var(--space-2, .5rem);
}

.time-page .needs-review[b-v3jde6ii6w] {
    color: var(--warning-strong, #8a5a00);
    font-weight: var(--weight-medium, 500);
}

.time-page .muted[b-v3jde6ii6w] {
    color: var(--text-subtle, #5f676d);
}

.time-page .state.error[b-v3jde6ii6w] {
    color: var(--danger, #b3261e);
}

@media (max-width: 640px) {
    .time-page .btn.big[b-v3jde6ii6w] {
        flex: 1;
    }
}
/* /Components/Pages/TimeTeam.razor.rz.scp.css */
/* The team's time: the review queue and anybody's week (time-clock.md TC-3, TC-5). */

.team-time-page[b-dwsv9iwa93] {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 1rem);
}

.team-time-page .head h1[b-dwsv9iwa93] {
    font-size: var(--text-2xl, 1.5rem);
    margin: 0;
}

.team-time-page .card[b-dwsv9iwa93] {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e3e6e8);
    border-radius: var(--radius-lg, 10px);
    padding: var(--space-4, 1rem);
}

.team-time-page .card h2[b-dwsv9iwa93] {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-3, .75rem);
}

.team-time-page ul.queue[b-dwsv9iwa93] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2, .5rem);
}

.team-time-page .entry[b-dwsv9iwa93] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
    padding: var(--space-3, .75rem);
    border: 1px solid var(--warning, #e0a82e);
    border-radius: var(--radius-md, 8px);
    background: var(--warning-subtle, #fdf0d5);
}

.team-time-page .entry .what[b-dwsv9iwa93] {
    display: flex;
    gap: var(--space-2, .5rem);
    flex-wrap: wrap;
    align-items: baseline;
}

.team-time-page .resolve-form[b-dwsv9iwa93] {
    display: flex;
    gap: var(--space-2, .5rem);
    flex-wrap: wrap;
    align-items: end;
    width: 100%;
}

.team-time-page .resolve-form.inline[b-dwsv9iwa93] {
    width: auto;
    align-items: center;
}

.team-time-page .resolve-form label[b-dwsv9iwa93] {
    display: grid;
    gap: var(--space-1, .25rem);
    font-size: var(--text-sm, .875rem);
}

.team-time-page .resolve-form input[type="text"][b-dwsv9iwa93] {
    min-width: 18rem;
}

.team-time-page .week-head[b-dwsv9iwa93] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
}

.team-time-page .pickers[b-dwsv9iwa93] {
    display: flex;
    align-items: center;
    gap: var(--space-3, .75rem);
    flex-wrap: wrap;
}

.team-time-page .week-nav[b-dwsv9iwa93] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, .5rem);
}

.team-time-page .week-label[b-dwsv9iwa93] {
    font-variant-numeric: tabular-nums;
}

.team-time-page .shift[b-dwsv9iwa93] {
    border-top: 1px solid var(--border, #e3e6e8);
    padding: var(--space-3, .75rem) 0;
}

.team-time-page .shift-line[b-dwsv9iwa93] {
    display: flex;
    gap: var(--space-3, .75rem);
    align-items: baseline;
    flex-wrap: wrap;
}

.team-time-page .shift-line .num[b-dwsv9iwa93] {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-medium, 500);
}

.team-time-page table.punches[b-dwsv9iwa93] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, .875rem);
    margin-top: var(--space-2, .5rem);
}

.team-time-page table.punches td[b-dwsv9iwa93] {
    padding: var(--space-1, .25rem) var(--space-2, .5rem);
    border-bottom: 1px dotted var(--border, #e3e6e8);
}

.team-time-page .row-actions[b-dwsv9iwa93] {
    text-align: right;
}

.team-time-page .adjusted[b-dwsv9iwa93] {
    font-size: var(--text-xs, .75rem);
    color: var(--text-subtle, #5f676d);
    border: 1px dashed var(--border, #e3e6e8);
    border-radius: var(--radius-full, 999px);
    padding: 0 var(--space-2, .5rem);
}

.team-time-page .needs-review[b-dwsv9iwa93] {
    color: var(--warning-strong, #8a5a00);
    font-weight: var(--weight-medium, 500);
}

.team-time-page .muted[b-dwsv9iwa93] {
    color: var(--text-subtle, #5f676d);
}

.team-time-page .state.error[b-dwsv9iwa93] {
    color: var(--danger, #b3261e);
}

.team-time-page .note[b-dwsv9iwa93] {
    color: var(--text-subtle, #5f676d);
    font-size: var(--text-sm, .875rem);
    margin: var(--space-3, .75rem) 0 0;
}
/* /Components/Shared/DayMap.razor.rz.scp.css */
/* Where the day's work is (scheduling.md SC-11).

   Nothing here clamps text. The hazard note especially: CR-5 AC-14 says a technician must get
   the whole warning, and `-webkit-line-clamp` on this card would be a silent truncation that
   reads as a complete note. */

.day-map[b-uhu9f5ew4q] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.map-head h2[b-uhu9f5ew4q] {
    margin: 0;
}

.map-head .sub[b-uhu9f5ew4q] {
    margin: var(--space-1) 0 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* A fixed height, because the Azure Maps canvas needs one: a flex child with no height
   collapses to nothing and the map renders as a one-pixel strip. */
.map-canvas[b-uhu9f5ew4q] {
    height: 360px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-sunken);
}

/* AC-42. Amber, not red: a day with unplaceable work is the normal case for now, and a red
   banner every morning is a banner nobody reads by Wednesday. */
.unplaceable[b-uhu9f5ew4q] {
    padding: var(--space-3);
    border: 1px solid var(--due-soon-border);
    border-left: 4px solid var(--due-soon);
    border-radius: var(--radius-sm);
    background: var(--due-soon-bg);
}

.unplaceable .count[b-uhu9f5ew4q] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    color: var(--text);
}

.unplaceable ul[b-uhu9f5ew4q] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.unplaceable li[b-uhu9f5ew4q] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: baseline;
}

.unplaceable .why[b-uhu9f5ew4q] {
    color: var(--text-muted);
}

.stops[b-uhu9f5ew4q] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stops li[b-uhu9f5ew4q] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    align-items: baseline;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}

/* The same number the pin carries, in the same colour, so the list and the map can be read
   against each other. --who is the assignee's own colour (AC-45a). */
.stops .pin-number[b-uhu9f5ew4q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--who);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    /* Readable against the pale end of the palette as well as the dark end. */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.55);
}

.stops .when[b-uhu9f5ew4q] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stops .who[b-uhu9f5ew4q] {
    font-weight: 600;
}

.stops .where[b-uhu9f5ew4q],
.stops .fitter[b-uhu9f5ew4q] {
    color: var(--text-muted);
}

.stops .hazard[b-uhu9f5ew4q] {
    flex: 1 0 100%;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--hazard-bg);
    border: 1px solid var(--hazard-border);
    color: var(--hazard);
}
/* /Components/Shared/ModelPicker.razor.rz.scp.css */
/* The picker styles its own controls.

   This is the CSS isolation rule that bit the form card earlier: a scope attribute is only
   stamped onto elements authored in the component that owns the stylesheet. The select and
   the free-text input here are rendered by THIS component, so the page's `.field select`
   rules never reach them — which is exactly why the dropdown looked like a raw browser
   control sitting in a styled form.

   The values match Login.razor.css and NewClient.razor.css deliberately: same token, same
   touch target, same focus ring, so a picker is indistinguishable from the fields beside it. */

select[b-spvwrr5576],
input[b-spvwrr5576] {
    width: 100%;
    /* Same comfortable target as every other field — tapped one-handed in a driveway. */
    min-height: var(--touch-comfortable);
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

select:focus[b-spvwrr5576],
input:focus[b-spvwrr5576] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

/* The free-text box sits under the dropdown that revealed it, close enough to read as part
   of the same control rather than as a new question. */
.other-model[b-spvwrr5576] {
    margin-top: var(--space-2);
}
/* /Components/Shared/WorkLineEditor.razor.rz.scp.css */
/* Lines on a quote, job or invoice. Its own stylesheet because CSS isolation only reaches
   elements authored in this component — the same rule that left the model picker looking like
   a raw browser control. */

.lines[b-93lfwke1oq] {
    margin-bottom: var(--space-4);
}

.line-table[b-93lfwke1oq] {
    width: 100%;
    border-collapse: collapse;
}

.line-table th[b-93lfwke1oq] {
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-strong);
}

.line-table th.qty[b-93lfwke1oq],
.line-table th.price[b-93lfwke1oq],
.line-table th.amount[b-93lfwke1oq] { text-align: right; }

.line-table th.tax[b-93lfwke1oq] { text-align: center; }

.line-table td[b-93lfwke1oq] {
    padding: var(--space-2);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

/* The description takes whatever is left; the number columns are fixed so the decimal points
   line up down the page, which is how somebody checks a total at a glance. */
.line-table .desc[b-93lfwke1oq] { width: auto; min-width: 12rem; }
.line-table .qty[b-93lfwke1oq] { width: 6.5rem; }
.line-table .price[b-93lfwke1oq] { width: 8rem; }
.line-table .tax[b-93lfwke1oq] { width: 3.5rem; text-align: center; }
.line-table .amount[b-93lfwke1oq] { width: 7rem; text-align: right; font-variant-numeric: tabular-nums; }
.line-table .remove[b-93lfwke1oq] { width: 2.5rem; text-align: right; }

.line-table input[type="number"][b-93lfwke1oq] {
    width: 100%;
    min-height: var(--touch-min);
    padding: var(--space-2);
    font-size: var(--text-base);
    font-family: var(--font-body);
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.line-table input[type="number"]:focus[b-93lfwke1oq] {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.line-table input[type="checkbox"][b-93lfwke1oq] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: var(--space-3);
}

/* Shown, not absorbed. A customer given fifty dollars off should be able to see it, and so
   should whoever is looking at the screen with them. */
.discounted[b-93lfwke1oq] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--ok, var(--primary));
}

.line-table .empty[b-93lfwke1oq] {
    padding: var(--space-4);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.line-actions[b-93lfwke1oq] {
    margin: var(--space-3) 0;
}

.btn-quiet.small[b-93lfwke1oq] {
    min-height: 2.25rem;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.btn-quiet.small:hover[b-93lfwke1oq] {
    color: var(--text);
    border-color: var(--border-strong);
}

.link.danger[b-93lfwke1oq] {
    background: none;
    border: none;
    font-size: var(--text-lg);
    line-height: 1;
    color: var(--text-subtle);
    cursor: pointer;
    padding: var(--space-2);
}

.link.danger:hover[b-93lfwke1oq] { color: var(--overdue); }

/* Right-aligned and narrow, the way a paper invoice reads. */
.totals[b-93lfwke1oq] {
    margin-left: auto;
    width: min(22rem, 100%);
    font-size: var(--text-sm);
}

.totals > div[b-93lfwke1oq] {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
}

.totals span:last-child[b-93lfwke1oq] { font-variant-numeric: tabular-nums; }

.totals .discount[b-93lfwke1oq] { color: var(--ok, var(--primary)); }

.totals .grand[b-93lfwke1oq] {
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-strong);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

/* Wide enough for "100.000" and its stepper. At 4.5rem a rate of 7.000 was clipped,
   which is a number somebody is reading off a document to check. */
.tax-rate[b-93lfwke1oq] {
    width: 6rem;
    margin: 0 var(--space-1);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-sm);
    text-align: right;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.sr-only[b-93lfwke1oq] {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* On a phone the table stops being a table: each line becomes a stacked block with its own
   labels, because five columns at 375px is unreadable and horizontal scrolling on a form is
   worse. */
@media (max-width: 720px) {
    .line-table thead[b-93lfwke1oq] { display: none; }

    .line-table[b-93lfwke1oq], .line-table tbody[b-93lfwke1oq], .line-table tr[b-93lfwke1oq], .line-table td[b-93lfwke1oq] { display: block; width: auto; }

    .line-table tr[b-93lfwke1oq] {
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--border);
    }

    .line-table td[b-93lfwke1oq] { border: none; padding: var(--space-1) 0; }

    .line-table td.qty[b-93lfwke1oq]::before { content: "Qty"; }
    .line-table td.price[b-93lfwke1oq]::before { content: "Unit price"; }
    .line-table td.tax[b-93lfwke1oq]::before { content: "Taxable"; }
    .line-table td.amount[b-93lfwke1oq]::before { content: "Amount"; }

    .line-table td.qty[b-93lfwke1oq],
    .line-table td.price[b-93lfwke1oq],
    .line-table td.tax[b-93lfwke1oq],
    .line-table td.amount[b-93lfwke1oq] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        text-align: left;
    }

    .line-table td[b-93lfwke1oq]::before {
        font-size: var(--text-xs);
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--text-muted);
    }

    .line-table td.qty input[b-93lfwke1oq],
    .line-table td.price input[b-93lfwke1oq] { width: 9rem; }

    .line-table td.remove[b-93lfwke1oq] { text-align: left; }

    .totals[b-93lfwke1oq] { width: 100%; }
}
/* /Components/Shared/WorkPipelinePanel.razor.rz.scp.css */
/* The pipeline panel sits inside ClientView's layout, and NOTHING of ClientView's stylesheet
   reaches it. I wrote the opposite here and was wrong: a component's scope attribute is
   applied to the elements authored in its own .razor file, so <WorkPipelinePanel /> being
   written in ClientView does not put ClientView's scope on the sections this file renders.
   ClientView's ".card" compiles to ".card[b-clientview]" and matches none of them.

   The visible result was these cards sitting flat against their own contents with no padding,
   next to PROPERTIES and PETS which had it. Third time this trap has cost something on this
   screen — the headings, the model picker, and now the cards themselves — so the rule is
   worth stating plainly: if an element is drawn by THIS file, only THIS file can style it.

   Deliberately NOT named .row and .balance: isolation scopes these to this component, but
   Bootstrap's .row is loaded globally and a name collision in a stylesheet somebody reads six
   months from now costs more than four extra characters. */

/* The card heading, restated.

   ClientView's own .card h2 rule does not reach these headings: CSS isolation only applies a
   component's scope attribute to elements authored IN that component, so "Money" and
   "Invoices" rendered in sentence case while "PROPERTIES" and "PETS" beside them were
   uppercase. Caught by reading the rendered page rather than by looking at the markup — the
   same trap that left the model picker looking like a raw browser control. */
/* The card itself, restated to match ClientView's exactly so the pipeline cards and the
   PROPERTIES and PETS cards beside them are the same object. If that rule is ever changed,
   this one has to change with it. */
.card[b-pah561fl0i] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Full width of the page's grid. Money, invoices, quotes, jobs and payments are rows of
   figures, and a row of figures in a half-width column wraps into something nobody can scan. */
.card.wide[b-pah561fl0i] { grid-column: 1 / -1; }

.card-head[b-pah561fl0i] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

h2[b-pah561fl0i] {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* The same restatement, for the same reason: "New invoice" and "Record payment" sit where
   "Add" sits on the cards above them and have to look like it. */
.link[b-pah561fl0i] {
    margin-left: auto;
    padding: 0;
    min-height: var(--touch-min);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.link:disabled[b-pah561fl0i] { opacity: 0.5; cursor: default; }

.empty[b-pah561fl0i] { margin: 0; font-size: var(--text-sm); color: var(--text-subtle); }

.balance-strip[b-pah561fl0i] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--space-3);
    margin: 0;
}

.balance-strip div[b-pah561fl0i] {
    padding: var(--space-3);
    background: var(--surface-sunken);
    border-radius: var(--radius);
}

.balance-strip dt[b-pah561fl0i] {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
}

.balance-strip dd[b-pah561fl0i] {
    margin: var(--space-1) 0 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

/* What is owed is the figure somebody opened this screen for, so it is the one with colour. */
.balance-strip div.owing[b-pah561fl0i] { background: var(--overdue-bg); }
.balance-strip div.owing dd[b-pah561fl0i] { color: var(--overdue); }

.balance-strip div.settled[b-pah561fl0i] { background: var(--healthy-bg); }
.balance-strip div.settled dd[b-pah561fl0i] { color: var(--healthy); }

.work-rows[b-pah561fl0i] { display: block; }

.work-row[b-pah561fl0i] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-2);
    border-top: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.work-row:first-child[b-pah561fl0i] { border-top: none; }

/* A whole row is the hit target, not a link buried in it. This is used on a phone with a
   thumb, and "tap the number" is a worse instruction than "tap the row". */
a.work-row:hover[b-pah561fl0i] { background: var(--primary-subtle); }

.work-row .number[b-pah561fl0i] {
    min-width: 4rem;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.work-row .what[b-pah561fl0i] {
    flex: 1 1 12rem;
    min-width: 0;
    font-size: var(--text-sm);
    color: var(--text);
}

.work-row .when[b-pah561fl0i] {
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

.work-row .money[b-pah561fl0i] {
    margin-left: auto;
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

/* A reversal reads as a correction rather than as a payment. */
.work-row.reversal .money[b-pah561fl0i] { color: var(--overdue); }

@media (max-width: 720px) {
    /* The description drops to its own line and the money follows it, because number,
       status, description and amount on one line at 375px wraps into a shape nobody can
       scan down the page. */
    .work-row[b-pah561fl0i] { gap: var(--space-2); }
    .work-row .what[b-pah561fl0i] { flex-basis: 100%; }
    .work-row .money[b-pah561fl0i] { margin-left: 0; }
}

/* The enquiry as it was submitted, under the request it belongs to.

   Styled here and not borrowed from Leads.razor.css: a component's scope attribute only
   reaches the elements its own file draws, so the inbox's rules match nothing rendered by
   this panel however similar the two look. The same values on purpose — the office should
   recognise it as the same thing in both places. */
.asked[b-pah561fl0i] {
    padding: 0 var(--space-2) var(--space-3);
}

.asked-facts[b-pah561fl0i] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--space-2) var(--space-4);
    margin: 0 0 var(--space-2);
}

.asked-facts div[b-pah561fl0i] {
    min-width: 0;
}

.asked-facts dt[b-pah561fl0i] {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.asked-facts dd[b-pah561fl0i] {
    margin: 0;
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}

/* Their own words, marked as a quotation. What somebody typed into a form is evidence, and
   it should not be mistaken for the software's own text. */
.said[b-pah561fl0i] {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-left: 3px solid var(--border-strong, var(--border));
    background: var(--surface-muted, #f6f7f9);
    font-size: var(--text-sm);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
