/* /Components/Account/Pages/ForgotPassword.razor.rz.scp.css */
/* "Back to Log in" (issue 370): a tap target at least 44 px high, the same as the link on the Lockout page. */
.forgot-password-login-link[b-5q7fatq1y2] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
/* /Components/Account/Pages/Lockout.razor.rz.scp.css */
/* "Back to Log in" (issue 364): a tap target at least 44 px high (on every screen, so it is easy to hit on a phone); the text and its place stay as they are. */
.lockout-login-link[b-c1ehxg97dr] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
/* /Components/Account/Pages/Login.razor.rz.scp.css */
/* "Forgot your password?" link (issue 370): a tap target at least 44 px high, the same as the links on ForgotPassword and Lockout. */
.forgot-password-link[b-a61cpfnc2t] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
/* /Components/Account/Pages/Logout.razor.rz.scp.css */
/* Sign out button (issue 370): a tap target at least 44 px high. */
.logout-submit[b-2yndpnlpdo] {
    min-height: 44px;
}
/* /Components/Account/Shared/ManageLayout.razor.rz.scp.css */
/* Same left edge and top as the personal Settings page (/settings), so the shared heading and tabs don't move. */
.account-settings-page[b-fp3lug6zhe] {
	color: var(--ink);
	margin-inline-start: 0;
}

/* The account menu (ManageNavMenu) in the brand accent, like the tabs above it, not Bootstrap's own blue. */
.account-settings-page[b-fp3lug6zhe]  .nav-pills .nav-link {
	color: var(--ink-soft);
}

.account-settings-page[b-fp3lug6zhe]  .nav-pills .nav-link:hover {
	color: var(--accent);
}

.account-settings-page[b-fp3lug6zhe]  .nav-pills .nav-link.active {
	background-color: var(--accent);
	color: var(--on-color);
}

.account-settings-page[b-fp3lug6zhe]  .nav-pills .nav-link:focus-visible {
	box-shadow: 0 0 0 4px var(--accent-ring);
}

/* Below lg the menu sits above the page body: keep it off the body's heading. */
@media (max-width: 991.98px) {
	.account-settings-page[b-fp3lug6zhe]  .nav-pills {
		margin-bottom: var(--space-4);
	}
}
/* /Components/Layout/BaskerPanel.razor.rz.scp.css */
/* Epic 417 (step 5): the Basker side window. Figma 182:1512 (desktop: 440 wide, flush right, full height, header 61, no dimming) and
   182:2384 (phone: full screen, header 65, Close 40 x 40). Tokens only. The conversation inside is BaskerConversation in Panel mode. */
.basker-panel[b-448wkesgy0] {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	/* Above the sidebar (100), the phone menu (240/250) and every sticky page header and planning sheet (up to 1045); below the
	   report dialog and the toasts (1050 and up), which a person opens on purpose over it. */
	z-index: 1046;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: var(--surface);
	color: var(--ink);
	border-left: 1px solid var(--line);
	/* Figma: 0 16 48 over the page, the same ink as the shadow tokens. */
	box-shadow: 0 16px 48px rgba(15, 23, 32, 0.28);
}

/* Focus lands on the window itself only when nothing inside can take it (DialogFocusScope); no ring on the container. */
.basker-panel:focus[b-448wkesgy0] {
	outline: none;
}

.basker-panel-header[b-448wkesgy0] {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	min-height: 61px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.basker-panel-avatar[b-448wkesgy0] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

[b-448wkesgy0] .basker-panel-avatar-icon {
	width: 15px;
	height: 15px;
}

.basker-panel-title[b-448wkesgy0] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.basker-panel-open-page[b-448wkesgy0] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	padding: 4px 2px;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
}

.basker-panel-open-page:hover[b-448wkesgy0] {
	color: var(--accent-strong);
	text-decoration: underline;
}

[b-448wkesgy0] .basker-panel-open-icon {
	width: 13px;
	height: 13px;
}

.basker-panel-close[b-448wkesgy0] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
}

.basker-panel-close:hover[b-448wkesgy0] {
	background: var(--line-soft);
	color: var(--ink);
}

.basker-panel-open-page:focus-visible[b-448wkesgy0],
.basker-panel-close:focus-visible[b-448wkesgy0] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* The conversation takes the rest of the window and scrolls inside it; the input stays at the bottom (the Panel mode of the component). */
.basker-panel-body[b-448wkesgy0] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.basker-panel-body[b-448wkesgy0]  .basker-conversation-panel {
	flex: 1 1 auto;
	min-height: 0;
}

/* A phone (and an unfolded foldable up to 640.98 px, the layout's tier): the window is the whole screen (picture 6). */
@media (max-width: 640.98px) {
	.basker-panel[b-448wkesgy0] {
		inset: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		border-left: 0;
		box-shadow: none;
	}

	.basker-panel-header[b-448wkesgy0] {
		min-height: 65px;
		padding: 12px 12px 12px 16px;
	}

	.basker-panel-title[b-448wkesgy0] {
		font-size: 17px;
	}

	.basker-panel-close[b-448wkesgy0] {
		width: 40px;
		height: 40px;
		border-color: var(--line);
	}
}

/* Touch: "Open as page" and Close get the 44 px target of the design system. */
@media (pointer: coarse) {
	.basker-panel-open-page[b-448wkesgy0] {
		min-height: 44px;
		padding-inline: 6px;
	}

	.basker-panel-close[b-448wkesgy0] {
		width: 44px;
		height: 44px;
	}
}

/* A foldable's cover screen (under 350 px): "Open as page" shows only its icon, so the title "Basker" keeps its room. The text stays
   for a screen reader (visually hidden), so the button keeps its name. */
@media (max-width: 349.98px) {
	.basker-panel-open-page[b-448wkesgy0] {
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	.basker-panel-open-page-text[b-448wkesgy0] {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	[b-448wkesgy0] .basker-panel-open-icon {
		width: 16px;
		height: 16px;
	}
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-9xt0z7f5zq] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-9xt0z7f5zq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Flex items default to min-width:auto, which refuses to shrink below the
       content's natural (min-content) width. A wide table or other unwrapped
       content inside a page can then force this whole flex item - and with it
       the page's row layout on desktop - wider than the viewport, causing the
       page itself to scroll horizontally instead of the offending element's
       own overflow-x. min-width: 0 lets it shrink to the available space so
       each page is responsible for its own internal scrolling. */
    min-width: 0;
}

.content[b-9xt0z7f5zq] {
    flex: 1;
    min-width: 0;
    /* Turn the content column into a flex container so a page's root element
       can opt in to filling the remaining viewport height (flex: 1) instead
       of just taking its natural content height - e.g. so a list page's
       table can grow to the bottom of the screen and scroll internally
       rather than the whole document scrolling. Pages that don't opt in are
       unaffected: they keep their natural height like a normal block. */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar[b-9xt0z7f5zq] {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}


@media (min-width: 641px) {
    .page[b-9xt0z7f5zq] {
        flex-direction: row;
    }

    .sidebar[b-9xt0z7f5zq] {
        width: 250px;
        min-width: 0;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
        scrollbar-width: thin;
        z-index: 100;
        transition: width 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .sidebar-hidden[b-9xt0z7f5zq] {
        width: 60px !important;
        overflow-x: hidden;
    }

    .sidebar-hidden[b-9xt0z7f5zq]  .nav-link-text,
    .sidebar-hidden[b-9xt0z7f5zq]  .navbar-brand,
    .sidebar-hidden[b-9xt0z7f5zq]  .nav-section-header,
    .sidebar-hidden[b-9xt0z7f5zq]  .navbar-toggler,
    .sidebar-hidden[b-9xt0z7f5zq]  hr,
    .sidebar-hidden[b-9xt0z7f5zq]  .navbar {
        display: none !important;
    }

    .sidebar-hidden[b-9xt0z7f5zq]  .nav-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex;
        justify-content: center;
    }

    .sidebar-hidden[b-9xt0z7f5zq]  .nav-link {
        width: 40px !important;
        padding: 0 !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .sidebar-hidden[b-9xt0z7f5zq]  .sidebar-collapse-footer {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .sidebar-hidden[b-9xt0z7f5zq]  .nav-icon {
        margin-right: 0 !important;
        margin-left: 0 !important;
        flex-shrink: 0;
    }

    article[b-9xt0z7f5zq] {
        padding-top: 1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 640.98px) {
    .content[b-9xt0z7f5zq] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* The "unhandled error" bar (issue 237, Figma 42:2 B): the peach warning card (--warning-soft with its line, 8 px radius, 12/14 padding)
   at the bottom of the window. Blazor sets its inline display to block, so the layout is in .blazor-error-body. */
#blazor-error-ui[b-9xt0z7f5zq] {
    color-scheme: light only;
    background: var(--warning-soft);
    border: 1px solid var(--warning-line);
    border-radius: var(--radius-md);
    bottom: 16px;
    box-sizing: border-box;
    color: var(--ink);
    display: none;
    font-size: 13px;
    left: 16px;
    padding: 12px 14px;
    position: fixed;
    right: 16px;
    /* Above the report dialog (1060/1061) and the other dialogs, below the toasts (1090). The bar means the circuit is dead; when
       it appears over an open report dialog the JS-only dialog takes that one over (feedback-fallback.js). */
    z-index: 1070;
}

    #blazor-error-ui .blazor-error-body[b-9xt0z7f5zq] {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #blazor-error-ui .blazor-error-text[b-9xt0z7f5zq] {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Reload and Report problem: the 26 px outlined buttons of the frame (5/10 padding, 6 px radius, 12.5 px text). */
    #blazor-error-ui .blazor-error-btn[b-9xt0z7f5zq] {
        align-items: center;
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        box-sizing: border-box;
        color: var(--ink);
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-size: 12.5px;
        gap: 6px;
        justify-content: center;
        line-height: 14px;
        min-height: 26px;
        padding: 5px 10px;
        text-decoration: none;
    }

    #blazor-error-ui .blazor-error-btn:hover[b-9xt0z7f5zq] {
        background: var(--surface-muted);
        color: var(--ink);
    }

    #blazor-error-ui .blazor-error-report[b-9xt0z7f5zq] {
        border-color: var(--danger-line);
        color: var(--danger-ink);
    }

    #blazor-error-ui .blazor-error-report:hover[b-9xt0z7f5zq] {
        background: var(--danger-soft);
        color: var(--danger-ink);
    }

    /* Blazor's own script closes the bar on a click here. It isn't in the frame, so it stays a quiet glyph at the end of the row. */
    #blazor-error-ui .dismiss[b-9xt0z7f5zq] {
        color: var(--ink-soft);
        cursor: pointer;
        display: inline-flex;
        flex: none;
        padding: 4px;
    }

/* Touch on a wider screen (a tablet, a phone turned sideways): the two buttons get the 44 px tap height too, not only the phone layout below. */
@media (pointer: coarse) {
    #blazor-error-ui .blazor-error-btn[b-9xt0z7f5zq] {
        min-height: 44px;
    }
}

/* Phone: the text on its own line (the dismiss glyph at its end), the two buttons side by side under it at the 44 px tap height. */
@media (max-width: 640.98px) {
    #blazor-error-ui .blazor-error-body[b-9xt0z7f5zq] {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
    }

    #blazor-error-ui .blazor-error-text[b-9xt0z7f5zq] {
        grid-column: 1 / 3;
    }

    #blazor-error-ui .dismiss[b-9xt0z7f5zq] {
        align-self: start;
        grid-column: 3;
        grid-row: 1;
    }

    #blazor-error-ui .blazor-error-btn[b-9xt0z7f5zq] {
        min-height: 44px;
    }

    #blazor-error-ui .blazor-error-reload[b-9xt0z7f5zq] {
        grid-column: 1;
        grid-row: 2;
    }

    #blazor-error-ui .blazor-error-report[b-9xt0z7f5zq] {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-tjscn7geay] {
    color: var(--nav-ink);
    border-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:active[b-tjscn7geay] {
    background-color: rgba(0, 0, 0, 0.05);
}

.top-row[b-tjscn7geay] {
    min-height: 3.5rem;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.navbar-brand[b-tjscn7geay] {
    font-size: 1.1rem;
}

/* Nav icons are Bootstrap Icons glyph atoms (Icon{Name} CssClass="nav-icon", issue 103) - an svg rendered by
   the atom, hence ::deep. The svg is the fixed 1.25rem slot the old font-glyph span was; the .125rem padding
   keeps the glyph itself at 1rem and centred in it, exactly where the font drew it. */
[b-tjscn7geay] .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0.125rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nav-item[b-tjscn7geay] {
    font-size: 0.85rem;
    padding-bottom: 0.15rem;
}

    .nav-item:first-of-type[b-tjscn7geay] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-tjscn7geay] {
        padding-bottom: 0.5rem;
    }

.nav-item[b-tjscn7geay]  .nav-link {
    color: var(--nav-ink);
    background: none;
    border: none;
    border-radius: 4px;
    height: 2.2rem;
    display: flex;
    align-items: center;
    line-height: 2.2rem;
    width: 100%;
    padding: 0 0.75rem;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

/* A nested item (decision 179: Shop kinds under Suppliers): its icon lines up under the parent's text. The collapsed
   sidebar's centred icon (MainLayout, !important padding) is unaffected. */
.nav-item.nav-sub[b-tjscn7geay]  .nav-link {
    padding-left: 2.25rem;
}

.nav-item[b-tjscn7geay]  a.active {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-ink);
    font-weight: 600;
}

.nav-item[b-tjscn7geay]  .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--nav-ink-strong);
}

/* The report-a-problem and suggest-an-improvement items are <button>s (they open a dialog, they don't navigate) sharing the
   same .nav-link look as every NavLink - reset the browser's default button chrome first so the
   existing .nav-link rule above is the only thing that actually shows through. */
.nav-item[b-tjscn7geay]  .nav-link-button {
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sidebar-collapse-footer[b-tjscn7geay] {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.sidebar-toggle-btn[b-tjscn7geay] {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: var(--nav-ink-muted);
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover[b-tjscn7geay] {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--nav-ink-strong);
}

/* The collapse/expand glyph (IconLayoutSidebarInset / IconLayoutSidebarInsetReverse, issue 103): the old
   background-image icon's 1rem glyph, centred by the flex button, in its fixed Bootstrap gray-600. */
[b-tjscn7geay] .sidebar-toggle-icon {
    width: 1rem;
    height: 1rem;
    color: var(--bs-gray-600);
}

.nav-scrollable[b-tjscn7geay] {
    display: none;
    height: calc(100% - 3.5rem);
}

/* On small screens, when NOT collapsed, it should show */
@media (max-width: 640.98px) {
    .nav-scrollable:not(.collapse)[b-tjscn7geay] {
        display: block;
    }

    /* The hamburger button used to just scroll away with the rest of the
       page (it was a normal in-flow box inside .top-row, not pinned) -
       float it as a small, translucent corner button pinned to the
       viewport instead, so it's always reachable while scrolled.
       Deliberately just the button, not the whole .top-row bar: most
       other pages have their own position:sticky top:0 header
       (MachineDetail/ComplaintDetail/etc.'s .topbar), and a full-width
       fixed bar at the same z-index tier would permanently cover all of
       them on every page, not just this one - a small corner button only
       overlaps a small corner of that header, not the whole thing. */
    .navbar-toggler[b-tjscn7geay] {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 250;
        width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 8px;
        border-color: rgba(0, 0, 0, 0.08);
    }

    /* Pinning the button takes it out of .top-row's normal flow - the
       Baler brand text alone remains there and keeps scrolling away with
       the page as before (unaffected; only the button itself is pinned). */

    /* The expanded menu panel (opened via the now-floating button) needs to
       be reachable regardless of how far the page happens to be scrolled
       when the button is tapped - position:relative left it in .sidebar's
       normal in-flow spot at the very top of the document, which is
       nowhere near the viewport once scrolled (confirmed live: opening
       after scrolling ~600px put the panel roughly 1500px above the
       viewport - the menu silently failed to appear at all). Make it its
       own full-screen fixed overlay instead, independent of scroll
       position, with its own internal scrolling for a menu taller than
       the viewport. */
    .nav-scrollable:not(.collapse)[b-tjscn7geay] {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* Explicit height (not the base rule's calc(100% - 3.5rem), which
           doesn't resolve reliably as a percentage against a fixed-
           position element with no explicitly-sized ancestor at this
           breakpoint) so top+height define the full screen without
           needing `bottom` too - CSS gives an explicit height priority
           over a bottom offset, which would otherwise make this ambiguous. */
        height: 100vh;
        z-index: 240;
        background-color: var(--surface);
        overflow-y: auto;
    }
}

.navbar-toggler:focus[b-tjscn7geay] {
    outline: none;
}

@media (min-width: 641px) {
    .navbar-toggler[b-tjscn7geay] {
        display: none;
    }

    .nav-scrollable[b-tjscn7geay] {
        /* Never collapse the sidebar for wide screens */
        display: block !important;

        /* Allow sidebar to scroll for tall menus */
        overflow-y: auto;
    }
}

.nav-section-header[b-tjscn7geay] {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05rem;
    color: var(--nav-ink-muted);
    padding: 1.25rem 1rem 0.5rem 1rem;
}

/* Moved from inline style attributes (issue 101). */
[b-tjscn7geay] .nav-icon-gap {
    margin-right: 8px;
}

/* Issue 238: "N new" on the reports link. It sits at the end of the link and never wraps or pushes the label onto a second
   line: the label shortens instead. In the collapsed sidebar the text is hidden and only a dot on the icon's corner shows. */
.nav-link-text-shrink[b-tjscn7geay] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-badge[b-tjscn7geay] {
    margin-left: auto;
    padding: 0 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-color);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item[b-tjscn7geay]  .nav-link {
    position: relative;
}

.nav-badge-dot[b-tjscn7geay] {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    overflow: hidden;
}

.nav-badge-dot .nav-badge-text[b-tjscn7geay] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Epic 417 (step 5), decision D19: the Basker menu line exactly as the product owner drew it (Figma 181:306): the 16 px star in the
   normal icon slot, "Basker" 13.6 px Bold, then 12 px later "Ask Baler" 10 px Regular whose top is 2 px below the name's top (a similar
   baseline, not centred). Selected: --accent-soft row, text and star --accent (the generic active rule). Unselected: the same texts in the
   menu ink, no fill. The collapsed sidebar hides the whole text span (.nav-link-text) and keeps the star. */
.basker-nav-text[b-tjscn7geay] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    line-height: 1;
}

.basker-nav-name[b-tjscn7geay] {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.basker-nav-secondary[b-tjscn7geay] {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
    line-height: 11px;
    white-space: nowrap;
}

/* The Basker button (Figma 182:1512, 1): a pill between "Baler" and the bell, 87 x 29, 8 px radius, --accent-soft fill and border,
   the 16 px star in --accent and "Basker" 13 px Bold in --accent-strong. It takes the free space on its left, so the bell (which also
   has an auto margin) sits right next to it; the bell's own margin stays. */
.basker-button[b-tjscn7geay] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 29px;
    margin-left: auto;
    margin-right: 0.5rem;
    padding: 0 9px;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s;
}

.basker-button:hover[b-tjscn7geay],
.basker-button[aria-expanded="true"][b-tjscn7geay] {
    border-color: var(--accent);
}

.basker-button:focus-visible[b-tjscn7geay] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[b-tjscn7geay] .basker-button-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
}

.basker-button[b-tjscn7geay] ~  .bell-link {
    margin-left: 0;
}

/* Touch: a phone, or a wide touch screen (pointer: coarse; razor-page-design-system, "Touch targets": this block sets sizes and moves
   the paint, nothing else). Issue 424 fix rounds 2 and 3 (responsive review): the button itself is the 44 px tall tap area, transparent,
   borderless and square-cornered, and ::before paints the pill in its middle (29 px high, 7.5 px inside the box above and below), so a
   finger finds it and the hit area is the real box. On a wide touch screen the pill keeps the desktop look (85 x 29 measured: the 10 px side
   padding replaces the 9 px padding and the 1 px border). The top row is 56 px: its navbar padding (8 px above and below) leaves a
   40 px line, and the -4 px block margins keep the 44 px box from growing the row (the box overhangs that line by 2 px into the padding). */
@media (max-width: 640.98px), (pointer: coarse) {
    .basker-button[b-tjscn7geay] {
        position: relative;
        isolation: isolate;
        height: 44px;
        min-height: 44px;
        margin-block: -4px;
        padding: 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .basker-button[b-tjscn7geay]::before {
        content: "";
        position: absolute;
        inset: 7.5px 0;
        z-index: -1;
        border: 1px solid var(--accent-soft);
        border-radius: var(--radius-md);
        background: var(--accent-soft);
        transition: border-color 0.2s;
    }

    .basker-button:hover[b-tjscn7geay]::before,
    .basker-button[aria-expanded="true"][b-tjscn7geay]::before {
        border-color: var(--accent);
    }

    .basker-button:focus-visible[b-tjscn7geay] {
        outline: none;
    }

    .basker-button:focus-visible[b-tjscn7geay]::before {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
}

/* A phone: the star alone, drawn as the 37 x 29 pill of the drawing (the name stays in the accessible name), in a 44 x 44 box. The box
   is 3.5 px wider than the pill on each side: its right margin is 3.5 px smaller, so the pill stays 8 px from the bell, where it was. */
@media (max-width: 640.98px) {
    .basker-button[b-tjscn7geay] {
        justify-content: center;
        width: 44px;
        min-width: 44px;
        margin-right: calc(0.5rem - 3.5px);
        padding: 0;
    }

    .basker-button[b-tjscn7geay]::before {
        inset: 7.5px 3.5px;
    }

    .basker-button-text[b-tjscn7geay] {
        display: none;
    }
}
/* /Components/Layout/NotificationBell.razor.rz.scp.css */
.bell-link[b-kpt2wrmioz] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    margin-right: 0.5rem;
    border-radius: 999px;
    color: var(--nav-ink);
    text-decoration: none;
}

.bell-link:hover[b-kpt2wrmioz],
.bell-link:focus-visible[b-kpt2wrmioz] {
    background-color: var(--accent-soft);
    color: var(--accent);
}

[b-kpt2wrmioz] .bell-icon {
    font-size: 1.15rem;
}

.bell-badge[b-kpt2wrmioz] {
    position: absolute;
    top: 0.1rem;
    right: 0.05rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background-color: var(--danger-ink);
    color: var(--on-color);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

/* Phones: the fixed hamburger toggle sits at the top right; keep the bell clear of it (issue 176 review). */
@media (max-width: 640.98px) {
    .bell-link[b-kpt2wrmioz] {
        margin-right: 2.75rem;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-s0b5sapq40],
.components-reconnect-repeated-attempt-visible[b-s0b5sapq40],
.components-reconnect-failed-visible[b-s0b5sapq40],
.components-pause-visible[b-s0b5sapq40],
.components-resume-failed-visible[b-s0b5sapq40],
.components-rejoining-animation[b-s0b5sapq40] {
    display: none;
}

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


#components-reconnect-modal[b-s0b5sapq40] {
    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-s0b5sapq40 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-s0b5sapq40] {
    border: 0;
    background-color: var(--reconnect-button);
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-s0b5sapq40] {
        background-color: var(--reconnect-button-hover);
    }

    #components-reconnect-modal button:active[b-s0b5sapq40] {
        background-color: var(--reconnect-button);
    }

/* Issue 237: "Report problem" is the secondary action (Figma 42:2): outlined. */
/* Text in the darker button colour: the lighter one is too faint on white for text (4.5:1). */
#components-reconnect-modal button.components-reconnect-report[b-s0b5sapq40] {
    background-color: transparent;
    color: var(--reconnect-button-hover);
    box-shadow: inset 0 0 0 1px var(--reconnect-button-hover);
}

    #components-reconnect-modal button.components-reconnect-report:hover[b-s0b5sapq40] {
        background-color: var(--accent-soft, transparent);
        color: var(--accent-strong);
        box-shadow: inset 0 0 0 1px var(--accent-strong);
    }

/* The failed state is the card of Figma 42:2 B (reconnect-failed): 16 px padding, 12 px radius, the line border, left-aligned title
   (14 px bold) and text (12.5 px, soft ink), then the two 26 px buttons side by side: Reload (--accent, white bold text) and Report
   problem (outlined in --accent). The container becomes a wrapping row with a 10 px row gap and an 8 px gap between the buttons. */
#components-reconnect-modal.components-reconnect-failed[b-s0b5sapq40] {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    color: var(--ink);
    padding: 16px;
    width: min(406px, calc(100vw - 32px));
}

    #components-reconnect-modal.components-reconnect-failed .components-reconnect-container[b-s0b5sapq40] {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 8px;
    }

    #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-title[b-s0b5sapq40],
    #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-text[b-s0b5sapq40] {
        flex: 0 0 100%;
        text-align: left;
    }

    #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-title[b-s0b5sapq40] {
        font-size: 14px;
        font-weight: 700;
        line-height: 16px;
    }

    #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-text[b-s0b5sapq40] {
        color: var(--ink-soft);
        font-size: 12.5px;
        line-height: 14px;
    }

    #components-reconnect-modal.components-reconnect-failed button[b-s0b5sapq40] {
        border-radius: var(--radius-sm);
        box-sizing: border-box;
        font-size: 12.5px;
        line-height: 14px;
        min-height: 26px;
        padding: 5px 10px;
    }

    #components-reconnect-modal.components-reconnect-failed button.components-reconnect-reload[b-s0b5sapq40] {
        background-color: var(--accent);
        color: var(--on-color);
        font-weight: 700;
    }

        #components-reconnect-modal.components-reconnect-failed button.components-reconnect-reload:hover[b-s0b5sapq40] {
            background-color: var(--accent-strong);
        }

    #components-reconnect-modal.components-reconnect-failed button.components-reconnect-report[b-s0b5sapq40] {
        box-shadow: inset 0 0 0 1px var(--accent);
        color: var(--accent);
    }

        #components-reconnect-modal.components-reconnect-failed button.components-reconnect-report:hover[b-s0b5sapq40] {
            box-shadow: inset 0 0 0 1px var(--accent-strong);
            color: var(--accent-strong);
        }

/* Touch: every button of the dialog is at least 44 px high (the failed card's buttons keep their width). */
@media (pointer: coarse), (max-width: 576px) {
    #components-reconnect-modal button[b-s0b5sapq40],
    #components-reconnect-modal.components-reconnect-failed button[b-s0b5sapq40] {
        min-height: 44px;
    }
}

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

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

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

@keyframes components-rejoining-animation-b-s0b5sapq40 {
    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/Admin/BaskerConversations.razor.rz.scp.css */
/* Epic 417 step 11 (issue 462): the Admin page "Basker conversations", Figma 203:4297 (the list) and 203:4989 (one conversation).
   Styled like VisitMonitoring: the topbar from PageHeader, a table card on a desktop, cards under 1400 px. Tokens only. */
.bc-page[b-6rczaoo3h8] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.btn-refresh[b-6rczaoo3h8] {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

[b-6rczaoo3h8] .icon-refresh {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* ---- the filter card (Figma part 3, 4 and 5) --------------------------------------------------------------------------------- */
.bc-filters[b-6rczaoo3h8] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 28px;
	margin-bottom: var(--space-4);
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.bc-field[b-6rczaoo3h8] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.bc-field-user[b-6rczaoo3h8] {
	flex: 0 1 280px;
}

.bc-field-date[b-6rczaoo3h8] {
	flex: 0 1 170px;
}

.bc-label[b-6rczaoo3h8] {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}

.bc-filters .form-select[b-6rczaoo3h8],
.bc-filters .form-control[b-6rczaoo3h8] {
	font-size: 14px;
}

.bc-clear[b-6rczaoo3h8] {
	white-space: nowrap;
}

.bc-count[b-6rczaoo3h8] {
	margin: 0 0 9px auto;
	font-size: 13px;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* ---- the table (Figma part 6 and 7) ------------------------------------------------------------------------------------------- */
.table-card[b-6rczaoo3h8] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	max-width: 100%;
	overflow: auto;
}

.bc-table[b-6rczaoo3h8] {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.bc-table thead th[b-6rczaoo3h8] {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
	background: var(--surface-muted);
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.bc-table thead tr:first-child th:first-child[b-6rczaoo3h8] { border-top-left-radius: var(--radius-lg); }
.bc-table thead tr:first-child th:last-child[b-6rczaoo3h8] { border-top-right-radius: var(--radius-lg); }
.bc-table tbody tr:last-child td:first-child[b-6rczaoo3h8] { border-bottom-left-radius: var(--radius-lg); }
.bc-table tbody tr:last-child td:last-child[b-6rczaoo3h8] { border-bottom-right-radius: var(--radius-lg); }

.bc-table tbody td[b-6rczaoo3h8] {
	padding: 12px 16px;
	font-size: 13.5px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bc-table tbody tr:last-child td[b-6rczaoo3h8] { border-bottom: none; }
.bc-table tbody tr:hover[b-6rczaoo3h8] { background: var(--surface-hover); }

.col-started[b-6rczaoo3h8] { width: 150px; }
.col-user[b-6rczaoo3h8] { width: 200px; }
.col-role[b-6rczaoo3h8] { width: 120px; }
.col-messages[b-6rczaoo3h8] { width: 90px; text-align: right !important; }
.col-read[b-6rczaoo3h8] { width: 80px; }

.cell-time[b-6rczaoo3h8] { font-variant-numeric: tabular-nums; }
.cell-count[b-6rczaoo3h8] { text-align: right; font-variant-numeric: tabular-nums; }

.cell-sentence-text[b-6rczaoo3h8] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cell-read a[b-6rczaoo3h8] {
	color: var(--accent);
	text-decoration: none;
}

.cell-read a:hover[b-6rczaoo3h8] {
	text-decoration: underline;
}

.bc-visually-hidden[b-6rczaoo3h8] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.btn-load-more[b-6rczaoo3h8] {
	min-width: 102px;
}

/* ---- the cards of a phone and a narrow window: hidden on a desktop ----------------------------------------------------------- */
.mobile-list[b-6rczaoo3h8] {
	display: none;
}

.m-card[b-6rczaoo3h8] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
	margin-bottom: 8px;
}

.m-card-top[b-6rczaoo3h8] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-user[b-6rczaoo3h8] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--ink);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-time[b-6rczaoo3h8] {
	flex-shrink: 0;
	color: var(--ink-soft);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.m-card-row[b-6rczaoo3h8] {
	display: flex;
	gap: 6px;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.m-card-row .k[b-6rczaoo3h8] {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--ink-faint);
	font-size: 11px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	min-width: 72px;
}

.m-card-row .v[b-6rczaoo3h8] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Fix round 2 of issue 462 (Nit8): the display lives here, so the touch block below only sets sizes. */
.m-card-read[b-6rczaoo3h8] {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--accent);
	text-decoration: none;
}

/* ---- one conversation (Figma 203:4989): a column of 880 px in the middle of the page ------------------------------------------ */
.bc-read[b-6rczaoo3h8] {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	width: 100%;
	max-width: 880px;
	min-width: 0;
	margin-inline: auto;
	color: var(--ink);
}

.bc-read[b-6rczaoo3h8]  .topbar {
	margin-bottom: 0 !important;
}

.bc-back[b-6rczaoo3h8] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	margin-bottom: -8px;
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
}

.bc-back:hover[b-6rczaoo3h8] {
	text-decoration: underline;
}

.bc-strip[b-6rczaoo3h8] {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--info-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	color: var(--info-ink);
	font-size: 14px;
	font-weight: 700;
}

/* Review LW3: the eye keeps its 16 px next to a long strip text on a narrow phone. */
.bc-strip[b-6rczaoo3h8]  .glyph-icon,
.bc-strip[b-6rczaoo3h8]  svg {
	flex: 0 0 auto;
}

.bc-strip span[b-6rczaoo3h8] {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Mobile layout - breakpoint 1400px, the same as every other list page of the design system (also covers a resized desktop window). */
@media (max-width: 1400px) {
	.table-card[b-6rczaoo3h8] {
		display: none;
	}

	.mobile-list[b-6rczaoo3h8] {
		display: block;
	}

	.bc-field-user[b-6rczaoo3h8],
	.bc-field-date[b-6rczaoo3h8] {
		flex: 1 1 160px;
	}

	.bc-count[b-6rczaoo3h8] {
		margin-left: 0;
		flex-basis: 100%;
		margin-bottom: 0;
	}

	/* Review LW2: the filters are folded away behind the "Filters" button; the count of the list stays in view. */
	.bc-filters.mobile-collapsed .bc-field[b-6rczaoo3h8],
	.bc-filters.mobile-collapsed .bc-clear[b-6rczaoo3h8] {
		display: none;
	}
}

/* Review LW4 (and m4): on a phone and a touch screen "Read" and "Back to the list" are taps of at least 44 px. */
@media (max-width: 640.98px), (pointer: coarse) {
	.m-card-read[b-6rczaoo3h8],
	.bc-back[b-6rczaoo3h8] {
		min-height: 44px;
	}

	/* Fix round 2 (P2): "Read" is a short word; the tap is still 44 px wide. */
	.m-card-read[b-6rczaoo3h8] {
		min-width: 44px;
		margin-top: 2px;
		padding-inline: 2px;
	}

	.bc-back[b-6rczaoo3h8] {
		margin-bottom: -4px;
	}
}

/* Phone: the filters stack, the refresh button takes the row (like VisitMonitoring). */
@media (max-width: 640.98px) {
	.bc-page[b-6rczaoo3h8]  .topbar {
		align-items: flex-start;
	}

	.btn-refresh[b-6rczaoo3h8] {
		width: 100%;
		justify-content: center;
	}

	.bc-field-user[b-6rczaoo3h8],
	.bc-field-date[b-6rczaoo3h8],
	.bc-clear[b-6rczaoo3h8] {
		flex: 1 1 100%;
	}
}

/* Extra-narrow tier: foldable cover screens down to ~280px. */
@media (max-width: 349px) {
	.m-card[b-6rczaoo3h8] {
		padding: 10px 12px;
	}

	.m-card-user[b-6rczaoo3h8] {
		font-size: 13.5px;
	}

	.bc-strip[b-6rczaoo3h8] {
		font-size: 13px;
		padding: 10px 12px;
	}
}
/* /Components/Pages/Admin/BaskerPricesCard.razor.rz.scp.css */
/* Admin Settings · AI prices (epic 417, step 14): the same card look as the other cards on the Settings page (a
   child component, so its own copy of the card rules). Colours only from the app.css tokens. */
.card[b-qtw26fegi5] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-qtw26fegi5] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-qtw26fegi5] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.field-row[b-qtw26fegi5] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-qtw26fegi5] {
	grid-template-columns: minmax(0, 1fr);
}

/* Two fields side by side: label, input and error each share one subgrid row, so the inputs line up when one label
   wraps to two lines or only one field shows an error. */
.field-row.paired[b-qtw26fegi5] {
	grid-template-rows: auto auto auto;
	row-gap: 0;
}

.field-row.paired .field[b-qtw26fegi5] {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	/* minmax(0, ...): an input's intrinsic width (size=20) must never widen the column. */
	grid-template-columns: minmax(0, 1fr);
}

.field-row.paired .form-label[b-qtw26fegi5] {
	align-self: end;
}

.field[b-qtw26fegi5] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.form-label[b-qtw26fegi5] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.field .form-control[b-qtw26fegi5],
.field .form-select[b-qtw26fegi5] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.input-group[b-qtw26fegi5] {
	flex-wrap: nowrap;
}

.input-group .form-control[b-qtw26fegi5] {
	width: auto;
	flex: 1 1 auto;
}

.input-group-text[b-qtw26fegi5] {
	font-size: 12px;
	color: var(--ink-soft);
	background: var(--surface-muted);
	white-space: nowrap;
}

/* A hint shared by the two fields of a row sits right under that row. */
.prices-hint[b-qtw26fegi5] {
	margin: -8px 0 14px;
}

/* The currency is typed in any case and shown in capitals (the service stores it in capitals). */
.currency-input[b-qtw26fegi5] {
	text-transform: uppercase;
}

/* Read-only status under the fields: the limit, this month's cost and the state of Basker. Same tokens as other notes. */
.prices-status[b-qtw26fegi5] {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	color: var(--ink-soft);
	font-size: 13px;
}

.prices-status:empty[b-qtw26fegi5] {
	display: none;
}

.prices-status p[b-qtw26fegi5] {
	margin: 0;
}

.prices-status p + p[b-qtw26fegi5] {
	margin-top: 6px;
}

.prices-status .prices-status-warn[b-qtw26fegi5] {
	color: var(--warning-ink);
	font-weight: 600;
}

.card-actions[b-qtw26fegi5] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 780px) {
	.field-row[b-qtw26fegi5] {
		grid-template-columns: minmax(0, 1fr);
	}

	/* One column: plain stacked fields again. */
	.field-row.paired[b-qtw26fegi5] {
		grid-template-rows: none;
		row-gap: 14px;
	}

	.field-row.paired .field[b-qtw26fegi5] {
		display: flex;
		grid-row: auto;
	}

	.field-row.paired .form-label[b-qtw26fegi5] {
		align-self: auto;
	}

	.card[b-qtw26fegi5] {
		padding: 16px;
	}
}

/* Touch targets: sizes only (a coarse pointer also matches wide touch screens). */
@media (max-width: 640px), (pointer: coarse) {
	.field .form-control[b-qtw26fegi5],
	.field .form-select[b-qtw26fegi5],
	.input-group-text[b-qtw26fegi5],
	.card-actions .btn[b-qtw26fegi5] {
		min-height: 44px;
	}
}

@media (max-width: 349px) {
	.card[b-qtw26fegi5] {
		padding: 14px 12px;
	}
}
/* /Components/Pages/Admin/DiagnosticsLoggingCard.razor.rz.scp.css */
/* Admin Settings · Diagnostics & logging (issue 233, Figma frame 43:641, left card). The same card look as the other
   Settings cards (a child component, so its own copy of the card rules); the spacing between blocks is the Figma 12px gap. */
.card[b-o20tjrr0mt] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
	gap: 12px;
}

/* The card is a size container: its rows follow the card's own width (narrow whenever the sidebar shows beside a
   two-column grid), not the viewport's (issue 233 review D1). */
.diag-card[b-o20tjrr0mt] {
	container-type: inline-size;
}

.card h2[b-o20tjrr0mt] {
	font-size: 14px;
	margin: 0;
	font-weight: 700;
}

.card h2 small[b-o20tjrr0mt] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* Instance and version badges on the left, the Seq link pushed to the right. */
.diag-meta[b-o20tjrr0mt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.diag-badge[b-o20tjrr0mt] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--line-soft);
	color: var(--ink);
	font-size: 11.5px;
	font-weight: 700;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.diag-seq-link[b-o20tjrr0mt] {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}

.diag-seq-link:hover[b-o20tjrr0mt],
.diag-seq-link:focus-visible[b-o20tjrr0mt] {
	color: var(--accent-strong);
	text-decoration: underline;
}

.diag-seq-icon[b-o20tjrr0mt] {
	font-size: 11px;
	line-height: 1;
}

/* One banner per raised area: warning tokens, the clock, the sentence and "Stop now". */
.diag-banner[b-o20tjrr0mt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.diag-banner-icon[b-o20tjrr0mt] {
	flex: none;
	font-size: 15px;
	line-height: 1;
}

.diag-banner-text[b-o20tjrr0mt] {
	flex: 1 1 220px;
	min-width: 0;
	margin: 0;
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.diag-stop[b-o20tjrr0mt] {
	flex: none;
	padding: 5px 10px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-sm);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 12.5px;
}

.diag-stop:hover:not(:disabled)[b-o20tjrr0mt],
.diag-stop:focus-visible[b-o20tjrr0mt] {
	background: var(--warning-line);
}

.diag-stop:disabled[b-o20tjrr0mt] {
	opacity: 0.6;
}

.diag-eyebrow[b-o20tjrr0mt] {
	margin: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--ink-soft);
}

/* The area table: a bordered list, one row per area, the level select on the right. */
.diag-levels[b-o20tjrr0mt] {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.diag-row[b-o20tjrr0mt] {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
}

.diag-row + .diag-row[b-o20tjrr0mt] {
	border-top: 1px solid var(--line-soft);
}

.diag-row-text[b-o20tjrr0mt] {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.diag-row-name[b-o20tjrr0mt] {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--ink);
}

.diag-row-desc[b-o20tjrr0mt] {
	font-size: 12px;
	line-height: 1.35;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* Figma selects: 13.5px text, 36px tall. */
.diag-select[b-o20tjrr0mt] {
	flex: none;
	box-sizing: border-box;
	width: 190px;
	max-width: 100%;
	padding-top: 7px;
	padding-bottom: 7px;
	font-size: 13.5px;
	color: var(--ink);
	border-color: var(--line-strong);
	border-radius: var(--radius-sm);
}

/* A raised row: warning style, and the select only reports the raise (Stop now ends it). It grows to its one text
   ("Information · until 10:45 PM") instead of clipping it; the 190px of the other rows is its minimum. */
.diag-select.diag-select-raised[b-o20tjrr0mt] {
	width: auto;
	min-width: min(190px, 100%);
}

.diag-select.diag-select-raised:disabled[b-o20tjrr0mt] {
	background-color: var(--warning-soft);
	border-color: var(--warning-line);
	color: var(--ink);
	opacity: 1;
}

/* Temporary raise: [area] to [level] | for [duration] [Start]. The row wraps only between the two groups, so Start
   never ends up alone on a line; the selects shrink a little before it wraps and stop growing at the Figma widths. One
   line from a ~515px content box (a 560px card) on. */
.diag-raise[b-o20tjrr0mt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.diag-raise-group[b-o20tjrr0mt] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.diag-raise-what[b-o20tjrr0mt] {
	flex: 1 1 290px;
	max-width: 390px;
}

.diag-raise-when[b-o20tjrr0mt] {
	flex: none;
}

.diag-raise-word[b-o20tjrr0mt] {
	flex: none;
	font-size: 13px;
	color: var(--ink-soft);
}

.diag-raise .diag-raise-area[b-o20tjrr0mt] {
	flex: 1 1 150px;
	width: auto;
	min-width: 0;
	max-width: 190px;
}

.diag-raise .diag-raise-level[b-o20tjrr0mt] {
	flex: 1 1 110px;
	width: auto;
	min-width: 0;
	max-width: 150px;
}

.diag-raise .diag-raise-duration[b-o20tjrr0mt] {
	flex: none;
	width: 110px;
}

.diag-raise-start[b-o20tjrr0mt] {
	flex: none;
	padding: 7px 14px;
	font-size: 13.5px;
}

.diag-hint[b-o20tjrr0mt] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

.diag-actions[b-o20tjrr0mt] {
	display: flex;
}

/* A narrow card (a phone, or the sidebar beside the two-column grid): rows stack with a full-width select, the raise
   row is one control per line (the words "to"/"for" beside their select), the banner button goes below its sentence. */
@container (max-width: 420px) {
	.diag-row[b-o20tjrr0mt] {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.diag-row .diag-select[b-o20tjrr0mt] {
		width: 100%;
	}

	.diag-raise[b-o20tjrr0mt] {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px 10px;
	}

	.diag-raise-group[b-o20tjrr0mt] {
		display: contents;
	}

	.diag-raise .diag-select[b-o20tjrr0mt] {
		width: 100%;
		max-width: none;
	}

	.diag-raise-area[b-o20tjrr0mt],
	.diag-raise-start[b-o20tjrr0mt] {
		grid-column: 1 / -1;
	}

	.diag-banner-text[b-o20tjrr0mt] {
		flex-basis: calc(100% - 25px);
	}

	.diag-stop[b-o20tjrr0mt] {
		flex: 1 1 100%;
	}

	.diag-actions .btn[b-o20tjrr0mt] {
		width: 100%;
	}
}

/* 44px targets for touch (sizes only; the layout follows the card width above). */
@media (max-width: 640px), (pointer: coarse) {
	.diag-select[b-o20tjrr0mt],
	.diag-stop[b-o20tjrr0mt],
	.diag-raise-start[b-o20tjrr0mt],
	.diag-actions .btn[b-o20tjrr0mt] {
		min-height: 44px;
	}

	.diag-seq-link[b-o20tjrr0mt] {
		min-height: 44px;
	}
}

@media (max-width: 780px) {
	.card[b-o20tjrr0mt] {
		padding: 16px;
	}
}

@media (max-width: 349px) {
	.card[b-o20tjrr0mt] {
		padding: 14px 12px;
	}
}
/* /Components/Pages/Admin/FeedbackReportsCard.razor.rz.scp.css */
/* Admin Settings · Reports & improvements (issue 238, Figma frame 43:641, right card). The same card look as the other
   Settings cards (a child component, so its own copy of the card rules); the Figma gap between blocks is 12px.
   Every class here carries the frc- prefix: the fb- names belong to the report dialog's global stylesheet
   (wwwroot/css/feedback-dialog.css), whose .fb-tile (36px square, inline-flex) and .fb-actions (pushed right) were
   leaking into the tiles and the link. */
.card[b-vse5jnm9hn] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* The card is a size container: its tiles follow the card's own width, not the viewport's. */
.frc-card[b-vse5jnm9hn] {
	container-type: inline-size;
}

.card h2[b-vse5jnm9hn] {
	font-size: 14px;
	margin: 0;
	font-weight: 700;
}

.card h2 small[b-vse5jnm9hn] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* Four tiles, two by two; one column only when the card is too narrow even for two small ones. */
.frc-tiles[b-vse5jnm9hn] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

/* Figma 43:732: 12px padding, 2px gaps, 25 + 14 + 13px lines, so a tile with a one-line note is 80px tall. */
.frc-tile[b-vse5jnm9hn] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 12px;
	border-radius: var(--radius-lg);
}

.frc-tile-number[b-vse5jnm9hn] {
	font-size: 22px;
	font-weight: 700;
	line-height: 25px;
}

.frc-tile-label[b-vse5jnm9hn] {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 14px;
	overflow-wrap: anywhere;
}

.frc-tile-sub[b-vse5jnm9hn] {
	font-size: 11.5px;
	line-height: 13px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.frc-tile-danger[b-vse5jnm9hn] { background: var(--danger-soft); color: var(--danger-ink); }
.frc-tile-new[b-vse5jnm9hn] { background: var(--status-new-bg); color: var(--status-new-ink); }
.frc-tile-confirm[b-vse5jnm9hn] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.frc-tile-done[b-vse5jnm9hn] { background: var(--status-done-bg); color: var(--status-done-ink); }

.frc-update[b-vse5jnm9hn] {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.frc-update-icon[b-vse5jnm9hn] {
	display: inline-flex;
	color: var(--success-ink);
}

.frc-toggle[b-vse5jnm9hn] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding-left: 0;
	font-size: 13px;
}

.frc-toggle .form-check-input[b-vse5jnm9hn] {
	flex: 0 0 auto;
	float: none;
	margin: 2px 0 0;
}

.frc-actions[b-vse5jnm9hn] {
	display: flex;
}

.frc-actions .btn[b-vse5jnm9hn] {
	font-size: 13px;
}

/* Touch: 44px for the link button and the checkbox row on phones and any touch screen (issue 101). */
@media (max-width: 640px), (pointer: coarse) {
	.frc-actions .btn[b-vse5jnm9hn] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.frc-toggle[b-vse5jnm9hn] {
		align-items: center;
		min-height: 44px;
	}

	.frc-toggle .form-check-input[b-vse5jnm9hn] {
		margin: 0;
	}
}

/* One column only when two tiles of about 95px can't fit (a 300px phone keeps 2x2). */
@container (max-width: 190px) {
	.frc-tiles[b-vse5jnm9hn] {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* /Components/Pages/Admin/PlanningSettingsCard.razor.rz.scp.css */
/* Admin Settings · Planning (issue 190, epic 189): the same card look as the other cards on the Settings page (a
   child component, so its own copy of the card rules). Colours only from the app.css tokens. */
.card[b-ji2ve2gyqc] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-ji2ve2gyqc] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-ji2ve2gyqc] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.field-row[b-ji2ve2gyqc] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-ji2ve2gyqc] {
	grid-template-columns: minmax(0, 1fr);
}

/* Two fields side by side: label, input and error each share one subgrid row, so the inputs line up when one label
   wraps to two lines or only one field shows an error. */
.field-row.paired[b-ji2ve2gyqc] {
	grid-template-rows: auto auto auto;
	row-gap: 0;
}

.field-row.paired .field[b-ji2ve2gyqc] {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	/* minmax(0, ...): an input's intrinsic width (size=20) must never widen the column. */
	grid-template-columns: minmax(0, 1fr);
}

.field-row.paired .form-label[b-ji2ve2gyqc] {
	align-self: end;
}

.field[b-ji2ve2gyqc] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.form-label[b-ji2ve2gyqc] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.field .form-control[b-ji2ve2gyqc],
.field .form-select[b-ji2ve2gyqc] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.input-group[b-ji2ve2gyqc] {
	flex-wrap: nowrap;
}

.input-group .form-control[b-ji2ve2gyqc] {
	width: auto;
	flex: 1 1 auto;
}

.input-group-text[b-ji2ve2gyqc] {
	font-size: 12px;
	color: var(--ink-soft);
	background: var(--surface-muted);
	white-space: nowrap;
}

/* A hint shared by the two fields of a row sits right under that row. */
.planning-hint[b-ji2ve2gyqc] {
	margin: -8px 0 14px;
}

/* The impact of a zone or working-window change, shown before the save (issue 275). Same warning tokens as other notes. */
.planning-impact[b-ji2ve2gyqc] {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 13px;
}

.planning-impact p[b-ji2ve2gyqc] {
	margin: 0;
}

.planning-impact p + p[b-ji2ve2gyqc] {
	margin-top: 6px;
}

.card-actions[b-ji2ve2gyqc] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 780px) {
	.field-row[b-ji2ve2gyqc] {
		grid-template-columns: minmax(0, 1fr);
	}

	/* One column: plain stacked fields again. */
	.field-row.paired[b-ji2ve2gyqc] {
		grid-template-rows: none;
		row-gap: 14px;
	}

	.field-row.paired .field[b-ji2ve2gyqc] {
		display: flex;
		grid-row: auto;
	}

	.field-row.paired .form-label[b-ji2ve2gyqc] {
		align-self: auto;
	}

	.card[b-ji2ve2gyqc] {
		padding: 16px;
	}
}

/* Touch targets: sizes only (a coarse pointer also matches wide touch screens). */
@media (max-width: 640px), (pointer: coarse) {
	.field .form-control[b-ji2ve2gyqc],
	.field .form-select[b-ji2ve2gyqc],
	.input-group-text[b-ji2ve2gyqc],
	.card-actions .btn[b-ji2ve2gyqc] {
		min-height: 44px;
	}
}

@media (max-width: 349px) {
	.card[b-ji2ve2gyqc] {
		padding: 14px 12px;
	}
}
/* /Components/Pages/Admin/PurchasingMailboxCard.razor.rz.scp.css */
/* Admin Settings · Purchasing mailbox (issue 176): the same card look as the billing and purchasing cards on the
   Settings page (a child component, so its own copy of the card rules). */
.card[b-y1rpaqq27v] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-y1rpaqq27v] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-y1rpaqq27v] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.field-row[b-y1rpaqq27v] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-y1rpaqq27v] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.host-row[b-y1rpaqq27v] {
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.field-row.align-end[b-y1rpaqq27v] {
	align-items: end;
}

.field[b-y1rpaqq27v] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.form-label[b-y1rpaqq27v] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.field[b-y1rpaqq27v]  .form-control,
.field[b-y1rpaqq27v]  .form-select,
.field .form-control[b-y1rpaqq27v] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.field[b-y1rpaqq27v]  .form-control.is-invalid,
.field[b-y1rpaqq27v]  .form-select.is-invalid,
.field .form-control.is-invalid[b-y1rpaqq27v] {
	outline: none;
}

.input-group[b-y1rpaqq27v] {
	flex-wrap: nowrap;
}

.input-group[b-y1rpaqq27v]  .form-control {
	width: auto;
	flex: 1 1 auto;
}

.input-group-text[b-y1rpaqq27v] {
	font-size: 12px;
	color: var(--ink-soft);
	background: var(--surface-muted);
	white-space: nowrap;
}

.mailbox-hint[b-y1rpaqq27v] {
	margin: -8px 0 14px;
}

.mailbox-status[b-y1rpaqq27v] {
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.mailbox-file-error[b-y1rpaqq27v] {
	color: var(--warning-ink);
}

.card-actions[b-y1rpaqq27v] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 780px) {
	.field-row[b-y1rpaqq27v],
	.field-row.host-row[b-y1rpaqq27v] {
		grid-template-columns: minmax(0, 1fr);
	}

	.card[b-y1rpaqq27v] {
		padding: 16px;
	}
}

@media (max-width: 349px) {
	.card[b-y1rpaqq27v] {
		padding: 14px 12px;
	}
}
/* /Components/Pages/Admin/ReceiptEvaluation.razor.rz.scp.css */
/* Receipt evaluation (issue 206), Admin only. Header from PageHeader; the cards follow DetailCard's look
   (razor-page-design-system "Cards"); the two tables scroll sideways inside their card on a narrow screen, never the page. */
.receipt-evaluation-page[b-vceh3du3no] {
	color: var(--ink);
}

.btn[b-vceh3du3no] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.btn-sm[b-vceh3du3no] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-vceh3du3no] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-vceh3du3no],
.btn-outline:focus-visible[b-vceh3du3no],
.btn-outline[aria-pressed="true"][b-vceh3du3no] {
	border-color: var(--accent);
	color: var(--accent);
}

.actions .btn[b-vceh3du3no] {
	white-space: normal;
	text-align: center;
	min-height: 32px;
	height: auto;
	padding: 6px 14px;
}

.page-error[b-vceh3du3no] {
	margin-bottom: 12px;
}

.start-hint[b-vceh3du3no] {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0 0 12px;
}

.layout[b-vceh3du3no] {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 12px;
	align-items: start;
}

.card[b-vceh3du3no] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
	min-width: 0;
}

.card-head[b-vceh3du3no] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 6px 12px;
	margin-bottom: 8px;
}

.card h2[b-vceh3du3no] {
	font-size: 12.5px;
	margin: 0;
	font-weight: 700;
}

.card h2 small[b-vceh3du3no] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

.card-intro[b-vceh3du3no] {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0 0 12px;
}

.set-size[b-vceh3du3no] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}

.filters[b-vceh3du3no] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 16px;
	margin-bottom: 8px;
}

.filter[b-vceh3du3no] {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 0 1 280px;
}

.form-label[b-vceh3du3no] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.form-select[b-vceh3du3no] {
	height: 32px;
	padding: 5px 28px 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	max-width: 100%;
}

.filter-switch[b-vceh3du3no],
.row-toggle[b-vceh3du3no] {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

.filter-switch .form-check-input[b-vceh3du3no],
.row-toggle .form-check-input[b-vceh3du3no] {
	margin-top: 0;
}

.row-list[b-vceh3du3no] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.list-row[b-vceh3du3no] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 14px;
	padding: 8px 0;
	border-top: 1px solid var(--line-soft);
	min-width: 0;
}

.list-row:first-child[b-vceh3du3no] {
	border-top: none;
}

.list-row.in-set .row-title[b-vceh3du3no],
.list-row.selected .row-title[b-vceh3du3no] {
	color: var(--accent-strong);
}

.row-main[b-vceh3du3no] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	flex: 1 1 240px;
	min-width: 0;
}

.row-title[b-vceh3du3no] {
	font-weight: 700;
	font-size: 13px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.row-link[b-vceh3du3no] {
	font-weight: 700;
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.row-link:hover[b-vceh3du3no] {
	text-decoration: underline;
}

.row-meta[b-vceh3du3no] {
	font-size: 12px;
	color: var(--ink-soft);
	min-width: 0;
	overflow-wrap: anywhere;
}

.row-error[b-vceh3du3no] {
	color: var(--danger-ink);
}

.load-more[b-vceh3du3no] {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.badge[b-vceh3du3no] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge .dot[b-vceh3du3no] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-vceh3du3no] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-progress[b-vceh3du3no] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-rejected[b-vceh3du3no] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-vceh3du3no] { background: var(--line-soft); color: var(--ink-soft); }

/* Report */

.table-scroll[b-vceh3du3no] {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.scores-table[b-vceh3du3no],
.results-table[b-vceh3du3no] {
	width: 100%;
	border-collapse: collapse;
}

.scores-table thead th[b-vceh3du3no],
.results-table thead th[b-vceh3du3no] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 8px 12px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.scores-table tbody th[b-vceh3du3no] {
	text-align: left;
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 12px;
	border-bottom: 1px solid var(--line-soft);
	min-width: 160px;
}

.scores-table tbody td[b-vceh3du3no],
.results-table tbody td[b-vceh3du3no] {
	padding: 7px 12px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
	font-variant-numeric: tabular-nums;
}

.results-table tbody td[b-vceh3du3no] {
	min-width: 150px;
}

.scores-table tbody tr:last-child > *[b-vceh3du3no],
.results-table tbody tr:last-child td[b-vceh3du3no] {
	border-bottom: none;
}

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

.scores-table thead th.num[b-vceh3du3no],
.results-table thead th.num[b-vceh3du3no] {
	text-align: right;
}

.delta-better[b-vceh3du3no] {
	color: var(--success-ink);
	font-weight: 700;
}

.delta-worse[b-vceh3du3no] {
	color: var(--danger-ink);
	font-weight: 700;
}

.delta-same[b-vceh3du3no] {
	color: var(--ink-faint);
}

.cell-sub[b-vceh3du3no] {
	font-size: 11.5px;
	color: var(--ink-soft);
}

.section-title[b-vceh3du3no] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 16px 0 8px;
}

.table-note[b-vceh3du3no] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 6px 0 0;
}

@media (max-width: 1400px) {
	.layout[b-vceh3du3no] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.filter[b-vceh3du3no] {
		flex: 1 1 100%;
	}

	.actions[b-vceh3du3no],
	.actions .btn[b-vceh3du3no] {
		width: 100%;
	}

	.list-row > .btn[b-vceh3du3no] {
		width: 100%;
	}

	/* The purchase's supplier under the date: at most two lines, so a long name doesn't stretch the row. */
	.results-table td:first-child .cell-sub[b-vceh3du3no] {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.scores-table tbody th[b-vceh3du3no] {
		min-width: 0;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.btn[b-vceh3du3no],
	.actions .btn[b-vceh3du3no],
	.form-select[b-vceh3du3no],
	.filter-switch[b-vceh3du3no],
	.row-toggle[b-vceh3du3no] {
		min-height: 44px;
	}

	/* The whole label is the touch target of a switch, not only the 2em knob. */
	.filter-switch .form-check-label[b-vceh3du3no],
	.row-toggle .form-check-label[b-vceh3du3no] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-right: 8px;
	}

	.row-link[b-vceh3du3no] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* In the results table a 44 px line box would push the cell's other lines apart: padding instead. */
	.results-table .row-link[b-vceh3du3no] {
		display: inline-block;
		min-height: 0;
		padding-block: 12px;
	}
}
/* /Components/Pages/Admin/Settings.razor.rz.scp.css */
.admin-settings-page[b-yk21g9zrnx] {
	color: var(--ink);
	max-width: 1280px;
}

.eyebrow[b-yk21g9zrnx] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Two columns (issue 137): billing company on the left, billing rates plus the language card on the right.
   One column below 1260px. minmax(0, ...) so a long value can never widen the page. */
.settings-grid[b-yk21g9zrnx] {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.settings-col[b-yk21g9zrnx] {
	min-width: 0;
}

.card[b-yk21g9zrnx] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-yk21g9zrnx] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-yk21g9zrnx] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.field-row[b-yk21g9zrnx] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-yk21g9zrnx] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-3[b-yk21g9zrnx] {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.field[b-yk21g9zrnx] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.form-label[b-yk21g9zrnx] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.field-row select[b-yk21g9zrnx],
.field[b-yk21g9zrnx]  .form-control,
.field[b-yk21g9zrnx]  .form-select,
.field .form-control[b-yk21g9zrnx],
.field .form-select[b-yk21g9zrnx] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.field[b-yk21g9zrnx]  textarea.form-control {
	resize: vertical;
}

.input-group[b-yk21g9zrnx] {
	flex-wrap: nowrap;
}

.input-group[b-yk21g9zrnx]  .form-control {
	width: auto;
	flex: 1 1 auto;
}

.input-group-text[b-yk21g9zrnx] {
	font-size: 12px;
	color: var(--ink-soft);
	background: var(--surface-muted);
	white-space: nowrap;
}

.prefix-row[b-yk21g9zrnx] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.prefix-row .form-control[b-yk21g9zrnx] {
	flex: 0 1 160px;
	width: 160px;
}

.example-pill[b-yk21g9zrnx] {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--accent-soft);
	color: var(--accent-strong);
	overflow-wrap: anywhere;
	min-width: 0;
}

.card-actions[b-yk21g9zrnx] {
	display: flex;
	justify-content: flex-end;
}

/* One column below 1260px: in two columns the cards get too narrow for the rate inputs and their unit suffix. */
@media (max-width: 1260px) {
	.settings-grid[b-yk21g9zrnx] {
		gap: 0;
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Stack the fields below 780px: house no. / post code / country select get clipped side by side. */
@media (max-width: 780px) {
	.field-row[b-yk21g9zrnx],
	.field-row.cols-3[b-yk21g9zrnx] {
		grid-template-columns: minmax(0, 1fr);
	}

	.card[b-yk21g9zrnx] {
		padding: 16px;
	}
}

@media (max-width: 480px) {
	.admin-settings-page[b-yk21g9zrnx] {
		max-width: 100%;
	}
}

@media (max-width: 349px) {
	.card[b-yk21g9zrnx] {
		padding: 14px 12px;
	}

	.prefix-row .form-control[b-yk21g9zrnx] {
		flex-basis: 100%;
		width: 100%;
	}
}

/* A field the server rejected (issue 137): show only Bootstrap's red invalid border, not Blazor's green
   "modified valid" outline from app.css. */
.field[b-yk21g9zrnx]  .form-control.is-invalid,
.field[b-yk21g9zrnx]  .form-select.is-invalid,
.field .form-control.is-invalid[b-yk21g9zrnx],
.field .form-select.is-invalid[b-yk21g9zrnx] {
	outline: none;
}

/* Purchasing card (issue 175): a hint shared by the two fields of a row sits right under that row. */
.purchasing-hint[b-yk21g9zrnx] {
	margin: -8px 0 14px;
}

/* Purchasing rows: the inputs line up when one label wraps to two lines. */
.field-row.align-end[b-yk21g9zrnx] {
	align-items: end;
}

/* Map position of the company address (issue 289): one line under the address fields. The icon is an SVG atom that
   paints in currentColor, so the state colour of the line reaches it. */
.issuer-map-state[b-yk21g9zrnx] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: -4px 0 14px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.issuer-map-state.is-found[b-yk21g9zrnx] {
	color: var(--success-ink);
}

.issuer-map-state.is-not-found[b-yk21g9zrnx] {
	color: var(--warning-ink);
}

.issuer-map-state[b-yk21g9zrnx]  svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	fill: currentColor;
}

.issuer-map-state span[b-yk21g9zrnx] {
	min-width: 0;
	overflow-wrap: anywhere;
}
/* /Components/Pages/Admin/UserTipsAdminSection.razor.rz.scp.css */
/* Admin Settings · Tips for users (issue 245, Figma frame 178:843). The same card look as the other Settings cards (a child
   component, so its own copy of the card rules). Every colour, radius and space is a global token from wwwroot/app.css. */
.card[b-ju7xwahhij] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px 22px;
	margin-bottom: 16px;
}

/* Narrow windows: the same 16px padding as the other cards of the page. */
@media (max-width: 780px) {
	.card[b-ju7xwahhij] {
		padding: 16px;
	}
}

/* Foldable cover screens: leave the text more room, as the other Settings cards do. */
@media (max-width: 349px) {
	.card[b-ju7xwahhij] {
		padding: 14px 12px;
	}
}

.card h2[b-ju7xwahhij] {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.uta-row[b-ju7xwahhij] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
}

.uta-text[b-ju7xwahhij] {
	flex: 1 1 auto;
	min-width: 0;
}

.uta-label[b-ju7xwahhij] {
	display: block;
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.uta-help[b-ju7xwahhij] {
	margin: 0;
	font-size: 13px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* Bootstrap sizes a switch in em: 22px makes it the 44 x 22 of the frame; the left gutter of .form-check goes. */
.uta-switch[b-ju7xwahhij] {
	flex: 0 0 auto;
	min-height: 0;
	margin: 0;
	padding-left: 0;
	font-size: 22px;
	line-height: 1;
}

.uta-switch .form-check-input[b-ju7xwahhij] {
	float: none;
	margin: 0;
	cursor: pointer;
}

.uta-switch .form-check-input:disabled[b-ju7xwahhij] {
	cursor: default;
}

/* The yellow line, only while User activity is not recording. */
.uta-warning[b-ju7xwahhij] {
	margin: var(--space-3) 0 0;
	padding: 8px 12px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 13px;
	overflow-wrap: anywhere;
}

/* Touch (issue 101): a 44px row for the switch on a phone and on any touch screen. The wrapper is the input's label, so the
   whole 44 x 44 area toggles the switch. */
@media (max-width: 640px), (pointer: coarse) {
	.uta-switch[b-ju7xwahhij] {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		cursor: pointer;
	}
}
/* /Components/Pages/Admin/VisitMonitoring.razor.rz.scp.css */
.visit-monitoring-page[b-vwr4ob0uxm] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column) so the table can grow to the bottom of the screen and scroll
	   internally instead of the whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-vwr4ob0uxm] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-refresh[b-vwr4ob0uxm] {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

[b-vwr4ob0uxm] .icon-refresh {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Table */

.table-card[b-vwr4ob0uxm] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 12px;
}

.visits-table[b-vwr4ob0uxm] {
	width: 100%;
	border-collapse: collapse;
}

.visits-table thead th[b-vwr4ob0uxm] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.visits-table thead tr:first-child th:first-child[b-vwr4ob0uxm] { border-top-left-radius: 12px; }
.visits-table thead tr:first-child th:last-child[b-vwr4ob0uxm] { border-top-right-radius: 12px; }
.visits-table tbody tr:last-child td:first-child[b-vwr4ob0uxm] { border-bottom-left-radius: 12px; }
.visits-table tbody tr:last-child td:last-child[b-vwr4ob0uxm] { border-bottom-right-radius: 12px; }

.visits-table tbody td[b-vwr4ob0uxm] {
	padding: 14px 18px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.visits-table tbody tr:last-child td[b-vwr4ob0uxm] { border-bottom: none; }
.visits-table tbody tr:hover[b-vwr4ob0uxm] { background: var(--surface-hover); }

.cell-time[b-vwr4ob0uxm] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-user[b-vwr4ob0uxm] { font-weight: 600; }
.cell-ip[b-vwr4ob0uxm] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* URL / User Agent columns are genuinely long free text - truncate with a
   hover tooltip to reveal the full value, same pattern as ComplaintList's
   Notes column and ServicePlanList's Address column. */

.notes-wrap[b-vwr4ob0uxm] {
	position: relative;
	display: inline-block;
	max-width: 320px;
	vertical-align: middle;
}

.cell-notes-text[b-vwr4ob0uxm] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-vwr4ob0uxm] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 420px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	word-break: break-word;
	pointer-events: none;
}

.notes-tooltip[b-vwr4ob0uxm]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-vwr4ob0uxm] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* "Load more" button below the table - matches CustomerList/ComplaintList's Load-more pattern
   now that VisitLogService's offset-based GetPageAsync(page, pageSize) is used to append pages
   instead of numbered pill pagination. */

.btn-load-more[b-vwr4ob0uxm] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-vwr4ob0uxm] {
	display: none;
}

.m-card[b-vwr4ob0uxm] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
}

.m-card-top[b-vwr4ob0uxm] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-user[b-vwr4ob0uxm] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--ink);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-time[b-vwr4ob0uxm] {
	flex-shrink: 0;
	color: var(--ink-soft);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.m-card-row[b-vwr4ob0uxm] {
	display: flex;
	gap: 6px;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.m-card-row .k[b-vwr4ob0uxm] {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--ink-faint);
	font-size: 11px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	min-width: 32px;
}

.m-card-row .v[b-vwr4ob0uxm] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout - breakpoint 1400px, same rationale as every other list page
   in this design system (also covers a resized desktop window). */

@media (max-width: 1400px) {
	.topbar[b-vwr4ob0uxm] {
		align-items: flex-start;
	}

	.btn-refresh[b-vwr4ob0uxm] {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-vwr4ob0uxm] {
		display: none;
	}

	.mobile-list[b-vwr4ob0uxm] {
		display: block;
	}
}

/* Extra-narrow tier: foldable cover screens down to ~280px. */

@media (max-width: 349px) {
	.m-card[b-vwr4ob0uxm] {
		padding: 10px 12px;
	}

	.m-card-user[b-vwr4ob0uxm] {
		font-size: 13.5px;
	}

	.btn-refresh[b-vwr4ob0uxm] {
		font-size: 12.5px;
	}
}
/* /Components/Pages/Assistant/Basker.razor.rz.scp.css */
/* Epic 417 (step 5): the Basker page (Figma 181:255 empty page, 182:899 conversation, 182:2101 phone).
   Issue 462 (step 11): the earlier conversations (Figma 203:3812 the column at the right, 203:6682 the button on a phone). Tokens only.
   The page scrolls as a normal page (decision D5-18): there is no inner scroll area and no second scrollbar; the input line of the
   conversation sticks to the bottom of the screen (BaskerConversation.razor.css). */
.basker-page-root[b-7xv61sfl7n] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

/* The page is a container: whether the list is a column or a button depends on the room the page has next to the sidebar, not on the
   screen. Fixed things (the full-screen list) stay outside it, because a container is also the containing block of a fixed element. */
.basker-page[b-7xv61sfl7n] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	container-type: inline-size;
	container-name: basker-page;
}

/* One column on a narrow page: the header, then the conversation, both as wide as the old page (880) and centred. */
.basker-page-layout[b-7xv61sfl7n] {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	min-width: 0;
}

/* The body only groups the conversation and the list for the markup: both are grid items of the layout. */
.basker-page-body[b-7xv61sfl7n] {
	display: contents;
}

.basker-page-layout[b-7xv61sfl7n]  .topbar,
.basker-page-layout[b-7xv61sfl7n]  .basker-conversation {
	grid-column: 1;
	justify-self: center;
	width: 100%;
	max-width: 880px;
	min-width: 0;
}

/* The conversation grows to the bottom of the screen, so the input line is at the bottom of an empty page too (Figma 181:255). */
.basker-page[b-7xv61sfl7n]  .basker-conversation {
	flex: 1 1 auto;
}

/* Step 12 (issue 463, Figma 203:5617): a Customer's header has no eyebrow; the empty line must not take room. */
.basker-page[b-7xv61sfl7n]  .topbar .eyebrow:empty {
	display: none;
}

/* The list at the right is only there on a wide page. */
.basker-page-aside[b-7xv61sfl7n] {
	display: none;
}

/* The button "Earlier conversations" (Figma 203:6682 part 1): 29 high, white, a thin grey line, the clock with the arrow, 13 regular. */
.basker-earlier-open[b-7xv61sfl7n] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 29px;
	padding: 6px 10px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	color: var(--ink);
	cursor: pointer;
}

.basker-earlier-open:hover[b-7xv61sfl7n] {
	background: var(--line-soft);
}

.basker-earlier-open:focus-visible[b-7xv61sfl7n] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* A wide page (Figma 203:3812): the conversation, then a column of 264 at the right with the button, the lines and the retention line.
   The column stays on screen while the page scrolls (like the input line) and is as high as the window. */
@container basker-page (min-width: 900px) {
	.basker-page-layout[b-7xv61sfl7n] {
		grid-template-columns: minmax(0, 1fr) 264px;
		column-gap: var(--space-6);
	}

	.basker-page-aside[b-7xv61sfl7n] {
		display: block;
		grid-column: 2;
		grid-row: 1 / span 2;
		position: sticky;
		top: var(--space-4);
		align-self: start;
		min-height: 0;
		height: calc(100vh - 2 * var(--space-4));
		height: calc(100dvh - 2 * var(--space-4));
		overflow: hidden;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
	}

	.basker-earlier-open[b-7xv61sfl7n] {
		display: none;
	}
}

/* A phone (and an unfolded foldable up to 640.98 px, the same tier as the layout): heading 22, no help line (Figma 182:2101). */
@media (max-width: 640.98px) {
	.basker-page[b-7xv61sfl7n]  .topbar {
		margin-bottom: var(--space-3) !important;
	}

	.basker-page[b-7xv61sfl7n]  .topbar h1 {
		font-size: 22px;
	}

	.basker-page[b-7xv61sfl7n]  .topbar p.text-muted {
		display: none;
	}
}

/* Review m4 of issue 462: on a phone and a touch screen "Earlier conversations" is a 44 px tap (Figma draws it 29 high). */
@media (pointer: coarse), (max-width: 640.98px) {
	.basker-earlier-open[b-7xv61sfl7n] {
		min-height: 44px;
	}
}
/* /Components/Pages/BadAddresses/BadAddresses.razor.rz.scp.css */
.bad-addresses-page[b-jtfp68ikev] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column) so the table can grow to the bottom of the screen and scroll
	   internally instead of the whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-jtfp68ikev] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.back-link[b-jtfp68ikev] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.btn-outline[b-jtfp68ikev] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-jtfp68ikev] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Badges - same palette used across the design system */

.badge[b-jtfp68ikev] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.badge .dot[b-jtfp68ikev] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-jtfp68ikev] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-jtfp68ikev] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-confirm[b-jtfp68ikev] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-done[b-jtfp68ikev] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-rejected[b-jtfp68ikev] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-jtfp68ikev] { background: var(--line-soft); color: var(--ink-soft); }

/* Table */

.table-card[b-jtfp68ikev] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.bad-addresses-table[b-jtfp68ikev] {
	width: 100%;
	border-collapse: collapse;
}

.bad-addresses-table thead th[b-jtfp68ikev] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.bad-addresses-table thead tr:first-child th:first-child[b-jtfp68ikev] { border-top-left-radius: 12px; }
.bad-addresses-table thead tr:first-child th:last-child[b-jtfp68ikev] { border-top-right-radius: 12px; }
.bad-addresses-table tbody tr:last-child td:first-child[b-jtfp68ikev] { border-bottom-left-radius: 12px; }
.bad-addresses-table tbody tr:last-child td:last-child[b-jtfp68ikev] { border-bottom-right-radius: 12px; }

.bad-addresses-table tbody td[b-jtfp68ikev] {
	padding: 14px 18px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.bad-addresses-table tbody tr:last-child td[b-jtfp68ikev] { border-bottom: none; }
.bad-addresses-table tbody tr:hover[b-jtfp68ikev] { background: var(--surface-hover); }
.bad-addresses-table tbody tr.row-updating[b-jtfp68ikev] { background: var(--accent-soft); }

.cell-address[b-jtfp68ikev] {
	font-weight: 500;
	max-width: 320px;
}

.cell-attempts[b-jtfp68ikev] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-lastattempt[b-jtfp68ikev] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.address-text[b-jtfp68ikev] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.status-updating[b-jtfp68ikev] {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	white-space: nowrap;
}

/* Suggestion chips: design-system chip look, double-click to apply */

.suggestions-wrap[b-jtfp68ikev] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 320px;
}

.suggestion-chip[b-jtfp68ikev] {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.suggestion-chip:hover[b-jtfp68ikev] {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
}

.no-suggestions[b-jtfp68ikev] {
	color: var(--ink-faint);
	font-size: 12.5px;
}

/* Row actions */

.btn-icon-label[b-jtfp68ikev] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border-radius: 7px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	white-space: nowrap;
}

.btn-icon-label:hover:not(:disabled)[b-jtfp68ikev] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-icon-label:disabled[b-jtfp68ikev] {
	opacity: 0.5;
	cursor: not-allowed;
}

[b-jtfp68ikev] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Edit modal: keep the Bootstrap modal wrapper (same convention as
   RalCodeDetail's RAL picker / BusinessTrips' trip modal), restyle the
   field grid inside modal-body. */

.field-row[b-jtfp68ikev] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-jtfp68ikev] {
	grid-template-columns: minmax(0, 1fr);
}

.field[b-jtfp68ikev] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-jtfp68ikev] {
	display: none;
}

.m-card[b-jtfp68ikev] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
}

.m-card.row-updating[b-jtfp68ikev] {
	background: var(--accent-soft);
}

.m-card-top[b-jtfp68ikev] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-address[b-jtfp68ikev] {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	color: var(--ink);
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-meta[b-jtfp68ikev] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.m-card-sub[b-jtfp68ikev] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12px;
	margin-top: 6px;
}

.m-card-suggestions[b-jtfp68ikev] {
	margin-top: 8px;
}

.m-card-actions[b-jtfp68ikev] {
	margin-top: 10px;
}

.m-card-actions .btn-icon-label[b-jtfp68ikev] {
	width: 100%;
	justify-content: center;
}

/* Mobile layout - breakpoint 1400px, same rationale as every other list page
   in this design system (also covers a resized desktop window). */

@media (max-width: 1400px) {
	.topbar[b-jtfp68ikev] {
		align-items: flex-start;
	}

	.table-card[b-jtfp68ikev] {
		display: none;
	}

	.mobile-list[b-jtfp68ikev] {
		display: block;
	}

	.field-row[b-jtfp68ikev] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Extra-narrow tier: foldable cover screens down to ~280px. */

@media (max-width: 349px) {
	.m-card[b-jtfp68ikev] {
		padding: 10px 12px;
	}

	.m-card-address[b-jtfp68ikev] {
		font-size: 13.5px;
	}
}

/* Moved from inline style attributes (issue 101). */
.col-actions[b-jtfp68ikev] {
	width: 110px;
}

.edit-modal[b-jtfp68ikev] {
	background-color: var(--modal-backdrop);
}
/* /Components/Pages/Billing/BillingLineEditor.razor.rz.scp.css */
/* Inline line editor of a billing statement (issue 141). A size container, so it lays out on its own width. */
.line-editor[b-sm6ai4efda] {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.le-grid[b-sm6ai4efda] {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px 10px;
}

.le-description[b-sm6ai4efda],
.le-detail[b-sm6ai4efda] {
	grid-column: span 3;
}

.form-label[b-sm6ai4efda] {
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-soft);
}

.form-control.needs-price[b-sm6ai4efda] {
	border-color: var(--danger-line);
}

.le-hint[b-sm6ai4efda] {
	margin: 0;
	font-size: 11.5px;
	color: var(--ink-faint);
}

.form-error[b-sm6ai4efda] {
	margin: 0;
	font-size: 12px;
	color: var(--danger-ink);
}

.le-actions[b-sm6ai4efda] {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.btn-outline[b-sm6ai4efda] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

@container (max-width: 640px) {
	.le-grid[b-sm6ai4efda] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.le-description[b-sm6ai4efda],
	.le-detail[b-sm6ai4efda] {
		grid-column: span 2;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.form-control-sm[b-sm6ai4efda],
	.le-actions .btn[b-sm6ai4efda] {
		min-height: 44px;
	}

	.le-actions .btn[b-sm6ai4efda] {
		flex: 1;
	}
}
/* /Components/Pages/Billing/BillingStatementDetail.razor.rz.scp.css */
/* Billing statement detail (issue 141). Cards come from DetailCard (side-card .kv rows), the sticky header from
   PageHeader; only the page-specific pieces live here. */
.billing-detail-page[b-p3bpcq2o6z] {
	color: var(--ink);
}

.btn[b-p3bpcq2o6z] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-sm[b-p3bpcq2o6z] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-danger-ghost[b-p3bpcq2o6z] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover:not(:disabled)[b-p3bpcq2o6z] {
	background: var(--danger-soft);
}

.btn-outline[b-p3bpcq2o6z] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover:not(:disabled)[b-p3bpcq2o6z] {
	border-color: var(--accent);
	color: var(--accent);
}

.header-info[b-p3bpcq2o6z] {
	flex-basis: 100%;
	width: 100%;
	border-radius: var(--radius-lg);
}

.source-badge[b-p3bpcq2o6z] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--accent);
	font-size: 10.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.source-badge:hover[b-p3bpcq2o6z] {
	border-color: var(--accent);
}

/* Status alert under the header */

.status-alert[b-p3bpcq2o6z] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-lg);
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.status-alert[b-p3bpcq2o6z]  .status-alert-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.status-alert-draft[b-p3bpcq2o6z] { background: var(--info-soft); color: var(--info-ink); }
.status-alert-issued[b-p3bpcq2o6z] { background: var(--success-soft); color: var(--success-ink); }
.status-alert-cancelled[b-p3bpcq2o6z] { background: var(--danger-soft); color: var(--danger-ink); }
.status-alert-needs-price[b-p3bpcq2o6z] { background: var(--danger-soft); color: var(--danger-ink); }

/* Decision 181: a line whose priced item has no price yet reads red. */
.lines-table tr.needs-price > td[b-p3bpcq2o6z] {
	background: var(--danger-soft);
}

.lines-table .price-missing[b-p3bpcq2o6z] {
	color: var(--danger-ink);
	font-weight: 700;
}

.issue-needs-price[b-p3bpcq2o6z] {
	margin: 0 0 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--danger-ink);
}

/* Decision 325: the Issue dialog repeats the plan check's warning (it never blocks Issue). D3 fix round 1: a light warning
   box with a thin border and regular text, like the user's Figma picture 150-2 and the app's other warning boxes. */
.issue-plan-differs[b-p3bpcq2o6z] {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	font-size: 12.5px;
	font-weight: 400;
	color: var(--warning-ink);
}

.issue-plan-differs[b-p3bpcq2o6z]  svg {
	flex-shrink: 0;
}

/* Card rows: 3 columns, 1 below 1100 px */

.top-row[b-p3bpcq2o6z],
.bottom-row[b-p3bpcq2o6z] {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.top-row > *[b-p3bpcq2o6z],
.bottom-row > *[b-p3bpcq2o6z] {
	min-width: 0;
}

@media (max-width: 1100px) {
	.top-row[b-p3bpcq2o6z],
	.bottom-row[b-p3bpcq2o6z] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Bill-to */

.segmented[b-p3bpcq2o6z] {
	display: inline-flex;
	max-width: 100%;
	margin-bottom: 10px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
}

.seg-option[b-p3bpcq2o6z] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px 12px;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.seg-option:disabled[b-p3bpcq2o6z] {
	opacity: 0.5;
	cursor: default;
}

.seg-active[b-p3bpcq2o6z] {
	background: var(--surface);
	color: var(--accent-strong);
	box-shadow: var(--shadow-sm);
}

.seg-active.seg-warranty[b-p3bpcq2o6z] {
	background: var(--info-soft);
	color: var(--info-ink);
}

.segmented-sm[b-p3bpcq2o6z] {
	margin-bottom: 0;
}

.segmented-sm .seg-option[b-p3bpcq2o6z] {
	padding: 2px 8px;
	font-size: 11px;
}

.customer-picker[b-p3bpcq2o6z] {
	margin-bottom: 10px;
}

.form-label[b-p3bpcq2o6z] {
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-soft);
}

.picker-results[b-p3bpcq2o6z] {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.picker-option[b-p3bpcq2o6z] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 7px 10px;
	border: none;
	border-bottom: 1px solid var(--line-soft);
	background: var(--surface);
	font-size: 12.5px;
	text-align: left;
	cursor: pointer;
}

.picker-option:hover:not(:disabled)[b-p3bpcq2o6z] {
	background: var(--accent-soft);
}

.picker-name[b-p3bpcq2o6z] {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
}

.party[b-p3bpcq2o6z] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
}

.party-name[b-p3bpcq2o6z] {
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.party-role[b-p3bpcq2o6z] {
	color: var(--ink-faint);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.party-address[b-p3bpcq2o6z] {
	color: var(--ink-soft);
	font-size: 12px;
	overflow-wrap: anywhere;
}

.warn-line[b-p3bpcq2o6z] {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	color: var(--warning-ink);
	font-size: 12px;
	font-weight: 600;
}

.form-error[b-p3bpcq2o6z] {
	margin: 6px 0 0;
	color: var(--danger-ink);
	font-size: 12px;
}

.muted[b-p3bpcq2o6z] {
	color: var(--ink-soft);
}

.small-text[b-p3bpcq2o6z] {
	margin: 6px 0 0;
	font-size: 12px;
}

.hint[b-p3bpcq2o6z] {
	margin: 4px 0 0;
	color: var(--ink-faint);
	font-size: 11.5px;
}

.field-block[b-p3bpcq2o6z] {
	margin-top: 8px;
}

/* Reference */

.kv-top[b-p3bpcq2o6z] {
	align-items: flex-start !important;
}

.plan-list[b-p3bpcq2o6z] {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.plan-list a[b-p3bpcq2o6z],
.kv a[b-p3bpcq2o6z] {
	color: var(--accent);
	text-decoration: none;
}

.plan-list a:hover[b-p3bpcq2o6z],
.kv a:hover[b-p3bpcq2o6z] {
	text-decoration: underline;
}

/* Totals */

.money[b-p3bpcq2o6z] {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* A long label or amount (Czech, a narrow column) wraps the value onto its own right-aligned line instead of pushing
   the card, and the page, sideways. */
.top-row .kv[b-p3bpcq2o6z] {
	flex-wrap: wrap;
}

.top-row .kv .v[b-p3bpcq2o6z] {
	margin-left: auto;
}

.kv-strong[b-p3bpcq2o6z] {
	font-size: 14px;
}

.kv-info[b-p3bpcq2o6z] {
	color: var(--info-ink);
}

.kv-info .k[b-p3bpcq2o6z] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--info-ink) !important;
}

.totals-sep[b-p3bpcq2o6z] {
	margin: 6px 0;
	border-top: 1px dashed var(--line-strong);
}

.fine-print[b-p3bpcq2o6z] {
	margin: 8px 0 0;
	color: var(--ink-faint);
	font-size: 11px;
}

/* Lines */

.link-action[b-p3bpcq2o6z] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: none;
	background: none;
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

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

.link-action:hover:not(:disabled)[b-p3bpcq2o6z] {
	text-decoration: underline;
}

/* Issue 170: Set all Billable / Warranty, next to Add manual line; wraps under each other on a narrow card. */
.lines-actions[b-p3bpcq2o6z] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 14px;
	min-width: 0;
	margin-left: auto;
}

/* The card head wraps the actions under the title on a narrow card instead of squeezing the title. */
[b-p3bpcq2o6z] .table-card-head:has(> .lines-actions) {
	flex-wrap: wrap;
	gap: 4px 12px;
}

.set-all[b-p3bpcq2o6z] {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 14px;
}

/* The table scrolls inside its own box; the page never scrolls sideways. The box is an inline-size container so the
   inline editor row can stay as wide as the visible box (100cqi) while the table scrolls under it. */
.lines-table-wrap[b-p3bpcq2o6z] {
	position: relative;
	max-width: 100%;
	overflow-x: auto;
	container-type: inline-size;
}

.lines-table[b-p3bpcq2o6z] {
	width: 100%;
	min-width: 1000px;
	border-collapse: collapse;
}

.lines-table thead th[b-p3bpcq2o6z] {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	background: var(--surface-muted);
	color: var(--ink-faint);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.lines-table td[b-p3bpcq2o6z] {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12.5px;
	vertical-align: middle;
}

.lines-table .num[b-p3bpcq2o6z],
.lines-table thead th.num[b-p3bpcq2o6z] {
	text-align: right;
}

.nowrap[b-p3bpcq2o6z] {
	white-space: nowrap;
}

.group-row th[b-p3bpcq2o6z],
.group-row td[b-p3bpcq2o6z] {
	padding: 7px 10px;
	background: var(--surface-muted);
	border-bottom: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
}

.group-row td.num[b-p3bpcq2o6z] {
	text-align: right;
}

.col-date[b-p3bpcq2o6z] {
	width: 100px;
}

.col-description[b-p3bpcq2o6z] {
	min-width: 220px;
}

.line-description[b-p3bpcq2o6z] {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.line-detail[b-p3bpcq2o6z] {
	display: block;
	color: var(--ink-faint);
	font-size: 11px;
	overflow-wrap: anywhere;
}

.charged-zero[b-p3bpcq2o6z] {
	color: var(--ink-faint);
}

.mode-chip[b-p3bpcq2o6z] {
	display: inline-flex;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* On the statement, Warranty is the info tone (the shield); Billable the accent. */
.mode-billable[b-p3bpcq2o6z] { background: var(--accent-soft); color: var(--accent-strong); }
.mode-warranty[b-p3bpcq2o6z] { background: var(--info-soft); color: var(--info-ink); }

.col-actions[b-p3bpcq2o6z] {
	width: 1%;
	white-space: nowrap;
}

/* Edit/remove stay in view while the wide table scrolls sideways. */
.lines-table td.col-actions[b-p3bpcq2o6z],
.lines-table th.col-actions[b-p3bpcq2o6z] {
	position: sticky;
	right: 0;
	background: var(--surface);
	box-shadow: -1px 0 0 var(--line-soft);
}

.lines-table th.col-actions[b-p3bpcq2o6z] {
	background: var(--surface-muted);
}

.row-buttons[b-p3bpcq2o6z] {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
}

.row-icon-btn[b-p3bpcq2o6z] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-faint);
	cursor: pointer;
}

.row-icon-btn:hover:not(:disabled)[b-p3bpcq2o6z] {
	background: var(--accent-soft);
	color: var(--accent);
}

.row-icon-btn-danger:hover:not(:disabled)[b-p3bpcq2o6z] {
	background: var(--danger-soft);
	color: var(--danger-ink);
}

.row-icon-btn:disabled[b-p3bpcq2o6z] {
	opacity: 0.45;
	cursor: default;
}

.edit-row td[b-p3bpcq2o6z] {
	padding: 10px;
	background: var(--surface-muted);
}

/* Pinned to the visible part of the scrolling box, as wide as that box (minus the cell padding). */
.edit-row-body[b-p3bpcq2o6z] {
	position: sticky;
	left: 10px;
	width: calc(100cqi - 20px);
}

.manual-line[b-p3bpcq2o6z] {
	margin-bottom: 12px;
	padding: 12px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
}

.manual-line-title[b-p3bpcq2o6z] {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
}

/* Notes and activity */

.value-box[b-p3bpcq2o6z] {
	min-height: 60px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	font-size: 12.5px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.value-box-empty[b-p3bpcq2o6z] {
	color: var(--ink-faint);
	font-style: italic;
}

.note-actions[b-p3bpcq2o6z] {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.activity[b-p3bpcq2o6z] {
	margin: 0;
	padding-left: 18px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.activity li + li[b-p3bpcq2o6z] {
	margin-top: 4px;
}

/* Dialogs */

.facts[b-p3bpcq2o6z] {
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
}

.facts .kv[b-p3bpcq2o6z] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
	font-size: 12.5px;
}

.facts .k[b-p3bpcq2o6z] {
	color: var(--ink-faint);
	font-weight: 600;
}

.facts .v[b-p3bpcq2o6z] {
	margin-left: auto;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 700;
	text-align: right;
}

.issue-problems[b-p3bpcq2o6z] {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--danger-ink);
	font-size: 12.5px;
}

.issue-problems-title[b-p3bpcq2o6z] {
	margin: 0 0 4px;
	font-weight: 700;
}

.issue-problems ul[b-p3bpcq2o6z] {
	margin: 0 0 6px;
	padding-left: 18px;
}

.issue-problems a[b-p3bpcq2o6z] {
	color: var(--danger-ink);
	font-weight: 600;
}

/* Phones and touch: 44 px targets. */
@media (max-width: 640px), (pointer: coarse) {
	.seg-option[b-p3bpcq2o6z],
	.link-action[b-p3bpcq2o6z],
	.actions .btn[b-p3bpcq2o6z],
	.actions-secondary .btn[b-p3bpcq2o6z],
	.picker-option[b-p3bpcq2o6z],
	.form-select-sm[b-p3bpcq2o6z],
	.form-control-sm[b-p3bpcq2o6z],
	.note-actions .btn[b-p3bpcq2o6z] {
		min-height: 44px;
	}

	.row-icon-btn[b-p3bpcq2o6z] {
		width: 44px;
		height: 44px;
	}

	.segmented[b-p3bpcq2o6z] {
		display: flex;
	}
}

/* Plan check (issue 287): planned hours next to the hours this statement logs. Full width between the top row and the
   Lines card; a table above 1024 px, MobileCardList cards at or below. The switch looks at the window width while the
   open sidebar takes 250 px, so 780 left the table cut off up to about 890 px (issue 287 review). Read-only. */
.plan-hours-table-wrap[b-p3bpcq2o6z] {
	max-width: 100%;
	overflow-x: auto;
}

.plan-hours-table[b-p3bpcq2o6z] {
	width: 100%;
	border-collapse: collapse;
}

.plan-hours-table thead th[b-p3bpcq2o6z] {
	padding: 6px 8px;
	border-bottom: 1px solid var(--line);
	background: var(--surface-muted);
	color: var(--ink-faint);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.plan-hours-table thead th.num[b-p3bpcq2o6z],
.plan-hours-table td.num[b-p3bpcq2o6z] {
	text-align: right;
}

.plan-hours-table td[b-p3bpcq2o6z] {
	padding: 8px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12.5px;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
}

/* The plan link looks like the Reference card's plan links on the same page. */
.plan-hours-table td.plan-cell a[b-p3bpcq2o6z] {
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.plan-hours-table td.plan-cell a:hover[b-p3bpcq2o6z] {
	text-decoration: underline;
}

.plan-hours-table tr.msg-row td[b-p3bpcq2o6z] {
	padding-top: 0;
	font-size: 12px;
}

/* A row with a message keeps its line under the message, not between the two. */
.plan-hours-table tbody tr:has(+ tr.msg-row) td[b-p3bpcq2o6z] {
	border-bottom: none;
}

.plan-hours-table tr.msg-row td > span + span[b-p3bpcq2o6z] {
	margin-left: 10px;
}

.plan-hours-table tr.msg-row .warn-line[b-p3bpcq2o6z] {
	margin-top: 2px;
}

/* Decision 319: on the desktop table a differing plan's rows get no tint; the over cell and the sentence carry the
   warning. The phone card keeps its tint (below). */

/* The Differs sentence is normal weight; only the over cell or line is bold. */
.warn-line.plan-differs[b-p3bpcq2o6z] {
	font-weight: 400;
}

/* Phone cards: the date is a muted sub-line, next to the Removed chip when there is one. */
.plan-card-aside[b-p3bpcq2o6z] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
}

.plan-card-date[b-p3bpcq2o6z] {
	color: var(--ink-soft);
	font-size: 12.5px;
	white-space: nowrap;
}

.plan-card-aside .plan-removed-chip[b-p3bpcq2o6z] {
	margin-left: 0;
}

/* A differing plan's phone card gets the warning tint; the desktop table rows have none (decision 319). The card element
   belongs to MobileCardList, hence ::deep from this page's own wrapper. */
.plan-hours-list[b-p3bpcq2o6z]  .m-card:has(.plan-differs) {
	background: var(--warning-soft);
}

.hours-over[b-p3bpcq2o6z] {
	color: var(--warning-ink);
	font-weight: 700;
}

.plan-removed-chip[b-p3bpcq2o6z] {
	margin-left: 6px;
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.plan-hours-card .hint[b-p3bpcq2o6z] {
	margin-top: 8px;
}
/* /Components/Pages/Billing/BillingStatementList.razor.rz.scp.css */
/* Billing statement list (issue 141). Toolbar, chips and table follow ComplaintList (razor-page-design-system). */
.billing-list-page[b-ui85dx9cjv] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	--m-card-sub-direction: row;
	--m-card-sub-justify: space-between;
	--m-card-sub-gap: 8px;
}

.btn[b-ui85dx9cjv] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Header action (issue 143): Export issued (JSON), with the 200-statement hint under it. */

.header-actions[b-ui85dx9cjv] {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	max-width: 100%;
}

.btn-outline[b-ui85dx9cjv] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	white-space: nowrap;
}

.btn-outline:hover[b-ui85dx9cjv],
.btn-outline:focus-visible[b-ui85dx9cjv] {
	border-color: var(--accent);
	color: var(--accent);
}

.export-hint[b-ui85dx9cjv] {
	max-width: 300px;
	text-wrap: balance;
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--warning-ink);
	text-align: right;
}

/* Toolbar */

.toolbar[b-ui85dx9cjv] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
}

.toolbar-row[b-ui85dx9cjv] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-ui85dx9cjv] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-ui85dx9cjv] {
	position: relative;
}

.search-wrap[b-ui85dx9cjv]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.search-input[b-ui85dx9cjv] {
	height: 32px;
	padding-left: 36px;
	font-size: 12.5px;
}

.filter-row[b-ui85dx9cjv] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.filter-label[b-ui85dx9cjv] {
	margin: 0 4px 0 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.period-select[b-ui85dx9cjv] {
	width: auto;
	min-width: 150px;
	height: 30px;
	font-size: 12.5px;
}

.chip[b-ui85dx9cjv] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 10px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
	user-select: none;
	text-align: inherit;
}

.chip .dot[b-ui85dx9cjv] {
	width: 7px;
	height: 7px;
	border-radius: var(--radius-pill);
	background: currentColor;
	opacity: 0.55;
	flex-shrink: 0;
}

.chip-active[b-ui85dx9cjv] {
	border-color: currentColor;
}

.chip-billing-status-draft.chip-active[b-ui85dx9cjv] { background: var(--warning-soft); color: var(--warning-ink); }
.chip-billing-status-issued.chip-active[b-ui85dx9cjv] { background: var(--success-soft); color: var(--success-ink); }
.chip-billing-status-cancelled.chip-active[b-ui85dx9cjv] { background: var(--danger-soft); color: var(--danger-ink); }

/* Table */

.table-card[b-ui85dx9cjv] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.billing-table[b-ui85dx9cjv] {
	width: 100%;
	border-collapse: collapse;
}

.billing-table thead th[b-ui85dx9cjv] {
	position: sticky;
	top: 0;
	z-index: 1;
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.billing-table tbody td[b-ui85dx9cjv] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.billing-table tbody tr:last-child td[b-ui85dx9cjv] { border-bottom: none; }
.billing-table tbody tr:hover[b-ui85dx9cjv] { background: var(--surface-hover); }

.billing-table .num[b-ui85dx9cjv] {
	text-align: right;
	white-space: nowrap;
}

.nowrap[b-ui85dx9cjv] {
	white-space: nowrap;
}

.muted[b-ui85dx9cjv] {
	color: var(--ink-soft);
}

.money[b-ui85dx9cjv] {
	font-variant-numeric: tabular-nums;
}

.currency[b-ui85dx9cjv] {
	color: var(--ink-faint);
	font-size: 11px;
}

.number-link[b-ui85dx9cjv] {
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.number-link:hover[b-ui85dx9cjv],
.number-link:focus-visible[b-ui85dx9cjv] {
	text-decoration: underline;
}

.draft-name[b-ui85dx9cjv] {
	font-style: italic;
	font-weight: 600;
}

.source-link[b-ui85dx9cjv] {
	display: block;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.source-link:hover[b-ui85dx9cjv] {
	text-decoration: underline;
}

.source-plans[b-ui85dx9cjv] {
	display: block;
	color: var(--ink-faint);
	font-size: 11px;
}

.bill-to-name[b-ui85dx9cjv] {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.pill-distributor[b-ui85dx9cjv] {
	display: inline-flex;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: var(--radius-pill);
	background: var(--info-soft);
	color: var(--info-ink);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.bill-to-missing[b-ui85dx9cjv] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--warning-ink);
	font-weight: 600;
}

.btn-load-more[b-ui85dx9cjv] {
	min-width: 160px;
}

/* Mobile cards */

.m-card-sub span[b-ui85dx9cjv] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-meta[b-ui85dx9cjv] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

/* At 360 px and below: the source ("Plan #3") and the issue date never shrink or break; the amount wraps instead. */
.m-card-sub span:first-child[b-ui85dx9cjv] {
	flex-shrink: 0;
}

.m-card-meta > span:last-child[b-ui85dx9cjv] {
	flex-shrink: 0;
	white-space: nowrap;
}

.m-card-meta .money[b-ui85dx9cjv] {
	min-width: 0;
	white-space: nowrap;
}

@media (max-width: 1400px) {
	.header-actions[b-ui85dx9cjv] {
		width: 100%;
		align-items: stretch;
	}

	.btn-export[b-ui85dx9cjv] {
		width: 100%;
	}

	.export-hint[b-ui85dx9cjv] {
		max-width: none;
		text-align: left;
	}

	.toolbar.mobile-collapsed[b-ui85dx9cjv] {
		display: none;
	}

	.toolbar-row .filter-row[b-ui85dx9cjv] {
		flex-basis: 100%;
	}

	.chip[b-ui85dx9cjv] {
		height: 32px;
	}
}

/* Touch targets on a phone. */
@media (max-width: 640px), (pointer: coarse) {
	.chip[b-ui85dx9cjv],
	.period-select[b-ui85dx9cjv],
	.search-input[b-ui85dx9cjv] {
		min-height: 44px;
	}

	.btn-load-more[b-ui85dx9cjv] {
		min-height: 44px;
		width: 100%;
	}

	/* Full width only below 1400 px (rule above); a wide touch screen keeps the compact header button. */
	.btn-export[b-ui85dx9cjv] {
		min-height: 44px;
	}
}

@media (max-width: 349px) {
	.toolbar[b-ui85dx9cjv] {
		padding: 14px;
	}
}
/* /Components/Pages/CallIssues/CallIssueDetail.razor.rz.scp.css */
.call-issue-detail-page[b-n4zy9rqoqw] {
	color: var(--ink);
}

.eyebrow[b-n4zy9rqoqw] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-n4zy9rqoqw] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-n4zy9rqoqw] {
	color: var(--accent);
}

/* Sticky header, same "frozen pane" pattern as ComplaintDetail */

.topbar[b-n4zy9rqoqw] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-n4zy9rqoqw] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-n4zy9rqoqw] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.actions[b-n4zy9rqoqw] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-n4zy9rqoqw] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-n4zy9rqoqw],
[b-n4zy9rqoqw] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-outline[b-n4zy9rqoqw] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-n4zy9rqoqw] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-danger-ghost[b-n4zy9rqoqw] {
	background: var(--surface);
	border: 1px solid var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-n4zy9rqoqw] {
	background: var(--danger-soft);
}

/* Small functional icons (pencil) rendered as inline SVG atoms instead of
   an icon font - see razor-page-design-system's Icons section. Reaching a
   child icon component's rendered <svg> from this page's scoped CSS
   requires ::deep. */
[b-n4zy9rqoqw] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Badges - same palette as ComplaintList/ComplaintDetail, reused for CallIssueState
   (New/InProgress/Done/Confirm/Rejected shares the exact same value set). */

.badge[b-n4zy9rqoqw] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-n4zy9rqoqw] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-n4zy9rqoqw] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-n4zy9rqoqw] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-n4zy9rqoqw] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-n4zy9rqoqw] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-n4zy9rqoqw] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-n4zy9rqoqw] { background: var(--line-soft); color: var(--ink-soft); }

/* Source info icon (title row), epic 417 issue 421: opens the shared source drawer with the user's own sentence a Basker call issue
   was prepared from. Same look as the service plan page's icon (issue 52). */

.icon-btn-info[b-n4zy9rqoqw] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-info:hover[b-n4zy9rqoqw] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Layout */

.card[b-n4zy9rqoqw] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-n4zy9rqoqw] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-n4zy9rqoqw] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link. */
.card-head-row[b-n4zy9rqoqw] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-n4zy9rqoqw] {
	margin-bottom: 0;
}

.link-btn[b-n4zy9rqoqw] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-n4zy9rqoqw] {
	text-decoration: underline;
}

.field-row[b-n4zy9rqoqw] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-n4zy9rqoqw] {
	grid-template-columns: minmax(0, 1fr);
}

.field[b-n4zy9rqoqw] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT a
   bordered/backgrounded box. */
.field-value[b-n4zy9rqoqw] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText/InputNumber/InputSelect controls default to Bootstrap's
   ~38px control height - match them to the .field-value footprint above
   (~32px, 12.5px type) so editable and read-only fields read as the same
   density. These are framework components, not plain HTML written in this
   page - their rendered <input>/<select> never gets this page's
   CSS-isolation scope attribute, so reaching them requires ::deep (the
   previous unscoped ".field select/textarea/input" rule here never
   actually matched anything for this same reason). */
.field[b-n4zy9rqoqw]  .form-control,
.field[b-n4zy9rqoqw]  .form-select {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
	width: 100%;
}

.field[b-n4zy9rqoqw]  .form-select {
	padding-right: 28px;
	background-position: right 8px center;
	background-size: 14px 11px;
}

/* Higher specificity than the rule above (adds a type selector) so the
   Notes textarea - wrapped in .field alongside this card's other fields -
   doesn't get force-collapsed to the single-line 32px height. See
   razor-page-design-system's ::deep specificity gotcha. */
.field[b-n4zy9rqoqw]  textarea.form-control {
	height: auto;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Photos */

.photo-grid[b-n4zy9rqoqw] {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.photo-thumb[b-n4zy9rqoqw] {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 1;
	background: var(--line-soft);
}

.photo-thumb-btn[b-n4zy9rqoqw] {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.photo-thumb-btn img[b-n4zy9rqoqw] {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 28 px: WCAG 2.5.8 / Lighthouse target-size needs 24 px here, since the button sits on top of the thumbnail's own
   button and can't use the spacing exception (issue 112 C4). */
.photo-thumb .del[b-n4zy9rqoqw] {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--danger-ink);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.photo-hint[b-n4zy9rqoqw] {
	font-size: 12.5px;
	color: var(--ink-faint);
	margin: -6px 0 10px;
}

/* Breakpoints match the rest of the design system: 1400px main compact
   switch, 640px/349px MainLayout content-padding tiers. */

@media (max-width: 1400px) {
	.field-row[b-n4zy9rqoqw] {
		grid-template-columns: minmax(0, 1fr);
	}

	.topbar[b-n4zy9rqoqw] {
		flex-direction: column;
	}

	.actions[b-n4zy9rqoqw] {
		width: 100%;
	}

	.actions .btn[b-n4zy9rqoqw] {
		flex: 1;
		justify-content: center;
	}

	.photo-grid[b-n4zy9rqoqw] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.topbar[b-n4zy9rqoqw] {
		padding: 12px;
	}
}

/* A full touch target on a phone and on any touch screen: the source icon (like the service plan page's), the header buttons and the
   inputs (min-height, so the notes box is not touched and the 28/32 px button rules above stay as the desktop size). */
@media (max-width: 640px), (pointer: coarse) {
	.icon-btn-info[b-n4zy9rqoqw] {
		width: 44px;
		height: 44px;
	}

	.actions .btn[b-n4zy9rqoqw] {
		min-height: 44px;
	}

	/* The page's own fields only (the rows of its Information card), not the inputs of shared components rendered elsewhere on it. */
	.field-row[b-n4zy9rqoqw]  .form-control:not(textarea),
	.field-row[b-n4zy9rqoqw]  .form-select {
		min-height: 44px;
	}

	/* The caption field of the photo box on this page keeps its 44 px touch height too (step 7 fix round 3, D3). */
	.call-issue-detail-page[b-n4zy9rqoqw]  .photo-uploader input.form-control {
		min-height: 44px;
	}
}

/* On a very short screen (phone landscape, keyboard open) the pinned header covered over a third of it; it scrolls away there, like
   the other detail pages. */
@media (max-height: 500px) {
	.topbar[b-n4zy9rqoqw] {
		position: static;
	}
}

@media (max-width: 349px) {
	.topbar[b-n4zy9rqoqw] {
		padding: 10px 12px;
	}

	/* The 44 px source icon stays beside the number and the badge instead of wrapping onto its own line. */
	.title-row[b-n4zy9rqoqw] {
		gap: 8px;
	}

	.title-row h1[b-n4zy9rqoqw] {
		font-size: 18px;
	}

	.actions .btn[b-n4zy9rqoqw] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

	.photo-grid[b-n4zy9rqoqw] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-n4zy9rqoqw] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Photo lightbox (moved from inline style attributes, issue 101). */
.photo-lightbox[b-n4zy9rqoqw] {
	background-color: var(--modal-backdrop-strong);
}

.photo-lightbox-image[b-n4zy9rqoqw] {
	max-height: 80vh;
	object-fit: contain;
}

/* The alert of a refused Save takes the focus after it was scrolled into view (the .razor.js module); no ring around the box. */
.action-error-alert[b-n4zy9rqoqw] {
	outline: none;
}
/* /Components/Pages/Complaints/ComplaintDetail.razor.rz.scp.css */
.complaint-detail-page[b-3xzks1noe9] {
	color: var(--ink);
}

/* IconPencil is a separate child component, so its rendered <svg> does
   not carry this file's CSS-isolation scope attribute - crossing that
   component boundary requires ::deep, same as MachineDetail.razor.css. */
[b-3xzks1noe9] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page (topbar Cancel/Delete/Save/Create Service
   Plan, "+ Call Issue", inline Edit, table row "Open") matches the compact
   density of the rest of the page, not just the .btn-sm variant below. */
.btn[b-3xzks1noe9] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-outline-success[b-3xzks1noe9] {
	background: var(--surface);
	border-color: var(--success-line);
	color: var(--success-ink);
}

.btn-outline-success:hover[b-3xzks1noe9] {
	background: var(--success-soft);
}

.btn-danger-ghost[b-3xzks1noe9] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-3xzks1noe9] {
	background: var(--danger-soft);
}

.btn-outline[b-3xzks1noe9] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-3xzks1noe9] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-3xzks1noe9] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

/* Badges (state + priority), shared palette with the Complaints list */

.badge[b-3xzks1noe9] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-3xzks1noe9] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-3xzks1noe9] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-3xzks1noe9] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-3xzks1noe9] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-3xzks1noe9] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-3xzks1noe9] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-3xzks1noe9] { background: var(--line-soft); color: var(--ink-soft); }

.priority-low[b-3xzks1noe9] { background: var(--priority-low-bg); color: var(--priority-low-ink); }
.priority-medium[b-3xzks1noe9] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.priority-high[b-3xzks1noe9] { background: var(--priority-high-bg); color: var(--priority-high-ink); }
.priority-critical[b-3xzks1noe9] { background: var(--priority-critical-bg); color: var(--priority-critical-ink); }
.priority-none[b-3xzks1noe9] { background: var(--line-soft); color: var(--ink-soft); }

/* Warranty claim (issue 139): the same amber tone as a Warranty line in the Additional prices card. */
.badge-warranty[b-3xzks1noe9] { background: var(--warning-soft); color: var(--warning-ink); }

/* Warranty claim switch + the machine's purchase date / warranty period help line (issue 139). */
.warranty-switch[b-3xzks1noe9] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	margin: 0;
}

.warranty-switch .form-check-input[b-3xzks1noe9] {
	width: 2.4em;
	height: 1.3em;
	margin-top: 0;
	cursor: pointer;
}

.warranty-switch .form-check-label[b-3xzks1noe9] {
	font-size: 12.5px;
	font-weight: 600;
}

/* A 44 px tap area for the switch and its Yes/No label on phones and other touch screens. */
@media (max-width: 640px), (pointer: coarse) {
	.warranty-switch[b-3xzks1noe9] {
		min-height: 44px;
	}

	.warranty-switch .form-check-label[b-3xzks1noe9] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-right: 12px;
	}

	/* Decision 402 Q3: the "Use suggestion" button gets the same tap area. */
	.suggested-priority .btn[b-3xzks1noe9] {
		min-height: 44px;
	}
}

.field-help[b-3xzks1noe9] {
	margin: 4px 0 0;
	font-size: 11.5px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

/* Decision 402 Q3: the assistant's priority suggestion under the Priority field, with its "Use suggestion" button. */
.suggested-priority[b-3xzks1noe9] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

/* Layout */

.grid[b-3xzks1noe9] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

/* Call issues badge (title row) + count pill in the sticky header */

.badge-callissues[b-3xzks1noe9] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues:hover[b-3xzks1noe9] {
	border-color: var(--accent);
}

/* Same badge, warning-colored, when the complaint has open call issues
   (callIssues.Count > 0) - real count data already loaded for the page,
   not a fabricated status. */
.badge-callissues-active[b-3xzks1noe9] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	color: var(--warning-ink);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues-active:hover[b-3xzks1noe9] {
	border-color: var(--warning-ink);
}

.badge-callissues-active .count-pill[b-3xzks1noe9] {
	background: rgba(147, 89, 12, 0.14);
	color: var(--warning-ink);
}

/* Email source info icon (title row) - issue #52 */

.icon-btn-info[b-3xzks1noe9] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-info:hover[b-3xzks1noe9] {
	border-color: var(--accent);
	color: var(--accent);
}

.count-pill[b-3xzks1noe9] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
}

/* Breakpoint is 600px, not a device-specific width: every current single-screen
   phone (iPhone 14-16, all Galaxy S/A/Note models, all Pixel phones, and the
   cover screens of the Z Fold/Z Flip/Pixel Fold) tops out around 430px CSS
   width, while every foldable's UNFOLDED screen starts around 670px - so 600px
   cleanly separates "phone" from "opened foldable / tablet" with margin on both
   sides, without needing per-device rules. */

/* Same rationale as ComplaintList.razor.css: 1400px is wide enough that
   resizing an ordinary desktop browser window down (not just real phones/
   foldables) switches this page to its compact single-column layout too. */

@media (max-width: 1400px) {
	.grid[b-3xzks1noe9] {
		grid-template-columns: minmax(0, 1fr);
	}

	.photo-grid[b-3xzks1noe9] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px. Tighten further so the header's badges
   and action buttons wrap cleanly instead of overflowing. */

@media (max-width: 349px) {
	.photo-grid[b-3xzks1noe9] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}
}

/* Call issues table */

.ci-table-wrap[b-3xzks1noe9] {
	overflow-x: auto;
	max-width: 100%;
}

.ci-table[b-3xzks1noe9] {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

.ci-table thead th[b-3xzks1noe9] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
}

.ci-table tbody td[b-3xzks1noe9] {
	padding: 8px 10px;
	font-size: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.ci-table tbody tr:last-child td[b-3xzks1noe9] {
	border-bottom: none;
}

.ci-table tbody tr:hover[b-3xzks1noe9] {
	background: var(--surface-hover);
}

/* Photos */

.photo-grid[b-3xzks1noe9] {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.photo-thumb[b-3xzks1noe9] {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 1;
	background: var(--line-soft);
}

.photo-thumb-btn[b-3xzks1noe9] {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.photo-thumb-btn img[b-3xzks1noe9] {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 28 px: WCAG 2.5.8 / Lighthouse target-size needs 24 px here, since the button sits on top of the thumbnail's own
   button and can't use the spacing exception (issue 112). */
.photo-thumb .del[b-3xzks1noe9] {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--danger-ink);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

/* Moved from inline style attributes (issue 101). */
.ci-table .col-no[b-3xzks1noe9] {
	width: 50px;
}

.ci-table .col-state[b-3xzks1noe9] {
	width: 120px;
}

.ci-table .col-open[b-3xzks1noe9] {
	width: 80px;
}

.photo-lightbox[b-3xzks1noe9] {
	background-color: var(--modal-backdrop-strong);
}

.photo-lightbox-image[b-3xzks1noe9] {
	max-height: 80vh;
	object-fit: contain;
}

/* Issue 174: icon + text in header buttons (Find a part), 44px header targets on touch, and no sticky header on short
   screens (phone landscape, keyboard open), where it covered about half the viewport. The header is the shared
   PageHeader (its root is .topbar-sticky), so ::deep. */
.actions .btn[b-3xzks1noe9] {
	gap: 5px;
}

@media (max-width: 640px), (pointer: coarse) {
	.actions .btn[b-3xzks1noe9] {
		min-height: 44px;
	}
}

@media (max-height: 500px) {
	.complaint-detail-page[b-3xzks1noe9]  .topbar-sticky {
		position: static;
	}
}

/* Fix round 2 of issue 426: Save is off with aria-disabled (not disabled) while the form is rebuilt for another prepared record; the
   handler ignores the press. It looks like Bootstrap's disabled button, as PlanScheduleEditor's Save does (issue 195). */
[data-component="ComplaintDetail.SaveButton"][aria-disabled="true"][b-3xzks1noe9],
[data-component="ComplaintDetail.SaveButton"][aria-disabled="true"]:hover[b-3xzks1noe9],
[data-component="ComplaintDetail.SaveButton"][aria-disabled="true"]:active[b-3xzks1noe9] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one would be skipped), so the keyboard gets the app's focus ring on it, as the
   schedule editor's Save does (issue 195). */
[data-component="ComplaintDetail.SaveButton"][aria-disabled="true"]:focus-visible[b-3xzks1noe9] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

@media (forced-colors: active) {
	[data-component="ComplaintDetail.SaveButton"][aria-disabled="true"][b-3xzks1noe9] {
		color: GrayText;
		border-color: GrayText;
	}
}

/* Issue 484: the note of a complaint Basker prepared together with a call issue (after Save the page opens that call issue). In the
   page flow under the draft strip, so the pinned header stays as high as with the strip alone. Tokens only. */
.basker-then-call-issue[b-3xzks1noe9] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	/* Fix round 1 of issue 484: no fill, so it does not stack as a second blue bar under the "Prepared by Basker" strip. */
	background: transparent;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.basker-then-call-issue[b-3xzks1noe9]  .glyph-icon {
	flex-shrink: 0;
	font-size: 16px;
	margin-top: 1.5px;
	color: var(--accent);
}
/* /Components/Pages/Complaints/ComplaintList.razor.rz.scp.css */
.complaints-page[b-yxzjglustz] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is now a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	/* MobileCardList: secondary card line as one space-between row. */
	--m-card-sub-direction: row;
	--m-card-sub-justify: space-between;
	--m-card-sub-gap: 0;
}

.btn-new[b-yxzjglustz],
[b-yxzjglustz] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New Complaint", row "Open", "Load
   more") matches the compact density of the rest of the page. "+ New
   Complaint" is a <NavLink> (a framework component, not plain HTML
   written in this page), so its rendered <a> never gets this page's scope
   attribute - same ::deep requirement as ComplaintDetail's/MachineDetail's
   .form-control fix, hence the duplicated ::deep selector here too. */
.btn[b-yxzjglustz],
[b-yxzjglustz] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar */

.toolbar[b-yxzjglustz] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
}

/* Single-line filter bar: search, State and Priority sit side by side on one
   row. As the row runs out of room, Priority (the last block) wraps to its
   own line first; if it's still too tight, State wraps down too, leaving
   Search / State / Priority stacked on three lines. See the tiered
   flex-basis rules below .filter-row-priority / .filter-row-state. */
.toolbar-row[b-yxzjglustz] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-yxzjglustz] {
	flex: 1 1 260px;
	max-width: 420px;
}

.toolbar-row .filter-row[b-yxzjglustz] {
	flex: 2 1 auto;
	flex-wrap: nowrap;
}

.search-wrap[b-yxzjglustz] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning (appearing above
   the input instead of inside it). */
.search-wrap[b-yxzjglustz]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, sort direction, pencil) rendered as
   inline SVG instead of an icon font - see razor-page-design-system's Icons
   section for why. currentColor lets each pick up its surrounding text/link
   color (and hover state) automatically. */
/* icon-plus, icon-pencil, and sort-icon are CssClass values handed to the
   IconPlus/IconPencil/SortIndicator child components, so (like icon-search
   above) reaching their rendered <svg> requires ::deep. */
[b-yxzjglustz] .icon-plus,
[b-yxzjglustz] .icon-pencil,
[b-yxzjglustz] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-yxzjglustz] {
	height: 32px;
	padding-left: 36px;
	font-size: 12.5px;
}

.filter-row[b-yxzjglustz] {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-label[b-yxzjglustz] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-right: 4px;
}

/* Tier 1: not enough room for Search + State + Priority side by side ->
   Priority (last block) drops to its own second line. */
@media (max-width: 1150px) {
	.toolbar-row .filter-row-priority[b-yxzjglustz] {
		flex-basis: 100%;
	}
}

/* Tier 2: still not enough room for Search + State together -> State drops
   to its own line too, leaving Search / State / Priority stacked. */
@media (max-width: 780px) {
	.toolbar-row .filter-row-state[b-yxzjglustz],
	.toolbar-row .filter-row-priority[b-yxzjglustz] {
		flex-basis: 100%;
	}
}

/* Tier 3: whenever the filters sit in the collapsible panel (1400px and below), let a row's own chips wrap onto
   extra lines rather than overflow horizontally - at 480px only, six State chips overflowed between ~480-830px. */
@media (max-width: 1400px) {
	.toolbar-row .filter-row-state[b-yxzjglustz],
	.toolbar-row .filter-row-priority[b-yxzjglustz] {
		flex-wrap: wrap;
	}
}

.chip[b-yxzjglustz] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
	user-select: none;
	transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
	text-align: inherit; /* a <button> since issue 101; keep the old <span>'s alignment */
}

.chip .dot[b-yxzjglustz] {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.55;
	flex-shrink: 0;
}

.clear-link[b-yxzjglustz] {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	margin-left: 4px;
	/* A real <button> since issue 101; drop the native button chrome so it still reads as a link. */
	padding: 0;
	border: 0;
	background: none;
	text-align: inherit;
}

.clear-link:hover[b-yxzjglustz] {
	color: var(--accent-strong);
}

/* Badge / chip color variants (state + priority) */

.badge-new[b-yxzjglustz], .chip-badge-new.chip-active[b-yxzjglustz] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-yxzjglustz], .chip-badge-progress.chip-active[b-yxzjglustz] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-yxzjglustz], .chip-badge-done.chip-active[b-yxzjglustz] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-yxzjglustz], .chip-badge-confirm.chip-active[b-yxzjglustz] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-yxzjglustz], .chip-badge-rejected.chip-active[b-yxzjglustz] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-yxzjglustz] { background: var(--line-soft); color: var(--ink-soft); }

.priority-low[b-yxzjglustz], .chip-priority-low.chip-active[b-yxzjglustz] { background: var(--priority-low-bg); color: var(--priority-low-ink); }
.priority-medium[b-yxzjglustz], .chip-priority-medium.chip-active[b-yxzjglustz] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.priority-high[b-yxzjglustz], .chip-priority-high.chip-active[b-yxzjglustz] { background: var(--priority-high-bg); color: var(--priority-high-ink); }
.priority-critical[b-yxzjglustz], .chip-priority-critical.chip-active[b-yxzjglustz] { background: var(--priority-critical-bg); color: var(--priority-critical-ink); }
.priority-none[b-yxzjglustz] { background: var(--line-soft); color: var(--ink-soft); }

.chip-active[b-yxzjglustz] {
	border-color: currentColor;
}

.badge[b-yxzjglustz] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-yxzjglustz] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

/* Table */

.table-card[b-yxzjglustz] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (complaints-page is now a flex
	   column that fills the viewport) instead of only being as tall as its
	   rows, then scroll its own content - both horizontally (wide table)
	   and vertically (many rows) - only when it doesn't fit, rather than
	   the whole page scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.complaints-table[b-yxzjglustz] {
	width: 100%;
	border-collapse: collapse;
}

.complaints-table thead th[b-yxzjglustz] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.complaints-table thead th i[b-yxzjglustz] {
	font-size: 11px;
	margin-left: 2px;
	opacity: 0.6;
}

.complaints-table thead tr:first-child th:first-child[b-yxzjglustz] { border-top-left-radius: 12px; }
.complaints-table thead tr:first-child th:last-child[b-yxzjglustz] { border-top-right-radius: 12px; }
.complaints-table tbody tr:last-child td:first-child[b-yxzjglustz] { border-bottom-left-radius: 12px; }
.complaints-table tbody tr:last-child td:last-child[b-yxzjglustz] { border-bottom-right-radius: 12px; }

/* Keep the Actions column (row-actions has 2 buttons here - Duplicate +
   Open - wider than a single-button row) always on screen instead of
   requiring a horizontal scroll to reach it once the window narrows a
   little. Sticky to the table's own right edge, inside .table-card's
   horizontal scroll area. */
.complaints-table th:last-child[b-yxzjglustz],
.complaints-table td:last-child[b-yxzjglustz] {
	position: sticky;
	right: 0;
	z-index: 2;
	box-shadow: -6px 0 6px -6px rgba(15, 23, 32, 0.1);
}

.complaints-table thead th:last-child[b-yxzjglustz] {
	background: var(--surface-muted);
}

.complaints-table tbody td:last-child[b-yxzjglustz] {
	background: var(--surface);
}

.complaints-table tbody tr:hover td:last-child[b-yxzjglustz] {
	background: var(--surface-hover);
}

.complaints-table tbody td[b-yxzjglustz] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.complaints-table tbody tr:last-child td[b-yxzjglustz] { border-bottom: none; }
.complaints-table tbody tr:hover[b-yxzjglustz] { background: var(--surface-hover); }

.cell-id[b-yxzjglustz] { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-machine[b-yxzjglustz] { font-weight: 600; }
.cell-serial[b-yxzjglustz] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-date[b-yxzjglustz] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Notes hover tooltip */

.notes-wrap[b-yxzjglustz] {
	position: relative;
	display: inline-block;
	max-width: 260px;
	vertical-align: middle;
}

.cell-notes-text[b-yxzjglustz] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-yxzjglustz] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 320px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	pointer-events: none;
}

.notes-tooltip[b-yxzjglustz]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-yxzjglustz] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Row actions */

.row-actions[b-yxzjglustz] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-icon[b-yxzjglustz] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.btn-icon:hover[b-yxzjglustz] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-load-more[b-yxzjglustz] {
	min-width: 160px;
}

/* Mobile layout: compact single-column view, closer to the original simple list.
   Breakpoint is 1400px. This is intentionally much wider than any phone or
   opened foldable (which top out around 430px / 900px respectively) - it also
   covers an ordinary desktop browser window that's simply been resized down
   (e.g. to a half-screen/laptop-ish width), so shrinking the window itself
   switches to the compact card view instead of squeezing the desktop table
   layout. */

@media (max-width: 1400px) {
	/* Collapsed by default on mobile - only expanded when the Filters toggle is open */
	.toolbar.mobile-collapsed[b-yxzjglustz] {
		display: none;
	}

	.btn-new[b-yxzjglustz] {
		width: 100%;
		justify-content: center;
	}

	.filter-row[b-yxzjglustz] {
		gap: 8px;
	}

	.chip[b-yxzjglustz] {
		height: 32px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-yxzjglustz] {
		padding: 14px 14px;
	}
}

/* Long serial numbers truncate instead of wrapping the card's secondary line (and splitting the date). */
.m-card-sub span[b-yxzjglustz] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub span:last-child[b-yxzjglustz] {
	flex-shrink: 0;
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-id[b-yxzjglustz] {
	width: 100px;
}

.col-state[b-yxzjglustz] {
	width: 130px;
}

.col-priority[b-yxzjglustz] {
	width: 120px;
}

.col-actions[b-yxzjglustz] {
	width: 96px;
}

/* Issue 372: the "From e-mail - not confirmed" marker sits on its own line under the state badge in the table. */
.not-confirmed-line[b-yxzjglustz] {
	display: block;
	margin-top: 4px;
}
/* /Components/Pages/Customers/CustomerDetail.razor.rz.scp.css */
.customer-detail-page[b-wy2h4i721n] {
	color: var(--ink);
}

.eyebrow[b-wy2h4i721n] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-wy2h4i721n] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-wy2h4i721n] {
	color: var(--accent);
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-wy2h4i721n] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-wy2h4i721n] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-wy2h4i721n] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.actions[b-wy2h4i721n] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-wy2h4i721n] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page, not just the .btn-sm variant below. */
.btn[b-wy2h4i721n],
[b-wy2h4i721n] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-wy2h4i721n] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-wy2h4i721n] {
	background: var(--danger-soft);
}

.btn-outline[b-wy2h4i721n],
[b-wy2h4i721n] .btn-outline {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-wy2h4i721n],
[b-wy2h4i721n] .btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-wy2h4i721n],
[b-wy2h4i721n] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

/* Small functional icons (pencil, plus) rendered as inline SVG atoms
   instead of an icon font - see razor-page-design-system's Icons section.
   Reaching a child icon component's rendered <svg> from this page's scoped
   CSS requires ::deep. */
[b-wy2h4i721n] .icon-pencil,
[b-wy2h4i721n] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Badges (address status + machines count), shared palette with the
   Customers list */

.badge[b-wy2h4i721n] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-wy2h4i721n] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-wy2h4i721n] { background: var(--status-done-bg); color: var(--status-done-ink); }
.priority-medium[b-wy2h4i721n] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.badge-default[b-wy2h4i721n] { background: var(--line-soft); color: var(--ink-soft); }

/* Layout */

.grid[b-wy2h4i721n] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.card[b-wy2h4i721n] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-wy2h4i721n] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-wy2h4i721n] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link. */
.card-head-row[b-wy2h4i721n] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-wy2h4i721n] {
	margin-bottom: 0;
}

.link-btn[b-wy2h4i721n] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-wy2h4i721n] {
	text-decoration: underline;
}

.field-row[b-wy2h4i721n] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-wy2h4i721n] {
	grid-template-columns: minmax(0, 1fr);
}

.field[b-wy2h4i721n] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.field .value-box[b-wy2h4i721n] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	background: var(--surface-muted);
	color: var(--ink-soft);
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	display: flex;
	align-items: center;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT
   .value-box (no border, no background, no padding box). .value-box stays
   reserved for the Address box, a real clickable widget with its own
   hover state, not a plain display. */
.field-value[b-wy2h4i721n] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText/InputTextArea controls default to Bootstrap's ~38px
   control height - match them to the .value-box footprint above (~32px,
   12.5px type) so editable and read-only fields read as the same density.
   InputText/InputTextArea are framework components, not plain HTML
   written in this page - their rendered <input>/<textarea> never gets
   this page's CSS-isolation scope attribute, so reaching them requires
   ::deep. */
.field[b-wy2h4i721n]  .form-control,
.field[b-wy2h4i721n]  .form-select {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

/* The country CountrySelect (issue 95): same density, compact chevron (as Field.razor.css). */
.field[b-wy2h4i721n]  .form-select {
	padding-right: 28px;
	background-position: right 8px center;
	background-size: 14px 11px;
}

.field[b-wy2h4i721n]  textarea.form-control {
	height: auto;
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Field-level label row - a field's own label plus any inline status
   badge and/or an icon-only edit action, e.g. Address's
   "ADDRESS  * Verified  [pencil]" header above the address box. Matches
   ComplaintDetail's Machine Address treatment. */
.field-label-row[b-wy2h4i721n] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.field-label-row .form-label[b-wy2h4i721n] {
	margin-bottom: 0;
}

.icon-btn-edit[b-wy2h4i721n] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-edit:hover[b-wy2h4i721n] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Customer address box (opens AddressPickerModal) - plain .field-value
   text like every other read-only field in this card (no border/
   background box), just with pointer/hover/double-click affordances
   layered on since it's still clickable. Matches ComplaintDetail's
   Machine Address box. */

.address-box[b-wy2h4i721n] {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.address-box .address-text[b-wy2h4i721n] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.address-box:hover .address-text[b-wy2h4i721n] {
	color: var(--accent);
}

/* Machines badge (title row) + count pill in the sticky header */

.badge-callissues[b-wy2h4i721n] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues:hover[b-wy2h4i721n] {
	border-color: var(--accent);
}

/* Same badge, warning-colored, when the customer has machines on file -
   real count data already loaded for the page, not a fabricated status. */
.badge-callissues-active[b-wy2h4i721n] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	color: var(--warning-ink);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues-active:hover[b-wy2h4i721n] {
	border-color: var(--warning-ink);
}

.badge-callissues-active .count-pill[b-wy2h4i721n] {
	background: rgba(147, 89, 12, 0.14);
	color: var(--warning-ink);
}

.count-pill[b-wy2h4i721n] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
}

/* Offset the Machines anchor so the sticky header doesn't cover its heading
   when jumped to from the header's "Machines" badge link. */
#machines-card[b-wy2h4i721n] {
	scroll-margin-top: 96px;
}

/* Same rationale as ComplaintDetail.razor.css: 1400px is wide enough that
   resizing an ordinary desktop browser window down (not just real phones/
   foldables) switches this page to its compact single-column layout too. */

@media (max-width: 1400px) {
	.grid[b-wy2h4i721n] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row[b-wy2h4i721n] {
		grid-template-columns: minmax(0, 1fr);
	}

	.topbar[b-wy2h4i721n] {
		flex-direction: column;
	}

	.actions[b-wy2h4i721n] {
		width: 100%;
	}

	.actions .btn[b-wy2h4i721n] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-wy2h4i721n] {
		padding: 12px;
	}
}

@media (max-width: 349px) {
	.topbar[b-wy2h4i721n] {
		padding: 10px 12px;
	}

	.title-row h1[b-wy2h4i721n] {
		font-size: 18px;
	}

	.actions .btn[b-wy2h4i721n] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

}

/* Related-records table (Machines Sold) */

.table-card-head[b-wy2h4i721n] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.related-table-wrap[b-wy2h4i721n] {
	overflow-x: auto;
	max-width: 100%;
}

.related-table[b-wy2h4i721n] {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

.related-table thead th[b-wy2h4i721n] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
	white-space: nowrap;
}

.related-table tbody td[b-wy2h4i721n] {
	padding: 8px 10px;
	font-size: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.related-table tbody tr:last-child td[b-wy2h4i721n] {
	border-bottom: none;
}

.related-table tbody tr:hover[b-wy2h4i721n] {
	background: var(--surface-hover);
}

/* Mobile card list for the Machines Sold table - same pattern as
   MachineDetail.razor's Complaints mobile list, shown below the same
   1400px tier the rest of this page already switches to its
   single-column layout at. */

.mobile-list[b-wy2h4i721n] {
	display: none;
}

.m-card[b-wy2h4i721n] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 12px;
	margin-bottom: 7px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-wy2h4i721n] {
	border-color: var(--accent);
}

.m-card-top[b-wy2h4i721n] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-wy2h4i721n] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-serial[b-wy2h4i721n] {
	/* Shrinks and wraps a long unbroken serial instead of pushing the card wider than a phone (issue 112 A1). */
	flex: 0 1 auto;
	min-width: 0;
	max-width: 55%;
	overflow-wrap: anywhere;
	text-align: right;
	color: var(--ink-faint);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

.m-card-sub[b-wy2h4i721n] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-wy2h4i721n] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 1400px) {
	.related-table-wrap[b-wy2h4i721n] {
		display: none;
	}

	.mobile-list[b-wy2h4i721n] {
		display: block;
	}
}

/* Sidebar cards */

.side-card .kv[b-wy2h4i721n] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12px;
}

.side-card .kv:last-child[b-wy2h4i721n] {
	border-bottom: none;
}

.side-card .kv .k[b-wy2h4i721n] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.side-card .kv .v[b-wy2h4i721n] {
	font-weight: 600;
	text-align: right;
}

/* Hero monogram avatar (next to the page title) */

.hero-avatar[b-wy2h4i721n] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

@media (max-width: 1400px) {
	.title-row[b-wy2h4i721n] {
		gap: 10px;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-wy2h4i721n] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Moved from inline style attributes (issue 101). */
.topbar-hero[b-wy2h4i721n] {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.related-table .col-open[b-wy2h4i721n] {
	width: 80px;
}

/* A field the server rejected (issue 137): show only Bootstrap's red invalid border, not Blazor's green
   "modified valid" outline from app.css. */
.field[b-wy2h4i721n]  .form-control.is-invalid,
.field[b-wy2h4i721n]  .form-select.is-invalid,
.field .form-control.is-invalid[b-wy2h4i721n],
.field .form-select.is-invalid[b-wy2h4i721n] {
	outline: none;
}

/* Epic 417 (issue 422): a field a Basker draft touched. A label row that also holds a Basker mark may wrap; it is the container
   the mark measures (BaskerFieldMark's container query), exactly as Field.razor.css does for the Field molecule. */
.field-label-row-marked[b-wy2h4i721n] {
	flex-wrap: wrap;
	row-gap: 2px;
	container-type: inline-size;
	container-name: basker-field;
}

/* The orange "not found" state of a field Basker could not fill (Figma 183:3019 part 6b): the editor's fill and border go orange;
   the pill and the line under the input are the BaskerFieldMark atom. */
.field-basker-not-found[b-wy2h4i721n]  .form-control {
	background-color: var(--warning-soft);
	border-color: var(--warning-ink);
}

/* An address Basker could not find is orange like an empty input; the mark and the line are the atom's. */
.field-basker-not-found .address-box[b-wy2h4i721n] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-ink);
	border-radius: 6px;
	padding: 6px 12px;
}

/* Epic 417 (issue 422, responsive findings 2 and 3): the draft address is what the user must check, so it wraps instead of being cut
   with an ellipsis, and the box opens the address window on a tap. The pencil keeps its 22 px look but gets a 44 px touch target. */
.customer-detail-page [data-component$="DraftAddressField"] .address-box .address-text[b-wy2h4i721n] {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (pointer: coarse), (max-width: 640px) {
	.customer-detail-page [data-component$="DraftAddressField"] .icon-btn-edit[b-wy2h4i721n] {
		position: relative;
	}

	.customer-detail-page [data-component$="DraftAddressField"] .icon-btn-edit[b-wy2h4i721n]::after {
		/* A fixed 44 px box centred on the button (an inset is measured from inside the 1 px border and came out 42 px). */
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 44px;
		height: 44px;
		transform: translate(-50%, -50%);
	}
}

/* Issue 486: the note of a customer Basker prepared together with a machine (after Save the page opens that machine). The same note as
   the complaint page's call issue note (issue 484), in the page flow under the draft strip. Tokens only. */
.basker-then-machine[b-wy2h4i721n] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.basker-then-machine[b-wy2h4i721n]  .glyph-icon {
	flex-shrink: 0;
	font-size: 16px;
	margin-top: 1.5px;
	color: var(--accent);
}
/* /Components/Pages/Customers/CustomerList.razor.rz.scp.css */
.customers-page[b-of2cpdr9g6] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	/* StatCard / MobileCardList proportions for this page. */
	--stat-card-radius: 9px;
	--stat-num-size: 17px;
	--m-card-radius: 10px;
	--m-card-padding: 12px 14px;
	--m-card-spacing: 8px;
	--m-card-title-size: 15px;
	--m-card-sub-direction: row;
	--m-card-sub-justify: space-between;
	--m-card-sub-gap: 8px;
}

.btn-new[b-of2cpdr9g6],
[b-of2cpdr9g6] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New Customer", row "Open", "Load
   more") matches the compact density of the rest of the page. "+ New
   Customer" is a <NavLink> (a framework component, not plain HTML written
   in this page), so its rendered <a> never gets this page's scope
   attribute - crossing that boundary requires ::deep. */
.btn[b-of2cpdr9g6],
[b-of2cpdr9g6] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar */

.toolbar[b-of2cpdr9g6] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-of2cpdr9g6] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-of2cpdr9g6] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-of2cpdr9g6] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-of2cpdr9g6]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons rendered as inline SVG instead of an icon font - see
   razor-page-design-system's Icons section. icon-plus/icon-pencil/sort-icon are
   CssClass values handed to child icon components, so (like icon-search above)
   reaching their rendered <svg> requires ::deep. */
[b-of2cpdr9g6] .icon-plus,
[b-of2cpdr9g6] .icon-pencil,
[b-of2cpdr9g6] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-of2cpdr9g6] {
	padding-left: 36px;
}

.clear-link[b-of2cpdr9g6] {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	margin-left: 4px;
	/* A real <button> since issue 101; drop the native button chrome so it still reads as a link. */
	padding: 0;
	border: 0;
	background: none;
	text-align: inherit;
}

.clear-link:hover[b-of2cpdr9g6] {
	color: var(--accent-strong);
}

/* Badge variants (address status), shared palette with the Complaints module */

.badge-done[b-of2cpdr9g6] { background: var(--status-done-bg); color: var(--status-done-ink); }
.priority-medium[b-of2cpdr9g6] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.badge-default[b-of2cpdr9g6] { background: var(--line-soft); color: var(--ink-soft); }

.badge[b-of2cpdr9g6] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-of2cpdr9g6] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

/* Table */

.table-card[b-of2cpdr9g6] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page instead of only being as tall as its
	   rows, then scroll its own content - both horizontally (wide table) and
	   vertically (many rows) - only when it doesn't fit. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.customers-table[b-of2cpdr9g6] {
	width: 100%;
	border-collapse: collapse;
}

.customers-table thead th[b-of2cpdr9g6] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.customers-table thead tr:first-child th:first-child[b-of2cpdr9g6] { border-top-left-radius: 12px; }
.customers-table thead tr:first-child th:last-child[b-of2cpdr9g6] { border-top-right-radius: 12px; }
.customers-table tbody tr:last-child td:first-child[b-of2cpdr9g6] { border-bottom-left-radius: 12px; }
.customers-table tbody tr:last-child td:last-child[b-of2cpdr9g6] { border-bottom-right-radius: 12px; }

.customers-table tbody td[b-of2cpdr9g6] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.customers-table tbody tr:last-child td[b-of2cpdr9g6] { border-bottom: none; }
.customers-table tbody tr:hover[b-of2cpdr9g6] { background: var(--surface-hover); }

.cell-name[b-of2cpdr9g6] { font-weight: 600; }
.cell-phone[b-of2cpdr9g6] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Row actions */

.row-actions[b-of2cpdr9g6] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-of2cpdr9g6] {
	min-width: 160px;
}

.m-card-sub span[b-of2cpdr9g6] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view. Breakpoint is 1400px - deliberately
   much wider than any phone or opened foldable, so it also covers an ordinary
   desktop browser window simply resized narrower. See ComplaintList.razor.css. */

@media (max-width: 1400px) {
	.toolbar.mobile-collapsed[b-of2cpdr9g6] {
		display: none;
	}

	.btn-new[b-of2cpdr9g6],
	[b-of2cpdr9g6] .btn-new {
		width: 100%;
		justify-content: center;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px. Tighten spacing further. */

@media (max-width: 349px) {
	.customers-page[b-of2cpdr9g6] {
		--m-card-padding: 10px 12px;
		--m-card-title-size: 13.5px;
	}

	.toolbar[b-of2cpdr9g6] {
		padding: 14px 14px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-address-status[b-of2cpdr9g6] {
	width: 150px;
}

.col-actions[b-of2cpdr9g6] {
	width: 96px;
}
/* /Components/Pages/Distributors/DistributorDetail.razor.rz.scp.css */
.distributor-detail-page[b-xshntgtrsk] {
	color: var(--ink);
}

.eyebrow[b-xshntgtrsk] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-xshntgtrsk] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-xshntgtrsk] {
	color: var(--accent);
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-xshntgtrsk] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-xshntgtrsk] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-xshntgtrsk] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.actions[b-xshntgtrsk] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-xshntgtrsk] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-xshntgtrsk],
[b-xshntgtrsk] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-xshntgtrsk] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-xshntgtrsk] {
	background: var(--danger-soft);
}

.btn-outline[b-xshntgtrsk] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-xshntgtrsk] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Small functional icons (pencil) rendered as inline SVG atoms instead of
   an icon font - see razor-page-design-system's Icons section. Reaching a
   child icon component's rendered <svg> from this page's scoped CSS
   requires ::deep. */
[b-xshntgtrsk] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Badges (address status), shared palette with CustomerDetail */

.badge[b-xshntgtrsk] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-xshntgtrsk] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-xshntgtrsk] { background: var(--status-done-bg); color: var(--status-done-ink); }
.priority-medium[b-xshntgtrsk] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.badge-default[b-xshntgtrsk] { background: var(--line-soft); color: var(--ink-soft); }

/* Field-level label row - a field's own label plus any inline status
   badge and/or an icon-only edit action, e.g. Address's
   "ADDRESS  * Verified  [pencil]" header above the address box. Matches
   CustomerDetail/ComplaintDetail's Address treatment. */
.field-label-row[b-xshntgtrsk] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.field-label-row .form-label[b-xshntgtrsk] {
	margin-bottom: 0;
}

.icon-btn-edit[b-xshntgtrsk] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-edit:hover[b-xshntgtrsk] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Distributor address box (opens AddressPickerModal) - plain .field-value
   text like every other read-only field in this card (no border/
   background box), just with pointer/hover/double-click affordances
   layered on since it's still clickable. Matches CustomerDetail/
   ComplaintDetail's address box treatment. */

.address-box[b-xshntgtrsk] {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.address-box .address-text[b-xshntgtrsk] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.address-box:hover .address-text[b-xshntgtrsk] {
	color: var(--accent);
}

/* Layout */

.grid[b-xshntgtrsk] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.card[b-xshntgtrsk] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-xshntgtrsk] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-xshntgtrsk] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link. */
.card-head-row[b-xshntgtrsk] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-xshntgtrsk] {
	margin-bottom: 0;
}

.link-btn[b-xshntgtrsk] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-xshntgtrsk] {
	text-decoration: underline;
}

.field-row[b-xshntgtrsk] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-xshntgtrsk] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-xshntgtrsk] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field[b-xshntgtrsk] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT a
   bordered/backgrounded box. */
.field-value[b-xshntgtrsk] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText controls default to Bootstrap's ~38px control height -
   match them to the .field-value footprint above (~32px, 12.5px type) so
   editable and read-only fields read as the same density. InputText is a
   framework component, not plain HTML written in this page - its
   rendered <input> never gets this page's CSS-isolation scope attribute,
   so reaching it requires ::deep. */
.field[b-xshntgtrsk]  .form-control,
.field[b-xshntgtrsk]  .form-select {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

/* The country CountrySelect (issue 95): same density, compact chevron (as Field.razor.css). */
.field[b-xshntgtrsk]  .form-select {
	padding-right: 28px;
	background-position: right 8px center;
	background-size: 14px 11px;
}

/* Notes textarea (DistributorDetail.NotesCard) isn't wrapped in .field, so
   the rule above doesn't reach it - keep the same type scale, but let
   height stay auto (rows="4") instead of forcing the single-line 32px. */
[b-xshntgtrsk] textarea.form-control {
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Same breakpoint rationale as ComplaintDetail.razor.css/CustomerDetail.razor.css:
   1400px is wide enough that resizing an ordinary desktop browser window down
   (not just real phones/foldables) switches this page to its compact
   single-column layout too. */

@media (max-width: 1400px) {
	.grid[b-xshntgtrsk] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row[b-xshntgtrsk] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row.cols-4[b-xshntgtrsk] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topbar[b-xshntgtrsk] {
		flex-direction: column;
	}

	.actions[b-xshntgtrsk] {
		width: 100%;
	}

	.actions .btn[b-xshntgtrsk] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-xshntgtrsk] {
		padding: 12px;
	}
}

@media (max-width: 349px) {
	.topbar[b-xshntgtrsk] {
		padding: 10px 12px;
	}

	.title-row h1[b-xshntgtrsk] {
		font-size: 18px;
	}

	.actions .btn[b-xshntgtrsk] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

	.field-row.cols-4[b-xshntgtrsk] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Hero monogram avatar (next to the page title) */

.hero-avatar[b-xshntgtrsk] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

@media (max-width: 1400px) {
	.title-row[b-xshntgtrsk] {
		gap: 10px;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-xshntgtrsk] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Sidebar summary card */

.side-card .kv[b-xshntgtrsk] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12px;
}

.side-card .kv:last-child[b-xshntgtrsk] {
	border-bottom: none;
}

.side-card .kv .k[b-xshntgtrsk] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.side-card .kv .v[b-xshntgtrsk] {
	font-weight: 600;
	text-align: right;
}

/* Moved from inline style attributes (issue 101). */
.topbar-hero[b-xshntgtrsk] {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

/* A field the server rejected (issue 137): show only Bootstrap's red invalid border, not Blazor's green
   "modified valid" outline from app.css. */
.field[b-xshntgtrsk]  .form-control.is-invalid,
.field[b-xshntgtrsk]  .form-select.is-invalid,
.field .form-control.is-invalid[b-xshntgtrsk],
.field .form-select.is-invalid[b-xshntgtrsk] {
	outline: none;
}
/* /Components/Pages/Distributors/DistributorList.razor.rz.scp.css */
.distributors-page[b-31dzr83fbg] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-31dzr83fbg] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-31dzr83fbg],
[b-31dzr83fbg] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New", row "Open", "Load more") matches
   the compact density of the rest of the page. "+ New" is a <NavLink> (a
   framework component, not plain HTML written in this page), so its
   rendered <a> never gets this page's scope attribute - crossing that
   boundary requires ::deep. */
.btn[b-31dzr83fbg],
[b-31dzr83fbg] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar: just Search + a total-count readout - Distributor has no
   state/priority-style dimension worth a stat-card grid or chip filters (see
   razor-page-design-system's guidance to skip stat cards rather than invent
   fake categories). */

.toolbar[b-31dzr83fbg] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-31dzr83fbg] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-31dzr83fbg] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-31dzr83fbg] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-31dzr83fbg]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, pencil) rendered as inline SVG instead of an
   icon font - see razor-page-design-system's Icons section. currentColor lets
   each pick up its surrounding text/link color automatically. icon-plus and
   icon-pencil are CssClass values handed to child icon components, so (like
   icon-search above) reaching their rendered <svg> requires ::deep. */
[b-31dzr83fbg] .icon-plus,
[b-31dzr83fbg] .icon-pencil,
[b-31dzr83fbg] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-31dzr83fbg] {
	padding-left: 36px;
}

.total-count[b-31dzr83fbg] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* Table */

.table-card[b-31dzr83fbg] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (distributors-page is a flex column
	   that fills the viewport) instead of only being as tall as its rows,
	   then scroll its own content - both horizontally (wide table) and
	   vertically (many rows) - only when it doesn't fit, rather than the
	   whole page scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.distributors-table[b-31dzr83fbg] {
	width: 100%;
	border-collapse: collapse;
}

.distributors-table thead th[b-31dzr83fbg] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.distributors-table thead tr:first-child th:first-child[b-31dzr83fbg] { border-top-left-radius: 12px; }
.distributors-table thead tr:first-child th:last-child[b-31dzr83fbg] { border-top-right-radius: 12px; }
.distributors-table tbody tr:last-child td:first-child[b-31dzr83fbg] { border-bottom-left-radius: 12px; }
.distributors-table tbody tr:last-child td:last-child[b-31dzr83fbg] { border-bottom-right-radius: 12px; }

.distributors-table tbody td[b-31dzr83fbg] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.distributors-table tbody tr:last-child td[b-31dzr83fbg] { border-bottom: none; }
.distributors-table tbody tr:hover[b-31dzr83fbg] { background: var(--surface-hover); }

.cell-name[b-31dzr83fbg] { font-weight: 600; }
.cell-phone[b-31dzr83fbg] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Row actions */

.row-actions[b-31dzr83fbg] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-31dzr83fbg] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-31dzr83fbg] {
	display: none;
}

.m-card[b-31dzr83fbg] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-31dzr83fbg] {
	border-color: var(--accent);
}

.m-card-top[b-31dzr83fbg] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-31dzr83fbg] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-31dzr83fbg] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-31dzr83fbg] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-notes[b-31dzr83fbg] {
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view, closer to the original simple
   list. Breakpoint is 1400px - deliberately much wider than any phone or
   opened foldable (which top out around 430px / 900px respectively) - it
   also covers an ordinary desktop browser window simply resized narrower, so
   shrinking the window itself switches to the compact card view instead of
   squeezing the desktop table layout. See ComplaintList.razor.css. */

@media (max-width: 1400px) {
	.topbar[b-31dzr83fbg] {
		align-items: flex-start;
	}

	.btn-new[b-31dzr83fbg],
	[b-31dzr83fbg] .btn-new {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-31dzr83fbg] {
		display: none;
	}

	.mobile-list[b-31dzr83fbg] {
		display: block;
	}

	.toolbar-row[b-31dzr83fbg] {
		gap: 10px 16px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-31dzr83fbg] {
		padding: 14px 14px;
	}

	.m-card[b-31dzr83fbg] {
		padding: 10px 12px;
	}

	.m-card-title[b-31dzr83fbg] {
		font-size: 13.5px;
	}

	.btn-new[b-31dzr83fbg],
	[b-31dzr83fbg] .btn-new {
		font-size: 12.5px;
	}

	.total-count[b-31dzr83fbg] {
		font-size: 12px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-actions[b-31dzr83fbg] {
	width: 96px;
}
/* /Components/Pages/EmailPickerSettings.razor.rz.scp.css */
.email-picker-settings-page[b-ejuzjqib0m] {
	color: var(--ink);
	max-width: 640px;
}

.eyebrow[b-ejuzjqib0m] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.card[b-ejuzjqib0m] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-ejuzjqib0m] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-ejuzjqib0m] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.field-row[b-ejuzjqib0m] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-ejuzjqib0m] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row input[b-ejuzjqib0m],
.field-row select[b-ejuzjqib0m] {
	box-sizing: border-box;
	width: 100%;
}

.value-box[b-ejuzjqib0m] {
	box-sizing: border-box;
	width: 100%;
	min-height: calc(1.5em + 0.75rem + 2px);
	padding: 0.375rem 0.75rem;
	display: flex;
	align-items: center;
	background: var(--line-soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--ink-soft);
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Collapse to 1 column well before the mobile tier - at this 640px-max-width container, a
   2-column row's labels (e.g. "Poll interval (minutes)") can wrap and misalign against a
   shorter sibling label once each column narrows past ~280px. */
@media (max-width: 600px) {
	.field-row[b-ejuzjqib0m] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.email-picker-settings-page[b-ejuzjqib0m] {
		max-width: 100%;
	}
}

/* Issue 372: Save sits below both cards. */
.form-actions[b-ejuzjqib0m] {
	margin-bottom: 16px;
}

/* 44px Save target on a phone or a touch screen (sizes only). */
@media (max-width: 640px), (pointer: coarse) {
	.form-actions .btn[b-ejuzjqib0m] {
		min-height: 44px;
	}
}

.processed-last-hour[b-ejuzjqib0m] {
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}
/* /Components/Pages/Emails/EmailList.razor.rz.scp.css */
/* Issue 372: the E-mails page. Colours and radii come from the global tokens in wwwroot/app.css; no hex here. */

/* The page's own buttons: the same compact density as the other list pages (the global .btn is taller). */
.btn[b-aw7sfbromr],
[b-aw7sfbromr] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.btn-sm[b-aw7sfbromr] {
	height: 26px;
	padding: 0 10px;
	font-size: 12px;
}

.btn-outline[b-aw7sfbromr] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover:not(:disabled)[b-aw7sfbromr] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-outline:disabled[b-aw7sfbromr] {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-load-more[b-aw7sfbromr] {
	min-width: 160px;
}

/* Filter chips: real buttons, the active one filled with the accent. */
.filter-row[b-aw7sfbromr] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.chip[b-aw7sfbromr] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 12px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
	user-select: none;
}

.chip:hover[b-aw7sfbromr] {
	border-color: var(--accent);
	color: var(--accent);
}

.chip-active[b-aw7sfbromr] {
	border-color: currentColor;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-weight: 600;
}

/* Table */
.table-card[b-aw7sfbromr] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	max-width: 100%;
	overflow: auto;
	margin-bottom: 4px;
}

.mail-table[b-aw7sfbromr] {
	width: 100%;
	border-collapse: collapse;
}

.mail-table thead th[b-aw7sfbromr] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 10px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.mail-table thead th.text-end[b-aw7sfbromr] {
	text-align: right;
}

.mail-table tbody td[b-aw7sfbromr] {
	padding: 9px 10px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.mail-table tbody tr:last-child td[b-aw7sfbromr] {
	border-bottom: none;
}

.mail-table tbody tr:hover[b-aw7sfbromr] {
	background: var(--surface-hover);
}

.cell-date[b-aw7sfbromr] {
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cell-from[b-aw7sfbromr] {
	color: var(--ink-soft);
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cell-subject[b-aw7sfbromr] {
	font-weight: 600;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mail-table td a[b-aw7sfbromr] {
	white-space: nowrap;
}

.cell-none[b-aw7sfbromr] {
	color: var(--ink-faint);
}

.row-actions[b-aw7sfbromr] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

/* The Actions column stays on screen when the table scrolls sideways (three buttons on a "Needs review" row). */
.mail-table th:last-child[b-aw7sfbromr],
.mail-table td:last-child[b-aw7sfbromr] {
	position: sticky;
	right: 0;
	z-index: 2;
	background: var(--surface);
	box-shadow: -6px 0 6px -6px rgba(15, 23, 32, 0.1);
}

.mail-table thead th:last-child[b-aw7sfbromr] {
	background: var(--surface-muted);
}

.mail-table tbody tr:hover td:last-child[b-aw7sfbromr] {
	background: var(--surface-hover);
}

/* A row waiting for a decision: a thin warning edge on its first cell (table) or its card. */
.mail-table tbody tr.row-needs-review td:first-child[b-aw7sfbromr] {
	box-shadow: inset 3px 0 0 var(--warning-line);
}

/* Phone and narrow-window cards. Own markup: the shared card list renders links, and these cards hold buttons. */
.mobile-list[b-aw7sfbromr] {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.m-card[b-aw7sfbromr] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 12px;
	margin-bottom: 7px;
	color: inherit;
}

.m-card.row-needs-review[b-aw7sfbromr] {
	border-color: var(--warning-line);
}

.m-card-top[b-aw7sfbromr] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-aw7sfbromr] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--ink);
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-aw7sfbromr] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-aw7sfbromr] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-meta[b-aw7sfbromr] {
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: 12.5px;
}

.m-card-check[b-aw7sfbromr] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-soft);
}

.m-card-actions[b-aw7sfbromr] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.m-card[b-aw7sfbromr]  .check-badge,
.m-card[b-aw7sfbromr]  .badge,
.m-card[b-aw7sfbromr]  .needs-review-badge,
.m-card[b-aw7sfbromr]  .not-confirmed-badge {
	flex-shrink: 0;
}

/* Between 1401px and 1700px the menu leaves the full table about 250px too little room: tighter columns and the buttons of a
   "Needs review" row may wrap, so the Sender check and Record columns are not hidden under the sticky Actions column. */
@media (min-width: 1401px) and (max-width: 1700px) {
	.cell-from[b-aw7sfbromr] {
		max-width: 140px;
	}

	.cell-subject[b-aw7sfbromr] {
		max-width: 190px;
	}

	.mail-table thead th[b-aw7sfbromr],
	.mail-table tbody td[b-aw7sfbromr] {
		padding-left: 8px;
		padding-right: 8px;
	}

	.row-actions[b-aw7sfbromr] {
		flex-wrap: wrap;
	}
}

/* Below 1400px the menu and the table leave too little room: cards instead (same switch point as the other list pages). */
@media (max-width: 1400px) {
	.table-card[b-aw7sfbromr] {
		display: none;
	}

	.mobile-list[b-aw7sfbromr] {
		display: block;
	}
}

/* Phone width: the card buttons share the row (stretched), one per line on the narrowest screens. */
@media (max-width: 640px) {
	.m-card-actions .btn[b-aw7sfbromr] {
		flex: 1 1 auto;
	}
}

/* 44px targets for a phone or any touch screen. Sizes only: a wide touch laptop must not get stretched buttons. */
@media (max-width: 640px), (pointer: coarse) {
	.m-card-actions .btn[b-aw7sfbromr] {
		height: auto;
		min-height: 44px;
	}

	.chip[b-aw7sfbromr] {
		min-height: 44px;
		min-width: 44px;
		justify-content: center;
	}

	.btn-load-more[b-aw7sfbromr] {
		height: auto;
		min-height: 44px;
	}

	.m-card-meta a[b-aw7sfbromr] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* Foldable cover screens and very narrow phones: the three card buttons go one per line. */
@media (max-width: 349px) {
	.m-card-actions .btn[b-aw7sfbromr] {
		flex-basis: 100%;
	}
}
/* /Components/Pages/Emails/EmailStateBadge.razor.rz.scp.css */
/* Issue 372: the state pills of the E-mails page. Same pill shape as .badge on the other list pages. */
.badge[b-lomnj5wngx] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge .dot[b-lomnj5wngx] {
	width: 6px;
	height: 6px;
	border-radius: var(--radius-pill);
	background: currentColor;
	flex-shrink: 0;
}

.badge-progress[b-lomnj5wngx] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-lomnj5wngx] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-rejected[b-lomnj5wngx] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-lomnj5wngx] { background: var(--line-soft); color: var(--ink-soft); }

/* A row waiting for a person: the warning family with a triangle (not the danger red, that is for a failed sender check). */
.needs-review-badge[b-lomnj5wngx] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--warning-line);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.needs-review-badge[b-lomnj5wngx]  .glyph-icon {
	font-size: 12px;
	flex-shrink: 0;
}
/* /Components/Pages/Emails/SenderCheckBadge.razor.rz.scp.css */
/* Issue 372: the sender-check pills. Danger tokens only for a failed check; the rest is calm. */
.check-badge[b-4r7kqr87yw] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.check-pass[b-4r7kqr87yw] { background: var(--success-soft); border-color: var(--success-line); color: var(--success-ink); }
.check-fail[b-4r7kqr87yw] { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.check-none[b-4r7kqr87yw] { background: var(--line-soft); border-color: var(--line); color: var(--ink-soft); }
/* /Components/Pages/Enumerations/EnumerationDetail.razor.rz.scp.css */
.enumeration-detail-page[b-1ec2sfxinn] {
	color: var(--ink);
}

.eyebrow[b-1ec2sfxinn] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-1ec2sfxinn] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-1ec2sfxinn] {
	color: var(--accent);
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-1ec2sfxinn] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-1ec2sfxinn] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-1ec2sfxinn] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.badge[b-1ec2sfxinn] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge-admin[b-1ec2sfxinn] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.actions[b-1ec2sfxinn] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-1ec2sfxinn] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-1ec2sfxinn],
[b-1ec2sfxinn] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-1ec2sfxinn] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-1ec2sfxinn] {
	background: var(--danger-soft);
}

.btn-outline[b-1ec2sfxinn] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-1ec2sfxinn] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Small functional icons (pencil) rendered as inline SVG atoms instead of
   an icon font - see razor-page-design-system's Icons section. Reaching a
   child icon component's rendered <svg> from this page's scoped CSS
   requires ::deep. */
[b-1ec2sfxinn] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Layout */

.card[b-1ec2sfxinn] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-1ec2sfxinn] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-1ec2sfxinn] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link. */
.card-head-row[b-1ec2sfxinn] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-1ec2sfxinn] {
	margin-bottom: 0;
}

.link-btn[b-1ec2sfxinn] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-1ec2sfxinn] {
	text-decoration: underline;
}

.field-row[b-1ec2sfxinn] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-1ec2sfxinn] {
	grid-template-columns: minmax(0, 1fr);
}

.field[b-1ec2sfxinn] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT a
   bordered/backgrounded box. */
.field-value[b-1ec2sfxinn] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText controls default to Bootstrap's ~38px control height -
   match them to the .field-value footprint above (~32px, 12.5px type) so
   editable and read-only fields read as the same density. InputText is a
   framework component, not plain HTML written in this page - its
   rendered <input> never gets this page's CSS-isolation scope attribute,
   so reaching it requires ::deep. */
.field[b-1ec2sfxinn]  .form-control {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

.form-check[b-1ec2sfxinn] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
}

/* InputCheckbox is a framework component - its rendered <input> never gets
   this page's CSS-isolation scope attribute, so reaching it requires
   ::deep (the .form-check-label right below is plain HTML written
   directly in this page, so it doesn't need ::deep). */
.form-check[b-1ec2sfxinn]  .form-check-input {
	margin: 0;
}

.form-check .form-check-label[b-1ec2sfxinn] {
	margin: 0;
	font-size: 12.5px;
}

/* Same breakpoint rationale as ComplaintDetail.razor.css/DistributorDetail.razor.css:
   1400px is wide enough that resizing an ordinary desktop browser window down
   (not just real phones/foldables) switches this page to its compact
   single-column layout too. */

@media (max-width: 1400px) {
	.field-row[b-1ec2sfxinn] {
		grid-template-columns: minmax(0, 1fr);
	}

	.topbar[b-1ec2sfxinn] {
		flex-direction: column;
	}

	.actions[b-1ec2sfxinn] {
		width: 100%;
	}

	.actions .btn[b-1ec2sfxinn] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-1ec2sfxinn] {
		padding: 12px;
	}
}

@media (max-width: 349px) {
	.topbar[b-1ec2sfxinn] {
		padding: 10px 12px;
	}

	.title-row h1[b-1ec2sfxinn] {
		font-size: 18px;
	}

	.actions .btn[b-1ec2sfxinn] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-1ec2sfxinn] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}
/* /Components/Pages/Enumerations/EnumerationList.razor.rz.scp.css */
.enumerations-page[b-53wqjxiwc2] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-53wqjxiwc2] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-53wqjxiwc2],
[b-53wqjxiwc2] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New", row "Open", "Load more") matches
   the compact density of the rest of the page. "+ New" is a <NavLink> (a
   framework component, not plain HTML written in this page), so its
   rendered <a> never gets this page's scope attribute - crossing that
   boundary requires ::deep. */
.btn[b-53wqjxiwc2],
[b-53wqjxiwc2] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar: just Search + a total-count readout - Enumeration has no
   state/priority-style dimension worth a stat-card grid or chip filters (see
   razor-page-design-system's guidance to skip stat cards rather than invent
   fake categories). */

.toolbar[b-53wqjxiwc2] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-53wqjxiwc2] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-53wqjxiwc2] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-53wqjxiwc2] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-53wqjxiwc2]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, pencil) rendered as inline SVG instead of an
   icon font - see razor-page-design-system's Icons section. currentColor lets
   each pick up its surrounding text/link color automatically. icon-plus and
   icon-pencil are CssClass values handed to child icon components, so (like
   icon-search above) reaching their rendered <svg> requires ::deep. */
[b-53wqjxiwc2] .icon-plus,
[b-53wqjxiwc2] .icon-pencil,
[b-53wqjxiwc2] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-53wqjxiwc2] {
	padding-left: 36px;
}

.total-count[b-53wqjxiwc2] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* Table */

.table-card[b-53wqjxiwc2] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (enumerations-page is a flex column
	   that fills the viewport) instead of only being as tall as its rows,
	   then scroll its own content - both horizontally (wide table) and
	   vertically (many rows) - only when it doesn't fit, rather than the
	   whole page scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.enumerations-table[b-53wqjxiwc2] {
	width: 100%;
	border-collapse: collapse;
}

.enumerations-table thead th[b-53wqjxiwc2] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.enumerations-table thead tr:first-child th:first-child[b-53wqjxiwc2] { border-top-left-radius: 12px; }
.enumerations-table thead tr:first-child th:last-child[b-53wqjxiwc2] { border-top-right-radius: 12px; }
.enumerations-table tbody tr:last-child td:first-child[b-53wqjxiwc2] { border-bottom-left-radius: 12px; }
.enumerations-table tbody tr:last-child td:last-child[b-53wqjxiwc2] { border-bottom-right-radius: 12px; }

.enumerations-table tbody td[b-53wqjxiwc2] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.enumerations-table tbody tr:last-child td[b-53wqjxiwc2] { border-bottom: none; }
.enumerations-table tbody tr:hover[b-53wqjxiwc2] { background: var(--surface-hover); }

.cell-table[b-53wqjxiwc2] { font-weight: 600; }
.cell-detail[b-53wqjxiwc2] {
	color: var(--ink-soft);
	max-width: 320px;
}

.notes-wrap[b-53wqjxiwc2] {
	position: relative;
	display: inline-block;
	max-width: 260px;
	vertical-align: middle;
}

.cell-notes-text[b-53wqjxiwc2] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-53wqjxiwc2] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 320px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	pointer-events: none;
}

.notes-tooltip[b-53wqjxiwc2]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-53wqjxiwc2] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Admin-only badge - same badge shape/scale as the design system's state/
   priority pills (razor-page-design-system's "State & priority badges"),
   reused here for a boolean flag instead of an enum. */

.badge[b-53wqjxiwc2] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge-admin[b-53wqjxiwc2] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

/* Row actions */

.row-actions[b-53wqjxiwc2] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-53wqjxiwc2] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-53wqjxiwc2] {
	display: none;
}

.m-card[b-53wqjxiwc2] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-53wqjxiwc2] {
	border-color: var(--accent);
}

.m-card-top[b-53wqjxiwc2] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-53wqjxiwc2] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-53wqjxiwc2] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-53wqjxiwc2] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-notes[b-53wqjxiwc2] {
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view, closer to the original simple
   list. Breakpoint is 1400px - deliberately much wider than any phone or
   opened foldable (which top out around 430px / 900px respectively) - it
   also covers an ordinary desktop browser window simply resized narrower, so
   shrinking the window itself switches to the compact card view instead of
   squeezing the desktop table layout. See ComplaintList.razor.css. */

@media (max-width: 1400px) {
	.topbar[b-53wqjxiwc2] {
		align-items: flex-start;
	}

	.btn-new[b-53wqjxiwc2],
	[b-53wqjxiwc2] .btn-new {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-53wqjxiwc2] {
		display: none;
	}

	.mobile-list[b-53wqjxiwc2] {
		display: block;
	}

	.toolbar-row[b-53wqjxiwc2] {
		gap: 10px 16px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-53wqjxiwc2] {
		padding: 14px 14px;
	}

	.m-card[b-53wqjxiwc2] {
		padding: 10px 12px;
	}

	.m-card-title[b-53wqjxiwc2] {
		font-size: 13.5px;
	}

	.btn-new[b-53wqjxiwc2] {
		font-size: 12.5px;
	}

	.total-count[b-53wqjxiwc2] {
		font-size: 12px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-actions[b-53wqjxiwc2] {
	width: 96px;
}
/* /Components/Pages/Feedback/FeedbackDetail.razor.rz.scp.css */
/* Feedback report detail (issue 238; Figma 43:519). Consumes the global tokens of app.css. */
.feedback-detail-page[b-e8rs1mvxd9] {
	color: var(--ink);
}

.fd-back[b-e8rs1mvxd9] {
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
}

.fd-back:hover[b-e8rs1mvxd9],
.fd-back:focus-visible[b-e8rs1mvxd9] {
	color: var(--accent-strong);
	text-decoration: underline;
}

/* --- Header: title + status chip, meta line, Withdraw on the right --- */
.fd-header[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.fd-heading[b-e8rs1mvxd9] {
	flex: 1 1 320px;
	min-width: 0;
}

.fd-title-row[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.fd-title[b-e8rs1mvxd9] {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.fd-meta[b-e8rs1mvxd9] {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.fd-withdraw[b-e8rs1mvxd9] {
	height: 34px;
	padding: 0 16px;
	font-size: 13.5px;
	border-radius: var(--radius-sm);
}

/* A draft (issue 241): "Continue editing" and "Delete draft" side by side. */
.fd-draft-actions[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fd-draft-actions .btn[b-e8rs1mvxd9] {
	height: 34px;
	padding: 0 16px;
	font-size: 13.5px;
	border-radius: var(--radius-sm);
}

/* --- Two columns: the report and the team's side; one column below 1300px (a 380px side column leaves the report about 480px at 1200px) --- */
.fd-grid[b-e8rs1mvxd9] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
	gap: 20px;
	align-items: start;
}

.fd-main[b-e8rs1mvxd9],
.fd-side[b-e8rs1mvxd9] {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.fd-card[b-e8rs1mvxd9] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 20px;
	min-width: 0;
}

.fd-card-head[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.fd-card-head h2[b-e8rs1mvxd9] {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.fd-ai-badge[b-e8rs1mvxd9] {
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
}

.fd-summary[b-e8rs1mvxd9] {
	font-size: 12.5px;
	color: var(--ink-soft);
}

.fd-text[b-e8rs1mvxd9] {
	font-size: 13.5px;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.fd-original[b-e8rs1mvxd9] {
	margin-top: 8px;
	padding: 10px 12px;
	background: var(--surface-muted);
	border-radius: var(--radius-md);
}

.fd-hint[b-e8rs1mvxd9] {
	margin: 12px 0 0;
	font-size: 13.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.fd-muted[b-e8rs1mvxd9] {
	margin: 0;
	font-size: 13px;
	color: var(--ink-soft);
}

.fd-toggle[b-e8rs1mvxd9],
.fd-link[b-e8rs1mvxd9] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 13px;
	color: var(--ink-soft);
}

.fd-toggle[b-e8rs1mvxd9] {
	margin-top: 10px;
}

.fd-link[b-e8rs1mvxd9] {
	margin-top: 12px;
	font-weight: 700;
	color: var(--accent);
}

.fd-toggle:hover[b-e8rs1mvxd9],
.fd-link:hover[b-e8rs1mvxd9] {
	color: var(--accent-strong);
	text-decoration: underline;
}

.fd-toggle:focus-visible[b-e8rs1mvxd9],
.fd-link:focus-visible[b-e8rs1mvxd9] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

/* --- What the user was doing: the context strip and the last steps --- */
.fd-context[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 12px;
	padding: 10px 12px;
	background: var(--surface-muted);
	border-radius: var(--radius-md);
}

.fd-context-item[b-e8rs1mvxd9] {
	min-width: 0;
}

.fd-context dt[b-e8rs1mvxd9] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fd-context dd[b-e8rs1mvxd9] {
	margin: 2px 0 0;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.fd-steps[b-e8rs1mvxd9] {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.fd-step[b-e8rs1mvxd9] {
	display: flex;
	gap: 14px;
	padding: 7px 12px;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
}

.fd-step:first-child[b-e8rs1mvxd9] {
	border-top: 0;
}

.fd-step-time[b-e8rs1mvxd9] {
	flex: 0 0 auto;
	min-width: 36px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}

.fd-step-text[b-e8rs1mvxd9] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.fd-step-error .fd-step-text[b-e8rs1mvxd9] {
	color: var(--danger-ink);
}

.fd-steps-nested[b-e8rs1mvxd9] {
	margin-top: 8px;
}

/* --- Occurrences of a problem --- */
.fd-occurrences[b-e8rs1mvxd9] {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-occurrence[b-e8rs1mvxd9] {
	padding: 10px 0;
	border-top: 1px solid var(--line-soft);
}

.fd-occurrence:first-child[b-e8rs1mvxd9] {
	padding-top: 0;
	border-top: 0;
}

.fd-occurrence-line[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	font-size: 13px;
}

.fd-occurrence-when[b-e8rs1mvxd9] {
	font-weight: 700;
}

.fd-occurrence-who[b-e8rs1mvxd9],
.fd-occurrence-images[b-e8rs1mvxd9] {
	color: var(--ink-soft);
}

.fd-occurrence-code[b-e8rs1mvxd9] {
	color: var(--danger-ink);
}

.fd-occurrence-toggle[b-e8rs1mvxd9] {
	margin-top: 0;
	margin-left: auto;
}

.fd-occurrence-note[b-e8rs1mvxd9] {
	margin: 6px 0 0;
	font-size: 13px;
	overflow-wrap: anywhere;
}

/* --- Images --- */
.fd-images[b-e8rs1mvxd9] {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-image[b-e8rs1mvxd9] {
	display: block;
	width: 140px;
	height: 96px;
	background: var(--line-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.fd-image img[b-e8rs1mvxd9] {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fd-image:focus-visible[b-e8rs1mvxd9] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* --- Decision by the Baler team --- */
.fd-facts[b-e8rs1mvxd9] {
	display: grid;
	grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
	gap: 8px 16px;
	margin: 0;
	font-size: 13.5px;
}

.fd-facts dt[b-e8rs1mvxd9] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

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

.fd-price[b-e8rs1mvxd9] {
	font-weight: 700;
}

.fd-team-note[b-e8rs1mvxd9] {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: var(--info-soft);
	color: var(--info-ink);
	border-radius: var(--radius-md);
	font-size: 13px;
	line-height: 1.45;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* --- History --- */
.fd-history[b-e8rs1mvxd9] {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-history-item[b-e8rs1mvxd9] {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.fd-dot[b-e8rs1mvxd9] {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-top: 5px;
	border-radius: var(--radius-pill);
}

/* The status tones are background + ink pairs; the dot takes the ink as its colour. */
.fd-dot.tone-new[b-e8rs1mvxd9] { background: var(--status-new-ink); }
.fd-dot.tone-progress[b-e8rs1mvxd9] { background: var(--status-progress-ink); }
.fd-dot.tone-confirm[b-e8rs1mvxd9] { background: var(--status-confirm-ink); }
.fd-dot.tone-done[b-e8rs1mvxd9] { background: var(--status-done-ink); }
.fd-dot.tone-rejected[b-e8rs1mvxd9] { background: var(--status-rejected-ink); }
.fd-dot.tone-neutral[b-e8rs1mvxd9] { background: var(--status-neutral-ink); }

.fd-history-date[b-e8rs1mvxd9] {
	font-size: 12px;
	color: var(--ink-soft);
}

.fd-history-text[b-e8rs1mvxd9] {
	font-size: 13.5px;
	overflow-wrap: anywhere;
}

.fd-history-note[b-e8rs1mvxd9] {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

@media (max-width: 1300px) {
	.fd-grid[b-e8rs1mvxd9] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- Touch: 44px hit areas (issue 101) without moving the Figma layout. The visible links and the button keep their
   size; an invisible ::after grows what a finger can hit. Phones and any touch screen, not only narrow windows. --- */
@media (max-width: 640px), (pointer: coarse) {
	.fd-back[b-e8rs1mvxd9],
	.fd-toggle[b-e8rs1mvxd9],
	.fd-link[b-e8rs1mvxd9],
	.fd-withdraw[b-e8rs1mvxd9] {
		position: relative;
	}

	.fd-back[b-e8rs1mvxd9]::after,
	.fd-toggle[b-e8rs1mvxd9]::after,
	.fd-link[b-e8rs1mvxd9]::after {
		content: "";
		position: absolute;
		inset: -13px -8px;
	}

	.fd-withdraw[b-e8rs1mvxd9]::after {
		content: "";
		position: absolute;
		inset: -6px 0;
	}

	/* The draft's two buttons are real 44 px buttons (their own box, so no ::after on top). */
	.fd-draft-actions .btn[b-e8rs1mvxd9] {
		height: 44px;
	}

	.fd-draft-actions .btn[b-e8rs1mvxd9]::after {
		display: none;
	}
}

@media (max-width: 575.98px) {
	.fd-card[b-e8rs1mvxd9] {
		padding: 16px;
	}

	.fd-title[b-e8rs1mvxd9] {
		font-size: 19px;
	}

	.fd-step[b-e8rs1mvxd9] {
		gap: 10px;
	}
}
/* /Components/Pages/Feedback/FeedbackList.razor.rz.scp.css */
/* Reports & improvements list (issue 238; Figma 43:342 desktop, 43:882 mobile). Consumes the global tokens of app.css. */
.feedback-list-page[b-p673r7iylf] {
	color: var(--ink);
	/* Bootstrap's py-4 (24px) in plain CSS, so the phone rule below can raise the bottom without !important. */
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.feedback-list-page[b-p673r7iylf]  .topbar h1 {
	font-size: 22px;
	font-weight: 700;
}

.feedback-list-page[b-p673r7iylf]  .topbar p {
	font-size: 13px;
	color: var(--ink-soft);
}

/* --- Header buttons (34px, 13.5px) --- */
.fl-header-actions[b-p673r7iylf] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.fl-btn[b-p673r7iylf] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	font-size: 13.5px;
	font-weight: 700;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

/* --- Tabs: underline on desktop, segmented control below 576px --- */
.fl-tabs[b-p673r7iylf] {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.fl-tab[b-p673r7iylf] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: -1px;
	padding: 8px 2px 10px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.15;
}

.fl-tab:hover[b-p673r7iylf] {
	color: var(--ink);
}

.fl-tab:focus-visible[b-p673r7iylf] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

.fl-tab-active[b-p673r7iylf],
.fl-tab-active:hover[b-p673r7iylf] {
	color: var(--accent);
	font-weight: 700;
	border-bottom-color: var(--accent);
}

.fl-tab-count[b-p673r7iylf] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 11px;
	font-weight: 700;
}

.fl-tab-active .fl-tab-count[b-p673r7iylf] {
	background: var(--accent-soft);
	color: var(--accent);
}

.fl-short[b-p673r7iylf] {
	display: none;
}

/* --- Filters --- */
.fl-filters[b-p673r7iylf] {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 10px;
	margin-bottom: 16px;
}

.fl-field[b-p673r7iylf] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 0 0 200px;
	min-width: 0;
}

.fl-field-search[b-p673r7iylf] {
	flex: 1 1 260px;
}

.fl-label[b-p673r7iylf] {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fl-select[b-p673r7iylf] {
	height: 36px;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 13.5px;
	border-color: var(--line-strong);
	border-radius: var(--radius-sm);
}

/* --- Table (desktop, above the 1400px card switch of MobileCardList) --- */
.fl-table-card[b-p673r7iylf] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	overflow: hidden;
}

.fl-table[b-p673r7iylf] {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
	font-size: 13px;
}

.fl-table thead th[b-p673r7iylf] {
	padding: 9px 12px;
	background: var(--surface-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
	text-align: left;
	white-space: nowrap;
}

.fl-table tbody td[b-p673r7iylf] {
	padding: 11px 12px;
	border-top: 1px solid var(--line-soft);
	vertical-align: top;
}

.fl-row[b-p673r7iylf] {
	cursor: pointer;
}

.fl-row:hover[b-p673r7iylf] {
	background: var(--surface-hover);
}

.fl-key[b-p673r7iylf],
.fl-nowrap[b-p673r7iylf] {
	white-space: nowrap;
}

.fl-key a[b-p673r7iylf] {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.fl-key a:hover[b-p673r7iylf],
.fl-key a:focus-visible[b-p673r7iylf] {
	color: var(--accent);
	text-decoration: underline;
}

.fl-title[b-p673r7iylf] {
	overflow-wrap: anywhere;
}

.fl-sub[b-p673r7iylf] {
	margin-top: 3px;
	font-size: 12px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.fl-num[b-p673r7iylf] {
	white-space: nowrap;
}

.fl-right[b-p673r7iylf],
.fl-table thead th.fl-right[b-p673r7iylf] {
	text-align: right;
}

.fl-footer[b-p673r7iylf] {
	padding: 10px 12px;
	border-top: 1px solid var(--line-soft);
	font-size: 12px;
	color: var(--ink-soft);
}

.fl-load-more[b-p673r7iylf] {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

/* --- Cards (mobile and every window up to 1400px) --- */
.feedback-list-page[b-p673r7iylf] {
	--m-card-radius: var(--radius-lg);
	--m-card-padding: 12px 14px;
	--m-card-spacing: 10px;
}

.fl-card-top[b-p673r7iylf] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.fl-card-title[b-p673r7iylf] {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.fl-card-area[b-p673r7iylf] {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.fl-card-meta[b-p673r7iylf] {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.fl-card-facts[b-p673r7iylf] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.fl-card-date[b-p673r7iylf] {
	white-space: nowrap;
}

.fl-card-price[b-p673r7iylf] {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--ink);
}

/* --- "New" button (mobile only) --- */
.fl-fab-wrap[b-p673r7iylf] {
	display: none;
}

/* --- 576-759px (a narrow window, desktop sidebar still shown): the long tab texts wrap the three tabs onto two lines,
   so the short texts of the phone are used here too and the gap is smaller. --- */
@media (min-width: 576px) and (max-width: 759.98px) {
	.fl-tabs[b-p673r7iylf] {
		gap: 16px;
	}

	.fl-long[b-p673r7iylf] {
		display: none;
	}

	.fl-short[b-p673r7iylf] {
		display: inline;
	}
}

/* --- Touch: 44px hit areas (issue 101) without moving the Figma layout. The visible tabs, buttons and boxes keep their
   size; an invisible ::after grows what a finger can hit. Phones and any touch screen, not only narrow windows. --- */
@media (max-width: 640px), (pointer: coarse) {
	.fl-tab[b-p673r7iylf] {
		position: relative;
	}

	.fl-tab[b-p673r7iylf]::after {
		content: "";
		position: absolute;
		inset: -7px 0;
	}

	.fl-btn[b-p673r7iylf] {
		min-height: 44px;
	}

	.fl-select[b-p673r7iylf] {
		min-height: 44px;
	}

	.fl-load-more .btn[b-p673r7iylf] {
		min-height: 44px;
	}
}

@media (max-width: 575.98px) {
	/* The mobile "New" button floats over the page's bottom-right corner (issue 238): leave room under the last card
	   and "Load more" (the button is 44px high, 16px from the edge). */
	.feedback-list-page[b-p673r7iylf] {
		padding-bottom: 88px;
	}

	/* Figma 43:882: the top bar holds the title only (16px bold), no subtitle. */
	.feedback-list-page[b-p673r7iylf]  .topbar h1 {
		font-size: 16px;
	}

	.feedback-list-page[b-p673r7iylf]  .topbar p.text-muted {
		display: none;
	}

	/* Segmented control: three equal segments, the active one raised. */
	.fl-tabs[b-p673r7iylf] {
		flex-wrap: nowrap;
		gap: 0;
		padding: 3px;
		border: 0;
		border-radius: var(--radius-lg);
		background: var(--line-soft);
	}

	.fl-tab[b-p673r7iylf] {
		flex: 1 1 0;
		justify-content: center;
		margin-bottom: 0;
		padding: 8px 6px;
		border: 0;
		border-radius: var(--radius-md);
		font-size: 13px;
	}

	.fl-tab-active[b-p673r7iylf],
	.fl-tab-active:hover[b-p673r7iylf] {
		background: var(--surface);
		color: var(--ink);
		box-shadow: var(--shadow-sm);
	}

	/* The count is plain text next to the label ("Problems 3"), not a pill. */
	.fl-tab-count[b-p673r7iylf],
	.fl-tab-active .fl-tab-count[b-p673r7iylf] {
		padding: 0;
		background: none;
		color: inherit;
		font-size: inherit;
		font-weight: inherit;
	}

	.fl-long[b-p673r7iylf] {
		display: none;
	}

	.fl-short[b-p673r7iylf] {
		display: inline;
	}

	/* Only the status filter on a phone (Figma 43:882): it reads "Status: All open" in one box. */
	.fl-field-optional[b-p673r7iylf],
	.fl-header-actions[b-p673r7iylf] {
		display: none;
	}

	.fl-field-status[b-p673r7iylf] {
		flex: 1 1 100%;
		flex-direction: row;
		align-items: center;
		gap: 6px;
		height: 38px;
		padding: 0 4px 0 12px;
		background: var(--surface);
		border: 1px solid var(--line-strong);
		border-radius: var(--radius-md);
	}

	.fl-field-status .fl-label[b-p673r7iylf] {
		font-size: 13.5px;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		color: var(--ink);
	}

	.fl-field-status .fl-label[b-p673r7iylf]::after {
		content: ":";
	}

	.fl-field-status .fl-select[b-p673r7iylf] {
		flex: 1;
		height: 36px;
		border: 0;
		background-color: transparent;
		box-shadow: none;
		padding-left: 0;
	}

	.fl-fab-wrap[b-p673r7iylf] {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 20;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
	}

	.fl-fab[b-p673r7iylf] {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		padding: 0 18px;
		border: 0;
		border-radius: var(--radius-pill);
		background: var(--accent);
		color: var(--on-color);
		font-size: 14px;
		font-weight: 700;
		box-shadow: var(--shadow-md);
	}

	.fl-fab:focus-visible[b-p673r7iylf] {
		outline: 2px solid var(--accent-strong);
		outline-offset: 2px;
	}

	.fl-fab-menu[b-p673r7iylf] {
		display: flex;
		flex-direction: column;
		min-width: 220px;
		padding: 6px;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow-md);
	}

	.fl-fab-item[b-p673r7iylf] {
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 12px;
		background: none;
		border: 0;
		border-radius: var(--radius-md);
		color: var(--ink);
		font-size: 14px;
		text-align: left;
	}

	.fl-fab-item:hover[b-p673r7iylf],
	.fl-fab-item:focus-visible[b-p673r7iylf] {
		background: var(--accent-soft);
		color: var(--accent-strong);
	}
}
/* /Components/Pages/Home/TipsForYouCard.razor.rz.scp.css */
/* Home · Tips for you (issue 245, Figma frames 178:523 desktop, 178:603 states, 178:708 phone). Every colour, radius and
   space is a global token from wwwroot/app.css. The card is a size container: the tip rows stack their buttons under the
   text by the card's own width, not the window's (the sidebar open or closed changes it). */
.tips-card[b-8hwaqdzk8i] {
	container-type: inline-size;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: var(--space-4) var(--space-5) var(--space-1);
	margin-bottom: var(--space-6);
}

.tips-header[b-8hwaqdzk8i] {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-bottom: 10px;
}

/* The glyph atom is 1em square, so the font size is the icon size (Figma: 20px bulb in a 32px circle). */
.tips-header-icon[b-8hwaqdzk8i] {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 20px;
}

.tips-titles[b-8hwaqdzk8i] {
	min-width: 0;
}

.tips-title[b-8hwaqdzk8i] {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
}

.tips-subtitle[b-8hwaqdzk8i] {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.tips-list[b-8hwaqdzk8i] {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.tip-row[b-8hwaqdzk8i] {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-3) 0;
}

.tip-row + .tip-row[b-8hwaqdzk8i] {
	border-top: 1px solid var(--line);
}

.tip-main[b-8hwaqdzk8i] {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.tip-text[b-8hwaqdzk8i] {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* Decision 407 item 4 (Figma 204:7066 desktop, 204:7171 phone): the three text answers under the tip, left aligned, 16px apart, no
   icon. They look like the old Help link did: accent, 13px. A narrow card wraps the line, 4px between the lines. */
.tip-answers[b-8hwaqdzk8i] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
}

.tip-answer[b-8hwaqdzk8i] {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	color: var(--accent);
	cursor: pointer;
}

.tip-answer:hover:not(:disabled)[b-8hwaqdzk8i] {
	color: var(--accent-strong);
	text-decoration: underline;
}

.tip-answer:disabled[b-8hwaqdzk8i] {
	opacity: 0.6;
	cursor: default;
}

.tips-title:focus-visible[b-8hwaqdzk8i],
.tip-answer:focus-visible[b-8hwaqdzk8i],
.tip-undo:focus-visible[b-8hwaqdzk8i],
.tip-btn:focus-visible[b-8hwaqdzk8i] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.tip-thanks[b-8hwaqdzk8i] {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--success-ink);
}

.tip-main[b-8hwaqdzk8i]  .tip-error,
.tip-row-hidden[b-8hwaqdzk8i]  .tip-error {
	margin: var(--space-2) 0 0;
	width: 100%;
}

.tip-actions[b-8hwaqdzk8i] {
	flex: 0 0 auto;
	display: flex;
	gap: 6px;
}

.tip-btn[b-8hwaqdzk8i] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.tip-btn:hover:not(:disabled)[b-8hwaqdzk8i] {
	border-color: var(--line-strong);
	background: var(--surface-hover);
	color: var(--ink);
}

/* The chosen answer: the soft accent fill with the accent line and the filled glyph (Figma 178:603, after "Helpful"). */
.tip-btn[aria-pressed="true"][b-8hwaqdzk8i],
.tip-btn[aria-pressed="true"]:hover:not(:disabled)[b-8hwaqdzk8i] {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

/* The rating is asked once: the pressed thumb stays as the answer and a press does nothing (aria-disabled, still focusable). */
.tip-btn[aria-disabled="true"][b-8hwaqdzk8i] {
	cursor: default;
}

.tip-btn:disabled[b-8hwaqdzk8i] {
	opacity: 0.6;
	cursor: default;
}

/* "Tip hidden. Undo": the hidden tip's row, in place, as a quiet line. */
.tip-row-hidden[b-8hwaqdzk8i] {
	display: block;
}

.tip-hidden-line[b-8hwaqdzk8i] {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	font-size: 13px;
	color: var(--ink-soft);
}

.tip-hidden-text[b-8hwaqdzk8i] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.tip-undo[b-8hwaqdzk8i] {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
}

.tip-undo:hover:not(:disabled)[b-8hwaqdzk8i] {
	color: var(--accent-strong);
	text-decoration: underline;
}

.tip-undo:disabled[b-8hwaqdzk8i] {
	opacity: 0.6;
	cursor: default;
}

/* A narrow card (a phone, or a window with the sidebar open): the buttons go under the text, left aligned (Figma 178:708). */
@container (max-width: 560px) {
	.tip-row[b-8hwaqdzk8i] {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
}

/* Touch (issue 101): 44px targets on a phone and on any touch screen; this block only sets sizes. The thumb buttons grow. The
   Undo button keeps its line height (the Figma spacing) and gets the 44px tap area from an invisible layer around it.
   The text answers can't use such a layer (decision 407, live review): when the line wraps, the layers of two lines overlap
   each other and the thumbs below, and a tap lands on the wrong answer. So each answer is itself 44px high (its text centred
   in it) and the wrapped lines touch (no row gap); the 16px gap between answers on one line stays. */
@media (max-width: 640px), (pointer: coarse) {
	.tip-btn[b-8hwaqdzk8i] {
		width: 44px;
		height: 44px;
	}

	.tip-answers[b-8hwaqdzk8i] {
		row-gap: 0;
	}

	.tip-answer[b-8hwaqdzk8i] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.tip-undo[b-8hwaqdzk8i] {
		position: relative;
	}

	.tip-undo[b-8hwaqdzk8i]::after {
		content: "";
		position: absolute;
		inset: -12px -4px;
	}
}

/* Figma 178:708: 14px card padding on a phone. Its own block: a touch screen wider than 640px keeps the desktop padding. */
@media (max-width: 640px) {
	.tips-card[b-8hwaqdzk8i] {
		padding-left: 14px;
		padding-right: 14px;
	}
}
/* /Components/Pages/Machines/InstallationProtocol.razor.rz.scp.css */
.installation-protocol-page[b-11n3ivaw68] {
	color: var(--ink);
}

.eyebrow[b-11n3ivaw68] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-11n3ivaw68] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-11n3ivaw68] {
	color: var(--accent);
}

/* Sticky header, same "frozen pane" treatment as MachineDetail/ComplaintDetail. */
.topbar[b-11n3ivaw68] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.topbar h1[b-11n3ivaw68] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
}

.title-row[b-11n3ivaw68] {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 2px 0;
}

/* The heading block shrinks and the subtitle wraps a long unbroken serial (50 characters), instead of pushing the
   topbar wider than a phone (issue 112 A1). */
.topbar > div:first-child[b-11n3ivaw68] {
	min-width: 0;
}

.machine-subtitle[b-11n3ivaw68] {
	overflow-wrap: anywhere;
	margin: 0;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* Count-badge on the topbar - same pill shape/colors as every other badge in the app
   (razor-page-design-system: reuse the exact badge-new hex values everywhere). */
.badge[b-11n3ivaw68] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge .dot[b-11n3ivaw68] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

.badge-new[b-11n3ivaw68] {
	background: var(--accent-soft);
	color: var(--status-new-ink);
}

/* Buttons - same compact density baseline as MachineDetail/ComplaintDetail. */
.btn[b-11n3ivaw68],
[b-11n3ivaw68] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.btn-sm[b-11n3ivaw68],
[b-11n3ivaw68] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-danger-ghost[b-11n3ivaw68] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-11n3ivaw68] {
	background: var(--danger-soft);
}

.btn-secondary[b-11n3ivaw68] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

/* Reserved 32x32 icon-only square button shape (razor-page-design-system: ".btn-icon is a reserved
   class name"). Used here for rename confirm/cancel only - section reorder uses the smaller,
   borderless .order-btn below instead (it sits stacked in a 20px-wide column, not a standalone
   32x32 control). */
.btn-icon[b-11n3ivaw68] {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.btn-icon:hover:not(:disabled)[b-11n3ivaw68] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-icon:disabled[b-11n3ivaw68] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Small borderless icon button inline with the section title (rename) - deliberately its own class,
   not .btn-icon, since .btn-icon is reserved for the fixed 32x32 icon-only shape used elsewhere
   (razor-page-design-system: "don't reuse .btn-icon for a button with a different shape"). */
.icon-btn-inline[b-11n3ivaw68] {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--ink-faint);
	cursor: pointer;
	flex-shrink: 0;
	border-radius: 6px;
}

.icon-btn-inline:hover[b-11n3ivaw68] {
	color: var(--accent);
	background: var(--accent-soft);
}

[b-11n3ivaw68] .icon-pencil,
[b-11n3ivaw68] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.link-btn[b-11n3ivaw68] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-11n3ivaw68] {
	text-decoration: underline;
}

.form-label[b-11n3ivaw68] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Cards */
.card[b-11n3ivaw68] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-11n3ivaw68] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-11n3ivaw68] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

.card-sub[b-11n3ivaw68] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 0 0 14px;
}

.card-head-row[b-11n3ivaw68] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-11n3ivaw68] {
	margin-bottom: 0;
}

.empty-state[b-11n3ivaw68] {
	text-align: center;
	padding: 26px 16px;
}

/* Add Section - kept at the top of the page (not relocated to the bottom of the section list, per
   the redesign's own instructions: the top position already had working tests tied to its
   data-component attributes and behavior, so it stays put and is only restyled here to nod at the
   mockup's dashed "add" affordance instead of moving). */
[data-component="InstallationProtocol.AddSectionCard"][b-11n3ivaw68] {
	border-style: dashed;
	background: var(--canvas);
}

.add-section-row[b-11n3ivaw68] {
	display: flex;
	gap: 10px;
}

.add-section-row .form-control[b-11n3ivaw68] {
	flex: 1 1 auto;
	min-width: 0;
	background: var(--surface);
}

.add-section-row .btn[b-11n3ivaw68] {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Two-column layout: documentation + side column, same mechanism (and same 1400px "resized desktop
   window" switch point) as MachineDetail.razor.css's own .grid. */
.grid[b-11n3ivaw68] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 16px;
	align-items: start;
}

/* Section blocks (redesign: sections nested inside one "Documentation, by section" card, replacing
   the previous flat "each section is its own top-level card" structure). */
.section-block[b-11n3ivaw68] {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--canvas);
	margin-bottom: 14px;
	overflow: hidden;
}

.section-block:last-child[b-11n3ivaw68] {
	margin-bottom: 0;
}

/* align-items: flex-start (not center) so a very long, multi-line-wrapped section title doesn't
   drag the order-arrows/number badge/file-count/delete controls down to its vertical midpoint -
   they stay pinned to the title's first line, like a normal header row, instead of floating
   "stranded" partway down a tall title block (baler-responsive-reviewer finding on the
   InstallationProtocol redesign, using a section titled specifically to stress-test this). */
.section-block-head[b-11n3ivaw68] {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
}

/* Whole-section collapse/expand toggle - deliberately its own control, visually distinct from the
   tiny stacked .section-order-controls reorder arrows below (a real border, larger 24x24 hit area,
   single centered chevron that rotates) so it can no longer be mistaken for the up/down reorder
   buttons (the source of the user's original "collapse only changed the thumbnails" confusion). */
.section-collapse-btn[b-11n3ivaw68] {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex: none;
}

.section-collapse-btn:hover[b-11n3ivaw68] {
	border-color: var(--accent);
	color: var(--accent);
}

[b-11n3ivaw68] .collapse-chevron {
	transition: transform 0.15s ease;
}

.section-collapse-btn.collapsed[b-11n3ivaw68]  .collapse-chevron {
	transform: rotate(-90deg);
}

.section-order-controls[b-11n3ivaw68] {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: none;
}

.order-btn[b-11n3ivaw68] {
	width: 20px;
	height: 15px;
	border: none;
	background: none;
	color: var(--ink-faint);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.order-btn:hover:not(:disabled)[b-11n3ivaw68] {
	color: var(--accent);
}

.order-btn:disabled[b-11n3ivaw68] {
	opacity: 0.3;
	cursor: not-allowed;
}

.section-num[b-11n3ivaw68] {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 12px;
	flex: none;
}

.section-title-wrap[b-11n3ivaw68] {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.section-title[b-11n3ivaw68] {
	font-weight: 700;
	font-size: 14px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.section-title-input[b-11n3ivaw68] {
	max-width: 320px;
}

.section-count[b-11n3ivaw68] {
	font-size: 11.5px;
	color: var(--ink-faint);
	font-weight: 600;
	white-space: nowrap;
}

.section-actions[b-11n3ivaw68] {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.section-body[b-11n3ivaw68] {
	padding: 16px;
}

/* Upload dropzone + pending-description note side-by-side on wide viewports (per user feedback -
   previously stacked dropzone-on-top/textarea-below). Collapses to stacked at the same ~640px mobile
   breakpoint already used elsewhere on this page. Both columns stretch to equal height so the
   dropzone and textarea/hint read as one balanced row rather than two mismatched-height blocks. */
.upload-row[b-11n3ivaw68] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
	margin-bottom: 12px;
}

.upload-col[b-11n3ivaw68],
.note-col[b-11n3ivaw68] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Upload zone - a <label for="..."> wrapping a visually-hidden <InputFile>, so clicking anywhere in
   the dashed dropzone opens the file browser (native label/for behavior, no JS needed for
   click-to-browse). Real HTML5 drag-and-drop is NOT wired up here - see the redesign's own report
   for why (no existing reusable drag-drop JS interop in this codebase to build on). */
.upload-zone[b-11n3ivaw68] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	border: 1.5px dashed var(--line);
	border-radius: 10px;
	background: var(--surface);
	padding: 18px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	flex: 1 1 auto;
}

.upload-zone:hover[b-11n3ivaw68] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.upload-icon[b-11n3ivaw68] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}

.upload-title[b-11n3ivaw68] {
	font-weight: 700;
	font-size: 13px;
}

.upload-restrictions[b-11n3ivaw68] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 2px;
}

.restriction-chip[b-11n3ivaw68] {
	font-size: 10.5px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.restriction-chip.pdf[b-11n3ivaw68] {
	background: var(--danger-soft);
	color: var(--danger-ink);
}

.restriction-chip.img[b-11n3ivaw68] {
	background: var(--success-soft);
	color: var(--success-ink);
}

/* The <InputFile>'s rendered <input type="file"> - visually hidden but still focusable/clickable via
   the wrapping label's for/id association (::deep required, InputFile is a framework component - see
   razor-page-design-system's "identical rule applies to InputText/... not just icon atoms"). */
.upload-zone[b-11n3ivaw68]  input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Pending-description note row (redesign feature (a)) - one per section, applied as the initial
   Description for every file in that section's next upload batch. Fills its .note-col so it matches
   the upload zone's height in the two-column .upload-row layout. */
.note-row[b-11n3ivaw68] {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.note-row label[b-11n3ivaw68] {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 5px;
}

.note-row textarea[b-11n3ivaw68] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 12.5px;
	font-family: inherit;
	resize: vertical;
	min-height: 40px;
	flex: 1 1 auto;
	background: var(--surface);
	color: var(--ink);
}

.note-row textarea[b-11n3ivaw68]::placeholder {
	color: var(--ink-faint);
}

/* Hint clarifying the note applies only to the *next* upload batch, not files already in the
   section - added after a user mistook it for retroactively describing an already-uploaded file. */
.note-hint[b-11n3ivaw68] {
	margin: 5px 0 0;
	font-size: 10.5px;
	color: var(--ink-faint);
	line-height: 1.4;
}

/* Tile size toggle - moved from the section header into its own small toolbar row above the file
   grid (mirrors the mockup's .tile-toolbar), paired with the section's file count. */
.tile-toolbar[b-11n3ivaw68] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.tile-toolbar-count[b-11n3ivaw68] {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-faint);
}

.tile-size-toggle[b-11n3ivaw68] {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
}

.tile-size-btn[b-11n3ivaw68] {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: none;
	border-left: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.tile-size-btn:first-child[b-11n3ivaw68] {
	border-left: none;
}

.tile-size-btn.active[b-11n3ivaw68] {
	background: var(--accent-soft);
	color: var(--accent);
}

/* File tile grid */
.file-grid[b-11n3ivaw68] {
	display: grid;
	gap: 10px;
}

.file-grid.tile-small[b-11n3ivaw68] {
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.file-grid.tile-medium[b-11n3ivaw68] {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.file-grid.tile-large[b-11n3ivaw68] {
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.file-tile[b-11n3ivaw68] {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.file-thumb[b-11n3ivaw68] {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 1;
	background: var(--line-soft);
}

.file-thumb-btn[b-11n3ivaw68] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--ink-faint);
}

.file-thumb-btn img[b-11n3ivaw68] {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.file-thumb-pdf[b-11n3ivaw68] {
	background: var(--accent-soft);
	color: var(--accent);
}

.file-thumb .del[b-11n3ivaw68] {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--danger-ink);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.file-info-btn[b-11n3ivaw68] {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-soft);
	cursor: pointer;
}

/* Same "this is clickable" hover cue as .file-description below - Small tiles show this icon
   instead of the description line, but the edit affordance should read as interactive either way. */
.file-info-btn:hover[b-11n3ivaw68] {
	border-color: var(--accent);
	color: var(--accent);
}

.file-filename[b-11n3ivaw68] {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Description line: same normal font weight as the filename (issue #77's tile spec), not bold. A
   small pencil icon inline with the text is the visible "this is clickable" affordance the original
   implementation was missing (redesign feature (b)) - reuses the same IconPencil atom as section
   rename, plus an accent-colored hover/underline treatment mirroring the mockup's
   ".tile-desc:hover { color: var(--accent); text-decoration: underline; }". */
.file-description[b-11n3ivaw68] {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	font-size: 11px;
	font-weight: 400;
	color: var(--ink-soft);
	cursor: pointer;
	min-width: 0;
}

.file-description-text[b-11n3ivaw68] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.file-description:hover[b-11n3ivaw68] {
	color: var(--accent);
}

.file-description:hover .file-description-text[b-11n3ivaw68] {
	text-decoration: underline;
}

[b-11n3ivaw68] .file-description-pencil {
	flex-shrink: 0;
	opacity: 0.55;
}

.file-description:hover[b-11n3ivaw68]  .file-description-pencil {
	opacity: 1;
}

.file-uploader[b-11n3ivaw68] {
	font-size: 10.5px;
	color: var(--ink-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Side column cards */
.side-card .kv[b-11n3ivaw68] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12px;
}

.side-card .kv:last-child[b-11n3ivaw68] {
	border-bottom: none;
}

.side-card .kv .k[b-11n3ivaw68] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.side-card .kv .v[b-11n3ivaw68] {
	font-weight: 600;
	text-align: right;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stat-grid[b-11n3ivaw68] {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 6px;
}

.stat-tile[b-11n3ivaw68] {
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 12px;
	background: var(--canvas);
}

.stat-tile .num[b-11n3ivaw68] {
	font-size: 19px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.stat-tile .lbl[b-11n3ivaw68] {
	font-size: 10.5px;
	color: var(--ink-faint);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.notes-text[b-11n3ivaw68] {
	font-size: 12px;
	color: var(--ink-soft);
	margin: 0 0 10px;
}

.notes-text:last-child[b-11n3ivaw68] {
	margin-bottom: 0;
}

/* Deletion History - now a side-column card instead of a page-bottom collapsed section, same
   lazy-load-on-expand behavior as before. */
.deletion-history-list[b-11n3ivaw68] {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.deletion-history-row[b-11n3ivaw68] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px 12px;
	background: var(--canvas);
}

.deletion-history-title[b-11n3ivaw68] {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.deletion-history-meta[b-11n3ivaw68] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11px;
	color: var(--ink-soft);
	margin-top: 2px;
}

.deletion-history-reason[b-11n3ivaw68] {
	font-size: 11.5px;
	color: var(--ink-soft);
	margin-top: 6px;
	overflow-wrap: anywhere;
}

/* Modals */
.modal-title[b-11n3ivaw68] {
	font-size: 15px;
}

.pdf-frame[b-11n3ivaw68] {
	width: 100%;
	height: 78vh;
	border: none;
}

/* Same "resized desktop window still counts" switch point as MachineDetail.razor.css's own .grid. */
@media (max-width: 1400px) {
	.grid[b-11n3ivaw68] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Mobile */
@media (max-width: 640px) {
	.section-block-head[b-11n3ivaw68] {
		gap: 8px;
	}

	.section-title-wrap[b-11n3ivaw68] {
		flex: 1 1 140px;
	}

	.section-actions[b-11n3ivaw68] {
		margin-left: auto;
	}

	.add-section-row[b-11n3ivaw68] {
		flex-direction: column;
		align-items: stretch;
	}

	/* Upload dropzone + pending-description note stack back to the original top/bottom layout on
	   narrow viewports (see the desktop .upload-row rule above). */
	.upload-row[b-11n3ivaw68] {
		grid-template-columns: minmax(0, 1fr);
	}

	.file-grid.tile-medium[b-11n3ivaw68],
	.file-grid.tile-large[b-11n3ivaw68] {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.stat-grid[b-11n3ivaw68] {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 349px) {
	.file-grid.tile-small[b-11n3ivaw68] {
		grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	}

	.tile-size-btn[b-11n3ivaw68] {
		width: 24px;
	}
}

/* Modals, moved from inline style attributes (issue 101). */
.protocol-modal[b-11n3ivaw68] {
	background-color: var(--modal-backdrop);
}

.file-lightbox[b-11n3ivaw68] {
	background-color: var(--modal-backdrop-strong);
}

.file-lightbox-image[b-11n3ivaw68] {
	max-height: 80vh;
	object-fit: contain;
}
/* /Components/Pages/Machines/MachineDetail.razor.rz.scp.css */
.machine-detail-page[b-usiqdtz8hh] {
	color: var(--ink);
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page (topbar Cancel/Delete/Save, inline Edit,
   "+ Add Complaint", table row "Open") matches the compact density of the
   rest of the page, not just the .btn-sm variant below. "+ Add Complaint"
   and the table's "Open" link are <NavLink> (a framework component, not
   plain HTML written in this page), so their rendered <a> never gets this
   page's scope attribute either - same ::deep requirement as .form-control
   above, hence the duplicated ::deep selectors throughout this button
   block. */
.btn[b-usiqdtz8hh],
[b-usiqdtz8hh] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-usiqdtz8hh] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-usiqdtz8hh] {
	background: var(--danger-soft);
}

.btn-outline[b-usiqdtz8hh],
[b-usiqdtz8hh] .btn-outline {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-usiqdtz8hh],
[b-usiqdtz8hh] .btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-usiqdtz8hh],
[b-usiqdtz8hh] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

/* Small functional icons (pencil, plus, calendar) rendered as inline SVG atoms
   instead of an icon font - see razor-page-design-system's Icons section.
   Reaching a child icon component's rendered <svg> from this page's scoped
   CSS requires ::deep. */
[b-usiqdtz8hh] .icon-pencil,
[b-usiqdtz8hh] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Badges (address status + complaint state), shared palette with the
   Complaints/Customers modules */

.badge[b-usiqdtz8hh] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-usiqdtz8hh] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-usiqdtz8hh] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-usiqdtz8hh] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-usiqdtz8hh] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-usiqdtz8hh] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-usiqdtz8hh] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-usiqdtz8hh] { background: var(--line-soft); color: var(--ink-soft); }
.priority-medium[b-usiqdtz8hh] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }

/* Layout */

.grid[b-usiqdtz8hh] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

/* Notes textarea (MachineDetail.NotesCard) isn't wrapped in a Field, so
   Field.razor.css's compact rule doesn't reach it - keep the same type scale,
   but let height stay auto (rows="3") instead of forcing a single-line 32px. */
[b-usiqdtz8hh] textarea.form-control {
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* RAL code input group: input + optional swatch-edit button */

.input-group .btn-outline[b-usiqdtz8hh] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Complaints badge (title row) + count pill in the sticky header */

.badge-callissues[b-usiqdtz8hh] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues:hover[b-usiqdtz8hh] {
	border-color: var(--accent);
}

/* Same badge, warning-colored, when the machine has open complaints
   (_complaints.Count > 0) - real count data already loaded for the page,
   not a fabricated status. */
.badge-callissues-active[b-usiqdtz8hh] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	color: var(--warning-ink);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues-active:hover[b-usiqdtz8hh] {
	border-color: var(--warning-ink);
}

.badge-callissues-active .count-pill[b-usiqdtz8hh] {
	/* A white pill on the amber badge: --warning-ink on it is 5.7:1 (the old translucent amber pill gave 4.3:1,
	   issue 112 A6). */
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--warning-line);
	color: var(--warning-ink);
}

.count-pill[b-usiqdtz8hh] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
}

/* Same rationale as ComplaintDetail.razor.css: 1400px is wide enough that
   resizing an ordinary desktop browser window down (not just real phones/
   foldables) switches this page to its compact single-column layout too. */

@media (max-width: 1400px) {
	.grid[b-usiqdtz8hh] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Related-records table (Complaints) */

/* Issue 372 / decision 402 Q4: the "not confirmed" marker under a complaint's state in the table. */
.not-confirmed-line[b-usiqdtz8hh] {
	display: block;
	margin-top: 4px;
}

.related-table-wrap[b-usiqdtz8hh] {
	overflow-x: auto;
	max-width: 100%;
}

.related-table[b-usiqdtz8hh] {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

.related-table thead th[b-usiqdtz8hh] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
	white-space: nowrap;
}

.related-table tbody td[b-usiqdtz8hh] {
	padding: 8px 10px;
	font-size: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.related-table tbody tr:last-child td[b-usiqdtz8hh] {
	border-bottom: none;
}

.related-table tbody tr:hover[b-usiqdtz8hh] {
	background: var(--surface-hover);
}

/* RAL code swatch picker - same .picker-* classes/values as RalCodeDetail.razor.css's own RAL
   picker (see that file), including the box-sizing:border-box + mobile breakpoint so this
   picker doesn't overflow un-shrunk on a phone. Swatch background/text color still has to be
   inline - it's per-record RGB data, not a fixed design token. */

.picker-grid[b-usiqdtz8hh] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.picker-swatch[b-usiqdtz8hh] {
	width: 120px;
	height: 80px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12.5px;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
	padding: 8px;
	box-sizing: border-box;
}

.picker-swatch:hover[b-usiqdtz8hh] {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

.picker-swatch-category[b-usiqdtz8hh] {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.picker-swatch-code[b-usiqdtz8hh] {
	margin-top: 2px;
}

@media (max-width: 767.98px) {
	.picker-swatch[b-usiqdtz8hh] {
		width: 100px;
		height: 60px;
	}
}


/* Hero monogram avatar (next to the page title, mirrors the mockup's "MF" tile) */

.hero-avatar[b-usiqdtz8hh] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.badge-accent[b-usiqdtz8hh] {
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid var(--accent-ring);
}

/* The title row belongs to PageHeader, so reaching it needs ::deep (and the page class, to outrank PageHeader's
   own .title-row gap). */
@media (max-width: 1400px) {
	.machine-detail-page[b-usiqdtz8hh]  .title-row {
		gap: 10px;
	}
}

/* Moved from inline style attributes (issue 101). */
.related-table .col-open[b-usiqdtz8hh] {
	width: 80px;
}

.ral-picker-modal[b-usiqdtz8hh] {
	background-color: var(--modal-backdrop);
}

/* Epic 417 (issue 422): an address Basker could not find is orange like an empty input (Figma 183:3019 part 6b); the mark and the
   line under it are the Field molecule's and the BaskerFieldMark atom's. The address box is this page's own markup, so the rule is here. */
.field-basker-not-found .address-box[b-usiqdtz8hh] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-ink);
	border-radius: 6px;
	padding: 6px 12px;
}

/* Epic 417 (issue 422, responsive findings 2 and 3): the draft address is what the user must check, so it wraps instead of being cut
   with an ellipsis, and the box opens the address window on a tap. The pencil keeps its 22 px look but gets a 44 px touch target. */
.machine-detail-page [data-component$="DraftAddressField"] .address-box .address-text[b-usiqdtz8hh] {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (pointer: coarse), (max-width: 640px) {
	.machine-detail-page [data-component$="DraftAddressField"] .icon-btn-edit[b-usiqdtz8hh] {
		position: relative;
	}

	.machine-detail-page [data-component$="DraftAddressField"] .icon-btn-edit[b-usiqdtz8hh]::after {
		/* A fixed 44 px box centred on the button (an inset is measured from inside the 1 px border and came out 42 px). */
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 44px;
		height: 44px;
		transform: translate(-50%, -50%);
	}
}

/* Issue 486 (live re-check of 422): a Customer select refused on Save is red with the danger tokens, never a green "valid" outline
   (the same idea as the customer page's .form-select.is-invalid). */
.machine-detail-page .form-select.is-invalid[b-usiqdtz8hh],
.machine-detail-page[b-usiqdtz8hh]  .form-select.is-invalid {
	outline: none;
	border-color: var(--danger-ink);
}

.machine-detail-page .form-select.is-invalid:focus[b-usiqdtz8hh],
.machine-detail-page[b-usiqdtz8hh]  .form-select.is-invalid:focus {
	border-color: var(--danger-ink);
	box-shadow: 0 0 0 0.2rem var(--danger-line);
}

/* The "choose the customer" line (issue 486, D486-6) uses the size of the Basker hints next to it, so the narrow customer column of the
   4-column row (about 150 px at 1401 px) keeps it on one line. */
.machine-detail-page[b-usiqdtz8hh]  .machine-customer-required {
	font-size: 12px;
}
/* /Components/Pages/Machines/MachineList.razor.rz.scp.css */
.machines-page[b-0qf6qsrem3] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-0qf6qsrem3] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-0qf6qsrem3] {
	white-space: nowrap;
}

/* Toolbar */

.toolbar[b-0qf6qsrem3] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-0qf6qsrem3] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-0qf6qsrem3] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-0qf6qsrem3] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-0qf6qsrem3]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, pencil, sort direction) rendered as inline SVG
   atoms instead of an icon font - see razor-page-design-system's Icons
   section. currentColor lets each pick up its surrounding text/link color
   (and hover state) automatically. Reaching a child icon component's rendered
   <svg> from this page's scoped CSS requires ::deep. */
[b-0qf6qsrem3] .icon-plus,
[b-0qf6qsrem3] .icon-pencil,
[b-0qf6qsrem3] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-0qf6qsrem3] {
	padding-left: 36px;
}

/* Badges (Distributor tag on mobile cards) */

.badge[b-0qf6qsrem3] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.badge .dot[b-0qf6qsrem3] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-default[b-0qf6qsrem3] {
	background: var(--line-soft);
	color: var(--ink-soft);
}

/* Table */

.table-card[b-0qf6qsrem3] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (machines-page is a flex column that
	   fills the viewport) instead of only being as tall as its rows, then
	   scroll its own content - both horizontally (wide table) and vertically
	   (many rows) - only when it doesn't fit, rather than the whole page
	   scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.machines-table[b-0qf6qsrem3] {
	width: 100%;
	border-collapse: collapse;
}

.machines-table thead th[b-0qf6qsrem3] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.machines-table thead tr:first-child th:first-child[b-0qf6qsrem3] { border-top-left-radius: 12px; }
.machines-table thead tr:first-child th:last-child[b-0qf6qsrem3] { border-top-right-radius: 12px; }
.machines-table tbody tr:last-child td:first-child[b-0qf6qsrem3] { border-bottom-left-radius: 12px; }
.machines-table tbody tr:last-child td:last-child[b-0qf6qsrem3] { border-bottom-right-radius: 12px; }

.machines-table tbody td[b-0qf6qsrem3] {
	padding: 14px 18px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.machines-table tbody tr:last-child td[b-0qf6qsrem3] { border-bottom: none; }
.machines-table tbody tr:hover[b-0qf6qsrem3] { background: var(--surface-hover); }

.cell-model[b-0qf6qsrem3] { font-weight: 600; }
.cell-serial[b-0qf6qsrem3] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-date[b-0qf6qsrem3] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Notes hover tooltip */

.notes-wrap[b-0qf6qsrem3] {
	position: relative;
	display: inline-block;
	max-width: 260px;
	vertical-align: middle;
}

.cell-notes-text[b-0qf6qsrem3] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-0qf6qsrem3] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 320px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	pointer-events: none;
}

.notes-tooltip[b-0qf6qsrem3]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-0qf6qsrem3] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Row actions */

.row-actions[b-0qf6qsrem3] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-0qf6qsrem3] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-0qf6qsrem3] {
	display: none;
}

.m-card[b-0qf6qsrem3] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-0qf6qsrem3] {
	border-color: var(--accent);
}

.m-card-top[b-0qf6qsrem3] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-0qf6qsrem3] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sn[b-0qf6qsrem3] {
	/* Shrinks and wraps a long unbroken serial instead of pushing the card wider than a phone (issue 112 A1). */
	flex: 0 1 auto;
	min-width: 0;
	max-width: 55%;
	overflow-wrap: anywhere;
	text-align: right;
	color: var(--ink-soft);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.m-card-sub[b-0qf6qsrem3] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-0qf6qsrem3] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-meta[b-0qf6qsrem3] {
	margin-top: 6px;
	min-width: 0;
}

/* A long distributor name must not widen the card (and the page) on phones - .badge is nowrap. */
.m-card-meta .badge[b-0qf6qsrem3] {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.m-card-notes[b-0qf6qsrem3] {
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view, closer to the original simple
   list. Breakpoint is 1400px - deliberately much wider than any phone or
   opened foldable, so it also covers an ordinary desktop browser window
   simply resized narrower. See ComplaintList.razor.css. */

@media (max-width: 1400px) {
	.topbar[b-0qf6qsrem3] {
		align-items: flex-start;
	}

	.btn-new[b-0qf6qsrem3] {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-0qf6qsrem3] {
		display: none;
	}

	.mobile-list[b-0qf6qsrem3] {
		display: block;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-0qf6qsrem3] {
		padding: 14px 14px;
	}

	.m-card[b-0qf6qsrem3] {
		padding: 10px 12px;
	}

	.m-card-title[b-0qf6qsrem3] {
		font-size: 13.5px;
	}

	.btn-new[b-0qf6qsrem3] {
		font-size: 12.5px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-actions[b-0qf6qsrem3] {
	width: 96px;
}
/* /Components/Pages/Map/MapDashboard.razor.rz.scp.css */
.map-dashboard-page[b-czzaej2bgf] {
    color: var(--ink);
    display: flex;
    flex-direction: column;
    /* --map-page-top-offset is measured in real pixels by updateMapPageTopOffset() in
       MapDashboard.razor.js (set on <html>, re-measured on load and on every debounced resize) - the
       actual rendered height of whatever chrome sits above this page (top nav bar, mobile hamburger
       toggle row, etc.), which cannot be known from CSS alone. This element previously hardcoded a
       guessed constant here instead (a flat "1.5rem"/mobile "1.1rem") - on desktop that guess happened
       to match the real chrome height (article's own 1.5rem top padding) by coincidence, but on mobile
       it did not (~82px of real nav chrome vs. the guessed ~18px), leaving the whole page taller than
       the viewport and pushing the map canvas - and the pincushion tray sitting at its bottom edge -
       partly below the fold with no visible gap (user-reported, issue #65 follow-up). Measuring the
       real value instead of guessing self-corrects regardless of how that chrome renders. The 1.5rem
       fallback only matters before the JS module's first measurement lands (progressive enhancement)
       or if JS is unavailable - it reproduces the old (correct-on-desktop) desktop behavior in that
       narrow window.
       --map-bottom-gap (below) reserves the same visual breathing room below the canvas as this page's
       own left/right gutter, so the box reads as evenly inset on every side rather than flush to the
       bottom - it matches MainLayout.razor.css's article/.content side padding at each breakpoint
       (1.5rem desktop, 1rem mobile) exactly. */
    --map-bottom-gap: 1.5rem;
    height: calc(100vh - var(--map-page-top-offset, 1.5rem) - var(--map-bottom-gap));
    min-height: 0;
}

@media (max-width: 640.98px) {
    .map-dashboard-page[b-czzaej2bgf] {
        --map-bottom-gap: 1rem;
    }
}

/* Header row: title + search + legend toggle + zoom controls. Fixed-size, never squeezed by the
   flex column layout below (see the flex-shrink rule further down). */
.map-header[b-czzaej2bgf] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.map-title[b-czzaej2bgf] {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.map-header-actions[b-czzaej2bgf] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-wrap[b-czzaej2bgf] {
    position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not carry this file's
   CSS-isolation scope attribute - crossing that component boundary requires ::deep, otherwise this
   rule silently never matches (see razor-page-design-system's Icons section). */
.search-wrap[b-czzaej2bgf]  .icon-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
}

.map-search-input[b-czzaej2bgf] {
    width: 240px;
    max-width: 100%;
    height: 32px;
    padding: 0 10px 0 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
}

.map-search-input:focus[b-czzaej2bgf] {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-outline[b-czzaej2bgf] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.1s ease, color 0.1s ease;
}

.btn-outline:hover[b-czzaej2bgf] {
    border-color: var(--accent);
    color: var(--accent);
}

[b-czzaej2bgf] .icon-list,
[b-czzaej2bgf] .icon-reset {
    display: inline-flex;
}

.zoom-controls[b-czzaej2bgf] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.btn-icon[b-czzaej2bgf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}

.btn-icon:hover[b-czzaej2bgf] {
    background: var(--accent-soft);
    color: var(--accent);
}

.map-canvas-wrapper[b-czzaej2bgf] {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    /* Required so this flex child can shrink below its content size instead of forcing the page
       taller than the viewport; a fixed min-height here also left svg-pan-zoom's fit() computed
       against a size smaller than the final settled layout, causing the map to not fill the box. */
    min-height: 0;
    /* No margin-bottom here (previously 1rem) - .map-canvas-wrapper is .map-dashboard-page's last flex
       child, so a margin here only ever created the gap between it and the page's own bottom edge.
       That gap is now reserved once, at the page level, via --map-bottom-gap (see .map-dashboard-page
       above) so it equals the page's own left/right gutter exactly instead of stacking on top of it -
       keeping both here would double it. */
    border: 1px solid var(--map-border);
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: var(--map-bg);
}

.map-svg[b-czzaej2bgf] {
    width: 100%;
    height: 100%;
    display: block;
    /* Declared here (rather than relying solely on the var(...) fallback below) so tooling that
       flags undeclared custom properties has something to resolve; the real value is overwritten
       on every zoom tick by updateLabelScale() in MapDashboard.razor.js via style.setProperty on
       this same element. */
    --place-label-scale: 1;
    /* Counter-scale for incident pin icons (issue #62), same pattern as --place-label-scale above:
       the real value is overwritten on every zoom tick by updatePinIconScale() in
       MapDashboard.razor.js so the pushpin icon stays a roughly constant screen size across the
       map's 0.5-60 relative zoom range instead of growing/shrinking with the canvas. */
    --pin-icon-scale: 1;
    /* Issue #46: the raw, unfitted full-canvas SVG paints immediately on render, before the async
       initMap()/fitBounds() JS-interop round-trip (over SignalR on InteractiveServer) applies the
       real pan/zoom fit. Stay hidden until MapDashboard.razor.js adds .map-ready once that fit has
       been applied, then fade in. */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.map-svg.map-ready[b-czzaej2bgf] {
    opacity: 1;
}

/* Phase A (pins not yet loaded) and Phase B (SVG present but not yet fitted, opacity: 0 above):
   this placeholder fills the same reserved footprint as the map itself so nothing jumps in layout
   when the real map fades in. Hidden once the sibling .map-svg carries .map-ready. */
.map-placeholder[b-czzaej2bgf] {
    position: absolute;
    inset: 0;
    background-color: var(--canvas);
    opacity: 1;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.map-svg.map-ready ~ .map-placeholder[b-czzaej2bgf] {
    opacity: 0;
}

/* Faint whole-continent backdrop (issue #40 follow-up): drawn under .map-countries so it never
   visually competes with the affected/neighbor countries' own outlines, only fills in the
   surrounding context (visible once the user zooms out past the affected+neighbor set, or on
   wide/short viewports where the fitted view already shows some margin around them). */
.map-continent-context[b-czzaej2bgf] {
    pointer-events: none;
}

.map-continent-country[b-czzaej2bgf] {
    fill: var(--map-context-fill);
    stroke: var(--map-context-stroke);
    stroke-width: 0.75px;
}

.map-countries[b-czzaej2bgf] {
    pointer-events: none;
}

.map-country[b-czzaej2bgf] {
    fill: var(--map-country-fill);
    stroke: var(--map-country-stroke);
    stroke-width: 1px;
}

/* Cities are a static, non-interactive reference layer drawn under the incident/base pins, so
   pointer events pass straight through to whatever pin/country is beneath them. */
.map-cities[b-czzaej2bgf] {
    pointer-events: none;
}

.map-city .city-marker[b-czzaej2bgf] {
    fill: var(--map-city);
    stroke: var(--white);
    stroke-width: 0.4px;
}

/* A country's capital (see CapitalCityByCountryCode in MapDashboard.razor.cs) always renders with
   a bigger, accent-colored marker, and always wins declutterPlaces() in MapDashboard.razor.js
   regardless of population data - useful since none of the currently committed per-country data
   carries a real population value yet. */
.map-city .capital-marker[b-czzaej2bgf] {
    fill: var(--map-capital);
}

/* --place-label-scale is set by declutterPlaces() in MapDashboard.razor.js on every zoom tick to
   counter the natural growth of canvas-unit font sizes as the user zooms in - without it, labels
   would keep growing with the zoom and leave no room for more towns/villages to appear; with it,
   labels stay roughly the same screen size (or shrink a little further) as the view zooms in.
   Defaults to 1 (no scaling) before the first zoom tick. Base size tuned to user feedback (10px
   reads better in the default view than the smaller sizes originally tried). */
.map-city .city-label[b-czzaej2bgf] {
    font-size: calc(10px * var(--place-label-scale, 1));
    fill: var(--map-city-label);
    user-select: none;
}

.map-city .capital-label[b-czzaej2bgf] {
    font-weight: 700;
    fill: var(--map-capital);
}

/* Towns/villages (issue #40) are static reference layers loaded on demand as the user zooms into an
   affected country, exactly like .map-cities above: no overlap resolution/filtering, always render
   once loaded, and never intercept pointer events (clicks pass through to pins/countries below). */
.map-towns[b-czzaej2bgf],
.map-villages[b-czzaej2bgf] {
    pointer-events: none;
}

.map-town .town-marker[b-czzaej2bgf] {
    fill: var(--map-town);
    stroke: var(--white);
    stroke-width: 0.3px;
}

.map-town .town-label[b-czzaej2bgf] {
    font-size: calc(4.2px * var(--place-label-scale, 1));
    fill: var(--map-town-label);
    user-select: none;
}

.map-village .village-marker[b-czzaej2bgf] {
    fill: var(--map-village);
    stroke: var(--white);
    stroke-width: 0.2px;
}

.map-village .village-label[b-czzaej2bgf] {
    font-size: calc(3.5px * var(--place-label-scale, 1));
    fill: var(--map-village-label);
    user-select: none;
}

/* Set by declutterPlaces() in MapDashboard.razor.js when this city/town/village marker's rendered
   box (dot + label together) collides with a higher-priority one (higher tier, then bigger
   population) already kept at the current zoom. Unlike an earlier version of this pass that only
   hid the text, the whole marker is hidden here - a dot with no visible name is exactly what issue
   #26's follow-up review asked to remove, not just declutter. */
.map-city.place-hidden[b-czzaej2bgf],
.map-town.place-hidden[b-czzaej2bgf],
.map-village.place-hidden[b-czzaej2bgf] {
    display: none;
}

/* Set by declutterPlaceMarkers() in MapDashboard.razor.js when this town/village marker's rendered
   circle overlaps a higher-priority one already kept at the current zoom - thins the dense dot-
   clouds a flat per-country cap alone can't prevent (e.g. Czechia's villages tier). Unlike
   .label-hidden above, there's no separate label to keep visible here, so the whole marker <g> is
   hidden. */
.map-town.place-hidden[b-czzaej2bgf],
.map-village.place-hidden[b-czzaej2bgf] {
    display: none;
}

.map-pin[b-czzaej2bgf] {
    cursor: pointer;
}

/* Pushpin icon (issue #62): counter-scaled by --pin-icon-scale (set by updatePinIconScale() in
   MapDashboard.razor.js on every zoom tick, mirroring the --place-label-scale pattern above) around
   its own local origin - the needle tip at (0,0), which is also the pin's true anchor point (see the
   .pin-needle path's coordinates in MapDashboard.razor) - so the icon's on-screen size stays
   roughly constant across zoom while its tip never drifts off the real projected coordinate.
   transform-origin must be pinned explicitly to that same local (0,0) (issue #65 follow-up) - without
   it, the browser's default origin is the element's own bounding-box center, which for an SVG <g>
   under CSS transform-box:view-box (the default) sits at whatever the shape's visual bounds compute
   to. #62's short pin (tip-to-head-top ~31 local units, tip near the box's vertical center) hid this,
   but #65's taller pin (~47.7 units, tip far below the box's center) made the resulting drift/scale
   error obvious: as --pin-icon-scale changed with zoom, the pin visibly grew/shrank asymmetrically
   around that off-anchor center instead of scaling cleanly around the tip, making it look like the
   pin "gets bigger" when zooming out toward the default view. transform-box on an SVG element resolves
   percentage/keyword origins against its own local user-coordinate system by default, so "0 0" here
   is exactly the tip - the same origin FormatCoord's translate(x,y) already anchors on. */
.map-pin .pin-icon[b-czzaej2bgf] {
    transform-origin: 0 0;
    transform: scale(var(--pin-icon-scale, 1));
}

.map-pin .pin-hit-area[b-czzaej2bgf] {
    fill: transparent;
    pointer-events: all;
}

/* Redesigned pin body (issue #65, replacing #62's short-triangle-needle + trapezoid-collar shape
   with a longer continuous shaft-and-tip needle flowing into the head, per the design pass shared on
   the issue) - the needle/collar/tip-highlight stay a fixed neutral color across every status; only
   the head's fill is status-driven below. Needle/collar share the same dark slate (--pin-needle, unifying
   what used to be two different darks) for a single seamless shaft; .pin-needle-tip is a lighter
   overlay on just the tapered tip for a subtle metal-glint read, at a low enough opacity that it
   never competes with the needle's own contrast against the map's pale backgrounds (--map-bg/--map-country-fill)
   - the exact contrast problem #62/PR #64 hit with a light needle color.
   .mini-pin (the pincushion tray's fanned pins, issue #63) and .legend-pin (the legend's own true-
   miniature pin swatch, issue #65) share these same rules so their silhouette/colors stay identical
   to a real map pin's, without sharing the .map-pin class itself - the three intentionally never
   overlap (a mini-pin/legend-pin is never rendered on the map canvas and a .map-pin is never
   rendered in the pincushion or legend), keeping .map-pin semantically exclusive to "a real pin
   actually on the map" while still sharing the visual styling via comma-separated selectors. */
.map-pin .pin-needle[b-czzaej2bgf],
.mini-pin .pin-needle[b-czzaej2bgf],
.legend-pin .pin-needle[b-czzaej2bgf] {
    fill: var(--pin-needle);
}

.map-pin .pin-needle-tip[b-czzaej2bgf],
.mini-pin .pin-needle-tip[b-czzaej2bgf],
.legend-pin .pin-needle-tip[b-czzaej2bgf] {
    fill: var(--pin-needle-tip);
    opacity: 0.55;
}

.map-pin .pin-collar[b-czzaej2bgf],
.mini-pin .pin-collar[b-czzaej2bgf],
.legend-pin .pin-collar[b-czzaej2bgf] {
    fill: var(--pin-needle);
}

/* Pin heads are non-text marks and need 3:1 against the map (WCAG 1.4.11). Most fills alone measure 1.5-2.95:1
   against --map-country-fill and the old white stroke 1.28:1, so each status rule below outlines the head in the
   darker --pin-*-ink shade of its own hue (3.86-6.64:1, issue 112 A6; ratios in docs/accessibility/). */
.map-pin .pin-head[b-czzaej2bgf],
.mini-pin .pin-head[b-czzaej2bgf],
.legend-pin .pin-head[b-czzaej2bgf] {
    stroke: var(--pin-slate-ink);
    stroke-width: 1.5px;
    fill: var(--pin-slate);
}

/* Neutral (non-status-colored) grounding/depth cues (issue #65's "grounding" ask) - a soft ground
   shadow under the tip so a flat pin doesn't read as floating on the flat map, plus a small gloss
   highlight on the head for a touch of dimensionality without reintroducing the reference SVG's full
   gradient/gloss treatment. Map-pin only: at the pincushion/legend's much smaller render sizes these
   would be imperceptible clutter, so .mini-pin/.legend-pin keep the plain flat head instead. */
.map-pin .pin-shadow[b-czzaej2bgf] {
    fill: rgba(15, 23, 42, 0.22);
    pointer-events: none;
}

.map-pin .pin-head-gloss[b-czzaej2bgf] {
    fill: var(--white);
    opacity: 0.28;
    pointer-events: none;
}

.map-pin .pin-head-highlight[b-czzaej2bgf] {
    fill: var(--white);
    opacity: 0.55;
    pointer-events: none;
}

/* Status colors below drive only the pin head's fill and are kept byte-for-byte identical to the
   matching ::deep .kpi-badge.status-* border-color further down this file - see that section's own
   comment for the legend-swatch pairing convention this extends to incident pins.
   .legend-pin.status-* (issue #65) is included on every status this codebase's legend actually
   renders (see LegendPinStatuses in MapDashboard.razor.cs) so the legend's inline-SVG pin swatch
   picks up the exact same color as the real map pin/pincushion mini-pin, instead of silently
   falling back to the base .legend-pin .pin-head gray defined above. */
.map-pin.status-new .pin-head[b-czzaej2bgf],
.mini-pin.status-new .pin-head[b-czzaej2bgf],
.legend-pin.status-new .pin-head[b-czzaej2bgf] {
    fill: var(--pin-red);
    stroke: var(--pin-red-ink);
}

.map-pin.status-open .pin-head[b-czzaej2bgf],
.mini-pin.status-open .pin-head[b-czzaej2bgf] {
    fill: var(--pin-orange);
    stroke: var(--pin-orange-ink);
}

.map-pin.status-inprogress .pin-head[b-czzaej2bgf],
.mini-pin.status-inprogress .pin-head[b-czzaej2bgf],
.legend-pin.status-inprogress .pin-head[b-czzaej2bgf] {
    fill: var(--pin-yellow);
    stroke: var(--pin-yellow-ink);
}

.map-pin.status-done .pin-head[b-czzaej2bgf],
.map-pin.status-confirm .pin-head[b-czzaej2bgf],
.mini-pin.status-done .pin-head[b-czzaej2bgf],
.mini-pin.status-confirm .pin-head[b-czzaej2bgf],
.legend-pin.status-done .pin-head[b-czzaej2bgf] {
    fill: var(--pin-green);
    stroke: var(--pin-green-ink);
}

.map-pin.status-rejected .pin-head[b-czzaej2bgf],
.mini-pin.status-rejected .pin-head[b-czzaej2bgf],
.legend-pin.status-rejected .pin-head[b-czzaej2bgf] {
    fill: var(--pin-slate);
    stroke: var(--pin-slate-ink);
}

/* KpiStatus.ToSupplement counterpart (see ::deep .kpi-badge.status-tosupplement below) - completes
   the full incident status set on the map, which previously had no pin color for it and silently
   fell back to the default .pin-head gray above. */
.map-pin.status-tosupplement .pin-head[b-czzaej2bgf],
.mini-pin.status-tosupplement .pin-head[b-czzaej2bgf] {
    fill: var(--pin-teal);
    stroke: var(--pin-teal-ink);
}

/* Active Installation pin (issue #77 follow-up) - a machine with at least one active Installation
   Protocol section. --pin-installation is the app's brand accent (razor-page-design-system) and isn't used by any
   other status-* pin head color on this page, so it stays visually distinct from every complaint/
   service-plan status and from the removed technician-base gray. */
.map-pin.status-installation .pin-head[b-czzaej2bgf],
.legend-pin.status-installation .pin-head[b-czzaej2bgf] {
    fill: var(--pin-installation);
    stroke: var(--pin-installation-ink);
}

/* Service Plan pins (user feedback, 2026-09-11: every status-driven marker on the map should render
   as a pin, matching the incident pushpin shape rather than a family-specific square) - only the
   head color is status-driven, reusing the same .pin-head/.pin-needle/.pin-collar rules above.
   Colors unchanged from the previous square marker's fills. */
.map-pin.status-serviceplan-new .pin-head[b-czzaej2bgf],
.mini-pin.status-serviceplan-new .pin-head[b-czzaej2bgf],
.legend-pin.status-serviceplan-new .pin-head[b-czzaej2bgf] {
    fill: var(--pin-red);
    stroke: var(--pin-red-ink);
}

.map-pin.status-serviceplan-commited .pin-head[b-czzaej2bgf],
.mini-pin.status-serviceplan-commited .pin-head[b-czzaej2bgf],
.legend-pin.status-serviceplan-commited .pin-head[b-czzaej2bgf] {
    fill: var(--pin-sky);
    stroke: var(--pin-sky-ink);
}

.map-pin.status-serviceplan-active .pin-head[b-czzaej2bgf],
.mini-pin.status-serviceplan-active .pin-head[b-czzaej2bgf],
.legend-pin.status-serviceplan-active .pin-head[b-czzaej2bgf] {
    fill: var(--pin-violet);
    stroke: var(--pin-violet-ink);
}

.map-pin.status-serviceplan-pending .pin-head[b-czzaej2bgf],
.mini-pin.status-serviceplan-pending .pin-head[b-czzaej2bgf],
.legend-pin.status-serviceplan-pending .pin-head[b-czzaej2bgf] {
    fill: var(--pin-orange);
    stroke: var(--pin-orange-ink);
}

/* ServicePlanStatus.ToSuplement counterpart (issue #63's no-location service plans can carry this
   status, same as the incident-side ToSupplement rule above) - previously had no color rule at all
   for either a real map pin or the pincushion, silently falling back to the browser's default black
   fill. */
.map-pin.status-serviceplan-tosuplement .pin-head[b-czzaej2bgf],
.mini-pin.status-serviceplan-tosuplement .pin-head[b-czzaej2bgf] {
    fill: var(--pin-teal);
    stroke: var(--pin-teal-ink);
}

.map-pin.pin-hidden[b-czzaej2bgf] {
    display: none;
}

.map-dashboard-page > .map-header[b-czzaej2bgf],
.map-dashboard-page > .map-mobile-filters-toggle[b-czzaej2bgf],
.map-dashboard-page > .map-filters-panel[b-czzaej2bgf] {
    flex-shrink: 0;
}

/* Mobile "Filters" toggle (razor-page-design-system's collapsible-toggle pattern): hidden on
   desktop, shown only below the narrow-phone breakpoint the map canvas itself already uses (see
   .map-dashboard-page's own max-width: 640.98px rule above) so the KPI bar and legend card don't
   push the canvas off the bottom of a phone screen. */
.map-mobile-filters-toggle[b-czzaej2bgf] {
    display: none;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.icon-chevron[b-czzaej2bgf] {
    display: inline-flex;
    align-items: center;
    vertical-align: -1px;
}

.map-filters-panel[b-czzaej2bgf] {
    margin-bottom: 12px;
}

@media (max-width: 640.98px) {
    /* Below this width the header's own Legend toggle is replaced by the unified Filters toggle
       above, which shows/hides the KPI bar and legend card together. */
    .legend-toggle-btn[b-czzaej2bgf] {
        display: none;
    }

    .map-mobile-filters-toggle[b-czzaej2bgf] {
        display: flex;
    }

    .map-filters-panel.mobile-collapsed[b-czzaej2bgf] {
        display: none;
    }
}

/* The KPI buttons are rendered by the child KpiFilterBar component, so Blazor's CSS isolation
   scope attribute from this file is not applied to them directly — ::deep is required to reach
   into child component markup. */
[b-czzaej2bgf] .kpi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

[b-czzaej2bgf] .kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
    transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

[b-czzaej2bgf] .kpi-badge .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

/* Darkened (was a 30% white overlay) so the white count keeps >= 4.5:1 on every active chip fill (issue 101). */
[b-czzaej2bgf] .kpi-badge.active .badge {
    background: rgba(0, 0, 0, 0.2);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-new {
    border-color: var(--pin-red);
    color: var(--pin-red-ink);
}

[b-czzaej2bgf] .kpi-badge.status-new.active {
    background-color: var(--pin-red-ink);
    border-color: var(--pin-red-ink);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-inprogress {
    border-color: var(--pin-yellow);
    color: var(--pin-yellow-ink);
}

[b-czzaej2bgf] .kpi-badge.status-inprogress.active {
    background-color: var(--pin-yellow-ink);
    border-color: var(--pin-yellow-ink);
    color: var(--on-color);
}

/* Service-plan-only statuses (Commited/Active/Pending). Completed/Removed plans are never
   "active" server-side, so they never reach the KPI bar and have no bucket here. */
[b-czzaej2bgf] .kpi-badge.status-commited {
    border-color: var(--pin-sky);
    color: var(--pin-sky-ink);
}

[b-czzaej2bgf] .kpi-badge.status-commited.active {
    background-color: var(--pin-sky-ink);
    border-color: var(--pin-sky-ink);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-active {
    border-color: var(--pin-violet);
    color: var(--pin-violet-ink);
}

[b-czzaej2bgf] .kpi-badge.status-active.active {
    background-color: var(--pin-violet-ink);
    border-color: var(--pin-violet-ink);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-pending {
    border-color: var(--pin-orange);
    color: var(--pin-orange-ink);
}

[b-czzaej2bgf] .kpi-badge.status-pending.active {
    background-color: var(--pin-orange-ink);
    border-color: var(--pin-orange-ink);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-done {
    border-color: var(--pin-green);
    color: var(--pin-green-ink);
}

[b-czzaej2bgf] .kpi-badge.status-done.active {
    background-color: var(--pin-green-ink);
    border-color: var(--pin-green-ink);
    color: var(--on-color);
}

[b-czzaej2bgf] .kpi-badge.status-rejected {
    border-color: var(--pin-slate);
    color: var(--pin-slate-ink);
}

[b-czzaej2bgf] .kpi-badge.status-rejected.active {
    background-color: var(--pin-slate-ink);
    border-color: var(--pin-slate-ink);
    color: var(--on-color);
}

/* KpiStatus.ToSupplement - low-confidence Complaint/ServicePlan rows created by the email agent
   (issue #32/#48/#49) that need a human to fill in missing details before they're actionable. */
[b-czzaej2bgf] .kpi-badge.status-tosupplement {
    border-color: var(--pin-teal);
    color: var(--pin-teal-ink);
}

[b-czzaej2bgf] .kpi-badge.status-tosupplement.active {
    background-color: var(--pin-teal-ink);
    border-color: var(--pin-teal-ink);
    color: var(--on-color);
}

/* Legend card chrome (border/radius/padding/typography) - restyled to the design system's tokens.
   The swatch colors below (.legend-swatch.status-*) are a matched pair with the live pin colors
   (.map-pin.status-* above) and must stay byte-for-byte identical - do not edit their hex values. */
.legend-card[b-czzaej2bgf] {
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.legend-items[b-czzaej2bgf] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.legend-item[b-czzaej2bgf] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 13px;
    color: var(--ink-soft);
}

.legend-swatch[b-czzaej2bgf] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Legend pin swatch (issue #65): a true inline-SVG miniature of the real map pin shape (see the
   shared .pin-head/.pin-needle/.pin-collar color rules above), replacing the old CSS-trick rotated-
   square-corner teardrop approximation - the legend now shows the exact same silhouette that renders
   on the map, just scaled down, instead of a different shape that merely looked pin-ish. */
.legend-pin[b-czzaej2bgf] {
    display: inline-block;
    width: 10px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Status-driven pin swatches (issue #62; extended to Service Plan statuses on 2026-09-11 user
   feedback so every status badge's marker renders as the same pin shape on the map): a teardrop
   "map pin" outline (circle with one corner square, rotated -45deg to point down) via the classic
   CSS pin trick, replacing the plain dot/square so the legend matches the pushpin icon's silhouette
   on the map. City is a reference/location marker, not a status, and keeps its own distinct shape
   below; Active Installation has no KPI status either, so it uses the inline-SVG .legend-pin form
   instead of this .legend-swatch teardrop trick (see the .legend-pin.status-installation rule above). */
.legend-swatch.status-new[b-czzaej2bgf],
.legend-swatch.status-open[b-czzaej2bgf],
.legend-swatch.status-inprogress[b-czzaej2bgf],
.legend-swatch.status-done[b-czzaej2bgf],
.legend-swatch.status-rejected[b-czzaej2bgf],
.legend-swatch.status-tosupplement[b-czzaej2bgf],
.legend-swatch.status-serviceplan-new[b-czzaej2bgf],
.legend-swatch.status-serviceplan-commited[b-czzaej2bgf],
.legend-swatch.status-serviceplan-active[b-czzaej2bgf],
.legend-swatch.status-serviceplan-pending[b-czzaej2bgf],
.legend-swatch.status-serviceplan-tosuplement[b-czzaej2bgf] {
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.legend-swatch.status-new[b-czzaej2bgf] {
    background-color: var(--pin-red);
}

.legend-swatch.status-open[b-czzaej2bgf] {
    background-color: var(--pin-orange);
}

.legend-swatch.status-inprogress[b-czzaej2bgf] {
    background-color: var(--pin-yellow);
}

.legend-swatch.status-done[b-czzaej2bgf] {
    background-color: var(--pin-green);
}

.legend-swatch.status-rejected[b-czzaej2bgf] {
    background-color: var(--pin-slate);
}

.legend-swatch.status-tosupplement[b-czzaej2bgf] {
    background-color: var(--pin-teal);
}

.legend-swatch.status-serviceplan-new[b-czzaej2bgf] {
    background-color: var(--pin-red);
}

.legend-swatch.status-serviceplan-commited[b-czzaej2bgf] {
    background-color: var(--pin-sky);
}

.legend-swatch.status-serviceplan-active[b-czzaej2bgf] {
    background-color: var(--pin-violet);
}

.legend-swatch.status-serviceplan-pending[b-czzaej2bgf] {
    background-color: var(--pin-orange);
}

/* ServicePlanStatus.ToSuplement counterpart - see the matching .mini-pin/.map-pin rule above for why
   this was previously missing entirely. Used by the pincushion picker's status swatch (issue #63). */
.legend-swatch.status-serviceplan-tosuplement[b-czzaej2bgf] {
    background-color: var(--pin-teal);
}

.legend-swatch-city[b-czzaej2bgf] {
    background-color: var(--map-city);
    width: 8px;
    height: 8px;
}

#map-tooltip-container[b-czzaej2bgf] {
    position: fixed;
    /* Clickable so the popup itself can be clicked (not just the pin underneath it) to navigate to
       the incident/service-plan detail page - see handleTooltipClick() in MapDashboard.razor.js.
       Technician-base popups have no click handler, so pointer-events here is harmless for them. */
    pointer-events: auto;
    z-index: 2000;
    display: none;
    max-width: 260px;
}

/* Tooltip content is injected client-side via JS (not compiled by Blazor), so descendant
   selectors need ::deep to keep matching without the component's scope attribute. */
#map-tooltip-container[b-czzaej2bgf]  .card {
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Only incident/service-plan popups navigate on click (see handleTooltipClick in
   MapDashboard.razor.js); the technician-base popup has no click handler, so it keeps the
   default cursor instead of misleadingly looking clickable. */
#map-tooltip-container[b-czzaej2bgf]  .map-tooltip-clickable {
    cursor: pointer;
}

#map-tooltip-container[b-czzaej2bgf]  .map-tooltip-photo {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Pincushion tray (issue #63): plain CSS position:absolute overlay on .map-canvas-wrapper (which is
   itself position:relative - see above), sitting outside the pannable/zoomable <svg id="map-dashboard-svg">
   entirely so it never moves with svg-pan-zoom regardless of pan/zoom/reset. Below the tooltip's
   z-index (2000) so a hovered pin's popup still draws over it, but above the map/legend chrome. */
.pincushion[b-czzaej2bgf] {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1500;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.pincushion:focus-visible[b-czzaej2bgf] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Height grown 72px -> 81px (issue #65 follow-up), matching the viewBox's own 519 -> 584 unit growth
   (same units-per-px ratio, ~7.2) so the cushion body/seam render at their original size - only the
   restored-to-3.2 mini-pins actually use the extra headroom this creates above the cushion body. */
.pincushion-icon[b-czzaej2bgf] {
    display: block;
    width: 78px;
    height: 81px;
}

/* Flattened to a single solid fill (no gradient/gloss), matching #62's flat-fill pin direction -
   geometry taken from the pincushion_1.svg reference asset attached to issue #63. */
.pincushion-body[b-czzaej2bgf] {
    fill: var(--pincushion-body);
    stroke: var(--pincushion-stroke);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.pincushion-seam[b-czzaej2bgf] {
    fill: none;
    stroke: var(--pincushion-seam);
    stroke-width: 3px;
    stroke-linecap: round;
    opacity: 0.55;
}

/* Plain, invisible click-catcher (no JS) that closes the picker on any outside click without
   navigating anywhere - the picker/pincushion themselves sit above it via z-index and stop the click
   from reaching it (@onclick:stopPropagation on .pincushion; the picker's own buttons handle their
   own clicks directly). */
.pincushion-backdrop[b-czzaej2bgf] {
    position: fixed;
    inset: 0;
    z-index: 1490;
    background: transparent;
}

/* position: fixed (not absolute within .map-canvas-wrapper) so the picker is never clipped by that
   wrapper's own "overflow: hidden" (load-bearing for containing svg-pan-zoom's canvas, so it can't
   just be removed) - a short window/viewport left an absolutely-positioned picker anchored to the
   wrapper's bottom edge growing upward past the wrapper's own top edge and disappearing entirely
   (baler-responsive-reviewer finding, issue #63). top/left are computed in JS from the pincushion
   icon's actual on-screen position (positionPincushionPicker in MapDashboard.razor.js, called from
   OnAfterRenderAsync right after the picker enters the DOM) - the same escape-the-clipping-ancestor
   approach #map-tooltip-container already uses for the hover tooltip. Starts transparent so the
   unpositioned (0,0-anchored) flash before that JS call runs is never visible. */
.pincushion-picker[b-czzaej2bgf] {
    position: fixed;
    z-index: 1500;
    width: 260px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.pincushion-picker.pincushion-picker-positioned[b-czzaej2bgf] {
    opacity: 1;
    transition: opacity 0.1s ease;
}

.pincushion-picker-header[b-czzaej2bgf] {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.pincushion-picker-list[b-czzaej2bgf] {
    list-style: none;
    margin: 0;
    padding: 4px;
}

.pincushion-picker-item[b-czzaej2bgf] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: var(--ink);
}

.pincushion-picker-item:hover[b-czzaej2bgf],
.pincushion-picker-item:focus-visible[b-czzaej2bgf] {
    background: var(--accent-soft);
}

.pincushion-picker-swatch[b-czzaej2bgf] {
    flex-shrink: 0;
}

.pincushion-picker-text[b-czzaej2bgf] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pincushion-picker-title[b-czzaej2bgf] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pincushion-picker-subtitle[b-czzaej2bgf] {
    font-size: 11px;
    color: var(--ink-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Defensive truncation, matching .pincushion-picker-title above - no current ComplaintState/
   ServicePlanStatus value is long enough to actually overflow this (baler-responsive-reviewer
   checked), but nothing stops a future status name from being longer or two words. */
.pincushion-picker-status[b-czzaej2bgf] {
    flex-shrink: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--ink-soft);
}

@media (max-width: 640.98px) {
    .pincushion[b-czzaej2bgf] {
        left: 10px;
        bottom: 10px;
    }

    .pincushion-icon[b-czzaej2bgf] {
        width: 58px;
        height: 61px;
    }

    .pincushion-picker[b-czzaej2bgf] {
        width: 220px;
    }
}

/* Moved from an inline style attribute (issue 101). */
.installation-status-modal[b-czzaej2bgf] {
    background-color: var(--modal-backdrop);
}

/* The picker takes focus when it opens (issue 101); it is a container, not a control, so no ring. */
.pincushion-picker:focus[b-czzaej2bgf] {
    outline: none;
}
/* /Components/Pages/Notifications.razor.rz.scp.css */
/* Notifications (issue 176): the caller's in-app notices, newest first. */
.notifications-page[b-3lpwgc2zh4] {
    color: var(--ink);
    max-width: 760px;
    margin: 0 auto;
}

.btn[b-3lpwgc2zh4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
    white-space: nowrap;
}

.btn-outline[b-3lpwgc2zh4] {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
}

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

.notification + .notification[b-3lpwgc2zh4] {
    border-top: 1px solid var(--line-soft);
}

.notification-button[b-3lpwgc2zh4] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.notification-button:hover[b-3lpwgc2zh4],
.notification-button:focus-visible[b-3lpwgc2zh4] {
    background: var(--surface-hover);
}

.notification-icon[b-3lpwgc2zh4] {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 14px;
}

.notification.warning .notification-icon[b-3lpwgc2zh4] {
    background: var(--warning-soft);
    color: var(--warning-ink);
}

.notification-body[b-3lpwgc2zh4] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.notification-text[b-3lpwgc2zh4] {
    font-size: 13.5px;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
}

.notification.unread .notification-text[b-3lpwgc2zh4] {
    font-weight: 700;
    color: var(--ink);
}

.notification-time[b-3lpwgc2zh4] {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.unread-dot[b-3lpwgc2zh4] {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: var(--accent);
}

.load-more[b-3lpwgc2zh4] {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

/* Touch: 44px targets (issue 176 review). */
@media (pointer: coarse) {
    .btn[b-3lpwgc2zh4] {
        min-height: 44px;
    }
}
/* /Components/Pages/Purchases/New.razor.rz.scp.css */
/* New part request (issue 174): a narrow, phone-first form in two cards, segmented urgency/location controls,
   shop-kind chips and the camera barcode dialog. Shell (header, cards, loading/empty) from the shared components. */
.part-request-page[b-akpw936bvb] {
	color: var(--ink);
	max-width: 760px;
	margin: 0 auto;
}

.btn[b-akpw936bvb],
[b-akpw936bvb] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
}

.btn-outline[b-akpw936bvb],
[b-akpw936bvb] .btn-outline {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.event-summary[b-akpw936bvb] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0 0 14px;
	padding: 10px 14px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 12.5px;
}

.event-title[b-akpw936bvb] {
	font-weight: 700;
}

.event-meta[b-akpw936bvb] {
	color: var(--ink-soft);
	min-width: 0;
	overflow-wrap: anywhere;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.form-grid[b-akpw936bvb] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px 16px;
}

.form-field[b-akpw936bvb] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.form-field.span-2[b-akpw936bvb] {
	grid-column: 1 / -1;
}

.form-label[b-akpw936bvb] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0;
}

.optional[b-akpw936bvb] {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.form-control[b-akpw936bvb] {
	font-size: 13px;
	min-height: 32px;
	padding: 5px 10px;
}

.field-error[b-akpw936bvb] {
	color: var(--danger-ink);
	font-size: 12px;
}

.hint[b-akpw936bvb],
.scan-message[b-akpw936bvb] {
	color: var(--ink-soft);
	font-size: 12px;
}

.scan-row[b-akpw936bvb],
.qty-row[b-akpw936bvb] {
	display: flex;
	gap: 8px;
	min-width: 0;
}

.scan-row .form-control[b-akpw936bvb] {
	flex: 1 1 auto;
	min-width: 0;
}

.btn-scan[b-akpw936bvb] {
	height: 32px;
	flex-shrink: 0;
}

.qty-input[b-akpw936bvb] {
	flex: 1 1 auto;
	min-width: 0;
}

.unit-input[b-akpw936bvb] {
	flex: 0 0 88px;
	min-width: 0;
}

.segmented[b-akpw936bvb] {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
	align-self: flex-start;
	max-width: 100%;
}

.segment[b-akpw936bvb] {
	border: 0;
	border-right: 1px solid var(--line);
	background: transparent;
	color: var(--ink-soft);
	font-size: 12.5px;
	font-weight: 500;
	min-height: 32px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.segment:last-child[b-akpw936bvb] {
	border-right: 0;
}

.segment.active[b-akpw936bvb] {
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-weight: 700;
}

.segment:disabled[b-akpw936bvb] {
	color: var(--ink-faint);
	cursor: not-allowed;
}

.kind-chips[b-akpw936bvb] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip[b-akpw936bvb] {
	display: inline-flex;
	align-items: center;
	/* A kind's name is up to 60 characters: the chip grows instead of spilling over the next row. */
	height: auto;
	min-height: 26px;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
}

.chip:hover[b-akpw936bvb] {
	border-color: var(--accent);
}

.chip.active[b-akpw936bvb] {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-strong);
	font-weight: 600;
}

/* Barcode scanner dialog */
.scanner-backdrop[b-akpw936bvb] {
	position: fixed;
	inset: 0;
	background: var(--modal-backdrop-strong);
	z-index: 1050;
}

.scanner-dialog[b-akpw936bvb] {
	max-height: calc(100dvh - 16px);
	overflow-y: auto;
	position: fixed;
	z-index: 1055;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(480px, calc(100vw - 32px));
	background: var(--surface);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.scanner-head[b-akpw936bvb] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

/* 44px close target; the negative margin keeps the header row at its old height. */
.scanner-head .btn-close[b-akpw936bvb] {
	width: 44px;
	height: 44px;
	padding: 0;
	margin: -10px -10px -10px 0;
}

.scanner-video-wrap[b-akpw936bvb] {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--tooltip-bg);
	aspect-ratio: 4 / 3;
	max-height: calc(100dvh - 120px);
}

.scanner-video[b-akpw936bvb] {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.scanner-frame[b-akpw936bvb] {
	position: absolute;
	inset: 30% 12%;
	border: 2px solid var(--on-color);
	border-radius: 8px;
	pointer-events: none;
}

.scanner-hint[b-akpw936bvb] {
	margin: 0;
	color: var(--ink-soft);
	font-size: 12px;
}

/* Part photo and the AI's reading of it (issue 178). */
.photo-row[b-akpw936bvb] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.photo-thumb img[b-akpw936bvb] {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--line);
}

.photo-pick[b-akpw936bvb] {
	cursor: pointer;
	margin: 0;
}

.ai-reading[b-akpw936bvb] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--ink-soft);
}

.ai-mark[b-akpw936bvb] {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--info-soft);
	color: var(--info-ink);
	font-size: 11.5px;
	font-weight: 500;
}

/* AI chips carry free text (a part number, an answer option): they wrap instead of overflowing a narrow phone. */
.ai-reading .chip[b-akpw936bvb],
.ai-question .chip[b-akpw936bvb] {
	height: auto;
	min-height: 26px;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: left;
	padding-block: 4px;
}

.ai-mark[b-akpw936bvb]  svg {
	margin-top: 2px;
	flex-shrink: 0;
}

.ai-question[b-akpw936bvb] {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-muted);
	min-width: 0;
}

.ai-question-text[b-akpw936bvb] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.other-row[b-akpw936bvb] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.other-row .form-control[b-akpw936bvb] {
	flex: 1 1 160px;
	min-width: 0;
}

/* Below 800px the two-column grid leaves the urgency control too narrow ("This week" wrapped alone). */
@media (max-width: 800px) {
	.form-grid[b-akpw936bvb] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.segmented[b-akpw936bvb] {
		align-self: stretch;
	}

	.segment[b-akpw936bvb] {
		flex: 1 1 0;
		justify-content: center;
		padding: 0 8px;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.btn[b-akpw936bvb],
	[b-akpw936bvb] .btn,
	.btn-scan[b-akpw936bvb],
	.segment[b-akpw936bvb],
	.form-control[b-akpw936bvb] {
		min-height: 44px;
	}

	.chip[b-akpw936bvb] {
		height: auto;
		min-height: 44px;
	}

	.ai-reading .chip[b-akpw936bvb],
	.ai-question .chip[b-akpw936bvb] {
		height: auto;
		min-height: 44px;
	}
}

/* Short screens (phone landscape, keyboard open): the sticky header would cover half the form. */
@media (max-height: 500px) {
	.part-request-page[b-akpw936bvb]  .topbar-sticky {
		position: static;
	}
}
/* /Components/Pages/Purchases/OptionCard.razor.rz.scp.css */
/* One ranked option (issue 175): name and total on top, badges, facts, break-even hint, breakdown, actions. */
.option-card[b-op3kbv9hee] {
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 12px;
	background: var(--surface);
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	list-style: none;
}

.option-card.best[b-op3kbv9hee] {
	border-color: var(--success-line);
}

.option-card.chosen[b-op3kbv9hee] {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-ring);
}

/* Closed when we would get there: still readable, visibly not an option. */
.option-card.greyed[b-op3kbv9hee] {
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.option-card.greyed .opt-total[b-op3kbv9hee] {
	color: var(--ink-soft);
}

/* Wraps on narrow cards: the total drops under the name instead of squeezing it (responsive review, issue 175). */
.opt-top[b-op3kbv9hee] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 4px 10px;
}

.opt-title[b-op3kbv9hee] {
	display: flex;
	flex-direction: column;
	flex: 1 1 12rem;
	min-width: 0;
}

.opt-name[b-op3kbv9hee] {
	font-weight: 700;
	font-size: 13.5px;
	overflow-wrap: anywhere;
}

.opt-place[b-op3kbv9hee] {
	color: var(--ink-soft);
	font-size: 12px;
	overflow-wrap: anywhere;
}

.opt-amount[b-op3kbv9hee] {
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	flex-shrink: 0;
}

.opt-total[b-op3kbv9hee] {
	font-weight: 800;
	font-size: 15px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.opt-delta[b-op3kbv9hee] {
	font-size: 11.5px;
	color: var(--danger-ink);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.opt-delta.muted[b-op3kbv9hee] {
	color: var(--ink-faint);
}

.opt-badges[b-op3kbv9hee] {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.badge[b-op3kbv9hee] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
}

.badge-best[b-op3kbv9hee],
.badge-confirmed[b-op3kbv9hee] {
	background: var(--success-soft);
	color: var(--success-ink);
}

.badge-fastest[b-op3kbv9hee],
.badge-instock[b-op3kbv9hee],
.badge-info[b-op3kbv9hee] {
	background: var(--info-soft);
	color: var(--info-ink);
}

.badge-chosen[b-op3kbv9hee] {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.badge-bought[b-op3kbv9hee] {
	background: var(--status-confirm-bg);
	color: var(--status-confirm-ink);
}

.badge-warn[b-op3kbv9hee] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.badge-unknown[b-op3kbv9hee] {
	background: var(--line-soft);
	color: var(--ink-soft);
}

.opt-facts[b-op3kbv9hee] {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	font-size: 12.5px;
	color: var(--ink-soft);
	min-width: 0;
}

.fact[b-op3kbv9hee] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	overflow-wrap: anywhere;
}

.fact.strong[b-op3kbv9hee] {
	color: var(--ink);
	font-weight: 600;
}

.opt-hint[b-op3kbv9hee] {
	font-size: 12px;
	color: var(--ink-soft);
	padding: 4px 8px;
	border-left: 3px solid var(--line-strong);
	background: var(--surface-muted);
}

/* Issue 176: the seller's version from an inquiry (display only). */
.opt-seller[b-op3kbv9hee] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-size: 12px;
	color: var(--ink);
	padding: 4px 8px;
	border-left: 3px solid var(--info-ink);
	background: var(--info-soft);
}

.opt-seller.contradiction[b-op3kbv9hee] {
	border-left-color: var(--warning-ink);
	background: var(--warning-soft);
}

.seller-status[b-op3kbv9hee] {
	font-weight: 700;
}

.seller-fact[b-op3kbv9hee] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.opt-breakdown summary[b-op3kbv9hee] {
	cursor: pointer;
	font-size: 12px;
	color: var(--accent);
	font-weight: 600;
	width: fit-content;
}

.breakdown-table[b-op3kbv9hee] {
	width: 100%;
	max-width: 440px;
	margin-top: 6px;
	font-size: 12.5px;
	border-collapse: collapse;
}

.breakdown-table th[b-op3kbv9hee] {
	font-weight: 400;
	color: var(--ink-soft);
	padding: 2px 0;
	text-align: left;
}

.breakdown-table td[b-op3kbv9hee] {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	padding: 2px 0 2px 12px;
}

.breakdown-table .total-row th[b-op3kbv9hee],
.breakdown-table .total-row td[b-op3kbv9hee] {
	font-weight: 700;
	color: var(--ink);
	border-top: 1px solid var(--line);
	padding-top: 4px;
}

.breakdown-note[b-op3kbv9hee] {
	font-size: 11px;
	color: var(--ink-faint);
	margin-top: 2px;
}

.opt-actions[b-op3kbv9hee] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.btn[b-op3kbv9hee] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
	border-radius: 6px;
	text-decoration: none;
}

.btn-outline[b-op3kbv9hee] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

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

.btn-choose[b-op3kbv9hee] {
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--on-color);
	margin-left: auto;
}

.btn-choose:hover[b-op3kbv9hee] {
	background: var(--accent-strong);
}

@media (max-width: 640px), (pointer: coarse) {
	.btn[b-op3kbv9hee] {
		min-height: 44px;
	}

	/* 44px touch target: 18px line + 2 × 13px. */
	.opt-breakdown summary[b-op3kbv9hee] {
		padding: 13px 0;
	}
}

@media (max-width: 400px) {
	.btn-choose[b-op3kbv9hee] {
		margin-left: 0;
		width: 100%;
	}
}
/* /Components/Pages/Purchases/Options.razor.rz.scp.css */
/* Where to get it (issues 174, 175): request summary, costs-from line with the workers stepper, banners and the
   grouped option cards (OptionCard). Shell (header, cards, loading/empty) from the shared components. */
.part-options-page[b-89oiyct4fq] {
	color: var(--ink);
	/* Full width up to the max: with only margin: 0 auto the wrapper is fit-content and a long nowrap pill widens it. */
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.btn[b-89oiyct4fq],
[b-89oiyct4fq] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
}

.btn-outline[b-89oiyct4fq],
[b-89oiyct4fq] .btn-outline {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.btn-danger-ghost[b-89oiyct4fq] {
	border: 1px solid var(--danger-line);
	background: var(--surface);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-89oiyct4fq] {
	background: var(--danger-soft);
}

.badge[b-89oiyct4fq],
[b-89oiyct4fq] .badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
}

.badge .dot[b-89oiyct4fq],
[b-89oiyct4fq] .badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

[b-89oiyct4fq] .badge-open {
	background: var(--status-progress-bg);
	color: var(--status-progress-ink);
}

[b-89oiyct4fq] .badge-done {
	background: var(--success-soft);
	color: var(--success-ink);
}

[b-89oiyct4fq] .badge-muted {
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.request-summary[b-89oiyct4fq] {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0 0 12px;
	padding: 10px 14px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 12.5px;
}

.summary-item[b-89oiyct4fq] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.muted[b-89oiyct4fq] {
	color: var(--ink-faint);
}

.search-meta[b-89oiyct4fq] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	color: var(--ink-soft);
	font-size: 12px;
	margin: 0 0 10px;
}

.meta-item[b-89oiyct4fq] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.workers[b-89oiyct4fq] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.workers-label[b-89oiyct4fq] {
	font-weight: 600;
}

.btn-step[b-89oiyct4fq] {
	width: 28px;
	padding: 0;
}

.workers-value[b-89oiyct4fq] {
	min-width: 1.5em;
	text-align: center;
	font-weight: 700;
	color: var(--ink);
	font-size: 13px;
}

.rates-note[b-89oiyct4fq] {
	color: var(--ink-faint);
	font-size: 11.5px;
	margin: -4px 0 10px;
}

.search-note[b-89oiyct4fq] {
	color: var(--ink-soft);
	font-size: 12px;
	margin: -6px 0 10px;
}

/* Page alerts (banners) more compact than the Bootstrap default, so the options stay in view on a phone. */
.part-options-page .alert[b-89oiyct4fq] {
	font-size: 12.5px;
	padding: 8px 12px;
	margin-bottom: 10px;
}

.chosen-panel[b-89oiyct4fq] {
	display: flex;
	/* The actions wrap onto their own row before they squeeze the chosen text (foldable, resized window). */
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid var(--accent);
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 13px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.chosen-panel[b-89oiyct4fq]  svg {
	flex-shrink: 0;
	margin-top: 3px;
}

.chosen-body[b-89oiyct4fq] {
	display: flex;
	flex-direction: column;
	flex: 1 1 240px;
	min-width: 0;
}

.chosen-route[b-89oiyct4fq] {
	font-weight: 400;
	font-size: 12px;
}

/* Issue 177: Record purchase from the chosen option; the recorded request's summary link. */
.chosen-record[b-89oiyct4fq] {
	flex-shrink: 0;
	align-self: center;
}

/* Decision 184b: "I'm going for the part" next to Record purchase. */
.chosen-actions[b-89oiyct4fq] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
	align-self: center;
	margin-left: auto;
}

.fulfilled-alert[b-89oiyct4fq] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

@media (max-width: 640px) {
	.chosen-panel[b-89oiyct4fq] {
		flex-wrap: wrap;
	}

	.chosen-actions[b-89oiyct4fq] {
		width: 100%;
	}

	.chosen-record[b-89oiyct4fq],
	.chosen-trip[b-89oiyct4fq] {
		flex: 1 1 100%;
		width: 100%;
	}
}

.group-hint[b-89oiyct4fq] {
	color: var(--ink-soft);
	font-size: 12px;
	margin: 0 0 8px;
}

.option-list[b-89oiyct4fq] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hint-box[b-89oiyct4fq] {
	margin-top: 4px;
	padding: 10px 14px;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	color: var(--ink-soft);
	font-size: 12.5px;
}

@media (max-width: 640px), (pointer: coarse) {
	.btn[b-89oiyct4fq],
	[b-89oiyct4fq] .btn {
		min-height: 44px;
	}

	.btn-step[b-89oiyct4fq] {
		width: 44px;
	}

	/* The "show the purchase" link of a recorded request: a 44 px target. */
	.fulfilled-alert a[b-89oiyct4fq] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* Short screens (phone landscape, keyboard open): the sticky header would cover half the results. */
@media (max-height: 500px) {
	.part-options-page[b-89oiyct4fq]  .topbar-sticky {
		position: static;
	}
}

/* Phones in portrait: the wrapped header with its actions is too tall to stay pinned over the option cards. */
@media (max-width: 640px) {
	.part-options-page[b-89oiyct4fq]  .topbar-sticky {
		position: static;
	}
}
/* /Components/Pages/Purchases/PurchaseList.razor.rz.scp.css */
/* Purchases list (issue 177). Toolbar, stat cards and table follow BillingStatementList (razor-page-design-system). */
.purchase-list-page[b-o24hh9y5p4] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	--m-card-sub-direction: row;
	--m-card-sub-justify: space-between;
	--m-card-sub-gap: 8px;
}

.btn[b-o24hh9y5p4] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-outline[b-o24hh9y5p4] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	white-space: nowrap;
}

.btn-outline:hover[b-o24hh9y5p4],
.btn-outline:focus-visible[b-o24hh9y5p4] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Toolbar */

.toolbar[b-o24hh9y5p4] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
}

.search-wrap[b-o24hh9y5p4] {
	position: relative;
	max-width: 420px;
}

.search-wrap[b-o24hh9y5p4]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.search-input[b-o24hh9y5p4] {
	height: 32px;
	padding-left: 36px;
	font-size: 12.5px;
}

/* Table */

.table-card[b-o24hh9y5p4] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.purchase-table[b-o24hh9y5p4] {
	width: 100%;
	border-collapse: collapse;
}

.purchase-table thead th[b-o24hh9y5p4] {
	position: sticky;
	top: 0;
	z-index: 1;
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.purchase-table tbody td[b-o24hh9y5p4] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.purchase-table tbody tr:last-child td[b-o24hh9y5p4] { border-bottom: none; }
.purchase-table tbody tr:hover[b-o24hh9y5p4] { background: var(--surface-hover); }

.purchase-table .num[b-o24hh9y5p4] {
	text-align: right;
	white-space: nowrap;
}

.nowrap[b-o24hh9y5p4] {
	white-space: nowrap;
}

.muted[b-o24hh9y5p4] {
	color: var(--ink-soft);
}

.money[b-o24hh9y5p4] {
	font-variant-numeric: tabular-nums;
}

.currency[b-o24hh9y5p4] {
	color: var(--ink-faint);
	font-size: 11px;
}

.number-link[b-o24hh9y5p4],
.source-link[b-o24hh9y5p4] {
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.number-link:hover[b-o24hh9y5p4],
.source-link:hover[b-o24hh9y5p4] {
	text-decoration: underline;
}

.shop-name[b-o24hh9y5p4] {
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* The shop name is the row's main text: never squeezed to a word per line. */
.shop-cell[b-o24hh9y5p4] {
	min-width: 200px;
}

/* "Reimbursed 2026-10-18" may wrap; the Mark reimbursed button stays on one line. */
.reimburse-cell[b-o24hh9y5p4] {
	white-space: normal;
}

.reimburse-cell .btn[b-o24hh9y5p4] {
	white-space: nowrap;
}

.pill-stock[b-o24hh9y5p4] {
	display: inline-flex;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: var(--radius-pill);
	background: var(--info-soft);
	color: var(--info-ink);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.receipt-link[b-o24hh9y5p4] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	color: var(--ink-soft);
	vertical-align: middle;
}

.receipt-link:hover[b-o24hh9y5p4],
.receipt-link:focus-visible[b-o24hh9y5p4] {
	color: var(--accent);
}

.status-pill[b-o24hh9y5p4] {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

a.status-pill:hover[b-o24hh9y5p4],
a.status-pill:focus-visible[b-o24hh9y5p4] {
	text-decoration: underline;
}

.pill-issued[b-o24hh9y5p4] { background: var(--success-soft); color: var(--success-ink); }
.pill-draft[b-o24hh9y5p4] { background: var(--warning-soft); color: var(--warning-ink); }
.pill-unbilled[b-o24hh9y5p4] { background: var(--surface-muted); color: var(--ink-soft); }

.unbilled-note[b-o24hh9y5p4] {
	display: block;
	margin-top: 2px;
	color: var(--warning-ink);
	font-size: 11px;
}

.to-reimburse[b-o24hh9y5p4] {
	color: var(--warning-ink);
	font-weight: 600;
}

.btn-load-more[b-o24hh9y5p4] {
	min-width: 160px;
}

/* Mobile cards */

.m-card-sub span[b-o24hh9y5p4] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub span:last-child[b-o24hh9y5p4] {
	flex-shrink: 0;
}

.m-card-meta[b-o24hh9y5p4] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

@media (max-width: 1400px) {
	.toolbar.mobile-collapsed[b-o24hh9y5p4] {
		display: none;
	}

	.search-wrap[b-o24hh9y5p4] {
		max-width: none;
	}
}

/* Touch targets on a phone. */
@media (max-width: 640px), (pointer: coarse) {
	.search-input[b-o24hh9y5p4],
	.btn[b-o24hh9y5p4] {
		min-height: 44px;
	}

	.btn-load-more[b-o24hh9y5p4] {
		min-height: 44px;
	}
}

/* Full width only on a narrow screen (a touch laptop at 1440 px keeps the centred button). */
@media (max-width: 640px) {
	.btn-load-more[b-o24hh9y5p4] {
		width: 100%;
	}
}
/* /Components/Pages/Purchases/Record.razor.rz.scp.css */
/* Record purchase (issue 177): a narrow, phone-first form in cards (receipt, lines, payment, Bill as, trip, notes) and,
   once recorded, a read-only summary. Shell (header, cards, loading/empty) from the shared components. */
.record-page[b-ur12fkx9dl] {
	color: var(--ink);
	/* Full width up to the max: with only margin: 0 auto the wrapper is fit-content and a long nowrap pill widens it. */
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}

.btn[b-ur12fkx9dl],
[b-ur12fkx9dl] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
}

.btn-outline[b-ur12fkx9dl],
[b-ur12fkx9dl] .btn-outline {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.btn-icon[b-ur12fkx9dl] {
	/* A 32 px target: the remove button sits among inputs on a phone. */
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	border-radius: 6px;
}

.btn-icon:hover[b-ur12fkx9dl],
.btn-icon:focus-visible[b-ur12fkx9dl] {
	border-color: var(--danger-ink);
	color: var(--danger-ink);
}

.actions[b-ur12fkx9dl] {
	display: flex;
	gap: 8px;
}

.badge[b-ur12fkx9dl] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
}

.badge-done[b-ur12fkx9dl] {
	background: var(--success-soft);
	color: var(--success-ink);
}

.badge-unknown[b-ur12fkx9dl] {
	background: var(--warning-soft);
	color: var(--warning-ink);
	align-self: flex-start;
	/* Bootstrap's .badge is nowrap: the estimated-route sentence overflowed below 300px. */
	white-space: normal;
	max-width: 100%;
	text-align: left;
}

.part-summary[b-ur12fkx9dl] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0 0 14px;
	padding: 10px 14px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 12.5px;
}

.part-name[b-ur12fkx9dl] {
	font-weight: 700;
	min-width: 0;
	overflow-wrap: anywhere;
}

.center-row[b-ur12fkx9dl] {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.form-field[b-ur12fkx9dl] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.form-label[b-ur12fkx9dl] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0;
}

.optional[b-ur12fkx9dl] {
	/* Blazor drops the whitespace before it: "(CZK) (optional)", not "(CZK)(optional)". */
	margin-left: 4px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.form-control[b-ur12fkx9dl],
.form-select[b-ur12fkx9dl] {
	font-size: 13px;
	min-height: 32px;
	padding: 5px 10px;
}

/* Room for Bootstrap's chevron, sized as in Field.razor.css, so it never sits on the text. */
.form-select[b-ur12fkx9dl] {
	padding-right: 28px;
	background-position: right 8px center;
	background-size: 14px 11px;
}

/* Notices (statement already on the event) in the page's small type, as on Options. */
.alert[b-ur12fkx9dl] {
	font-size: 12.5px;
}

.form-control[readonly][b-ur12fkx9dl] {
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.field-error[b-ur12fkx9dl] {
	color: var(--danger-ink);
	font-size: 12px;
}

.hint[b-ur12fkx9dl] {
	color: var(--ink-soft);
	font-size: 12px;
	margin: 6px 0 0;
}

.muted[b-ur12fkx9dl] {
	color: var(--ink-soft);
}

.money[b-ur12fkx9dl] {
	font-variant-numeric: tabular-nums;
}

/* Receipt */
.receipt-row[b-ur12fkx9dl] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.receipt-thumb img[b-ur12fkx9dl] {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--line);
}

.receipt-pick[b-ur12fkx9dl] {
	cursor: pointer;
	margin: 0;
}

/* The file input is visually hidden, so keyboard focus on it is shown on its label (the same ring as .btn:focus). */
.receipt-row:has(input:focus-visible) .receipt-pick[b-ur12fkx9dl] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

.receipt-pick.disabled[b-ur12fkx9dl] {
	pointer-events: none;
	opacity: 0.6;
}

/* Lines */
.line-list[b-ur12fkx9dl] {
	list-style: none;
	margin: 10px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.line-item[b-ur12fkx9dl] {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--surface);
}

.line-head[b-ur12fkx9dl] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.line-no[b-ur12fkx9dl] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.kind-select[b-ur12fkx9dl] {
	width: auto;
	max-width: 100%;
	flex: 0 1 auto;
}

.line-head .btn-icon[b-ur12fkx9dl] {
	flex-shrink: 0;
	margin-left: auto;
}

.line-grid[b-ur12fkx9dl],
.trip-grid[b-ur12fkx9dl] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px 14px;
}

.line-grid .span-2[b-ur12fkx9dl] {
	grid-column: 1 / -1;
}

.qty-row[b-ur12fkx9dl] {
	display: flex;
	gap: 8px;
	min-width: 0;
}

.qty-input[b-ur12fkx9dl] {
	flex: 1 1 auto;
	min-width: 0;
}

.unit-input[b-ur12fkx9dl] {
	flex: 0 0 80px;
	min-width: 0;
}

.line-total-field[b-ur12fkx9dl] {
	justify-content: flex-end;
}

.line-total[b-ur12fkx9dl] {
	font-size: 14px;
	font-weight: 700;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
}

.total-row[b-ur12fkx9dl] {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	font-size: 13px;
}

.total-row strong[b-ur12fkx9dl] {
	font-size: 15px;
	white-space: nowrap;
}

/* Segmented controls (payment, Bill as) */
.segmented[b-ur12fkx9dl] {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
	max-width: 100%;
	/* Only as wide as its segments inside a flex column (the 640px rule below makes it full width on phones). */
	align-self: flex-start;
}

.segment[b-ur12fkx9dl] {
	border: 0;
	border-right: 1px solid var(--line);
	background: transparent;
	color: var(--ink-soft);
	font-size: 12.5px;
	font-weight: 500;
	min-height: 32px;
	padding: 0 14px;
	cursor: pointer;
}

.segment:focus-visible[b-ur12fkx9dl] {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--accent);
}

.segment:last-child[b-ur12fkx9dl] {
	border-right: 0;
}

.segment.active[b-ur12fkx9dl] {
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-weight: 700;
}

.paid-field[b-ur12fkx9dl] {
	margin-top: 12px;
	max-width: 280px;
}

/* Trip */
.check-row[b-ur12fkx9dl] {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin: 0 0 8px;
	cursor: pointer;
}

.check-row .form-check-input[b-ur12fkx9dl] {
	margin: 0;
	flex-shrink: 0;
}

.trip-grid[b-ur12fkx9dl] {
	margin: 8px 0;
}

.workers-label[b-ur12fkx9dl] {
	margin-top: 10px;
}

.worker-list[b-ur12fkx9dl] {
	display: flex;
	flex-direction: column;
	margin-top: 6px;
}

/* Summary */
.facts[b-ur12fkx9dl] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 16px;
	margin: 0 0 12px;
}

.fact dt[b-ur12fkx9dl] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.fact dd[b-ur12fkx9dl] {
	margin: 2px 0 0;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.fact.wide[b-ur12fkx9dl] {
	grid-column: 1 / -1;
}

.summary-lines[b-ur12fkx9dl] {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.summary-line[b-ur12fkx9dl] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 4px 14px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12.5px;
}

.line-desc[b-ur12fkx9dl] {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
}

/* The part number after the description ("Ložisko 1160 · 175-…"); Blazor drops the whitespace before the span. */
.line-desc .muted[b-ur12fkx9dl] {
	margin-left: 4px;
}

/* Own stock: the item's name is not editable, so it is shown as wrapped text instead of a one-line read-only input. */
.static-value[b-ur12fkx9dl] {
	margin: 0;
	padding: 5px 10px;
	min-height: 32px;
	font-size: 13px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-muted);
	color: var(--ink-soft);
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.line-qty[b-ur12fkx9dl] {
	color: var(--ink-soft);
	white-space: nowrap;
}

.summary-line .line-total[b-ur12fkx9dl] {
	font-size: 12.5px;
	min-height: 0;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.line-grid[b-ur12fkx9dl],
	.trip-grid[b-ur12fkx9dl] {
		grid-template-columns: minmax(0, 1fr);
	}

	.segmented[b-ur12fkx9dl] {
		display: flex;
		align-self: stretch;
	}

	.segment[b-ur12fkx9dl] {
		flex: 1 1 0;
		padding: 0 8px;
	}

	.summary-line[b-ur12fkx9dl] {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.summary-line .line-desc[b-ur12fkx9dl] {
		grid-column: 1 / -1;
	}

	.paid-field[b-ur12fkx9dl] {
		max-width: none;
	}

	.replace-actions[b-ur12fkx9dl] {
		width: 100%;
	}

	.replace-actions > *[b-ur12fkx9dl] {
		flex: 1 1 auto;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.btn[b-ur12fkx9dl],
	[b-ur12fkx9dl] .btn,
	.btn-icon[b-ur12fkx9dl],
	.segment[b-ur12fkx9dl],
	.form-control[b-ur12fkx9dl],
	.form-select[b-ur12fkx9dl] {
		min-height: 44px;
	}

	.btn-icon[b-ur12fkx9dl] {
		width: 44px;
	}

	.check-row[b-ur12fkx9dl] {
		min-height: 44px;
		margin: 0;
	}
}

/* Short screens (phone landscape, keyboard open) and phones in portrait: the sticky header would cover half the form
   (as on Shop and Options). */
@media (max-height: 500px), (max-width: 640px) {
	.record-page[b-ur12fkx9dl]  .topbar-sticky {
		position: static;
	}
}

/* The AI's reading of the receipt (issue 178). */
.ai-status[b-ur12fkx9dl] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--info-ink);
}

.ai-status[b-ur12fkx9dl]  svg {
	margin-top: 2px;
	flex-shrink: 0;
}

.replace-prompt[b-ur12fkx9dl],
.retake-prompt[b-ur12fkx9dl] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid var(--warning-line);
	border-radius: 8px;
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 13px;
}

.replace-actions[b-ur12fkx9dl] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hint.warn[b-ur12fkx9dl] {
	color: var(--warning-ink);
}

/* Issue 206 (decision B2): the receipt prints no quantity; one tap sets 1 */
.qty-not-read[b-ur12fkx9dl] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 6px;
}

.qty-not-read .hint[b-ur12fkx9dl] {
	margin: 0;
}

.qty-chip[b-ur12fkx9dl] {
	padding: 2px 12px;
	border-radius: 999px;
	font-size: 13px;
}

/* Compact on a desktop mouse; a phone or touch screen keeps the 44 px targets of the rule further up. */
@media (min-width: 641px) and (pointer: fine) {
	.qty-chip[b-ur12fkx9dl] {
		min-height: 32px;
	}
}

/* Issue 206: what the receipt reading used, a quiet line under the AI status (indented to its text) */
.knowledge-note[b-ur12fkx9dl] {
	margin-top: 2px;
	padding-left: 18px;
}

/* Issue 206: the price-list cross-check of one line, a suggestion applied only on a click. The text and the dismiss x
   share the first row, the buttons get a row of their own, so the x stays put however the text wraps. */
.pricelist-hint[b-ur12fkx9dl] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 10px;
	margin-top: 8px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--info-soft);
	color: var(--info-ink);
	font-size: 12.5px;
}

.pricelist-hint.is-confirmed[b-ur12fkx9dl] {
	border-color: var(--success-line);
	background: var(--success-soft);
	color: var(--success-ink);
}

.pricelist-text[b-ur12fkx9dl] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	overflow-wrap: break-word;
}

.pricelist-text[b-ur12fkx9dl]  svg {
	flex-shrink: 0;
}

.pricelist-dismiss[b-ur12fkx9dl] {
	justify-self: end;
}

.pricelist-actions[b-ur12fkx9dl] {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}

/* A long part number wraps inside its button instead of pushing the page sideways. */
.pricelist-actions .btn-sm[b-ur12fkx9dl] {
	max-width: 100%;
	min-width: 0;
	height: auto;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: start;
}

/* Compact on a desktop mouse; a phone or touch screen keeps the 44 px targets of the rule further up. */
@media (min-width: 641px) and (pointer: fine) {
	.pricelist-actions .btn-sm[b-ur12fkx9dl] {
		min-height: 32px;
	}
}

/* Decision 180: which own-stock item it is (its import profile, or entered by hand) */
.stock-source[b-ur12fkx9dl] {
	margin: 0 0 8px;
}
/* /Components/Pages/Purchases/Shop.razor.rz.scp.css */
/* Ask the shop (issue 176): mobile first. Call + "also e-mail the part details", pick-up time, Navigate, the answer
   after the call and the inquiry timeline. Shell (header, cards, loading/empty) from the shared components. */
.shop-page[b-hcflbbxq7l] {
    color: var(--ink);
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
}

.btn[b-hcflbbxq7l],
[b-hcflbbxq7l] .btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-outline[b-hcflbbxq7l],
[b-hcflbbxq7l] .btn-outline {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
}

.btn-call[b-hcflbbxq7l] {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--on-color);
    text-decoration: none;
}

.btn-call:hover[b-hcflbbxq7l],
.btn-call:focus-visible[b-hcflbbxq7l] {
    background: var(--accent-strong);
    color: var(--on-color);
}

.badge[b-hcflbbxq7l],
[b-hcflbbxq7l] .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

[b-hcflbbxq7l] .badge-ok {
    background: var(--success-soft);
    color: var(--success-ink);
}

[b-hcflbbxq7l] .badge-bad {
    background: var(--danger-soft);
    color: var(--danger-ink);
}

[b-hcflbbxq7l] .badge-info {
    background: var(--info-soft);
    color: var(--info-ink);
}

[b-hcflbbxq7l] .badge-muted,
[b-hcflbbxq7l] .badge-unknown {
    background: var(--line-soft);
    color: var(--ink-soft);
}

.part-summary[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    margin: 4px 0 14px;
    font-size: 13px;
    color: var(--ink-soft);
}

.part-name[b-hcflbbxq7l] {
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.pickup[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 12px;
}

.pickup .form-label[b-hcflbbxq7l] {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.pickup-input[b-hcflbbxq7l] {
    width: 120px;
}

.call-row[b-hcflbbxq7l],
.navigate-row[b-hcflbbxq7l],
.answer-row[b-hcflbbxq7l],
.resend-row[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.navigate-row[b-hcflbbxq7l] {
    margin-top: 14px;
}

.resend-row[b-hcflbbxq7l] {
    margin-bottom: 10px;
}

.email-toggle[b-hcflbbxq7l] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    min-height: 44px;
}

.email-toggle.disabled[b-hcflbbxq7l] {
    color: var(--ink-faint);
}

.hint[b-hcflbbxq7l] {
    display: block;
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.hint.warn[b-hcflbbxq7l] {
    color: var(--warning-ink);
}

.btn-answer[b-hcflbbxq7l] {
    flex: 1 1 140px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}

.btn-answer.confirmed[b-hcflbbxq7l] {
    border-color: var(--success-line);
    color: var(--success-ink);
}

.btn-answer.not-available[b-hcflbbxq7l] {
    border-color: var(--danger-line);
    color: var(--danger-ink);
}

.btn-answer.active[b-hcflbbxq7l] {
    background: var(--success-soft);
}

.btn-answer.calls-back.active[b-hcflbbxq7l] {
    background: var(--info-soft);
}

.timeline[b-hcflbbxq7l] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-item[b-hcflbbxq7l] {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
}

.timeline-item:first-child[b-hcflbbxq7l] {
    border-top: 0;
}

.timeline-item.bad .timeline-title[b-hcflbbxq7l] {
    color: var(--danger-ink);
}

.timeline-item.reply .timeline-title[b-hcflbbxq7l] {
    font-weight: 700;
}

.timeline-time[b-hcflbbxq7l] {
    flex: 0 0 72px;
    min-width: 0;
    color: var(--ink-faint);
    font-size: 12px;
}

.timeline-body[b-hcflbbxq7l] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.seller-facts[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.fact[b-hcflbbxq7l] {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
}

.summary[b-hcflbbxq7l] {
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.ai-mark[b-hcflbbxq7l] {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    color: var(--ink-faint);
}

.ai-mark[b-hcflbbxq7l]  svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.reply-text summary[b-hcflbbxq7l] {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
}

.reply-text p[b-hcflbbxq7l] {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
}

/* Short landscape screens and phones in portrait: the header is too tall to stay pinned over the cards (as on Options). */
@media (max-height: 500px), (max-width: 640px) {
    .shop-page[b-hcflbbxq7l]  .topbar-sticky {
        position: static;
    }
}

/* Touch: 44px targets for every button (Navigate included) and the pick-up time; a roomier reply toggle. */
@media (pointer: coarse) {
    .btn[b-hcflbbxq7l],
    [b-hcflbbxq7l] .btn {
        min-height: 44px;
    }

    .pickup-input[b-hcflbbxq7l] {
        min-height: 44px;
    }

    .reply-text summary[b-hcflbbxq7l] {
        padding: 13px 0;
    }
}

@media (max-width: 480px) {
    .btn-call[b-hcflbbxq7l] {
        width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Issue 177: Record purchase after Confirmed. */
.record-row[b-hcflbbxq7l] {
	display: flex;
	margin-top: 10px;
}

@media (max-width: 640px) {
	.record-row .btn[b-hcflbbxq7l] {
		width: 100%;
	}
}

/* Dictate and the agreed terms after the call (issue 178). */
.dictate[b-hcflbbxq7l] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.dictate-disclosure[b-hcflbbxq7l] {
    margin: 0;
}

.dictate-row[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn-recording[b-hcflbbxq7l] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--danger-soft);
    border: 1px solid var(--danger-line);
    color: var(--danger-ink);
    font-weight: 600;
}

.recording-state[b-hcflbbxq7l] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger-ink);
    font-variant-numeric: tabular-nums;
}

.rec-dot[b-hcflbbxq7l] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger-ink);
    animation: rec-pulse-b-hcflbbxq7l 1.2s ease-in-out infinite;
}

@keyframes rec-pulse-b-hcflbbxq7l {
    50% {
        opacity: .3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rec-dot[b-hcflbbxq7l] {
        animation: none;
    }
}

.transcript[b-hcflbbxq7l] {
    margin: 0;
    min-width: 0;
}

.transcript blockquote[b-hcflbbxq7l] {
    margin: 4px 0 0;
    padding: 8px 10px;
    border-left: 3px solid var(--line-strong);
    background: var(--surface-muted);
    font-size: 13px;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terms[b-hcflbbxq7l] {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    min-width: 0;
}

.terms legend[b-hcflbbxq7l] {
    float: none;
    width: auto;
}

.optional[b-hcflbbxq7l] {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-faint);
}

.terms-grid[b-hcflbbxq7l] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}

/* Labels of the terms and the transcript look like the New page's field labels. */
.terms .form-label[b-hcflbbxq7l],
.transcript .form-label[b-hcflbbxq7l] {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0;
}

.terms legend.form-label[b-hcflbbxq7l] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.terms .form-control[b-hcflbbxq7l] {
    font-size: 13px;
}

.transcript .form-label .ai-mark[b-hcflbbxq7l] {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.terms-grid .form-field[b-hcflbbxq7l] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.segmented[b-hcflbbxq7l] {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    align-self: flex-start;
    max-width: 100%;
}

.segment[b-hcflbbxq7l] {
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    min-height: 30px;
    padding: 0 12px;
    cursor: pointer;
}

.segment:last-child[b-hcflbbxq7l] {
    border-right: 0;
}

.segment.active[b-hcflbbxq7l] {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
}

.field-error[b-hcflbbxq7l] {
    color: var(--danger-ink);
    font-size: 12px;
}

.btn-answer.suggested[b-hcflbbxq7l] {
    box-shadow: 0 0 0 2px var(--accent);
}

/* Three terms side by side only on a wide card; below 800px one per row. */
@media (max-width: 800px) {
    .terms-grid[b-hcflbbxq7l] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (pointer: coarse) {
    .terms .form-control[b-hcflbbxq7l],
    .segment[b-hcflbbxq7l] {
        min-height: 44px;
    }
}
/* /Components/Pages/RalCodes/RalCodeDetail.razor.rz.scp.css */
.ral-code-detail-page[b-5svzx0j8os] {
	color: var(--ink);
}

.eyebrow[b-5svzx0j8os] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-5svzx0j8os] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-5svzx0j8os] {
	color: var(--accent);
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-5svzx0j8os] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-5svzx0j8os] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-5svzx0j8os] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.actions[b-5svzx0j8os] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-5svzx0j8os] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-5svzx0j8os],
[b-5svzx0j8os] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-5svzx0j8os] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-5svzx0j8os] {
	background: var(--danger-soft);
}

.btn-outline[b-5svzx0j8os] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-5svzx0j8os] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Small functional icons (pencil) rendered as inline SVG atoms instead of
   an icon font - see razor-page-design-system's Icons section. Reaching a
   child icon component's rendered <svg> from this page's scoped CSS
   requires ::deep. */
[b-5svzx0j8os] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Layout */

.card[b-5svzx0j8os] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-5svzx0j8os] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-5svzx0j8os] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link. */
.card-head-row[b-5svzx0j8os] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-5svzx0j8os] {
	margin-bottom: 0;
}

.link-btn[b-5svzx0j8os] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-5svzx0j8os] {
	text-decoration: underline;
}

.field-row[b-5svzx0j8os] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-5svzx0j8os] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-5svzx0j8os] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field[b-5svzx0j8os] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT a
   bordered/backgrounded box. The Code field's read-only text is colored
   by its own swatch RGB (see "Enrich read-only display with real domain
   data") via an inline style, same technique as MachineDetail's RAL Code
   field. */
.field-value[b-5svzx0j8os] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText/InputNumber controls default to Bootstrap's ~38px control
   height - match them to the .field-value footprint above (~32px, 12.5px
   type) so editable and read-only fields read as the same density.
   InputText/InputNumber are framework components, not plain HTML written
   in this page - their rendered <input> never gets this page's
   CSS-isolation scope attribute, so reaching them requires ::deep. */
.field[b-5svzx0j8os]  .form-control {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

/* Code field: text input + "Open RAL Picker" button (IconPalette) sharing one row */

.code-input-group[b-5svzx0j8os] {
	display: flex;
	gap: 8px;
}

.code-input-group input[b-5svzx0j8os] {
	flex: 1;
	min-width: 0;
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

.btn-icon[b-5svzx0j8os] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.btn-icon:hover[b-5svzx0j8os] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Live color preview: swatch + native color input side by side, matching the
   38px height of the other fields' text inputs in the same row. The swatch's
   background is per-record RGB data, so - like the list page's swatches -
   it can only be set inline, never via a CSS class. */

.color-preview-row[b-5svzx0j8os] {
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 32px;
}

.color-swatch[b-5svzx0j8os] {
	flex: 1;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--line);
	box-sizing: border-box;
}

.color-native-input[b-5svzx0j8os] {
	width: 44px;
	height: 32px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	box-sizing: border-box;
}

/* RAL Picker modal: Bootstrap's modal/modal-dialog/modal-content wrapper is
   kept as-is (same convention as ComplaintDetail's and AddressPickerModal's
   modals - none of them restyle the Bootstrap wrapper). Only the swatch
   grid content inside modal-body is restyled here, using this page's own
   CSS custom properties instead of the many inline style="..." attributes
   the pre-redesign version used for structure/spacing (the per-swatch
   background/text color still has to be inline - it's per-record RGB data,
   not a fixed design token). */

.picker-search-wrap[b-5svzx0j8os] {
	position: relative;
	margin-bottom: 16px;
}

.picker-search-wrap[b-5svzx0j8os]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.picker-search-input[b-5svzx0j8os] {
	padding-left: 36px;
}

.picker-grid[b-5svzx0j8os] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.picker-swatch[b-5svzx0j8os] {
	width: 120px;
	height: 80px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12.5px;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
	padding: 8px;
	box-sizing: border-box;
}

.picker-swatch:hover[b-5svzx0j8os] {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

.picker-swatch-category[b-5svzx0j8os] {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.picker-swatch-code[b-5svzx0j8os] {
	margin-top: 2px;
}

@media (max-width: 767.98px) {
	.picker-swatch[b-5svzx0j8os] {
		width: 100px;
		height: 60px;
	}
}

/* Same breakpoint rationale as ComplaintDetail.razor.css/DistributorDetail.razor.css:
   1400px is wide enough that resizing an ordinary desktop browser window down
   (not just real phones/foldables) switches this page to its compact
   single-column layout too. */

@media (max-width: 1400px) {
	.field-row[b-5svzx0j8os] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row.cols-4[b-5svzx0j8os] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topbar[b-5svzx0j8os] {
		flex-direction: column;
	}

	.actions[b-5svzx0j8os] {
		width: 100%;
	}

	.actions .btn[b-5svzx0j8os] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-5svzx0j8os] {
		padding: 12px;
	}
}

@media (max-width: 349px) {
	.topbar[b-5svzx0j8os] {
		padding: 10px 12px;
	}

	.title-row h1[b-5svzx0j8os] {
		font-size: 18px;
	}

	.actions .btn[b-5svzx0j8os] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

	.field-row.cols-4[b-5svzx0j8os] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-5svzx0j8os] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Moved from an inline style attribute (issue 101). */
.ral-picker-modal[b-5svzx0j8os] {
	background-color: var(--modal-backdrop);
}
/* /Components/Pages/RalCodes/RalCodeList.razor.rz.scp.css */
.ral-codes-page[b-naph9mqolt] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-naph9mqolt] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-naph9mqolt],
[b-naph9mqolt] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New", row "Open", "Load more") matches
   the compact density of the rest of the page. "+ New" is a <NavLink> (a
   framework component, not plain HTML written in this page), so its
   rendered <a> never gets this page's scope attribute - crossing that
   boundary requires ::deep. */
.btn[b-naph9mqolt],
[b-naph9mqolt] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar: just Search + a total-count readout - RalCode has no
   state/priority-style dimension worth a stat-card grid or chip filters (see
   razor-page-design-system's guidance to skip stat cards rather than invent
   fake categories). Mirrors DistributorList.razor.css. */

.toolbar[b-naph9mqolt] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-naph9mqolt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-naph9mqolt] {
	flex: 1 1 260px;
	max-width: 420px;
}

.search-wrap[b-naph9mqolt] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-naph9mqolt]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, pencil, sort direction) rendered as inline
   SVG instead of an icon font - see razor-page-design-system's Icons
   section. currentColor lets each pick up its surrounding text/link color
   automatically. icon-plus/icon-pencil/sort-icon are CssClass values handed
   to child icon components, so (like icon-search above) reaching their
   rendered <svg> requires ::deep. */
[b-naph9mqolt] .icon-plus,
[b-naph9mqolt] .icon-pencil,
[b-naph9mqolt] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-naph9mqolt] {
	padding-left: 36px;
}

.total-count[b-naph9mqolt] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* Table */

.table-card[b-naph9mqolt] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (ral-codes-page is a flex column
	   that fills the viewport) instead of only being as tall as its rows,
	   then scroll its own content - both horizontally (wide table) and
	   vertically (many rows) - only when it doesn't fit, rather than the
	   whole page scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.ral-codes-table[b-naph9mqolt] {
	width: 100%;
	border-collapse: collapse;
}

.ral-codes-table thead th[b-naph9mqolt] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.ral-codes-table thead tr:first-child th:first-child[b-naph9mqolt] { border-top-left-radius: 12px; cursor: default; }
.ral-codes-table thead tr:first-child th:last-child[b-naph9mqolt] { border-top-right-radius: 12px; cursor: default; }
.ral-codes-table tbody tr:last-child td:first-child[b-naph9mqolt] { border-bottom-left-radius: 12px; }
.ral-codes-table tbody tr:last-child td:last-child[b-naph9mqolt] { border-bottom-right-radius: 12px; }

.ral-codes-table tbody td[b-naph9mqolt] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.ral-codes-table tbody tr:last-child td[b-naph9mqolt] { border-bottom: none; }
.ral-codes-table tbody tr:hover[b-naph9mqolt] { background: var(--surface-hover); }
.ral-codes-table tbody tr.clickable-row[b-naph9mqolt] { cursor: pointer; }

.cell-category[b-naph9mqolt] { font-weight: 600; }
.cell-code[b-naph9mqolt] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-rgb[b-naph9mqolt] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Color swatch - the whole point of this page, so it stays prominent in
   both the table row and the mobile card below. The background color is
   per-row data (any RGB combination), so it can only be set inline - never
   driven by a CSS class the way status colors are elsewhere in the app. */

.swatch[b-naph9mqolt] {
	display: inline-block;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--line);
}

/* Row actions */

.row-actions[b-naph9mqolt] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-naph9mqolt] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-naph9mqolt] {
	display: none;
}

.m-card[b-naph9mqolt] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-naph9mqolt] {
	border-color: var(--accent);
}

.m-card-top[b-naph9mqolt] {
	display: flex;
	align-items: center;
	gap: 10px;
}

.m-card-swatch[b-naph9mqolt] {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--line);
	flex-shrink: 0;
}

.m-card-title[b-naph9mqolt] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-naph9mqolt] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 6px;
}

.m-card-sub span[b-naph9mqolt] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view. Breakpoint is 1400px -
   deliberately much wider than any phone or opened foldable (which top out
   around 430px / 900px respectively) - it also covers an ordinary desktop
   browser window simply resized narrower, so shrinking the window itself
   switches to the compact card view instead of squeezing the desktop table
   layout. See ComplaintList.razor.css / DistributorList.razor.css. */

@media (max-width: 1400px) {
	.topbar[b-naph9mqolt] {
		align-items: flex-start;
	}

	.btn-new[b-naph9mqolt],
	[b-naph9mqolt] .btn-new {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-naph9mqolt] {
		display: none;
	}

	.mobile-list[b-naph9mqolt] {
		display: block;
	}

	.toolbar-row[b-naph9mqolt] {
		gap: 10px 16px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-naph9mqolt] {
		padding: 14px 14px;
	}

	.m-card[b-naph9mqolt] {
		padding: 10px 12px;
	}

	.m-card-title[b-naph9mqolt] {
		font-size: 13.5px;
	}

	.btn-new[b-naph9mqolt],
	[b-naph9mqolt] .btn-new {
		font-size: 12.5px;
	}

	.total-count[b-naph9mqolt] {
		font-size: 12px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-swatch[b-naph9mqolt] {
	width: 64px;
}

.col-red[b-naph9mqolt] {
	width: 70px;
}

.col-green[b-naph9mqolt] {
	width: 70px;
}

.col-blue[b-naph9mqolt] {
	width: 70px;
}

.col-actions[b-naph9mqolt] {
	width: 96px;
}
/* /Components/Pages/ServicePlanning/Absence.razor.rz.scp.css */
.hover-available:hover[b-njraplfo2v] {
	background-color: rgba(25, 135, 84, 0.08) !important;
	border-color: rgba(25, 135, 84, 0.25) !important;
}

/* Absence.Status visual treatment: a small corner status-chip overlaid on the
   Type-colored badge, reusing razor-page-design-system's badge-token hex
   values verbatim (see docs/design/absence-mobile/31-1-absence-weekly-timetable-mobile-design.md).
   Approved has no chip at all - the absence of a chip is itself the
   "approved/normal" signal. */
.absence-badge[b-njraplfo2v] {
	position: relative;
}

/* AbsenceType.Other (issue 95): legacy rows whose free-text type could not be mapped -
   a neutral badge, token colours only. */
.absence-type-other[b-njraplfo2v] {
	background: var(--line-soft);
	color: var(--ink-soft);
}

.status-chip[b-njraplfo2v] {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 15px;
	height: 15px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	line-height: 1;
	border: 1.5px solid var(--surface);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.15);
}

.status-chip-pending[b-njraplfo2v] { background: var(--status-progress-bg); color: var(--status-progress-ink); } /* == .badge-progress */
.status-chip-rejected[b-njraplfo2v] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); } /* == .badge-rejected */

/* Legend preview: the same .status-chip classes/colors as the grid, but shown
   as a small standalone inline icon instead of a corner overlay - .legend-chip-demo
   supplies the positioned box the (normally absolutely-positioned) chip needs. */
.legend-chip-demo[b-njraplfo2v] {
	position: relative;
	display: inline-flex;
	width: 15px;
	height: 15px;
	vertical-align: -3px;
}

.legend-chip-demo .status-chip[b-njraplfo2v] {
	position: static;
	border: none;
	box-shadow: none;
}

/* Mobile agenda cards: one card per employee, hidden on desktop and shown
   instead of the table below 1024px (see media query below). Reuses the
   .mobile-list/.m-card pattern already established in ComplaintList.razor.css. */

.mobile-list[b-njraplfo2v] {
	display: none;
}

.m-card[b-njraplfo2v] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
}

.m-card-title[b-njraplfo2v] {
	min-width: 0;
	font-weight: 700;
	color: var(--ink);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-njraplfo2v] {
	min-width: 0;
	color: var(--ink-soft);
	font-size: 12.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Each employee card holds two 7-column grids (one per week) instead of the
   desktop table's single 14-column row - same 14 cells, just reflowed. */
.m-card-day-week[b-njraplfo2v] {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	margin-top: 8px;
}

.m-card-day-chip[b-njraplfo2v] {
	min-width: 0;
	position: relative;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	/* A real <button> since issue 101; drop the native button chrome so the chip looks as before. */
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.m-card-day-label[b-njraplfo2v] {
	min-width: 0;
	font-size: 0.6rem;
	color: var(--ink-faint);
	text-transform: uppercase;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-day-pill[b-njraplfo2v] {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 32px;
	margin-top: 2px;
	padding: 3px 2px;
	border-radius: 6px;
	font-size: 0.55rem;
	line-height: 1.15;
}

.m-card-day-pill-text[b-njraplfo2v] {
	min-width: 0;
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
}

.m-card-day-empty[b-njraplfo2v] {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	margin-top: 2px;
	border-radius: 6px;
	border: 1px dashed rgba(0, 0, 0, 0.08);
	background-color: rgba(25, 135, 84, 0.02);
	color: var(--bs-success);
	opacity: 0.75;
}

/* Switch from the horizontally-scrollable 14-column table to the agenda card
   list at 1024px, not the app's usual 1400px list-page tier: the table
   already hardcodes min-width:1200px and scrolls (with a mouse) well before
   1400px, so 1024-1400px stays a tolerable resized-desktop-window experience;
   below ~1024px (touch-primary tablet portrait and narrower) a vertical card
   list is materially better than horizontal scroll. See the #31.1 design doc
   for the full breakpoint rationale. */
@media (max-width: 1024px) {
	.table-responsive[b-njraplfo2v] {
		display: none;
	}

	.mobile-list[b-njraplfo2v] {
		display: block;
	}
}

/* Extra-narrow tier: foldable cover screens run as narrow as ~280px. */
@media (max-width: 349px) {
	.m-card[b-njraplfo2v] {
		padding: 10px 12px;
	}

	.m-card-day-week[b-njraplfo2v] {
		gap: 2px;
	}

	.m-card-day-label[b-njraplfo2v] {
		font-size: 0.55rem;
	}

	.m-card-day-pill[b-njraplfo2v],
	.m-card-day-empty[b-njraplfo2v] {
		min-height: 28px;
	}

	/* The narrower 2px grid gap at this tier isn't enough room for the
	   15px/-4px corner chip - shrink it to match, or it visually spills
	   into the neighboring day cell. */
	.status-chip[b-njraplfo2v] {
		width: 12px;
		height: 12px;
		top: -3px;
		right: -3px;
	}
}

/* Desktop timetable, moved from inline style attributes (issue 101). */
.timetable[b-njraplfo2v] {
	table-layout: fixed;
	min-width: 1200px;
}

.col-employee[b-njraplfo2v] {
	width: 200px;
	min-width: 200px;
	text-align: left;
}

.col-day[b-njraplfo2v] {
	width: 80px;
}

.day-number[b-njraplfo2v] {
	font-size: 1rem;
}

.day-month[b-njraplfo2v],
.employee-role[b-njraplfo2v] {
	font-size: 0.75rem;
}

.employee-cell[b-njraplfo2v] {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.day-cell[b-njraplfo2v] {
	cursor: pointer;
	height: 60px;
}

.absence-cell-badge[b-njraplfo2v] {
	font-size: 0.7rem;
	min-height: 48px;
	line-height: 1.2;
}

.absence-hours[b-njraplfo2v] {
	font-size: 0.65rem;
}

.available-cell[b-njraplfo2v] {
	font-size: 0.75rem;
	min-height: 48px;
	border-color: rgba(0, 0, 0, 0.08);
	background-color: rgba(25, 135, 84, 0.02);
}

/* Today's day chip sits on Bootstrap's pale-cyan .bg-info-subtle, where even --ink-faint is under 4.5:1. */
.bg-info-subtle .m-card-day-label[b-njraplfo2v] {
	color: var(--ink-soft);
}

/* Was .text-success.opacity-75 (2.9:1 on the cell's tint); the success ink token meets WCAG AA. */
.available-label[b-njraplfo2v] {
	color: var(--success-ink);
}

.absence-modal[b-njraplfo2v] {
	background-color: var(--modal-backdrop);
}

/* Touch targets: Cancel, Save, Reject and Approve at the bottom of the editor are full 44 px targets on a phone or a touch screen (issue
   423, fix round 2; a height only, so the footer still wraps as Bootstrap's does). The dialog scrolls its body, so the footer stays
   in view. */
@media (max-width: 640px), (pointer: coarse) {
	.absence-modal .modal-footer .btn[b-njraplfo2v] {
		min-height: 44px;
	}
}

/* Epic 417 (issue 423): the absence editor opened from an absence Basker prepared. A label row that also holds a Basker mark: the
   label, and at the right end the mark (BaskerFieldMark has margin-inline-start: auto). Only a marked field gets this row; every
   other label stays as it was. The row is the container the mark measures (BaskerFieldMark's container query, as Field's marked label
   row), so in a narrow column (the two date fields) the mark shows its glyph only instead of wrapping under the label. */
.absence-label-row[b-njraplfo2v] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin-bottom: 0.5rem;
	container-type: inline-size;
	container-name: basker-field;
}

.absence-label-row .form-label[b-njraplfo2v] {
	margin-bottom: 0;
}

/* The orange "not found" state of a select Basker could not fill (the kind was not said): fill and border go orange, the line under
   it is the BaskerFieldMark atom. The select is this component's own markup, so no ::deep is needed. */
.absence-field-not-found .form-select[b-njraplfo2v] {
	background-color: var(--warning-soft);
	border-color: var(--warning-ink);
}

/* A full-width marked row (the worker and the type) has a long upper-case label, so on a narrow phone (below 320 px) the mark would
   wrap under it. There the mark shows its glyph only, as BaskerFieldMark does in a narrow column; the words stay for a screen reader
   and in the title, and the orange select and the line under it still say "not found". */
@container basker-field (max-width: 270px) {
	.absence-label-row-full[b-njraplfo2v]  .basker-field-mark-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.absence-label-row-full[b-njraplfo2v]  .basker-field-mark-not-found {
		padding-inline: 5px;
	}
}

/* The worker's name is one line of the window: a long name without a space breaks instead of pushing the window wider than a phone. */
.absence-employee-name[b-njraplfo2v] {
	display: inline-block;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Save is off with aria-disabled (not disabled) while the window is filled from a prepared absence; the handler ignores the press. It
   looks like Bootstrap's disabled button, as on the Business trips page and the schedule editor's Save (issue 195). */
[data-component="Absence.SaveButton"][aria-disabled="true"][b-njraplfo2v],
[data-component="Absence.SaveButton"][aria-disabled="true"]:hover[b-njraplfo2v],
[data-component="Absence.SaveButton"][aria-disabled="true"]:active[b-njraplfo2v] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one would be skipped), so the keyboard gets the app's focus ring on it. */
[data-component="Absence.SaveButton"][aria-disabled="true"]:focus-visible[b-njraplfo2v] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

@media (forced-colors: active) {
	[data-component="Absence.SaveButton"][aria-disabled="true"][b-njraplfo2v] {
		color: GrayText;
		border-color: GrayText;
	}
}
/* /Components/Pages/ServicePlanning/BusinessTrips.razor.rz.scp.css */
.business-trips-page[b-8ygdmtw2b8] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-8ygdmtw2b8] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-8ygdmtw2b8] {
	white-space: nowrap;
}

[b-8ygdmtw2b8] .icon-plus,
[b-8ygdmtw2b8] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.btn-outline[b-8ygdmtw2b8] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-8ygdmtw2b8] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-danger-ghost[b-8ygdmtw2b8] {
	background: var(--surface);
	border: 1px solid var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-8ygdmtw2b8] {
	background: var(--danger-soft);
}

.btn-sm[b-8ygdmtw2b8] {
	height: 30px;
	padding: 0 11px;
	font-size: 12.5px;
}

/* Table */

.table-card[b-8ygdmtw2b8] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page instead of only being as tall as its
	   rows, then scroll its own content only when it doesn't fit, rather
	   than the whole page scrolling and leaving dead space below a short
	   table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.trips-table[b-8ygdmtw2b8] {
	width: 100%;
	border-collapse: collapse;
}

.trips-table thead th[b-8ygdmtw2b8] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.trips-table thead tr:first-child th:first-child[b-8ygdmtw2b8] { border-top-left-radius: 12px; }
.trips-table thead tr:first-child th:last-child[b-8ygdmtw2b8] { border-top-right-radius: 12px; }
.trips-table tbody tr:last-child td:first-child[b-8ygdmtw2b8] { border-bottom-left-radius: 12px; }
.trips-table tbody tr:last-child td:last-child[b-8ygdmtw2b8] { border-bottom-right-radius: 12px; }

.trips-table tbody td[b-8ygdmtw2b8] {
	padding: 14px 18px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.trips-table tbody tr:last-child td[b-8ygdmtw2b8] { border-bottom: none; }
.trips-table tbody tr:hover[b-8ygdmtw2b8] { background: var(--surface-hover); }

.cell-person[b-8ygdmtw2b8] { font-weight: 600; }
.cell-date[b-8ygdmtw2b8] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-destination[b-8ygdmtw2b8] { font-weight: 500; }
.cell-time[b-8ygdmtw2b8] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-plan[b-8ygdmtw2b8] { white-space: nowrap; }

.plan-link[b-8ygdmtw2b8] {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.plan-link:hover[b-8ygdmtw2b8],
.plan-link:focus-visible[b-8ygdmtw2b8] {
	text-decoration: underline;
}

/* Purpose hover tooltip - same pattern as ComplaintList's Notes column */

.notes-wrap[b-8ygdmtw2b8] {
	position: relative;
	display: inline-block;
	max-width: 260px;
	vertical-align: middle;
}

.cell-notes-text[b-8ygdmtw2b8] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-8ygdmtw2b8] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 320px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	pointer-events: none;
}

.notes-tooltip[b-8ygdmtw2b8]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-8ygdmtw2b8] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Row actions */

.row-actions[b-8ygdmtw2b8] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-icon[b-8ygdmtw2b8] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 7px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
}

.btn-icon:hover[b-8ygdmtw2b8] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-icon-danger:hover[b-8ygdmtw2b8] {
	border-color: var(--danger-line);
	color: var(--danger-ink);
	background: var(--danger-soft);
}

/* Address status badge (Verified/Unverified/No Location), same palette as
   Customers/CustomerDetail. */

.badge[b-8ygdmtw2b8] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-8ygdmtw2b8] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-8ygdmtw2b8] { background: var(--status-done-bg); color: var(--status-done-ink); }
.priority-medium[b-8ygdmtw2b8] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.badge-default[b-8ygdmtw2b8] { background: var(--line-soft); color: var(--ink-soft); }

/* Field-level label row - a field's own label plus the inline address
   status badge and an icon-only edit action, e.g. Destination's
   "DESTINATION  * Verified  [pencil]" header above the address box.
   Matches CustomerDetail/ComplaintDetail's Address treatment. */
.field-label-row[b-8ygdmtw2b8] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.field-label-row .form-label[b-8ygdmtw2b8] {
	margin-bottom: 0;
}

.icon-btn-edit[b-8ygdmtw2b8] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-edit:hover[b-8ygdmtw2b8] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Destination address box (opens AddressPickerModal) once the trip has
   been saved - plain read-only text (no border/background box), with
   pointer/hover/double-click affordances layered on since it's still
   clickable. Matches CustomerDetail/ComplaintDetail's Address box. */

.field-value[b-8ygdmtw2b8] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

.address-box[b-8ygdmtw2b8] {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.address-box .address-text[b-8ygdmtw2b8] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.address-box:hover .address-text[b-8ygdmtw2b8] {
	color: var(--accent);
}

/* Shown in the address box for a brand-new trip that has no Destination yet
   - same muted treatment as a form field's placeholder text. */
.address-box .address-placeholder[b-8ygdmtw2b8] {
	color: var(--ink-soft);
	font-weight: 400;
}

/* Modal form (Bootstrap modal wrapper kept as-is, same convention as
   RalCodeDetail's RAL Picker - only the field grid inside modal-body is
   restyled here). */

.field-row[b-8ygdmtw2b8] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-8ygdmtw2b8] {
	grid-template-columns: minmax(0, 1fr);
}

.field[b-8ygdmtw2b8] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Date fields: overlay a calendar icon, same convention as
   ComplaintDetail.razor.css/ServicePlanDetail.razor.css. */

.date-field[b-8ygdmtw2b8] {
	position: relative;
	display: flex;
	align-items: center;
}

.date-field .cal-icon[b-8ygdmtw2b8] {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	pointer-events: none;
	z-index: 1;
}

/* A glyph atom (clock) is sized by font-size, unlike the fixed-size calendar atom. */
.date-field .cal-icon-glyph[b-8ygdmtw2b8] {
	font-size: 15px;
	color: var(--ink-soft);
}

.date-field input[b-8ygdmtw2b8] {
	padding-left: 32px !important;
	width: 100%;
}

.date-field input[b-8ygdmtw2b8]::-webkit-calendar-picker-indicator {
	display: none;
	-webkit-appearance: none;
}

/* Hint line and field-level validation text under the time and service-plan fields (epic 189 phase 2). */

.field-hint[b-8ygdmtw2b8] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

/* The "leave both empty" hint sits under both time fields, across the two columns. */
.times-hint[b-8ygdmtw2b8] {
	grid-column: 1 / -1;
	margin-top: -6px;
}

.invalid-feedback[b-8ygdmtw2b8] {
	font-size: 12.5px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-8ygdmtw2b8] {
	display: none;
}

.m-card[b-8ygdmtw2b8] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
}

.m-card-top[b-8ygdmtw2b8] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-8ygdmtw2b8] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--ink);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-dates[b-8ygdmtw2b8] {
	flex-shrink: 0;
	color: var(--ink-soft);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.m-card-sub[b-8ygdmtw2b8] {
	display: flex;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-8ygdmtw2b8] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-meta[b-8ygdmtw2b8] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.m-card-meta .trip-time[b-8ygdmtw2b8] {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.m-card-notes[b-8ygdmtw2b8] {
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-actions[b-8ygdmtw2b8] {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.m-card-actions .btn[b-8ygdmtw2b8] {
	flex: 1;
	justify-content: center;
}

/* Mobile layout: compact single-column view. Breakpoint is 1400px -
   deliberately much wider than any phone or opened foldable so an ordinary
   desktop browser window resized down also switches to the compact card
   view (see razor-page-design-system's Breakpoint values section). */

@media (max-width: 1400px) {
	.topbar[b-8ygdmtw2b8] {
		align-items: flex-start;
	}

	.btn-new[b-8ygdmtw2b8] {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-8ygdmtw2b8] {
		display: none;
	}

	.mobile-list[b-8ygdmtw2b8] {
		display: block;
	}
}

/* The trip dialog is 800 px wide (modal-lg), so its date and time pairs stay side by side down to a phone (fix round 2: at the
   page's 1400 px they became one column each and the dialog was 954 px high at 1024x768). */
@media (max-width: 640px) {
	.field-row[b-8ygdmtw2b8] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Touch targets: sizes only (a width rule here would also hit wide touch screens). */

@media (max-width: 640px), (pointer: coarse) {
	.btn-sm[b-8ygdmtw2b8],
	.btn-icon[b-8ygdmtw2b8],
	.icon-btn-edit[b-8ygdmtw2b8] {
		min-height: 44px;
	}

	.btn-icon[b-8ygdmtw2b8],
	.icon-btn-edit[b-8ygdmtw2b8] {
		min-width: 44px;
	}

	.field input.form-control[b-8ygdmtw2b8],
	.field select.form-select[b-8ygdmtw2b8] {
		min-height: 44px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. */

@media (max-width: 349px) {
	.m-card[b-8ygdmtw2b8] {
		padding: 10px 12px;
	}

	.m-card-title[b-8ygdmtw2b8] {
		font-size: 13.5px;
	}

	.btn-new[b-8ygdmtw2b8] {
		font-size: 12.5px;
	}
}

/* Moved from inline style attributes (issue 101). */
.col-actions[b-8ygdmtw2b8] {
	width: 96px;
}

.trip-modal[b-8ygdmtw2b8] {
	background-color: var(--modal-backdrop);
}

/* The dialog never grows past the screen: the header stays, the body scrolls and Cancel / Save stay at its bottom edge (they
   were below the fold at 1024x768 and on phones). The footer is inside the form, so it sticks inside the scrolling body. */
.trip-modal .modal-content[b-8ygdmtw2b8] {
	max-height: calc(100dvh - 2 * var(--bs-modal-margin, 0.5rem));
}

.trip-modal .modal-body[b-8ygdmtw2b8] {
	min-height: 0;
	padding-bottom: 0;
	overflow-y: auto;
}

/* Fix round 3 (n8): what must be seen after Save sits in one part that stays at the bottom edge: the save error and the conflict
   banner (they were at the top of the scrolling body, out of sight on a phone), then Cancel / Save. The notices scroll on their own
   if they are long, so the buttons never leave the screen. */
.trip-sticky[b-8ygdmtw2b8] {
	position: sticky;
	bottom: 0;
	z-index: 2;
	background: var(--surface);
}

.trip-notices[b-8ygdmtw2b8] {
	max-height: min(38dvh, 14rem);
	overflow-y: auto;
}

.trip-notices[b-8ygdmtw2b8]  .conflict-banner {
	margin-bottom: 8px;
}

.trip-footer[b-8ygdmtw2b8] {
	padding: 12px 0 16px;
	background: var(--surface);
}

/* Epic 417 (issue 423): the trip window opened from a prepared business trip. The window's own markup does not use the Field molecule, so
   the Basker marks get the same recipe here (Field.razor.css, issue 426). Tokens only. */

/* The strip at the top of the window (BaskerDraftNotice without a placement, always shown). */
.trip-draft-strip[b-8ygdmtw2b8] {
	margin-bottom: 14px;
}

/* A label row that also holds a Basker mark. The mark has margin-inline-start: auto (the right end of the row). A narrow field shows the
   mark as its glyph only (BaskerFieldMark's container query on this row), so the label and the mark stay on one row; wrapping is only
   the last resort. The row is as wide as its field, so its width never depends on its content. */
.field-label-row-marked[b-8ygdmtw2b8] {
	flex-wrap: wrap;
	row-gap: 2px;
	container-type: inline-size;
	container-name: basker-field;
}

/* The orange "not found" state of a field Basker could not fill: the editor's fill and border go orange; the pill (label row) and the
   line under the input are the BaskerFieldMark atom. The textarea is a framework component, so it needs ::deep. */
.field-basker-not-found .form-control[b-8ygdmtw2b8],
.field-basker-not-found .form-select[b-8ygdmtw2b8],
.field-basker-not-found[b-8ygdmtw2b8]  textarea.form-control {
	background-color: var(--warning-soft);
	border-color: var(--warning-ink);
}

/* The destination is not an input but the address box: it gets the same orange fill and border as the other "not found" fields, with
   an input's padding and corners so the orange reads as a field, not as a highlighted line of text. */
.field-basker-not-found .address-box[b-8ygdmtw2b8] {
	background-color: var(--warning-soft);
	border: 1px solid var(--warning-ink);
	border-radius: var(--radius-sm);
	padding: 7px 10px;
}

/* The destination's label row also holds the address badge and the pencil, so on a phone (375 px and narrower) its mark would wrap
   under the pencil. There the mark shows its glyph only, as BaskerFieldMark does in a narrow field. */
@container basker-field (max-width: 330px) {
	.destination-label-row[b-8ygdmtw2b8]  .basker-field-mark-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.destination-label-row[b-8ygdmtw2b8]  .basker-field-mark-not-found {
		padding-inline: 5px;
	}
}

/* A foldable's cover screen (280 to 310 px, the row 260 px or narrower): even with the mark as its glyph, the label, the badge, the
   44 px pencil and the mark need more than the row (issue 423, fix round 2), so the glyph wrapped under the pencil. The pencil gives
   back 8 px on each side: its box and its 44 px target stay, and with the row's 8 px gap its edges meet the badge and the mark
   without covering them (the row is this query's container, so its own gap can't change here). The badge is the one that gives way:
   it starts from nothing, grows up to its text and ends in an ellipsis when the row is still too narrow. One line, 44 px high, in
   English and Czech, with either mark. */
@container basker-field (max-width: 260px) {
	.destination-label-row .icon-btn-edit[b-8ygdmtw2b8] {
		margin-inline: -8px;
	}

	.destination-label-row .badge[b-8ygdmtw2b8] {
		display: block;
		flex: 1 1 0;
		max-width: max-content;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.destination-label-row .badge .dot[b-8ygdmtw2b8] {
		display: inline-block;
		margin-inline-end: 5px;
		vertical-align: 1px;
	}
}

/* The calendar icon of a date field draws itself with accent tokens (IconCalendar, a child component), so it is recoloured part by part. */
.field-basker-not-found .date-field .cal-icon[b-8ygdmtw2b8]  rect:first-child {
	fill: var(--warning-soft);
	stroke: var(--warning-ink);
}

.field-basker-not-found .date-field .cal-icon[b-8ygdmtw2b8]  rect:nth-child(2),
.field-basker-not-found .date-field .cal-icon[b-8ygdmtw2b8]  circle {
	fill: var(--warning-ink);
}

.field-basker-not-found .date-field .cal-icon[b-8ygdmtw2b8]  line {
	stroke: var(--warning-ink);
}

/* Save is off with aria-disabled (not disabled) while the window is filled from a prepared trip; the handler ignores the press. It looks
   like Bootstrap's disabled button, as on the complaint page (issue 426) and the schedule editor's Save (issue 195). */
[data-component="BusinessTrips.SaveModalButton"][aria-disabled="true"][b-8ygdmtw2b8],
[data-component="BusinessTrips.SaveModalButton"][aria-disabled="true"]:hover[b-8ygdmtw2b8],
[data-component="BusinessTrips.SaveModalButton"][aria-disabled="true"]:active[b-8ygdmtw2b8] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one would be skipped), so the keyboard gets the app's focus ring on it. */
[data-component="BusinessTrips.SaveModalButton"][aria-disabled="true"]:focus-visible[b-8ygdmtw2b8] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

@media (forced-colors: active) {
	[data-component="BusinessTrips.SaveModalButton"][aria-disabled="true"][b-8ygdmtw2b8] {
		color: GrayText;
		border-color: GrayText;
	}
}
/* /Components/Pages/ServicePlanning/CarManagement.razor.rz.scp.css */
.car-management-page[b-0ocp2lig4j] {
	color: var(--ink);
}

.eyebrow[b-0ocp2lig4j] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-0ocp2lig4j] {
	white-space: nowrap;
}

[b-0ocp2lig4j] .icon-plus,
[b-0ocp2lig4j] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.btn-outline[b-0ocp2lig4j] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-0ocp2lig4j] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Fleet card grid: not paginated (a small, bounded list), so this stays a
   responsive card grid rather than converting to a table+mobile-card-list
   pattern - but reflows sensibly all the way down to foldable-cover width. */

.cars-grid[b-0ocp2lig4j] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.card[b-0ocp2lig4j] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 22px;
	margin: 0;
}

.car-card-head[b-0ocp2lig4j] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 4px;
}

.car-card-head h2[b-0ocp2lig4j] {
	font-size: 14px;
	margin: 0;
	font-weight: 700;
	min-width: 0;
	flex: 1;
}

.car-card-head h2 small[b-0ocp2lig4j] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

.car-name[b-0ocp2lig4j] {
	overflow-wrap: anywhere;
}

.car-card-actions[b-0ocp2lig4j] {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.btn-icon[b-0ocp2lig4j] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 7px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
}

.btn-icon:hover[b-0ocp2lig4j] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-icon-danger:hover[b-0ocp2lig4j] {
	border-color: var(--danger-line);
	color: var(--danger-ink);
	background: var(--danger-soft);
}

/* Spec rows - same key/value convention as ComplaintDetail.razor.css's
   .side-card .kv (small uppercase eyebrow label + right-aligned value)
   instead of Bootstrap's .row/.col-6 split. */

.kv[b-0ocp2lig4j] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 13px;
}

.kv:last-of-type[b-0ocp2lig4j] {
	border-bottom: none;
}

.kv .k[b-0ocp2lig4j] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
}

.kv .v[b-0ocp2lig4j] {
	font-weight: 600;
	text-align: right;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* A car without its own km rate (issue 137): muted dash, it uses the global rate. */
.kv .v.v-empty[b-0ocp2lig4j] {
	font-weight: 400;
	color: var(--ink-faint);
}

.car-info[b-0ocp2lig4j] {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
	color: var(--ink-soft);
}

/* Modal form (Bootstrap modal wrapper kept as-is, same convention as
   RalCodeDetail's RAL Picker - only the field grid inside modal-body is
   restyled here). */

.field-row[b-0ocp2lig4j] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-row.cols-1[b-0ocp2lig4j] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-0ocp2lig4j] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field[b-0ocp2lig4j] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pallet-check[b-0ocp2lig4j] {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 38px;
}

/* Same breakpoint rationale as ComplaintDetail.razor.css/RalCodeDetail.razor.css:
   1400px is wide enough that resizing an ordinary desktop browser window down
   (not just real phones/foldables) switches this page to its compact layout too. */

@media (max-width: 1400px) {
	.topbar[b-0ocp2lig4j] {
		align-items: flex-start;
	}

	.btn-new[b-0ocp2lig4j] {
		width: 100%;
		justify-content: center;
	}

	.field-row[b-0ocp2lig4j] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row.cols-4[b-0ocp2lig4j] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. */

@media (max-width: 349px) {
	.card[b-0ocp2lig4j] {
		padding: 16px 14px;
	}

	.btn-new[b-0ocp2lig4j] {
		font-size: 12.5px;
	}

	.field-row.cols-4[b-0ocp2lig4j] {
		grid-template-columns: minmax(0, 1fr);
	}

	/* A 280px-wide minimum column (fine down to 349px) can force a
	   page-level horizontal scrollbar on the narrowest foldable cover
	   screens (as little as ~280px CSS width - see razor-page-design-system's
	   real device viewport reference). Shrink the minimum column further at
	   this tier so the grid still fits a single column without overflow. */
	.cars-grid[b-0ocp2lig4j] {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 10px;
	}
}

/* Moved from inline style attributes (issue 101). */
.field-span-2[b-0ocp2lig4j] {
	grid-column: span 2;
}

.car-modal[b-0ocp2lig4j] {
	background-color: var(--modal-backdrop);
}

/* Issue 172: the "car has a stock location" warning inside the card. */
.car-delete-error[b-0ocp2lig4j] {
	font-size: 12.5px;
	padding: 8px 10px;
	margin: 8px 0;
}
/* /Components/Pages/ServicePlanning/PlanningBoard.razor.rz.scp.css */
/* Planning board (issue 194, epic 189). Desktop: the page fills the viewport and only the board card scrolls, on both
   axes, with a sticky hour scale and a sticky label column (UI plan 2.1-2.5, the Map page's section 8 pattern). The
   page top is measured by the JS module (--board-page-top, re-measured on a debounced resize); until it runs, the
   fallback is MainLayout's top padding. */
.planning-board-page[b-axztocd21k] {
	color: var(--ink);
	min-width: 0;
}

/* At least the viewport (bottom gap = MainLayout's 1.5rem side padding) and grows past it when the chrome above the
   board plus the board's own floor don't fit (a short laptop window): the page then scrolls instead of the board
   shrinking to a sliver. The board's wrapper has flex-basis 0, so it doesn't push the page past the viewport. */
@media (min-width: 641px) {
	.planning-board-page[b-axztocd21k] {
		display: flex;
		flex-direction: column;
		min-height: max(520px, calc(100dvh - var(--board-page-top, 1.5rem)));
		/* A real padding (border-box), so the gap also stays when the page grows past the viewport. */
		padding-bottom: 1.5rem;
	}
}

/* ---- Header actions: date navigation and view switch (links, not buttons: Back and copied links work) ---- */
.board-header-actions[b-axztocd21k] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	min-width: 0;
}

.board-nav[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

/* The view switch and the changes button's slot: one nowrap group, so the button never wraps onto a row of its own. */
.view-group[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 8px 12px;
	min-width: 0;
}

/* Fix round 2 (D3): the slot is as big as the button whether it is there or not, so the button appearing moves nothing; it is
   also the box the changes toast hangs from (D2). */
.changes-slot[b-axztocd21k] {
	position: relative;
	display: inline-flex;
	flex: none;
	width: 32px;
	height: 32px;
}

.board-btn[b-axztocd21k],
.view-switch-option[b-axztocd21k] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.board-btn-icon[b-axztocd21k] {
	width: 32px;
	padding: 0;
}

.board-btn:hover[b-axztocd21k],
.board-btn:focus-visible[b-axztocd21k],
.view-switch-option:hover[b-axztocd21k],
.view-switch-option:focus-visible[b-axztocd21k] {
	background: var(--surface-hover);
	border-color: var(--accent);
	color: var(--accent);
}

/* ---- Changes by others (CR-115, B7b): an icon button with a count badge, the last control of the header's actions (top right). The
   count is a badge on the icon, never colour alone: the button's name carries the number. ---- */
.changes-indicator[b-axztocd21k] {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 15px;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.changes-indicator:hover[b-axztocd21k],
.changes-indicator:focus-visible[b-axztocd21k],
.changes-indicator[aria-expanded="true"][b-axztocd21k] {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.changes-count[b-axztocd21k] {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.change-line[b-axztocd21k] {
	display: block;
}

.change-more[b-axztocd21k] {
	color: var(--ink-soft);
}

.week-label[b-axztocd21k] {
	flex: 0 0 auto;
	min-width: 190px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.board-nav[b-axztocd21k]  .board-nav-spinner {
	color: var(--accent);
}

.view-switch[b-axztocd21k] {
	display: inline-flex;
}

.view-switch-option[b-axztocd21k] {
	border-radius: 0;
}

.view-switch-option + .view-switch-option[b-axztocd21k] {
	margin-left: -1px;
}

.view-switch-option:first-child[b-axztocd21k] {
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.view-switch-option:last-child[b-axztocd21k] {
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.view-switch-option[aria-current="true"][b-axztocd21k] {
	position: relative;
	z-index: 1;
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-color);
	font-weight: 700;
}

.view-switch-option[aria-current="true"]:hover[b-axztocd21k],
.view-switch-option[aria-current="true"]:focus-visible[b-axztocd21k] {
	background: var(--accent-strong);
	border-color: var(--accent-strong);
	color: var(--on-color);
}

/* ---- Filters (labels above the selects, as on ReceiptEvaluation) ---- */
.board-filters[b-axztocd21k] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 12px;
	margin-bottom: 12px;
	flex-shrink: 0;
	min-width: 0;
}

.filter[b-axztocd21k] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.filter-person[b-axztocd21k] {
	flex: 0 1 170px;
}

.filter-car[b-axztocd21k] {
	flex: 0 1 150px;
}

.filter-status[b-axztocd21k] {
	flex: 0 1 160px;
}

.form-label[b-axztocd21k] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.form-select[b-axztocd21k] {
	height: 32px;
	padding: 5px 28px 5px 10px;
	font-size: 12.5px;
	border-radius: var(--radius-md);
	max-width: 100%;
}

/* "Show weekend" (issue 194 B3): a Bootstrap form switch, styled as on ReceiptEvaluation. */
.filter-switch[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	margin: 0;
	padding-left: 2.5em;
	font-size: 12px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.filter-switch .form-check-input[b-axztocd21k] {
	margin-top: 0;
	cursor: pointer;
}

.filter-switch .form-check-label[b-axztocd21k] {
	cursor: pointer;
}

.filter-clear[b-axztocd21k] {
	height: 32px;
	padding: 0 4px;
	font-size: 12.5px;
	white-space: nowrap;
}

/* ---- Legend: at the right end of the filter row when it fits there; otherwise left-aligned on its own row (UI plan
   section 7). The zero-width spacer before it takes the free space of the first row and stays on that row, so the
   legend is pushed right only when it shares the row; it decides on the real widths, in every language. ---- */
.board-filters[b-axztocd21k]::after {
	content: "";
	order: 1;
	flex: 1 0 0px;
	height: 0;
}

.legend[b-axztocd21k] {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	padding: 0 0 7px;
	list-style: none;
	min-width: 0;
}

.legend-item[b-axztocd21k] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* A mini bar: fill, border and a 3 px status stripe, with the status glyph as the non-colour cue. */
.legend-swatch[b-axztocd21k] {
	--swatch-bg: var(--plan-tone-neutral-bg);
	--swatch-border: var(--plan-tone-neutral-border);
	--swatch-stripe: var(--plan-tone-neutral-stripe);
	--swatch-ink: var(--plan-tone-neutral-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 12px;
	background: var(--swatch-bg);
	border: 1px solid var(--swatch-border);
	border-left: 3px solid var(--swatch-stripe);
	border-radius: 2px;
	color: var(--swatch-ink);
	font-size: 8px;
	line-height: 1;
}

.legend-swatch.tone-new[b-axztocd21k] {
	--swatch-bg: var(--plan-tone-committed-bg);
	--swatch-border: var(--plan-tone-committed-border);
	--swatch-stripe: var(--plan-tone-committed-stripe);
	--swatch-ink: var(--plan-tone-committed-ink);
}

.legend-swatch.tone-progress[b-axztocd21k] {
	--swatch-bg: var(--plan-tone-active-bg);
	--swatch-border: var(--plan-tone-active-border);
	--swatch-stripe: var(--plan-tone-active-stripe);
	--swatch-ink: var(--plan-tone-active-ink);
}

.legend-swatch.tone-done[b-axztocd21k] {
	--swatch-bg: var(--plan-tone-completed-bg);
	--swatch-border: var(--plan-tone-completed-border);
	--swatch-stripe: var(--plan-tone-completed-stripe);
	--swatch-ink: var(--plan-tone-completed-ink);
}

.legend-swatch.swatch-travel[b-axztocd21k] {
	background: var(--kind-travel-bg);
	border: 1px dashed var(--kind-travel-line);
}

.legend-swatch.swatch-now[b-axztocd21k] {
	width: 2px;
	height: 14px;
	margin: 0 8px;
	background: var(--board-now);
	border: 0;
	border-radius: 0;
}

.legend-icon[b-axztocd21k] {
	display: inline-flex;
	font-size: 11px;
	color: var(--ink-soft);
}

/* ---- Unscheduled strip: one row that scrolls sideways inside the card, never wraps (UI plan section 6) ---- */
.unscheduled-card[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	min-width: 0;
	margin-bottom: 12px;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.unscheduled-head[b-axztocd21k] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-shrink: 0;
}

/* The list tier's toggle row (issue 197 D fix 2, CR-77) is shown there only (the list-tier block at the end of this file); the
   grid tier has the strip always open. The body wrapper (the toggle's aria-controls target) adds no box of its own. */
.unscheduled-toggle[b-axztocd21k] {
	display: none;
}

.unscheduled-body[b-axztocd21k] {
	display: contents;
}

.unscheduled-title[b-axztocd21k] {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
	white-space: nowrap;
}

.unscheduled-hint[b-axztocd21k],
.unscheduled-hint-drag[b-axztocd21k],
.unscheduled-empty[b-axztocd21k] {
	margin: 0;
	font-size: 11px;
	color: var(--ink-faint);
}

/* Issue 196: the drag hint replaces the default one only where a mouse or pen can drag ([Decision] issue 263). Every drag
   affordance on the board keys on the page's data-drag-input, which the page module sets from the same media queries
   it gates a press on (a fine pointer and not the phone tier, CR-64), next to data-drag="on" (an editor, module
   started). Hidden by default, so nothing flashes before the module has loaded. */
.unscheduled-hint-drag[b-axztocd21k] {
	display: none;
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-head:has(.unscheduled-hint-drag) .unscheduled-hint[b-axztocd21k] {
	display: none;
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-hint-drag[b-axztocd21k] {
	display: inline;
}

/* 4 px padding (and -2 px margin, so the row keeps its height): a focused chip's 3 px ring stays inside the scroller. */
.unscheduled-track[b-axztocd21k] {
	display: flex;
	gap: 8px;
	flex: 1;
	min-width: 0;
	margin: -2px 0;
	padding: 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
	scroll-padding: 4px;
	-webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 24px), transparent);
	mask-image: linear-gradient(to right, var(--ink) calc(100% - 24px), transparent);
}

/* The JS module sets this at the scroll end (or when nothing overflows), so the last chip isn't faded; without it the
   fade stays, the safe default. */
.unscheduled-track.is-scroll-end[b-axztocd21k] {
	-webkit-mask-image: none;
	mask-image: none;
}

/* At most the track's width less the 24 px fade, so a chip and its focus ring fit inside the track on a 280 px screen (a 255 px
   chip in a 230 px track was cut 13 to 17 px, issue 197 D fix 5, P-2). The item is a flex row and the chip may shrink in it
   (min-width 0), so a capped item narrows its chip and the title ellipsizes; where the track is wider (the desktop strip) the
   item is as wide as its chip, at most 260 px, as before. */
.unscheduled-item[b-axztocd21k] {
	display: flex;
	flex-shrink: 0;
	max-width: calc(100% - 24px);
	scroll-snap-align: start;
}

/* Dashed: "not placed yet". A real button, so a focused chip scrolls into view. */
.unscheduled-chip[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 260px;
	padding: 6px 10px 6px 6px;
	font: inherit;
	text-align: left;
	color: var(--ink);
	background: var(--surface-muted);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.unscheduled-chip:hover[b-axztocd21k] {
	background: var(--surface-hover);
	border-color: var(--accent);
}

.unscheduled-chip:focus-visible[b-axztocd21k] {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
}

/* The chip the open popup hangs from (issue 195), drawn like the selected bar: accent-strong outline and ring. */
.unscheduled-chip.is-selected[b-axztocd21k] {
	border-style: solid;
	border-color: var(--accent);
	outline: 2px solid var(--accent-strong);
	outline-offset: 1px;
	box-shadow: 0 0 0 5px var(--accent-ring);
}

/* The grip only where a mouse or pen can drag the chip (issue 196, R6, [Decision] issue 263): on a touch-only screen it
   would be a handle that does nothing. */
.chip-grip[b-axztocd21k] {
	display: none;
	flex-shrink: 0;
	font-size: 14px;
	color: var(--ink-faint);
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .chip-grip[b-axztocd21k] {
	display: inline-flex;
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-chip:hover .chip-grip[b-axztocd21k] {
	color: var(--ink-soft);
}

.chip-glyph[b-axztocd21k] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 11px;
	color: var(--ink-soft);
}

.chip-body[b-axztocd21k] {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.chip-title[b-axztocd21k],
.chip-meta[b-axztocd21k] {
	min-width: 0;
	max-width: 220px;
	overflow: hidden;
	white-space: nowrap;
}

.chip-title[b-axztocd21k] {
	text-overflow: ellipsis;
	font-size: 11px;
	font-weight: 700;
	color: var(--ink);
}

.chip-meta[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	color: var(--ink-faint);
}

/* The meta line is a flex row, so the ellipsis belongs to its parts (issue 286). The people always show; on a narrow chip "overnight"
   gives way first (the moon still says it), then the length text. The chip's title and accessible name hold the whole text. */
.chip-time[b-axztocd21k],
.chip-overnight[b-axztocd21k] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chip-overnight[b-axztocd21k] {
	flex-shrink: 1000;
}

.chip-people[b-axztocd21k] {
	flex: none;
}

/* "No crew yet" is no count: it gives way before the length text, so "4 h" stays whole on a 280 px chip (issue 286 fix round 3). */
.chip-people.is-none[b-axztocd21k] {
	flex: 0 1000 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chip-moon[b-axztocd21k] {
	display: inline-flex;
	flex: none;
	font-size: 10px;
}

.board-load-error[b-axztocd21k] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	flex-shrink: 0;
}

/* ---- The board card's wrapper: the flex item of the page, and the positioned box for the overlay alerts (they must
   not scroll with the card's content) ---- */
.board-card-wrap[b-axztocd21k] {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

@media (min-width: 641px) {
	/* Basis 0 and grow: fills what the page leaves, never more than its content (max-content), and at least about
	   eight lanes (380 px, or the content when it is shorter: a day view with one plan stays small). */
	.board-card-wrap[b-axztocd21k] {
		flex: 1 1 0px;
		/* calc-size() is progressive enhancement (Chromium only so far): elsewhere the plain 380 px floor applies, so a
		   short day view there is padded to 380 px. */
		min-height: 380px;
		min-height: calc-size(max-content, min(size, 380px));
		max-height: max-content;
	}
}

/* Short tablet windows (CR-121, issue 277): the chrome above the board is tall at 768-1024 px wide, so the 380 px floor
   plus the 1.5rem bottom padding pushed the document past the viewport (30 px at 768x900, 19 px at 1024x700). Both
   are lowered here, the card to 352 px (about seven lanes, the content when shorter) and the padding to 0.75rem. A
   window shorter than about 800 px still scrolls the page by the remainder; the board card keeps its floor. Fix round 2
   (D): the cap is 930 px, not 900: the review measured 20 px of scroll at 768x901 and 6 px at 768x915, gone from 925. */
@media (min-width: 641px) and (max-width: 1024.98px) and (max-height: 930px) {
	.planning-board-page[b-axztocd21k] {
		padding-bottom: 0.75rem;
	}

	.board-card-wrap[b-axztocd21k] {
		min-height: 352px;
		min-height: calc-size(max-content, min(size, 352px));
	}
}

/* A live refresh failure (or a failed retry while a board is shown): compact, over the card's top right corner,
   above the sticky layers, so nothing on the board moves when it appears or goes. */
.board-overlay-alert[b-axztocd21k] {
	position: absolute;
	top: 6px;
	right: 18px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: min(440px, calc(100% - 36px));
	padding: 4px 4px 4px 10px;
	font-size: 12.5px;
	line-height: 1.3;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	box-shadow: var(--shadow-sm);
}

.board-overlay-alert.is-danger[b-axztocd21k] {
	border-color: var(--danger-line);
	background: var(--danger-soft);
	color: var(--danger-ink);
}

.board-overlay-text[b-axztocd21k] {
	min-width: 0;
}

.board-overlay-btn[b-axztocd21k] {
	flex-shrink: 0;
	padding: 2px 8px;
	font-size: 12px;
	white-space: nowrap;
}

/* ---- The board card: the only scroller, on both axes ---- */
.board-card[b-axztocd21k] {
	--board-label-w: 200px;
	--board-scale-h: 30px;
	--board-dayhead-h: 36px;
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	max-width: 100%;
	overflow: auto;
	overscroll-behavior: contain;
	container-type: inline-size;
	container-name: board;
	isolation: isolate;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	/* Focus never ends up under the sticky scale, day header or label column, nor with its ring at the card's edge
	   (WCAG 2.4.11). The JS module corrects what this can't: the real (wrapped) day header height and a bar that is
	   already partly visible, which Chrome doesn't scroll at all. */
	scroll-padding-top: calc(var(--board-scale-h) + var(--board-dayhead-h) + 6px);
	scroll-padding-left: calc(var(--board-label-w) + 6px);
	scroll-padding-right: 8px;
	scroll-padding-bottom: 8px;
}

/* A week, view or filter change keeps the old board, dimmed, until the new one arrives (UI plan 9). */
.board-card.is-reloading[b-axztocd21k] {
	opacity: 0.55;
	pointer-events: none;
}

.board-card:focus-visible[b-axztocd21k] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* The timeline fills the card and only scrolls sideways once an hour would be narrower than the zoom's minimum. */
.board-rows[b-axztocd21k] {
	min-width: calc(var(--board-label-w) + var(--board-hours, 14) * var(--board-hour-w, 48px));
}

.board-head-row[b-axztocd21k] {
	display: grid;
	grid-template-columns: var(--board-label-w) minmax(0, 1fr);
	position: sticky;
	top: 0;
	z-index: 6;
	height: var(--board-scale-h);
	background: var(--surface-muted);
	border-bottom: 1px solid var(--line);
}

.board-corner[b-axztocd21k] {
	position: sticky;
	left: 0;
	z-index: 7;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 0 12px;
	background: var(--surface-muted);
	border-right: 1px solid var(--line);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.board-corner-text[b-axztocd21k] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Zoom - / + (issue 194 B3, R17): in the sticky corner, tied to the hour axis and visible at every scroll position. */
.board-zoom[b-axztocd21k] {
	display: inline-flex;
	gap: 4px;
	margin-left: auto;
	flex-shrink: 0;
}

.zoom-btn[b-axztocd21k] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	color: var(--ink-soft);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-xs);
	cursor: pointer;
}

.zoom-btn:hover:not([aria-disabled="true"])[b-axztocd21k],
.zoom-btn:focus-visible[b-axztocd21k] {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--surface-hover);
}

.zoom-btn:focus-visible[b-axztocd21k] {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
}

/* At the end of the steps: aria-disabled, not disabled, so a focused button keeps focus (issue 194 F m3); the click is
   a no-op there. */
.zoom-btn[aria-disabled="true"][b-axztocd21k] {
	color: var(--ink-faint);
	background: var(--surface-muted);
	border-color: var(--line);
	cursor: default;
	opacity: 0.7;
}

.board-scale[b-axztocd21k] {
	position: relative;
	min-width: 0;
}

.hour-tick[b-axztocd21k] {
	position: absolute;
	top: 9px;
	padding-left: 4px;
	font-size: 10px;
	line-height: 1;
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* The now pill (issue 194 B3): the current time at the now line's x, in the sticky scale, so it is readable at any
   vertical scroll position and never covers a bar or a focus ring. */
.now-pill[b-axztocd21k] {
	position: absolute;
	top: 7px;
	z-index: 1;
	transform: translateX(-50%);
	padding: 1px 5px;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--on-color);
	background: var(--board-now);
	border-radius: var(--radius-xs);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	pointer-events: none;
}

/* The drag's time pill (decision 264): a dark label in the sticky scale at the dragged day's ghost start, centred on it. The
   page module fills it (text, left, data-verdict, hidden) while a pointer or keyboard drag runs; Blazor renders it empty and
   hidden. Above the now pill. The colour follows the ghost's verdict (white on the dark ink tones, so AA in all three). */
.drag-time-pill[b-axztocd21k] {
	position: absolute;
	top: 6px;
	z-index: 2;
	transform: translateX(-50%);
	padding: 2px 7px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--on-color);
	background: var(--ink);
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	pointer-events: none;
}

.drag-time-pill[hidden][b-axztocd21k] {
	display: none;
}

.drag-time-pill[data-verdict="ok"][b-axztocd21k] {
	background: var(--success-ink);
}

.drag-time-pill[data-verdict="blocked"][b-axztocd21k] {
	background: var(--danger-ink);
}

.hour-tick[b-axztocd21k]::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 1px;
	height: 8px;
	background: var(--line-strong);
}

/* The JS module marks the hour label(s) the now pill sits on; the label hides, its tick mark stays. */
.hour-tick.is-covered[b-axztocd21k] {
	visibility: hidden;
}

.hour-tick.is-covered[b-axztocd21k]::before {
	visibility: visible;
}

@media (max-width: 1100px) {
	.board-card[b-axztocd21k] {
		--board-label-w: 160px;
	}

	/* Issue 194 D2: narrower, smaller and at most two lines, so the alert covers less of the hour scale and the day
	   header; the tighter line height and padding keep two lines about as tall as one line above 1100 px. Retry keeps
	   its size (flex-shrink 0) at the right. The title attribute holds the full text. */
	.board-overlay-alert[b-axztocd21k] {
		max-width: min(60%, 320px);
		padding: 3px 4px 3px 8px;
		font-size: 12px;
		line-height: 1.2;
	}

	.board-overlay-text[b-axztocd21k] {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}

	.board-corner-text[b-axztocd21k] {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (max-width: 780px) {
	.filter[b-axztocd21k] {
		flex: 1 1 160px;
	}
}

/* With the sidebar open the content is only ~340 px wide at 641-700 px: the week label wraps onto a second line
   instead of running under the next arrow. */
@media (max-width: 700px) {
	.week-label[b-axztocd21k] {
		flex: 0 1 auto;
		min-width: 0;
		white-space: normal;
	}
}

/* Short laptop windows: less chrome above the board. The subtitle and the strip hint stay for screen readers; a
   Serviceman keeps the read-only subtitle, which tells them why nothing can be moved.
   Depends on PageHeader's markup: it renders the subtitle as p.text-muted.mb-0.small (PageHeader.razor). If that
   element or its small class changes, the subtitle rule below silently stops matching; update both together. */
@media (min-width: 641px) and (max-height: 800px) {
	.planning-board-page:not(.is-read-only)[b-axztocd21k]  [data-component="PlanningBoard.Header"] p.small,
	.unscheduled-hint[b-axztocd21k],
	.unscheduled-hint-drag[b-axztocd21k] {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	/* PageHeader's own spacing is Bootstrap's mb-4 utility (!important); 12 px here. */
	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] {
		margin-bottom: 12px !important;
	}

	.board-filters[b-axztocd21k],
	.unscheduled-card[b-axztocd21k] {
		margin-bottom: 8px;
	}

	.unscheduled-card[b-axztocd21k] {
		padding-top: 6px;
		padding-bottom: 6px;
	}
}

/* Phones (issue 197): the grid is hidden below 768 px and the day list takes its place, see the list tier below. */
@media (max-width: 640.98px) {
	.unscheduled-card[b-axztocd21k] {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	/* 60 % of a phone-width card leaves too little room for two lines of text next to Retry. Below the hour scale (the
	   card's 1 px border, the 30 px scale row of .board-card's --board-scale-h, a 6 px gap): on a phone the alert spans
	   almost the whole card, and over the scale row it would cover the sticky corner's Zoom buttons (issue 194 D3). The
	   alert is the card's sibling, so it can't read that property; the touch rule below follows the 48 px scale row. */
	.board-overlay-alert[b-axztocd21k] {
		top: 37px;
		max-width: calc(100% - 36px);
	}

	.week-label[b-axztocd21k] {
		min-width: 0;
		white-space: normal;
	}

	.board-nav[b-axztocd21k] {
		flex-wrap: wrap;
	}

	/* The app's fixed menu button (NavMenu, 10 to 44 px down at the right edge) covers a control that keyboard focus (Shift+Tab)
	   scrolls to the very top: the week arrows, the two toggles' chevrons, a select's arrow. Focus lands 54 px down instead,
	   below the button. Not scroll-padding on the root: it would add to the day list cards' 102 px (issue 197 D fix 3, R3). */
	.board-btn[b-axztocd21k],
	.unscheduled-toggle[b-axztocd21k],
	.unscheduled-chip[b-axztocd21k],
	.board-filters .form-select[b-axztocd21k],
	.board-filters .filter-clear[b-axztocd21k],
	.board-filters-toggle[b-axztocd21k]  .btn-mobile-filters-toggle {
		scroll-margin-top: 54px;
	}
}

@media (forced-colors: active) {
	.now-pill[b-axztocd21k] {
		forced-color-adjust: none;
		color: HighlightText;
		background: Highlight;
	}

	/* The swatch is only a background, which forced colours drop. */
	.legend-swatch.swatch-now[b-axztocd21k] {
		forced-color-adjust: none;
		background: Highlight;
	}

	.board-overlay-alert[b-axztocd21k] {
		border-color: CanvasText;
	}

	/* aria-disabled (not disabled) keeps the end buttons focusable, so the browser doesn't grey them out itself
	   (issue 194 F R2-m2). */
	.zoom-btn[aria-disabled="true"][b-axztocd21k] {
		color: GrayText;
		border-color: GrayText;
	}
}

@media (pointer: coarse) {
	.board-btn[b-axztocd21k],
	.view-switch-option[b-axztocd21k],
	.form-select[b-axztocd21k],
	.filter-clear[b-axztocd21k],
	.unscheduled-chip[b-axztocd21k] {
		min-height: 44px;
	}

	/* The whole label is the switch's touch target, not only the knob. */
	.filter-switch[b-axztocd21k],
	.filter-switch .form-check-label[b-axztocd21k] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* 44 px zoom targets need a taller scale row; labels and ticks stay at its bottom. */
	.board-card[b-axztocd21k] {
		--board-scale-h: 48px;
	}

	.hour-tick[b-axztocd21k] {
		top: auto;
		bottom: 14px;
	}

	.now-pill[b-axztocd21k] {
		top: auto;
		bottom: 14px;
	}

	.zoom-btn[b-axztocd21k] {
		width: 44px;
		height: 44px;
	}

	.board-btn-icon[b-axztocd21k] {
		min-width: 44px;
	}

	.changes-slot[b-axztocd21k],
	.changes-indicator[b-axztocd21k] {
		width: 44px;
		height: 44px;
	}
}

/* Retry inside the overlay alert is a 44 px target on touch and on phones (issue 194 D3); the alert grows with it. */
@media (pointer: coarse), (max-width: 640.98px) {
	.board-overlay-alert .board-overlay-btn[b-axztocd21k] {
		min-height: 44px;
	}
}

/* Touch phones: the scale row is 48 px (pointer: coarse above), so the alert starts below that one: 1 + 48 + 6 px. After
   both rules it extends, so it wins over the plain phone placement. */
@media (max-width: 640.98px) and (pointer: coarse) {
	.board-overlay-alert[b-axztocd21k] {
		top: 55px;
	}
}

/* ---- Drag and drop (issue 196, UI plan 1, 2.6, 2.8, 3, 4.1). The page module sets data-drag-state on the page and fills
   the Blazor-owned drag layer; its elements carry no scope attribute, so they are reached with ::deep. The bar's and the
   band's drag states are in their own stylesheets. ---- */

/* Grab only where a mouse or pen can drag (CR-64, [Decision] issue 263; data-drag-input, see the Unscheduled hint above);
   touch and the phone tier keep the pointer cursor and open the popup. Bars and the Unscheduled chips (the chips are this
   page's own markup, so no ::deep). While a drop saves, a press shows it is busy (R9). */
.planning-board-page[data-drag="on"][data-drag-input~="pointer"][b-axztocd21k]  .planning-bar[data-movable="true"],
.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-chip[data-movable="true"][b-axztocd21k] {
	cursor: grab;
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"][b-axztocd21k]  .planning-bar[data-movable="true"]:active,
.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-chip[data-movable="true"]:active[b-axztocd21k] {
	cursor: grabbing;
}

.planning-board-page[data-drag-state="saving"][data-drag-input~="pointer"][b-axztocd21k]  .planning-bar[data-movable="true"],
.planning-board-page[data-drag-state="reverting"][data-drag-input~="pointer"][b-axztocd21k]  .planning-bar[data-movable="true"],
.planning-board-page[data-drag-state="saving"][data-drag-input~="pointer"] .unscheduled-chip[data-movable="true"][b-axztocd21k],
.planning-board-page[data-drag-state="reverting"][data-drag-input~="pointer"] .unscheduled-chip[data-movable="true"][b-axztocd21k] {
	cursor: progress;
}

/* A pen must not pan the card instead of dragging. Only where a press can drag, and only with a fine primary pointer, so a
   finger still pans the card on a touch tablet and on a phone. */
@media (hover: hover) and (pointer: fine) {
	.planning-board-page[data-drag="on"][data-drag-input~="pointer"][b-axztocd21k]  .planning-bar[data-movable="true"],
	.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .unscheduled-chip[data-movable="true"][b-axztocd21k] {
		touch-action: none;
	}
}

/* The subtitle's drag sentence and the bars' move help follow the same attribute (responsive review, issue 196): the
   drag sentence only where a press can drag; the keyboard sentence only where Alt+arrows move a bar (not the phone
   tier), else the Move to... sentence. A display: none part drops out of the bars' accessible description too. */
.subtitle-drag[b-axztocd21k],
.move-help-keys[b-axztocd21k] {
	display: none;
}

.planning-board-page[data-drag="on"][data-drag-input~="pointer"] .subtitle-drag[b-axztocd21k] {
	display: inline;
}

.planning-board-page[data-drag="on"][data-drag-input~="keyboard"] .move-help-keys[b-axztocd21k] {
	display: inline;
}

.planning-board-page[data-drag="on"][data-drag-input~="keyboard"] .move-help-menu[b-axztocd21k] {
	display: none;
}

/* The chip being dragged fades (its content, so a focus ring stays crisp); one that went back gets a short red ring and
   one dropped on a day leaves the strip (UI plan 2.4, 3). Static rings: nothing here moves. */
.unscheduled-chip[data-drag-source] > *[b-axztocd21k] {
	opacity: 0.4;
}

.unscheduled-chip[data-drag-returned][b-axztocd21k] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 1px;
}

/* The toast never hides a ghost near the bottom while dragging; its timer keeps running. */
.planning-board-page[data-drag-state="dragging"][b-axztocd21k]  [data-component="Toast.Root"] {
	opacity: 0.35;
	pointer-events: none;
}

.drag-layer[b-axztocd21k]  [data-hidden] {
	display: none;
}

/* The drag card (reasons tooltip): fixed, outside the card (whose containment would clip it), below the popup (1045), the
   modals and the toast, above the board's sticky layers. aria-hidden: the toast and the live regions speak. */
.drag-layer[b-axztocd21k]  .drag-card {
	position: fixed;
	z-index: 1040;
	display: flex;
	flex-direction: column;
	gap: 2px;
	box-sizing: border-box;
	/* Its own width, not the room left of its last position: positionCard measures it before moving it, so a
	   shrink-to-fit card measured near the right edge grew past the clamp (responsive review, issue 196). */
	width: max-content;
	min-width: min(240px, 100vw - 16px);
	max-width: 360px;
	padding: 8px 12px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	font-size: 12px;
	line-height: 1.35;
	pointer-events: none;
}

.drag-layer[b-axztocd21k]  .drag-card-head {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-soft);
}

.drag-layer[b-axztocd21k]  .drag-card-glyph {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	font-size: 14px;
}

/* A held card (issue 196 D3-1) stacks the held verdict's glyph and the spinner that replaces it after 300 ms. */
.drag-layer[b-axztocd21k]  .drag-card-glyph > * {
	grid-area: 1 / 1;
}

.drag-layer[b-axztocd21k]  .drag-card-glyph:empty {
	display: none;
}

.drag-layer[b-axztocd21k]  .drag-card-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.drag-layer[b-axztocd21k]  .drag-card-verdict {
	font-weight: 600;
	color: var(--ink-soft);
}

.drag-layer[b-axztocd21k]  .drag-card-items {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.drag-layer[b-axztocd21k]  .drag-card-item {
	overflow-wrap: anywhere;
	color: var(--ink);
}

.drag-layer[b-axztocd21k]  .drag-card-item[data-severity="warning"] {
	color: var(--warning-ink);
}

.drag-layer[b-axztocd21k]  .drag-card-item[data-severity="info"] {
	color: var(--ink-soft);
}

/* A plain ring; the module spins it (Web Animations, only after 300 ms and not with reduced motion). */
.drag-layer[b-axztocd21k]  .drag-card-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border: 2px solid var(--line-strong);
	border-top-color: var(--ink-soft);
	border-radius: var(--radius-pill);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="valid"] {
	background: var(--success-soft);
	border-color: var(--success-line);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="valid"] .drag-card-head,
.drag-layer[b-axztocd21k]  .drag-card[data-state="valid"] .drag-card-verdict {
	color: var(--success-ink);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="invalid"],
.drag-layer[b-axztocd21k]  .drag-card[data-state="changedElsewhere"] {
	background: var(--danger-soft);
	border-color: var(--danger-line);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="invalid"] .drag-card-head,
.drag-layer[b-axztocd21k]  .drag-card[data-state="invalid"] .drag-card-verdict,
.drag-layer[b-axztocd21k]  .drag-card[data-state="changedElsewhere"] .drag-card-head,
.drag-layer[b-axztocd21k]  .drag-card[data-state="changedElsewhere"] .drag-card-verdict {
	color: var(--danger-ink);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="unavailable"],
.drag-layer[b-axztocd21k]  .drag-card[data-state="unchanged"] {
	background: var(--surface-muted);
	border-color: var(--line-strong);
}

/* Pending with a held answer (issue 196, responsive re-check D3-1, fix round 3): the previous answer's colours, size and
   lines stay under a dashed border while the new slot is checked; the verdict line says "Checking collisions…" at full
   strength (the held verdict would state the wrong drop outcome), the held reasons (ink) are dimmed a little (0.8 keeps
   them at 7.8:1 or more, D4 N5), and the head shows the new slot's time and, after 300 ms, the spinner. The info and
   warning lines are already in the soft ink tones: at 0.8 they would fall to 3.4-3.8:1 (below AA for 12 px text), so they
   stay at full strength. */
.drag-layer[b-axztocd21k]  .drag-card[data-pending] {
	border-style: dashed;
}

.drag-layer[b-axztocd21k]  .drag-card[data-pending] .drag-card-item[data-severity="blocking"] {
	opacity: 0.8;
}

/* The compact card (D3-2): where the full card can't clear the pointer, the ghost and the conflicts (a 700-800 px window),
   only the head and the verdict show; the verdict wraps to a second line rather than being cut (D4 N3), so the card is
   about 54-70 px high; the reasons are in the drop's toast and, for a keyboard move, the announcement. */
.drag-layer[b-axztocd21k]  .drag-card[data-compact] .drag-card-items {
	display: none;
}

.drag-layer[b-axztocd21k]  .drag-card[data-compact] .drag-card-verdict {
	overflow-wrap: anywhere;
}

/* The keyboard move's hint card (R10) and the locked hint (UI plan 5.2, 5.3): one line, no glyph for the hint. */
.drag-layer[b-axztocd21k]  .drag-card[data-state="hint"] .drag-card-head {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
}

.drag-layer[b-axztocd21k]  .drag-card[data-state="locked"] {
	background: var(--surface-muted);
	border-color: var(--line-strong);
}

/* Outside the board: a token at the pointer says a release cancels (UI plan 2.8). */
.drag-layer[b-axztocd21k]  .drag-token {
	position: fixed;
	z-index: 1041;
	max-width: 280px;
	padding: 4px 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: var(--surface);
	border: 1px dashed var(--accent);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	color: var(--ink-soft);
	font-size: 11.5px;
	pointer-events: none;
}

.drag-layer[b-axztocd21k]  .drag-token-label {
	font-weight: 700;
	color: var(--ink);
}

/* The thin line from the time pill down to the ghost (decision 264). Fixed, measured by the module at every frame (so it holds
   while the card or the page scrolls), one layer under the drag card and the token, and it never catches the pointer. */
.drag-layer[b-axztocd21k]  .drag-time-line {
	position: fixed;
	z-index: 1038;
	width: 2px;
	background: var(--ink);
	border-radius: var(--radius-pill);
	pointer-events: none;
}

.drag-layer[b-axztocd21k]  .drag-time-line[data-verdict="ok"] {
	background: var(--success-ink);
}

.drag-layer[b-axztocd21k]  .drag-time-line[data-verdict="blocked"] {
	background: var(--danger-ink);
}

/* The snap-back: a fixed copy of each ghost day slides to its original bar (the module animates it). */
.drag-layer[b-axztocd21k]  .ghost-return {
	position: fixed;
	z-index: 1039;
	border-radius: var(--radius-sm);
	outline: 2px dashed var(--ink-soft);
	outline-offset: 2px;
	pointer-events: none;
}

.drag-layer[b-axztocd21k]  .ghost-return[data-state="invalid"],
.drag-layer[b-axztocd21k]  .ghost-return[data-state="changedElsewhere"] {
	outline-color: var(--danger-ink);
}

.drag-layer[b-axztocd21k]  .ghost-return[data-state="invalid"] .seg,
.drag-layer[b-axztocd21k]  .ghost-return[data-state="changedElsewhere"] .seg {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.drag-layer[b-axztocd21k]  .ghost-return[data-state="valid"],
.drag-layer[b-axztocd21k]  .ghost-return[data-state="saving"],
.drag-layer[b-axztocd21k]  .ghost-return[data-state="saved"] {
	outline: 2px solid var(--success-ink);
}

@media (forced-colors: active) {
	.drag-layer[b-axztocd21k]  .drag-card,
	.drag-layer[b-axztocd21k]  .drag-token {
		border: 1px solid CanvasText;
	}

	.drag-layer[b-axztocd21k]  .drag-card[data-pending] {
		border-style: dashed;
	}

	.drag-layer[b-axztocd21k]  .ghost-return {
		outline-color: CanvasText;
	}

	.drag-time-pill[b-axztocd21k] {
		border-color: CanvasText;
	}

	.drag-layer[b-axztocd21k]  .drag-time-line {
		forced-color-adjust: none;
		background: CanvasText;
	}

	.unscheduled-chip[data-drag-source][b-axztocd21k] {
		outline: 1px dashed CanvasText;
	}

	.unscheduled-chip[data-drag-returned][b-axztocd21k] {
		outline-color: Mark;
	}
}

/* Foldable cover screens (issue 197 D fix 2, N3): the header's week label takes what is left of the row between the two
   arrows and wraps inside its own box, so the arrows never wrap onto a row of their own (the nav wraps, and a label sized by
   its text, 174 px, did not fit the 248 px column next to two 44 px arrows). */
@media (max-width: 349.98px) {
	.week-label[b-axztocd21k] {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* Issue 372: the line above the "Unscheduled" strip: how many records from e-mail wait for confirmation (Admin and Technician).
   Warning tokens only (calm "needs attention"). It sits above the strip, which stays behind its toggle on a phone. */
.not-confirmed-notice[b-axztocd21k] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0 0 8px;
	padding: 6px 12px;
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-lg);
	color: var(--ink);
	font-size: 12px;
}

.not-confirmed-notice-icon[b-axztocd21k] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 13px;
	color: var(--warning-ink);
}

.not-confirmed-notice-text[b-axztocd21k] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.not-confirmed-notice-link[b-axztocd21k] {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}

.not-confirmed-notice-link:hover[b-axztocd21k] {
	color: var(--accent-strong);
	text-decoration: underline;
}

@media (max-width: 640px) {
	/* Text wraps; "Show" keeps a 44 px tap target. */
	.not-confirmed-notice[b-axztocd21k] {
		padding: 2px 12px;
	}

	.not-confirmed-notice-text[b-axztocd21k] {
		padding: 6px 0;
	}

	.not-confirmed-notice-link[b-axztocd21k] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 4px;
	}
}

/* A cover screen (about 280 px): the week arrows and the label need the whole row, so the slot is laid over the header's top right
   corner instead (the title and the eyebrow leave it room), the toast still hanging from it. It sits before the list tier block,
   which applies at this width too: the header and the slot rules set properties the list tier leaves alone, and the week nav's
   rule is more specific than the list tier's. */
@media (max-width: 349px) {
	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] {
		position: relative;
	}

	.changes-slot[b-axztocd21k] {
		position: absolute;
		top: 0;
		right: 0;
	}

	/* Two classes, so this wins over the list tier's ".board-nav { flex: 1 1 0 }" below it (the list tier block stays the
	   page's last block, a source-contract rule). */
	.board-header-actions .board-nav[b-axztocd21k] {
		flex: 0 1 auto;
	}
}

/* ---- The list tier (issue 197, contract CR-66, CR-77): the phone's day list instead of the grid. Below 768 px, and on a
   short touch screen (a phone held sideways). The same media query, as one literal, is in PlanningDayList.razor.css and
   PlanningBoard.razor.js (ListQuery); a source-contract test keeps the three equal. The page renders both layouts and this
   rule set shows one of them, so prerender, the live refresh and a resize across the breakpoint need no round trip. ---- */
.board-day-list-wrap[b-axztocd21k],
.board-mobile-controls[b-axztocd21k],
.board-filters-toggle[b-axztocd21k] {
	display: none;
}

/* Issue 372 fix round 1: the not-confirmed notice's list-tier copy (above the toggles) is shown on the list tier only. */
.not-confirmed-notice-list-tier[b-axztocd21k] {
	display: none;
}

@media (max-width: 767.98px), (max-height: 480px) and (pointer: coarse) {
	/* The page is a plain column here: no viewport-high flex chain (no floor, nothing grows), the list simply scrolls with the
	   page. This also overrides the 641 px page floor above for 641-767 px. */
	.planning-board-page[b-axztocd21k] {
		display: block;
		min-height: 0;
	}

	/* Issue 372 fix round 1: the not-confirmed notice above the two toggles (the approved picture), not below the filters. */
	.not-confirmed-notice-list-tier[b-axztocd21k] {
		display: flex;
	}

	.not-confirmed-notice-grid-tier[b-axztocd21k] {
		display: none;
	}

	/* The grid and the drag's floating layer are gone; the wrapper stays, because it is the positioned box of the overlay
	   alerts (a failed refresh or load), which become ordinary blocks above the list instead of floating over the card. */
	.board-card[b-axztocd21k],
	.drag-layer[b-axztocd21k] {
		display: none;
	}

	.board-card-wrap[b-axztocd21k] {
		flex: none;
		min-height: 0;
		max-height: none;
	}

	.board-overlay-alert[b-axztocd21k] {
		position: static;
		max-width: none;
		margin-bottom: 8px;
	}

	.board-day-list-wrap[b-axztocd21k] {
		display: block;
		min-width: 0;
	}

	/* The two toggles share one row above the list: "Filters" and "Unscheduled · 12" (issue 197 D fix 3, R1: the second 44 px row
	   pushed the first card's time row off the first screen of a phone held sideways; one row returns 53 px). In the markup,
	   on screen and in the tab order the row comes first and the panels it opens follow it (filters, then the strip), so the
	   order is the same everywhere. From 480 px the two share the row equally; below that the Filters button keeps the width of
	   its words and the strip's takes the rest, and when even that is too narrow (a cover screen with the count pill) the row
	   wraps and they stack, each as wide as the row. */
	.board-mobile-controls[b-axztocd21k] {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0 0 8px;
	}

	.board-filters-toggle[b-axztocd21k] {
		display: block;
		flex: 1 0 auto;
		min-width: 0;
	}

	.unscheduled-toggle-heading[b-axztocd21k] {
		flex: 1 1 170px;
		min-width: 0;
		margin: 0;
		font: inherit;
	}

	/* The strip's card: only open, under the row, with the hint and today's chips. Closed, the whole section is gone from the
	   screen and the tab order (the toggle is its stand-in, and the heading that names it is not shown there). */
	.unscheduled-card[b-axztocd21k] {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0 0 8px;
		padding: 8px 0 0;
	}

	.unscheduled-card:not(.is-expanded)[b-axztocd21k] {
		display: none;
	}

	/* Both toggles are the same visible button: a 44 px outlined row, the label and the chevron together in the middle (the
	   design system's disclosure button, MobileFiltersToggle), the border and fill of the list's date buttons (D fix 3, R4). */
	.unscheduled-toggle[b-axztocd21k] {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: 100%;
		min-height: 44px;
		margin: 0;
		padding: 0 12px;
		border: 1px solid var(--line-strong);
		border-radius: var(--radius-sm);
		background: var(--surface);
		color: var(--ink);
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.25;
		text-align: center;
		cursor: pointer;
	}

	.unscheduled-toggle:focus-visible[b-axztocd21k] {
		outline: 2px solid var(--ink);
		outline-offset: 2px;
	}

	.unscheduled-toggle-text[b-axztocd21k] {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.unscheduled-toggle-icon[b-axztocd21k] {
		display: inline-flex;
		flex: none;
		font-size: 14px;
		color: var(--ink-soft);
	}

	.unscheduled-toggle[aria-expanded="true"] .unscheduled-toggle-icon[b-axztocd21k] {
		transform: rotate(180deg);
	}

	/* The toggle is the heading here: the strip's own title is not shown (the open card keeps it as its accessible name). */
	.unscheduled-title[b-axztocd21k] {
		display: none;
	}

	.unscheduled-head[b-axztocd21k] {
		padding: 0 12px;
	}

	.unscheduled-empty[b-axztocd21k] {
		padding: 4px 12px 12px;
	}

	.unscheduled-track[b-axztocd21k] {
		margin: 0;
		padding: 4px 8px 12px;
	}

	/* The page subtitle is up to three lines of explanation; it stays for screen readers and goes from the screen. The header
	   keeps its title and the week arrows, with less air under it (PageHeader's mb-4 is !important). */
	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] p.small {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] {
		margin-bottom: 12px !important;
	}

	/* A visible button (the shared toggle's .btn-outline has no style in this page): the same border and fill as the date
	   buttons of the list, so it doesn't read as plain text (issue 197 D fix P2). The row carries the space under it. The
	   label and the focus ring are the Unscheduled toggle's too, so the two read as one pair (D fix 4: the shared toggle's
	   compact .btn is 12.5 px regular, and Bootstrap adds its focus shadow to the ring); only this page's copy changes,
	   the Complaints list keeps the shared look. */
	.board-filters-toggle[b-axztocd21k]  .btn-mobile-filters-toggle {
		height: 44px;
		margin-bottom: 0;
		border: 1px solid var(--line-strong);
		border-radius: var(--radius-sm);
		background: var(--surface);
		color: var(--ink);
		font-size: 14px;
		font-weight: 700;
		line-height: 1.25;
	}

	.board-filters-toggle[b-axztocd21k]  .btn-mobile-filters-toggle:focus-visible {
		outline: 2px solid var(--ink);
		outline-offset: 2px;
		box-shadow: none;
	}

	/* After a tap or click (focus without :focus-visible) app.css's .btn:focus double ring stayed until focus moved, while the
	   Unscheduled toggle (no .btn) shows none: no ring there either (issue 197 D fix 5, P-1). The keyboard ring is above. */
	.board-filters-toggle[b-axztocd21k]  .btn-mobile-filters-toggle:focus:not(:focus-visible) {
		box-shadow: none;
	}

	/* The three selects share the width of the column, however narrow it is. The legend's spacer (it only pushes the legend to
	   the right end of the row, and the legend is hidden here) would take half of the last row's free width. */
	.filter-person[b-axztocd21k],
	.filter-car[b-axztocd21k],
	.filter-status[b-axztocd21k] {
		flex: 1 1 200px;
	}

	.board-filters[b-axztocd21k]::after {
		display: none;
	}

	.board-filters.mobile-collapsed[b-axztocd21k] {
		display: none;
	}

	/* Page chrome the list has no use for: the view switch (the list is always a day of a week), the weekend toggle (the
	   list shows Monday to Sunday), the legend (cards carry worded status badges) and the header's Today (the list has its
	   own). The header's week arrows and label stay, so the URL links of CR-25 are unchanged. */
	.view-switch[b-axztocd21k],
	.filter-switch[b-axztocd21k],
	.legend[b-axztocd21k],
	[data-component="PlanningBoard.WeekNav.Today"][b-axztocd21k] {
		display: none;
	}

	/* The view switch is gone, so its group is too, and the changes button's slot sits in the header's row at the right edge,
	   after the week arrows, which take the rest of the row (fix round 2: the toast that hangs from the slot, right-aligned,
	   then stays inside the screen, and the slot is there with or without the button). */
	.view-group[b-axztocd21k] {
		display: contents;
	}

	.board-header-actions[b-axztocd21k] {
		width: 100%;
	}

	.board-nav[b-axztocd21k] {
		flex: 1 1 0;
	}

	/* The head as the Figma frame 32-1651 draws it (issue 267): the eyebrow 10 px bold with 0.06em of spacing, the title 20 px bold
	   (the page's own, the other pages keep the shared 500 weight). */
	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] .eyebrow {
		font-size: 10px;
		line-height: 11px;
		letter-spacing: 0.06em;
	}

	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] h1 {
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 23px;
	}
}

/* A short screen of the list tier (a phone held sideways, a cover screen 480 px high, issue 197 D fix 3, R1): the first card's time
   row has to be on the first screen, so the page's own chrome above the list gets smaller. The eyebrow ("Service plans") goes from
   the screen like the subtitle (it stays for screen readers), the title is 20 px and the header wraps with 8 px between its rows
   and 4 px under it (PageHeader's gap-3 and mb-4 are !important, so these are too); the rows under it have 4 px between them. */
@media (max-height: 480px) and (max-width: 767.98px), (max-height: 480px) and (pointer: coarse) {
	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] .eyebrow {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] h1 {
		font-size: 1.25rem;
	}

	.planning-board-page[b-axztocd21k]  [data-component="PlanningBoard.Header"] {
		margin-bottom: 4px !important;
		row-gap: 8px !important;
	}

	.board-mobile-controls[b-axztocd21k],
	.unscheduled-card[b-axztocd21k] {
		margin-bottom: 4px;
	}
}

/* From 480 px the two toggles of the list tier share their row equally (issue 197 D fix 3, R1); below, the Filters button
   keeps the width of its words and the strip's takes the rest (the list tier block above). */
@media (min-width: 480px) {
	.board-filters-toggle[b-axztocd21k],
	.unscheduled-toggle-heading[b-axztocd21k] {
		flex: 1 1 0;
	}
}
/* /Components/Pages/ServicePlanning/ServicePlanDetail.razor.rz.scp.css */
.service-plan-detail-page[b-jlrq3ib75q] {
	color: var(--ink);
}

.eyebrow[b-jlrq3ib75q] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-jlrq3ib75q] {
	color: var(--accent);
}

.link-plain[b-jlrq3ib75q] {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.link-plain:hover[b-jlrq3ib75q] {
	text-decoration: underline;
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	/* Fix round 2 (D3): the height of the changes bell, so it appearing in the row doesn't move the page. */
	min-height: 32px;
}

.title-row h1[b-jlrq3ib75q] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.actions[b-jlrq3ib75q] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-jlrq3ib75q] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-jlrq3ib75q],
[b-jlrq3ib75q] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-jlrq3ib75q] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-jlrq3ib75q] {
	background: var(--danger-soft);
}

.btn-outline[b-jlrq3ib75q] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-jlrq3ib75q] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-jlrq3ib75q] {
	height: 30px;
	padding: 0 11px;
	font-size: 12.5px;
}

[b-jlrq3ib75q] .icon-plus,
[b-jlrq3ib75q] .icon-pencil,
[b-jlrq3ib75q] .icon-search {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Badges (status), shared palette with the Complaints module */

.badge[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-jlrq3ib75q] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-jlrq3ib75q] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-jlrq3ib75q] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-jlrq3ib75q] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-jlrq3ib75q] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-jlrq3ib75q] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-jlrq3ib75q] { background: var(--line-soft); color: var(--ink-soft); }

.priority-low[b-jlrq3ib75q] { background: var(--priority-low-bg); color: var(--priority-low-ink); }
.priority-medium[b-jlrq3ib75q] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }
.priority-high[b-jlrq3ib75q] { background: var(--priority-high-bg); color: var(--priority-high-ink); }
.priority-critical[b-jlrq3ib75q] { background: var(--priority-critical-bg); color: var(--priority-critical-ink); }
.priority-none[b-jlrq3ib75q] { background: var(--line-soft); color: var(--ink-soft); }

.badge-callissues[b-jlrq3ib75q] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	text-decoration: none;
	cursor: pointer;
}

.badge-callissues:hover[b-jlrq3ib75q] {
	border-color: var(--accent);
}

/* Email source info icon (title row) - issue #52 */

.icon-btn-info[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-info:hover[b-jlrq3ib75q] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Layout */

/* Issue 279: the tab bar directly under the top bar. Reuses the Stock/Import.razor tab pattern (role="tablist",
   role="tab", aria-selected, classes .tabs/.tab). Five tabs exist in the markup always; .tab-phone-only (Assignment,
   Workers) is hidden above the phone breakpoint, where those two boxes already live in "Plan details" - see
   .tab-root below. */
.tabs[b-jlrq3ib75q] {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.tabs[b-jlrq3ib75q]::-webkit-scrollbar {
	display: none;
}

.tab[b-jlrq3ib75q] {
	border: 0;
	background: none;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
}

.tab[aria-selected="true"][b-jlrq3ib75q] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

@media (min-width: 641px) {
	.tab-phone-only[b-jlrq3ib75q] {
		display: none;
	}

	/* A wide window never shows the "assignment"/"workers" tab buttons, but a link saved from a phone can still open
	   with that tab value in the address - its boxes already fall back to "Plan details" (the show-rules below), so
	   the "Plan details" button should look selected too, instead of no tab being highlighted at all. :has() reaches
	   across to a hidden sibling's own aria-selected (same technique as .service-plan-detail-page:has(.restore-
	   conflicts) elsewhere in this file). */
	.tabs:has(.tab-phone-only[aria-selected="true"]) .tab[data-tab="details"][b-jlrq3ib75q] {
		color: var(--accent);
		border-bottom-color: var(--accent);
	}
}

/* Issue 279: the tab content. Every box below stays in the DOM on every tab (Save Plan posts every tab's values,
   and switching tabs keeps unsaved edits) - only CSS shows/hides and repositions them, keyed off .tab-active-<tab>
   on .tab-root. The Schedule card sits outside the EditForm (CR-117) as a sibling of it; .schedule-wrap and the
   form are both children of .tab-root, which is why the Schedule card can be shown/hidden by the same rule as the
   form's own boxes. "assignment"/"workers" are phone-only tab *values*: a wide window never shows their buttons, so
   their boxes fall back to showing under "details" there (dev note: "assignment and workers open details"). */
.tab-root[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.schedule-wrap[b-jlrq3ib75q] {
	display: none;
	order: -1;
}

/* grid-auto-flow: row dense lets an item fill an earlier, still-empty cell instead of only ever moving forward -
   needed because the boxes below are placed by column only (no explicit row): with the default "sparse" packing the
   auto-placement cursor only moves forward, so a column-2 box that comes after several column-1 boxes in the DOM
   gets pushed down instead of landing in column 2's first free row (this is what left Worker Selection at the
   bottom of the right column, with a blank gap above it, in the live review of fix round 1). order (below) controls
   both the box's visual position on the "Plan details" tab AND the row search order dense packing uses, so the two
   together give the exact per-tab sequence without needing to reorder the markup itself. */
.tab-content[b-jlrq3ib75q] {
	display: grid;
	grid-auto-flow: row dense;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

/* Every card is hidden by default - the active tab's own show-rules (further down) override this. .col-left/
   .col-right nest their cards one level deeper than Vehicle's/Time & dates' (direct children of .tab-content), so
   both levels need the blanket rule. */
.tab-content > *[b-jlrq3ib75q],
.col-left > *[b-jlrq3ib75q],
.col-right > *[b-jlrq3ib75q] {
	display: none;
}

/* .col-left/.col-right (Figma update, 2026-11-06, node 88:292): transparent by default (display:contents) so every
   rule below - grid-column, order, the per-tab display:block show-rules - keeps reaching the actual card elements
   exactly as if these wrappers didn't exist; only at >1400px (min-width:1401px further down) do they become real
   flex columns, each hugging its own visible card(s)' natural height with no shared CSS Grid row track to couple it
   to the other column - the fix for the gap a shared grid produced whenever the two columns' cards weren't the same
   height (confirmed live: Worker Selection taller than Complaint & Address left a ~150px gap before Procedure).
   Below 1400px, and for the Vehicle/Time & dates tabs (one box per column, nothing to couple), nothing changes. */
.col-left[b-jlrq3ib75q],
.col-right[b-jlrq3ib75q] {
	display: contents;
}

/* ChargeItemsCard/BillingSourceCard render through a child component (DetailCard), so their root element carries
   that component's own CSS-isolation scope, not this page's - a plain selector silently matches nothing. ::deep
   reaches across that boundary; every rule below that targets either card repeats the ::deep combinator (fix round
   2: the live review found both cards visible on every tab and in the wrong column, because the plain
   `.tab-content > *`/`[data-component=...]` rules never matched them at all). */
.tab-content[b-jlrq3ib75q]  [data-component="ChargeItemsCard"],
.tab-content[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
	display: none;
}

.box-assignment[b-jlrq3ib75q],
.box-procedure[b-jlrq3ib75q],
.box-vehicle-usage[b-jlrq3ib75q],
.box-logged-hours[b-jlrq3ib75q],
.tab-content[b-jlrq3ib75q]  [data-component="ChargeItemsCard"] {
	grid-column: 1;
}

.box-workers[b-jlrq3ib75q],
.box-accommodation[b-jlrq3ib75q],
.box-suitable-car[b-jlrq3ib75q],
.box-requested-dates[b-jlrq3ib75q],
.tab-content[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
	grid-column: 2;
}

/* Figma order within a column, for the tabs where more than one of a column's boxes show together ("Plan details"
   only - every other tab has at most one box per column, where order has no effect). The left (1-3) and right
   (11-14) ranges don't touch: below 1400px every box forces grid-column:1 (single column, see further down), where
   dense packing places items purely by order - with non-overlapping ranges that reads as the whole left block
   (Complaint & Address, Procedure, Charge items) followed by the whole right block (Worker Selection,
   Accommodation, Billing), the same stacking a resized/narrow window already gave the rest of this page's
   two-column cards before this issue. Figma update (2026-11-06, node 88:292): Accommodation moved from the left
   column (under Procedure) to the right column (under Worker Selection) - this also fixed the uneven row-height
   gap the live review found in fix round 2. Issue 284 (W14): "Complaint & Address" moves there too, under
   Accommodation, but only above 1400px - the base order below (1) still stacks it first up to 1400px and on a phone,
   and the min-width: 1401px block further down gives it 13 (Billing 14). Its markup is in .col-right: above 1400px
   an item can't leave its flex column, so order alone could not move it. */
.box-assignment[b-jlrq3ib75q] { order: 1; }
.box-procedure[b-jlrq3ib75q] { order: 2; }
.tab-content[b-jlrq3ib75q]  [data-component="ChargeItemsCard"] { order: 3; }
.box-workers[b-jlrq3ib75q] { order: 11; }
.box-accommodation[b-jlrq3ib75q] { order: 12; }
.tab-content[b-jlrq3ib75q]  [data-component="BillingSourceCard"] { order: 13; }
.box-vehicle-usage[b-jlrq3ib75q] { order: 1; }
.box-suitable-car[b-jlrq3ib75q] { order: 2; }
.box-logged-hours[b-jlrq3ib75q] { order: 1; }
.box-requested-dates[b-jlrq3ib75q] { order: 2; }

/* Above the single-column collapse (max-width:1400px, further down): .col-left/.col-right become real, independent
   flex columns instead of being transparent. grid-column here places the COLUMN itself; order on each card (above)
   still sequences whichever of its own children are visible - flex items respect order exactly as grid items do. */
@media (min-width: 1401px) {
	.col-left[b-jlrq3ib75q],
	.col-right[b-jlrq3ib75q] {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.col-left[b-jlrq3ib75q] {
		grid-column: 1;
	}

	.col-right[b-jlrq3ib75q] {
		grid-column: 2;
	}

	/* Issue 284 (W14): right column, top to bottom: Worker Selection (11), Accommodation (12), Complaint & Address (13), Billing (14).
	   The base order of .box-assignment (1) is what places it first in the one-column stacking up to 1400px. */
	.box-assignment[b-jlrq3ib75q] {
		order: 13;
	}

	.tab-content[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
		order: 14;
	}

	/* Figma correction (2026-11-06, node 88:292, re-read after the user flagged the live page didn't match): the
	   Schedule card is NOT a full-width banner above a separate 2-column grid - in Figma, "Grid" has exactly two
	   children, Left column (Schedule, then Procedure and Charge items) and Right column (Worker Selection, then
	   Accommodation; since issue 284 also Complaint & Address, then Billing), and Right column's top aligns with
	   Schedule's top, not with the first card below it in the left column. The
	   Schedule card still has to stay a DOM sibling of <EditForm>, never a descendant (CR-117: Blazor rebuilds the
	   form's EditContext, and every child inside it, whenever the Model parameter's identity changes, which the
	   Schedule card's own save flow would trigger) - so to get Figma's layout without moving it into the form,
	   .tab-root itself becomes the real 2-column grid, and the form/.tab-content wrappers go display:contents (on
	   the tabs where Schedule participates) so .col-left/.col-right - already real flex columns, directly above -
	   become its direct grid items instead, sitting beside .schedule-wrap. Vehicle/Time & dates don't show the
	   Schedule card at all, so their form/.tab-content stay normal boxes (unaffected) and just span both columns.
	   The literal <form> tag is rendered by EditForm's own internal template, not by this page's markup, so (same
	   reason ChargeItemsCard/BillingSourceCard need it above) it never carries this page's CSS-isolation scope
	   attribute - every selector that targets #service-plan-detail-form itself needs ::deep. */
	.tab-root[b-jlrq3ib75q] {
		display: grid;
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		gap: 12px;
	}

	/* baler-responsive-reviewer (2026-11-06): without this, row 1 is an implicit auto row shared by .schedule-wrap
	   AND .col-right (which spans rows 1-2) - an auto row's height is the max of every item placed in it, so a
	   right column taller than the Schedule card (e.g. a Serviceman/Customer view without Charge items, or a long
	   worker-unavailability reason list) stretches row 1 to match it, leaving a gap between Schedule and Procedure
	   (before issue 284, Complaint & Address). Scoped to the three tabs where Schedule shows - Vehicle/Time & dates' form/.tab-content aren't
	   dissolved, so they never see this grid's rows at all, and giving them an unused 1fr row would just add a
	   12px gutter. */
	.tab-root.tab-active-details[b-jlrq3ib75q],
	.tab-root.tab-active-assignment[b-jlrq3ib75q],
	.tab-root.tab-active-workers[b-jlrq3ib75q] {
		grid-template-rows: auto 1fr;
	}

	.schedule-wrap[b-jlrq3ib75q] {
		grid-column: 1;
		grid-row: 1;
	}

	[b-jlrq3ib75q] #service-plan-detail-form {
		grid-column: 1 / -1;
	}

	.tab-active-details[b-jlrq3ib75q]  #service-plan-detail-form,
	.tab-active-assignment[b-jlrq3ib75q]  #service-plan-detail-form,
	.tab-active-workers[b-jlrq3ib75q]  #service-plan-detail-form,
	.tab-active-details .tab-content[b-jlrq3ib75q],
	.tab-active-assignment .tab-content[b-jlrq3ib75q],
	.tab-active-workers .tab-content[b-jlrq3ib75q] {
		display: contents;
	}

	.tab-active-details .col-left[b-jlrq3ib75q],
	.tab-active-assignment .col-left[b-jlrq3ib75q],
	.tab-active-workers .col-left[b-jlrq3ib75q] {
		grid-row: 2;
	}

	.tab-active-details .col-right[b-jlrq3ib75q],
	.tab-active-assignment .col-right[b-jlrq3ib75q],
	.tab-active-workers .col-right[b-jlrq3ib75q] {
		grid-row: 1 / span 2;
	}

	/* ValidationSummary renders a direct <ul class="text-danger"> child of the form - once the form dissolves
	   (above), it would otherwise auto-place into whichever grid cell is free, which the browser resolves by adding
	   an implicit row below everything else. Giving it the full width explicitly keeps that fallback tidy instead of
	   leaving it to squeeze into a single column. */
	[b-jlrq3ib75q] #service-plan-detail-form > .text-danger {
		grid-column: 1 / -1;
	}
}

@media (min-width: 641px) {
	.tab-active-details .schedule-wrap[b-jlrq3ib75q],
	.tab-active-assignment .schedule-wrap[b-jlrq3ib75q],
	.tab-active-workers .schedule-wrap[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-details .box-assignment[b-jlrq3ib75q], .tab-active-assignment .box-assignment[b-jlrq3ib75q], .tab-active-workers .box-assignment[b-jlrq3ib75q],
	.tab-active-details .box-procedure[b-jlrq3ib75q], .tab-active-assignment .box-procedure[b-jlrq3ib75q], .tab-active-workers .box-procedure[b-jlrq3ib75q],
	.tab-active-details .box-accommodation[b-jlrq3ib75q], .tab-active-assignment .box-accommodation[b-jlrq3ib75q], .tab-active-workers .box-accommodation[b-jlrq3ib75q],
	.tab-active-details .box-workers[b-jlrq3ib75q], .tab-active-assignment .box-workers[b-jlrq3ib75q], .tab-active-workers .box-workers[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-details[b-jlrq3ib75q]  [data-component="ChargeItemsCard"], .tab-active-assignment[b-jlrq3ib75q]  [data-component="ChargeItemsCard"], .tab-active-workers[b-jlrq3ib75q]  [data-component="ChargeItemsCard"],
	.tab-active-details[b-jlrq3ib75q]  [data-component="BillingSourceCard"], .tab-active-assignment[b-jlrq3ib75q]  [data-component="BillingSourceCard"], .tab-active-workers[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
		display: block;
	}

	.tab-active-vehicle .box-vehicle-usage[b-jlrq3ib75q],
	.tab-active-vehicle .box-suitable-car[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-time .box-logged-hours[b-jlrq3ib75q],
	.tab-active-time .box-requested-dates[b-jlrq3ib75q] {
		display: block;
	}
}

/* Phone (issue 279): five tabs, each box in exactly one of them. .tab-content stays the same grid as above (the
   1-column collapse below, shared with the desktop-resize breakpoint, already stacks everything) - order (above)
   both positions and sequences the boxes, so "Assignment" only needs to override box-accommodation's order to put
   it before Complaint & Address, the opposite of their order on "Plan details". "Plan details" shows the Schedule
   card first (issue 284, picture "Plan details" on a phone), then Procedure and Charge items: the Schedule card is a
   sibling of .tab-content, not one of its grid items, and keeps the base order -1 of .schedule-wrap. Worker Selection
   gets its own "Workers" tab; Vehicle/Time match the wide-window tabs. Charge items/billing (not part of this redesign)
   stay with their wide-window "home" tab. */
@media (max-width: 640px) {
	/* ChargeItemsCard (admin/technician-only, not part of the Figma redesign) sits after Procedure on "Plan details"
	   (order 2/4 below). The Schedule card is a separate flex item of .tab-root, outside the EditForm (CR-117); issue 284
	   puts it first, as the approved phone picture shows: Days & times, then Procedure, then Charge items (before issue 284 a
	   rule here moved it after the whole .tab-content block).

	   The Figma phone order (Plan details, Assignment, Workers, Vehicle, Time & dates) differs from the DOM/desktop
	   order (Plan details, Vehicle, Time & dates, Assignment, Workers - the desktop-only tabs come first since
	   Assignment/Workers are desktop-hidden phone-only values). .tabs is a flex row, so `order` moves the buttons
	   without touching the DOM the desktop tablist and aria-selected logic share. */
	.tab[data-tab="details"][b-jlrq3ib75q] { order: 1; }
	.tab[data-tab="assignment"][b-jlrq3ib75q] { order: 2; }
	.tab[data-tab="workers"][b-jlrq3ib75q] { order: 3; }
	.tab[data-tab="vehicle"][b-jlrq3ib75q] { order: 4; }
	.tab[data-tab="time"][b-jlrq3ib75q] { order: 5; }

	.tab-active-details .box-procedure[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-details[b-jlrq3ib75q]  [data-component="ChargeItemsCard"] {
		display: block;
	}

	.tab-active-details .schedule-wrap[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-assignment .box-accommodation[b-jlrq3ib75q] {
		display: block;
		order: -1;
	}

	.tab-active-assignment .box-assignment[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-workers .box-workers[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-workers[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
		display: block;
	}

	.tab-active-vehicle .box-vehicle-usage[b-jlrq3ib75q],
	.tab-active-vehicle .box-suitable-car[b-jlrq3ib75q] {
		display: block;
	}

	.tab-active-time .box-logged-hours[b-jlrq3ib75q],
	.tab-active-time .box-requested-dates[b-jlrq3ib75q] {
		display: block;
	}
}

.card[b-jlrq3ib75q] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-jlrq3ib75q] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-jlrq3ib75q] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link (Schedule
   card only - toggling it also flips the Procedure card, which shares the
   same _isEditingDetails flag). */
.card-head-row[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-jlrq3ib75q] {
	margin-bottom: 0;
}

.link-btn[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover:not(:disabled)[b-jlrq3ib75q] {
	text-decoration: underline;
}

/* Inside a disabled fieldset (e.g. the km-entry mode switch for a caller who
   can't add km) the link must not look clickable. */
.link-btn:disabled[b-jlrq3ib75q] {
	color: var(--ink-faint);
	cursor: default;
	text-decoration: none;
}

.table-card-head[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.field-row[b-jlrq3ib75q] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-jlrq3ib75q] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-jlrq3ib75q] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.field .value-box[b-jlrq3ib75q],
.value-box[b-jlrq3ib75q] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	background: var(--surface-muted);
	color: var(--ink-soft);
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	display: flex;
	align-items: center;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT
   .value-box (no border, no background, no padding box). .value-box stays
   reserved for the Address box and the Linked Complaint field, both real
   always-visible widgets, not the toggle's read-only state. */
.field-value[b-jlrq3ib75q] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Issue 285 (epic 281 W8): the two totals of the Procedure box. Always two columns, also on a phone (picture 109:610); a total
   is a short number, so the pair fits at 320 px. .total-box looks like the grey read-only boxes but is its own class:
   .value-box stays reserved for the Address box and the Linked Complaint, .field-value has no background. */
.totals-row[b-jlrq3ib75q] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto;
	gap: 4px 12px;
}

/* One subgrid row for the labels and one for the boxes: a label on two lines or a box on two lines (the labels wrap
   differently, in cs too) moves both, so the pair stays level and equally high at every width. */
.total-field[b-jlrq3ib75q] {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	min-width: 0;
}

.total-field .form-label[b-jlrq3ib75q] {
	align-self: end;
}

.total-box[b-jlrq3ib75q] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start; /* the box beside a wrapped one is taller: keep its number on the same line as the other number */
	column-gap: 8px;
	row-gap: 2px;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.total-value[b-jlrq3ib75q] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

/* The small "from the schedule" sits at the right of the box; on a very narrow box it wraps under the number. */
.total-source[b-jlrq3ib75q] {
	margin-left: auto;
	font-size: 11px;
	color: var(--ink-faint);
	text-align: right;
}

/* Two classes: the plain .field-help further down would win otherwise. */
.field-help.totals-help[b-jlrq3ib75q] {
	margin: 6px 0 10px;
}

.no-schedule-warning[b-jlrq3ib75q] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.no-schedule-glyph[b-jlrq3ib75q] {
	display: inline-flex;
	padding-top: 1px;
	flex-shrink: 0;
}

/* Issue 289 (epic 281, picture 289-price-estimate-desktop.png): "Price estimate" under the totals, at the right of the Procedure
   card; full width on a phone. The picture draws it in the accent (it opens a window, it doesn't edit the card). */
.estimate-row[b-jlrq3ib75q] {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 10px;
}

.estimate-button[b-jlrq3ib75q] {
	gap: 6px;
	border-color: var(--accent);
	color: var(--accent);
}

.estimate-button:hover[b-jlrq3ib75q] {
	background: var(--accent-soft);
	border-color: var(--accent-strong);
	color: var(--accent-strong);
}

[b-jlrq3ib75q] .estimate-icon {
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.estimate-button[b-jlrq3ib75q] {
		width: 100%;
	}
}

/* Real InputText/InputDate controls default to Bootstrap's
   ~38px control height - match them to the .field-value footprint above
   (~32px, 12.5px type) so editable and read-only fields read as the same
   density. These are framework components, not plain HTML written in this
   page - their rendered <input> never gets this page's CSS-isolation scope
   attribute, so reaching them requires ::deep. */
.field[b-jlrq3ib75q]  .form-control {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

/* Higher specificity than the ancestor-qualified rule above (adds a type
   selector) so the Repair Procedure / Tools and Parts textareas - which
   ARE wrapped in .field, unlike MachineDetail's/DistributorDetail's Notes
   cards - don't get force-collapsed to the single-line 32px height. See
   razor-page-design-system's ::deep specificity gotcha (this exact bug hit
   Staff Detail's Notes card once already). */
.field[b-jlrq3ib75q]  textarea.form-control {
	height: auto;
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Field-level label row - a field's own label plus any inline status
   badge and/or an icon-only edit action, e.g. Address's
   "ADDRESS  * Verified  [pencil]" header above the address box. Matches
   ComplaintDetail's Machine Address treatment. */
.field-label-row[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.field-label-row .form-label[b-jlrq3ib75q] {
	margin-bottom: 0;
}

.icon-btn-edit[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn-edit:hover[b-jlrq3ib75q] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Address box (opens AddressPickerModal) - plain .field-value text like
   every other read-only field in this card (no border/background box),
   just with pointer/hover/double-click affordances layered on since it's
   still clickable. Matches ComplaintDetail's Machine Address box. */

.address-box[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.address-box .address-text[b-jlrq3ib75q] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.address-box:hover .address-text[b-jlrq3ib75q] {
	color: var(--accent);
}

/* Date fields: overlay a calendar icon on the plan date input. The icon lives
   in its own row (sibling of the label, not stacked under it), so it centers
   on the input itself regardless of label height/wrapping. */

.date-field[b-jlrq3ib75q] {
	position: relative;
	display: flex;
	align-items: center;
}

.date-field .cal-icon[b-jlrq3ib75q] {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	pointer-events: none;
	z-index: 1;
}

.date-field[b-jlrq3ib75q]  input {
	padding-left: 32px !important;
	width: 100%;
}

.date-field[b-jlrq3ib75q]  input::-webkit-calendar-picker-indicator {
	display: none;
	-webkit-appearance: none;
}

/* Accommodation checkbox row - matches the height/alignment of its sibling fields */

.accommodation-check[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
}

.accommodation-check .form-check-input[b-jlrq3ib75q] {
	margin: 0;
}

.accommodation-check .form-check-label[b-jlrq3ib75q] {
	font-size: 13px;
	color: var(--ink-soft);
}

/* Mini add-forms (Requested Dates / Time Log) */

.mini-form[b-jlrq3ib75q] {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.mini-form-stacked[b-jlrq3ib75q] {
	flex-direction: column;
}

.mini-form-row[b-jlrq3ib75q] {
	display: flex;
	gap: 8px;
}

/* Issue 288: the grey sentence under the new log's hours while it holds the plan line's value; after the row, full width. */
.field-hint[b-jlrq3ib75q] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
	/* Issue 288 UI review: no single word on the last line when the sentence wraps. */
	text-wrap: pretty;
}

.empty-hint[b-jlrq3ib75q] {
	color: var(--ink-faint);
	font-size: 13px;
	padding: 8px 0;
	margin: 0;
}

/* Work / Travel segmented control and kind badges (issue 138). Work is the
   neutral chip, Travel the violet one (--kind-travel-* tokens in app.css). */

.kind-toggle[b-jlrq3ib75q] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.kind-option[b-jlrq3ib75q] {
	min-height: 30px;
	padding: 0 10px;
	border: none;
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.kind-option + .kind-option[b-jlrq3ib75q] {
	border-left: 1px solid var(--line);
}

.kind-option:hover:not(:disabled)[b-jlrq3ib75q] {
	color: var(--accent);
}

.kind-option-active[b-jlrq3ib75q],
.kind-option-active:hover:not(:disabled)[b-jlrq3ib75q] {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.kind-option:disabled[b-jlrq3ib75q] {
	cursor: default;
}

.kind-work[b-jlrq3ib75q] { background: var(--line-soft); color: var(--ink-soft); }
.kind-travel[b-jlrq3ib75q] { background: var(--kind-travel-bg); color: var(--kind-travel-ink); }

/* Vehicle & kilometres card (issue 138) */

.km-mode-toggle[b-jlrq3ib75q] {
	align-self: flex-start;
	font-size: 11.5px;
}

.form-error[b-jlrq3ib75q] {
	margin: 0;
	font-size: 12px;
	color: var(--danger-ink);
	/* Issue 288 UI review: no single word on the last line when the sentence wraps. */
	text-wrap: pretty;
}

/* Issue 140: a refused delete (the row is billed), shown under the list it belongs to. */
.list-error[b-jlrq3ib75q] {
	margin-top: 8px;
}

/* Requested dates list */

.req-date-list[b-jlrq3ib75q] {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
}

.req-date-row[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 2px;
	font-size: 13.5px;
	border-bottom: 1px solid var(--line-soft);
}

.req-date-row:last-child[b-jlrq3ib75q] {
	border-bottom: none;
}

/* Time log list */

.time-log-list[b-jlrq3ib75q] {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 250px;
	overflow-y: auto;
}

.time-log-row[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 2px;
	border-bottom: 1px solid var(--line-soft);
}

.time-log-row:last-child[b-jlrq3ib75q] {
	border-bottom: none;
}

.time-log-who[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.time-log-worker[b-jlrq3ib75q] {
	font-weight: 600;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.time-log-date[b-jlrq3ib75q] {
	color: var(--ink-faint);
	font-size: 11.5px;
}

.time-log-notes[b-jlrq3ib75q] {
	color: var(--ink-soft);
	font-size: 11.5px;
	overflow-wrap: anywhere;
}

.time-log-actions[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.row-remove[b-jlrq3ib75q] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--ink-faint);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.row-remove:hover[b-jlrq3ib75q] {
	background: var(--danger-soft);
	color: var(--danger-ink);
}

/* Sidebar cards */

.side-card .kv[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 13px;
}

.side-card .kv:last-child[b-jlrq3ib75q] {
	border-bottom: none;
}

.side-card .kv .k[b-jlrq3ib75q] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.side-card .kv .v[b-jlrq3ib75q] {
	font-weight: 600;
	text-align: right;
}

/* Worker selection panel */

.worker-toolbar[b-jlrq3ib75q] {
	padding-bottom: 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--line-soft);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-wrap[b-jlrq3ib75q] {
	position: relative;
}

.search-wrap[b-jlrq3ib75q]  .icon-search {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.search-input[b-jlrq3ib75q] {
	padding-left: 30px;
}

.worker-filter-toggle[b-jlrq3ib75q] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0;
}

.worker-filter-toggle input[b-jlrq3ib75q] {
	margin: 0;
}

.worker-tip[b-jlrq3ib75q] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 0;
}

.worker-list[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 420px;
	overflow-y: auto;
}

.worker-row[b-jlrq3ib75q] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	cursor: pointer;
	user-select: none;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.worker-row:hover:not(:disabled)[b-jlrq3ib75q] {
	border-color: var(--accent);
}

.worker-row:disabled[b-jlrq3ib75q] {
	cursor: default;
	opacity: 0.85;
}

.worker-row-selected[b-jlrq3ib75q] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.worker-row-main[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.worker-row-name[b-jlrq3ib75q] {
	font-weight: 600;
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.worker-row-role[b-jlrq3ib75q] {
	font-size: 11.5px;
	color: var(--ink-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Same rationale as ComplaintDetail.razor.css: 1400px is wide enough that
   resizing an ordinary desktop browser window down (not just real phones/
   foldables) switches this page to its compact single-column layout too. */

@media (max-width: 1400px) {
	/* A resized desktop window, still wide enough for 3 tabs (the 640px breakpoint below is what switches to 5) - just
	   the 2-column grid inside "Plan details" collapses to 1, same as the rest of the page. Every box moves to the
	   single column (grid-column:2 would otherwise open a second, mostly-empty implicit column, squeezing column 1
	   down to almost nothing - e.g. box-workers/box-suitable-car/box-requested-dates/box-accommodation still carrying
	   grid-column:2 from the base rule since they're one level deeper than .tab-content now, inside .col-right). */
	.tab-content[b-jlrq3ib75q] {
		grid-template-columns: minmax(0, 1fr);
	}

	.tab-content > *[b-jlrq3ib75q],
	.col-left > *[b-jlrq3ib75q],
	.col-right > *[b-jlrq3ib75q],
	.tab-content[b-jlrq3ib75q]  [data-component="ChargeItemsCard"],
	.tab-content[b-jlrq3ib75q]  [data-component="BillingSourceCard"] {
		grid-column: 1;
	}

	.field-row[b-jlrq3ib75q] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row.cols-4[b-jlrq3ib75q] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topbar[b-jlrq3ib75q] {
		flex-direction: column;
	}

	.actions[b-jlrq3ib75q] {
		width: 100%;
	}

	.actions .btn[b-jlrq3ib75q] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-jlrq3ib75q] {
		padding: 12px;
	}

	/* Bigger tap targets on a phone (issue 138; bumped from 36 to the issue 279 "other buttons 40 px" floor). */
	.km-mode-toggle[b-jlrq3ib75q] {
		min-height: 40px;
	}

	.kind-option[b-jlrq3ib75q] {
		min-height: 40px;
	}

	.row-remove[b-jlrq3ib75q] {
		width: 40px;
		height: 40px;
	}

	/* Issue 141: a lock pill next to the badges must not push the row (and the list) sideways. */
	.time-log-actions[b-jlrq3ib75q] {
		flex-shrink: 1;
		min-width: 0;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px. Tighten further so the header's badges
   and action buttons wrap cleanly instead of overflowing. */

@media (max-width: 349px) {
	.topbar[b-jlrq3ib75q] {
		padding: 10px 12px;
	}

	.title-row h1[b-jlrq3ib75q] {
		font-size: 18px;
	}

	.actions .btn[b-jlrq3ib75q] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

	.field-row.cols-4[b-jlrq3ib75q] {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Issue 279 responsive review: at this width a blocked worker's status badge ("V autě není volné místo")
	   keeps its full intrinsic width, squeezing the name/role column down to a few characters ("E2…"/"Ser…").
	   Let the badge wrap to its own line below the name instead. */
	.worker-row[b-jlrq3ib75q] {
		flex-wrap: wrap;
	}

	.mini-form-row[b-jlrq3ib75q] {
		flex-direction: column;
	}

	/* Let the badges and the remove button drop under the name instead of
	   squeezing it (issue 138). */
	.time-log-row[b-jlrq3ib75q] {
		flex-wrap: wrap;
		gap: 4px 8px;
	}

	.time-log-actions[b-jlrq3ib75q] {
		margin-left: auto;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-jlrq3ib75q] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Bill as (issue 170): a two-option segmented switch on standalone plans, a read-only chip under a complaint. */
.bill-as-seg[b-jlrq3ib75q] {
	display: inline-flex;
	max-width: 100%;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
}

.bill-as-option[b-jlrq3ib75q] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px 14px;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.bill-as-option:disabled[b-jlrq3ib75q] {
	opacity: 0.6;
	cursor: default;
}

.bill-as-active[b-jlrq3ib75q] {
	background: var(--surface);
	color: var(--accent-strong);
	box-shadow: var(--shadow-sm);
}

.bill-as-active.bill-as-warranty[b-jlrq3ib75q] {
	background: var(--info-soft);
	color: var(--info-ink);
}

.bill-as-readonly[b-jlrq3ib75q] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mode-chip[b-jlrq3ib75q] {
	display: inline-flex;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.mode-billable[b-jlrq3ib75q] { background: var(--accent-soft); color: var(--accent-strong); }
.mode-warranty[b-jlrq3ib75q] { background: var(--info-soft); color: var(--info-ink); }

.field-help[b-jlrq3ib75q] {
	margin: 4px 0 0;
	color: var(--ink-faint);
	font-size: 11.5px;
}

.bill-as-readonly .field-help[b-jlrq3ib75q] {
	margin: 0;
}

@media (min-width: 641px) {
	/* The .field column would stretch the switch across the whole card. */
	.bill-as-seg[b-jlrq3ib75q] {
		align-self: flex-start;
		min-width: 240px;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.bill-as-option[b-jlrq3ib75q] {
		min-height: 44px;
	}

	/* Phone tab bar (issue 279): 44px tall, each tab only as wide as its text + 14px either side. */
	.tab[b-jlrq3ib75q] {
		min-height: 44px;
		padding: 0 14px;
	}

	/* Issue 279 touch-target floor: the mini-form "Add" buttons (Requested Dates/Time Log/Vehicle usage) were still
	   Bootstrap's 30px .btn-sm. */
	.btn-sm[b-jlrq3ib75q] {
		min-height: 40px;
	}
}

/* Issue 174: icon + text in header buttons (Find a part), 44px header targets on touch, and no sticky header on short
   screens (phone landscape, keyboard open), where it covered about half the viewport. */
.actions .btn[b-jlrq3ib75q] {
	gap: 5px;
}

@media (max-width: 640px), (pointer: coarse) {
	.actions .btn[b-jlrq3ib75q] {
		min-height: 44px;
	}

	/* Issue 279 acceptance criterion: every button and input on the phone layout is at least 40 px high (the
	   Figma phone rules ask for 44 px on the top bar's own buttons and on real inputs, 40 px on other buttons).
	   These are pre-existing controls this issue's tabs now surface at 390 px width, not new ones. */
	.icon-btn-info[b-jlrq3ib75q] {
		width: 44px;
		height: 44px;
	}

	.icon-btn-edit[b-jlrq3ib75q] {
		width: 40px;
		height: 40px;
	}

	.link-btn[b-jlrq3ib75q] {
		min-height: 40px;
	}

	.field[b-jlrq3ib75q]  .form-control,
	.field[b-jlrq3ib75q]  .form-select,
	.search-input[b-jlrq3ib75q],
	.mini-form .form-control[b-jlrq3ib75q],
	.mini-form .form-select[b-jlrq3ib75q] {
		height: 44px;
	}
}

@media (max-height: 500px) {
	.topbar[b-jlrq3ib75q] {
		position: static;
	}
}

/* Issue 198: the crew conflicts under the worker list and the car select. The Schedule card is its own component since
   epic 189 phase 2 (ServicePlanScheduleCard.razor.css, CR-117). */
.crew-conflicts[b-jlrq3ib75q] {
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--danger-line);
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--danger-ink);
	font-size: 12.5px;
}

.crew-conflicts-lead[b-jlrq3ib75q] {
	margin: 0;
	font-weight: 600;
}

.crew-conflict-list[b-jlrq3ib75q] {
	margin: 4px 0 0;
	padding-left: 18px;
	overflow-wrap: anywhere;
}

.side-card .crew-conflicts[b-jlrq3ib75q] {
	margin: 10px 0 0;
}

/* Fix round 1 (D-P5): the servicemen's alert sits above the worker rows, so it keeps the same 10 px from them as from the
   toolbar above it (the car's alert has only the key/value rows below it, which bring their own gap). */
.side-card .crew-conflicts-workers[b-jlrq3ib75q] {
	margin-bottom: 10px;
}

/* Epic 189 phase 2, CR-113: a serviceman who can't be added (booked, absent, on a trip, over the limit) stays readable,
   but doesn't look clickable; and the note after the car was taken away. */
.worker-row-blocked[b-jlrq3ib75q] {
	background: var(--surface-muted);
}

.car-removed-warning[b-jlrq3ib75q] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 0 0;
	padding: 8px 10px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 12.5px;
}

.car-removed-glyph[b-jlrq3ib75q] {
	display: inline-flex;
	padding-top: 1px;
}

/* CR-116: the changes-by-others button in the title row, a bell with the count; the same look as the board's (fix round 1,
   N3: a square surface button with the accent border). */
.changes-indicator[b-jlrq3ib75q] {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 15px;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	cursor: pointer;
	flex-shrink: 0;
}

.changes-indicator:hover[b-jlrq3ib75q],
.changes-indicator:focus-visible[b-jlrq3ib75q],
.changes-indicator[aria-expanded="true"][b-jlrq3ib75q] {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.changes-icon[b-jlrq3ib75q] {
	display: inline-flex;
}

.changes-count[b-jlrq3ib75q] {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Fix round 1 (N4): why a serviceman can't be added, as visible text under the worker list (as the schedule editor's). */
.why-list[b-jlrq3ib75q] {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.why-list li + li[b-jlrq3ib75q] {
	margin-top: 6px;
}

/* Fix round 2 (D2): one line per reason (the sentence names the person or car, so no name label in front of it). */
.why-reason[b-jlrq3ib75q] {
	display: block;
}

/* CR-118: the refused un-remove, its reasons and the two choices: the last full row of the sticky top bar, next to Save, like
   the conflict banner (fix round 1, S4). Fix round 2 (D1): the reasons scroll in a capped list and the two buttons stay outside
   it, so the bar can't grow past the screen however many reasons there are; on a phone the alert leaves the bar (below). */
.restore-conflicts[b-jlrq3ib75q] {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	width: 100%;
	min-width: 0;
	margin: 0;
	border-radius: 10px;
	font-size: 12.5px;
}

.restore-lead[b-jlrq3ib75q] {
	flex: none;
	margin: 0;
	font-weight: 600;
}

.restore-reasons[b-jlrq3ib75q] {
	flex: 0 1 auto;
	min-height: 0;
	max-height: min(18dvh, 7rem);
	margin: 4px 0 0;
	padding-left: 18px;
	overflow-y: auto;
	overflow-wrap: anywhere;
}

.restore-actions[b-jlrq3ib75q] {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

/* A phone: the alert is pinned to the bottom of the screen instead of growing the sticky bar (it was 45-82 % of the screen at
   390-280 px wide), so the bar keeps its size and both choices are always in reach. Not on a short screen (phone landscape):
   the bar isn't sticky there, so the alert stays in it, in the flow. */
@media (max-width: 640px) and (min-height: 501px) {
	.restore-conflicts[b-jlrq3ib75q] {
		position: fixed;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		left: 8px;
		z-index: 60;
		width: auto;
		max-height: 60dvh;
		box-shadow: var(--shadow-md);
	}

	.restore-reasons[b-jlrq3ib75q] {
		max-height: none;
	}

	/* Fix round 3 (SF2): a fixed panel takes no room in the page, so the end of the page sat under it. While it is shown the page
	   ends with the panel's greatest height (60dvh) and its gaps, so the last card scrolls clear of it. */
	.service-plan-detail-page:has(.restore-conflicts)[b-jlrq3ib75q] {
		padding-bottom: calc(60dvh + 16px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.changes-indicator[b-jlrq3ib75q] {
		width: 44px;
		height: 44px;
	}

	.title-row[b-jlrq3ib75q] {
		min-height: 44px;
	}

	.restore-actions .btn[b-jlrq3ib75q] {
		min-height: 44px;
	}
}

/* A phone: the bell is laid over the top right corner of the bar, so its appearing neither grows the row nor wraps it onto a
   line of its own (56 px at 280 px wide). Fix round 3 (SF3): the menu button (NavMenu: 34 px, 10 px from the screen's top and
   right edges, above everything) sits over the sticky bar once the page is scrolled, so the bell stays left of it: its right edge
   is 55 px from the screen's edge (the button's 44 plus 11, so the count badge, which sticks out 7 px, still clears it). The
   eyebrow keeps 78 px free on its right (the bell's 44, the 26 between the bar's content edge and the bell, and 8 of air): a short
   eyebrow still fits its one line at 390 px, a longer one (cs, 360 px) wraps. The back link is short enough to stay clear of the
   bell down to 280 px. */
@media (max-width: 640px) {
	.eyebrow[b-jlrq3ib75q] {
		padding-right: 78px;
	}

	.title-row[b-jlrq3ib75q] {
		min-height: 0;
	}

	.changes-indicator[b-jlrq3ib75q] {
		position: absolute;
		top: 12px;
		right: 38px;
	}
}

/* At 280 px the back link (152 px) ends where the bell would start, so the bell moves 4 px closer to the button (its badge
   still clears it) for a gap of 4 px instead of none. */
@media (max-width: 349px) {
	.eyebrow[b-jlrq3ib75q] {
		padding-right: 74px;
	}

	.changes-indicator[b-jlrq3ib75q] {
		top: 10px;
		right: 34px;
	}
}
/* /Components/Pages/ServicePlanning/ServicePlanList.razor.rz.scp.css */
.service-plan-list-page[b-pw45m2b0o5] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-pw45m2b0o5] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-pw45m2b0o5] {
	white-space: nowrap;
}

[b-pw45m2b0o5] .icon-plus,
[b-pw45m2b0o5] .icon-pencil,
[b-pw45m2b0o5] .icon-eye {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.link-plain[b-pw45m2b0o5] {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.link-plain:hover[b-pw45m2b0o5] {
	text-decoration: underline;
}

/* Table */

.table-card[b-pw45m2b0o5] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page instead of only being as tall as its
	   rows, then scroll its own content (both axes) only when it doesn't
	   fit, rather than the whole page scrolling and leaving dead space. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.plans-table[b-pw45m2b0o5] {
	width: 100%;
	border-collapse: collapse;
}

.plans-table thead th[b-pw45m2b0o5] {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.plans-table thead tr:first-child th:first-child[b-pw45m2b0o5] { border-top-left-radius: 12px; }
.plans-table thead tr:first-child th:last-child[b-pw45m2b0o5] { border-top-right-radius: 12px; }
.plans-table tbody tr:last-child td:first-child[b-pw45m2b0o5] { border-bottom-left-radius: 12px; }
.plans-table tbody tr:last-child td:last-child[b-pw45m2b0o5] { border-bottom-right-radius: 12px; }

.plans-table tbody td[b-pw45m2b0o5] {
	padding: 14px 18px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.plans-table tbody tr:last-child td[b-pw45m2b0o5] { border-bottom: none; }
.plans-table tbody tr:hover[b-pw45m2b0o5] { background: var(--surface-hover); }

.cell-id[b-pw45m2b0o5] { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-date[b-pw45m2b0o5] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Address hover tooltip (same pattern as ComplaintList's Notes column) */

.notes-wrap[b-pw45m2b0o5] {
	position: relative;
	display: inline-block;
	max-width: 240px;
	vertical-align: middle;
}

.cell-notes-text[b-pw45m2b0o5] {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.notes-tooltip[b-pw45m2b0o5] {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	min-width: 220px;
	max-width: 320px;
	background: var(--tooltip-bg);
	color: var(--on-color);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px 13px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 40;
	white-space: normal;
	pointer-events: none;
}

.notes-tooltip[b-pw45m2b0o5]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-bottom-color: var(--tooltip-bg);
}

.notes-wrap:hover .notes-tooltip[b-pw45m2b0o5] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Badges (status), shared palette with the Complaints module */

.badge[b-pw45m2b0o5] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.badge .dot[b-pw45m2b0o5] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-new[b-pw45m2b0o5] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-pw45m2b0o5] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-pw45m2b0o5] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-pw45m2b0o5] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-pw45m2b0o5] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-pw45m2b0o5] { background: var(--line-soft); color: var(--ink-soft); }

/* Assigned worker chips */

.worker-chip-row[b-pw45m2b0o5] {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.worker-chip[b-pw45m2b0o5] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* Row actions */

.row-actions[b-pw45m2b0o5] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-outline[b-pw45m2b0o5] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-pw45m2b0o5] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-load-more[b-pw45m2b0o5] {
	min-width: 160px;
}

/* Sorting logic callout */

.sorting-info[b-pw45m2b0o5] {
	font-size: 13px;
	margin-top: 12px;
	margin-bottom: 4px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-pw45m2b0o5] {
	display: none;
}

.m-card[b-pw45m2b0o5] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-pw45m2b0o5] {
	border-color: var(--accent);
}

.m-card-top[b-pw45m2b0o5] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-pw45m2b0o5] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-pw45m2b0o5] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-pw45m2b0o5] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub span:first-child[b-pw45m2b0o5] {
	flex: 1 1 auto;
}

.m-card-sub span:last-child[b-pw45m2b0o5] {
	flex: 0 0 auto;
}

.m-card-meta[b-pw45m2b0o5] {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.m-card-extra[b-pw45m2b0o5] {
	color: var(--ink-soft);
	font-size: 12.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view. Breakpoint is 1400px - deliberately
   much wider than any phone or opened foldable so an ordinary desktop browser
   window resized down also switches to the compact card view (see
   razor-page-design-system's Breakpoint values section). */

@media (max-width: 1400px) {
	.topbar[b-pw45m2b0o5] {
		align-items: flex-start;
	}

	.btn-new[b-pw45m2b0o5] {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-pw45m2b0o5] {
		display: none;
	}

	.mobile-list[b-pw45m2b0o5] {
		display: block;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. */

@media (max-width: 349px) {
	.m-card[b-pw45m2b0o5] {
		padding: 10px 12px;
	}

	.m-card-title[b-pw45m2b0o5] {
		font-size: 13.5px;
	}

	.btn-new[b-pw45m2b0o5] {
		font-size: 12.5px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-plan-no[b-pw45m2b0o5] {
	width: 90px;
}

.col-status[b-pw45m2b0o5] {
	width: 130px;
}

.col-actions[b-pw45m2b0o5] {
	width: 110px;
}

/* Issue 198: the time range under a plan's date (desktop cell and phone card), muted like the other secondary text. */
/* Fix round 1 (D-P1): the range wraps under the date instead of widening the date column (the date itself stays on one
   line, .cell-date-text), so a multi-day range never makes the table wider. */
.cell-date-text[b-pw45m2b0o5] {
	white-space: nowrap;
}

/* Fix round 2 (D2 P-c): balanced instead of pretty, and the pattern's no-break spaces keep the date and "· 2 days" whole,
   so a multi-day range splits into whole parts ("07:00 – Wed 4 Nov" / "16:00 · 2 days") instead of "4 Nov 16:00 ·" /
   "2 days". */
.cell-time[b-pw45m2b0o5] {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--ink-faint);
	white-space: normal;
	text-wrap: balance;
}

.m-card-time[b-pw45m2b0o5] {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--ink-faint);
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Issue 372: the "From e-mail - not confirmed" marker sits on its own line under the status badge in the table. */
.not-confirmed-line[b-pw45m2b0o5] {
	display: block;
	margin-top: 4px;
}
/* /Components/Pages/ServicePlanning/ServicePlanNew.razor.rz.scp.css */
.service-plan-new-page[b-dsbp3vt7jz] {
	color: var(--ink);
}

/* IconPencil is a separate child component, so its rendered svg does not carry this file's CSS-isolation scope attribute:
   crossing that component boundary needs ::deep, as on the other detail pages. */
[b-dsbp3vt7jz] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Bootstrap's default .btn is about 38-40px tall: the same compact density as the detail page (issue 99). */
.btn[b-dsbp3vt7jz] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.btn-outline[b-dsbp3vt7jz] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-dsbp3vt7jz] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-dsbp3vt7jz] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.actions .btn[b-dsbp3vt7jz] {
	gap: 5px;
}

/* Badges: the same palette as the detail page's worker rows and count. */
.badge[b-dsbp3vt7jz] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-dsbp3vt7jz] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-dsbp3vt7jz] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-rejected[b-dsbp3vt7jz] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-dsbp3vt7jz] { background: var(--line-soft); color: var(--ink-soft); }

/* Layout: the form on the left, workers and car on the right; one column on a narrow window (as the complaint page). */
.grid[b-dsbp3vt7jz] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

@media (max-width: 1400px) {
	.grid[b-dsbp3vt7jz] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The tools in a card header (a Basker mark and a button or a count) sit together at its right end. */
.card-head-tools[b-dsbp3vt7jz] {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

/* Plain read-only text, like every other read-only field of the detail page. */
.field-value[b-dsbp3vt7jz] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* The weekday of the chosen date, small text under the date input. */
.day-name[b-dsbp3vt7jz] {
	margin: 4px 0 0;
	font-size: 11.5px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

/* The address text (the card's own button opens the address window). */
.address-box .address-text[b-dsbp3vt7jz] {
	overflow-wrap: anywhere;
}

/* An address Basker could not find is orange like an empty input (Figma 183:3019 part 6b); the mark and the line are the atom's. */
.field-basker-not-found .address-box[b-dsbp3vt7jz] {
	background: var(--warning-soft);
	border: 1px solid var(--warning-ink);
	border-radius: 6px;
	padding: 6px 12px;
}

/* Worker check list (the detail page's worker rows, as a list of check boxes: nothing is saved until Save). */
.worker-list[b-dsbp3vt7jz] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 420px;
	overflow-y: auto;
}

/* The alert of a refused Save takes the focus after it was scrolled into view (the .razor.js module); no ring around the box. */
.action-error-host[b-dsbp3vt7jz] {
	outline: none;
}

.worker-list-not-found[b-dsbp3vt7jz] {
	border-radius: 8px;
	outline: 1px solid var(--warning-ink);
	outline-offset: 1px;
}

/* The "not found" line under the list sits clear of the outline (the address hint sits 8 px under its box). */
.worker-list-not-found[b-dsbp3vt7jz] +  .basker-field-hint {
	margin-top: 6px;
}

.worker-row[b-dsbp3vt7jz] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	cursor: pointer;
	user-select: none;
	margin: 0;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.worker-row:hover[b-dsbp3vt7jz] {
	border-color: var(--accent);
}

.worker-row-selected[b-dsbp3vt7jz] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.worker-check[b-dsbp3vt7jz] {
	flex-shrink: 0;
	margin: 0;
}

.worker-row-main[b-dsbp3vt7jz] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.worker-row-name[b-dsbp3vt7jz] {
	font-weight: 600;
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.worker-row-role[b-dsbp3vt7jz] {
	font-size: 11.5px;
	color: var(--ink-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.worker-row .badge[b-dsbp3vt7jz] {
	flex-shrink: 0;
}

/* On a narrow phone the "Occupied (Vacation)" badge drops under the name instead of squeezing it; its indent is set in the 400 px block. */
@media (max-width: 480px) {
	.worker-row[b-dsbp3vt7jz] {
		flex-wrap: wrap;
	}

	.worker-row-main[b-dsbp3vt7jz] {
		flex: 1 1 8em;
	}
}

/* The long "Occupied (...)" badge (badge-rejected) wraps under the name on a narrow phone and is then indented to the name (26 px =
   the check box and its gap). Wider, it stays beside the name and needs no indent; the short "Available" pill always stays beside it. */
@media (max-width: 400px) {
	.worker-row .badge-rejected[b-dsbp3vt7jz] {
		margin-left: 26px;
	}
}

/* At 340 px and less even the short "Available" pill wraps under the name: indent it to the name too (step 7 fix round 3, D3). */
@media (max-width: 340px) {
	.worker-row .badge[b-dsbp3vt7jz] {
		margin-left: 26px;
	}
}

/* The tools in the Workers/Address header drop under the title on the narrowest phones, so the title stays on one line. The shared
   card's header row (.table-card-head, DetailCard's own markup) does not wrap by itself, so it is allowed to here. */
@media (max-width: 420px) {
	.service-plan-new-page[b-dsbp3vt7jz]  .table-card-head {
		flex-wrap: wrap;
		gap: 6px 8px;
	}

	.card-head-tools[b-dsbp3vt7jz] {
		flex-basis: 100%;
		justify-content: flex-start;
	}

	/* The mark's own "margin-inline-start: auto" would push the tools to the right only while a draft touched the field. */
	.card-head-tools[b-dsbp3vt7jz]  .basker-field-mark {
		margin-inline-start: 0;
	}
}

/* The list's own scroll box is a trap on a phone, where the page scrolls too: it grows with its rows there. */
@media (max-width: 640px) {
	.worker-list[b-dsbp3vt7jz] {
		max-height: none;
	}
}

/* A 44 px tap area for the buttons, the inputs and the worker rows on a phone and on any touch screen (the detail page does the same). */
@media (max-width: 640px), (pointer: coarse) {
	.actions .btn[b-dsbp3vt7jz] {
		min-height: 44px;
	}

	.service-plan-new-page[b-dsbp3vt7jz]  input.form-control,
	.service-plan-new-page[b-dsbp3vt7jz]  .form-select {
		min-height: 44px;
	}

	.worker-row[b-dsbp3vt7jz] {
		min-height: 44px;
	}

	.card-head-tools .btn[b-dsbp3vt7jz] {
		min-height: 44px;
	}
}

/* On a very short screen (phone landscape, keyboard open) the sticky header covered about half the viewport. The header is the shared
   PageHeader (its root is .topbar-sticky), so ::deep. */
@media (max-height: 500px) {
	.service-plan-new-page[b-dsbp3vt7jz]  .topbar-sticky {
		position: static;
	}
}

/* Save is off with aria-disabled (not disabled) while the form is rebuilt for another prepared record; the handler ignores the press.
   It looks like Bootstrap's disabled button, as on the complaint page (issue 426) and the schedule editor's Save (issue 195). */
[data-component="ServicePlanNew.SaveButton"][aria-disabled="true"][b-dsbp3vt7jz],
[data-component="ServicePlanNew.SaveButton"][aria-disabled="true"]:hover[b-dsbp3vt7jz],
[data-component="ServicePlanNew.SaveButton"][aria-disabled="true"]:active[b-dsbp3vt7jz] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one would be skipped), so the keyboard gets the app's focus ring on it. */
[data-component="ServicePlanNew.SaveButton"][aria-disabled="true"]:focus-visible[b-dsbp3vt7jz] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

@media (forced-colors: active) {
	[data-component="ServicePlanNew.SaveButton"][aria-disabled="true"][b-dsbp3vt7jz] {
		color: GrayText;
		border-color: GrayText;
	}

	.worker-row-selected[b-dsbp3vt7jz] {
		border-color: Highlight;
	}
}
/* /Components/Pages/ServicePlanning/ServicePlanOverview.razor.rz.scp.css */
.service-plan-overview-page[b-zfz3irglvb] {
	color: var(--ink);
}

.eyebrow[b-zfz3irglvb] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Stat cards - exact classes/values reused from ComplaintList.razor.css's
   .stat-card/.stats-row (razor-page-design-system). These aren't click
   filters here (no list below them to filter), so they're plain divs
   instead of buttons - same visual, no cursor/hover affordance. */

.stats-row[b-zfz3irglvb] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
}

.stat-card[b-zfz3irglvb] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 9px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.stat-num[b-zfz3irglvb] {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.stat-label[b-zfz3irglvb] {
	font-size: 11px;
	color: var(--ink-soft);
	font-weight: 500;
	line-height: 1.1;
}

.stat-hint[b-zfz3irglvb] {
	font-size: 10px;
	color: var(--ink-faint);
	line-height: 1.1;
}

.text-state-progress[b-zfz3irglvb] { color: var(--status-progress-ink); }
.text-state-pending[b-zfz3irglvb] { color: var(--ink-soft); }
.text-state-done[b-zfz3irglvb] { color: var(--status-done-ink); }

/* Layout */

.grid[b-zfz3irglvb] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.card[b-zfz3irglvb] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

.card h2[b-zfz3irglvb] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-zfz3irglvb] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

.card-hint[b-zfz3irglvb] {
	font-size: 13px;
	color: var(--ink-soft);
	margin: -6px 0 18px;
}

.empty-hint[b-zfz3irglvb] {
	color: var(--ink-faint);
	font-size: 13px;
	text-align: center;
	padding: 40px 0;
}

/* Worker utilization rows */

.util-list[b-zfz3irglvb] {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.util-row-head[b-zfz3irglvb] {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

/* CustomerList.razor.css-style truncation fix: the worker name/role block
   sits in a flex row alongside the figure text, so it needs flex:1 and
   min-width:0 to shrink and ellipsize instead of pushing the figure off
   the card or overflowing on a long name. */
.util-worker[b-zfz3irglvb] {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.util-name[b-zfz3irglvb] {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.util-role[b-zfz3irglvb] {
	font-size: 12.5px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.util-figure[b-zfz3irglvb] {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink-soft);
	white-space: nowrap;
	flex-shrink: 0;
}

.util-bar-track[b-zfz3irglvb] {
	background: var(--line-soft);
	border-radius: 999px;
	height: 22px;
	overflow: hidden;
}

.util-bar-fill[b-zfz3irglvb] {
	height: 100%;
	display: flex;
	align-items: center;
	padding-left: 10px;
	border-radius: 999px;
	color: var(--on-color);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: width 0.3s ease;
}

/* Same hex values as the badge/priority palette (priority-low/priority-high/
   priority-critical) so "low/moderate/high utilization" reads consistently
   with the rest of the app's color language, instead of Bootstrap's
   bg-success/bg-warning/bg-danger. */
.bar-low[b-zfz3irglvb] { background: var(--success-ink); }
.bar-high[b-zfz3irglvb] { background: var(--warning-ink); }
.bar-critical[b-zfz3irglvb] { background: var(--danger-ink); }
.bar-none[b-zfz3irglvb] { background: var(--line); }

.util-meta[b-zfz3irglvb] {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--ink-soft);
	flex-wrap: wrap;
}

.util-meta span[b-zfz3irglvb] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.util-meta .dot[b-zfz3irglvb] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.util-meta-absence[b-zfz3irglvb] { color: var(--danger-ink); }
.util-meta-plans[b-zfz3irglvb] { color: var(--success-ink); }

/* Sidebar card */

.side-subheading[b-zfz3irglvb] {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 10px;
}

.overall-box[b-zfz3irglvb] {
	background: var(--canvas);
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.overall-percent[b-zfz3irglvb] {
	font-size: 28px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.01em;
}

.overall-rating[b-zfz3irglvb] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
}

.legend-list[b-zfz3irglvb] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.legend-row[b-zfz3irglvb] {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

.legend-dot[b-zfz3irglvb] {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	flex-shrink: 0;
}

.legend-dot-low[b-zfz3irglvb] { background: var(--success-ink); }
.legend-dot-high[b-zfz3irglvb] { background: var(--warning-ink); }
.legend-dot-critical[b-zfz3irglvb] { background: var(--danger-ink); }

/* Same breakpoint rationale as ComplaintDetail.razor.css: 1400px is wide
   enough that resizing an ordinary desktop browser window down (not just
   real phones/foldables) switches this page to its compact single-column
   layout too. */

@media (max-width: 1400px) {
	.grid[b-zfz3irglvb] {
		grid-template-columns: minmax(0, 1fr);
	}

	.util-row-head[b-zfz3irglvb] {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	/* In the column layout the worker block would size to its content, so a long name pushed the card wider than
	   the phone; stretch it to the card width so the name ellipsizes and the role wraps (issue 112 A1). */
	.util-worker[b-zfz3irglvb] {
		align-self: stretch;
	}

	.util-role[b-zfz3irglvb] {
		white-space: normal;
	}
}

@media (max-width: 349px) {
	.card[b-zfz3irglvb] {
		padding: 16px 14px;
	}

	.overall-percent[b-zfz3irglvb] {
		font-size: 24px;
	}

	.util-meta[b-zfz3irglvb] {
		gap: 10px;
	}
}

/* Issue 198: the week the utilization counts, under the subtitle; weight, not colour, tells it from the subtitle. */
.week-label[b-zfz3irglvb] {
	color: var(--ink-soft);
	font-weight: 600;
	margin-top: 2px;
}
/* /Components/Pages/ServicePlanning/ServicePlanScheduleCard.razor.rz.scp.css */
/* Issue 198, epic 189 phase 2 (CR-117): the Schedule card of the service plan detail page, its own component outside the
   page's form. The card and heading rules repeat the page's (ServicePlanDetail.razor.css), because the page's scoped rules
   don't reach a child component's markup; the page's ::deep rules (the compact .btn, the icons, the form controls) still
   do, as the card renders inside the page. */

.card[b-34j4ueq7wq] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
	min-width: 0;
}

.card h2[b-34j4ueq7wq] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-34j4ueq7wq] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Issue 284 (pictures "Days & times"): the three actions sit in the head next to the heading and wrap under it on a phone. */
.card-head-row[b-34j4ueq7wq] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-34j4ueq7wq] {
	margin-bottom: 0;
}

.btn-outline[b-34j4ueq7wq] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-34j4ueq7wq] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm[b-34j4ueq7wq] {
	height: 30px;
	padding: 0 11px;
	font-size: 12.5px;
}

.field-value[b-34j4ueq7wq] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

.field-help[b-34j4ueq7wq] {
	margin: 4px 0 0;
	color: var(--ink-faint);
	font-size: 11.5px;
}

.empty-hint[b-34j4ueq7wq] {
	color: var(--ink-faint);
	font-size: 13px;
	padding: 8px 0;
	margin: 0;
}

.schedule-notice[b-34j4ueq7wq] {
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--success-line);
	border-radius: var(--radius-md);
	background: var(--success-soft);
	color: var(--success-ink);
	font-size: 12.5px;
}

.schedule-load-error[b-34j4ueq7wq] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding: 8px 10px;
	border: 1px solid var(--danger-line);
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--danger-ink);
	font-size: 12.5px;
}

.schedule-link[b-34j4ueq7wq] {
	padding: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: underline;
}

.schedule-lock-note[b-34j4ueq7wq] {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	color: var(--ink-soft);
	font-size: 12.5px;
}

.schedule-lock-glyph[b-34j4ueq7wq] {
	display: inline-flex;
	color: var(--ink-faint);
}

.schedule-empty[b-34j4ueq7wq] {
	margin-bottom: 10px;
}

/* ---- Actions in the head ---- */
.schedule-actions[b-34j4ueq7wq] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.schedule-check-status[b-34j4ueq7wq] {
	margin-top: 10px;
}

/* ---- Whole plan (issue 284, W1, W4): the plan's own start and end. The end is red only when the lines end later; the start
   never is. The red is never the only sign: the sentence under it has a glyph and words. ---- */
.whole-plan[b-34j4ueq7wq] {
	margin-bottom: 10px;
	padding: 9px 12px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.whole-row[b-34j4ueq7wq] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	min-width: 0;
}

.whole-label[b-34j4ueq7wq] {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-soft);
}

.whole-value[b-34j4ueq7wq] {
	display: flex;
	flex-wrap: wrap;
	/* The end's unit starts with the 18 px arrow: on baselines it sat about 5 px higher than the start (issue 286). */
	align-items: center;
	gap: 2px 8px;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}

/* A date and its time stay whole: at the narrowest width the end moves to the next line instead of breaking in the middle. */
.whole-start[b-34j4ueq7wq],
.whole-end[b-34j4ueq7wq] {
	white-space: nowrap;
}

/* The arrow and the end are one unit (fix round 1, P14): when the end wraps, its arrow goes with it and leads the new line. */
.whole-until[b-34j4ueq7wq] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.whole-end.is-late[b-34j4ueq7wq] {
	color: var(--danger-ink);
}

/* The arrow stays grey when the end is red. The long arrow (the glyph is 16 units wide, its ink about 14): at this size it is as
   long as the picture's. */
.whole-arrow[b-34j4ueq7wq] {
	display: inline-flex;
	font-size: 18px;
	font-weight: 400;
	color: var(--ink-faint);
}

.whole-warning[b-34j4ueq7wq] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--danger-ink);
}

.whole-warning-glyph[b-34j4ueq7wq] {
	display: inline-flex;
	flex: none;
	padding-top: 1px;
	font-size: 12px;
	color: var(--warning-ink);
}

/* ---- The lines: a table on a wide card, one box per line on a narrow one ----
   The switch asks the width of the card (a container query), not the window and not the pointer: the same card is 637 px wide
   in the two-column layout of a 1401 px window and 1068 px wide in the one-column layout of a 1400 px window. Both DOMs are in the
   page; the hidden one is display: none, so a screen reader never meets both. The number is the narrowest card that holds the
   table with a readable note and tools cell: the fixed columns take 400 px, so at 620 px the note and the tools share the rest
   (about 109 px each, ten characters before the cut). It must stay at or under 636 px: the card is 637 px wide in a 1401 px
   window, which shows the table (fix round 1, P1). */
.schedule-lines[b-34j4ueq7wq] {
	container-type: inline-size;
	container-name: schedule-lines;
	min-width: 0;
}

.lines-wrap[b-34j4ueq7wq] {
	display: none;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.lines-table[b-34j4ueq7wq] {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	font-size: 12.5px;
}

/* Widths through the colgroup; the note and the tools column share what is left. */
.col-date[b-34j4ueq7wq] {
	width: 90px;
}

.col-time[b-34j4ueq7wq] {
	width: 52px;
}

.col-out[b-34j4ueq7wq] {
	width: 72px;
}

.col-back[b-34j4ueq7wq] {
	width: 78px;
}

.col-repair[b-34j4ueq7wq] {
	width: 56px;
}

.lines-table th[b-34j4ueq7wq] {
	padding: 7px 8px;
	background: var(--surface-muted);
	border-bottom: 1px solid var(--line);
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-soft);
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

/* The two text headers wrap instead of being cut: "Tools & spare parts" and, in Czech, "Nářadí a náhradní díly" are wider than the
   narrow note and tools columns of a 1401 px window. A header gets a second line only when it needs one (fix round 1, P9). The three
   hour headers name their unit since [Decision] 317 ("Travel out (h:mm)"), which is wider than their narrow columns: they wrap the same
   way, "(h:mm)" on the second line, instead of being cut to "Travel out (h…". */
.lines-table th.cell-note[b-34j4ueq7wq],
.lines-table th.num[b-34j4ueq7wq],
.lines-table th:last-child[b-34j4ueq7wq] {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	line-height: 1.25;
}

/* The hour headers line up with their right-aligned numbers (D1 UI re-check): `.lines-table th` would otherwise win over `.num`. */
.lines-table th.num[b-34j4ueq7wq] {
	text-align: right;
}

.lines-table td[b-34j4ueq7wq] {
	padding: 8px;
	color: var(--ink);
	white-space: nowrap;
}

.lines-table tbody tr + tr td[b-34j4ueq7wq] {
	border-top: 1px solid var(--line-soft);
}

.num[b-34j4ueq7wq] {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.cell-time[b-34j4ueq7wq] {
	font-variant-numeric: tabular-nums;
}

.cell-date[b-34j4ueq7wq] {
	font-weight: 700;
}

/* Left-aligned text right after right-aligned numbers: a little air before it. */
.cell-note[b-34j4ueq7wq] {
	padding-left: 12px;
}

/* A text that does not fit its cell is cut at the end of the cell with an ellipsis: one text line (W16). The whole text is in the
   cell's title and in the line window. */
.cell-text[b-34j4ueq7wq] {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* A double-click must not paint a selected word behind the line window it opens; the window's text is selectable. A mouse click
   on a row does nothing, so the pointer stays an arrow. */
.lines-table tbody tr[b-34j4ueq7wq] {
	user-select: none;
}

.lines-table tbody tr:hover td[b-34j4ueq7wq] {
	background: var(--surface-hover);
}

/* The real button in the Date cell is the keyboard's way in: Tab reaches it, Enter and Space open the line. It looks like the date text; the
   row shows the focus (the negative offset keeps the ring inside the clipping .lines-wrap). */
.line-open[b-34j4ueq7wq] {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 700;
	color: inherit;
	text-align: left;
	white-space: nowrap;
	cursor: default;
}

.line-open:focus-visible[b-34j4ueq7wq] {
	outline: none;
}

.lines-table tbody tr:has(.line-open:focus-visible) td[b-34j4ueq7wq] {
	background: var(--accent-soft);
}

.lines-table tbody tr:has(.line-open:focus-visible)[b-34j4ueq7wq] {
	outline: 2px solid var(--accent-strong);
	outline-offset: -2px;
}

/* The last row sits in the rounded corners of .lines-wrap, which clips the square corners of the ring; the outline follows the
   row's own radius, so give it the wrapper's inner radius (its radius minus its 1 px border) at the bottom (fix round 1, P16). */
.lines-table tbody tr:last-child:has(.line-open:focus-visible)[b-34j4ueq7wq] {
	border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}

/* The boxes, for a card narrower than the table's tier: one button per line (a button takes spans only). */
.line-boxes[b-34j4ueq7wq] {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.line-box[b-34j4ueq7wq] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16px;
	column-gap: 8px;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	font: inherit;
	text-align: left;
	color: var(--ink);
	cursor: pointer;
	user-select: none;
}

.line-box:hover[b-34j4ueq7wq] {
	border-color: var(--accent);
}

.line-box:active[b-34j4ueq7wq] {
	background: var(--surface-hover);
}

.line-box:focus-visible[b-34j4ueq7wq] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
}

.box-when[b-34j4ueq7wq] {
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
}

.box-chevron[b-34j4ueq7wq] {
	display: inline-flex;
	justify-content: flex-end;
	align-self: center;
	font-size: 12px;
	color: var(--ink-faint);
}

.box-times[b-34j4ueq7wq],
.box-text[b-34j4ueq7wq] {
	grid-column: 1 / -1;
	min-width: 0;
	font-size: 12px;
	line-height: 1.45;
}

/* Travel and repair are numbers a dispatcher needs: on a very narrow card the row wraps rather than being cut. */
.box-times[b-34j4ueq7wq] {
	margin-top: 2px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* "Note: text": the label stays, the text is cut after one line with an ellipsis (W16). The label and the text are two flex items,
   because a line clamp on a box that also holds an inline label would stack the label above the text. */
.box-text[b-34j4ueq7wq] {
	display: flex;
	gap: 4px;
	color: var(--ink);
}

.box-label[b-34j4ueq7wq] {
	flex: none;
	font-weight: 600;
}

.box-value[b-34j4ueq7wq] {
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	overflow: hidden;
	overflow-wrap: anywhere;
}

/* ---- Help under the lines: the sentence follows the tier and a touch screen ----
   Base (boxes): "Tap a line". The table (a card of 620 px or more) says "Double-click a line" and what Edit schedule changes; a
   touch screen with a table keeps its tap sentence (the later rule wins). Only words are shown or hidden here. */
.schedule-help[b-34j4ueq7wq] {
	margin-top: 8px;
}

.help-tap[b-34j4ueq7wq] {
	display: inline;
}

.help-dblclick[b-34j4ueq7wq],
.help-edit[b-34j4ueq7wq] {
	display: none;
}

@container schedule-lines (min-width: 620px) {
	.lines-wrap[b-34j4ueq7wq] {
		display: block;
	}

	.line-boxes[b-34j4ueq7wq] {
		display: none;
	}

	.help-tap[b-34j4ueq7wq] {
		display: none;
	}

	.help-dblclick[b-34j4ueq7wq],
	.help-edit[b-34j4ueq7wq] {
		display: inline;
	}
}

@media (pointer: coarse) {
	.help-tap[b-34j4ueq7wq] {
		display: inline;
	}

	.help-dblclick[b-34j4ueq7wq] {
		display: none;
	}
}

/* ---- The actions wrap under the heading and start at the left edge. Up to a window of about 763 px (a card inner width under about
   430 px) the three buttons no longer fit next to the heading; at 768 px they fit again (fix round 1, P13). ---- */
@media (max-width: 767.98px) {
	.schedule-actions[b-34j4ueq7wq] {
		flex: 1 1 100%;
		justify-content: flex-start;
	}
}

/* ---- Phone: the whole-plan label on its own line, 44 px targets ---- */
@media (max-width: 640px) {
	.whole-row[b-34j4ueq7wq] {
		flex-direction: column;
		gap: 2px;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.schedule-actions .btn[b-34j4ueq7wq] {
		min-height: 44px;
	}
}

/* A table row is a tap target on a touch screen. */
@media (pointer: coarse) {
	.lines-table tbody td[b-34j4ueq7wq] {
		height: 44px;
		padding-block: 0;
	}
}

@media (max-width: 349px) {
	.line-box[b-34j4ueq7wq] {
		padding: 8px 10px;
	}
}

/* Forced colours drop the red: the late end gets a wavy underline, the sentence and the glyph under it stay (fix round 1, P15). */
@media (forced-colors: active) {
	.whole-end.is-late[b-34j4ueq7wq] {
		text-decoration: underline wavy;
		text-underline-offset: 3px;
	}
}
/* /Components/Pages/ServicePlanning/Timesheet.razor.rz.scp.css */
.timesheet-page[b-o0hwxfgtdm] {
	color: var(--ink);
}

.eyebrow[b-o0hwxfgtdm] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-label[b-o0hwxfgtdm] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 10px;
}

/* Not paginated (a personal worklist, always small) - stays a responsive card
   grid rather than converting to a table+mobile-card-list pattern, same
   reasoning as CarManagement's fleet grid. */
.plan-grid[b-o0hwxfgtdm] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

@media (max-width: 349px) {
	.plan-grid[b-o0hwxfgtdm] {
		grid-template-columns: 1fr;
	}
}
/* /Components/Pages/Settings/Settings.razor.rz.scp.css */
.language-settings-page[b-8pcffolbzw] {
	color: var(--ink);
	max-width: 640px;
	/* Left-aligned like the account pages (ManageLayout), the second tab of Settings: the shared heading and tabs stay put. */
	margin-inline-start: 0;
}

.card[b-8pcffolbzw] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

/* Foldable cover screens: leave the text more room, as Admin Settings does. */
@media (max-width: 349px) {
	.card[b-8pcffolbzw] {
		padding: 14px 12px;
	}
}

.card h2[b-8pcffolbzw] {
	font-size: 14px;
	margin: 0 0 16px;
	font-weight: 700;
}

.card h2 small[b-8pcffolbzw] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* Issue 244: the notice shown while usage recording is on. */
.usage-notice[b-8pcffolbzw] {
	display: flex;
	/* Bootstrap's .card sets column; the icon belongs beside the text. */
	flex-direction: row;
	align-items: flex-start;
	gap: var(--space-3);
	background: var(--info-soft);
	border-color: var(--line);
	color: var(--ink);
}

.usage-notice-icon[b-8pcffolbzw] {
	flex-shrink: 0;
	color: var(--info-ink);
	line-height: 1;
	padding-top: 2px;
}

.card h2.usage-notice-title[b-8pcffolbzw] {
	font-size: 14px;
	margin: 0 0 4px;
}

.usage-notice-body[b-8pcffolbzw] {
	font-size: 13px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* Issue 245 (Figma 178:825): the "Tips for you" switch row: the label and its help on the left, the switch on the right. */
.tips-row[b-8pcffolbzw] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
}

.tips-text[b-8pcffolbzw] {
	flex: 1 1 auto;
	min-width: 0;
}

.tips-label[b-8pcffolbzw] {
	display: block;
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.tips-help[b-8pcffolbzw] {
	margin: 0;
	font-size: 13px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* Bootstrap sizes a switch in em: 22px makes it the 44 x 22 of the frame; the left gutter of .form-check goes. */
.tips-switch[b-8pcffolbzw] {
	flex: 0 0 auto;
	min-height: 0;
	margin: 0;
	padding-left: 0;
	font-size: 22px;
	line-height: 1;
}

.tips-switch .form-check-input[b-8pcffolbzw] {
	float: none;
	margin: 0;
	cursor: pointer;
}

.tips-switch .form-check-input:disabled[b-8pcffolbzw] {
	cursor: default;
}

/* Touch (issue 101): a 44px row for the switch on a phone and on any touch screen. The wrapper is the input's label, so the
   whole 44 x 44 area toggles the switch. */
@media (max-width: 640px), (pointer: coarse) {
	.tips-switch[b-8pcffolbzw] {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		cursor: pointer;
	}
}

.field-row[b-8pcffolbzw] {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin-bottom: 14px;
}

.field-row select[b-8pcffolbzw] {
	box-sizing: border-box;
	width: 100%;
}

@media (max-width: 480px) {
	.language-settings-page[b-8pcffolbzw] {
		max-width: 100%;
	}
}
/* /Components/Pages/Staff/StaffDetail.razor.rz.scp.css */
.staff-detail-page[b-tyvu0dmp54] {
	color: var(--ink);
}

.eyebrow[b-tyvu0dmp54] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.back-link[b-tyvu0dmp54] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	margin-bottom: 8px;
}

.back-link:hover[b-tyvu0dmp54] {
	color: var(--accent);
}

/* Sticky header, similar to a spreadsheet's frozen panes */

.topbar[b-tyvu0dmp54] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	/* A rounded, bordered card like every other card on the page - not a
	   full-bleed banner - while staying pinned to the top on scroll. */
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.title-row[b-tyvu0dmp54] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.title-row h1[b-tyvu0dmp54] {
	font-size: 18px;
	margin: 0;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.badge[b-tyvu0dmp54] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-admin[b-tyvu0dmp54] {
	background: var(--accent-soft);
	color: var(--accent);
}

.actions[b-tyvu0dmp54] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.actions .btn[b-tyvu0dmp54] {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page matches the compact density of the rest
   of the page. */
.btn[b-tyvu0dmp54],
[b-tyvu0dmp54] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-danger-ghost[b-tyvu0dmp54] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-tyvu0dmp54] {
	background: var(--danger-soft);
}

.btn-outline[b-tyvu0dmp54] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-tyvu0dmp54] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Small functional icons (pencil) rendered as inline SVG atoms instead of
   an icon font - see razor-page-design-system's Icons section. Reaching a
   child icon component's rendered <svg> from this page's scoped CSS
   requires ::deep. */
[b-tyvu0dmp54] .icon-pencil {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

/* Layout */

.grid[b-tyvu0dmp54] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.card[b-tyvu0dmp54] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.card h2[b-tyvu0dmp54] {
	font-size: 12.5px;
	margin: 0 0 10px;
	font-weight: 700;
}

.card h2 small[b-tyvu0dmp54] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 2px;
}

/* Card header row that also carries the "Edit Fields" toggle link (only
   the Identity card, the page's "main" field-grid card, has the link -
   toggling it also flips the Contact/Access cards, which share the same
   _isEditingDetails flag). */
.card-head-row[b-tyvu0dmp54] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.card-head-row h2[b-tyvu0dmp54] {
	margin-bottom: 0;
}

.link-btn[b-tyvu0dmp54] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.link-btn:hover[b-tyvu0dmp54] {
	text-decoration: underline;
}

.field-row[b-tyvu0dmp54] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.field-row.cols-1[b-tyvu0dmp54] {
	grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-tyvu0dmp54] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-row:last-child[b-tyvu0dmp54] {
	margin-bottom: 0;
}

.field[b-tyvu0dmp54] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.field-checkbox[b-tyvu0dmp54] {
	flex-direction: row;
	align-items: center;
}

.field-checkbox .form-check[b-tyvu0dmp54] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
}

/* Plain read-only text for the Edit Fields toggle - deliberately NOT
   .value-box (no border, no background, no padding box). */
.field-value[b-tyvu0dmp54] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	min-height: 20px;
	overflow-wrap: anywhere;
}

/* Real InputText controls default to Bootstrap's ~38px control height -
   match them to the .field-value footprint above (~32px, 12.5px type) so
   editable and read-only fields read as the same density. InputText is a
   framework component, not plain HTML written in this page - its
   rendered <input> never gets this page's CSS-isolation scope attribute,
   so reaching it requires ::deep. */
.field[b-tyvu0dmp54]  .form-control {
	height: 32px;
	padding: 5px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	box-sizing: border-box;
}

[b-tyvu0dmp54] textarea.form-control {
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Same breakpoint rationale as ComplaintDetail.razor.css/CustomerDetail.razor.css/
   DistributorDetail.razor.css: 1400px is wide enough that resizing an ordinary
   desktop browser window down (not just real phones/foldables) switches this
   page to its compact single-column layout too. */

@media (max-width: 1400px) {
	.grid[b-tyvu0dmp54] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row[b-tyvu0dmp54] {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-row.cols-4[b-tyvu0dmp54] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topbar[b-tyvu0dmp54] {
		flex-direction: column;
	}

	.actions[b-tyvu0dmp54] {
		width: 100%;
	}

	.actions .btn[b-tyvu0dmp54] {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.topbar[b-tyvu0dmp54] {
		padding: 12px;
	}
}

@media (max-width: 349px) {
	.topbar[b-tyvu0dmp54] {
		padding: 10px 12px;
	}

	.title-row h1[b-tyvu0dmp54] {
		font-size: 18px;
	}

	.actions .btn[b-tyvu0dmp54] {
		font-size: 12px;
		padding: 0 10px;
		height: 32px;
	}

	.field-row.cols-4[b-tyvu0dmp54] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Sidebar summary card */

.side-card .kv[b-tyvu0dmp54] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12px;
}

.side-card .kv:last-child[b-tyvu0dmp54] {
	border-bottom: none;
}

.side-card .kv .k[b-tyvu0dmp54] {
	color: var(--ink-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.side-card .kv .v[b-tyvu0dmp54] {
	font-weight: 600;
	text-align: right;
}

/* Hero monogram avatar (next to the page title) */

.hero-avatar[b-tyvu0dmp54] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

@media (max-width: 1400px) {
	.title-row[b-tyvu0dmp54] {
		gap: 10px;
	}
}

/* Form labels: uppercase micro-labels (bold, letter-spaced) instead of
   Bootstrap's default .form-label weight - makes read-only/inspection
   fields scan as data, not as an always-editable form. */
.form-label[b-tyvu0dmp54] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

/* Moved from inline style attributes (issue 101). */
.topbar-hero[b-tyvu0dmp54] {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
/* /Components/Pages/Staff/StaffList.razor.rz.scp.css */
.staff-page[b-iwalwi78qe] {
	color: var(--ink);
	/* Fill the remaining viewport height (MainLayout's .content is a flex
	   column, see MainLayout.razor.css) so the table below can grow all the
	   way to the bottom of the screen and scroll internally instead of the
	   whole page scrolling. */
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.eyebrow[b-iwalwi78qe] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn-new[b-iwalwi78qe],
[b-iwalwi78qe] .btn-new {
	white-space: nowrap;
}

/* Bootstrap's default .btn is ~38-40px tall - override the base class so
   every real button on the page ("+ New", row "Open", "Load more") matches
   the compact density of the rest of the page. "+ New" is a <NavLink> (a
   framework component, not plain HTML written in this page), so its
   rendered <a> never gets this page's scope attribute - crossing that
   boundary requires ::deep. */
.btn[b-iwalwi78qe],
[b-iwalwi78qe] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar: just Search + a total-count readout - Staff has no state/priority-style
   dimension worth a stat-card grid or chip filters (see razor-page-design-system's
   guidance to skip stat cards rather than invent fake categories). */

.toolbar[b-iwalwi78qe] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}

.toolbar-row[b-iwalwi78qe] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-iwalwi78qe] {
	flex: 1 1 260px;
	max-width: 480px;
}

.search-wrap[b-iwalwi78qe] {
	position: relative;
}

/* IconSearch is a separate child component, so its rendered <svg> does not
   carry this file's CSS-isolation scope attribute - crossing that component
   boundary requires ::deep, otherwise this rule silently never matches and
   the icon falls back to normal static-flow positioning. */
.search-wrap[b-iwalwi78qe]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

/* Small functional icons (plus, pencil) rendered as inline SVG instead of an
   icon font - see razor-page-design-system's Icons section. currentColor lets
   each pick up its surrounding text/link color automatically. icon-plus and
   icon-pencil are CssClass values handed to child icon components, so (like
   icon-search above) reaching their rendered <svg> requires ::deep. */
[b-iwalwi78qe] .icon-plus,
[b-iwalwi78qe] .icon-pencil,
[b-iwalwi78qe] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.search-input[b-iwalwi78qe] {
	padding-left: 36px;
}

.total-count[b-iwalwi78qe] {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}

/* Badges */

.badge[b-iwalwi78qe] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-admin[b-iwalwi78qe] {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Table */

.table-card[b-iwalwi78qe] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	/* Grow to fill the rest of the page (staff-page is a flex column that
	   fills the viewport) instead of only being as tall as its rows, then
	   scroll its own content - both horizontally (wide table) and
	   vertically (many rows) - only when it doesn't fit, rather than the
	   whole page scrolling and leaving dead space below a short table. */
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.staff-table[b-iwalwi78qe] {
	width: 100%;
	border-collapse: collapse;
}

.staff-table thead th[b-iwalwi78qe] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.staff-table thead tr:first-child th:first-child[b-iwalwi78qe] { border-top-left-radius: 12px; }
.staff-table thead tr:first-child th:last-child[b-iwalwi78qe] { border-top-right-radius: 12px; }
.staff-table tbody tr:last-child td:first-child[b-iwalwi78qe] { border-bottom-left-radius: 12px; }
.staff-table tbody tr:last-child td:last-child[b-iwalwi78qe] { border-bottom-right-radius: 12px; }

.staff-table tbody td[b-iwalwi78qe] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.staff-table tbody tr:last-child td[b-iwalwi78qe] { border-bottom: none; }
.staff-table tbody tr:hover[b-iwalwi78qe] { background: var(--surface-hover); }

.cell-code[b-iwalwi78qe] { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cell-name[b-iwalwi78qe] { font-weight: 600; }

/* Row actions */

.row-actions[b-iwalwi78qe] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.btn-load-more[b-iwalwi78qe] {
	min-width: 160px;
}

/* Mobile card list: hidden on desktop, shown instead of the table on mobile */

.mobile-list[b-iwalwi78qe] {
	display: none;
}

.m-card[b-iwalwi78qe] {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.m-card:hover[b-iwalwi78qe] {
	border-color: var(--accent);
}

.m-card-top[b-iwalwi78qe] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.m-card-title[b-iwalwi78qe] {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	color: var(--accent);
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-sub[b-iwalwi78qe] {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

.m-card-sub span[b-iwalwi78qe] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-card-notes[b-iwalwi78qe] {
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile layout: compact single-column view, closer to the original simple
   list. Breakpoint is 1400px - deliberately much wider than any phone or
   opened foldable (which top out around 430px / 900px respectively) - it
   also covers an ordinary desktop browser window simply resized narrower, so
   shrinking the window itself switches to the compact card view instead of
   squeezing the desktop table layout. See ComplaintList.razor.css. */

@media (max-width: 1400px) {
	.topbar[b-iwalwi78qe] {
		align-items: flex-start;
	}

	.btn-new[b-iwalwi78qe],
	[b-iwalwi78qe] .btn-new {
		width: 100%;
		justify-content: center;
	}

	.table-card[b-iwalwi78qe] {
		display: none;
	}

	.mobile-list[b-iwalwi78qe] {
		display: block;
	}

	.toolbar-row[b-iwalwi78qe] {
		gap: 10px 16px;
	}
}

/* Extra-narrow tier: foldable cover screens (Galaxy Z Fold/Flip closed, Pixel
   Fold closed) run as narrow as ~280px, well below any normal phone. Tighten
   spacing further so nothing wraps awkwardly or overflows. */

@media (max-width: 349px) {
	.toolbar[b-iwalwi78qe] {
		padding: 14px 14px;
	}

	.m-card[b-iwalwi78qe] {
		padding: 10px 12px;
	}

	.m-card-title[b-iwalwi78qe] {
		font-size: 13.5px;
	}

	.btn-new[b-iwalwi78qe],
	[b-iwalwi78qe] .btn-new {
		font-size: 12.5px;
	}

	.total-count[b-iwalwi78qe] {
		font-size: 12px;
	}
}

/* Column widths, moved from inline style attributes (issue 101). */
.col-code[b-iwalwi78qe] {
	width: 110px;
}

.col-admin[b-iwalwi78qe] {
	width: 100px;
}

.col-actions[b-iwalwi78qe] {
	width: 96px;
}
/* /Components/Pages/Stock/Import.razor.rz.scp.css */
/* Import wizard (issue 173): wizard card with a stepper on the left/main column, saved profiles and run history in a
   side column; one column below 1024px. Shell (header, loading) comes from the shared page-shell components. */
.import-page[b-uphm79hntk] {
	color: var(--ink);
}

.btn[b-uphm79hntk],
[b-uphm79hntk] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-outline[b-uphm79hntk],
[b-uphm79hntk] .btn-outline {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.btn-xs[b-uphm79hntk] {
	height: 24px;
	padding: 0 8px;
	font-size: 11.5px;
}

.import-layout[b-uphm79hntk] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
	gap: 16px;
	align-items: start;
}

.card-box[b-uphm79hntk] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
	min-width: 0;
}

/* The wizard is a size container: step 2's pairing grid and the stepper follow the wizard's own width (it is narrow
   beside the side column at 1025-1220px), not the viewport's. */
.wizard[b-uphm79hntk] {
	container: wizard / inline-size;
}

.side[b-uphm79hntk] {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.side-title[b-uphm79hntk] {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 12px;
}

.side-title small[b-uphm79hntk] {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* Stepper */
.stepper[b-uphm79hntk] {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.stepper li[b-uphm79hntk] {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--ink-faint);
	padding-right: 10px;
}

.step-no[b-uphm79hntk] {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 11.5px;
	flex-shrink: 0;
}

.stepper li.current[b-uphm79hntk] { color: var(--ink); font-weight: 700; }
.stepper li.current .step-no[b-uphm79hntk] { background: var(--accent); border-color: var(--accent); color: var(--on-color); }
.stepper li.done .step-no[b-uphm79hntk] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-strong); }

.editing-note[b-uphm79hntk] {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0 0 10px;
	overflow-wrap: anywhere;
}

.step-body[b-uphm79hntk] {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.choice-group[b-uphm79hntk] {
	border: 0;
	margin: 0;
	padding: 0;
}

.choice-group legend[b-uphm79hntk] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 6px;
}

.segmented[b-uphm79hntk] {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	overflow: hidden;
	max-width: 100%;
}

.seg[b-uphm79hntk] {
	border: 0;
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 12.5px;
	padding: 6px 14px;
	min-height: 32px;
}

.seg + .seg[b-uphm79hntk] { border-left: 1px solid var(--line-strong); }
.seg.active[b-uphm79hntk] { background: var(--accent); color: var(--on-color); font-weight: 600; }

.form-grid[b-uphm79hntk] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 14px;
}

.form-field[b-uphm79hntk] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.form-field.wide[b-uphm79hntk],
.hint.wide[b-uphm79hntk] { grid-column: 1 / -1; }

.form-field label[b-uphm79hntk] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
}

.hint[b-uphm79hntk] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 0;
}

.hint.hint-danger[b-uphm79hntk] {
	color: var(--danger-ink);
}

.form-field.credential-remove[b-uphm79hntk] {
	justify-content: flex-end;
	align-items: flex-start;
}

.muted[b-uphm79hntk] { color: var(--ink-faint); }

/* File drop zone: the native file input covers the whole zone. */
.drop-zone[b-uphm79hntk] {
	position: relative;
	border: 2px dashed var(--line-strong);
	border-radius: 10px;
	padding: 18px;
	background: var(--surface-muted);
	text-align: center;
}

.drop-zone:hover[b-uphm79hntk],
.drop-zone:focus-within[b-uphm79hntk] { border-color: var(--accent); }
.drop-zone.busy[b-uphm79hntk] { opacity: .7; }

.drop-label[b-uphm79hntk] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.file-input[b-uphm79hntk] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.advanced summary[b-uphm79hntk] {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-soft);
	cursor: pointer;
	margin-bottom: 8px;
}

.step-actions[b-uphm79hntk] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

/* Step 2: pairing */
.pair-table[b-uphm79hntk] {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.pair-row[b-uphm79hntk] {
	display: grid;
	grid-template-columns: minmax(0, 180px) minmax(0, 240px) minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 6px 12px;
	border-top: 1px solid var(--line-soft);
	font-size: 12.5px;
}

.pair-head[b-uphm79hntk] {
	border-top: 0;
	background: var(--surface-muted);
	font-weight: 600;
	color: var(--ink-soft);
}

.pair-field[b-uphm79hntk] { font-weight: 600; margin: 0; }
.req[b-uphm79hntk] { color: var(--danger-ink); margin-left: 2px; }

.samples[b-uphm79hntk] {
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.unpaired[b-uphm79hntk] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 0;
	overflow-wrap: anywhere;
}

/* Step 3: preview */
.counts[b-uphm79hntk] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(84px, 100%), 1fr));
	gap: 8px;
}

.count[b-uphm79hntk] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.count strong[b-uphm79hntk] { font-size: 18px; }
.count span[b-uphm79hntk] { font-size: 11.5px; color: var(--ink-soft); }
.count.ok strong[b-uphm79hntk] { color: var(--success-ink); }
.count.skipped strong[b-uphm79hntk] { color: var(--danger-ink); }

.reason-list[b-uphm79hntk] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.5px;
}

.tabs[b-uphm79hntk] {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--line);
}

.tab[b-uphm79hntk] {
	border: 0;
	background: none;
	padding: 6px 12px;
	font-size: 12.5px;
	color: var(--ink-soft);
	border-bottom: 2px solid transparent;
	min-height: 32px;
}

.tab.active[b-uphm79hntk] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.table-wrap[b-uphm79hntk] {
	overflow: auto;
	/* Back/Next stay on screen on a laptop (1440x860). */
	max-height: clamp(220px, calc(100vh - 460px), 420px);
	min-width: 0;
}

.preview-table[b-uphm79hntk] {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}

.preview-table th[b-uphm79hntk] {
	position: sticky;
	top: 0;
	background: var(--surface-muted);
	text-align: left;
	font-weight: 600;
	color: var(--ink-soft);
	padding: 6px 8px;
	white-space: nowrap;
}

.preview-table td[b-uphm79hntk] {
	padding: 5px 8px;
	border-top: 1px solid var(--line-soft);
	vertical-align: top;
}

.num[b-uphm79hntk] { text-align: right; white-space: nowrap; }
.mono[b-uphm79hntk] { font-family: var(--bs-font-monospace); white-space: normal; overflow-wrap: anywhere; min-width: 16ch; }
.text-cell[b-uphm79hntk] { min-width: 160px; overflow-wrap: anywhere; }

/* Long names and raw cells: a few lines here, the full text in the title. */
.clamp-2[b-uphm79hntk],
.clamp-3[b-uphm79hntk] {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-2[b-uphm79hntk] { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3[b-uphm79hntk] { -webkit-line-clamp: 3; line-clamp: 3; }

.outcome[b-uphm79hntk] {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--surface-muted);
	color: var(--ink-soft);
	white-space: nowrap;
}

.outcome-create[b-uphm79hntk] { background: var(--success-soft); color: var(--success-ink); }
.outcome-update[b-uphm79hntk] { background: var(--info-soft); color: var(--info-ink); }

/* Step 4: run status */
.run-status[b-uphm79hntk] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.link-btn[b-uphm79hntk] {
	border: 0;
	background: none;
	padding: 0;
	color: var(--accent);
	font-size: 12.5px;
	text-decoration: underline;
}

.badge[b-uphm79hntk] {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
}

.status-done[b-uphm79hntk] { background: var(--status-done-bg); color: var(--status-done-ink); }
.status-progress[b-uphm79hntk] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.status-failed[b-uphm79hntk] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.run-status.status-done[b-uphm79hntk],
.run-status.status-progress[b-uphm79hntk],
.run-status.status-failed[b-uphm79hntk] { background: var(--surface); color: var(--ink); }

/* Side lists */
.profile-list[b-uphm79hntk],
.run-list[b-uphm79hntk] {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.profile[b-uphm79hntk] {
	border-top: 1px solid var(--line-soft);
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.profile:first-child[b-uphm79hntk] { border-top: 0; padding-top: 0; }
.profile.selected .profile-name[b-uphm79hntk] { color: var(--accent); }

.profile-top[b-uphm79hntk],
.run-top[b-uphm79hntk] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.profile-name[b-uphm79hntk],
.run-name[b-uphm79hntk] {
	font-weight: 700;
	font-size: 13px;
	overflow-wrap: anywhere;
	min-width: 0;
}

.profile-sub[b-uphm79hntk],
.run-sub[b-uphm79hntk] {
	font-size: 12px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.profile-actions[b-uphm79hntk] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.run[b-uphm79hntk] {
	width: 100%;
	border: 0;
	border-top: 1px solid var(--line-soft);
	background: none;
	padding: 8px 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink);
}

.run-list li:first-child .run[b-uphm79hntk] { border-top: 0; padding-top: 0; }
.run:hover .run-name[b-uphm79hntk] { color: var(--accent); }

@media (max-width: 1024px) {
	.import-layout[b-uphm79hntk] { grid-template-columns: minmax(0, 1fr); }
}

@container wizard (max-width: 640px) {
	.pair-row[b-uphm79hntk] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
	.pair-row .samples[b-uphm79hntk] { grid-column: 1 / -1; }
	.pair-head span:last-child[b-uphm79hntk] { display: none; }
}

@container wizard (max-width: 460px) {
	.stepper .step-label[b-uphm79hntk] { display: none; }
	.stepper li.current .step-label[b-uphm79hntk] { display: inline; }
}

@media (max-width: 640px) {
	.card-box[b-uphm79hntk] { padding: 12px; }
	.form-grid[b-uphm79hntk] { grid-template-columns: minmax(0, 1fr); }
	.step-actions .btn[b-uphm79hntk] { flex: 1 1 auto; }
	.count[b-uphm79hntk] { padding: 6px 8px; }
	.count strong[b-uphm79hntk] { font-size: 15px; }
	.segmented[b-uphm79hntk] { display: flex; }
	.seg[b-uphm79hntk] { flex: 1 1 0; }
}

/* Touch targets: sizes only, 44px on phones and touch screens. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-uphm79hntk],
	[b-uphm79hntk] .btn,
	.seg[b-uphm79hntk],
	.tab[b-uphm79hntk],
	.step-actions .btn[b-uphm79hntk],
	.btn-xs[b-uphm79hntk],
	.import-page .form-select[b-uphm79hntk],
	.import-page .form-control[b-uphm79hntk] {
		min-height: 44px;
	}

	.link-btn[b-uphm79hntk] {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	/* Stays display: list-item, which keeps the disclosure marker. */
	.advanced summary[b-uphm79hntk] {
		min-height: 44px;
		padding: 12px 0;
		margin-bottom: 0;
	}
}

@media (max-width: 349px) {
	.segmented[b-uphm79hntk] { flex-direction: column; }
	.seg[b-uphm79hntk] { flex: 0 0 auto; }
	.seg + .seg[b-uphm79hntk] { border-left: 0; border-top: 1px solid var(--line-strong); }
	.stepper[b-uphm79hntk] { gap: 6px; }
	.stepper li[b-uphm79hntk] { padding-right: 0; }
}
/* /Components/Pages/Stock/ImportRunDrawer.razor.rz.scp.css */
/* Import run drawer (issue 173), same shape as the Stock history drawer. */
.drawer-backdrop[b-cf1ream1jz] {
	position: fixed;
	inset: 0;
	background: var(--modal-backdrop);
	z-index: 1050;
}

.drawer[b-cf1ream1jz] {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 440px;
	background: var(--surface);
	z-index: 1051;
	display: flex;
	flex-direction: column;
}

.drawer:focus[b-cf1ream1jz] { outline: none; }

.drawer-header[b-cf1ream1jz] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.drawer-titles[b-cf1ream1jz] { min-width: 0; }

.drawer-header h2[b-cf1ream1jz] {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--accent);
}

.drawer-sub[b-cf1ream1jz] {
	display: block;
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.drawer-close[b-cf1ream1jz] {
	width: 44px;
	height: 44px;
	margin: -6px -10px 0 0;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: var(--ink-soft);
	flex-shrink: 0;
}

.drawer-body[b-cf1ream1jz] {
	padding: 12px 20px 20px;
	overflow-y: auto;
	flex: 1;
}

.facts[b-cf1ream1jz] {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 14px;
	font-size: 12.5px;
	margin: 0 0 16px;
}

.facts dt[b-cf1ream1jz] {
	color: var(--ink-faint);
	font-weight: 600;
}

.facts dd[b-cf1ream1jz] {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Issue 204b review R1: on a phone the label sits above its value. */
@media (max-width: 480px) {
	.facts[b-cf1ream1jz] {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.facts dd[b-cf1ream1jz] {
		margin-bottom: 4px;
	}
}

.error-text[b-cf1ream1jz] { color: var(--danger-ink); }

.sample-title[b-cf1ream1jz] {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 8px;
}

.skipped-list[b-cf1ream1jz] {
	list-style: none;
	margin: 0;
	padding: 0;
}

.skipped-list li[b-cf1ream1jz] {
	border-bottom: 1px solid var(--line-soft);
	padding: 8px 0;
	font-size: 12.5px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.skip-row[b-cf1ream1jz] { font-weight: 700; }

.skip-cells[b-cf1ream1jz] {
	color: var(--ink-soft);
	overflow-wrap: anywhere;
	font-family: var(--bs-font-monospace);
	font-size: 11.5px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

.badge[b-cf1ream1jz] {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
}

.status-done[b-cf1ream1jz] { background: var(--status-done-bg); color: var(--status-done-ink); }
.status-progress[b-cf1ream1jz] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.status-failed[b-cf1ream1jz] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
/* /Components/Pages/Stock/Stock.razor.rz.scp.css */
/* Stock page (issue 172): toolbar, items x locations grid with sticky first columns, phone cards with location chips.
   Shell (header, empty/loading) comes from the shared page-shell components. */
.stock-page[b-aoxiwcrxsh] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.btn[b-aoxiwcrxsh],
[b-aoxiwcrxsh] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-outline[b-aoxiwcrxsh],
[b-aoxiwcrxsh] .btn-outline {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.toolbar[b-aoxiwcrxsh] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 18px;
}

.toolbar-row[b-aoxiwcrxsh] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-aoxiwcrxsh] {
	flex: 1 1 260px;
	max-width: 420px;
	min-width: 0;
	position: relative;
}

.search-wrap[b-aoxiwcrxsh]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.search-input[b-aoxiwcrxsh] {
	padding-left: 36px;
}

.filter-field[b-aoxiwcrxsh] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.filter-label[b-aoxiwcrxsh] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	white-space: nowrap;
	margin: 0;
}

.filter-field .form-select[b-aoxiwcrxsh] {
	min-width: 0;
	max-width: 240px;
}

.toggle[b-aoxiwcrxsh] {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 0;
}

[b-aoxiwcrxsh] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.badge[b-aoxiwcrxsh] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-default[b-aoxiwcrxsh] { background: var(--line-soft); color: var(--ink-soft); }

/* Grid */

.table-card[b-aoxiwcrxsh] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.stock-table[b-aoxiwcrxsh] {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.stock-table thead th[b-aoxiwcrxsh] {
	position: sticky;
	top: 0;
	z-index: 2;
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 12px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
	vertical-align: bottom;
}

.stock-table tbody td[b-aoxiwcrxsh] {
	padding: 7px 12px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
	background: var(--surface);
	white-space: nowrap;
}

.stock-table tbody tr:last-child td[b-aoxiwcrxsh] { border-bottom: none; }
.stock-table tbody tr:hover td[b-aoxiwcrxsh] { background: var(--surface-hover); }
.stock-table tbody tr.row-archived td[b-aoxiwcrxsh] { color: var(--ink-faint); }

/* The part number and name stay visible while the location columns scroll sideways. */
.sticky-col[b-aoxiwcrxsh] {
	position: sticky;
	z-index: 1;
}

.stock-table thead th.sticky-col[b-aoxiwcrxsh] { z-index: 3; }

.col-part[b-aoxiwcrxsh] {
	left: 0;
	/* Issue 204b review R2: room for the source pill and the price-list marker side by side. */
	min-width: 150px;
	max-width: 150px;
}

.col-name[b-aoxiwcrxsh] {
	left: 150px;
	min-width: 200px;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	border-right: 1px solid var(--line);
}

.cell-part[b-aoxiwcrxsh] { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cell-soft[b-aoxiwcrxsh] { color: var(--ink-soft); }
.cell-number[b-aoxiwcrxsh] { font-variant-numeric: tabular-nums; }
.cell-total[b-aoxiwcrxsh] { font-weight: 700; }

.col-location[b-aoxiwcrxsh] {
	min-width: 110px;
}

/* Total and Actions stay pinned on the right while the columns scroll sideways. */
th.col-total[b-aoxiwcrxsh],
td.cell-total[b-aoxiwcrxsh] {
	position: sticky;
	right: 84px;
	z-index: 1;
	box-shadow: -6px 0 6px -6px var(--line-strong);
}

th.col-actions[b-aoxiwcrxsh],
td.cell-actions[b-aoxiwcrxsh] {
	position: sticky;
	right: 0;
	z-index: 1;
}

.stock-table thead th.col-total[b-aoxiwcrxsh],
.stock-table thead th.col-actions[b-aoxiwcrxsh] {
	z-index: 3;
}

/* Without a Total column (one location shown) the Actions column carries the edge shadow. */
.stock-table.no-total th.col-actions[b-aoxiwcrxsh],
.stock-table.no-total td.cell-actions[b-aoxiwcrxsh] {
	box-shadow: -6px 0 6px -6px var(--line-strong);
}

.loc-name[b-aoxiwcrxsh],
.loc-today[b-aoxiwcrxsh] {
	display: block;
	text-align: right;
}

.loc-name[b-aoxiwcrxsh] {
	max-width: 160px;
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ink);
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}

.loc-today[b-aoxiwcrxsh] {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	font-size: 10.5px;
	max-width: 160px;
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qty-btn[b-aoxiwcrxsh] {
	border: 1px solid transparent;
	background: transparent;
	border-radius: 6px;
	padding: 3px 8px;
	min-width: 56px;
	font-variant-numeric: tabular-nums;
	font-size: 12.5px;
	color: var(--ink);
	text-align: right;
	cursor: pointer;
}

.qty-btn:hover:not(:disabled)[b-aoxiwcrxsh],
.qty-btn:focus-visible[b-aoxiwcrxsh] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.qty-btn:disabled[b-aoxiwcrxsh] { cursor: default; }

.qty-btn.is-empty[b-aoxiwcrxsh] { color: var(--ink-faint); }
.qty-btn.is-below-minimum[b-aoxiwcrxsh],
.chip.is-below-minimum[b-aoxiwcrxsh] {
	background: var(--warning-soft);
	border-color: var(--warning-line);
	color: var(--warning-ink);
	font-weight: 700;
}

.qty-btn.is-negative[b-aoxiwcrxsh],
.chip.is-negative[b-aoxiwcrxsh] {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.min-hint[b-aoxiwcrxsh] {
	display: block;
	font-size: 10px;
	color: var(--ink-faint);
	font-weight: 500;
}

.row-actions[b-aoxiwcrxsh] {
	display: flex;
	gap: 4px;
	justify-content: flex-end;
}

.btn-icon[b-aoxiwcrxsh] {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink-soft);
}

.btn-icon:hover[b-aoxiwcrxsh] { color: var(--accent); border-color: var(--accent); }

.col-actions[b-aoxiwcrxsh] { width: 84px; min-width: 84px; }

.btn-load-more[b-aoxiwcrxsh] { min-width: 160px; }

/* Phone cards */

.stock-cards[b-aoxiwcrxsh] { display: none; }

.stock-card[b-aoxiwcrxsh] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 12px;
	margin-bottom: 8px;
}

.stock-card.is-archived[b-aoxiwcrxsh] { opacity: 0.7; }

.m-card-top[b-aoxiwcrxsh] {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.m-card-title[b-aoxiwcrxsh] {
	font-weight: 700;
	font-size: 13.5px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.card-total[b-aoxiwcrxsh] {
	font-size: 12px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.m-card-sub[b-aoxiwcrxsh] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
	font-size: 12.5px;
	min-width: 0;
}

.m-card-sub span[b-aoxiwcrxsh] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.muted[b-aoxiwcrxsh] { color: var(--ink-faint); }

.chips[b-aoxiwcrxsh] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.chip[b-aoxiwcrxsh] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-height: 32px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--line-soft);
	color: var(--ink);
	font-size: 12px;
}

.chip-name[b-aoxiwcrxsh] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-soft);
}

.chip-qty[b-aoxiwcrxsh] {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.chip.is-empty .chip-qty[b-aoxiwcrxsh] { color: var(--ink-faint); }

.chip-more[b-aoxiwcrxsh] {
	color: var(--accent);
	background: var(--surface);
	border-style: dashed;
}

.card-actions[b-aoxiwcrxsh] {
	margin-top: 6px;
}

/* Decision 181: charge items of the item still waiting for a price (stock used before its cost price was known). */
.needs-price-count[b-aoxiwcrxsh] {
	display: block;
	margin: 4px 0 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--danger-ink);
	white-space: nowrap;
}

.link-btn[b-aoxiwcrxsh] {
	border: none;
	background: none;
	padding: 0;
	color: var(--accent);
	font-size: 12.5px;
	text-align: left;
}

.link-btn:hover[b-aoxiwcrxsh] { text-decoration: underline; }

@media (max-width: 1400px) {
	.toolbar.mobile-collapsed[b-aoxiwcrxsh] {
		display: none;
	}
}

/* A desktop window keeps the grid inside the viewport: its header stays sticky and its horizontal scrollbar visible. */
@media (min-width: 1025px) {
	.table-card[b-aoxiwcrxsh] {
		flex: 0 1 auto;
		max-height: calc(100vh - 320px);
		min-height: 220px;
	}
}

/* Up to 1400px the Filters toggle adds a row and the open panel wraps more, so the cap leaves room for it. */
@media (min-width: 1025px) and (max-width: 1400px) {
	.stock-page:has(.toolbar:not(.mobile-collapsed)) .table-card[b-aoxiwcrxsh] {
		max-height: calc(100vh - 400px);
	}
}

@media (max-width: 1600px) {
	.col-optional[b-aoxiwcrxsh] { display: none; }
}

/* Cards instead of the grid where the sticky columns would fill the card. */
@media (max-width: 1024px) {
	.table-card[b-aoxiwcrxsh] { display: none; }
	.stock-cards[b-aoxiwcrxsh] { display: block; }
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-aoxiwcrxsh],
	[b-aoxiwcrxsh] .btn,
	.chip[b-aoxiwcrxsh],
	.link-btn[b-aoxiwcrxsh],
	.btn-icon[b-aoxiwcrxsh],
	.qty-btn[b-aoxiwcrxsh] {
		min-height: 44px;
	}

	.btn-icon[b-aoxiwcrxsh] {
		min-width: 44px;
	}

	.link-btn[b-aoxiwcrxsh] {
		display: inline-flex;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.filter-field[b-aoxiwcrxsh] {
		flex: 1 1 100%;
	}

	/* Five header buttons: two per row, the primary one on a row of its own (decision 204, review P2). */
	.actions[b-aoxiwcrxsh] {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.actions .btn[b-aoxiwcrxsh] {
		width: 100%;
		min-width: 0;
		height: auto;
		white-space: normal;
		text-align: center;
	}

	.actions .btn-new[b-aoxiwcrxsh] {
		grid-column: 1 / -1;
	}

	.filter-field .form-select[b-aoxiwcrxsh] {
		max-width: none;
		flex: 1;
	}
}

/* Decision 180: the item's source under its part number */
.cell-source[b-aoxiwcrxsh] {
	margin-top: 2px;
	font-weight: 400;
	max-width: 100%;
	overflow: hidden;
	/* Issue 204b: the source pill and the price-list marker on one line; the pill shrinks with an ellipsis. */
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Issue 204b: the item follows a supplier's price list (tooltip names the supplier and part number). */
.source-row[b-aoxiwcrxsh] {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.link-marker[b-aoxiwcrxsh] {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	color: var(--accent);
	font-size: 13px;
	line-height: 1;
}
/* /Components/Pages/Stock/StockAdjustDialog.razor.rz.scp.css */
/* Adjust-quantity dialog of the Stock page (issue 172). */
.stock-modal[b-zz4pl75zwo] {
	background-color: var(--modal-backdrop);
}

.btn[b-zz4pl75zwo],
[b-zz4pl75zwo] .btn {
	height: 30px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-sm[b-zz4pl75zwo] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-zz4pl75zwo] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

/* The form's read-only wrapper after a save with the cost price notice: no fieldset chrome. */
.form-fieldset[b-zz4pl75zwo] {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.form-grid[b-zz4pl75zwo] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.form-cell[b-zz4pl75zwo] {
	min-width: 0;
}

.span-2[b-zz4pl75zwo] {
	grid-column: 1 / -1;
}

.form-label[b-zz4pl75zwo] {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.hint[b-zz4pl75zwo] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 4px 0 0;
}

.readonly-value[b-zz4pl75zwo] {
	min-height: 34px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-muted);
	font-size: 13px;
}

.badge[b-zz4pl75zwo] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-default[b-zz4pl75zwo] { background: var(--line-soft); color: var(--ink-soft); }

@media (max-width: 575.98px) {
	.form-grid[b-zz4pl75zwo] {
		grid-template-columns: minmax(0, 1fr);
	}
}

.summary[b-zz4pl75zwo] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
	background: var(--surface-muted);
}

.summary-item[b-zz4pl75zwo] {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.summary-loc[b-zz4pl75zwo],
.summary-qty[b-zz4pl75zwo] {
	font-size: 12.5px;
	color: var(--ink-soft);
}

.plan-options[b-zz4pl75zwo] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 6px;
	max-height: 200px;
	overflow-y: auto;
}

.plan-option[b-zz4pl75zwo] {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	text-align: left;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	padding: 6px 10px;
	font-size: 12.5px;
}

.plan-option:hover[b-zz4pl75zwo] { border-color: var(--accent); }

.plan-option.is-selected[b-zz4pl75zwo] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.plan-id[b-zz4pl75zwo] { font-weight: 700; }

.plan-text[b-zz4pl75zwo] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.plan-status[b-zz4pl75zwo] {
	font-size: 11px;
	color: var(--ink-faint);
}

/* Decision 181: "Continue without price" sits under the cost price prompt. */
.without-price-btn[b-zz4pl75zwo] {
	margin-top: 6px;
}

.minimum-cell[b-zz4pl75zwo] {
	border-top: 1px solid var(--line-soft);
	padding-top: 10px;
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-zz4pl75zwo],
	[b-zz4pl75zwo] .btn,
	.btn-close[b-zz4pl75zwo],
	.plan-option[b-zz4pl75zwo] {
		min-height: 44px;
	}

	.btn-close[b-zz4pl75zwo] {
		min-width: 44px;
	}
}

@media (max-width: 575.98px) {
	.plan-options[b-zz4pl75zwo] {
		max-height: none;
	}
}

/* Decision 180: the item's source under its name */
.summary-source[b-zz4pl75zwo] {
	margin-top: 2px;
}
/* /Components/Pages/Stock/StockHistoryDrawer.razor.rz.scp.css */
/* Movement history drawer of the Stock page (issue 172), same shape as EmailSourceDrawer. */
.drawer-backdrop[b-e45djizgza] {
	position: fixed;
	inset: 0;
	background: var(--modal-backdrop);
	z-index: 1050;
}

.drawer[b-e45djizgza] {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 440px;
	background: var(--surface);
	z-index: 1051;
	display: flex;
	flex-direction: column;
}

.drawer:focus[b-e45djizgza] { outline: none; }

.drawer-header[b-e45djizgza] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.drawer-titles[b-e45djizgza] { min-width: 0; }

.drawer-header h2[b-e45djizgza] {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--accent);
}

.drawer-sub[b-e45djizgza] {
	display: block;
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.drawer-close[b-e45djizgza] {
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: var(--ink-soft);
	flex-shrink: 0;
}

.drawer-body[b-e45djizgza] {
	padding: 12px 20px 20px;
	overflow-y: auto;
	flex: 1;
}

.movement-list[b-e45djizgza] {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.movement[b-e45djizgza] {
	border-bottom: 1px solid var(--line-soft);
	padding: 10px 0;
	font-size: 12.5px;
}

.movement-top[b-e45djizgza] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.movement-qty[b-e45djizgza] {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.movement-route[b-e45djizgza],
.movement-note[b-e45djizgza],
.movement-link[b-e45djizgza] { margin-top: 3px; overflow-wrap: anywhere; }

.movement-note[b-e45djizgza] { color: var(--ink-soft); font-style: italic; }

.movement-meta[b-e45djizgza] {
	margin-top: 3px;
	font-size: 11.5px;
	color: var(--ink-faint);
}

.badge[b-e45djizgza] {
	display: inline-flex;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	background: var(--line-soft);
	color: var(--ink-soft);
}

.reason-received[b-e45djizgza] { background: var(--success-soft); color: var(--success-ink); }
.reason-usedonplan[b-e45djizgza] { background: var(--accent-soft); color: var(--accent-strong); }
.reason-movedtocar[b-e45djizgza] { background: var(--info-soft); color: var(--info-ink); }
.reason-correction[b-e45djizgza] { background: var(--warning-soft); color: var(--warning-ink); }

.hint[b-e45djizgza] {
	font-size: 12px;
	color: var(--ink-faint);
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.drawer-close[b-e45djizgza],
	.btn[b-e45djizgza] {
		min-height: 44px;
		min-width: 44px;
	}
}

/* Decision 180: the item's source under the title */
.drawer-titles[b-e45djizgza]  .source-pill {
	margin-top: 4px;
}
/* /Components/Pages/Stock/StockItemDialog.razor.rz.scp.css */
/* Add/edit item dialog of the Stock page (issue 172). */
.stock-modal[b-yifttqvkhx] {
	background-color: var(--modal-backdrop);
}

.btn[b-yifttqvkhx],
[b-yifttqvkhx] .btn {
	height: 30px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-sm[b-yifttqvkhx] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-yifttqvkhx] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.form-grid[b-yifttqvkhx] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.form-cell[b-yifttqvkhx] {
	min-width: 0;
}

.span-2[b-yifttqvkhx] {
	grid-column: 1 / -1;
}

.form-label[b-yifttqvkhx] {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.hint[b-yifttqvkhx] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 4px 0 0;
}

.readonly-value[b-yifttqvkhx] {
	min-height: 34px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-muted);
	font-size: 13px;
}

.badge[b-yifttqvkhx] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-default[b-yifttqvkhx] { background: var(--line-soft); color: var(--ink-soft); }

@media (max-width: 575.98px) {
	.form-grid[b-yifttqvkhx] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-yifttqvkhx],
	[b-yifttqvkhx] .btn,
	.btn-close[b-yifttqvkhx],
	.plan-option[b-yifttqvkhx],
	.form-control[b-yifttqvkhx],
	.form-select[b-yifttqvkhx] {
		min-height: 44px;
	}

	.btn-close[b-yifttqvkhx] {
		min-width: 44px;
	}
}

/* Decision 180: the item's id next to the title, and its source above the form */
.item-id[b-yifttqvkhx] {
	margin-left: 6px;
	color: var(--ink-faint);
	font-size: 13px;
	font-weight: 500;
}

.item-source[b-yifttqvkhx] {
	margin-bottom: 12px;
}

.form-control[readonly][b-yifttqvkhx] {
	background: var(--surface-muted);
	color: var(--ink-soft);
}

/* Issue 204b: the supplier price-list link of a hand-entered item */
.link-section[b-yifttqvkhx] {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.link-title[b-yifttqvkhx] {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--ink);
}

.link-status[b-yifttqvkhx] {
	font-size: 13px;
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

.link-check[b-yifttqvkhx] {
	font-size: 12.5px;
	margin: 8px 0 0;
	padding: 6px 10px;
	border-radius: 6px;
	overflow-wrap: anywhere;
}

.check-ok[b-yifttqvkhx] {
	background: var(--success-soft);
	color: var(--success-ink);
}

.check-warn[b-yifttqvkhx] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.link-actions[b-yifttqvkhx] {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.link-section .form-grid[b-yifttqvkhx] {
	margin-top: 8px;
}
/* /Components/Pages/Stock/StockLocationsDialog.razor.rz.scp.css */
/* Locations dialog of the Stock page (issue 172). */
.stock-modal[b-omgsvrn31b] {
	background-color: var(--modal-backdrop);
}

.btn[b-omgsvrn31b],
[b-omgsvrn31b] .btn {
	height: 30px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-sm[b-omgsvrn31b] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-omgsvrn31b] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.form-grid[b-omgsvrn31b] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.form-cell[b-omgsvrn31b] {
	min-width: 0;
}

.span-2[b-omgsvrn31b] {
	grid-column: 1 / -1;
}

.form-label[b-omgsvrn31b] {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.hint[b-omgsvrn31b] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 4px 0 0;
}

.readonly-value[b-omgsvrn31b] {
	min-height: 34px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-muted);
	font-size: 13px;
}

.badge[b-omgsvrn31b] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-default[b-omgsvrn31b] { background: var(--line-soft); color: var(--ink-soft); }

@media (max-width: 575.98px) {
	.form-grid[b-omgsvrn31b] {
		grid-template-columns: minmax(0, 1fr);
	}
}

.location-list[b-omgsvrn31b] {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.location-row[b-omgsvrn31b] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
}

.location-row.is-archived[b-omgsvrn31b] { opacity: 0.65; }

.location-main[b-omgsvrn31b] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1 1 240px;
}

.location-name[b-omgsvrn31b] { font-weight: 700; }

.location-detail[b-omgsvrn31b] {
	flex-basis: 100%;
	font-size: 12px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.row-actions[b-omgsvrn31b] {
	display: flex;
	gap: 6px;
}

.add-buttons[b-omgsvrn31b] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.address-box[b-omgsvrn31b] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 6px 10px;
	background: var(--surface-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-omgsvrn31b],
	[b-omgsvrn31b] .btn,
	.btn-close[b-omgsvrn31b],
	.plan-option[b-omgsvrn31b] {
		min-height: 44px;
	}

	.btn-close[b-omgsvrn31b] {
		min-width: 44px;
	}
}
/* /Components/Pages/Stock/StockReimportDialog.razor.rz.scp.css */
/* Re-import of an edited stock export (decision 204), opened from the Stock page. */
.stock-modal[b-j8kqndw483] {
	background-color: var(--modal-backdrop);
}

.btn[b-j8kqndw483],
[b-j8kqndw483] .btn {
	height: 30px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-outline[b-j8kqndw483] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
}

.intro[b-j8kqndw483] {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 0 0 12px;
}

.hint[b-j8kqndw483] {
	font-size: 11.5px;
	color: var(--ink-faint);
	margin: 4px 0 0;
}

/* File drop zone: the native file input covers the whole zone. */
.drop-zone[b-j8kqndw483] {
	position: relative;
	border: 2px dashed var(--line-strong);
	border-radius: 10px;
	padding: 18px;
	background: var(--surface-muted);
	text-align: center;
	margin-bottom: 12px;
}

.drop-zone:hover[b-j8kqndw483],
.drop-zone:focus-within[b-j8kqndw483] {
	border-color: var(--accent);
}

.drop-zone.busy[b-j8kqndw483] {
	opacity: .7;
}

.drop-label[b-j8kqndw483] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.file-input[b-j8kqndw483] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.report[b-j8kqndw483] {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.report .alert[b-j8kqndw483] {
	font-size: 12.5px;
	margin-bottom: 0;
}

.report-title[b-j8kqndw483] {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.report-grid[b-j8kqndw483] {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.report-cell[b-j8kqndw483] {
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

.report-cell dt[b-j8kqndw483] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

.report-cell dd[b-j8kqndw483] {
	margin: 2px 0 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}

.plain-list[b-j8kqndw483] {
	margin: 0;
	padding-left: 18px;
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.column-name[b-j8kqndw483] {
	font-weight: 600;
}

.issues-title[b-j8kqndw483] {
	font-size: 13px;
	font-weight: 700;
	margin: 4px 0 0;
}

.issue-list[b-j8kqndw483] {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

/* Where above what, at every width: a long column name never squeezes the text (review P1). */
.issue[b-j8kqndw483] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 10px;
	font-size: 12.5px;
	border-top: 1px solid var(--line-soft);
	min-width: 0;
	overflow-wrap: anywhere;
}

.issue:first-child[b-j8kqndw483] {
	border-top: 0;
}

.issue-where[b-j8kqndw483] {
	max-width: 100%;
	font-weight: 600;
	color: var(--ink-soft);
}

.issue-text[b-j8kqndw483] {
	min-width: 0;
	color: var(--ink);
}

/* Below 992px the large modal is only 500px wide: two figures per row. */
@media (max-width: 991.98px) {
	.report-grid[b-j8kqndw483] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Short landscape phones: tighter header and footer, more room for the report. */
@media (max-height: 450px) {
	.modal-header[b-j8kqndw483],
	.modal-footer[b-j8kqndw483] {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.modal-dialog[b-j8kqndw483] {
		margin-top: 8px;
		margin-bottom: 8px;
	}
}

/* Touch targets: sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-j8kqndw483],
	[b-j8kqndw483] .btn,
	.btn-close[b-j8kqndw483] {
		min-height: 44px;
	}

	.btn-close[b-j8kqndw483] {
		min-width: 44px;
	}
}
/* /Components/Pages/Suppliers/ReceiptProfileCard.razor.rz.scp.css */
/* Receipt profile card on the supplier detail page (issue 206). The card, field grid and labels come from DetailCard,
   FieldRow and Field; this file styles the hints, the edit actions and the list of example receipts. */

.card-intro[b-h2hw743xkg] {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0 0 12px;
}

.form-error[b-h2hw743xkg] {
	font-size: 12.5px;
	color: var(--danger-ink);
	margin: 0 0 10px;
}

.saved-note[b-h2hw743xkg] {
	font-size: 12.5px;
	color: var(--success-ink);
	margin: 0 0 10px;
}

.field-hint[b-h2hw743xkg] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	font-size: 11.5px;
	color: var(--ink-faint);
	min-width: 0;
	overflow-wrap: anywhere;
}

.edited-badge[b-h2hw743xkg] {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	background: var(--accent-soft);
	color: var(--accent-strong);
	white-space: nowrap;
}

.link-btn[b-h2hw743xkg] {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.link-btn:hover[b-h2hw743xkg] {
	color: var(--accent-strong);
}

.link-btn:disabled[b-h2hw743xkg] {
	color: var(--ink-faint);
	cursor: default;
}

.edit-hint[b-h2hw743xkg] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 4px 0 8px;
}

.edit-actions[b-h2hw743xkg] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 4px;
}

.btn[b-h2hw743xkg] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-sm[b-h2hw743xkg] {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-h2hw743xkg] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-h2hw743xkg] {
	border-color: var(--accent);
	color: var(--accent);
}

.examples-title[b-h2hw743xkg] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 18px 0 4px;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
}

.example-list[b-h2hw743xkg] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.example-row[b-h2hw743xkg] {
	display: flex;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 8px 0;
	border-top: 1px solid var(--line-soft);
	min-width: 0;
}

.example-row:first-child[b-h2hw743xkg] {
	border-top: none;
}

.example-row.is-excluded .example-main[b-h2hw743xkg] {
	opacity: 0.6;
}

.example-main[b-h2hw743xkg] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	flex: 1 1 260px;
	min-width: 0;
}

.example-link[b-h2hw743xkg] {
	font-weight: 700;
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.example-link:hover[b-h2hw743xkg] {
	text-decoration: underline;
}

.example-meta[b-h2hw743xkg] {
	font-size: 12px;
	color: var(--ink-soft);
	min-width: 0;
	overflow-wrap: anywhere;
}

.example-toggles[b-h2hw743xkg] {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: center;
}

.example-toggles .form-check[b-h2hw743xkg] {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ink-soft);
}

.example-toggles .form-check-input[b-h2hw743xkg] {
	margin-top: 0;
}

.example-more[b-h2hw743xkg] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 6px 0 0;
}

.badge[b-h2hw743xkg] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge .dot[b-h2hw743xkg] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-h2hw743xkg] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-progress[b-h2hw743xkg] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-rejected[b-h2hw743xkg] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-h2hw743xkg] { background: var(--line-soft); color: var(--ink-soft); }

@media (max-width: 640px) {
	.example-toggles[b-h2hw743xkg] {
		width: 100%;
	}

	[data-component="ReceiptProfileCard.LastUsed"][b-h2hw743xkg] {
		flex-basis: 100%;
	}

	.edit-actions .btn[b-h2hw743xkg] {
		flex: 1;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.edit-actions .btn[b-h2hw743xkg],
	.example-toggles .form-check[b-h2hw743xkg],
	.form-control[b-h2hw743xkg],
	.form-select[b-h2hw743xkg],
	.link-btn[b-h2hw743xkg] {
		min-height: 44px;
	}

	/* The whole label is the tap target of its switch (as ComplaintDetail's warranty switch). */
	.example-toggles .form-check-label[b-h2hw743xkg] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-right: 8px;
	}

	.example-link[b-h2hw743xkg] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}
/* /Components/Pages/Suppliers/ShopKindEditor.razor.rz.scp.css */
/* Shop kind editor (decision 179): name and keyword chips of one kind on the Shop kinds page. */
.kind-editor[b-j62sd9hm8e] {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.editor-field[b-j62sd9hm8e] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.form-label[b-j62sd9hm8e] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 4px;
}

.form-control[b-j62sd9hm8e] {
	font-size: 13px;
	max-width: 420px;
}

.field-hint[b-j62sd9hm8e] {
	margin: 2px 0 6px;
	font-size: 11.5px;
	color: var(--ink-faint);
}

.keyword-chips[b-j62sd9hm8e] {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.keyword-chip[b-j62sd9hm8e] {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	max-width: 100%;
	min-width: 0;
	height: 26px;
	padding: 0 2px 0 8px;
	border-radius: 999px;
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 12px;
}

.keyword-chip > span[b-j62sd9hm8e] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chip-remove[b-j62sd9hm8e] {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
}

.chip-remove:hover[b-j62sd9hm8e],
.chip-remove:focus-visible[b-j62sd9hm8e] {
	background: var(--line-strong);
	color: var(--ink);
}

.keyword-add[b-j62sd9hm8e] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.keyword-add .form-control[b-j62sd9hm8e] {
	flex: 1 1 180px;
	max-width: 260px;
	height: 28px;
}

.btn[b-j62sd9hm8e] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.editor-actions[b-j62sd9hm8e] {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 575.98px) {
	.form-control[b-j62sd9hm8e],
	.keyword-add .form-control[b-j62sd9hm8e] {
		max-width: none;
		height: 36px;
	}

	.chip-remove[b-j62sd9hm8e] {
		width: 32px;
		height: 32px;
	}

	.keyword-chip[b-j62sd9hm8e] {
		height: 34px;
	}

	.editor-actions .btn[b-j62sd9hm8e] {
		flex: 1 1 0;
		height: 40px;
	}
}

/* Phones and touch screens (foldables, tablets): 44 px touch targets; the full-width rules stay in the block above. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-j62sd9hm8e],
	.form-control[b-j62sd9hm8e],
	.keyword-add .form-control[b-j62sd9hm8e],
	.editor-actions .btn[b-j62sd9hm8e] {
		height: auto;
		min-height: 44px;
	}

	.keyword-chip[b-j62sd9hm8e] {
		height: auto;
		min-height: 44px;
	}

	.chip-remove[b-j62sd9hm8e] {
		width: 44px;
		height: 44px;
	}
}
/* /Components/Pages/Suppliers/ShopKinds.razor.rz.scp.css */
/* Shop kinds (decision 179): the Admin's lookup of what suppliers sell. Header, empty and loading states come from
   the shared page-shell components; this file styles the toolbar and the kind cards. */
.shop-kinds-page[b-9tvsin6ywt] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 960px;
}

.btn[b-9tvsin6ywt],
[b-9tvsin6ywt] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.btn-sm[b-9tvsin6ywt],
[b-9tvsin6ywt] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.kinds-toolbar[b-9tvsin6ywt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 12.5px;
}

.kinds-count[b-9tvsin6ywt] {
	color: var(--ink-faint);
}

.kind-list[b-9tvsin6ywt] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kind-card[b-9tvsin6ywt] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 16px;
	min-width: 0;
}

.kind-card.editing[b-9tvsin6ywt] {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.kind-card.archived[b-9tvsin6ywt] {
	background: var(--surface-muted);
}

.kind-card.archived .kind-title[b-9tvsin6ywt] {
	color: var(--ink-faint);
}

.kind-head[b-9tvsin6ywt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.kind-name[b-9tvsin6ywt] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.kind-title[b-9tvsin6ywt] {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	overflow-wrap: anywhere;
}

.kind-actions[b-9tvsin6ywt] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.keyword-chips[b-9tvsin6ywt],
[b-9tvsin6ywt] .keyword-chips {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.keyword-chip[b-9tvsin6ywt] {
	/* inline-block, not flex: text-overflow only applies to the box's own text (a keyword is up to 40 characters). */
	display: inline-block;
	height: 22px;
	line-height: 22px;
	max-width: 100%;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 11.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.no-keywords[b-9tvsin6ywt] {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--ink-faint);
}

@media (max-width: 575.98px) {
	.kind-card[b-9tvsin6ywt] {
		padding: 12px;
	}

	.kind-actions[b-9tvsin6ywt] {
		width: 100%;
	}

	.kind-actions .btn[b-9tvsin6ywt] {
		flex: 1 1 0;
		height: 36px;
	}
}

/* Phones and touch screens (foldables, tablets): 44 px touch targets; the full-width rules stay in the block above. */
@media (max-width: 640px), (pointer: coarse) {
	.btn[b-9tvsin6ywt],
	[b-9tvsin6ywt] .btn,
	.btn-sm[b-9tvsin6ywt],
	[b-9tvsin6ywt] .btn-sm {
		height: auto;
		min-height: 44px;
	}
}
/* /Components/Pages/Suppliers/SupplierDetail.razor.rz.scp.css */
/* Supplier detail (issue 171). Header, cards and fields come from the shared page-shell components
   (PageHeader, DetailCard, FieldRow/Field); this file styles the badges, shop-kind chips, the branch list
   and the branch modal's opening-hours editor. */
.supplier-detail-page[b-mk654popiv] {
	color: var(--ink);
}

.btn[b-mk654popiv],
[b-mk654popiv] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.btn-sm[b-mk654popiv],
[b-mk654popiv] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.btn-outline[b-mk654popiv] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.btn-outline:hover[b-mk654popiv] {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-danger-ghost[b-mk654popiv] {
	background: var(--surface);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.btn-danger-ghost:hover[b-mk654popiv] {
	background: var(--danger-soft);
}

[b-mk654popiv] .icon-pencil,
[b-mk654popiv] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.hero-avatar[b-mk654popiv] {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Badges */

.badge[b-mk654popiv] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge .dot[b-mk654popiv] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.badge-done[b-mk654popiv] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-rejected[b-mk654popiv] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-mk654popiv] { background: var(--line-soft); color: var(--ink-soft); }
.priority-medium[b-mk654popiv] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }

.badge-count[b-mk654popiv] {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	text-decoration: none;
}

.badge-count:hover[b-mk654popiv] {
	border-color: var(--accent);
}

.count-pill[b-mk654popiv] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
}

/* Layout */

.grid[b-mk654popiv] {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

[b-mk654popiv] textarea.form-control {
	font-size: 12.5px;
	padding: 7px 10px;
	border-radius: 8px;
}

/* Shop-kind chips (edit mode) */

.kind-chips[b-mk654popiv] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip[b-mk654popiv] {
	display: inline-flex;
	align-items: center;
	/* A kind's name is up to 60 characters: the chip grows instead of spilling over the next row. */
	height: auto;
	min-height: 26px;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ink-soft);
	cursor: pointer;
}

.chip:hover[b-mk654popiv] {
	border-color: var(--accent);
}

.chip.active[b-mk654popiv] {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-strong);
	font-weight: 600;
}

/* Decision 179: an archived kind is dashed; greyed only while not selected, so toggling it still shows. */
.chip.archived[b-mk654popiv] {
	border-style: dashed;
}

.chip.archived:not(.active)[b-mk654popiv] {
	background: var(--line-soft);
	color: var(--ink-faint);
}

/* Branch list */

.branch-list[b-mk654popiv] {
	display: flex;
	flex-direction: column;
}

.branch-row[b-mk654popiv] {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid var(--line-soft);
	min-width: 0;
}

.branch-row:first-child[b-mk654popiv] {
	border-top: none;
	padding-top: 2px;
}

.branch-main[b-mk654popiv] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.branch-head[b-mk654popiv],
.branch-address[b-mk654popiv],
.branch-meta[b-mk654popiv],
.branch-contact[b-mk654popiv] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-width: 0;
}

.branch-title[b-mk654popiv] {
	font-weight: 700;
	font-size: 13.5px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.address-link[b-mk654popiv] {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 12.5px;
	text-align: left;
	min-width: 0;
	cursor: pointer;
}

.address-link:hover[b-mk654popiv] {
	color: var(--accent);
}

.address-text[b-mk654popiv] {
	min-width: 0;
	overflow-wrap: anywhere;
	margin-right: 6px;
}

.branch-meta[b-mk654popiv],
.branch-contact[b-mk654popiv] {
	font-size: 12px;
	color: var(--ink-soft);
}

.branch-contact span[b-mk654popiv],
.branch-hours[b-mk654popiv] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.branch-closed[b-mk654popiv] {
	color: var(--warning-ink);
}

.branch-actions[b-mk654popiv] {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

/* Branch modal */

.branch-modal[b-mk654popiv] {
	background-color: var(--modal-backdrop);
}

.form-grid[b-mk654popiv] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.form-cell[b-mk654popiv] {
	min-width: 0;
}

.form-cell.span-2[b-mk654popiv] {
	grid-column: span 2;
}

.form-label[b-mk654popiv] {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 4px;
}

.hint[b-mk654popiv] {
	font-size: 12px;
	color: var(--ink-faint);
	margin: 6px 0 0;
}

.section-head[b-mk654popiv] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
}

.link-btn[b-mk654popiv] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.link-btn:hover[b-mk654popiv] {
	color: var(--accent-strong);
}

.hours-editor[b-mk654popiv] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}

.hours-row[b-mk654popiv] {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px 12px;
	align-items: center;
}

.hours-row.is-closed .day-toggle[b-mk654popiv] {
	color: var(--ink-faint);
}

.day-toggle[b-mk654popiv] {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
}

.interval[b-mk654popiv] {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.interval .form-control[b-mk654popiv] {
	min-width: 0;
}

.dash[b-mk654popiv] {
	color: var(--ink-faint);
}

.closed-label[b-mk654popiv] {
	font-size: 12.5px;
	color: var(--ink-faint);
	grid-column: span 2;
}

.closed-row[b-mk654popiv] {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
}

.closed-row .form-control[b-mk654popiv] {
	min-width: 0;
}

.btn-icon[b-mk654popiv] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 7px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
}

.btn-icon:hover[b-mk654popiv] {
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

@media (max-width: 1400px) {
	.grid[b-mk654popiv] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Below 992px Bootstrap's modal-lg falls back to a 500px dialog: put the two intervals under each other. */
@media (max-width: 991.98px) {
	.hours-row[b-mk654popiv] {
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.interval-2[b-mk654popiv] {
		grid-column: 2;
	}

	.closed-label[b-mk654popiv] {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.branch-row[b-mk654popiv] {
		flex-direction: column;
	}

	.branch-actions[b-mk654popiv] {
		width: 100%;
	}

	.branch-actions .btn[b-mk654popiv] {
		flex: 1;
	}

	.form-grid[b-mk654popiv] {
		grid-template-columns: minmax(0, 1fr);
	}

	.form-cell.span-2[b-mk654popiv] {
		grid-column: auto;
	}

	.hours-row[b-mk654popiv] {
		grid-template-columns: minmax(0, 1fr);
		padding: 6px 0;
		border-bottom: 1px solid var(--line-soft);
	}

	.interval-2[b-mk654popiv] {
		grid-column: auto;
	}

	.closed-label[b-mk654popiv] {
		grid-column: auto;
	}

	.closed-row[b-mk654popiv] {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.closed-row input[type="date"][b-mk654popiv] {
		grid-column: span 2;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.chip[b-mk654popiv],
	.branch-actions .btn[b-mk654popiv],
	.actions .btn[b-mk654popiv],
	.hours-editor .form-control[b-mk654popiv],
	.closed-row .form-control[b-mk654popiv] {
		min-height: 44px;
	}

	.day-toggle[b-mk654popiv] {
		min-height: 44px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.btn-icon[b-mk654popiv] {
		width: 44px;
		height: 44px;
	}
}

/* Foldable cover screens: a 12-hour locale's "07:00 AM" needs every pixel. */
@media (max-width: 349px) {
	.interval[b-mk654popiv] {
		gap: 4px;
	}

	.interval .form-control[b-mk654popiv] {
		padding-left: 6px;
		padding-right: 4px;
	}
}

/* Issue 206: on a phone the header (several rows of actions) is pinned over a third of the screen and covers the receipt
   profile card while it is edited, so it scrolls away there. The header is the shared PageHeader (its root is
   .topbar-sticky), so ::deep. */
@media (max-width: 640px) {
	.supplier-detail-page[b-mk654popiv]  .topbar-sticky {
		position: static;
	}
}
/* /Components/Pages/Suppliers/SupplierList.razor.rz.scp.css */
/* Suppliers list (issue 171). Shell (header, mobile cards, empty/loading) comes from the shared page-shell
   components; this file only styles the toolbar, badges and table, like CustomerList.razor.css. */
.suppliers-page[b-gikjp5mtbq] {
	color: var(--ink);
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.btn-new[b-gikjp5mtbq] {
	white-space: nowrap;
}

.btn[b-gikjp5mtbq],
[b-gikjp5mtbq] .btn {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.btn-sm[b-gikjp5mtbq],
[b-gikjp5mtbq] .btn-sm {
	height: 26px;
	padding: 0 10px;
	font-size: 11.5px;
}

.toolbar[b-gikjp5mtbq] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 18px;
}

.toolbar-row[b-gikjp5mtbq] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.toolbar-row .search-wrap[b-gikjp5mtbq] {
	flex: 1 1 260px;
	max-width: 420px;
	min-width: 0;
}

.search-wrap[b-gikjp5mtbq] {
	position: relative;
}

.search-wrap[b-gikjp5mtbq]  .icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	pointer-events: none;
}

.search-input[b-gikjp5mtbq] {
	padding-left: 36px;
}

.filter-field[b-gikjp5mtbq] {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.filter-label[b-gikjp5mtbq] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	white-space: nowrap;
	margin: 0;
}

.filter-field .form-select[b-gikjp5mtbq] {
	min-width: 0;
	max-width: 220px;
}

.archived-toggle[b-gikjp5mtbq] {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 0;
}

[b-gikjp5mtbq] .icon-plus,
[b-gikjp5mtbq] .icon-pencil,
[b-gikjp5mtbq] .sort-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.badge[b-gikjp5mtbq] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge-default[b-gikjp5mtbq] { background: var(--line-soft); color: var(--ink-soft); }
.priority-medium[b-gikjp5mtbq] { background: var(--priority-medium-bg); color: var(--priority-medium-ink); }

.table-card[b-gikjp5mtbq] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 100%;
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin-bottom: 4px;
}

.suppliers-table[b-gikjp5mtbq] {
	width: 100%;
	border-collapse: collapse;
}

.suppliers-table thead th[b-gikjp5mtbq] {
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	background: var(--surface-muted);
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.suppliers-table thead th.no-sort[b-gikjp5mtbq] {
	cursor: default;
}

.suppliers-table tbody td[b-gikjp5mtbq] {
	padding: 9px 14px;
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

.suppliers-table tbody tr:last-child td[b-gikjp5mtbq] { border-bottom: none; }
.suppliers-table tbody tr:hover[b-gikjp5mtbq] { background: var(--surface-hover); }
.suppliers-table tbody tr.row-archived td[b-gikjp5mtbq] { color: var(--ink-faint); }

.cell-name[b-gikjp5mtbq] { font-weight: 600; }
.cell-kinds[b-gikjp5mtbq] { color: var(--ink-soft); max-width: 320px; }
.cell-number[b-gikjp5mtbq] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-phone[b-gikjp5mtbq] { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.row-actions[b-gikjp5mtbq] {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.col-actions[b-gikjp5mtbq] {
	width: 96px;
}

.btn-load-more[b-gikjp5mtbq] {
	min-width: 160px;
}

.m-card-sub span[b-gikjp5mtbq] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Responsive review P1: "Shop kinds" and "New supplier" are one group. */
.header-actions[b-gikjp5mtbq] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

@media (max-width: 1400px) {
	.toolbar.mobile-collapsed[b-gikjp5mtbq] {
		display: none;
	}

	.header-actions[b-gikjp5mtbq] {
		width: 100%;
	}

	.header-actions .btn[b-gikjp5mtbq] {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media (max-width: 640px), (pointer: coarse) {
	.header-actions .btn[b-gikjp5mtbq] {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.filter-field[b-gikjp5mtbq] {
		flex: 1 1 100%;
	}

	.filter-field .form-select[b-gikjp5mtbq] {
		max-width: none;
		flex: 1;
	}
}

@media (max-width: 349px) {
	.toolbar[b-gikjp5mtbq] {
		padding: 12px;
	}
}
/* /Components/Pages/Users/UserDetail.razor.rz.scp.css */
/* Moved from an inline style attribute (issue 101). */
.reset-password-card[b-vael74rio7] {
    max-width: 420px;
}

/* Deactivate/Reactivate (issue 112 A6): Bootstrap's .btn-outline-warning put its yellow warning colour as text on white (1.63:1). The
   design system's amber ink reads 5.7:1 on white and 5.2:1 on the hover tint; same ghost shape as .btn-danger-ghost. */
.btn-warning-ghost[b-vael74rio7] {
    background: var(--surface);
    border-color: var(--warning-line);
    color: var(--warning-ink);
}

.btn-warning-ghost:hover[b-vael74rio7],
.btn-warning-ghost:focus-visible[b-vael74rio7] {
    background: var(--warning-soft);
    border-color: var(--warning-ink);
    color: var(--warning-ink);
}

/* "Billing - work hour rate" card (issue 149): a bordered panel inside the form, eyebrow + title on the left, the
   Own/Global pill on the right; the pill drops below the title on a narrow phone instead of squeezing it. */
.rate-card[b-vael74rio7] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
}

.rate-card-head[b-vael74rio7] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.rate-card-title[b-vael74rio7] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    min-width: 0;
}

.rate-card-title small[b-vael74rio7] {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Money never breaks mid-number (razor-page-design-system): the pill itself may wrap on a foldable cover screen
   (the cs text is ~250px), but the amount and its unit are joined by non-breaking spaces in GlobalRateText. */
.rate-pill[b-vael74rio7] {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

.rate-pill-own[b-vael74rio7] {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.rate-card .form-label[b-vael74rio7] {
    font-size: 14px;
}

.rate-card-hint[b-vael74rio7] {
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
}

.rate-input[b-vael74rio7] {
    max-width: 280px;
}

@media (max-width: 640px) {
    .rate-input[b-vael74rio7] {
        max-width: none;
    }
}

@media (max-width: 349px) {
    /* A two-line pill reads as a tag, not a 999px lozenge. */
    .rate-pill[b-vael74rio7] {
        border-radius: 12px;
    }
}

/* 44px touch targets (razor-page-design-system), for every control of the form so the rate input doesn't stand out.
   InputText/InputSelect render inside child components, hence ::deep from the page's own fieldset. */
@media (max-width: 640px), (pointer: coarse) {
    fieldset[b-vael74rio7]  .form-control,
    fieldset[b-vael74rio7]  .form-select {
        min-height: 44px;
    }
}
/* /Components/Pages/Users/UserList.razor.rz.scp.css */
/* Users list mobile cards (issue 112 A1): the e-mail column shrinks and wraps a long address, so the Edit button
   beside it stays on screen at phone widths (it was pushed off at 344-280 px, even by ordinary e-mails in cs). */
.user-card-main[b-zgsy4bbap5] {
	flex: 1 1 auto;
	min-width: 0;
}

.user-card-email[b-zgsy4bbap5],
.user-card-wrap[b-zgsy4bbap5] {
	overflow-wrap: anywhere;
}

/* "Locked until <date time>" on the phone card (issue 364): Bootstrap's .badge never wraps, so the long text could run
   past the card at the 280 px foldable tier next to the role badges. This badge alone may wrap inside the card. */
.badge-lock[b-zgsy4bbap5] {
	max-width: 100%;
	white-space: normal;
	text-align: start;
}
/* /Components/Shared/Atoms/BaskerFieldMark.razor.rz.scp.css */
/* Epic 417 (issue 426): the mark of a field a Basker draft touched. Tokens only; the sizes are Figma 183:3019 (11.5 px text, 12 px glyph). */
.basker-field-mark[b-tg2a1gnxgx] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	/* The right end of the field's label row (Field's .field-label-row is a flex row). */
	margin-inline-start: auto;
	font-size: 11.5px;
	line-height: 1.2;
	white-space: nowrap;
}

/* The glyph is a child component's svg, so the scope attribute is not on it. */
.basker-field-mark[b-tg2a1gnxgx]  .glyph-icon {
	font-size: 12px;
	flex-shrink: 0;
}

.basker-field-mark-filled[b-tg2a1gnxgx] {
	color: var(--ink-faint);
	font-weight: 400;
}

.basker-field-mark-filled[b-tg2a1gnxgx]  .glyph-icon {
	color: var(--accent);
}

.basker-field-mark-not-found[b-tg2a1gnxgx] {
	padding: 2px 8px;
	/* The pill is 2 px taller than the 15.8 px label; this keeps a marked label row as high as a plain one, so the editor lines up
	   with the editors of the unmarked fields in the same row (fix round 1 of issue 426). */
	margin-block: -1px;
	border-radius: var(--radius-pill);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-weight: 700;
}

/* A narrow field (a quarter of a 4-column row, e.g. Date to solve beside Real date solved at 900 to 1440 px): the mark shows its
   glyph only, on the label row as in Figma 183:3019, instead of wrapping under the label. The words stay for a screen reader and
   in the title; the orange input and the line under it still say "not found". The container is Field's .field-label-row-marked.
   210 px: the Czech "nenalezeno" pill needs 204.6 px beside its label (fix round 2 of issue 426). */
@container basker-field (max-width: 210px) {
	.basker-field-mark .basker-field-mark-text[b-tg2a1gnxgx] {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.basker-field-mark-not-found[b-tg2a1gnxgx] {
		padding-inline: 5px;
	}
}

/* The line under the empty orange input: "Not found - please fill in." */
.basker-field-hint[b-tg2a1gnxgx] {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--warning-ink);
	overflow-wrap: anywhere;
}
/* /Components/Shared/Atoms/ErrorCodeLabel.razor.rz.scp.css */
/* "Error code E-7K3Q9 · copy" (issue 232, Figma frame 42:2 A): muted label, danger-ink semibold code, accent copy link. */
.error-code[b-972dbrpa3b] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 12px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* Figma 42:2: about 20px between the label and the code (the 10px flex gap plus this). */
.error-code-label[b-972dbrpa3b] {
    margin-right: 10px;
    color: var(--ink-soft);
}

.error-code-value[b-972dbrpa3b] {
    padding: 0;
    background: none;
    color: var(--danger-ink);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    user-select: all;
}

/* The dot and the copy link are one unit that never splits across two lines ("copy" alone under the code). */
.error-code-action[b-972dbrpa3b] {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

/* Figma 42:2 draws the whole "· copy" in the accent colour. */
.error-code-dot[b-972dbrpa3b] {
    color: var(--accent);
}

.error-code-copy[b-972dbrpa3b] {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}

.error-code-copy:hover[b-972dbrpa3b] {
    color: var(--accent-strong);
    text-decoration: underline;
}

.error-code-copy:focus-visible[b-972dbrpa3b] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Phones and touch screens: a bigger tap target for the copy link without moving anything (the padding is cancelled by
   the negative margin), and the width of the longer "copied" text reserved while the link still says "copy", so the line
   doesn't re-wrap for the two seconds the feedback shows. */
@media (max-width: 640px), (pointer: coarse) {
    .error-code-copy[b-972dbrpa3b] {
        padding: 6px 4px;
        margin: -6px -4px;
        text-align: left;
    }

    .error-code-copy[b-972dbrpa3b]::after {
        content: attr(data-copied-text);
        display: block;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }
}
/* /Components/Shared/Atoms/FeedbackStatusBadge.razor.rz.scp.css */
/* Issue 238: the status chip of a feedback report (Figma 43:342, badge 19px tall, 999 radius, 11.5px bold). */
.feedback-status[b-6l49t977f4] {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
}

.tone-new[b-6l49t977f4] { background: var(--status-new-bg); color: var(--status-new-ink); }
.tone-progress[b-6l49t977f4] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.tone-confirm[b-6l49t977f4] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.tone-done[b-6l49t977f4] { background: var(--status-done-bg); color: var(--status-done-ink); }
.tone-rejected[b-6l49t977f4] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.tone-neutral[b-6l49t977f4] { background: var(--status-neutral-bg); color: var(--status-neutral-ink); }
/* /Components/Shared/Atoms/Icons/IconSortNeutral.razor.rz.scp.css */
/* The "not sorted" indicator is drawn fainter than the active ascending/descending arrows
   (moved from an inline style attribute, issue 101). */
.sort-neutral[b-whvhfxv0dj] {
    opacity: 0.55;
}
/* /Components/Shared/Atoms/MigrationSplitGlyph.razor.rz.scp.css */
/* [Decision] issue 212: the migration-split warning glyph on a planning bar or phone card. Colour only through app.css
   tokens; the glyph is never the only cue (the host's accessible name says it in words). */
.migration-split-glyph[b-3h38zxagbs] {
	display: inline-flex;
	flex: none;
	align-items: center;
	color: var(--warning-ink);
	line-height: 1;
}

.migration-split-glyph[b-3h38zxagbs]  svg {
	width: 12px;
	height: 12px;
}
/* /Components/Shared/Atoms/NotConfirmedBadge.razor.rz.scp.css */
/* Issue 372: "From e-mail - not confirmed". The warning token family ("needs attention"), never the danger one. Same pill
   shape as .badge; the border and the envelope glyph keep it apart from the "In process" badge, which has the same fill. */
.not-confirmed-badge[b-80glz4sj93] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--warning-line);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* The glyph is a child component's svg, so the scope attribute is not on it. */
.not-confirmed-badge[b-80glz4sj93]  .glyph-icon {
	font-size: 12px;
	flex-shrink: 0;
}

/* Fix round 1 (UI review): the compact badge of the detail top bars. Wide: the full text, the short one is gone. Up to 899 px:
   the short text shows; the full one is only visually hidden, so screen readers still read it (the short one is aria-hidden).
   The limit is 899 px, not the phone's 640 px: from 641 px the sidebar is back and leaves a content column of only 340-600 px,
   where the full badge wrapped to a row of its own (the narrowest column of all sits at 641 px, not at 360 px). */
.not-confirmed-badge-short[b-80glz4sj93] {
	display: none;
}

@media (max-width: 899.98px) {
	.not-confirmed-badge-short[b-80glz4sj93] {
		display: inline;
	}

	.not-confirmed-badge-full[b-80glz4sj93] {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}
/* /Components/Shared/BrowserDateTimePicker.razor.rz.scp.css */
/* /Components/Shared/Molecules/AddressPickerModal.razor.rz.scp.css */
/* Bootstrap's .modal is shown without its JS here (rendered only while open), so draw the backdrop ourselves. */
.address-picker-modal[b-ti2fl9gus8] {
    background-color: var(--modal-backdrop);
}
/* /Components/Shared/Molecules/BaskerAnswerView.razor.rz.scp.css */
/* Epic 417 (step 5): one answer of Basker, a white bubble on the left (Figma 182:899 parts 4, 5, 11 and 12; the phone 182:2101). Tokens only.
   The bubble corners follow the step-4 bubbles of the page (flat corner at the avatar side). */
.basker-bubble[b-jf8cd82zgg] {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	border-top-left-radius: var(--radius-xs);
	background: var(--surface);
	color: var(--ink);
}

.basker-answer-text[b-jf8cd82zgg] {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

/* Choices of a question (part 5): side by side on a wide page, stacked in the side window and on a phone (the host's mode class). */
.basker-choices[b-jf8cd82zgg] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.basker-choice[b-jf8cd82zgg] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.basker-choice-label[b-jf8cd82zgg] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.basker-choice:hover:not(:disabled)[b-jf8cd82zgg] {
	background: var(--surface-hover);
	border-color: var(--accent);
}

.basker-choice:focus-visible[b-jf8cd82zgg] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* The one the user took: blue with a tick. Already answered questions stay readable but cannot be pressed again. */
.basker-choice-chosen[b-jf8cd82zgg] {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-strong);
}

.basker-choice:disabled:not(.basker-choice-chosen)[b-jf8cd82zgg] {
	color: var(--ink-faint);
	cursor: default;
}

.basker-choice:disabled[b-jf8cd82zgg] {
	cursor: default;
}

/* Issue 429 (Figma 183:3720): a choice with a second line, e.g. "No. 187 - ABC s.r.o." over "Baling press PL 250 - 8:00-12:00". It takes its own row
   in a wide conversation (the picture stacks its choices) and its natural width, at most 360 px, in the stacked modes. */
.basker-choice-two-line[b-jf8cd82zgg] {
	width: 100%;
	max-width: 360px;
	/* Fix round 2 (responsive review): 1 px less above and below, so the choice is about 50.5 px high (52.5 px before; Figma 50 px). Still
	   above the 44 px tap target. Only two-line choices; a one-line choice keeps its 8 px. */
	padding-block: 7px;
}

.basker-choice-text[b-jf8cd82zgg] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* The title of a two-line choice (responsive review, fix round 1 of issue 429): a little larger and tighter than a one-line choice. */
.basker-choice-two-line .basker-choice-label[b-jf8cd82zgg] {
	font-size: 13.5px;
	line-height: 1.25;
}

.basker-choice-detail[b-jf8cd82zgg] {
	min-width: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.basker-choice-chosen .basker-choice-detail[b-jf8cd82zgg] {
	color: inherit;
}

.basker-choice:disabled:not(.basker-choice-chosen) .basker-choice-detail[b-jf8cd82zgg] {
	color: var(--ink-faint);
}

/* A touch screen, and a small window with a mouse (the phone tier, like the language switch; fix round 2 of step 6, D2). */
@media (pointer: coarse), (max-width: 640.98px) {
	.basker-choice[b-jf8cd82zgg] {
		min-height: 44px;
	}
}

/* The result list (parts 11 and 12). */
.basker-list[b-jf8cd82zgg] {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.basker-list-item[b-jf8cd82zgg] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line-soft);
}

.basker-list-item:last-child[b-jf8cd82zgg] {
	border-bottom: 0;
}

.basker-list-main[b-jf8cd82zgg] {
	display: flex;
	flex: 1 1 180px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.basker-list-line[b-jf8cd82zgg] {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.basker-list-id[b-jf8cd82zgg] {
	font-weight: 700;
}

.basker-list-detail[b-jf8cd82zgg] {
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.basker-list-meta[b-jf8cd82zgg] {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	flex-shrink: 0;
}

.basker-list-date[b-jf8cd82zgg] {
	font-size: 12.5px;
	color: var(--ink-soft);
}

.basker-list-state[b-jf8cd82zgg] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	background: var(--status-neutral-bg);
	color: var(--status-neutral-ink);
}

.basker-list-state[b-jf8cd82zgg]::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.basker-list-state-new[b-jf8cd82zgg] {
	background: var(--status-new-bg);
	color: var(--status-new-ink);
}

.basker-list-state-progress[b-jf8cd82zgg] {
	background: var(--status-progress-bg);
	color: var(--status-progress-ink);
}

.basker-list-state-done[b-jf8cd82zgg] {
	background: var(--status-done-bg);
	color: var(--status-done-ink);
}

.basker-list-state-confirm[b-jf8cd82zgg] {
	background: var(--status-confirm-bg);
	color: var(--status-confirm-ink);
}

.basker-list-state-rejected[b-jf8cd82zgg] {
	background: var(--status-rejected-bg);
	color: var(--status-rejected-ink);
}

.basker-list-open[b-jf8cd82zgg] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--accent);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.basker-list-open:hover[b-jf8cd82zgg] {
	text-decoration: underline;
}

.basker-list-open:focus-visible[b-jf8cd82zgg] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

.basker-list-open[b-jf8cd82zgg]  .glyph-icon {
	flex-shrink: 0;
	font-size: 13px;
}

@media (pointer: coarse) {
	.basker-list-open[b-jf8cd82zgg] {
		min-height: 44px;
	}
}

.basker-list-count[b-jf8cd82zgg] {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* Issue 425 (epic 417 step 14): a help answer. The steps are one numbered list, the "Open" link is a link, and an answer with no help text
   ends with two buttons that tell the Baler team. Tokens only. */
.basker-help-text[b-jf8cd82zgg] {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.basker-help-steps[b-jf8cd82zgg] {
	margin: 0;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.basker-help-steps li + li[b-jf8cd82zgg] {
	margin-top: 4px;
}

.basker-help-open[b-jf8cd82zgg] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	color: var(--accent);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.basker-help-open:hover[b-jf8cd82zgg] {
	text-decoration: underline;
}

.basker-help-open:focus-visible[b-jf8cd82zgg] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

.basker-help-open[b-jf8cd82zgg]  .glyph-icon {
	flex-shrink: 0;
	font-size: 13px;
}

.basker-help-feedback[b-jf8cd82zgg] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.basker-help-button[b-jf8cd82zgg] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.basker-help-button:hover:not(:disabled)[b-jf8cd82zgg] {
	background: var(--surface-hover);
	border-color: var(--accent);
}

.basker-help-button:focus-visible[b-jf8cd82zgg] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* The Admin's read page: the buttons are shown as the user saw them, grey and not pressable. */
.basker-help-button:disabled[b-jf8cd82zgg] {
	color: var(--ink-faint);
	cursor: default;
}

/* A touch screen, and a small window with a mouse (the phone tier, like the choices above): 44 px tap targets. */
@media (pointer: coarse), (max-width: 640.98px) {
	.basker-help-button[b-jf8cd82zgg],
	.basker-help-open[b-jf8cd82zgg] {
		min-height: 44px;
	}
}

/* The narrowest phones: "Suggest an improvement" wraps, so both buttons take the full width and stack evenly. */
@media (max-width: 359.98px) {
	.basker-help-button[b-jf8cd82zgg] {
		width: 100%;
	}
}
/* /Components/Shared/Molecules/BaskerDraftBox.razor.rz.scp.css */
/* Epic 417 (step 5): the box of a prepared record inside the Basker conversation, Figma 182:899 part 6 (desktop) and 182:2101 (phone). Tokens only. */
.basker-draft-box[b-q5xzl6yyao] {
	min-width: 0;
	color: var(--ink);
}

.basker-draft-box-text[b-q5xzl6yyao] {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.basker-draft-box-title[b-q5xzl6yyao] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.basker-draft-box-title[b-q5xzl6yyao]  .glyph-icon {
	flex-shrink: 0;
	font-size: 16px;
	color: var(--accent);
}

.basker-draft-box-hint[b-q5xzl6yyao] {
	margin: 4px 0 8px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ink-soft);
}

.basker-draft-lines[b-q5xzl6yyao] {
	margin: 0;
}

.basker-draft-line[b-q5xzl6yyao] {
	display: grid;
	grid-template-columns: minmax(72px, 110px) minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line-soft);
	min-height: 30px;
}

.basker-draft-line dt[b-q5xzl6yyao] {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--ink-soft);
}

.basker-draft-line dd[b-q5xzl6yyao] {
	margin: 0;
	min-width: 0;
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

/* Issue 463 fix round 2 (LW1, picture 14): the machine's model ("E2E Press 500 ·") and its serial number are each one unbreakable box,
   so a narrow box breaks the line only after the "·", never inside the serial at its own hyphen. A box is never wider than the line:
   a part longer than the whole line still wraps (the value's overflow-wrap), instead of running out of the box as white-space: nowrap
   would. */
.basker-draft-keep[b-q5xzl6yyao] {
	display: inline-block;
	max-width: 100%;
}

/* Issue 429 (Figma 183:3551): the second line under a value, e.g. "ABC s.r.o., Brno - 18 Nov 2026" under the plan number. */
.basker-draft-line-detail[b-q5xzl6yyao] {
	display: block;
	/* Fix round 2 of issue 429 (responsive review): no margin and a tighter line, so the two-line row comes to about 49 px (52.8 px
	   before; Figma 47 px). The value's own line above keeps its height, so every other row and kind is unchanged. */
	margin-top: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ink-soft);
}

/* The work report box: the plan number and both hour values are bold, "what was done" stays regular (Figma 183:3551 rows 1 to 4). */
.basker-draft-box-work-report .basker-draft-line[data-field="Plan"] dd[b-q5xzl6yyao],
.basker-draft-box-work-report .basker-draft-line[data-field="TravelHours"] dd[b-q5xzl6yyao],
.basker-draft-box-work-report .basker-draft-line[data-field="WorkHours"] dd[b-q5xzl6yyao] {
	font-weight: 700;
}

.basker-draft-box-gone .basker-draft-line-detail[b-q5xzl6yyao] {
	color: var(--ink-faint);
}

/* The priority badge (a pill with a dot) and the other code values. */
.basker-draft-code[b-q5xzl6yyao] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	font-size: 12.5px;
	font-weight: 700;
	background: var(--status-neutral-bg);
	color: var(--status-neutral-ink);
}

.basker-draft-dot[b-q5xzl6yyao] {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.basker-draft-code-low[b-q5xzl6yyao] {
	background: var(--priority-low-bg);
	color: var(--priority-low-ink);
}

.basker-draft-code-medium[b-q5xzl6yyao] {
	background: var(--priority-medium-bg);
	color: var(--priority-medium-ink);
}

.basker-draft-code-high[b-q5xzl6yyao] {
	background: var(--priority-high-bg);
	color: var(--priority-high-ink);
}

.basker-draft-code-critical[b-q5xzl6yyao] {
	background: var(--priority-critical-bg);
	color: var(--priority-critical-ink);
}

/* "not found - fill in on the page" (Figma part 7). It may wrap inside its column, never push the box wider. */
.basker-draft-not-found[b-q5xzl6yyao] {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--warning-line);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.basker-draft-not-found[b-q5xzl6yyao]  .glyph-icon {
	flex-shrink: 0;
	font-size: 13px;
}

.basker-draft-actions[b-q5xzl6yyao] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
}

.basker-draft-button[b-q5xzl6yyao] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.basker-draft-button[b-q5xzl6yyao]  .glyph-icon {
	flex-shrink: 0;
	font-size: 14px;
}

.basker-draft-button-primary[b-q5xzl6yyao] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-color);
	font-weight: 700;
}

.basker-draft-button-primary:hover[b-q5xzl6yyao] {
	background: var(--accent-strong);
	border-color: var(--accent-strong);
	color: var(--on-color);
}

.basker-draft-button-secondary[b-q5xzl6yyao] {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink);
	font-weight: 400;
}

.basker-draft-button-secondary:hover:not(:disabled)[b-q5xzl6yyao] {
	background: var(--surface-hover);
}

.basker-draft-button:focus-visible[b-q5xzl6yyao] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* A touch screen, and a small window with a mouse: a comfortable tap area (the same rule as the other Basker buttons; fix round 2 of
   step 6, D2). */
@media (pointer: coarse), (max-width: 640.98px) {
	.basker-draft-button[b-q5xzl6yyao] {
		min-height: 44px;
	}
}

/* Issue 484: the call issue prepared to follow the new complaint, a lower section of the same box (no link, no discard of its own). */
.basker-draft-then[b-q5xzl6yyao] {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

/* One rule at the break between the two parts: the section's own top border, not also the last line's bottom border above it. */
.basker-draft-lines:has(+ .basker-draft-then) .basker-draft-line:last-child[b-q5xzl6yyao] {
	border-bottom: 0;
}

.basker-draft-then-title[b-q5xzl6yyao] {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}

.basker-draft-then-note[b-q5xzl6yyao] {
	margin: 8px 0 0;
}

/* The record can no longer be opened: grey, and nothing to press (one look for used, discarded and expired, N17). */
.basker-draft-box-gone .basker-draft-box-title[b-q5xzl6yyao],
.basker-draft-box-gone .basker-draft-then-title[b-q5xzl6yyao],
.basker-draft-box-gone .basker-draft-line dd[b-q5xzl6yyao],
.basker-draft-box-gone .basker-draft-line dt[b-q5xzl6yyao] {
	color: var(--ink-faint);
}

.basker-draft-box-gone .basker-draft-box-title[b-q5xzl6yyao]  .glyph-icon {
	color: var(--ink-faint);
}

.basker-draft-box-gone .basker-draft-code[b-q5xzl6yyao],
.basker-draft-box-gone .basker-draft-not-found[b-q5xzl6yyao] {
	background: var(--line-soft);
	border-color: var(--line);
	color: var(--ink-faint);
}

.basker-draft-button[aria-disabled="true"][b-q5xzl6yyao],
.basker-draft-button:disabled[b-q5xzl6yyao] {
	background: var(--line-soft);
	border-color: var(--line);
	color: var(--ink-faint);
	cursor: not-allowed;
}

.basker-draft-button[aria-disabled="true"]:focus-visible[b-q5xzl6yyao] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* The box is only ever drawn inside the conversation (BaskerAnswerView), so the label column follows the conversation's own width, like
   its input bar (fix round 2 of step 6, D2): a 92 px column in the side window, on a phone and in a narrow desktop window (Figma 182:1512
   part 9, 182:2101 part 6), so the orange note fits on one line; in a very narrow conversation (a foldable's cover screen) the label
   stands above its value, or the value column is too narrow to read. The label stacks when the box is about 250 px wide or less, as
   before on a screen under 350 px: the side window's thread has 16 px padding on each side, so its box is 32 px narrower than the
   page's at the same conversation width (measured: 242 px at 344, 258 px at 360 in both). */
@container basker-conversation (max-width: 641px) {
	.basker-draft-line[b-q5xzl6yyao] {
		grid-template-columns: 92px minmax(0, 1fr);
	}
}

@container basker-conversation (max-width: 320px) {
	.basker-draft-line[b-q5xzl6yyao] {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2px;
	}
}

@container basker-conversation (max-width: 350px) {
	.basker-conversation-panel .basker-draft-line[b-q5xzl6yyao] {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2px;
	}
}

/* Issue 462, issue 489 point 3 (Figma 203:4989 part 5): the Admin only reads a saved conversation. "Open and check" and "Discard" stay in place,
   greyed out at 0.45 of the layer and not clickable (the markup makes them a span with aria-disabled and a disabled button). To hide them
   instead, remove only the actions row of the read-only branch in BaskerDraftBox.razor and this rule. The box itself keeps its colours. */
.basker-draft-box-readonly .basker-draft-actions[b-q5xzl6yyao] {
	opacity: 0.45;
}

.basker-draft-box-readonly .basker-draft-actions .basker-draft-button-primary[b-q5xzl6yyao] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-color);
}

.basker-draft-box-readonly .basker-draft-actions .basker-draft-button-secondary[b-q5xzl6yyao] {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink-soft);
}
/* /Components/Shared/Molecules/BaskerDraftNotice.razor.rz.scp.css */
/* Epic 417 (issue 426): the light-blue strip of a page Basker filled in (Figma 183:3019 desktop, 183:3351 phone). Tokens only.
   It is the last row of a sticky header (a flex-wrap row), so it takes the full width like ConcurrencyConflictBanner. */
.basker-draft-notice[b-r3ovsycii6] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	/* The row gap is only used when the link drops to its own row (one row has no row gap, so the strip stays 40 px high there).
	   It is at least the part of the link's 44 px tap target above the link ((44 - 20) / 2 = 12 px, plus 1 px), so the target never
	   covers the end of the sentence above it (fix round 3 of issue 423). */
	gap: 13px 12px;
	flex-basis: 100%;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	/* The start padding holds the star's column (16 px glyph + 8 px gap), and the text pulls itself back over it (its negative
	   margin below): a link that drops to its own row then starts under the text, after the star, by layout alone, whatever the
	   language and the width (issue 423). On a single row nothing moves: the text starts at 14 px, the link sits at the right end. */
	padding: 10px 14px 10px 38px;
	border-radius: 8px;
	background: var(--accent-soft);
}

.basker-draft-notice-text[b-r3ovsycii6] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	/* The text keeps this much room; below that the link drops to its own row (phone, narrow window). The negative margin takes
	   the star's column back, so the wrap point is the same as without it (260 px of text plus the link). */
	flex: 1 1 260px;
	margin-inline-start: -24px;
	min-width: 0;
	color: var(--accent-strong);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
	/* Even lines when the sentence wraps (responsive review of issue 429). */
	text-wrap: balance;
}

/* The glyphs are child components' svgs, so the scope attribute is not on them. */
.basker-draft-notice-text[b-r3ovsycii6]  .glyph-icon {
	font-size: 16px;
	flex-shrink: 0;
	color: var(--accent);
	/* Level with the first line of text (a 14 px line at 1.35 is about 19 px high). */
	margin-top: 1.5px;
}

.basker-draft-notice-link[b-r3ovsycii6] {
	/* The anchor of the tap target below. */
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	/* It keeps its one-line width while it fits, and wraps its words only when it is wider than its row (fix round 2 of issue 429).
	   Fix round 1 let it shrink (flex-shrink 1), so a link only a few px short of its room took two lines next to the text and the
	   strip grew by 20 px (the Timesheet at 320 px, the Absence and Business trips windows at 280 px). The cap is 6 px past the row:
	   the strip's 14 px end padding takes those 6 px plus the tap target's 8 px below, so nothing runs out of the strip (with 8 px
	   the tap target would stand 2 px out). At 280 and 300 px it still drops to its own row and wraps there. */
	flex-shrink: 0;
	min-width: 0;
	max-width: calc(100% + 6px);
	color: var(--accent);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

/* A full 44 px touch target (fix round 1 of issue 426, N6) that takes no room: it is drawn over the link and around it, so the
   strip's height and the place of the link never depend on it, on a phone, a touch screen or a desktop (issue 423, fix round 2).
   Above the link it ends inside the row gap (13 px, see .basker-draft-notice), so a press on the sentence's last line always goes
   to the sentence; to the side it ends 4 px before the text (8 px of the 12 px column gap). It reaches 2 px past the strip's own
   padding at the top of a one-row strip and at the bottom, where nothing else is, and nothing else in the strip is a control. */
.basker-draft-notice-link[b-r3ovsycii6]::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -8px;
	right: -8px;
	height: max(44px, 100%);
	transform: translateY(-50%);
}

.basker-draft-notice-link:hover[b-r3ovsycii6] {
	text-decoration: underline;
}

/* The keyboard focus ring hugs the link itself. The browser's default ring (outline: auto) also wraps the tap target above, so it
   struck through the sentence when the link wrapped and stood out of a one-row strip (fix round 3 of issue 423). A solid outline
   follows the link's own box and stays visible in forced colours, where the system recolours it. */
.basker-draft-notice-link:focus-visible[b-r3ovsycii6] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.basker-draft-notice-link[b-r3ovsycii6]  .glyph-icon {
	font-size: 14px;
	flex-shrink: 0;
}

/* The link's words: they may wrap inside the link when it has less room than its one-line width. */
.basker-draft-notice-link > span[b-r3ovsycii6] {
	min-width: 0;
}

/* Fix round 1 of issue 426: one copy in the sticky header (desktop, Figma 183:3019), one right after it (phones, unfolded foldables,
   tablets and narrower windows, so the pinned header does not grow; fix round 2 moved the switch from 640 to 900 px, issue 422 from
   900 to 1400 px, the detail pages' compact-view switch of app.css and PageHeader, where the header is already taller). A page renders
   both; each shows on its own side of 1400 px. The .98 closes the gap at fractional widths, as MainLayout does at 640.98. */
.basker-draft-notice-below-header[b-r3ovsycii6] {
	margin-bottom: 14px;
}

@media (max-width: 1400.98px) {
	.basker-draft-notice-header[b-r3ovsycii6] {
		display: none;
	}
}

@media (min-width: 1401px) {
	.basker-draft-notice-below-header[b-r3ovsycii6] {
		display: none;
	}
}
/* /Components/Shared/Molecules/BillingLockBadge.razor.rz.scp.css */
/* Issue 141: the lock pill on a billed row (warning tone, like a Draft statement). */
.lock-pill[b-unschyagz5] {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 2px 8px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-pill);
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	vertical-align: middle;
}

.lock-pill-text[b-unschyagz5] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lock-pill[b-unschyagz5]  .lock-pill-icon {
	flex-shrink: 0;
	font-size: 10px;
}

.lock-pill-link:hover[b-unschyagz5],
.lock-pill-link:focus-visible[b-unschyagz5] {
	border-color: var(--warning-ink);
	color: var(--warning-ink);
	text-decoration: underline;
}

/* A finger needs a 44 px target: the visible pill stays compact, an invisible hit area grows around it. */
@media (pointer: coarse), (max-width: 640px) {
	.lock-pill-link[b-unschyagz5]::after {
		content: "";
		position: absolute;
		inset: -11px 0;
	}
}
/* /Components/Shared/Molecules/BillingStatusBadge.razor.rz.scp.css */
/* Issue 141: billing statement status chip. Draft = warning, Issued = success, Cancelled = danger. */
.billing-status[b-cmfriom2k7] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.billing-status .dot[b-cmfriom2k7] {
	width: 6px;
	height: 6px;
	border-radius: var(--radius-pill);
	background: currentColor;
	flex-shrink: 0;
}

.billing-status-draft[b-cmfriom2k7] { background: var(--warning-soft); color: var(--warning-ink); }
.billing-status-issued[b-cmfriom2k7] { background: var(--success-soft); color: var(--success-ink); }
.billing-status-cancelled[b-cmfriom2k7] { background: var(--danger-soft); color: var(--danger-ink); }
/* /Components/Shared/Molecules/ChargeItemForm.razor.rz.scp.css */
/* Charge item add/edit form (issue 139): 6 columns on a wide card, 2 on a narrow one, 1 on a foldable cover screen.
   The breakpoints are the form's own width (container queries on .charge-form-host), because the same form sits in
   cards from ~250 px to ~900 px wide whatever the viewport is (the sidebar, the page grid, the inline edit row). */

.charge-form-host[b-a09jlkxz9j] {
    container-type: inline-size;
}

.charge-form[b-a09jlkxz9j] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: end;
}

.cf-field[b-a09jlkxz9j] {
    min-width: 0;
}

.cf-kind[b-a09jlkxz9j] { grid-column: span 2; }
.cf-description[b-a09jlkxz9j] { grid-column: span 4; }
.cf-part[b-a09jlkxz9j] { grid-column: span 2; }
.cf-qty[b-a09jlkxz9j] { grid-column: span 1; }
.cf-unit[b-a09jlkxz9j] { grid-column: span 1; }
.cf-price[b-a09jlkxz9j] { grid-column: span 2; }
.cf-mode[b-a09jlkxz9j] { grid-column: span 3; }

.cf-actions[b-a09jlkxz9j] {
    grid-column: span 3;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cf-error[b-a09jlkxz9j] {
    grid-column: 1 / -1;
}

.form-label[b-a09jlkxz9j] {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-error[b-a09jlkxz9j] {
    margin: 0;
    font-size: 12px;
    color: var(--danger-ink);
}

/* Billable / Warranty segmented control, the same shape as the Work / Travel control on ServicePlanDetail. */

.mode-toggle[b-a09jlkxz9j] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mode-option[b-a09jlkxz9j] {
    min-height: 31px;
    padding: 0 10px;
    border: none;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-option + .mode-option[b-a09jlkxz9j] {
    border-left: 1px solid var(--line);
}

.mode-option:hover:not(:disabled)[b-a09jlkxz9j] {
    color: var(--accent);
}

.mode-option-active[b-a09jlkxz9j],
.mode-option-active:hover:not(:disabled)[b-a09jlkxz9j] {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.mode-option:disabled[b-a09jlkxz9j] {
    cursor: default;
}

.cf-actions .btn[b-a09jlkxz9j] {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cf-actions[b-a09jlkxz9j]  .icon-plus {
    flex-shrink: 0;
}

/* Narrow form: 2 columns. */
@container (max-width: 560px) {
    .charge-form[b-a09jlkxz9j] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row dense;
    }

    .cf-kind[b-a09jlkxz9j],
    .cf-part[b-a09jlkxz9j],
    .cf-qty[b-a09jlkxz9j],
    .cf-unit[b-a09jlkxz9j] {
        grid-column: span 1;
    }

    .cf-description[b-a09jlkxz9j],
    .cf-price[b-a09jlkxz9j],
    .cf-mode[b-a09jlkxz9j],
    .cf-actions[b-a09jlkxz9j] {
        grid-column: span 2;
    }

    .cf-actions .btn[b-a09jlkxz9j] {
        flex: 1;
        justify-content: center;
    }
}

/* Very narrow form (foldable cover screens): one column. */
@container (max-width: 300px) {
    .charge-form[b-a09jlkxz9j] {
        grid-template-columns: minmax(0, 1fr);
    }

    .cf-kind[b-a09jlkxz9j],
    .cf-part[b-a09jlkxz9j],
    .cf-qty[b-a09jlkxz9j],
    .cf-unit[b-a09jlkxz9j],
    .cf-description[b-a09jlkxz9j],
    .cf-price[b-a09jlkxz9j],
    .cf-mode[b-a09jlkxz9j],
    .cf-actions[b-a09jlkxz9j] {
        grid-column: 1 / -1;
    }
}

/* Phones and other touch screens (unfolded foldables included): 44 px touch targets. */
@media (max-width: 640px), (pointer: coarse) {
    .form-control[b-a09jlkxz9j],
    .form-select[b-a09jlkxz9j],
    .mode-option[b-a09jlkxz9j],
    .cf-actions .btn[b-a09jlkxz9j] {
        min-height: 44px;
    }
}
/* /Components/Shared/Molecules/ConcurrencyConflictBanner.razor.rz.scp.css */
.conflict-banner[b-6lsrz91a6c] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	/* Detail pages render it as the last row of the sticky .topbar, next to Save, so it can't scroll out of view. */
	flex-basis: 100%;
	width: 100%;
	border-radius: 10px;
}

/* As the topbar's last row the topbar's own gap spaces it; elsewhere (modal body) keep the alert's bottom margin. */
.conflict-banner:last-child[b-6lsrz91a6c] {
	margin-bottom: 0;
}

.conflict-banner-text[b-6lsrz91a6c] {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	flex: 1 1 260px;
	overflow-wrap: anywhere;
}

/* The svg glyph (issue 103) starts at the top of its box, where the old font glyph sat about 3px lower inside its
   line box; 5px keeps it level with the first line of the message, exactly where the font drew it. */
[b-6lsrz91a6c] .conflict-banner-icon {
	margin-top: 5px;
}

.conflict-banner-hint[b-6lsrz91a6c] {
	font-size: 0.875rem;
	margin-top: 2px;
}

.conflict-banner-actions[b-6lsrz91a6c] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

/* Own sizing so the host page's .btn-sm rules don't shrink the two choices below a usable tap target. */
.conflict-banner-actions .btn[b-6lsrz91a6c] {
	min-height: 32px;
	font-size: 13px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
}

/* Touch rule of the design system: 44 px targets on a phone or a touch screen of any width; sizes only. */
@media (max-width: 640px), (pointer: coarse) {
	.conflict-banner-actions .btn[b-6lsrz91a6c] {
		min-height: 44px;
	}
}

@media (max-width: 349px) {
	.conflict-banner[b-6lsrz91a6c] {
		padding: 10px 12px;
		gap: 8px;
	}

	.conflict-banner-hint[b-6lsrz91a6c] {
		font-size: 0.8125rem;
	}
}
/* /Components/Shared/Molecules/DictationButton.razor.rz.scp.css */
/* The dictation control (issue 237; the mic and language chip moved here from the Event Creator modal, issue 30).
   Compact: icon-only mic with the language chip, as the Event Creator modal has always had it.
   Labeled: the report dialog's "CS" chip and "Dictate" / "Listening…" pill (Figma 42:81); on a phone the two join into
   one "Dictate · CS" pill (Figma 43:759). Colours only through app.css tokens. */
.dict[b-x07p70g6lh] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dict-lang[b-x07p70g6lh] {
	flex-shrink: 0;
	height: 26px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
}

.dict-lang:hover[b-x07p70g6lh] {
	border-color: var(--accent);
	color: var(--accent);
}

.dict-mic[b-x07p70g6lh] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
}

.dict-mic:hover:not(:disabled)[b-x07p70g6lh] {
	border-color: var(--accent);
	color: var(--accent);
}

.dict-mic:disabled[b-x07p70g6lh] {
	opacity: .5;
	cursor: not-allowed;
}

.dict-mic-icon[b-x07p70g6lh] {
	width: 32px;
	height: 32px;
	border-radius: 7px;
}

.dict-active[b-x07p70g6lh],
.dict-active:hover:not(:disabled)[b-x07p70g6lh] {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

/* Labeled: the chip is the small accent pill, the mic the 26 px pill with its words. */
.dict-labeled .dict-lang[b-x07p70g6lh] {
	height: 19px;
	padding: 0 9px;
	border-color: transparent;
	background: var(--accent-soft);
	color: var(--accent);
}

.dict-labeled .dict-lang:hover[b-x07p70g6lh] {
	border-color: var(--accent);
}

.dict-mic-labeled[b-x07p70g6lh] {
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
}

.dict-mic-text[b-x07p70g6lh] {
	white-space: nowrap;
}

.dict-active .dict-mic-text[b-x07p70g6lh] {
	animation: dict-pulse-b-x07p70g6lh 1.1s ease-in-out infinite;
}

@keyframes dict-pulse-b-x07p70g6lh {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
	.dict-active .dict-mic-text[b-x07p70g6lh] {
		animation: none;
	}
}

/* A phone: "Dictate · CS", one pill. The pill comes first and the chip is a segment inside the same outline, so the
   language can still be changed with its own tap target. */
@media (max-width: 576px) {
	.dict-labeled[b-x07p70g6lh] {
		gap: 0;
		height: 32px;
		border: 1px solid var(--line-strong);
		border-radius: var(--radius-pill);
		background: var(--surface);
	}

	.dict-labeled:has(.dict-active)[b-x07p70g6lh] {
		border-color: var(--danger-line);
		background: var(--danger-soft);
	}

	.dict-labeled .dict-mic-labeled[b-x07p70g6lh] {
		order: 1;
		height: 30px;
		padding: 0 4px 0 12px;
		border: 0;
		background: transparent;
		font-weight: 400;
		color: var(--ink);
	}

	.dict-labeled .dict-mic-labeled.dict-active[b-x07p70g6lh] {
		color: var(--danger-ink);
		font-weight: 700;
	}

	.dict-labeled .dict-lang[b-x07p70g6lh] {
		order: 2;
		height: 30px;
		padding: 0 12px 0 4px;
		border: 0;
		background: transparent;
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0;
		color: var(--ink);
	}

	.dict-labeled .dict-lang[b-x07p70g6lh]::before {
		content: "·";
		margin-right: 6px;
	}
}

/* Touch and phone: the labeled pill and the language chip keep their look, each gets a 44 px tall tap area from an ::after that is
   not drawn (the two sit side by side, so the areas only grow up and down). */
@media (max-width: 576px), (pointer: coarse) {
	.dict-labeled .dict-mic-labeled[b-x07p70g6lh],
	.dict-labeled .dict-lang[b-x07p70g6lh] {
		position: relative;
	}

	.dict-labeled .dict-mic-labeled[b-x07p70g6lh]::after,
	.dict-labeled .dict-lang[b-x07p70g6lh]::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		left: 0;
		height: 44px;
		transform: translateY(-50%);
	}
}
/* /Components/Shared/Molecules/EmailSourceDrawer.razor.rz.scp.css */
.email-drawer-backdrop[b-hliuezd9b3] {
	position: fixed;
	inset: 0;
	background: rgba(14, 42, 71, 0.45);
	z-index: 1050;
}

.email-drawer[b-hliuezd9b3] {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 460px;
	background: var(--surface);
	box-shadow: -8px 0 24px rgba(14, 42, 71, 0.18);
	z-index: 1051;
	display: flex;
	flex-direction: column;
	animation: email-drawer-slide-in-b-hliuezd9b3 0.2s ease-out;
}

/* Focus lands on the drawer itself when it opens (issue 101); it is a container, not a control, so no ring. */
.email-drawer:focus[b-hliuezd9b3] {
	outline: none;
}

@keyframes email-drawer-slide-in-b-hliuezd9b3 {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

.email-drawer-header[b-hliuezd9b3] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.email-drawer-header h2[b-hliuezd9b3] {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--accent);
}

.email-drawer-close[b-hliuezd9b3] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: var(--ink-soft);
	cursor: pointer;
	padding: 0;
}

.email-drawer-close:hover[b-hliuezd9b3] {
	color: var(--accent);
}

/* 44px target on a phone or a touch screen (sizes only). */
@media (max-width: 640px), (pointer: coarse) {
	.email-drawer-close[b-hliuezd9b3] {
		width: 44px;
		height: 44px;
	}
}

.email-drawer-body[b-hliuezd9b3] {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.email-drawer-field[b-hliuezd9b3] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.email-drawer-label[b-hliuezd9b3] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.email-drawer-value[b-hliuezd9b3] {
	font-size: 14px;
	color: var(--ink);
	word-break: break-word;
}

.email-drawer-body-field[b-hliuezd9b3] {
	flex: 1 1 auto;
}

.email-drawer-bodytext[b-hliuezd9b3] {
	margin: 0;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ink);
	white-space: pre-wrap;
	word-break: break-word;
	background: var(--canvas);
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	padding: 12px;
}

/* Issue 372 fix round 1: the note above a body that is stored only in part (or not at all). */
.email-drawer-note[b-hliuezd9b3] {
	margin: 0 0 8px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--ink-soft);
}
/* /Components/Shared/Molecules/EmptyState.razor.rz.scp.css */
/* Muted "no rows" text inside a card - same look as LoadingState's inline variant. The Block variant is a plain
   Bootstrap .alert-info. */
.state-inline[b-559w6zf6uf] {
    padding: 20px 4px;
    color: var(--ink-faint);
    font-size: 13px;
}
/* /Components/Shared/Molecules/ErrorAlert.razor.rz.scp.css */
/* Issue 232: message, then the error code line and the report slot stacked under it; a close button sits at the end. */
.error-alert[b-813vtzrrws] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border-radius: 10px;
}

.error-alert-body[b-813vtzrrws] {
    min-width: 0;
    flex: 1 1 auto;
}

.error-alert-text[b-813vtzrrws] {
    overflow-wrap: anywhere;
}

/* The code line sits inside the alert: no bottom margin of its own, a little air above it. */
.error-alert-body[b-813vtzrrws]  .error-code {
    margin: 4px 0 0;
}

/* On the alert's tinted background the muted ink would be borderline: the label takes the alert's own text colour. */
.error-alert-body[b-813vtzrrws]  .error-code,
.error-alert-body[b-813vtzrrws]  .error-code-label {
    color: inherit;
}

.error-alert .btn-close[b-813vtzrrws] {
    flex-shrink: 0;
    padding: 0.4em;
}

/* The built-in "Report" link (issue 237), a text button on its own line under the code in the alert's own colour. */
.error-alert-report[b-813vtzrrws] {
    display: inline;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: 0.875em;
    font-weight: 600;
    text-decoration: underline;
    vertical-align: baseline;
}

.error-alert-report:hover[b-813vtzrrws] {
    color: inherit;
    text-decoration: none;
}

/* Touch (issue 237): the "Report" link is a 44 px tall tap target; on a phone or a touch screen it takes a line of its own height. */
@media (pointer: coarse), (max-width: 576px) {
    .error-alert-report[b-813vtzrrws] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }
}
/* /Components/Shared/Molecules/Field.razor.rz.scp.css */
.field[b-i48vlyiwke] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Spans the last 2 of a 4-column FieldRow's desktop columns. Below 1400px the row's own column count becomes
   auto-fit (1 or 2), where "span 2" could ask for a column that doesn't exist - see the override below. */
.field-span-2[b-i48vlyiwke] {
    grid-column: span 2;
}

/* Uppercase micro-labels (bold, letter-spaced) instead of Bootstrap's default .form-label - read-only fields scan
   as data, not as an always-editable form. */
.form-label[b-i48vlyiwke] {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

/* A label plus inline status badge and/or icon-only edit action, e.g. "ADDRESS * Verified [pencil]". */
.field-label-row[b-i48vlyiwke] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.field-label-row .form-label[b-i48vlyiwke] {
    margin-bottom: 0;
}

/* Epic 417 (issue 426): a label row that also holds a Basker mark. The mark has margin-inline-start: auto (right end of the
   row). A narrow field shows the mark as its glyph only (BaskerFieldMark's container query on this row), so the label
   and the mark stay on one row and the editor lines up with its neighbours; wrapping is only the last resort. */
.field-label-row-marked[b-i48vlyiwke] {
    flex-wrap: wrap;
    row-gap: 2px;
    /* The container the mark measures (fix round 1 of issue 426): the row is as wide as its field (a block in the field's column),
       so its width never depends on its content. Only a marked row is a container; every other label row is unchanged. */
    container-type: inline-size;
    container-name: basker-field;
}

/* Plain read-only text for the view/edit toggle - deliberately NOT .value-box (no border, background or padding
   box): a bordered box still reads as an input. ::deep because a host's own ChildContent (the address box) uses it
   too. */
[b-i48vlyiwke] .field-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    min-height: 20px;
    overflow-wrap: anywhere;
}

/* InputText/InputSelect/InputTextArea are framework components, so their rendered controls never carry this
   component's scope attribute - reaching them needs ::deep. ~32px / 12.5px matches the read-only density. */
.field[b-i48vlyiwke]  .form-control,
.field[b-i48vlyiwke]  .form-select {
    height: 32px;
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 8px;
    box-sizing: border-box;
}

.field[b-i48vlyiwke]  .form-select {
    padding-right: 28px;
    background-position: right 8px center;
    background-size: 14px 11px;
}

/* A multi-line textarea keeps its auto height. Needs the .field ancestor so its specificity beats the 32px rule
   above (razor-page-design-system "specificity trap"). */
.field[b-i48vlyiwke]  textarea.form-control {
    height: auto;
    font-size: 12.5px;
    padding: 7px 10px;
    border-radius: 8px;
}

/* Epic 417 (issue 426): the orange "not found" state of a field Basker could not fill (Figma 183:3019 part 6b). The editor's
   fill and border go orange; the mark's pill (label row) and hint (under the input) are the BaskerFieldMark atom. Reaching the
   editors needs ::deep, like the compact sizing above. */
.field-basker-not-found[b-i48vlyiwke]  .form-control,
.field-basker-not-found[b-i48vlyiwke]  .form-select {
    background-color: var(--warning-soft);
    border-color: var(--warning-ink);
}

/* The calendar icon of a date field draws itself with accent tokens (IconCalendar), so it is recoloured part by part. */
.field-basker-not-found[b-i48vlyiwke]  .date-field .cal-icon rect:first-child {
    fill: var(--warning-soft);
    stroke: var(--warning-ink);
}

.field-basker-not-found[b-i48vlyiwke]  .date-field .cal-icon rect:nth-child(2),
.field-basker-not-found[b-i48vlyiwke]  .date-field .cal-icon circle {
    fill: var(--warning-ink);
}

.field-basker-not-found[b-i48vlyiwke]  .date-field .cal-icon line {
    stroke: var(--warning-ink);
}

[b-i48vlyiwke] .icon-btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    flex-shrink: 0;
}

[b-i48vlyiwke] .icon-btn-edit:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Address box (opens AddressPickerModal): plain .field-value text with pointer/hover/double-click affordances. */
[b-i48vlyiwke] .address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

[b-i48vlyiwke] .address-box .address-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-i48vlyiwke] .address-box:hover .address-text {
    color: var(--accent);
}

/* Date fields: a calendar icon overlaid on the browser date/time input, centred on the input row itself. The
   native picker icon is hidden (Chromium/Edge/Safari) so there's only one; BrowserDateTimePicker.razor.js opens the
   picker on click (enabled by each component that renders a date field). */
[b-i48vlyiwke] .date-field {
    position: relative;
    display: flex;
    align-items: center;
}

[b-i48vlyiwke] .date-field .cal-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

[b-i48vlyiwke] .date-field input {
    padding-left: 32px !important;
    width: 100%;
}

[b-i48vlyiwke] .date-field input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

@media (max-width: 1400px) {
    /* "1 / -1" = the rest of the current row, however many auto-fit tracks it has. */
    .field-span-2[b-i48vlyiwke] {
        grid-column: 1 / -1;
    }
}
/* /Components/Shared/Molecules/FieldRow.razor.rz.scp.css */
/* minmax(0, Nfr), never bare Nfr: a bare track refuses to shrink below its content and pushes the whole page into a
   horizontal scrollbar (razor-page-design-system "CSS Grid tracks need minmax(0, Nfr)"). */
.field-row[b-0uz80mdns0] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.field-row.cols-1[b-0uz80mdns0] {
    grid-template-columns: minmax(0, 1fr);
}

.field-row.cols-4[b-0uz80mdns0] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1400px) {
    .field-row[b-0uz80mdns0] {
        grid-template-columns: minmax(0, 1fr);
    }

    /* auto-fit (not a fixed 2-column split) so a track never gets forced narrower than it can comfortably show a
       date/time value - a fixed repeat(2, ...) clipped date fields in the ~641-670px dead zone where MainLayout's
       sidebar snaps from hamburger to a full 250px column. */
    .field-row.cols-4[b-0uz80mdns0] {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 349px) {
    .field-row.cols-4[b-0uz80mdns0] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Shared/Molecules/HeaderErrorBanner.razor.rz.scp.css */
/* Issue 140: the last row of the sticky top bar (a flex-wrap row), full width, like ConcurrencyConflictBanner. */
.header-error-banner[b-6z0r6wg9uv] {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	flex-basis: 100%;
	width: 100%;
	border-radius: 10px;
}

.header-error-banner-text[b-6z0r6wg9uv] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.header-error-banner .btn-close[b-6z0r6wg9uv] {
	flex-shrink: 0;
	padding: 0.4em;
}

/* Issue 232: the optional error code line under the message. */
.header-error-banner-text[b-6z0r6wg9uv]  .error-code {
	margin: 2px 0 0;
}

.header-error-banner-text[b-6z0r6wg9uv]  .error-code,
.header-error-banner-text[b-6z0r6wg9uv]  .error-code-label {
	color: inherit;
}
/* /Components/Shared/Molecules/ImprovementAssistPanel.razor.rz.scp.css */
/* The AI panel of the "Suggest an improvement" dialog (issue 241; Figma 42:239 desktop, 43:828 phone). The dialog gives it the
   accent-soft surface and the padding (its aside); this is what is inside. Tokens only. */
.aip[b-4h8ie6rzhj] {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	font-size: 12.5px;
	color: var(--ink);
	/* An answer can hold a long word or a URL: it breaks instead of pushing the column (or, on a phone, the body) sideways. */
	overflow-wrap: anywhere;
}

.aip > *[b-4h8ie6rzhj] {
	min-width: 0;
}

.aip-head[b-4h8ie6rzhj] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.aip-title[b-4h8ie6rzhj] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--accent);
}

.aip-link[b-4h8ie6rzhj] {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.aip-link:hover[b-4h8ie6rzhj] {
	text-decoration: underline;
}

/* The tap area grows to 44 px without the link getting bigger. */
@media (pointer: coarse), (max-width: 576px) {
	.aip-link[b-4h8ie6rzhj]::after {
		content: "";
		position: absolute;
		inset: -13px -8px;
	}
}

.aip-loading[b-4h8ie6rzhj] {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-soft);
}

.aip-error[b-4h8ie6rzhj] {
	overflow-wrap: anywhere;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-lg);
	background: var(--warning-soft);
	color: var(--warning-ink);
}

/* "Possible today" ------------------------------------------------------------------------------------------------- */
.aip-today[b-4h8ie6rzhj] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 1px solid var(--success-line);
	border-radius: var(--radius-lg);
	background: var(--success-soft);
}

.aip-today-none[b-4h8ie6rzhj] {
	border-color: var(--line);
	background: var(--surface);
}

.aip-today-head[b-4h8ie6rzhj],
.aip-today-text[b-4h8ie6rzhj] {
	margin: 0;
}

.aip-today-head[b-4h8ie6rzhj] {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--success-ink);
}

.aip-today-none .aip-today-head[b-4h8ie6rzhj] {
	color: var(--ink-soft);
}

.aip-today-icon[b-4h8ie6rzhj] {
	display: inline-flex;
}

.aip-today-text[b-4h8ie6rzhj] {
	overflow-wrap: anywhere;
	line-height: 1.45;
}

/* Refined proposal ------------------------------------------------------------------------------------------------- */
.aip-refined[b-4h8ie6rzhj] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.aip-refined > *[b-4h8ie6rzhj] {
	max-width: 100%;
	min-width: 0;
}

.aip-label[b-4h8ie6rzhj] {
	margin: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.aip-refined-title[b-4h8ie6rzhj] {
	overflow-wrap: anywhere;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.aip-refined-body[b-4h8ie6rzhj] {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.aip-line[b-4h8ie6rzhj] {
	margin: 0;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

/* "Show all" exists for the phone's folded text only. */
.aip-show-all[b-4h8ie6rzhj] {
	display: none;
}

/* Questions --------------------------------------------------------------------------------------------------------- */
.aip-question[b-4h8ie6rzhj] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.aip-question-text[b-4h8ie6rzhj] {
	overflow-wrap: anywhere;
	margin: 0;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.35;
}

.aip-input[b-4h8ie6rzhj] {
	display: block;
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 13.5px;
}

.aip-input:focus[b-4h8ie6rzhj] {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Actions ----------------------------------------------------------------------------------------------------------- */
.aip-actions[b-4h8ie6rzhj] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aip-actions .btn[b-4h8ie6rzhj],
.aip-link[b-4h8ie6rzhj],
.aip-title[b-4h8ie6rzhj] {
	overflow-wrap: normal;
}

.aip-actions .btn[b-4h8ie6rzhj] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13.5px;
}

.aip-use[b-4h8ie6rzhj] {
	min-height: 32px;
	font-weight: 700;
}

.aip-keep[b-4h8ie6rzhj] {
	min-height: 34px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
}

.aip-keep:hover[b-4h8ie6rzhj],
.aip-keep:focus-visible[b-4h8ie6rzhj] {
	border-color: var(--line-strong);
	background: var(--surface-muted);
	color: var(--ink);
}

.aip-short[b-4h8ie6rzhj] {
	display: none;
}

/* Phone: the panel is stacked inline (Figma 43:828). The "possible today" box is one line of text ("Partly possible today: ..."),
   the proposal is folded to two lines with "Show all", and the two buttons are small. */
@media (max-width: 576px) {
	.aip[b-4h8ie6rzhj] {
		gap: 8px;
	}

	.aip-title[b-4h8ie6rzhj] {
		font-size: 13px;
	}

	.aip-today[b-4h8ie6rzhj] {
		display: block;
		padding: 10px;
		border-radius: var(--radius-md);
		color: var(--success-ink);
		font-size: 12.5px;
	}

	.aip-today-none[b-4h8ie6rzhj] {
		color: var(--ink-soft);
	}

	.aip-today-head[b-4h8ie6rzhj],
	.aip-today-text[b-4h8ie6rzhj] {
		display: inline;
		font-size: 12.5px;
		font-weight: 400;
	}

	.aip-today-icon[b-4h8ie6rzhj] {
		display: none;
	}

	.aip-today-level[b-4h8ie6rzhj]::after {
		content: ": ";
	}

	.aip-refined[b-4h8ie6rzhj] {
		gap: 4px;
		padding: 10px;
		border-radius: var(--radius-md);
	}

	.aip-label[b-4h8ie6rzhj] {
		display: none;
	}

	.aip-refined-title[b-4h8ie6rzhj] {
		font-size: 13px;
	}

	.aip-refined-body.is-clamped .aip-line-problem[b-4h8ie6rzhj],
	.aip-refined-body.is-clamped .aip-line-benefit[b-4h8ie6rzhj] {
		display: none;
	}

	.aip-refined-body.is-clamped .aip-line-proposal[b-4h8ie6rzhj] {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		color: var(--ink-soft);
	}

	.aip-show-all[b-4h8ie6rzhj] {
		display: inline;
	}

	.aip-actions .btn[b-4h8ie6rzhj] {
		flex: 1 1 0;
		min-height: 44px;
		font-size: 12.5px;
	}

	.aip-long[b-4h8ie6rzhj] {
		display: none;
	}

	.aip-short[b-4h8ie6rzhj] {
		display: inline;
	}
}

@media (pointer: coarse) {
	.aip-actions .btn[b-4h8ie6rzhj],
	.aip-input[b-4h8ie6rzhj] {
		min-height: 44px;
	}
}

/* A narrow phone (360 px and less, the smallest foldables included): side by side the Czech "Použít vylepšený text" breaks onto
   two or three lines, so the two buttons stack, each the full width. */
@media (max-width: 360px) {
	.aip-actions[b-4h8ie6rzhj] {
		flex-direction: column;
	}

	.aip-actions .btn[b-4h8ie6rzhj] {
		flex: 0 0 auto;
	}
}
/* /Components/Shared/Molecules/LoadingState.razor.rz.scp.css */
/* Muted placeholder inside a card (e.g. a related-records table still loading) - same look as EmptyState's
   inline variant, so "loading" and "no rows" occupy the same space. The Block (spinner) and Plain variants use
   Bootstrap utilities / no styling at all. */
.state-inline[b-9r9ppnwd1l] {
    padding: 20px 4px;
    color: var(--ink-faint);
    font-size: 13px;
}
/* /Components/Shared/Molecules/MigrationSplitNotice.razor.rz.scp.css */
/* [Decision] issue 212: the migration-split warning in the plan popup and the detail page's Schedule card. The tone is
   the warning token pair of app.css (never the only cue: a glyph and words). Collapsed, the detail is hidden but stays
   the button's description. The component opens it (is-expanded) on a click or tap, a mouse hover or keyboard focus, so
   aria-expanded always matches what is shown; no CSS-only expansion. */
.split-notice[b-tddxhru38v] {
	margin: 0 0 10px;
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-sm);
	color: var(--warning-ink);
	font-size: 12.5px;
	min-width: 0;
}

.split-toggle[b-tddxhru38v] {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 32px;
	padding: 6px 10px;
	background: transparent;
	border: 0;
	border-radius: var(--radius-sm);
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.split-toggle:focus-visible[b-tddxhru38v] {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.split-glyph[b-tddxhru38v],
.split-chevron[b-tddxhru38v] {
	display: inline-flex;
	flex: none;
	line-height: 1;
}

.split-title[b-tddxhru38v] {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.split-chevron[b-tddxhru38v] {
	transition: transform 0.15s ease;
}

.split-detail[b-tddxhru38v] {
	display: none;
	padding: 0 10px 8px 28px;
}

.split-detail p[b-tddxhru38v] {
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

.split-detail p:last-child[b-tddxhru38v] {
	margin-bottom: 0;
}

.split-notice.is-expanded .split-detail[b-tddxhru38v] {
	display: block;
}

.split-notice.is-expanded .split-chevron[b-tddxhru38v] {
	transform: rotate(180deg);
}

/* A finger needs a 44 px target on phones and touch screens. */
@media (max-width: 640px), (pointer: coarse) {
	.split-toggle[b-tddxhru38v] {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.split-chevron[b-tddxhru38v] {
		transition: none;
	}
}
/* /Components/Shared/Molecules/MobileFiltersToggle.razor.rz.scp.css */
/* Same compact density as the list pages' own .btn override (Bootstrap's default .btn is ~38-40px tall). */
.btn[b-ciubn7hxom] {
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hidden on desktop, where the stat cards and filters are always visible. Must stay after .btn above. */
.btn-mobile-filters-toggle[b-ciubn7hxom] {
    display: none;
}

.count-pill[b-ciubn7hxom] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.icon-chevron[b-ciubn7hxom] {
    display: inline-flex;
    align-items: center;
    vertical-align: -1px;
}

@media (max-width: 1400px) {
    .btn-mobile-filters-toggle[b-ciubn7hxom] {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 12px;
        justify-content: center;
    }
}
/* /Components/Shared/Molecules/NotConfirmedBanner.razor.rz.scp.css */
/* Issue 372: the standing banner of a record the e-mail agent created and nobody confirmed yet. A normal row under the
   sticky top bar. Warning tokens only (calm "needs attention"). */
.not-confirmed-banner[b-0cozyojucc] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	min-width: 0;
	margin: 0 0 12px;
	padding: 10px 14px;
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-lg);
	color: var(--ink);
	font-size: 12.5px;
}

.not-confirmed-banner-icon[b-0cozyojucc] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 16px;
	color: var(--warning-ink);
}

.not-confirmed-banner-body[b-0cozyojucc] {
	/* The text keeps at least this much room; below that the buttons drop to their own row (a narrow desktop window with the
	   sidebar open leaves a content column of about 340 px, where text beside two buttons was squeezed into 90 px). */
	flex: 1 1 260px;
	min-width: 0;
	line-height: 1.4;
}

.not-confirmed-banner-text[b-0cozyojucc] {
	margin: 0;
}

/* Issue 372 fix round 1: the sender check that did not pass. The provider summary can be one long unbroken token. */
.not-confirmed-banner-sender[b-0cozyojucc] {
	margin: 4px 0 0;
	overflow-wrap: anywhere;
}

.not-confirmed-banner-sender strong[b-0cozyojucc] {
	color: var(--warning-ink);
}

.not-confirmed-banner-sender-detail[b-0cozyojucc] {
	display: block;
	color: var(--ink-soft);
}

.not-confirmed-banner-actions[b-0cozyojucc] {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
	margin-left: auto;
}

/* The page-scoped .btn / .btn-outline rules don't reach this component's own buttons: the same compact density. */
.not-confirmed-banner-actions .btn[b-0cozyojucc] {
	height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.not-confirmed-banner-actions .btn-outline[b-0cozyojucc] {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-soft);
}

.not-confirmed-banner-actions .btn-outline:hover[b-0cozyojucc] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Phone: the text on top, the buttons share the next row. 44 px targets (WCAG 2.5.8 comfortable size). */
@media (max-width: 640px) {
	.not-confirmed-banner[b-0cozyojucc] {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.not-confirmed-banner-body[b-0cozyojucc] {
		flex-basis: calc(100% - 40px);
	}

	.not-confirmed-banner-actions[b-0cozyojucc] {
		flex-basis: 100%;
	}

	.not-confirmed-banner-actions .btn[b-0cozyojucc] {
		flex: 1;
		min-height: 44px;
	}
}

/* Foldable cover screens (349 px tier): the buttons wrap instead of squeezing. */
@media (max-width: 349px) {
	.not-confirmed-banner-actions[b-0cozyojucc] {
		flex-wrap: wrap;
	}
}
/* /Components/Shared/Molecules/PartTripBanner.razor.rz.scp.css */
/* Decision 184b: the measured trip banner on the Options and Record pages. */
.trip-banner[b-wc6n20tp1s],
.trip-prompt[b-wc6n20tp1s] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	margin-bottom: 12px;
}

.trip-running[b-wc6n20tp1s] {
	border-color: var(--info-soft);
	background: var(--info-soft);
	color: var(--info-ink);
}

.trip-ended[b-wc6n20tp1s] {
	border-color: var(--line-soft);
	background: var(--line-soft);
	color: var(--ink);
}

.trip-prompt[b-wc6n20tp1s] {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-soft);
}

.trip-icon[b-wc6n20tp1s] {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 18px;
}

.trip-text[b-wc6n20tp1s] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 220px;
	min-width: 0;
}

.trip-sub[b-wc6n20tp1s],
.trip-note[b-wc6n20tp1s] {
	font-size: 13px;
}

.trip-note[b-wc6n20tp1s] {
	color: var(--ink-soft);
}

.trip-end[b-wc6n20tp1s] {
	flex: 0 0 auto;
	white-space: nowrap;
}

.trip-prompt-text[b-wc6n20tp1s] {
	flex: 1 1 200px;
	min-width: 0;
}

.trip-prompt-actions[b-wc6n20tp1s] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 560px) {
	.trip-end[b-wc6n20tp1s],
	.trip-prompt-actions[b-wc6n20tp1s],
	.trip-prompt-actions .btn[b-wc6n20tp1s] {
		flex: 1 1 100%;
		width: 100%;
	}
}
/* /Components/Shared/Molecules/PlanCheckStatus.razor.rz.scp.css */
/* The collision check's status line (issue 195, epic 189; UI plan section 0). One molecule for the popup's box, the
   editor's panel and the Move to... dialog's line. The state's colours are the existing badge token pairs (about 5 to
   6.5:1, AA); the tone is never the only cue, every state has a glyph and words. Colours only through app.css tokens. */
.plan-check[b-478vq4i66s] {
	--check-bg: var(--surface-muted);
	--check-border: var(--line);
	--check-ink: var(--ink-soft);
	padding: 8px 12px;
	background: var(--check-bg);
	border: 1px solid var(--check-border);
	border-radius: var(--radius-sm);
	color: var(--check-ink);
	font-size: 12.5px;
	min-width: 0;
}

.plan-check.density-line[b-478vq4i66s] {
	padding: 8px 10px;
}

.plan-check.is-ok[b-478vq4i66s] {
	--check-bg: var(--success-soft);
	--check-border: var(--success-line);
	--check-ink: var(--success-ink);
}

.plan-check.is-warnings[b-478vq4i66s] {
	--check-bg: var(--warning-soft);
	--check-border: var(--warning-line);
	--check-ink: var(--warning-ink);
}

.plan-check.is-conflicts[b-478vq4i66s] {
	--check-bg: var(--danger-soft);
	--check-border: var(--danger-line);
	--check-ink: var(--danger-ink);
}

.plan-check.is-failed[b-478vq4i66s] {
	--check-border: var(--line-strong);
}

.check-summary[b-478vq4i66s] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	min-width: 0;
}

.check-glyph[b-478vq4i66s] {
	display: inline-flex;
	align-items: center;
	flex: none;
	font-size: 13px;
}

.check-text[b-478vq4i66s] {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The all-clear line can carry names (the Move to... sheet: "No collisions · T. Svoboda and Octavia free", issue 267): the words take
   the rest of the line next to the glyph and wrap inside their own box, instead of dropping under the glyph when they don't fit on
   one line. (Only the all-clear state: the failed state's "Try again" link is meant to wrap under its words.) */
.plan-check.is-ok .check-text[b-478vq4i66s] {
	flex: 1 1 0;
}

/* The items are body text in --ink on the soft background: 12 px regular, never the state's own ink. */
.check-items[b-478vq4i66s] {
	margin: 6px 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var(--ink);
	list-style: disc;
}

.check-item[b-478vq4i66s] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.check-item-glyph[b-478vq4i66s] {
	display: inline-flex;
	margin-right: 4px;
	font-size: 10px;
	color: var(--warning-ink);
	vertical-align: baseline;
}

.check-link[b-478vq4i66s] {
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
}

.check-show-all[b-478vq4i66s] {
	margin: 6px 0 0 18px;
}

@media (pointer: coarse) {
	.check-link[b-478vq4i66s] {
		min-height: 44px;
		padding-inline: 8px;
	}
}

@media (forced-colors: active) {
	.plan-check[b-478vq4i66s] {
		border-color: CanvasText;
	}
}
/* /Components/Shared/Molecules/PlanLineWindow.razor.rz.scp.css */
/* Issue 284, epic 281 (pictures "line window"): the window with one schedule line's whole text. Bootstrap's modal markup isn't used: the
   dim layer and the window are two siblings, so a click inside the window never reaches the layer. Above the page and the
   planning board's popovers, at Bootstrap's modal level (1055; the layer 1054), so the page's toasts and sticky heads stay under it.
   Centred on a wide window, a bottom sheet up to the popup's phone width (the same markup). Colours only through app.css tokens. */

/* The dim layer. A swipe on it does nothing and never chains to the page (the page is locked while the sheet is open, see app.css). */
.line-window-backdrop[b-yi4ybzmhka] {
	position: fixed;
	inset: 0;
	z-index: 1054;
	background: var(--modal-backdrop);
	touch-action: none;
	overscroll-behavior: none;
}

/* Centred through the insets and auto margins, not a transform (a transform blurs the text on some screens). fit-content: with
   both insets set, the height would stretch to the screen. The head and the buttons keep their size; the body scrolls. */
.line-window[b-yi4ybzmhka] {
	position: fixed;
	inset: 0;
	z-index: 1055;
	display: flex;
	flex-direction: column;
	width: min(460px, calc(100vw - 32px));
	height: fit-content;
	max-height: calc(100dvh - 32px);
	margin: auto;
	background: var(--surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.4;
	/* The table rows and boxes don't select (a double-click must not paint a word behind the window); here the text is copied. */
	user-select: text;
}

/* The root takes focus when it has nothing better; a ring around the whole window adds nothing. */
.line-window:focus[b-yi4ybzmhka] {
	outline: none;
}

/* ---- Head: "LINE 1 OF 2", the date and time, the X ---- */
.line-head[b-yi4ybzmhka] {
	position: relative;
	display: flex;
	flex: none;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 18px 20px 0;
}

.line-heading[b-yi4ybzmhka] {
	flex: 1 1 auto;
	min-width: 0;
}

.line-eyebrow[b-yi4ybzmhka] {
	margin: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.line-title[b-yi4ybzmhka] {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.line-close[b-yi4ybzmhka] {
	flex: none;
}

/* Bootstrap's close button rings with a pale blue halo (1.3:1 on white); the accent pair the other buttons use. */
.line-close:focus-visible[b-yi4ybzmhka] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

/* ---- Body: the three chips and the two texts. It scrolls when the texts are long; the head and the buttons stay. ---- */
.line-body[b-yi4ybzmhka] {
	flex: 1 1 auto;
	min-height: 0;
	padding: 12px 20px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.line-chips[b-yi4ybzmhka] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

/* A transparent border keeps the size the same in forced colours, where it turns into the text colour and gives the pill its shape. */
.line-chip[b-yi4ybzmhka] {
	display: inline-flex;
	gap: 4px;
	padding: 4px 10px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.line-chip b[b-yi4ybzmhka] {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Travel is the board's violet; the repair is the warning pair (the picture shows orange for every plan, not a tone that follows the status). */
.chip-travel[b-yi4ybzmhka] {
	background: var(--kind-travel-bg);
	color: var(--kind-travel-ink);
}

.chip-repair[b-yi4ybzmhka] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.line-texts[b-yi4ybzmhka] {
	margin: 0;
}

.line-text[b-yi4ybzmhka] {
	margin: 0 0 10px;
}

.line-text dt[b-yi4ybzmhka] {
	margin: 0 0 2px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ink-soft);
}

/* The whole text: it breaks anywhere (1000 characters without a space stay inside the window) and keeps its line breaks. */
.line-text dd[b-yi4ybzmhka] {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ink);
	overflow-wrap: anywhere;
	white-space: pre-line;
}

/* An empty note or tools text keeps its label and shows a dash: this window answers "is there a note?". */
.line-text dd.is-empty[b-yi4ybzmhka] {
	color: var(--ink-faint);
}

/* ---- The buttons: Edit schedule (only for a person who can edit) and Close. The page's compact 28 px button is overridden here. ---- */
.line-actions[b-yi4ybzmhka] {
	display: flex;
	flex: none;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 20px 18px;
}

.line-actions .btn[b-yi4ybzmhka] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	margin: 0;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

/* The outlined look through Bootstrap's own variables, not the properties, so hover, active and disabled still change it. */
.line-actions .btn-outline-secondary[b-yi4ybzmhka] {
	--bs-btn-bg: var(--surface);
	--bs-btn-color: var(--ink);
	--bs-btn-border-color: var(--line-strong);
	--bs-btn-hover-bg: var(--surface-hover);
	--bs-btn-hover-color: var(--ink);
	--bs-btn-hover-border-color: var(--ink-faint);
	--bs-btn-active-bg: var(--line-soft);
	--bs-btn-active-color: var(--ink);
	--bs-btn-active-border-color: var(--ink-faint);
}

/* ---- A bottom sheet on a phone: flush with the bottom edge, rounded on top, a grab handle, the home indicator's safe area under the
   buttons, the buttons stacked (Edit schedule, then Close). The handle is only a picture: the X, Close, Esc and a tap on the layer close it. ---- */
@media (max-width: 640.98px) {
	.line-window[b-yi4ybzmhka] {
		inset: auto 0 0;
		width: 100%;
		height: auto;
		/* A short screen (a phone held sideways, 480 px high or less) keeps all but 16 px for the sheet, so its body still shows a few
		   lines between the head and the stacked buttons. A taller one keeps 88 px of page visible (the next rule). The body scrolls. */
		max-height: calc(100dvh - 16px);
		margin: 0;
		padding-bottom: env(safe-area-inset-bottom);
		border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
	}

	.line-head[b-yi4ybzmhka] {
		padding: 26px 16px 0;
	}

	.line-head[b-yi4ybzmhka]::before {
		content: "";
		position: absolute;
		top: 10px;
		left: 50%;
		width: 40px;
		height: 4px;
		background: var(--line-strong);
		border-radius: 2px;
		transform: translateX(-50%);
	}

	.line-body[b-yi4ybzmhka] {
		padding: 10px 16px 0;
	}

	.line-actions[b-yi4ybzmhka] {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px 16px;
	}

	.line-actions .btn[b-yi4ybzmhka] {
		width: 100%;
	}
}

/* From 481 px of height, 88 px of page stay visible above the sheet, so it still reads as a sheet (picture 109-730) also with two
   1000-character texts ([Decision] 292): at 640 px of height it takes under 92 % of the screen. Below that height the 88 px left the
   body about 86 px (D1 UI review, 640 x 360), so the rule above keeps 16 px there. The same selector as the phone rule, after it: this
   one wins on a tall phone; the toast caps further down are more specific and still win while a toast is shown. */
@media (max-width: 640.98px) and (min-height: 481px) {
	.line-window[b-yi4ybzmhka] {
		max-height: calc(100dvh - 88px);
	}
}

/* 44 px targets on a phone and on a touch screen; Bootstrap's close button is 32 px and keeps its glyph centred in the larger box. */
@media (max-width: 640.98px), (pointer: coarse) {
	.line-actions .btn[b-yi4ybzmhka] {
		min-height: 44px;
	}

	.line-close[b-yi4ybzmhka] {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		margin: -8px -10px 0 0;
	}
}

/* ---- While the page's move toast is shown (6 to 10 s, at 1090 above this window): the window keeps clear of it, so the toast never
   covers its head or its buttons (issue 286). The popup's card does the same in PlanSchedulePopup.razor.css. ---- */

/* On a desktop the toast sits at the bottom, one or two lines, and ends 84 px above the edge at most. The cap takes that from both
   sides: the window stays centred, and a window that already fits doesn't move when a toast comes or goes. */
body:has(.toast-box:not(.is-changes)) .line-window[b-yi4ybzmhka] {
	max-height: calc(100dvh - 168px);
}

/* On a phone the toast sits at the top: the sheet stops below it (54 px plus three lines plus air). */
@media (max-width: 640.98px), (max-height: 480px) and (pointer: coarse) {
	body:has(.toast-box:not(.is-changes)) .line-window[b-yi4ybzmhka] {
		max-height: calc(100dvh - 144px - env(safe-area-inset-top));
	}
}

/* Below 320 px the toast takes four lines and ends at 154 px. */
@media (max-width: 319.98px) {
	body:has(.toast-box:not(.is-changes)) .line-window[b-yi4ybzmhka] {
		max-height: calc(100dvh - 160px - env(safe-area-inset-top));
	}
}

/* Two wide cases put the toast at the top (a phone held sideways; a popup that became a card on a short window), where the window is
   a centred dialog: it moves to the bottom edge, or the toast would still lie over its head. */
@media (min-width: 641px) and (max-height: 480px) and (pointer: coarse) {
	body:has(.toast-box:not(.is-changes)) .line-window[b-yi4ybzmhka] {
		margin-bottom: 8px;
	}
}

@media (min-width: 641px) {
	body:has(.plan-popup[data-card]):has(.toast-box:not(.is-changes)) .line-window[b-yi4ybzmhka] {
		max-height: calc(100dvh - 144px - env(safe-area-inset-top));
		margin-bottom: 8px;
	}
}

@media (forced-colors: active) {
	/* The shadow is gone in forced colours: the window needs a line of its own against the dimmed page, and a chip its pill shape. */
	.line-window[b-yi4ybzmhka] {
		border: 1px solid CanvasText;
	}

	.line-chip[b-yi4ybzmhka] {
		border-color: CanvasText;
	}

	/* The grab handle is only a background, which forced colours would paint in the canvas colour: invisible on the sheet. */
	.line-head[b-yi4ybzmhka]::before {
		forced-color-adjust: none;
		background: CanvasText;
	}
}
/* /Components/Shared/Molecules/PlanMoveDialog.razor.rz.scp.css */
/* The planning board's Move to... dialog (issue 195, epic 189; UI plan section 3). Bootstrap's .modal shown without its JS,
   like ConfirmModal and the quick-edit form, so the backdrop is drawn here. One small dialog: a summary of what the service
   is now, a date and a start time, what it would look like there, and the collision line. Colours only through app.css
   tokens; the state of the check is never colour alone (the shared check line carries a glyph and words). */
.plan-move-modal[b-l7vf8s8hfv] {
	background-color: var(--modal-backdrop);
}

/* Bootstrap's own max-width rule (576 px and up) reads this; below it the dialog is as wide as the viewport allows. */
.plan-move-modal .modal-dialog[b-l7vf8s8hfv] {
	--bs-modal-width: min(440px, calc(100vw - 24px));
}

.plan-move-modal:focus[b-l7vf8s8hfv] {
	outline: none;
}

/* ---- The Move to... bottom sheet of the mobile list (issue 197, Presentation = BottomSheet), at any width. The root stays
   Bootstrap's dimmed full-screen .modal (a tap on it does nothing: Cancel and Esc close; the sheet shows no X, issue 267); the dialog is pinned to the
   bottom edge, full width up to 720 px, rounded on top with a decorative grab handle. The body scrolls between the header and
   the footer, so Cancel and Move stay in view whatever the height; the home indicator's safe area sits under the footer. ---- */
.plan-move-modal.is-sheet .modal-dialog[b-l7vf8s8hfv] {
	--bs-modal-width: 720px;
	display: flex;
	align-items: flex-end;
	width: 100%;
	max-width: 720px;
	height: 100%;
	min-height: 0;
	margin: 0 auto;
}

.plan-move-modal.is-sheet .modal-content[b-l7vf8s8hfv] {
	width: 100%;
	max-height: calc(100dvh - 16px);
	padding-bottom: env(safe-area-inset-bottom);
	border-bottom: 0;
	border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
	--bs-modal-inner-border-radius: calc(var(--radius-2xl) - 1px);
}

/* ---- The sheet as the Figma frame 32-1756 draws it (issue 267): no rules between the parts, 16 px side gutters and 12 px between
   the blocks; a 16 px bold title with one 12 px line under it; Cancel and Move as the frame's pair. The sheet keeps its fixed
   minimum height (issue 197 D fix P1), so a longer check line never moves the fields under the finger, and its 44 px targets. ---- */
.plan-move-modal.is-sheet .modal-header[b-l7vf8s8hfv] {
	position: relative;
	align-items: flex-start;
	padding: 26px 16px 0;
	border-bottom: 0;
}

.plan-move-modal.is-sheet .move-heading[b-l7vf8s8hfv] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.plan-move-modal.is-sheet .modal-title[b-l7vf8s8hfv] {
	font-size: 16px;
	line-height: 18px;
	overflow-wrap: anywhere;
}

.plan-move-modal.is-sheet .move-sheet-now[b-l7vf8s8hfv] {
	margin: 0;
	font-size: 12px;
	line-height: 14px;
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* The frame has no close button: Cancel is the way out (Esc closes too). It stays in the markup for a host that wants it. */
.plan-move-modal.is-sheet .modal-header .btn-close[b-l7vf8s8hfv] {
	display: none;
}

.plan-move-modal.is-sheet .modal-body[b-l7vf8s8hfv] {
	padding: 12px 16px 0;
}

.plan-move-modal.is-sheet .move-fields[b-l7vf8s8hfv] {
	grid-template-columns: minmax(0, 1fr) 120px;
	gap: 10px;
}

.plan-move-modal.is-sheet .move-label[b-l7vf8s8hfv] {
	font-weight: 700;
}

.plan-move-modal.is-sheet .move-preview[b-l7vf8s8hfv],
.plan-move-modal.is-sheet .move-explain[b-l7vf8s8hfv],
.plan-move-modal.is-sheet .move-rounded[b-l7vf8s8hfv] {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 400;
	color: var(--ink-soft);
}

.plan-move-modal.is-sheet .move-rounded:empty[b-l7vf8s8hfv] {
	margin: 0;
}

/* The check line is the frame's green strip: no outline when all is well, 12 px words. */
.plan-move-modal.is-sheet .move-check[b-l7vf8s8hfv]  .plan-check.density-line {
	font-size: 12px;
}

.plan-move-modal.is-sheet .move-check[b-l7vf8s8hfv]  .plan-check.density-line.is-ok {
	--check-border: transparent;
}

.plan-move-modal.is-sheet .modal-footer[b-l7vf8s8hfv] {
	gap: 10px;
	padding: 12px 16px 20px;
	border-top: 0;
	border-radius: 0;
	background: transparent;
}

.plan-move-modal.is-sheet .modal-footer > *[b-l7vf8s8hfv] {
	margin: 0;
}

.plan-move-modal.is-sheet .modal-footer .btn[b-l7vf8s8hfv] {
	font-size: 13px;
}

/* The Cancel look through Bootstrap's own variables, not the properties, so :hover, :active and :disabled still change it (a plain
   background / color here would beat their rules and a tap would show no pressed state). Hover and active come from app.css. */
.plan-move-modal.is-sheet .modal-footer .btn-outline-secondary[b-l7vf8s8hfv] {
	--bs-btn-bg: var(--surface);
	--bs-btn-color: var(--ink);
	--bs-btn-border-color: var(--line-strong);
}

.plan-move-modal.is-sheet .modal-footer .btn-primary[b-l7vf8s8hfv] {
	font-weight: 700;
}

.plan-move-modal.is-sheet .modal-header[b-l7vf8s8hfv]::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	width: 40px;
	height: 4px;
	background: var(--line-strong);
	border-radius: 2px;
	transform: translateX(-50%);
}

/* The dimmed root is Bootstrap's scrolling .modal: a swipe on it must not chain to the page either (issue 197 D fix 2). Not
   touch-action: none here, the body inside has to keep scrolling by touch. */
.plan-move-modal.is-sheet[b-l7vf8s8hfv] {
	overscroll-behavior: none;
}

/* The body scrolls inside the sheet and never hands its scroll on to the page behind (the page is locked while a sheet is open,
   see app.css; this also covers a browser that ignores the lock). */
.plan-move-modal.is-sheet .modal-body[b-l7vf8s8hfv] {
	overscroll-behavior: contain;
}

/* The sheet grows upward from the bottom edge, so a check line that gets longer (one line, then a list of conflicts, plus the
   "rounded" note) would push the date and time up under the finger (issue 197 D fix P1). The sheet therefore keeps the height
   of a result with two conflicts and the "rounded" note, or the whole screen when that is less (a short screen, where the body
   scrolls anyway), and only a third conflict line still grows it. Measured in the compact layout of issue 267 (Playwright, touch,
   en and cs): 463 px at 360 x 740 (the widest wrap of this tier; 449 px at 390), 572 px at 280 x 653; the values are those plus
   a few px, in rem. The frame's own sheet is 265 px high, but only for a result of one line. */
.plan-move-modal.is-sheet .modal-content[b-l7vf8s8hfv] {
	min-height: min(29.25rem, calc(100dvh - 16px));
}

/* A cover screen wraps the same sentences onto more lines and stacks the two fields (two conflicts need 572 px at 280 px). */
@media (max-width: 359.98px) {
	.plan-move-modal.is-sheet .modal-content[b-l7vf8s8hfv] {
		min-height: min(36rem, calc(100dvh - 16px));
	}

	.plan-move-modal.is-sheet .move-fields[b-l7vf8s8hfv] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Cancel and Move share the width, so each is a large target. */
.plan-move-modal.is-sheet .modal-footer .btn[b-l7vf8s8hfv] {
	flex: 1 1 0;
	min-width: 0;
}

/* Shown when the sheet's time input snapped what was typed: muted, under the two fields. The paragraph is always in the sheet,
   empty until then, because a live region that already exists is announced when it gets text and one created with its text is
   often not (issue 197 D fix 3, F2); empty, it takes no room. */
.move-rounded[b-l7vf8s8hfv] {
	margin: -4px 0 12px;
	font-size: 12px;
	color: var(--ink-soft);
}

.move-rounded:empty[b-l7vf8s8hfv] {
	margin: 0;
}

.modal-header .modal-title[b-l7vf8s8hfv] {
	margin: 0;
	font-weight: 700;
}

.changed-elsewhere[b-l7vf8s8hfv] {
	/* Bootstrap's own info colours are cyan; the brand's notice colours are the accent pair. */
	--bs-alert-bg: var(--accent-soft);
	--bs-alert-border-color: var(--accent);
	--bs-alert-color: var(--accent-strong);
	--bs-alert-link-color: var(--accent-strong);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 12px;
	font-size: 12.5px;
}

.move-link[b-l7vf8s8hfv] {
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
}

.modal-body .alert[b-l7vf8s8hfv] {
	margin-bottom: 12px;
}

/* ---- Summary: what the service is now ---- */
.move-summary[b-l7vf8s8hfv] {
	margin-bottom: 8px;
	padding: 10px 12px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.summary-title[b-l7vf8s8hfv] {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.summary-now[b-l7vf8s8hfv] {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.move-explain[b-l7vf8s8hfv] {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* ---- Fields: date and start time side by side, stacked on a very narrow screen ---- */
.move-fields[b-l7vf8s8hfv] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

.move-field[b-l7vf8s8hfv] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.move-label[b-l7vf8s8hfv] {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-soft);
}

.move-field .form-control[b-l7vf8s8hfv],
.move-field .form-select[b-l7vf8s8hfv] {
	min-height: 34px;
	font-variant-numeric: tabular-nums;
}

/* The calendar glyph is ours; the browser's own indicator stays on top, invisible, so the click still opens the picker. */
.date-field[b-l7vf8s8hfv] {
	position: relative;
	display: block;
}

.date-field .form-control[b-l7vf8s8hfv] {
	padding-right: 30px;
}

.cal-icon[b-l7vf8s8hfv] {
	position: absolute;
	top: 50%;
	right: 9px;
	display: inline-flex;
	font-size: 13px;
	color: var(--ink-soft);
	transform: translateY(-50%);
	pointer-events: none;
}

.date-field input[b-l7vf8s8hfv]::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

/* ---- What it would look like there, and the check ---- */
.move-preview[b-l7vf8s8hfv] {
	margin: 0 0 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.move-check:focus[b-l7vf8s8hfv] {
	outline: none;
}

.move-check:focus-visible[b-l7vf8s8hfv] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* A line of words in the place of the check: nothing to check yet (a field is empty, or nothing was changed). */
.move-note[b-l7vf8s8hfv] {
	margin: 0;
	padding: 8px 10px;
	background: var(--surface-muted);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* The hint under the check line when the check could not be run. */
.move-check[b-l7vf8s8hfv]  .plan-check + .move-note {
	margin-top: 6px;
}

.move-gone[b-l7vf8s8hfv] {
	margin: 0;
	font-size: 12.5px;
}

.modal-footer .btn[b-l7vf8s8hfv] {
	min-height: 34px;
}

/* Bootstrap's close button rings with a pale blue halo (1.3:1 on white); the accent pair the other buttons use. */
.btn-close:focus-visible[b-l7vf8s8hfv] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

@media (max-width: 359.98px) {
	.move-fields[b-l7vf8s8hfv] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (pointer: coarse), (max-width: 575.98px) {
	/* Bootstrap's close button is 32 px; it keeps its glyph centred in the larger box. flex: none: a title wrapping to two
	   lines (cs at 280 px) must not squeeze it below 44 px (issue 195 D2 P-B), like the editor's. */
	.modal-header .btn-close[b-l7vf8s8hfv] {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		flex: none;
	}

	.move-field .form-control[b-l7vf8s8hfv],
	.move-field .form-select[b-l7vf8s8hfv],
	.modal-footer .btn[b-l7vf8s8hfv] {
		min-height: 44px;
	}

	.move-link[b-l7vf8s8hfv] {
		min-height: 44px;
	}
}

/* 44 px targets on the sheet at any width (issue 197): it is the phone and foldable surface, and a tablet in portrait gets the
   same sheet. Sizing only; the stacking of the two fields stays in the width rule above. (The sheet's X is hidden, so it needs
   no size here.) */
.plan-move-modal.is-sheet .move-field .form-control[b-l7vf8s8hfv],
.plan-move-modal.is-sheet .move-field .form-select[b-l7vf8s8hfv],
.plan-move-modal.is-sheet .modal-footer .btn[b-l7vf8s8hfv],
.plan-move-modal.is-sheet .move-link[b-l7vf8s8hfv] {
	min-height: 44px;
}

@media (forced-colors: active) {
	.move-note[b-l7vf8s8hfv],
	.move-summary[b-l7vf8s8hfv] {
		border-color: CanvasText;
	}

	/* The grab handle is only a background, which forced colours would paint in the canvas colour: invisible on the sheet. */
	.plan-move-modal.is-sheet .modal-header[b-l7vf8s8hfv]::before {
		forced-color-adjust: none;
		background: CanvasText;
	}
}
/* /Components/Shared/Molecules/PlanningBar.razor.rz.scp.css */
/* Planning board bar (issue 194, epic 189; UI plan section 4). Placed by left/width percentages computed in C#
   (invariant culture) inside the lane track, which is position:relative. Segments touch with no gap. Which labels fit
   is decided by container queries on each segment, because the hour width follows the card's width and the zoom
   ([Decision] issue 250). Colours only through app.css tokens. */
.planning-bar[b-714xz2bscp] {
	/* Tone hooks, set per status below; they only point at app.css tokens. */
	--bar-bg: var(--plan-tone-neutral-bg);
	--bar-border: var(--plan-tone-neutral-border);
	--bar-stripe: var(--plan-tone-neutral-stripe);
	--bar-ink: var(--plan-tone-neutral-ink);
	position: absolute;
	top: 6px;
	height: 36px;
	display: flex;
	align-items: stretch;
	min-width: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: var(--bar-ink);
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	z-index: 1;
	transition: box-shadow 0.12s;
}

.planning-bar.tone-new[b-714xz2bscp] {
	--bar-bg: var(--plan-tone-committed-bg);
	--bar-border: var(--plan-tone-committed-border);
	--bar-stripe: var(--plan-tone-committed-stripe);
	--bar-ink: var(--plan-tone-committed-ink);
}

.planning-bar.tone-progress[b-714xz2bscp] {
	--bar-bg: var(--plan-tone-active-bg);
	--bar-border: var(--plan-tone-active-border);
	--bar-stripe: var(--plan-tone-active-stripe);
	--bar-ink: var(--plan-tone-active-ink);
}

.planning-bar.tone-done[b-714xz2bscp] {
	--bar-bg: var(--plan-tone-completed-bg);
	--bar-border: var(--plan-tone-completed-border);
	--bar-stripe: var(--plan-tone-completed-stripe);
	--bar-ink: var(--plan-tone-completed-ink);
}

.planning-bar:hover[b-714xz2bscp] {
	box-shadow: var(--shadow-sm);
	z-index: 2;
}

/* Ink, not accent: the selected bar's outline and halo are accent, so the focus ring needs a colour of its own. */
.planning-bar:focus-visible[b-714xz2bscp] {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	z-index: 2;
}

/* At the window's first or last minute there is no scrolling left that would bring an outside ring into view (the
   label column or the card's edge covers it), so the ring goes inside the bar. */
.planning-bar.at-start:focus-visible[b-714xz2bscp],
.planning-bar.at-end:focus-visible[b-714xz2bscp] {
	outline-offset: -2px;
}

/* The bar the open popup hangs from (issue 195, R2): a Blazor-rendered class, so it survives a re-render. Accent-strong,
   not ink, so the focus ring (ink) stays distinguishable; when the bar is both focused and selected the focus ring wins
   the outline and the halo stays. The other days of the same plan get a dashed outline. */
.planning-bar.is-selected[b-714xz2bscp] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--accent-ring);
	z-index: 2;
}

.planning-bar.is-selected-plan[b-714xz2bscp] {
	outline: 1px dashed var(--accent);
	outline-offset: 2px;
	z-index: 2;
}

.planning-bar.is-selected.at-start[b-714xz2bscp],
.planning-bar.is-selected.at-end[b-714xz2bscp],
.planning-bar.is-selected-plan.at-start[b-714xz2bscp],
.planning-bar.is-selected-plan.at-end[b-714xz2bscp] {
	outline-offset: -2px;
}

/* ?focus=<planId> (issue 194 B3): the page's JS module adds this class for 1.6 s after scrolling the bar into view; with
   reduced motion it is a static ring for 3 s instead of a pulse. */
.planning-bar.is-highlighted[b-714xz2bscp] {
	z-index: 2;
	box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent);
	animation: bar-highlight-b-714xz2bscp 0.8s ease-in-out 2;
}

@keyframes bar-highlight-b-714xz2bscp {
	50% {
		box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 8px var(--accent-ring);
	}
}

/* A day that continues from or into another day, or is cut by the window, gets a square edge on that side. */
.planning-bar.cont-before[b-714xz2bscp],
.planning-bar.clip-before[b-714xz2bscp] {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.planning-bar.cont-after[b-714xz2bscp],
.planning-bar.clip-after[b-714xz2bscp] {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

/* A day entirely outside the window is a small marker at that edge. */
.planning-bar.is-outside-after[b-714xz2bscp] {
	transform: translateX(-100%);
}

/* ---- Segments ---- */
.seg[b-714xz2bscp] {
	container-type: inline-size;
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.seg-travel[b-714xz2bscp] {
	justify-content: center;
	gap: 3px;
	padding: 0 4px;
	background: var(--kind-travel-bg);
	border: 1px dashed var(--kind-travel-line);
	color: var(--kind-travel-ink);
	container-name: bar-travel;
	font-size: 10px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* The repair segment's own edges mark the boundary, so no double line. */
.seg-out[b-714xz2bscp] {
	border-right: 0;
}

.seg-back[b-714xz2bscp] {
	border-left: 0;
}

.seg-icon[b-714xz2bscp] {
	display: inline-flex;
	font-size: 12px;
	flex-shrink: 0;
}

.seg-text[b-714xz2bscp] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The status stripe is a border (not a box-shadow), so it survives forced-colours mode. */
.seg-repair[b-714xz2bscp] {
	flex-grow: 1;
	gap: 5px;
	padding: 0 6px 0 8px;
	background: var(--bar-bg);
	border: 1px solid var(--bar-border);
	border-left: 4px solid var(--bar-stripe);
	color: var(--bar-ink);
	container-name: bar-repair;
}

.cont[b-714xz2bscp],
.status-glyph[b-714xz2bscp],
.overnight[b-714xz2bscp],
.lock[b-714xz2bscp] {
	display: inline-flex;
	flex-shrink: 0;
}

.cont[b-714xz2bscp] {
	font-size: 13px;
}

.status-glyph[b-714xz2bscp] {
	font-size: 11px;
}

.overnight[b-714xz2bscp] {
	font-size: 12px;
}

.lock[b-714xz2bscp] {
	font-size: 10px;
}

/* D2 ([Decision] 310, Figma 120-2): the last line ends after the whole plan. Out of flow (no layout shift), clipped by the
   bar's radius and overflow:hidden; 16 px, half the bar on bars under 32 px. The sentence is in the bar's title/aria-label. */
.late-end[b-714xz2bscp] {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: min(16px, 50%);
	aspect-ratio: 1;
	background: var(--danger-ink);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	pointer-events: none;
}

/* Shrinks only after the car chip has given up its name (see .car): the plan number is the more useful text. */
.bar-label[b-714xz2bscp] {
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
	font-weight: 700;
}

.workers[b-714xz2bscp] {
	display: inline-flex;
	gap: 3px;
	flex-shrink: 0;
}

.initials[b-714xz2bscp] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 3px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--bar-ink);
	color: var(--bar-ink);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

/* Gives way first when the segment is short of room (issue 194 E polish 1): the very large shrink factor makes the car
   chip absorb the whole shortfall until it is down to its icon (5 + 12 + 6 px), and only then does the label shrink.
   So a "#SP-971234" label keeps its full width whenever the segment has room for it plus the icon. */
.car[b-714xz2bscp] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 1000;
	min-width: 23px;
	max-width: 120px;
	padding: 2px 6px 2px 5px;
	border-radius: var(--radius-xs);
	background: var(--surface);
	color: var(--bar-ink);
	font-size: 10px;
	font-weight: 700;
}

.car-icon[b-714xz2bscp] {
	display: inline-flex;
	font-size: 12px;
	flex-shrink: 0;
}

.car-name[b-714xz2bscp] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- What disappears first when a segment is narrow (UI plan section 4). Named containers, so a travel segment's
   tiers never apply to the repair segment's content and the other way round.
   A container query measures the content box, but the plan's thresholds are the segment's full (border-box) width,
   so each threshold here is the plan's minus the segment's horizontal padding and border: repair 8 + 6 padding,
   4 + 1 border = 19 px; travel 4 + 4 padding, 1 border (its inner side has none) = 9 px. Keep them in step with the
   padding and borders above. ---- */

/* < 220 px: no car chip. */
@container bar-repair (max-width: 200.98px) {
	.car[b-714xz2bscp] {
		display: none;
	}
}

/* Fix round 2: the plan label is what a bar is read by, so what sits beside it goes first. A "#SP-971001" label is about 66 px
   wide; with the 19 px of padding and border, the status glyph and the gaps the segment needs about 101 px for it alone. The review
   found "#S..." beside an overnight moon at 96 px and "#C-9..." beside three avatars at 150 px. So: no initials below 190 px, no
   overnight moon or lock below 140 px, no continuation arrows below 110 px. The status glyph is not on that list (fix round 3,
   decided by the coordinator): a bar that shows its status by colour alone fails WCAG 1.4.1, so the label ellipsizes
   ("#SP-97...") instead. Measured on the board (forced bar widths, final round 2): 190 px full label, 120 px and 80 px an
   ellipsized label beside the glyph, 70 to 50 px the glyph alone, 40 px the stripe alone. So the glyph stays down to a bar of
   about 50 px, and only the stripe is left at about 40 px. */

/* < 190 px: no initials. */
@container bar-repair (max-width: 170.98px) {
	.workers[b-714xz2bscp] {
		display: none;
	}
}

/* < 140 px: no overnight moon, no lock, no [Decision] 212 warning glyph (the bar's accessible name and the popup still carry the warning). */
@container bar-repair (max-width: 120.98px) {
	.overnight[b-714xz2bscp],
	.lock[b-714xz2bscp],
	.migration-split[b-714xz2bscp] {
		display: none;
	}
}

/* < 110 px: no continuation arrows (the square edge of the bar says the same). */
@container bar-repair (max-width: 90.98px) {
	.cont[b-714xz2bscp] {
		display: none;
	}
}

/* < 56 px: no label (the continuation arrows are already gone above); stripe and glyph stay. */
@container bar-repair (max-width: 36.98px) {
	.bar-label[b-714xz2bscp] {
		display: none;
	}
}

/* The stripe only: measured from a bar of about 40 px (the glyph shows down to about 50 px). */
@container bar-repair (max-width: 4.98px) {
	.status-glyph[b-714xz2bscp] {
		display: none;
	}
}

/* Travel: icon and text from 56 px, the icon only from 18 px, an empty dashed box below. */
@container bar-travel (max-width: 46.98px) {
	.seg-text[b-714xz2bscp] {
		display: none;
	}
}

@container bar-travel (max-width: 8.98px) {
	.seg-icon[b-714xz2bscp] {
		display: none;
	}
}

/* ---- Drag and drop (issue 196): states the page module sets as data attributes, never classes, so a re-render of the
   bar (which rewrites class) can't wipe them (CR-63). Later rules win where two meet on one bar. ---- */

/* The original while it is being dragged: the segments fade, the button doesn't, so a focus ring stays crisp. */
.planning-bar[data-drag-source][b-714xz2bscp] {
	box-shadow: none;
}

.planning-bar[data-drag-source] .seg[b-714xz2bscp],
.planning-bar[data-drag-source] .late-end[b-714xz2bscp] {
	opacity: 0.4;
}

/* Another plan's bar the slot collides with: a red outline, no halo (Show conflict's ring has one). */
.planning-bar[data-drag-conflict][b-714xz2bscp] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 2px;
	z-index: 2;
}

/* Held from the previous slot while the new one is checked (issue 196 D3-1): dashed, so the outline doesn't blink at every
   snap step, in the ink tone (at least 3:1, D4 N5); the slot's own answer replaces it. */
.planning-bar[data-drag-conflict="held"][b-714xz2bscp] {
	outline-style: dashed;
}

/* Where a saved drop landed: green, fading out; where a refused drop went back to: red, fading out. */
.planning-bar[data-drag-landed][b-714xz2bscp] {
	outline: 2px solid var(--success-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--success-soft);
	z-index: 2;
	animation: drag-landed-b-714xz2bscp 1.2s ease-out forwards;
}

.planning-bar[data-drag-returned][b-714xz2bscp] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 2px;
	z-index: 2;
	animation: drag-returned-b-714xz2bscp 1.2s ease-out forwards;
}

/* Show conflict (CR-57): the conflicting bar, scrolled into view and focused, pulses twice and keeps its ring for 4 s. */
.planning-bar[data-conflict-highlight][b-714xz2bscp] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--danger-soft);
	z-index: 3;
	animation: conflict-pulse-b-714xz2bscp 0.8s ease-in-out 2;
}

.planning-bar.at-start[data-drag-conflict][b-714xz2bscp],
.planning-bar.at-end[data-drag-conflict][b-714xz2bscp],
.planning-bar.at-start[data-drag-landed][b-714xz2bscp],
.planning-bar.at-end[data-drag-landed][b-714xz2bscp],
.planning-bar.at-start[data-drag-returned][b-714xz2bscp],
.planning-bar.at-end[data-drag-returned][b-714xz2bscp],
.planning-bar.at-start[data-conflict-highlight][b-714xz2bscp],
.planning-bar.at-end[data-conflict-highlight][b-714xz2bscp] {
	outline-offset: -2px;
}

@keyframes drag-landed-b-714xz2bscp {
	0%,
	75% {
		outline-color: var(--success-ink);
	}

	100% {
		outline-color: transparent;
		box-shadow: 0 0 0 5px transparent;
	}
}

@keyframes drag-returned-b-714xz2bscp {
	0%,
	66% {
		outline-color: var(--danger-ink);
	}

	100% {
		outline-color: transparent;
	}
}

@keyframes conflict-pulse-b-714xz2bscp {
	50% {
		box-shadow: 0 0 0 8px var(--danger-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.planning-bar[b-714xz2bscp] {
		transition: none;
	}

	.planning-bar.is-highlighted[b-714xz2bscp] {
		animation: none;
	}

	/* Issue 196: the rings stay static for their whole (longer) time instead of fading or pulsing. */
	.planning-bar[data-drag-landed][b-714xz2bscp],
	.planning-bar[data-drag-returned][b-714xz2bscp],
	.planning-bar[data-conflict-highlight][b-714xz2bscp] {
		animation: none;
	}
}

@media (forced-colors: active) {
	.seg[b-714xz2bscp] {
		border-color: CanvasText;
	}

	/* D2: a background alone would become the canvas colour; CanvasText keeps the corner in light and dark themes. */
	.late-end[b-714xz2bscp] {
		forced-color-adjust: none;
		background: CanvasText;
	}

	.planning-bar:focus-visible[b-714xz2bscp] {
		outline-color: Highlight;
	}

	.planning-bar.is-selected[b-714xz2bscp],
	.planning-bar.is-selected-plan[b-714xz2bscp] {
		outline-color: Highlight;
	}

	/* Issue 196: the drag's outlines in system colours; the faded original gets a dashed outline instead of a fade. */
	.planning-bar[data-drag-source][b-714xz2bscp] {
		outline: 1px dashed CanvasText;
	}

	.planning-bar[data-drag-conflict][b-714xz2bscp],
	.planning-bar[data-drag-returned][b-714xz2bscp] {
		outline-color: Mark;
	}

	.planning-bar[data-drag-conflict="held"][b-714xz2bscp] {
		outline-style: dotted;
	}

	.planning-bar[data-drag-landed][b-714xz2bscp] {
		outline-color: Highlight;
	}

	.planning-bar[data-conflict-highlight][b-714xz2bscp] {
		outline: 3px solid Highlight;
	}
}
/* /Components/Shared/Molecules/PlanningDayBand.razor.rz.scp.css */
/* Planning board day band (issue 194, epic 189; UI plan sections 2.3 and 3). Every row is its own two-column grid,
   label column plus timeline, so the rows line up without subgrid. The card (PlanningBoard) is the scroll container on
   both axes; --board-label-w, --board-hours, --board-scale-h and --board-dayhead-h come from it.
   Layers inside the card: bars 1, now line 3, label column 4, day header 5, hour scale 6, corner 7. */
.day-band[b-u2824m3xvh] {
	position: relative;
	border-top: 2px solid var(--line);
}

/* ---- Header: sticky under the hour scale; the band is its containing block, so the next day pushes it away ---- */
.day-head[b-u2824m3xvh] {
	position: sticky;
	top: var(--board-scale-h);
	z-index: 5;
	min-height: var(--board-dayhead-h);
	background: var(--surface-muted);
	border-bottom: 1px solid var(--line-soft);
}

/* Narrower than the row, so it can stay in view when the card scrolls sideways; it wraps at the card's visible width. */
.day-head-inner[b-u2824m3xvh] {
	position: sticky;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	width: max-content;
	/* The visible width of the card, so the day menu button's auto margin puts it at the same right edge on every day (fix round 2,
	   it sat after the last chip, at a different x on each head). */
	min-width: 100cqw;
	max-width: 100cqw;
	min-height: var(--board-dayhead-h);
	padding: 6px 12px;
	box-sizing: border-box;
}

.day-title[b-u2824m3xvh] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	white-space: nowrap;
}

.today-badge[b-u2824m3xvh] {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
}

.chip[b-u2824m3xvh] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 260px;
	padding: 3px 8px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

/* Fully booked: warning tone, never green (green means Completed on this page). */
.chip-capacity.is-full[b-u2824m3xvh] {
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-weight: 700;
}

.chip-absence[b-u2824m3xvh] {
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-weight: 700;
}

/* A request that isn't approved yet: dashed outline plus the "pending" text, not colour alone. */
.chip-absence.is-pending[b-u2824m3xvh] {
	border-style: dashed;
	border-color: var(--warning-ink);
}

.chip-trip[b-u2824m3xvh] {
	background: var(--info-soft);
	color: var(--info-ink);
}

.chip-icon[b-u2824m3xvh] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 11px;
}

.chip-text[b-u2824m3xvh] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* A trip chip: the destination gets the ellipsis, the times after it stay whole. */
.chip-text-split[b-u2824m3xvh] {
	display: flex;
	overflow: visible;
}

.chip-main[b-u2824m3xvh] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chip-times[b-u2824m3xvh] {
	flex: none;
	white-space: pre;
}

/* ---- Lanes ---- */
.lanes[b-u2824m3xvh] {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lane[b-u2824m3xvh] {
	display: grid;
	grid-template-columns: var(--board-label-w) minmax(0, 1fr);
	height: 48px;
	border-bottom: 1px solid var(--line-soft);
}

.lane:last-child[b-u2824m3xvh] {
	border-bottom: 0;
}

.lane-label[b-u2824m3xvh] {
	position: sticky;
	left: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 0 12px;
	background: var(--surface);
	border-right: 1px solid var(--line);
	box-shadow: 6px 0 6px -6px var(--line-strong);
}

/* The Serviceman's own services (A0-16): an accent inset on the label cell. */
.lane.is-mine .lane-label[b-u2824m3xvh] {
	box-shadow: inset 3px 0 0 var(--accent), 6px 0 6px -6px var(--line-strong);
}

.lane-title[b-u2824m3xvh],
.lane-sub[b-u2824m3xvh] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.25;
}

.lane-title[b-u2824m3xvh] {
	font-size: 12px;
	font-weight: 700;
	color: var(--ink);
}

.lane-title-free[b-u2824m3xvh] {
	/* Issue 194 D2: a long empty-lane title (cs "Žádné odpovídající servisy" in the 160 px column) wraps onto a second
	   line instead of being cut; two lines plus the hint still fit the 48 px lane (2 x 15 + 2 + 14 px). The rare third
	   line ends in an ellipsis, and the title attribute holds the full text. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	white-space: normal;
	color: var(--ink-soft);
}

.lane-sub[b-u2824m3xvh] {
	font-size: 11px;
	color: var(--ink-faint);
}

/* Bars are absolutely positioned in here. No overflow:hidden: a focused bar's ring sits in the lane's padding. */
.lane-track[b-u2824m3xvh] {
	position: relative;
	min-width: 0;
	background-image: linear-gradient(to right, var(--line) 0 1px, transparent 1px);
	background-size: calc(100% / var(--board-hours, 14)) 100%;
}

/* ---- Weekend, non-working days and today ---- */
.day-band.is-weekend:not(.is-working-override) .day-head[b-u2824m3xvh],
.day-band.is-non-working .day-head[b-u2824m3xvh] {
	background: var(--canvas);
}

.day-band.is-weekend:not(.is-working-override) .lane-label[b-u2824m3xvh],
.day-band.is-weekend:not(.is-working-override) .lane-track[b-u2824m3xvh],
.day-band.is-non-working .lane-label[b-u2824m3xvh],
.day-band.is-non-working .lane-track[b-u2824m3xvh] {
	background-color: var(--surface-muted);
}

/* CR-107: a day that is not a working day is hatched (design tokens only) on top of the hour grid; the chip says why, so the
   hatch is never the only cue. The label column keeps its plain tone so the text stays readable. */
.day-band.is-non-working .lane-track[b-u2824m3xvh] {
	background-image:
		repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px),
		linear-gradient(to right, var(--line) 0 1px, transparent 1px);
	background-size: auto, calc(100% / var(--board-hours, 14)) 100%;
}

.chip-nonworking[b-u2824m3xvh] {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink);
	font-weight: 700;
}

.chip-working-override[b-u2824m3xvh] {
	background: var(--success-soft);
	color: var(--success-ink);
	font-weight: 700;
}

/* ---- The day menu (CR-107): a "..." button in the header and an inline menu row. Not floating: the sticky headers above and
   below would cover a popover, so the menu opens in the header's own flow. Desktop and tablet only (D14). ---- */
.day-menu-btn[b-u2824m3xvh] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: auto;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
}

.day-menu-btn:hover[b-u2824m3xvh],
.day-menu-btn[aria-expanded="true"][b-u2824m3xvh] {
	background: var(--line-soft);
	color: var(--ink);
}

.day-menu-btn:focus-visible[b-u2824m3xvh],
.day-menu-item:focus-visible[b-u2824m3xvh] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 1px;
}

.day-menu[b-u2824m3xvh] {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.day-menu-item[b-u2824m3xvh] {
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.day-menu-item:hover[b-u2824m3xvh] {
	background: var(--accent-soft);
	border-color: var(--accent);
}

/* The list tier (phones) shows the day list instead of this grid; the menu is not offered there, nor to a touch-only phone. */
@media (pointer: coarse) {
	.day-menu-btn[b-u2824m3xvh] {
		width: 44px;
		height: 44px;
	}

	.day-menu-item[b-u2824m3xvh] {
		min-height: 44px;
	}
}

@media (forced-colors: active) {
	.day-menu[b-u2824m3xvh],
	.day-menu-item[b-u2824m3xvh],
	.chip-nonworking[b-u2824m3xvh] {
		border-color: CanvasText;
	}
}

/* Today wins over the weekend tone (a Sunday can be today). */
.day-band.is-today .day-head[b-u2824m3xvh] {
	background: var(--accent-soft);
}

.day-band.is-today .day-title[b-u2824m3xvh] {
	color: var(--accent-strong);
}

/* ---- Now line (issue 194 B3): today's band only, over the lanes (not the header), under the sticky label column, so it
   slides beneath the labels when the card scrolls sideways. The time pill is in the sticky hour scale (PlanningBoard). */
.band-body[b-u2824m3xvh] {
	position: relative;
}

.band-now[b-u2824m3xvh] {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--board-label-w);
	right: 0;
	z-index: 3;
	pointer-events: none;
}

.band-now-line[b-u2824m3xvh] {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--board-now);
	transform: translateX(-1px);
}

@media (forced-colors: active) {
	.chip[b-u2824m3xvh] {
		border-color: CanvasText;
	}

	.band-now-line[b-u2824m3xvh] {
		forced-color-adjust: none;
		background: Highlight;
	}
}

/* Issue 196 (R1): the drag ghost's lane takes no room until the page module activates it during a drag. */
.lanes-ghost:not([data-ghost-active])[b-u2824m3xvh] {
	display: none;
}

/* A busy band is taller than the card, so its last row, the ghost lane, would lie below the card's visible bottom
   (responsive review, issue 196). Sticky to the card's bottom edge while any of the band's body is in view: it stays the
   band's last row in the DOM (the drag hit-tests band rectangles), and its band body is its containing block, so it never
   leaves its band or covers a day header. Layer 4: over the label column of the rows it slides over, under the day
   header (5). The top shadow separates it from the row under it while it is pinned. */
.lanes-ghost[data-ghost-active][b-u2824m3xvh] {
	position: sticky;
	bottom: 0;
	z-index: 4;
	box-shadow: 0 -6px 6px -6px var(--line-strong);
}

/* ---- Drag and drop (issue 196, UI plan 2.2-2.7). The ghost lane's content is built by the page module, so it carries no
   scope attribute: everything inside .lanes-ghost is reached with ::deep. The ghost body is a copy of the bar, which keeps
   the bar's own scoped look; only the states are drawn here. Colours only through app.css tokens. ---- */

/* A free day swaps its "Free day" lane for the ghost lane: 48 px for 48 px, no layout shift. */
.band-body:has(.lanes-ghost[data-ghost-active]) .lane-free[b-u2824m3xvh] {
	display: none;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-lane {
	display: grid;
	grid-template-columns: var(--board-label-w) minmax(0, 1fr);
	height: 48px;
	border-top: 1px solid var(--line-soft);
	background: var(--surface-muted);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-label {
	position: sticky;
	left: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 0 12px;
	background: var(--surface-muted);
	border-right: 1px solid var(--line);
	box-shadow: 6px 0 6px -6px var(--line-strong);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-title,
.lanes-ghost[b-u2824m3xvh]  .ghost-sub {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.25;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-title {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-title-icon {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 13px;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-title-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-sub {
	font-size: 11px;
	color: var(--ink-faint);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-track {
	position: relative;
	min-width: 0;
	background-image: linear-gradient(to right, var(--line) 0 1px, transparent 1px);
	background-size: calc(100% / var(--board-hours, 14)) 100%;
}

/* Pending (no answer yet) and the other undecided states: a dashed ink outline, the bar's own colours. */
.lanes-ghost[b-u2824m3xvh]  .ghost {
	position: absolute;
	top: 6px;
	height: 36px;
	min-width: 6px;
	z-index: 2;
	border-radius: var(--radius-sm);
	outline: 2px dashed var(--ink-soft);
	outline-offset: 2px;
	pointer-events: none;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-body {
	position: absolute;
	box-shadow: none;
}

/* A chip's ghost (issue 196 B3): the module builds a minimal bar (travel out, repair with the chip's status tone, glyph
   and label, travel back), because there is no bar to copy yet. It has no scope attribute, so it is drawn here with the
   same tokens as PlanningBar.razor.css. */
.lanes-ghost[b-u2824m3xvh]  .ghost-built {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border-radius: var(--radius-sm);
	color: var(--plan-tone-neutral-ink);
	font-size: 11px;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
	white-space: nowrap;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg-travel {
	background: var(--kind-travel-bg);
	border: 1px dashed var(--kind-travel-line);
	color: var(--kind-travel-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg-out {
	border-right: 0;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg-back {
	border-left: 0;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg-repair {
	flex-grow: 1;
	gap: 5px;
	padding: 0 6px 0 8px;
	background: var(--plan-tone-neutral-bg);
	border: 1px solid var(--plan-tone-neutral-border);
	border-left: 4px solid var(--plan-tone-neutral-stripe);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built.tone-new .seg-repair {
	background: var(--plan-tone-committed-bg);
	border-color: var(--plan-tone-committed-border);
	border-left-color: var(--plan-tone-committed-stripe);
	color: var(--plan-tone-committed-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built.tone-progress .seg-repair {
	background: var(--plan-tone-active-bg);
	border-color: var(--plan-tone-active-border);
	border-left-color: var(--plan-tone-active-stripe);
	color: var(--plan-tone-active-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built.tone-done .seg-repair {
	background: var(--plan-tone-completed-bg);
	border-color: var(--plan-tone-completed-border);
	border-left-color: var(--plan-tone-completed-stripe);
	color: var(--plan-tone-completed-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .ghost-built-glyph {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 11px;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-built .ghost-built-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
}

/* Valid (and saving, saved): a solid green outline with a soft halo and the check badge. */
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="valid"],
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="saving"],
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="saved"] {
	outline: 2px solid var(--success-ink);
	box-shadow: 0 0 0 5px var(--success-soft);
}

/* Invalid (or changed by someone else): a dashed red outline, the segments recoloured, the cross badge. Tokens and AA
   text instead of Figma's opacity. */
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="invalid"],
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="changedElsewhere"] {
	outline: 2px dashed var(--danger-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="invalid"] .seg,
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="changedElsewhere"] .seg {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="invalid"] .initials,
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="changedElsewhere"] .initials {
	border-color: var(--danger-ink);
	color: var(--danger-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="invalid"] .car,
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="changedElsewhere"] .car {
	color: var(--danger-ink);
}

/* Pending with a held answer (issue 196, responsive re-check D3-1): while the new slot is checked the ghost keeps the
   previous answer's colours, dotted, so it doesn't flash grey at every snap step; the slot's own answer replaces it.
   data-state stays "pending". The outlines use the ink tones, at least 3:1 on the board (D4 N5, fix round 3). Every held
   ghost is dotted (validator round 4 nit 3), as in forced colours: a held invalid one must not read as a checked "can't
   place here" (dashed) during a long hold, and a held valid one differs from a checked one (solid with a halo). A held
   unchanged ghost keeps the neutral pending colour: its place is not a "drop to save" one. */
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state="valid"] {
	outline: 2px dotted var(--success-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state="invalid"],
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state="changedElsewhere"] {
	outline: 2px dotted var(--danger-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state] {
	outline-style: dotted;
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state="invalid"] .seg,
.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state="changedElsewhere"] .seg {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

.lanes-ghost[b-u2824m3xvh]  .ghost[data-held-state] .ghost-badge {
	opacity: 0.8;
}

/* The badge's shape (check or cross) is the cue beyond colour; outside the body, which clips. */
.lanes-ghost[b-u2824m3xvh]  .ghost-badge {
	position: absolute;
	top: -8px;
	left: -8px;
	z-index: 1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: 12px;
}

.lanes-ghost[b-u2824m3xvh]  .ghost-badge[data-glyph="valid"] {
	display: inline-flex;
	color: var(--success-ink);
	border-color: var(--success-line);
}

.lanes-ghost[b-u2824m3xvh]  .ghost-badge[data-glyph="invalid"] {
	display: inline-flex;
	color: var(--danger-ink);
	border-color: var(--danger-line);
}

/* The band under the pointer: an inset bar on its sticky header (supplementary; the ghost and the card carry the cues). */
.day-band[data-drop-target] .day-head[b-u2824m3xvh] {
	box-shadow: inset 4px 0 0 var(--accent);
}

.day-band[data-drop-target="valid"] .day-head[b-u2824m3xvh] {
	box-shadow: inset 4px 0 0 var(--success-ink);
}

.day-band[data-drop-target="invalid"] .day-head[b-u2824m3xvh] {
	box-shadow: inset 4px 0 0 var(--danger-ink);
}

/* An absence or trip chip the slot collides with, and Show conflict's ring on it (static: the bars pulse, chips don't). */
.chip[data-drag-conflict][b-u2824m3xvh] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 1px;
}

/* Held from the previous slot while the new one is checked (issue 196 D3-1): dashed, in the ink tone (at least 3:1, D4 N5). */
.chip[data-drag-conflict="held"][b-u2824m3xvh] {
	outline-style: dashed;
}

.chip[data-conflict-highlight][b-u2824m3xvh] {
	outline: 2px solid var(--danger-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--danger-soft);
}

/* The free day's second line: "Drop a service here" where an editor can drag, else the default. The page module sets
   data-drag-input on the board page from the same media queries it gates a press on (a fine pointer and not the phone
   tier, CR-64), next to the page's data-drag="on"; until then the default line shows. */
.hint-drop[b-u2824m3xvh] {
	display: none;
}

[data-drag="on"][data-drag-input~="pointer"] .hint-default[b-u2824m3xvh] {
	display: none;
}

[data-drag="on"][data-drag-input~="pointer"] .hint-drop[b-u2824m3xvh] {
	display: inline;
}

@media (forced-colors: active) {
	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="valid"],
	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="saving"],
	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="saved"] {
		outline: 2px solid Highlight;
	}

	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="invalid"],
	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="changedElsewhere"] {
		outline: 3px dashed CanvasText;
	}

	.lanes-ghost[b-u2824m3xvh]  .ghost[data-state="pending"][data-held-state] {
		outline: 2px dotted CanvasText;
	}

	.lanes-ghost[b-u2824m3xvh]  .ghost-badge {
		color: CanvasText;
		border-color: CanvasText;
	}

	.lanes-ghost[b-u2824m3xvh]  .ghost-built .seg {
		border-color: CanvasText;
	}

	.chip[data-drag-conflict][b-u2824m3xvh] {
		outline-color: Mark;
	}

	.chip[data-drag-conflict="held"][b-u2824m3xvh] {
		outline-style: dotted;
	}

	.chip[data-conflict-highlight][b-u2824m3xvh] {
		outline: 3px solid Highlight;
	}

	/* The band under the pointer: its inset shadow is dropped in forced colours, so a 4 px Highlight bar takes its
	   place, drawn over the header's left edge so nothing in the header moves (issue 196). */
	.day-band[data-drop-target] .day-head[b-u2824m3xvh]::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1;
		width: 4px;
		forced-color-adjust: none;
		background: Highlight;
		pointer-events: none;
	}
}
/* /Components/Shared/Molecules/PlanningDayList.razor.rz.scp.css */
/* Planning board, phone day list (issue 197, epic 189; contract CR-66 to CR-75). One day at a time: a date navigation, the
   Monday-to-Sunday strip, the day's chips and a card per service. Colours only through app.css tokens; the card's tone
   hooks point at the same status tokens as the grid's bars, so a status looks the same in both layouts.
   The list shows in the list tier only (CR-66), the same media query as the page's stylesheet and PlanningBoard.razor.js
   (ListQuery); outside it the page hides the wrapper as well, so the grid and the list never show together. */
.day-list[b-9u81zgmi8i] {
	display: none;
}

@media (max-width: 767.98px), (max-height: 480px) and (pointer: coarse) {
	.day-list[b-9u81zgmi8i] {
		display: flex;
		flex-direction: column;
		gap: 12px;
		min-width: 0;
		max-width: 720px;
		margin-inline: auto;
		color: var(--ink);
	}

	/* The region is only a focus target (focusBoard, tabindex -1): no ring on it. */
	.day-list:focus[b-9u81zgmi8i] {
		outline: none;
	}
}

/* ---- Date navigation: previous, the date, next, Today ---- */
.date-nav[b-9u81zgmi8i] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.date-heading[b-9u81zgmi8i] {
	flex: 1 1 140px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
	text-align: center;
	justify-content: center;
}

.date-text[b-9u81zgmi8i] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.today-badge[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
}

.nav-btn[b-9u81zgmi8i],
.nav-today[b-9u81zgmi8i],
.week-day[b-9u81zgmi8i],
.card[b-9u81zgmi8i] {
	font: inherit;
	cursor: pointer;
}

.nav-btn[b-9u81zgmi8i],
.nav-today[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

.nav-btn[b-9u81zgmi8i] {
	width: 32px;
	padding: 0;
}

.nav-btn:focus-visible[b-9u81zgmi8i],
.nav-today:focus-visible[b-9u81zgmi8i],
.week-day:focus-visible[b-9u81zgmi8i],
.card:focus-visible[b-9u81zgmi8i] {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* ---- Week strip: seven equal buttons, so it never needs a horizontal scroll, down to a 280 px cover screen ---- */
.week-strip[b-9u81zgmi8i] {
	display: flex;
	gap: 4px;
	min-width: 0;
}

.week-day[b-9u81zgmi8i] {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 6px 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
}

.week-day.is-weekend[b-9u81zgmi8i] {
	background: var(--surface-muted);
}

/* Today, not selected: the accent ring and number; selected: filled. Never colour alone: the selected day also has
   aria-pressed and the today one aria-current. */
.week-day.is-today[b-9u81zgmi8i] {
	border-color: var(--accent);
	color: var(--accent-strong);
}

.week-day.is-selected[b-9u81zgmi8i] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-color);
}

/* Figma frame 32-1651 (issue 267): the day's name is the short word as written ("Mon", capitalised in every language), 10 px
   regular in the muted ink; on the selected day it is white like the rest of the tile. */
.week-day-name[b-9u81zgmi8i] {
	max-width: 100%;
	overflow: hidden;
	color: var(--ink-faint);
	font-size: 10px;
	font-weight: 400;
	line-height: 11px;
	text-overflow: clip;
	text-transform: capitalize;
	white-space: nowrap;
}

.week-day.is-selected .week-day-name[b-9u81zgmi8i] {
	color: inherit;
}

.week-day-num[b-9u81zgmi8i] {
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	font-variant-numeric: tabular-nums;
}

.week-day-dots[b-9u81zgmi8i] {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 5px;
}

.dot[b-9u81zgmi8i] {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.dot-more[b-9u81zgmi8i] {
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

/* The app's fixed menu button (NavMenu, up to 640 px at any height) covers the top right corner of the screen, 10 to 44 px down: a
   strip that scrolled up under it would hide Sunday. Below that corner the strip sticks instead, so every day stays reachable
   and the list can be switched without scrolling back up (issue 197 D fix P5). D fix 2 (N4): at every height, because the
   button is there on a short screen too (a 640 x 360 phone held sideways, a 320 x 480 cover screen); the strip is the page's
   surface colour (N5), not the canvas grey, so the pinned strip shows no band and no bleed into the gutters. */
@media (max-width: 640.98px) {
	.week-strip[b-9u81zgmi8i] {
		position: sticky;
		top: 46px;
		z-index: 2;
		background: var(--surface);
	}

	/* A card that keyboard focus (Shift+Tab) scrolls into view lands below the pinned strip, not under it (N2): the strip ends at
	   96 px (46 + its 50 px), plus 8 px of air. */
	.card[b-9u81zgmi8i] {
		scroll-margin-top: 104px;
	}

	/* The date row's buttons are above the pinned strip, so Shift+Tab can scroll them to the very top, under the menu button
	   (its right 44 px, 10 to 44 px down): they land 54 px down instead (issue 197 D fix 3, R3). */
	.nav-btn[b-9u81zgmi8i],
	.nav-today[b-9u81zgmi8i] {
		scroll-margin-top: 54px;
	}
}

/* ---- Chips: the same look as the grid's day header ---- */
.chips[b-9u81zgmi8i] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

/* 19 px high and 8 px of air either side of the words, as in the frame: the 1 px border (transparent, dashed on a pending
   absence) is inside that, so the padding is one pixel less. */
.chip[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
	padding: 2px 7px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 11px;
	line-height: 13px;
	white-space: nowrap;
}

.chip-capacity.is-full[b-9u81zgmi8i] {
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-weight: 700;
}

.chip-absence[b-9u81zgmi8i] {
	background: var(--warning-soft);
	color: var(--warning-ink);
	font-weight: 700;
}

.chip-absence.is-pending[b-9u81zgmi8i] {
	border-style: dashed;
	border-color: var(--warning-ink);
}

.chip-trip[b-9u81zgmi8i] {
	background: var(--info-soft);
	color: var(--info-ink);
}

.chip-icon[b-9u81zgmi8i] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 11px;
}

.chip-text[b-9u81zgmi8i] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Empty day ---- */
.empty[b-9u81zgmi8i] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 24px 16px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	text-align: center;
}

.empty-title[b-9u81zgmi8i] {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
}

.empty-hint[b-9u81zgmi8i] {
	font-size: 12.5px;
	color: var(--ink-faint);
}

/* ---- Cards (Figma frame 32-1651, issue 267): a white card with a 1 px line and 10 px corners, no stripe and no shadow; the status is the
   badge, the repair part of the strip and the workers' rings, all in the status tone. ---- */
.cards[b-9u81zgmi8i] {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.card-item[b-9u81zgmi8i] {
	min-width: 0;
}

.card[b-9u81zgmi8i] {
	/* Tone hooks, set per status below; they only point at app.css tokens. */
	--card-bg: var(--plan-tone-neutral-bg);
	--card-stripe: var(--plan-tone-neutral-stripe);
	--card-ink: var(--plan-tone-neutral-ink);
	/* D2: the red late-end corner is placed against the card. Here, not in the (pointer: coarse) block, which only sizes. */
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	text-align: left;
}

/* D2 ([Decision] 310, Figma 120-2): the card that holds the plan's last line, when that line ends after the whole plan. The
   rounded corner follows the card's inner corner, so the card needs no overflow:hidden. The sentence is in the card's name. */
.late-end[b-9u81zgmi8i] {
	position: absolute;
	top: 0;
	right: 0;
	width: 16px;
	height: 16px;
	border-top-right-radius: calc(var(--radius-lg) - 1px);
	background: var(--danger-ink);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	pointer-events: none;
}

.card.tone-new[b-9u81zgmi8i] {
	--card-bg: var(--plan-tone-committed-bg);
	--card-stripe: var(--plan-tone-committed-stripe);
	--card-ink: var(--plan-tone-committed-ink);
}

.card.tone-progress[b-9u81zgmi8i] {
	--card-bg: var(--plan-tone-active-bg);
	--card-stripe: var(--plan-tone-active-stripe);
	--card-ink: var(--plan-tone-active-ink);
}

.card.tone-done[b-9u81zgmi8i] {
	--card-bg: var(--plan-tone-completed-bg);
	--card-stripe: var(--plan-tone-completed-stripe);
	--card-ink: var(--plan-tone-completed-ink);
}

/* The Serviceman's own services (A0-16): an accent edge on the card's left side, as the grid's label cell has (the card has no status stripe any more, issue 267). */
.card.is-mine[b-9u81zgmi8i] {
	box-shadow: inset 3px 0 0 var(--accent);
}

/* The card the open sheet hangs from (CR-71): accent-strong, so the focus ring (ink) stays distinguishable. */
.card.is-selected[b-9u81zgmi8i] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--accent-ring);
}

/* ?focus=<planId>: the page's module adds this class for a moment after scrolling the card into view. */
.card.is-highlighted[b-9u81zgmi8i] {
	box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent);
	animation: card-highlight-b-9u81zgmi8i 0.8s ease-in-out 2;
}

@keyframes card-highlight-b-9u81zgmi8i {
	50% {
		box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 8px var(--accent-ring);
	}
}

.card-top[b-9u81zgmi8i] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
}

.card-time[b-9u81zgmi8i] {
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.card-dayof[b-9u81zgmi8i] {
	font-size: 11.5px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.card-flags[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	min-width: 0;
}

.card-lock[b-9u81zgmi8i] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

/* The worded status badge: glyph plus text, never colour alone. A filled pill in the tone, 19 px high; its border is transparent
   (the frame has none), so forced colours still get an outline. */
.status-badge[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	padding: 2px 7px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--card-bg);
	color: var(--card-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 13px;
	white-space: nowrap;
}

.status-glyph[b-9u81zgmi8i] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 11px;
}

.status-text[b-9u81zgmi8i] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The title and the town are one block, 1 px apart (the card's own gap is 8 px). */
.card-place[b-9u81zgmi8i] {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.card-title[b-9u81zgmi8i] {
	min-width: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.card-town[b-9u81zgmi8i] {
	min-width: 0;
	font-size: 12px;
	line-height: 14px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

/* ---- The proportional strip: travel out, repair, travel back (widths are percentages computed in the code-behind, invariant).
   10 px high; each part is a tinted bar with its own 1 px line: the repair part in the status tone, a travel part violet and dashed
   (the frame's mini strip, issue 267). ---- */
.strip[b-9u81zgmi8i] {
	display: flex;
	align-items: stretch;
	height: 10px;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--radius-pill);
}

/* CR-111: one part per segment of a split plan; a lone segment fills the strip as before. */
.strip-part[b-9u81zgmi8i] {
	display: flex;
	flex: 0 0 auto;
	min-width: 0;
}

.strip-part + .strip-part[b-9u81zgmi8i] {
	border-left: 2px solid var(--surface);
}

.strip-seg[b-9u81zgmi8i] {
	flex: 0 0 auto;
	min-width: 0;
	forced-color-adjust: none;
}

.strip-out[b-9u81zgmi8i],
.strip-back[b-9u81zgmi8i] {
	background: var(--kind-travel-bg);
	border: 1px dashed var(--kind-travel-line);
}

/* The repair part (the frame: the tone's fill with a border): the tone's stripe colour is the border, so it keeps the 3:1 against the
   fill that PlanningToneTokensContractTests guarantees for every tone (WCAG 1.4.11). */
.strip-repair[b-9u81zgmi8i] {
	background: var(--card-bg);
	border: 1px solid var(--card-stripe);
}

/* ---- Workers, car and the overnight moon ---- */
.card-meta[b-9u81zgmi8i] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.workers[b-9u81zgmi8i] {
	display: inline-flex;
	gap: 6px;
	flex-shrink: 0;
}

/* 22 px rings in the tone's ink (the frame's avatars), 9 px bold initials. */
.initials[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 3px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--card-ink);
	color: var(--card-ink);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

/* The car chip: a quiet grey tag, 17 px high, the name 10 px bold. */
.car[b-9u81zgmi8i] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
	padding: 2px 6px 2px 5px;
	border-radius: var(--radius-xs);
	background: var(--line-soft);
	color: var(--ink-soft);
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
}

.car.is-empty[b-9u81zgmi8i] {
	color: var(--ink-faint);
	font-weight: 400;
}

.car-icon[b-9u81zgmi8i] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 13px;
}

.car-name[b-9u81zgmi8i] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.overnight[b-9u81zgmi8i] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 13px;
	color: var(--ink-soft);
}

/* ---- Durations: one line of words beside the car, "travel 3.5 + repair 5.5 + 3.5 h" (the frame); on a narrow card it wraps under them ---- */
.durations[b-9u81zgmi8i] {
	min-width: 0;
	font-size: 11px;
	line-height: 13px;
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
}

/* ---- Targets and sizes (CR-74). Sizes only here: (pointer: coarse) also matches a wide touch laptop, so stacking and
   full-width rules stay in the width query below, never in this one. ---- */
@media (max-width: 767.98px), (pointer: coarse) {
	.nav-btn[b-9u81zgmi8i] {
		width: 44px;
		height: 44px;
	}

	.nav-today[b-9u81zgmi8i] {
		min-height: 44px;
		height: 44px;
	}

	.week-day[b-9u81zgmi8i] {
		min-height: 48px;
	}
}

/* ---- Narrow phones: a strip day stays at least 44 px wide from 320 px (issue 197 D fix L5). Seven days of 44 px plus six gaps
   do not fit the 328 px of a 360 px screen with the 4 px gap, so the gap shrinks first, ---- */
@media (max-width: 375px) {
	.week-strip[b-9u81zgmi8i] {
		gap: 2px;
	}
}

/* ...and below 360 px the strip also runs 8 px into each side gutter and its buttons share their borders (a segmented control:
   seven 44 px days are 302 px, the 304 px a 320 px screen leaves). Today and the selected day sit on top, so their accent
   border isn't covered by a neighbour's. At 280 px a day is about 38 px wide ([Decision] 269 Q7: no horizontal scroll). */
@media (max-width: 359.98px) {
	/* The heading's Today badge goes up to 359.98 px (issue 197 D fix 2, N7): at 350 to 357 px "Tuesday 3 November" plus the badge
	   needed three lines and the date row grew to 60 px; without it the row is 44 px from 280 px up. The Today button says the same. */
	.today-badge[b-9u81zgmi8i] {
		display: none;
	}

	.week-strip[b-9u81zgmi8i] {
		gap: 0;
		margin-inline: -8px;
	}

	.week-day + .week-day[b-9u81zgmi8i] {
		margin-left: -1px;
	}

	.week-day.is-today[b-9u81zgmi8i],
	.week-day.is-selected[b-9u81zgmi8i] {
		position: relative;
		z-index: 1;
	}
}

/* ---- Foldable cover screens (about 280 to 344 px): tighter, nothing wraps awkwardly or overflows ---- */
@media (max-width: 349.98px) {
	.date-nav[b-9u81zgmi8i] {
		gap: 4px;
	}

	/* One row at 280 px (issue 197 D fix L4): the heading takes what is left of the row and wraps inside its own box, Today
	   shrinks to its words (the heading's Today badge is hidden up to 359.98 px, above). */
	.date-heading[b-9u81zgmi8i] {
		flex: 1 1 0;
	}

	.nav-today[b-9u81zgmi8i] {
		min-width: 44px;
		padding: 0 6px;
	}

	.week-day-name[b-9u81zgmi8i] {
		font-size: 9px;
		letter-spacing: 0;
	}

	.week-day-num[b-9u81zgmi8i] {
		font-size: 13px;
	}

	.card[b-9u81zgmi8i] {
		padding: 8px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card.is-highlighted[b-9u81zgmi8i] {
		animation: none;
	}
}

@media (forced-colors: active) {
	/* The dots are only a background, which forced colours would turn into the canvas colour: white dots on a white day. They
	   keep the text colour instead, and the selected day (Highlight) keeps its own (issue 197 D fix L1). */
	.dot[b-9u81zgmi8i] {
		forced-color-adjust: none;
		background: CanvasText;
	}

	.week-day.is-selected .dot[b-9u81zgmi8i] {
		background: HighlightText;
	}

	/* D2: the late-end corner is a background too; it keeps the text colour. */
	.late-end[b-9u81zgmi8i] {
		forced-color-adjust: none;
		background: CanvasText;
	}

	/* Today's accent border and number colour are replaced by CanvasText here, so an unselected today looked like any other day
	   (only aria-current marked it). Its number is underlined, selected or not, which forced colours keep (issue 197 D fix 3, F3). */
	.week-day.is-today .week-day-num[b-9u81zgmi8i] {
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 1px;
	}

	.card[b-9u81zgmi8i],
	.week-day[b-9u81zgmi8i],
	.nav-btn[b-9u81zgmi8i],
	.nav-today[b-9u81zgmi8i],
	.chip[b-9u81zgmi8i],
	.status-badge[b-9u81zgmi8i] {
		border-color: CanvasText;
	}

	.week-day.is-selected[b-9u81zgmi8i] {
		forced-color-adjust: none;
		background: Highlight;
		border-color: Highlight;
		color: HighlightText;
	}

	.card:focus-visible[b-9u81zgmi8i],
	.card.is-selected[b-9u81zgmi8i] {
		outline-color: Highlight;
	}
}

/* A short screen of the list tier (a phone held sideways, a cover screen 480 px high): the first card's time row has to be on the
   first screen, so the air between the rows shrinks (issue 197 D fix 3, R1). The page's stylesheet does the same above the list.
   Last in the file, so it wins over the base rules it changes. */
@media (max-height: 480px) and (max-width: 767.98px), (max-height: 480px) and (pointer: coarse) {
	.day-list[b-9u81zgmi8i] {
		gap: 4px;
	}

	/* One row of chips that scrolls sideways instead of two or three rows (issue 197 D fix 4: the first card's time row at
	   568 x 320 in Czech was 20 px below the screen); the chips are text, not controls, so there is no focus to follow.
	   The right 24 px fade out, as on the Unscheduled track, so a cut chip reads as "more to the side" where the overlay
	   scrollbar is invisible (D fix 5, F3-2). The page's module sets is-scroll-end at the end and when nothing overflows,
	   and makes an overflowing row a named tab stop; a focused row drops the fade, so its ring isn't masked. */
	.chips[b-9u81zgmi8i] {
		flex-wrap: nowrap;
		gap: 4px 8px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		-webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, var(--ink) calc(100% - 24px), transparent);
	}

	.chips.is-scroll-end[b-9u81zgmi8i],
	.chips:focus-visible[b-9u81zgmi8i] {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.chips:focus-visible[b-9u81zgmi8i] {
		outline: 2px solid var(--ink);
		outline-offset: 2px;
	}

	.chip[b-9u81zgmi8i] {
		flex: none;
		padding-block: 2px;
	}

	/* A strip day is 44 px here (the minimum of a touch target; 48 px elsewhere); a card has 4 px less padding above and below. */
	.week-day[b-9u81zgmi8i] {
		height: 44px;
		min-height: 44px;
	}

	.card[b-9u81zgmi8i] {
		padding-block: 6px;
	}
}

/* CR-107: the date's non-working and working-override chips, as in the grid's day header. */
.chip-nonworking[b-9u81zgmi8i] {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink);
	font-weight: 700;
}

.chip-working-override[b-9u81zgmi8i] {
	background: var(--success-soft);
	color: var(--success-ink);
	font-weight: 700;
}
/* /Components/Shared/Molecules/PlanScheduleEditor.razor.rz.scp.css */
/* The planning board's quick-edit form (issue 195, epic 189; UI plan section 2). One molecule, two skins: a modal
   (Bootstrap's .modal shown without its JS, like ConfirmModal, so the backdrop is drawn here) and an inline panel
   without chrome (the detail page's schedule card, issue 198). The day rows adapt to the width of the BODY, not of the
   window (a container query), because the same form lives in a 820 px dialog, a narrow card and a full-screen sheet.
   Colours only through app.css tokens; a field in error is marked by border, glyph and words, never colour alone. */
.plan-editor-modal[b-xxd8gnfhm3] {
	background-color: var(--modal-backdrop);
}

/* Bootstrap's own max-width rule (576 px and up) reads this; below it the dialog is full screen (modal-fullscreen-sm-down). */
.plan-editor-modal .modal-dialog[b-xxd8gnfhm3] {
	--bs-modal-width: min(820px, calc(100vw - 32px));
}

.plan-editor-modal:focus[b-xxd8gnfhm3],
.plan-editor:focus[b-xxd8gnfhm3] {
	outline: none;
}

.editor-titles[b-xxd8gnfhm3] {
	flex: 1 1 auto;
	min-width: 0;
}

.editor-titles .modal-title[b-xxd8gnfhm3] {
	margin: 0;
	font-weight: 700;
}

.editor-sub[b-xxd8gnfhm3] {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

/* ---- Inline skin: the same form without the dialog's chrome ----
   Issue 284 (picture "Days & times" in edit mode): no box of its own inside the schedule card and no line above the buttons;
   the card around it is the box. */
.plan-editor.is-inline[b-xxd8gnfhm3] {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--ink);
}

.editor-content[b-xxd8gnfhm3] {
	display: flex;
	flex-direction: column;
}

.editor-scroll[b-xxd8gnfhm3] {
	padding: 0;
}

.editor-footer[b-xxd8gnfhm3] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 0 0;
}

/* ---- Body: sections stacked, the width of the body decides the layouts below ---- */
.editor-body[b-xxd8gnfhm3] {
	display: flex;
	flex-direction: column;
	gap: 18px;
	container-type: inline-size;
	container-name: plan-editor;
	font-size: 13px;
}

.editor-section[b-xxd8gnfhm3] {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* A legend is floated and full width by Bootstrap's reboot; put it back in the flow. */
.section-label[b-xxd8gnfhm3] {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 4px;
	padding: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* Inline skin (issue 284): "Whole plan" and "Lines" read as plain labels in the picture; the dialog keeps its small capitals next
   to Servicemen and Car. */
.is-inline .section-label[b-xxd8gnfhm3] {
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-soft);
}

.section-hint[b-xxd8gnfhm3] {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--ink-soft);
}

/* ---- Whole plan (issue 284): the start and the end of the whole plan, four fields. The labels are not .cell-label: that one is
   hidden in the wide layout, and these four always show theirs. ---- */
.editor-section.whole-edit[b-xxd8gnfhm3] {
	padding: 10px 12px;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

/* A fieldset's legend sits in the middle of its top border, so the box's line ran through "Whole plan". Floated and full width it
   is plain content inside the box, like the picture (fix round 1, P8); the rule below clears the float for what follows. */
.editor-section.whole-edit > legend[b-xxd8gnfhm3] {
	float: left;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
}

.editor-section.whole-edit > legend + *[b-xxd8gnfhm3] {
	clear: both;
}

.whole-fields[b-xxd8gnfhm3] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.whole-field[b-xxd8gnfhm3] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.field-label[b-xxd8gnfhm3] {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-soft);
}

.whole-edit-arrow[b-xxd8gnfhm3] {
	display: none;
}

/* The end is red because the lines end later: a warning (W5), so not .has-error and no aria-invalid. .has-error is declared
   after this rule and wins when a real error marks the same field. */
.is-late-field[b-xxd8gnfhm3] {
	background: var(--danger-soft);
	border-color: var(--danger-line);
	color: var(--danger-ink);
}

/* A live region that is always rendered, empty and so without height until the sentence appears; the margin is on the sentence. */
.whole-warning[b-xxd8gnfhm3] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--danger-ink);
}

.whole-warning .warn-glyph[b-xxd8gnfhm3] {
	color: var(--warning-ink);
}

.whole-error[b-xxd8gnfhm3] {
	margin-top: 8px;
}

.whole-hint[b-xxd8gnfhm3] {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--ink-soft);
}

.changed-elsewhere[b-xxd8gnfhm3] {
	/* Bootstrap's own info colours are cyan; the brand's notice colours are the accent pair. */
	--bs-alert-bg: var(--accent-soft);
	--bs-alert-border-color: var(--accent);
	--bs-alert-color: var(--accent-strong);
	--bs-alert-link-color: var(--accent-strong);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0;
	font-size: 12.5px;
}

.editor-link[b-xxd8gnfhm3] {
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
}

.editor-body .alert[b-xxd8gnfhm3] {
	margin-bottom: 0;
}

/* ---- Lines (issue 284): one box with a header row and one row per line; "Add line" stays outside it. The wide layout reads its
   columns from --line-cols, so the header and every row share one template. ---- */
.editor-days[b-xxd8gnfhm3] {
	--line-cols: minmax(118px, 1.3fr) 92px 92px minmax(64px, 1fr) minmax(64px, 1fr) 52px 88px;
}

.lines-box[b-xxd8gnfhm3] {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.day-head[b-xxd8gnfhm3] {
	display: none;
}

.day-row[b-xxd8gnfhm3] {
	--remove-size: 32px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) var(--remove-size);
	grid-template-areas:
		"date start end remove"
		"out back repair repair";
	gap: 8px;
	align-items: end;
	padding: 10px;
	border-top: 1px solid var(--line-soft);
}

.day-head + .day-row[b-xxd8gnfhm3] {
	border-top: 0;
}

.day-row.has-conflict[b-xxd8gnfhm3] {
	background: var(--danger-soft);
	border-top-color: transparent;
	box-shadow: inset 3px 0 0 var(--danger-ink);
}

.cell[b-xxd8gnfhm3] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cell-date[b-xxd8gnfhm3] {
	grid-area: date;
}

.cell-start[b-xxd8gnfhm3] {
	grid-area: start;
}

.cell-end[b-xxd8gnfhm3] {
	grid-area: end;
}

.cell-out[b-xxd8gnfhm3] {
	grid-area: out;
}

.cell-back[b-xxd8gnfhm3] {
	grid-area: back;
}

.cell-repair[b-xxd8gnfhm3] {
	grid-area: repair;
}

.remove-day[b-xxd8gnfhm3] {
	grid-area: remove;
}

/* Inline skin (issue 198 fix round 2, D2 P-a): the field opens focused, and the 4 px focus ring (app.css) would cover the
   bottom of its label with the 2 px gap; 6 px keeps the ring clear of it. The popup and the sheet keep 2 px. */
.is-inline .cell[b-xxd8gnfhm3] {
	gap: 6px;
}

.cell-label[b-xxd8gnfhm3] {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-soft);
}

.day-row .form-control[b-xxd8gnfhm3],
.whole-edit .form-control[b-xxd8gnfhm3] {
	min-height: 32px;
}

.travel-input[b-xxd8gnfhm3] {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* W3: "Travel back" got the value of "Travel out". Blue, with the sentence under the line (colour is not the only sign). */
.is-copied[b-xxd8gnfhm3] {
	background: var(--accent-soft);
	border-color: var(--accent);
}

/* ---- Note and tools of a line (issue 284): one box under the fields, two columns, the blue sentence under both. They don't
   follow the field columns above, so this is a grid of its own. ---- */
.line-text[b-xxd8gnfhm3] {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 8px;
}

.line-field[b-xxd8gnfhm3] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

/* An always-rendered live region: empty it takes no height (the line-text grid has no row gap here); the margin is on the sentence. */
.copied-hint[b-xxd8gnfhm3] {
	grid-column: 1 / -1;
}

.copied-hint p[b-xxd8gnfhm3] {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--accent);
}

.repair-value[b-xxd8gnfhm3] {
	display: flex;
	align-items: center;
	min-height: 32px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ink-soft);
}

/* The calendar glyph is ours; the browser's own indicator stays on top, invisible, so the click still opens the picker. */
.date-field[b-xxd8gnfhm3] {
	position: relative;
	display: block;
}

.date-field .form-control[b-xxd8gnfhm3] {
	padding-right: 30px;
}

.cal-icon[b-xxd8gnfhm3] {
	position: absolute;
	top: 50%;
	right: 9px;
	display: inline-flex;
	font-size: 13px;
	color: var(--ink-soft);
	transform: translateY(-50%);
	pointer-events: none;
}

.date-field input[b-xxd8gnfhm3]::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.has-error[b-xxd8gnfhm3] {
	border-color: var(--danger-ink);
	box-shadow: 0 0 0 1px var(--danger-ink);
}

/* Issue 284: the picture's Remove button is red, with the word next to the icon. Below the wide layout it stays an icon-only
   square (its aria-label names it at every width). */
.remove-day[b-xxd8gnfhm3] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	width: var(--remove-size);
	height: var(--remove-size);
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--danger-line);
	border-radius: var(--radius-md);
	color: var(--danger-ink);
	font-size: 14px;
	cursor: pointer;
}

.remove-day:hover:not(:disabled)[b-xxd8gnfhm3] {
	background: var(--danger-soft);
	border-color: var(--danger-ink);
}

.remove-label[b-xxd8gnfhm3] {
	display: none;
	font-size: 12.5px;
	font-weight: 600;
}

.remove-day:disabled[b-xxd8gnfhm3] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Keyboard focus: the accent ring instead of the browser's 1 px outline (issue 195 E P-3); an outline, so forced colours
   keep it. */
.remove-day:focus-visible[b-xxd8gnfhm3] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
}

/* CR-103/CR-113: the tick for a date that is not a working day, a line of its own under the fields. */
.work-day[b-xxd8gnfhm3] {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
}

.work-day-check[b-xxd8gnfhm3] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.work-day-check:disabled[b-xxd8gnfhm3] {
	cursor: not-allowed;
}

.work-day-check:focus-visible[b-xxd8gnfhm3] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
}

.day-error[b-xxd8gnfhm3] {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--danger-ink);
}

.error-glyph[b-xxd8gnfhm3] {
	display: inline-flex;
	flex: none;
	padding-top: 1px;
	font-size: 12px;
}

.form-error[b-xxd8gnfhm3] {
	margin-top: 8px;
}

.no-days[b-xxd8gnfhm3] {
	margin: 0 0 8px;
	padding: 10px 12px;
	background: var(--surface-muted);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	color: var(--ink-soft);
}

.days-actions[b-xxd8gnfhm3] {
	display: flex;
	margin-top: 8px;
}

.add-day[b-xxd8gnfhm3] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
}

.add-day[aria-disabled="true"][b-xxd8gnfhm3] {
	opacity: 0.6;
	cursor: not-allowed;
}

.add-glyph[b-xxd8gnfhm3] {
	display: inline-flex;
	font-size: 12px;
}

/* ---- Servicemen, car, status ---- */
.editor-grid[b-xxd8gnfhm3] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px 20px;
	align-items: start;
}

.person-list[b-xxd8gnfhm3] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.person-toggle[b-xxd8gnfhm3] {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	max-width: 100%;
	padding: 3px 10px 3px 4px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	color: var(--ink);
	font-size: 12.5px;
	line-height: 1.2;
	cursor: pointer;
}

.person-toggle:hover[b-xxd8gnfhm3] {
	border-color: var(--accent);
}

/* The accent ring of the other controls (issue 195 E P-3): the strong accent with a 2 px gap. An outline, so forced colours
   keep it. Keyboard focus only (CR-50(10)): clicking the label also focuses the hidden checkbox, and :focus-within would ring
   every mouse toggle (issue 195 F N1). */
.person-toggle:has(.person-check:focus-visible)[b-xxd8gnfhm3] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
}

.person-check[b-xxd8gnfhm3] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.person-toggle.is-checked[b-xxd8gnfhm3] {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-strong);
	font-weight: 600;
}

.person-toggle.has-conflict[b-xxd8gnfhm3] {
	background: var(--danger-soft);
	border-color: var(--danger-ink);
	color: var(--danger-ink);
}

/* CR-113: a person who can't be added to the crew as it stands. Dashed and muted, with the word and the reasons: never colour alone. */
.person-toggle.is-unavailable[b-xxd8gnfhm3] {
	background: var(--surface-muted);
	border-style: dashed;
	color: var(--ink-soft);
	cursor: not-allowed;
}

.person-toggle.is-unavailable:hover[b-xxd8gnfhm3] {
	border-color: var(--line-strong);
}

/* CR-113: why a serviceman or a car can't be added, as visible lines (a disabled box can't be focused and a title isn't shown on
   touch); the checkbox and the car select point at them with aria-describedby. */
.why-list[b-xxd8gnfhm3] {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ink-soft);
}

.why-list li + li[b-xxd8gnfhm3] {
	margin-top: 6px;
}

/* Fix round 2 (D2): one line per reason (the sentence names the person or the car, so no label in front of it). */
.why-reason[b-xxd8gnfhm3] {
	display: block;
}

.person-booked[b-xxd8gnfhm3] {
	flex: none;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.initials[b-xxd8gnfhm3] {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 3px;
	background: var(--surface);
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

.person-name[b-xxd8gnfhm3] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.person-check-glyph[b-xxd8gnfhm3] {
	display: inline-flex;
	flex: none;
	font-size: 12px;
}

.editor-pick[b-xxd8gnfhm3] {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.pick-field[b-xxd8gnfhm3] {
	min-width: 0;
}

.pick-field .form-select[b-xxd8gnfhm3] {
	min-height: 32px;
}

/* CR-113: the warning that the crew is left without a vehicle. The box is a live region that is always rendered, empty and
   so without height until the warning appears (it must not be display: none, or the warning would not be announced); the
   margin is on the warning itself. */
.no-car-warning[b-xxd8gnfhm3] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	padding: 6px 8px;
	background: var(--warning-soft);
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-sm);
	font-size: 12px;
	line-height: 1.35;
	color: var(--warning-ink);
}

.warn-glyph[b-xxd8gnfhm3] {
	display: inline-flex;
	flex: none;
	padding-top: 1px;
	font-size: 12px;
}

/* ---- Collisions ---- */
.editor-check:focus[b-xxd8gnfhm3] {
	outline: none;
}

.editor-check:focus-visible[b-xxd8gnfhm3] {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}

.check-note[b-xxd8gnfhm3] {
	margin: 0;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* ---- Footer ---- */
.footer-status[b-xxd8gnfhm3] {
	margin-right: auto;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--danger-ink);
}

.footer-buttons[b-xxd8gnfhm3] {
	display: flex;
	gap: 8px;
}

/* Issue 195: Save is off with aria-disabled, not disabled (the browser drops a click on a disabled button, and a click taken while a
   check runs waits for its answer). It looks exactly like Bootstrap's disabled button, without pointer-events: none and without the
   hover and press colours, so nothing about it says "on". */
.save-button[aria-disabled="true"][b-xxd8gnfhm3],
.save-button[aria-disabled="true"]:hover[b-xxd8gnfhm3],
.save-button[aria-disabled="true"]:active[b-xxd8gnfhm3] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	/* Bootstrap's --bs-btn-disabled-opacity, written out: Bootstrap declares it, app.css does not (PlanningBoardSourceContractTests). */
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one was skipped), so the keyboard needs the app's focus ring on it (app.css). */
.save-button[aria-disabled="true"]:focus-visible[b-xxd8gnfhm3] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

/* Forced colours give a disabled button GrayText but not an aria-disabled one: say "off" the same way. */
@media (forced-colors: active) {
	.save-button[aria-disabled="true"][b-xxd8gnfhm3] {
		color: GrayText;
		border-color: GrayText;
	}
}

.modal-footer .btn[b-xxd8gnfhm3],
.editor-footer .btn[b-xxd8gnfhm3] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 14px;
	font-size: 13px;
}

/* ---- Wide body: one line per line of the table with a header row ----
   Issue 284 (lowered from 740 px: the picture's row has to fit the schedule card of a 1401 px window, whose editor body is 637 px
   wide; fix round 1, P2: 624, because the row needs a lines box of 616 px, so 624 leaves a little air). The board's modal (a body
   of 702 px and more) and the phone sheet (under 624 px) are unchanged. The header and every row use --line-cols, so the columns
   line up. The time fields lose the browser's clock icon here, because the narrow columns (92 px) would cut a 12-hour
   "07:00 AM" otherwise; typing and the phone's own picker still work. */
@container plan-editor (min-width: 624px) {
	.day-head[b-xxd8gnfhm3] {
		display: grid;
		grid-template-columns: var(--line-cols);
		gap: 6px;
		align-items: end;
		padding: 6px 10px;
		background: var(--surface-muted);
		border-bottom: 1px solid var(--line);
		font-size: 11px;
		font-weight: 600;
		color: var(--ink-soft);
	}

	.head-out[b-xxd8gnfhm3],
	.head-back[b-xxd8gnfhm3],
	.head-repair[b-xxd8gnfhm3] {
		text-align: right;
	}

	.day-row[b-xxd8gnfhm3] {
		grid-template-columns: var(--line-cols);
		grid-template-areas: "date start end out back repair remove";
		column-gap: 6px;
	}

	.cell-start input[b-xxd8gnfhm3]::-webkit-calendar-picker-indicator,
	.cell-end input[b-xxd8gnfhm3]::-webkit-calendar-picker-indicator,
	.whole-time input[b-xxd8gnfhm3]::-webkit-calendar-picker-indicator {
		display: none;
	}

	.repair-value[b-xxd8gnfhm3] {
		justify-content: flex-end;
		white-space: nowrap;
		color: var(--ink);
	}

	.remove-label[b-xxd8gnfhm3] {
		display: inline;
	}

	.remove-day[b-xxd8gnfhm3] {
		width: 88px;
		padding: 0 8px;
	}

	/* The whole plan on one line: start date and time, an arrow, end date and time. */
	.whole-fields[b-xxd8gnfhm3] {
		grid-template-columns: 124px 92px 20px 124px 92px;
		justify-content: start;
		align-items: end;
	}

	.whole-edit-arrow[b-xxd8gnfhm3] {
		display: inline-flex;
		justify-content: center;
		padding-bottom: 6px;
		font-size: 16px;
		color: var(--ink-faint);
	}

	/* The header row names the columns; each input keeps its full label for assistive technology. */
	.cell-label[b-xxd8gnfhm3] {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ---- Narrow body (a phone): date, start and end, the two travels and the repair time, one under the other ---- */
@container plan-editor (max-width: 479px) {
	.day-row[b-xxd8gnfhm3] {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"top top"
			"start end"
			"out back"
			"repair repair";
	}

	/* The remove button sits at the right end of the date's line. */
	.cell-date[b-xxd8gnfhm3] {
		grid-area: 1 / 1 / 2 / 3;
		padding-right: calc(var(--remove-size) + 8px);
	}

	.remove-day[b-xxd8gnfhm3] {
		grid-area: 1 / 2 / 2 / 3;
		justify-self: end;
	}
}

@container plan-editor (max-width: 559px) {
	.editor-grid[b-xxd8gnfhm3] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Note and tools one under the other on a phone. The gap is the tools field's own margin, not a row gap, so the empty live region
   under them adds no height. */
@container plan-editor (max-width: 479px) {
	.line-text[b-xxd8gnfhm3] {
		grid-template-columns: minmax(0, 1fr);
	}

	.line-tools[b-xxd8gnfhm3] {
		margin-top: 6px;
	}
}

/* Bootstrap's close button rings with a pale blue halo (1.3:1 on white); the accent pair the other buttons use. */
.btn-close:focus-visible[b-xxd8gnfhm3] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

/* Touch and phones: 44 px targets. */
@media (pointer: coarse), (max-width: 575.98px) {
	.day-row[b-xxd8gnfhm3] {
		--remove-size: 44px;
	}

	/* Bootstrap's close button is 32 px; it keeps its glyph centred in the larger box (as in the Move to... dialog). */
	.modal-header .btn-close[b-xxd8gnfhm3] {
		box-sizing: border-box;
		flex: none;
		width: 44px;
		height: 44px;
	}

	.day-row .form-control[b-xxd8gnfhm3],
	.whole-edit .form-control[b-xxd8gnfhm3],
	.pick-field .form-select[b-xxd8gnfhm3],
	.repair-value[b-xxd8gnfhm3] {
		min-height: 44px;
	}

	.person-toggle[b-xxd8gnfhm3] {
		min-height: 44px;
		padding-right: 14px;
	}

	.work-day[b-xxd8gnfhm3] {
		min-height: 44px;
	}

	.work-day-check[b-xxd8gnfhm3] {
		width: 20px;
		height: 20px;
	}

	.add-day[b-xxd8gnfhm3],
	.modal-footer .btn[b-xxd8gnfhm3],
	.editor-footer .btn[b-xxd8gnfhm3] {
		min-height: 44px;
	}
}

@media (max-width: 575.98px) {
	.footer-buttons[b-xxd8gnfhm3] {
		flex: 1 1 100%;
	}

	.footer-buttons .btn[b-xxd8gnfhm3] {
		flex: 1 1 0;
	}

	.footer-status[b-xxd8gnfhm3] {
		flex: 1 1 100%;
	}
}

/* Inline skin on the narrowest phones (issue 198 fix round 1, D-L1): at 320 and 280 px the card's own padding plus the
   lines box and the rows' padding left the start and end fields 98 / 78 px wide, so the time was cut. Below 344 px the lines
   drop their own box (the card around it is the box; since issue 284 the editor has no box of its own at any width) and the
   rows their side padding; 344 px and up keep the box (their fields are 118 px and show the whole time). The modal and the
   sheet keep their chrome. */
@media (max-width: 343.98px) {
	.is-inline .lines-box[b-xxd8gnfhm3] {
		border: 0;
		border-radius: 0;
	}

	.is-inline .day-row[b-xxd8gnfhm3] {
		padding-right: 0;
		padding-left: 0;
	}

	/* The conflict bar is an inset shadow on the left edge: keep it off the fields. */
	.is-inline .day-row.has-conflict[b-xxd8gnfhm3] {
		padding-right: 4px;
		padding-left: 9px;
	}
}

/* Still too narrow for two time fields side by side (a 280 px phone: the body is 214 px, each field 103 px and "07:00 AM"
   is cut): start and end get a row each, the travels stay paired. Inline only; the modal's sheet is wider there. */
@container plan-editor (max-width: 239px) {
	.whole-fields[b-xxd8gnfhm3] {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-inline .day-row[b-xxd8gnfhm3] {
		grid-template-areas:
			"top top"
			"start start"
			"end end"
			"out back"
			"repair repair";
	}
}

@media (forced-colors: active) {
	.person-toggle[b-xxd8gnfhm3],
	.remove-day[b-xxd8gnfhm3],
	.has-error[b-xxd8gnfhm3],
	.is-late-field[b-xxd8gnfhm3] {
		border-color: CanvasText;
	}

	.person-toggle.is-checked[b-xxd8gnfhm3] {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}

	.day-row.has-conflict[b-xxd8gnfhm3] {
		outline: 2px solid CanvasText;
	}

	/* The late end loses its red: a dashed border still marks it (the sentence under the fields says why), fix round 1, P15. */
	.is-late-field[b-xxd8gnfhm3] {
		border-style: dashed;
	}
}
/* /Components/Shared/Molecules/PlanSchedulePopup.razor.rz.scp.css */
/* The planning board's event popup (issue 195, epic 189; UI plan section 1). A fixed popover that
   PlanSchedulePopup.razor.js hangs on its bar or chip (top/left/max-height inline, data-placement and data-anchored set
   there); above the shell (1000) and the nav (250), below Bootstrap's modals (1050/1055) so the editor, the Move to...
   dialog and the confirm dialogs stack over it. On phones it is a card pinned to the bottom with a dimmed backdrop and
   the script leaves it alone. Phones are narrow screens and short touch screens (a phone held sideways): the one media query
   below, which PlanSchedulePopup.razor.js and Toast.razor.css repeat word for word. Colours only through app.css tokens. */
.plan-popup[b-n42v35wqkx] {
	/* Tone hooks for the status badge and the repair chip, set per status below. */
	--tone-bg: var(--plan-tone-neutral-bg);
	--tone-ink: var(--plan-tone-neutral-ink);
	--tone-line: var(--plan-tone-neutral-stripe);
	position: fixed;
	top: 72px;
	left: max(16px, calc(50vw - 200px));
	z-index: 1045;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: calc(100vw - 32px);
	max-height: min(600px, calc(100dvh - 16px));
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.4;
}

/* The root takes focus when the popup opens (no field to focus); a ring on the whole card adds nothing. */
.plan-popup:focus[b-n42v35wqkx] {
	outline: none;
}

/* Until the script has placed the popover it stays invisible, so it never flashes at the fallback position; if the
   script never runs, it appears there after a short delay. */
.plan-popup[data-presentation="popover"]:not([data-anchored])[b-n42v35wqkx] {
	visibility: hidden;
	animation: popup-reveal-b-n42v35wqkx 0s linear 0.4s forwards;
}

/* The script is waiting for the anchor to scroll into view (issue 286, Enter during the board's smooth scroll): no fallback
   reveal meanwhile, the popup appears once it is placed. The script ends the wait (and so this rule) after the scrolling stops. */
.plan-popup[data-presentation="popover"][data-anchor-pending]:not([data-anchored])[b-n42v35wqkx] {
	animation: none;
}

@keyframes popup-reveal-b-n42v35wqkx {
	to {
		visibility: visible;
	}
}

.plan-popup .tone-new[b-n42v35wqkx] {
	--tone-bg: var(--plan-tone-committed-bg);
	--tone-ink: var(--plan-tone-committed-ink);
	--tone-line: var(--plan-tone-committed-stripe);
}

.plan-popup .tone-progress[b-n42v35wqkx] {
	--tone-bg: var(--plan-tone-active-bg);
	--tone-ink: var(--plan-tone-active-ink);
	--tone-line: var(--plan-tone-active-stripe);
}

.plan-popup .tone-done[b-n42v35wqkx] {
	--tone-bg: var(--plan-tone-completed-bg);
	--tone-ink: var(--plan-tone-completed-ink);
	--tone-line: var(--plan-tone-completed-stripe);
}

/* Only phones show it (below), and a bottom sheet always does (.is-sheet, further down); on a wide screen the board stays
   clickable so another bar switches the popup. */
.popup-backdrop[b-n42v35wqkx] {
	display: none;
}

/* ---- Head ---- */
.popup-head[b-n42v35wqkx] {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 12px;
	background: var(--surface-muted);
	border-bottom: 1px solid var(--line);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.head-row[b-n42v35wqkx] {
	display: flex;
	align-items: center;
	gap: 8px;
}

.popup-title[b-n42v35wqkx] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
}

.popup-status[b-n42v35wqkx] {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	background: var(--tone-bg);
	border: 1px solid var(--tone-line);
	border-radius: var(--radius-pill);
	color: var(--tone-ink);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.status-glyph[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 11px;
}

.popup-close[b-n42v35wqkx] {
	flex: none;
	margin: 0;
}

.popup-sub[b-n42v35wqkx] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

/* ---- Body ---- */
.popup-body[b-n42v35wqkx] {
	flex: 1 1 auto;
	min-height: 0;
	padding: 12px 16px 14px;
	overflow: auto;
	overscroll-behavior: contain;
}

/* A fade at the bottom edge while the body can scroll further (the script sets data-scroll-more). Sticky at the end of the
   content, with a negative margin so it takes no room of its own. */
.popup-body[data-scroll-more][b-n42v35wqkx]::after {
	content: "";
	position: sticky;
	bottom: 0;
	display: block;
	height: 28px;
	margin-top: -28px;
	background: linear-gradient(to bottom, transparent, var(--surface));
	pointer-events: none;
}

.popup-lock[b-n42v35wqkx] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--ink-soft);
}

.lock-glyph[b-n42v35wqkx] {
	display: inline-flex;
	flex: none;
	padding-top: 1px;
	font-size: 11px;
}

.popup-load-error[b-n42v35wqkx] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0;
	font-size: 12.5px;
}

.popup-retry[b-n42v35wqkx] {
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
}

.popup-rows[b-n42v35wqkx] {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 10px 12px;
	margin: 0;
}

.popup-rows dt[b-n42v35wqkx] {
	margin: 0;
	padding-top: 2px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.popup-rows dd[b-n42v35wqkx] {
	min-width: 0;
	margin: 0;
	font-size: 13px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.is-empty[b-n42v35wqkx] {
	color: var(--ink-faint);
}

/* ---- Whole plan (issue 286): the look of the service plan's card. A date and its time stay whole, and the arrow goes with the end. ---- */
.whole-value[b-n42v35wqkx] {
	display: flex;
	flex-wrap: wrap;
	/* The end's unit starts with the 18 px arrow: on baselines it sat about 5 px higher than the start. */
	align-items: center;
	gap: 2px 8px;
	min-width: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.whole-start[b-n42v35wqkx],
.whole-end[b-n42v35wqkx] {
	white-space: nowrap;
}

.whole-until[b-n42v35wqkx] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.whole-end.is-late[b-n42v35wqkx] {
	color: var(--danger-ink);
}

/* The arrow stays grey when the end is red. */
.whole-arrow[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 18px;
	font-weight: 400;
	color: var(--ink-faint);
}

.whole-warning[b-n42v35wqkx] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--danger-ink);
}

.whole-warning-glyph[b-n42v35wqkx] {
	display: inline-flex;
	flex: none;
	padding-top: 1px;
	font-size: 12px;
	color: var(--warning-ink);
}

/* ---- When ---- */
.when-none[b-n42v35wqkx] {
	color: var(--ink-soft);
}

.when-no-schedule[b-n42v35wqkx] {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--ink-soft);
}

.when-list[b-n42v35wqkx] {
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: tabular-nums;
}

.when-day.is-anchor[b-n42v35wqkx] {
	font-weight: 700;
}

/* The same gap after a day with texts as after a bare day. */
.when-day + .when-day[b-n42v35wqkx] {
	margin-top: 6px;
}

.this-day[b-n42v35wqkx] {
	font-weight: 400;
	color: var(--ink-faint);
}

/* The note and tools of a line: one button, so click, Enter and tap all reach the whole text. Normal weight, because the anchor line is bold. */
.line-texts[b-n42v35wqkx] {
	display: block;
	width: 100%;
	margin: 2px 0 0;
	padding: 2px 4px;
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 400;
	font-variant-numeric: normal;
	line-height: 1.4;
	text-align: start;
	overflow-wrap: anywhere;
}

@media (hover: hover) {
	.line-texts:hover[b-n42v35wqkx] {
		background: var(--surface-hover);
	}
}

/* An outline, not a shadow: it takes the place of the browser's own ring on this plain button, and forced colours keep it. */
.line-texts:focus-visible[b-n42v35wqkx] {
	outline: 2px solid var(--accent-strong);
	outline-offset: 2px;
}

/* Each text is cut after three lines; "title" holds the whole of it, and so does the DOM for a screen reader. */
.line-text[b-n42v35wqkx] {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	white-space: pre-line;
}

.line-label[b-n42v35wqkx] {
	font-weight: 600;
}

.popup-link[b-n42v35wqkx] {
	margin-top: 6px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
}

/* ---- Plan: travel, repair, travel ---- */
.split-chips[b-n42v35wqkx] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

/* An arrow stays with the chip it points to, so a wrapped row never ends on an arrow. */
.split-step[b-n42v35wqkx] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.split-day[b-n42v35wqkx] {
	margin-right: 2px;
	font-size: 11px;
	color: var(--ink-faint);
}

.split-chip[b-n42v35wqkx] {
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.chip-travel[b-n42v35wqkx] {
	background: var(--kind-travel-bg);
	border: 1px dashed var(--kind-travel-line);
	color: var(--kind-travel-ink);
}

.chip-repair[b-n42v35wqkx] {
	background: var(--tone-bg);
	border: 1px solid var(--tone-line);
	color: var(--tone-ink);
}

.split-arrow[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 11px;
	color: var(--ink-faint);
}

/* ---- Servicemen ---- */
.worker-list[b-n42v35wqkx] {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.worker[b-n42v35wqkx] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	min-width: 0;
}

.initials[b-n42v35wqkx] {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 3px;
	background: var(--surface);
	border: 1px solid var(--accent-strong);
	border-radius: var(--radius-pill);
	color: var(--accent-strong);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

.worker-name[b-n42v35wqkx] {
	/* A basis wide enough that the hours wrap onto their own line (the row wraps) before the name is cut. */
	flex: 1 1 150px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.worker-load[b-n42v35wqkx] {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--ink-faint);
	white-space: nowrap;
}

.worker[data-over-limit="true"] .worker-load[b-n42v35wqkx] {
	font-weight: 700;
	color: var(--danger-ink);
}

/* Over the limit but allowed by the rule (up to 2 h more of this plan's own work, D1 fix round 1): the warning colour, as the
   check's own "Saving is allowed" warning, not the danger of a refusal. */
.worker[data-over-limit="true"][data-over-limit-tolerated="true"] .worker-load[b-n42v35wqkx] {
	color: var(--warning-ink);
}

.load-glyph[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 11px;
}

/* ---- Car, tools, overnight ---- */
.car-line[b-n42v35wqkx] {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

.car-glyph[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 12px;
}

.car-name[b-n42v35wqkx] {
	font-weight: 600;
}

.car-seats[b-n42v35wqkx],
.car-pallet[b-n42v35wqkx] {
	font-size: 11.5px;
	color: var(--ink-faint);
}

.car-seats[b-n42v35wqkx] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.car-seats.is-over[b-n42v35wqkx] {
	font-weight: 700;
	color: var(--danger-ink);
}

.tools-text[b-n42v35wqkx],
.overnight-notes[b-n42v35wqkx] {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: pre-line;
}

.tools-text[b-n42v35wqkx] {
	-webkit-line-clamp: 4;
}

.overnight-notes[b-n42v35wqkx] {
	margin-top: 2px;
	-webkit-line-clamp: 2;
	color: var(--ink-soft);
}

.overnight-line[b-n42v35wqkx] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.moon-glyph[b-n42v35wqkx] {
	display: inline-flex;
	font-size: 11px;
}

.popup-check[b-n42v35wqkx] {
	margin-top: 12px;
}

/* Bootstrap's close button rings with a pale blue halo (1.3:1 on white); the accent pair the other buttons use. */
.btn-close:focus-visible[b-n42v35wqkx] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

/* ---- Actions ---- */
.popup-actions[b-n42v35wqkx] {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--line-soft);
}

.popup-action[b-n42v35wqkx] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 14px;
	font-size: 13px;
}

@media (max-width: 640.98px), (pointer: coarse) {
	.popup-action[b-n42v35wqkx] {
		min-height: 44px;
	}

	.popup-close[b-n42v35wqkx] {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		padding: 0;
		background-position: center;
	}

	.line-texts[b-n42v35wqkx],
	.popup-link[b-n42v35wqkx] {
		min-height: 44px;
	}
}

/* ---- Phones and the bottom sheet: a card pinned to the bottom edge. The script doesn't position it there; Edit is
   not offered (phones are read-only plus Move to..., [Decision] issue 256). A phone is a narrow screen or a short touch
   screen: held sideways it is wider than 640 px but 430 px high at most, and a popover there leaves a 26 px body. ---- */
@media (max-width: 640.98px), (max-height: 480px) and (pointer: coarse) {
	.popup-backdrop[b-n42v35wqkx] {
		position: fixed;
		inset: 0;
		z-index: 1044;
		display: block;
		background: var(--modal-backdrop);
	}

	.plan-popup[b-n42v35wqkx] {
		inset: auto 8px 8px;
		width: auto;
		max-width: none;
		max-height: calc(100dvh - 16px);
	}

	.plan-popup[data-presentation="popover"]:not([data-anchored])[b-n42v35wqkx] {
		visibility: visible;
		animation: none;
	}

	.popup-actions .popup-action[b-n42v35wqkx] {
		flex: 1 1 0;
	}

	.action-edit[b-n42v35wqkx] {
		display: none;
	}
}

.plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx],
.plan-popup[data-card][b-n42v35wqkx] {
	inset: auto 8px 8px;
	width: auto;
	max-width: none;
	max-height: calc(100dvh - 16px);
}

/* While a toast is shown it sits at the top of the screen (Toast.razor.css), over the head of a full-height card: the card
   stops below it, still pinned to the bottom, so a toast of up to three lines never covers its Close or actions (issue 195
   D2 P-A). 144 px: the toast's 54 px top plus three lines of toast (cs at 280 px ends at 135 px) plus air. A longer toast
   (a blocked Undo's conflict sentence at 320 px or less) can overlap the card's head for its 6 s; accepted (F3 Nit 1). Only
   the Undo-style toast counts: the board's changes toast (.is-changes) hangs under the header's bell and covers no card. */
@media (max-width: 640.98px), (max-height: 480px) and (pointer: coarse) {
	body:has(.toast-box:not(.is-changes)) .plan-popup[b-n42v35wqkx] {
		max-height: calc(100dvh - 144px - env(safe-area-inset-top));
	}
}

body:has(.toast-box:not(.is-changes)) .plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx],
body:has(.toast-box:not(.is-changes)) .plan-popup[data-card][b-n42v35wqkx] {
	max-height: calc(100dvh - 144px - env(safe-area-inset-top));
}

/* Below 320 px the plain move toast takes four lines and ends at 154 px (issue 286). */
@media (max-width: 319.98px) {
	body:has(.toast-box:not(.is-changes)) .plan-popup[b-n42v35wqkx],
	body:has(.toast-box:not(.is-changes)) .plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx],
	body:has(.toast-box:not(.is-changes)) .plan-popup[data-card][b-n42v35wqkx] {
		max-height: calc(100dvh - 160px - env(safe-area-inset-top));
	}
}

/* A short desktop window (issue 195 D3): with a mouse and at least 641 px the toast is one or two lines (54 px top + at
   most about 62 px), so the card keeps more of its body (120 instead of 144), and it is centred at 720 px instead of
   stretching over the sidebar. */
@media (pointer: fine) and (min-width: 641px) {
	body:has(.toast-box:not(.is-changes)) .plan-popup[data-card][b-n42v35wqkx] {
		max-height: calc(100dvh - 120px - env(safe-area-inset-top));
	}
}

@media (min-width: 641px) {
	.plan-popup[data-card][b-n42v35wqkx] {
		max-width: 720px;
		margin-inline: auto;
	}
}

/* ---- The bottom sheet of the mobile list (issue 197), at any width: the dim backdrop that closes it with a tap, a sheet
   flush with the bottom edge (rounded on top, a decorative grab handle, the home indicator's safe area under the actions),
   centred at 720 px from 641 px up, and 44 px touch targets. Edit is never offered in a sheet (the page passes no handler;
   the rule below is the safety net for a host that does). ---- */
.popup-backdrop.is-sheet[b-n42v35wqkx] {
	position: fixed;
	inset: 0;
	z-index: 1044;
	display: block;
	background: var(--modal-backdrop);
	/* A swipe on the dim layer does nothing (the page behind is locked while a sheet is open, see app.css), and one that reaches
	   it never chains to the page (issue 197 D fix 2). */
	touch-action: none;
	overscroll-behavior: none;
}

.plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx] {
	inset: auto 0 0;
	padding-bottom: env(safe-area-inset-bottom);
	border-bottom: 0;
	border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* The Move to... sheet opens over the details sheet; the Figma frame 32-1756 shows it over the list alone, with one dim layer.
   The details sheet and its backdrop stay mounted (Cancel returns to them, focus goes back there) but are not drawn meanwhile. */
body:has(.plan-move-modal.is-sheet) .plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx],
body:has(.plan-move-modal.is-sheet) .popup-backdrop.is-sheet[b-n42v35wqkx] {
	visibility: hidden;
}

@media (min-width: 641px) {
	.plan-popup[data-presentation="bottom-sheet"][b-n42v35wqkx] {
		max-width: 720px;
		margin-inline: auto;
	}
}

.plan-popup[data-presentation="bottom-sheet"] .popup-head[b-n42v35wqkx] {
	border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* The grab handle: a pill above the title, in the head's flex column. It is only a picture (a tap on the backdrop, the X
   and Esc close the sheet), so it is not in the markup and not in the accessibility tree. */
.plan-popup[data-presentation="bottom-sheet"] .popup-head[b-n42v35wqkx]::before {
	content: "";
	align-self: center;
	flex: none;
	width: 36px;
	height: 4px;
	margin-bottom: 4px;
	background: var(--line-strong);
	border-radius: var(--radius-pill);
}

.plan-popup[data-presentation="bottom-sheet"] .popup-actions .popup-action[b-n42v35wqkx] {
	flex: 1 1 0;
	min-height: 44px;
}

.plan-popup[data-presentation="bottom-sheet"] .popup-close[b-n42v35wqkx] {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	background-position: center;
}

.plan-popup[data-presentation="bottom-sheet"] .action-edit[b-n42v35wqkx] {
	display: none;
}

.plan-popup[data-presentation="bottom-sheet"] .line-texts[b-n42v35wqkx],
.plan-popup[data-presentation="bottom-sheet"] .popup-link[b-n42v35wqkx] {
	min-height: 44px;
}

/* A short window: the machine line and the head's air go, so the body keeps most of the height. */
@media (max-height: 480px) {
	.popup-sub[b-n42v35wqkx] {
		display: none;
	}

	.popup-head[b-n42v35wqkx] {
		padding: 8px 12px;
	}

	.popup-actions[b-n42v35wqkx] {
		padding: 8px 12px;
	}
}

@media (max-width: 400px) {
	.popup-rows[b-n42v35wqkx] {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 10px 8px;
	}
}

@media (forced-colors: active) {
	.plan-popup[b-n42v35wqkx],
	.popup-status[b-n42v35wqkx],
	.split-chip[b-n42v35wqkx] {
		border-color: CanvasText;
	}

	/* The grab handle is only a background, which forced colours would paint in the canvas colour: invisible on the sheet. */
	.plan-popup[data-presentation="bottom-sheet"] .popup-head[b-n42v35wqkx]::before {
		forced-color-adjust: none;
		background: CanvasText;
	}

	/* A gradient to the page colour would be a pale band on the system canvas. */
	.popup-body[data-scroll-more][b-n42v35wqkx]::after {
		display: none;
	}

	/* Forced colours drop the red: the late end gets a wavy underline, the sentence and the glyph under it stay. */
	.whole-end.is-late[b-n42v35wqkx] {
		text-decoration: underline wavy;
		text-underline-offset: 3px;
	}
}
/* /Components/Shared/Molecules/StatCard.razor.rz.scp.css */
/* Compact KPI card (razor-page-design-system "List pages"): a quick-glance summary that doubles as a one-click
   filter, not the page's focal point. --stat-card-radius / --stat-num-size let a host page keep its own desktop
   proportions (CustomerList uses 9px / 17px). */
.stat-card[b-hk8gkp6xc9] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--stat-card-radius, 8px);
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.stat-card:hover[b-hk8gkp6xc9] {
    border-color: var(--line-strong);
}

.stat-card-active[b-hk8gkp6xc9] {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.stat-num[b-hk8gkp6xc9] {
    font-size: var(--stat-num-size, 15px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.stat-label[b-hk8gkp6xc9] {
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.1;
}

.stat-hint[b-hk8gkp6xc9] {
    font-size: 10px;
    color: var(--ink-faint);
    line-height: 1.1;
}

.text-state-new[b-hk8gkp6xc9] { color: var(--status-new-ink); }
.text-state-progress[b-hk8gkp6xc9] { color: var(--status-progress-ink); }
.text-state-done[b-hk8gkp6xc9] { color: var(--status-done-ink); }
.text-state-rejected[b-hk8gkp6xc9] { color: var(--status-rejected-ink); }

/* Below 1400px the cards sit in the collapsible mobile Filters panel next to the filter chips, so they take the
   chips' pill footprint (number + label inline, hint hidden) instead of the tall stacked desktop card. */
@media (max-width: 1400px) {
    .stat-card[b-hk8gkp6xc9] {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: auto;
        height: 32px;
        padding: 0 12px;
        border-radius: 999px;
    }

    .stat-num[b-hk8gkp6xc9] {
        font-size: 13px;
    }

    .stat-label[b-hk8gkp6xc9] {
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-soft);
    }

    .stat-hint[b-hk8gkp6xc9] {
        display: none;
    }
}

@media (max-width: 349px) {
    .stat-card[b-hk8gkp6xc9] {
        padding: 0 10px;
    }
}
/* /Components/Shared/Molecules/StatCardRow.razor.rz.scp.css */
.stats-row[b-ns09xspksi] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

/* 1400px is the list pages' compact-view switch (razor-page-design-system "Breakpoint values"): wide enough to
   also cover a resized desktop window, not just phones. */
@media (max-width: 1400px) {
    /* Collapsed by default on mobile - only expanded when the page's Filters toggle is open. */
    .stats-row.mobile-collapsed[b-ns09xspksi] {
        display: none;
    }

    /* On mobile the KPI cards live inside the same collapsible "Filters" panel as the filter chips, so they
       wrap as chip-sized pills (see StatCard.razor.css) instead of the desktop's grid of stacked cards. */
    .stats-row[b-ns09xspksi] {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: none;
        gap: 8px;
    }
}

/* Extra-narrow tier: foldable cover screens (~280px). */
@media (max-width: 349px) {
    .stats-row[b-ns09xspksi] {
        gap: 6px;
    }
}
/* /Components/Shared/Molecules/StockSourceBadge.razor.rz.scp.css */
/* Decision 180: the source pill of an own-stock item (an import profile or entered by hand). */
.source-pill[b-0wvtqxfqwm] {
	/* inline-block, not flex: text-overflow only applies to the box's own text, so a long profile name ends in "...".
	   align-self keeps it from stretching (and shrinking below its text) inside a flex column. */
	display: inline-block;
	align-self: flex-start;
	max-width: 100%;
	padding: 1px 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.source-import[b-0wvtqxfqwm] {
	background: var(--info-soft);
	border-color: var(--info-soft);
	color: var(--info-ink);
}

.source-hand[b-0wvtqxfqwm] {
	background: var(--line-soft);
	color: var(--ink-soft);
}
/* /Components/Shared/Molecules/TimesheetPlanCard.razor.rz.scp.css */
/* Issue 82: consumes the global design tokens from wwwroot/app.css (issue 138
   removed the host page's local re-declarations of them). */

.card.plan-card[b-4ch31reeul] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.plan-card-today[b-4ch31reeul] {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.plan-card-top[b-4ch31reeul] {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 4px 8px;
}

.plan-card-title[b-4ch31reeul] {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 0;
}

.plan-id[b-4ch31reeul] {
	font-weight: 700;
	font-size: 14px;
}

.plan-date[b-4ch31reeul] {
	color: var(--ink-faint);
	font-size: 12px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Issue 198: date and, under it, the time range (the card header's right side), muted like the date. */
/* Issue 198 fix round 1 (D-L2): never cut. When the date block doesn't fit beside the title it takes its own row (the top
   row wraps), still right-aligned, and a long multi-day range wraps inside it instead of being ellipsized. */
.plan-date-block[b-4ch31reeul] {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	margin-left: auto;
	text-align: right;
}

/* Fix round 2 (D2 P-b): a wrapped multi-day range is balanced over its lines; the no-break spaces of its pattern keep the
   date and "· 2 days" whole, so it never ends on a lone "days". */
.plan-time-range[b-4ch31reeul] {
	color: var(--ink-faint);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: normal;
	overflow-wrap: anywhere;
	text-wrap: balance;
	max-width: 100%;
}

.plan-address[b-4ch31reeul] {
	margin: 0;
	font-size: 12.5px;
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.plan-card-footer[b-4ch31reeul] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.total-hours[b-4ch31reeul] {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
}

[b-4ch31reeul] .icon-plus {
	display: inline-flex;
	align-items: center;
	vertical-align: -1px;
}

.badge[b-4ch31reeul] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
}

.badge .dot[b-4ch31reeul] {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

.badge-new[b-4ch31reeul] { background: var(--status-new-bg); color: var(--status-new-ink); }
.badge-progress[b-4ch31reeul] { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.badge-done[b-4ch31reeul] { background: var(--status-done-bg); color: var(--status-done-ink); }
.badge-confirm[b-4ch31reeul] { background: var(--status-confirm-bg); color: var(--status-confirm-ink); }
.badge-rejected[b-4ch31reeul] { background: var(--status-rejected-bg); color: var(--status-rejected-ink); }
.badge-default[b-4ch31reeul] { background: var(--line-soft); color: var(--ink-soft); }

.badge-today[b-4ch31reeul] {
	background: var(--accent);
	color: var(--on-color);
}

.entry-form[b-4ch31reeul] {
	border-top: 1px dashed var(--line);
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.entry-form-row[b-4ch31reeul] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
}

.entry-field[b-4ch31reeul] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.form-label[b-4ch31reeul] {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0;
}

.my-entries[b-4ch31reeul] {
	border-top: 1px solid var(--line-soft);
	padding-top: 8px;
}

/* Eyebrow-style section label (issue 138: was only styled in the host page's
   scoped CSS, which never reaches this component's markup). */
.section-label[b-4ch31reeul] {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 10px;
}

.section-label-small[b-4ch31reeul] {
	font-size: 10px;
	margin-bottom: 6px;
}

.entry-list[b-4ch31reeul] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.entry-row[b-4ch31reeul] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
}

.entry-row:last-child[b-4ch31reeul] {
	border-bottom: none;
}

.entry-row-main[b-4ch31reeul] {
	display: flex;
	align-items: center;
	gap: 8px;
}

.entry-date[b-4ch31reeul] {
	font-size: 11.5px;
	color: var(--ink-faint);
}

.entry-notes[b-4ch31reeul] {
	/* Wraps onto its own line under the date/badges and the remove button
	   (issue 138), so the 44px button stays on the first line. */
	order: 2;
	flex: 1 1 100%;
	font-size: 11.5px;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

/* 44px touch target (issue 138, mobile Timesheet); the glyph stays small. */
.row-remove[b-4ch31reeul] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	order: 1;
	/* 44px hit area (issue 138); the negative block margins keep a one-line
	   row as compact as the small glyph needs. */
	margin: -10px -10px -10px auto;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: none;
	border: none;
	color: var(--ink-faint);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.row-remove:hover[b-4ch31reeul] {
	color: var(--danger-ink);
}

/* Issue 141: a billed entry shows its lock pill where the remove button would be (end of the first line). */
.entry-lock[b-4ch31reeul] {
	order: 1;
	margin-left: auto;
	max-width: 60%;
}

.empty-hint[b-4ch31reeul] {
	color: var(--ink-faint);
	font-size: 12px;
	margin: 0;
}

/* Issue 138: Work/Travel control, the Kilometres section and km entries. Every
   tappable control in the entry form is at least 44px tall for the phone. */

.entry-form .form-control[b-4ch31reeul],
.entry-form .form-select[b-4ch31reeul] {
	min-height: 44px;
}

.kind-toggle[b-4ch31reeul] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.kind-option[b-4ch31reeul] {
	min-height: 44px;
	padding: 0 12px;
	border: none;
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.kind-option + .kind-option[b-4ch31reeul] {
	border-left: 1px solid var(--line);
}

.kind-option-active[b-4ch31reeul] {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.kind-work[b-4ch31reeul] { background: var(--line-soft); color: var(--ink-soft); }
.kind-travel[b-4ch31reeul] { background: var(--kind-travel-bg); color: var(--kind-travel-ink); }
.badge-km[b-4ch31reeul] { background: var(--info-soft); color: var(--info-ink); }

.km-section[b-4ch31reeul] {
	border-top: 1px dashed var(--line);
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.km-section .section-label[b-4ch31reeul] {
	margin: 0;
}

.link-btn[b-4ch31reeul] {
	align-self: flex-start;
	min-height: 44px;
	padding: 0;
	border: none;
	background: none;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}

.link-btn:hover:not(:disabled)[b-4ch31reeul] {
	text-decoration: underline;
}

.link-btn:disabled[b-4ch31reeul] {
	color: var(--ink-faint);
	cursor: default;
	text-decoration: none;
}

/* Every Timesheet touch target is at least 44px, the Log Hours button included. */
.plan-card .btn[b-4ch31reeul] {
	min-height: 44px;
}

.form-error[b-4ch31reeul] {
	margin: 0;
	font-size: 12px;
	color: var(--danger-ink);
	/* Issue 288 UI review: no single word on the last line when the sentence wraps. */
	text-wrap: pretty;
}

/* Issue 288: the grey sentence under the hours field while it holds the plan line's value; full card width, after the
   two-column row, so it wraps across the card on a phone. */
.field-hint[b-4ch31reeul] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
	/* Issue 288 UI review: no single word on the last line when the sentence wraps. */
	text-wrap: pretty;
}

/* Issue 140: a refused delete (the entry is billed), right under the entry that was tapped. */
.entry-error-row[b-4ch31reeul] {
	list-style: none;
	padding: 0;
}
/* /Components/Shared/Molecules/TimesheetWorkReportForm.razor.rz.scp.css */
/* Epic 417 (issue 429): the work report Basker prepared, above the Timesheet's plan lists. Tokens only (wwwroot/app.css). The Timesheet
   was not drawn in Figma, so the fields follow the plan card's entry form (44 px controls, the 10.5 px upper-case label). */

.work-report[b-htf9chzuvb] {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
	margin-bottom: 24px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-sizing: border-box;
	/* The hours row follows the form's own width, not the window's (responsive review, fix round 1): with the sidebar shown at 641 to
	   767 px the form is only about 378 px wide. An inline-size container only fixes its width to its parent's (a block in the page
	   flow, at most 640 px); its height still grows with its fields. */
	container-type: inline-size;
	container-name: work-report;
}

.work-report-heading[b-htf9chzuvb] {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* The alert's own bottom margin is not needed inside the form's flex column: the column gap spaces it. */
.work-report[b-htf9chzuvb]  .work-report-alert {
	margin-bottom: 0;
}

.work-report-field[b-htf9chzuvb] {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* A label and, at the right end, the Basker mark (BaskerFieldMark has margin-inline-start: auto). Only a marked row needs it, but
   the row is the container the mark measures (its container query), so every row is one: a narrow column then shows the mark's glyph
   only instead of wrapping it under the label. */
.work-report-label-row[b-htf9chzuvb] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	container-type: inline-size;
	container-name: basker-field;
}

.work-report-label[b-htf9chzuvb] {
	margin: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.work-report-plan-line[b-htf9chzuvb] {
	margin: 0;
	font-size: 13px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.work-report-plan-id[b-htf9chzuvb] {
	font-weight: 700;
}

.work-report-hours-row[b-htf9chzuvb] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

/* A narrow form (a phone, or a small window with the sidebar): one column, so a field, its hint and its error have the whole width.
   400 px is the form's content width; two columns of under 194 px left the inputs at 140 to 164 px. */
@container work-report (max-width: 400px) {
	.work-report-hours-row[b-htf9chzuvb] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Every control is at least 44 px tall, as in the plan card's entry form. */
.work-report .form-control[b-htf9chzuvb] {
	min-height: 44px;
}

.work-report textarea.form-control[b-htf9chzuvb] {
	min-height: 0;
}

/* The orange "not found" state of a field Basker could not fill: the editor's fill and border go orange; the pill (label row) and the
   line under the input are the BaskerFieldMark atom. */
.work-report-field-not-found .form-control[b-htf9chzuvb] {
	background-color: var(--warning-soft);
	border-color: var(--warning-ink);
}

.field-hint[b-htf9chzuvb] {
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.form-error[b-htf9chzuvb] {
	margin: 0;
	font-size: 12px;
	color: var(--danger-ink);
	text-wrap: pretty;
}

.work-report-footer[b-htf9chzuvb] {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.work-report-footer .btn[b-htf9chzuvb] {
	min-height: 44px;
	font-size: 14px;
}

/* Save is off with aria-disabled (not disabled) while a prepared report is read or a Save runs; the page ignores the press. It looks
   like Bootstrap's disabled button, as the Absence page's Save does. */
[data-component="Timesheet.WorkReportSaveButton"][aria-disabled="true"][b-htf9chzuvb],
[data-component="Timesheet.WorkReportSaveButton"][aria-disabled="true"]:hover[b-htf9chzuvb],
[data-component="Timesheet.WorkReportSaveButton"][aria-disabled="true"]:active[b-htf9chzuvb] {
	color: var(--bs-btn-disabled-color);
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
	opacity: 0.65;
	box-shadow: none;
	cursor: default;
}

/* An off Save is still reached with Tab (a disabled one would be skipped), so the keyboard gets the app's focus ring on it. */
[data-component="Timesheet.WorkReportSaveButton"][aria-disabled="true"]:focus-visible[b-htf9chzuvb] {
	box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--accent);
}

@media (forced-colors: active) {
	[data-component="Timesheet.WorkReportSaveButton"][aria-disabled="true"][b-htf9chzuvb] {
		color: GrayText;
		border-color: GrayText;
	}
}
/* /Components/Shared/Molecules/Toast.razor.rz.scp.css */
/* A short message at the bottom of the screen (issue 195, epic 189; UI plan section 4): the planning board's Undo and
   "reloaded" notices. Fixed, above the Bootstrap modals (1050/1055) so it is never hidden behind a dialog; it never takes
   focus. Colours only through app.css tokens. At the bottom of the screen on a desktop (the popup's script keeps its popover
   out of that strip), at the top on a phone, where the popup is a card pinned to the bottom edge. */
.toast-box[b-xvzhzlcbxm] {
	position: fixed;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1090;
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: min(480px, calc(100vw - 32px));
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 4px solid var(--toast-ink);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	color: var(--ink);
	font-size: 13px;
	animation: toast-in-b-xvzhzlcbxm 0.16s ease-out;
}

.toast-box.tone-info[b-xvzhzlcbxm] {
	--toast-ink: var(--info-ink);
}

.toast-box.tone-success[b-xvzhzlcbxm] {
	--toast-ink: var(--success-ink);
}

.toast-box.tone-error[b-xvzhzlcbxm] {
	--toast-ink: var(--danger-ink);
}

.toast-box.tone-warning[b-xvzhzlcbxm] {
	--toast-ink: var(--warning-ink);
}

/* The board's second toast ("changes by others", epic 189 B7b) hangs under the header's changes button, right-aligned to it
   (fix round 2, D2: it sat at a fixed place of the screen and covered Today, the view switch and, on a phone, the week
   navigation and the bell itself). It is absolutely positioned in the button's slot (PlanningBoard .changes-slot), so the Undo
   toast at the bottom is never covered or replaced, and it takes the same place on every tier. */
.toast-box.is-changes[b-xvzhzlcbxm] {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	bottom: auto;
	left: auto;
	transform: none;
	align-items: flex-start;
	animation: none;
}

.toast-box.is-changes .toast-message[b-xvzhzlcbxm] {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.toast-glyph[b-xvzhzlcbxm] {
	display: inline-flex;
	flex: none;
	font-size: 14px;
	color: var(--toast-ink);
}

.toast-message[b-xvzhzlcbxm] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.toast-action[b-xvzhzlcbxm] {
	flex: none;
	padding: 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent-strong);
	text-decoration: none;
}

.toast-action:hover[b-xvzhzlcbxm] {
	text-decoration: underline;
}

.toast-close[b-xvzhzlcbxm] {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 0;
	background-size: 10px;
}

/* Bootstrap's close button rings with a pale blue halo; the accent pair the other buttons use. */
.toast-close:focus-visible[b-xvzhzlcbxm] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

@keyframes toast-in-b-xvzhzlcbxm {
	from {
		opacity: 0;
		transform: translate(-50%, 8px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes toast-in-top-b-xvzhzlcbxm {
	from {
		opacity: 0;
		transform: translate(-50%, -8px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* Phones (narrow screens and short touch screens; the same query as PlanSchedulePopup.razor.css and its script): the popup
   is a card on the bottom edge, with its actions, so the toast goes to the top, below the hamburger (34 px at 10 px). */
@media (max-width: 640.98px), (max-height: 480px) and (pointer: coarse) {
	.toast-box[b-xvzhzlcbxm] {
		top: calc(54px + env(safe-area-inset-top));
		bottom: auto;
		animation-name: toast-in-top-b-xvzhzlcbxm;
	}
}

/* The popup's script made a card pinned to the bottom on a short desktop window (data-card), or the host asked for a bottom
   sheet (the event popup, or the Move to... sheet of the mobile list, issue 197): the toast goes to the top there too, so it
   never covers the card's actions (issue 195 D2 P-C). */
body:has(.plan-popup[data-card]) .toast-box[b-xvzhzlcbxm],
body:has(.plan-popup[data-presentation="bottom-sheet"]) .toast-box[b-xvzhzlcbxm],
body:has(.plan-move-modal.is-sheet) .toast-box[b-xvzhzlcbxm] {
	top: calc(54px + env(safe-area-inset-top));
	bottom: auto;
	animation-name: toast-in-top-b-xvzhzlcbxm;
}

/* The changes toast keeps hanging under its button in those cases too (the rule above is more specific than .is-changes). */
body:has(.plan-popup[data-card]) .toast-box.is-changes[b-xvzhzlcbxm],
body:has(.plan-popup[data-presentation="bottom-sheet"]) .toast-box.is-changes[b-xvzhzlcbxm],
body:has(.plan-move-modal.is-sheet) .toast-box.is-changes[b-xvzhzlcbxm] {
	top: calc(100% + 6px);
	animation-name: none;
}

@media (pointer: coarse) {
	.toast-action[b-xvzhzlcbxm],
	.toast-close[b-xvzhzlcbxm] {
		min-width: 44px;
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toast-box[b-xvzhzlcbxm] {
		animation: none;
	}
}
/* /Components/Shared/Organisms/BaskerConversation.razor.rz.scp.css */
/* Epic 417 (step 5): the Basker conversation, shared by the page and the side window.
   Figma 181:255 (empty page), 182:899 (conversation), 182:1290 (thinking, error, limit), 182:1512 (side window), 182:2101 and 182:2384 (phone).
   Tokens only; the bubbles of the answers are in BaskerAnswerView, the prepared record in BaskerDraftBox. */
.basker-conversation[b-i83ucwanvv] {
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: var(--ink);
	/* The input bar answers the width of the conversation itself, not the screen: the page next to the 250 px menu, the 440 px side
	   window and a phone all hold about the same room (fix round 1, D1; the container block is at the end of this file). */
	container-type: inline-size;
	container-name: basker-conversation;
}

.basker-visually-hidden[b-i83ucwanvv] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---- the thread: messages, then the status line ------------------------------------------------------------------------ */
.basker-thread[b-i83ucwanvv] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

/* The log takes only the height of its messages, so the status line (thinking, red, orange) follows the last sentence with no gap
   (Figma 182:1290). Only the empty page grows, to keep the examples in the middle (Figma 181:255). */
.basker-log[b-i83ucwanvv] {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.basker-log:has(> .basker-empty)[b-i83ucwanvv] {
	flex: 1 1 auto;
}

.basker-status[b-i83ucwanvv] {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.basker-status > .basker-row[b-i83ucwanvv] {
	margin-top: 18px;
}

/* The end marker: scrollToEnd scrolls its scroller to the scroller's real end (fix round 1 of step 6), so no scroll margin is needed. */
.basker-end[b-i83ucwanvv] {
	display: block;
	height: 0;
}

.basker-row[b-i83ucwanvv] {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.basker-row-user[b-i83ucwanvv] {
	justify-content: flex-end;
}

.basker-avatar[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 17px;
}

/* An answer bubble is the root of the BaskerAnswerView child, so the parent's rule needs ::deep. */
.basker-row-basker[b-i83ucwanvv]  .basker-bubble {
	max-width: min(600px, calc(100% - 40px));
}

.basker-bubble-user[b-i83ucwanvv] {
	max-width: min(80%, 560px);
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: var(--radius-xl);
	border-bottom-right-radius: var(--radius-xs);
	background: var(--accent);
	color: var(--on-color);
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.basker-note[b-i83ucwanvv] {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* Review P3 of issue 462: the three notes of the store (changed in another window, could not be saved, not available) say that
   something did not happen as the user expects, so they stand out from the plain line; the restarted note stays as it is. */
.basker-note-store[b-i83ucwanvv] {
	padding: 8px 12px;
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	color: var(--ink);
}

/* ---- the empty page (Figma 181:255) ------------------------------------------------------------------------------------- */
.basker-empty[b-i83ucwanvv] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-block: auto;
	padding: 24px 0;
}

.basker-empty-avatar[b-i83ucwanvv] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 31px;
}

.basker-empty-caption[b-i83ucwanvv] {
	margin: 0;
	font-size: 14px;
	color: var(--ink-soft);
	/* Issue 463 fix round 2 (P1): a caption that wraps (the examples caption on a narrow screen) stays centred under the centred
	   icon. */
	text-align: center;
}

.basker-examples[b-i83ucwanvv] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 340px));
	gap: 12px;
	max-width: 100%;
}

.basker-example[b-i83ucwanvv] {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	text-align: left;
	cursor: pointer;
}

.basker-example:hover[b-i83ucwanvv] {
	border-color: var(--accent);
	background: var(--surface-hover);
}

.basker-example:focus-visible[b-i83ucwanvv] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.basker-example-icon[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--accent);
	font-size: 18px;
}

.basker-example-text[b-i83ucwanvv] {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* ---- thinking, error, limit (Figma 182:1290) ----------------------------------------------------------------------------- */
.basker-status-bubble[b-i83ucwanvv] {
	min-width: 0;
	max-width: min(480px, calc(100% - 40px));
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	border-top-left-radius: var(--radius-xs);
	background: var(--surface);
	color: var(--ink);
}

.basker-status-thinking[b-i83ucwanvv] {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--ink-soft);
}

.basker-dots[b-i83ucwanvv] {
	display: inline-flex;
	gap: 5px;
}

.basker-dots i[b-i83ucwanvv] {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	animation: basker-dot-b-i83ucwanvv 1.2s ease-in-out infinite;
}

.basker-dots i:nth-child(1)[b-i83ucwanvv] {
	opacity: 1;
}

.basker-dots i:nth-child(2)[b-i83ucwanvv] {
	opacity: 0.6;
	animation-delay: 0.2s;
}

.basker-dots i:nth-child(3)[b-i83ucwanvv] {
	opacity: 0.3;
	animation-delay: 0.4s;
}

@keyframes basker-dot-b-i83ucwanvv {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.basker-dots i[b-i83ucwanvv] {
		animation: none;
	}
}

.basker-status-error[b-i83ucwanvv] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	border-color: var(--danger-line);
	background: var(--danger-soft);
	color: var(--danger-ink);
}

.basker-status-limit[b-i83ucwanvv] {
	border-color: var(--warning-line);
	background: var(--warning-soft);
	color: var(--warning-ink);
}

.basker-status-neutral[b-i83ucwanvv] {
	background: var(--line-soft);
	color: var(--ink-soft);
}

.basker-status-line[b-i83ucwanvv] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.basker-status-line[b-i83ucwanvv]  .glyph-icon {
	flex-shrink: 0;
	font-size: 16px;
	margin-top: 1px;
}

.basker-status-button[b-i83ucwanvv] {
	padding: 5px 10px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 12.5px;
	line-height: 1.3;
	cursor: pointer;
}

.basker-status-button:hover:not(:disabled)[b-i83ucwanvv] {
	background: var(--surface-hover);
}

.basker-status-button:disabled[b-i83ucwanvv] {
	opacity: 0.4;
	cursor: default;
}

.basker-status-button:focus-visible[b-i83ucwanvv] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.basker-full[b-i83ucwanvv] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

@media (pointer: coarse) {
	.basker-status-button[b-i83ucwanvv],
	.basker-example[b-i83ucwanvv] {
		min-height: 44px;
	}
}

/* ---- the input bar (Figma 181:255 part 5 and 8; 182:1512 and 182:2101 at the bottom) ---------------------------------------- */
.basker-input-bar[b-i83ucwanvv] {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.basker-input[b-i83ucwanvv] {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-lg);
	background: var(--surface-muted);
	color: var(--ink);
	font-family: inherit;
	font-size: 14px;
}

.basker-input[b-i83ucwanvv]::placeholder {
	color: var(--ink-faint);
}

.basker-input:focus-visible[b-i83ucwanvv] {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.basker-input:disabled[b-i83ucwanvv] {
	background: var(--line-soft);
	cursor: not-allowed;
}

.basker-send[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 86px;
	height: 34px;
	box-sizing: border-box;
	padding: 8px 14px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-md);
	background: var(--accent);
	color: var(--on-color);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.basker-send:hover:not(:disabled):not([aria-disabled="true"])[b-i83ucwanvv] {
	background: var(--accent-strong);
	border-color: var(--accent-strong);
}

.basker-send:focus-visible[b-i83ucwanvv] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Off: disabled while a sentence is answered or the input is locked; only aria-disabled for a blank input, so it stays the form's
   default button and Enter is never lost (issue 427 F1). Both look the same. */
.basker-send:disabled[b-i83ucwanvv],
.basker-send[aria-disabled="true"][b-i83ucwanvv] {
	opacity: 0.4;
	cursor: default;
}

/* ---- speaking (step 6, Figma 181:255 parts 5 to 8, 182:1290 card A, 182:2101 parts 12 to 15) ---------------------------------------- */
/* With a microphone the bar is a grid: the box (the text box, or the strip while recording), the microphone, the CS/EN switch and Send
   (Stop while recording); the small hint line is a second row that exists only while it has text. */
.basker-input-bar-speech[b-i83ucwanvv] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto;
	grid-template-areas:
		"box mic lang send"
		"hint hint hint hint";
	column-gap: 8px;
	row-gap: 0;
	align-items: center;
}

.basker-input-bar-speech > .basker-input[b-i83ucwanvv],
.basker-input-bar-speech > .basker-strip[b-i83ucwanvv] {
	grid-area: box;
}

.basker-input-bar-speech > .basker-mic[b-i83ucwanvv] {
	grid-area: mic;
}

.basker-input-bar-speech > .basker-lang[b-i83ucwanvv] {
	grid-area: lang;
}

.basker-input-bar-speech > .basker-send[b-i83ucwanvv],
.basker-input-bar-speech > .basker-stop[b-i83ucwanvv] {
	grid-area: send;
}

.basker-speech-hint[b-i83ucwanvv] {
	grid-area: hint;
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.basker-speech-hint-error[b-i83ucwanvv] {
	color: var(--danger-ink);
}

/* The microphone: a round 40 px button (52 px on a phone); red with a pulse ring while it records. */
.basker-mic[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	padding: 0;
	border: 1px solid var(--accent-soft);
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	cursor: pointer;
}

.basker-mic:hover:not(:disabled)[b-i83ucwanvv] {
	background: color-mix(in srgb, var(--accent) 14%, var(--accent-soft));
}

.basker-mic:focus-visible[b-i83ucwanvv],
.basker-lang-cell:focus-visible[b-i83ucwanvv],
.basker-stop:focus-visible[b-i83ucwanvv] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.basker-mic:disabled[b-i83ucwanvv] {
	opacity: 0.4;
	cursor: default;
}

.basker-mic-recording[b-i83ucwanvv],
.basker-mic-recording:hover:not(:disabled)[b-i83ucwanvv] {
	border-color: var(--danger-ink);
	background: var(--danger-ink);
	color: var(--on-color);
	animation: basker-mic-pulse-b-i83ucwanvv 1.4s ease-out infinite;
}

@keyframes basker-mic-pulse-b-i83ucwanvv {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger-ink) 40%, transparent); }
	100% { box-shadow: 0 0 0 10px transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.basker-mic-recording[b-i83ucwanvv],
	.basker-mic-recording:hover:not(:disabled)[b-i83ucwanvv] {
		animation: none;
		box-shadow: 0 0 0 4px var(--danger-line);
	}
}

/* The CS / EN switch: 70 x 28, two cells, the chosen one lifted. Off as a whole (opacity 0.4) when a limit locks the input. */
.basker-lang[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	box-sizing: border-box;
	padding: 2px;
	border-radius: var(--radius-md);
	background: var(--line-soft);
}

.basker-lang:has(> .basker-lang-cell:disabled)[b-i83ucwanvv] {
	opacity: 0.4;
}

.basker-lang-cell[b-i83ucwanvv] {
	min-width: 33px;
	height: 24px;
	box-sizing: border-box;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-soft);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.basker-lang-cell[aria-pressed="true"][b-i83ucwanvv] {
	background: var(--surface);
	color: var(--accent);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 18%, transparent);
}

.basker-lang-cell:disabled[b-i83ucwanvv] {
	cursor: default;
}

/* Stop replaces Send while recording: 80 x 34, white with a red edge. */
.basker-stop[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 80px;
	height: 34px;
	box-sizing: border-box;
	padding: 8px 14px;
	border: 1px solid var(--danger-ink);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--danger-ink);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
}

.basker-stop:hover[b-i83ucwanvv] {
	background: var(--danger-soft);
}

.basker-stop[b-i83ucwanvv]  .glyph-icon {
	flex-shrink: 0;
	font-size: 15px;
}

/* The strip that takes the place of the text box while it records (red, with the bars and the clock) or turns the speech into text (grey). */
.basker-strip[b-i83ucwanvv] {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	height: 44px;
	box-sizing: border-box;
	padding: 11px 14px;
	border-radius: var(--radius-lg);
}

.basker-strip-recording[b-i83ucwanvv] {
	border: 1px solid var(--danger-line);
	background: var(--danger-soft);
	color: var(--danger-ink);
}

.basker-strip-working[b-i83ucwanvv] {
	border: 1px solid var(--line-strong);
	background: var(--surface-muted);
	color: var(--ink-soft);
}

.basker-strip-dot[b-i83ucwanvv] {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--danger-ink);
}

.basker-strip-label[b-i83ucwanvv] {
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.basker-strip-working .basker-strip-label[b-i83ucwanvv] {
	font-weight: 400;
}

.basker-strip-clock[b-i83ucwanvv] {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Twelve level bars: static heights from the picture, a gentle CSS motion (not real levels, D6-10). */
.basker-strip-bars[b-i83ucwanvv] {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 3px;
	height: 20px;
}

.basker-strip-bars i[b-i83ucwanvv] {
	width: 3px;
	border-radius: 2px;
	background: var(--danger-ink);
	opacity: 0.6;
	animation: basker-bar-b-i83ucwanvv 1.1s ease-in-out infinite;
}

.basker-strip-bars i:nth-child(1)[b-i83ucwanvv] { height: 6px; }
.basker-strip-bars i:nth-child(2)[b-i83ucwanvv] { height: 12px; animation-delay: 0.1s; }
.basker-strip-bars i:nth-child(3)[b-i83ucwanvv] { height: 18px; animation-delay: 0.2s; }
.basker-strip-bars i:nth-child(4)[b-i83ucwanvv] { height: 10px; animation-delay: 0.3s; }
.basker-strip-bars i:nth-child(5)[b-i83ucwanvv] { height: 14px; animation-delay: 0.4s; }
.basker-strip-bars i:nth-child(6)[b-i83ucwanvv] { height: 20px; animation-delay: 0.5s; }
.basker-strip-bars i:nth-child(7)[b-i83ucwanvv] { height: 8px; animation-delay: 0.6s; }
.basker-strip-bars i:nth-child(8)[b-i83ucwanvv] { height: 16px; animation-delay: 0.7s; }
.basker-strip-bars i:nth-child(9)[b-i83ucwanvv] { height: 11px; animation-delay: 0.8s; }
.basker-strip-bars i:nth-child(10)[b-i83ucwanvv] { height: 6px; animation-delay: 0.9s; }
.basker-strip-bars i:nth-child(11)[b-i83ucwanvv] { height: 13px; animation-delay: 1s; }
.basker-strip-bars i:nth-child(12)[b-i83ucwanvv] { height: 9px; animation-delay: 1.1s; }

@keyframes basker-bar-b-i83ucwanvv {
	0%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(0.45); }
}

@media (prefers-reduced-motion: reduce) {
	.basker-strip-bars i[b-i83ucwanvv] {
		animation: none;
	}
}

/* The side window and every touch screen: controls reach 44 px (the touch rule). */
.basker-conversation-panel .basker-stop[b-i83ucwanvv] {
	height: 44px;
	border-radius: var(--radius-lg);
}

/* In the 440 px window the box has about 200 px: the label and the clock need the room of the (decorative) bars. */
.basker-conversation-panel .basker-strip-bars[b-i83ucwanvv] {
	display: none;
}

@media (pointer: coarse) {
	.basker-mic[b-i83ucwanvv] {
		min-width: 44px;
		min-height: 44px;
	}

	.basker-lang-cell[b-i83ucwanvv] {
		min-width: 44px;
		height: 44px;
	}

	.basker-stop[b-i83ucwanvv] {
		height: 44px;
	}

	/* Send is 34 px high on the desktop page; under touch it reaches 44 (fix round 1, D5). */
	.basker-send[b-i83ucwanvv] {
		height: 44px;
	}
}

/* ---- the page: it scrolls, the input bar sticks to the bottom (decision D5-18) ----------------------------------------------- */
.basker-conversation-page .basker-thread[b-i83ucwanvv] {
	min-height: 50vh;
}

.basker-conversation-page .basker-input-bar[b-i83ucwanvv] {
	position: sticky;
	bottom: var(--space-4);
	z-index: 2;
	margin-top: 20px;
	/* The sticky bar floats var(--space-4) above the end of the page; this margin keeps the last message the full 20 px above it at
	   the very end of the document (fix round 1, D6). The phone tier has no float and resets it. */
	margin-bottom: var(--space-4);
}

/* ---- the side window: the conversation scrolls inside, the input stays at the bottom (Figma 182:1512, 182:2384) ------------------ */
.basker-conversation-panel[b-i83ucwanvv] {
	height: 100%;
	min-height: 0;
	background: var(--canvas);
}

.basker-conversation-panel .basker-thread[b-i83ucwanvv] {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px;
}

.basker-conversation-panel .basker-input-bar[b-i83ucwanvv] {
	flex: 0 0 auto;
	padding: 12px;
	border-width: 1px 0 0;
	border-radius: 0;
	box-shadow: none;
}

.basker-conversation-panel .basker-send[b-i83ucwanvv] {
	min-width: 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: var(--radius-lg);
}

.basker-conversation-panel .basker-send-text[b-i83ucwanvv] {
	display: none;
}

.basker-conversation-panel .basker-input[b-i83ucwanvv] {
	height: 44px;
}

.basker-conversation-panel[b-i83ucwanvv]  .basker-choices {
	flex-direction: column;
	align-items: stretch;
}

.basker-conversation-panel .basker-examples[b-i83ucwanvv] {
	grid-template-columns: minmax(0, 1fr);
}

/* One example column while the content column is narrow: a phone, a tablet and an unfolded foldable next to the 250 px menu. */
@media (max-width: 800px) {
	.basker-examples[b-i83ucwanvv] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- a phone (and an unfolded foldable up to 640.98 px, the same tier as the layout): icon-only Send, stacked choices ---------- */
@media (max-width: 640.98px) {
	.basker-conversation[b-i83ucwanvv]  .basker-choices {
		flex-direction: column;
		align-items: stretch;
	}

	.basker-send[b-i83ucwanvv] {
		min-width: 44px;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: var(--radius-lg);
	}

	.basker-send-text[b-i83ucwanvv] {
		display: none;
	}

	.basker-input[b-i83ucwanvv] {
		height: 44px;
	}

	.basker-bubble-user[b-i83ucwanvv] {
		max-width: 85%;
	}

	/* The page's input line is a full-width bar at the bottom of the screen (Figma 182:2101): no card, no gap for messages to show
	   through, and room for the phone's home bar. The negative margin undoes the content column's 1rem side padding (MainLayout). */
	.basker-conversation-page .basker-input-bar[b-i83ucwanvv] {
		bottom: 0;
		margin-bottom: 0;
		margin-inline: -1rem;
		padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
		border-width: 1px 0 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* The language switch is a touch target on a small window even with a mouse (fix round 1, D7). The rows of the bar with a
	   microphone are the container block at the end of this file. */
	.basker-lang-cell[b-i83ucwanvv] {
		min-width: 44px;
		height: 44px;
	}
}

/* ---- the bar with a microphone, two rows (fix round 1 of step 6: D1, D3, D4, D8) ------------------------------------------------ */
/* Two rows whenever the conversation itself is 641 px wide or less: a phone, the 440 px side window (Figma 182:1512 part 12), a resized
   desktop window, an unfolded foldable next to the menu (Figma 182:2101 parts 12 to 15). The text box (or the recording strip) and Send
   (Stop) are the first row; the CS/EN switch at the left and the 52 px microphone at the right are the second; the hint is the third.
   The microphone spans the last two columns, so the third column is only as wide as Send or Stop, and all three sit flush right. This
   block comes last on purpose: it must win over the panel rules above of the same weight. */
@container basker-conversation (max-width: 641px) {
	.basker-input-bar-speech[b-i83ucwanvv] {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"box box send"
			"lang mic mic"
			"hint hint hint";
	}

	.basker-input-bar-speech > .basker-lang[b-i83ucwanvv],
	.basker-input-bar-speech > .basker-mic[b-i83ucwanvv] {
		margin-top: 10px;
	}

	.basker-input-bar-speech > .basker-send[b-i83ucwanvv],
	.basker-input-bar-speech > .basker-stop[b-i83ucwanvv],
	.basker-input-bar-speech > .basker-mic[b-i83ucwanvv] {
		justify-self: end;
	}

	.basker-input-bar-speech > .basker-mic[b-i83ucwanvv] {
		width: 52px;
		height: 52px;
	}

	.basker-input-bar-speech > .basker-mic[b-i83ucwanvv]  svg {
		width: 22px;
		height: 22px;
	}

	.basker-input-bar-speech > .basker-send[b-i83ucwanvv] {
		min-width: 44px;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: var(--radius-lg);
	}

	.basker-input-bar-speech .basker-send-text[b-i83ucwanvv],
	.basker-input-bar-speech .basker-strip-bars[b-i83ucwanvv] {
		display: none;
	}

	.basker-input-bar-speech > .basker-input[b-i83ucwanvv] {
		height: 44px;
	}

	.basker-input-bar-speech > .basker-stop[b-i83ucwanvv] {
		height: 44px;
		border-radius: var(--radius-lg);
	}
}

/* A narrow conversation (a phone cover screen, an unfolded foldable page): the strip gives up some padding so "Listening... speak now"
   fits beside the 80 px Stop (fix round 1, D8). */
@container basker-conversation (max-width: 360px) {
	.basker-strip[b-i83ucwanvv] {
		gap: 6px;
		padding-inline: 8px;
	}
}

/* A 320 px phone: the red dot gives its room to the label, so "Listening... speak now" is complete (fix round 2, D2). The clock and the
   red strip still say that it records. The page's bar is full-bleed on a phone (32 px wider than the conversation), the window's is not,
   hence two widths: only the 320 px phone loses the dot, a 344 px one keeps it. */
@container basker-conversation (max-width: 300px) {
	.basker-strip-dot[b-i83ucwanvv] {
		display: none;
	}
}

@container basker-conversation (max-width: 331px) {
	.basker-conversation-panel .basker-strip-dot[b-i83ucwanvv] {
		display: none;
	}
}

/* ---- read only: the Admin reads a saved conversation (issue 462, Figma 203:4989 part 6) ---------------------------------------- */
.basker-readonly-end[b-i83ucwanvv] {
	margin: 0;
	padding-top: 26px;
	text-align: center;
	font-size: 12px;
	color: var(--ink-faint);
}
/* /Components/Shared/Organisms/BaskerEarlierConversations.razor.rz.scp.css */
/* Issue 462 (epic 417 step 11): the list of the earlier Basker conversations. Figma 203:3812 (the column at the right of the page: 264 wide,
   padding 20/16, gap 12) and 203:6682 (the full-screen list on a phone: header 65, Close 40 x 40, the same body). Tokens only. */
.basker-earlier[b-e8kumbu2yq] {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	color: var(--ink);
}

.basker-earlier-aside[b-e8kumbu2yq] {
	height: 100%;
}

/* ---- the body: the button, the label, the lines, the retention line pinned to the bottom ------------------------------------- */
.basker-earlier-body[b-e8kumbu2yq] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-3);
	min-height: 0;
	padding: var(--space-5) var(--space-4);
}

.basker-earlier-new[b-e8kumbu2yq] {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 34px;
	padding: 8px 12px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--accent);
	cursor: pointer;
}

.basker-earlier-new:hover[b-e8kumbu2yq] {
	background: var(--accent-soft);
}

.basker-earlier-new[aria-disabled="true"][b-e8kumbu2yq] {
	opacity: 0.6;
	cursor: default;
}

.basker-earlier-new[aria-disabled="true"]:hover[b-e8kumbu2yq] {
	background: var(--surface);
}

.basker-earlier-label[b-e8kumbu2yq] {
	flex: 0 0 auto;
	margin: 0;
	padding: var(--space-2) 0 0 var(--space-1);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* The lines scroll inside the column; the retention line below them stays where it is. */
.basker-earlier-list[b-e8kumbu2yq] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-2);
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.basker-earlier-lines[b-e8kumbu2yq] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.basker-earlier-line[b-e8kumbu2yq] {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 8px 10px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--ink);
}

.basker-earlier-line:hover[b-e8kumbu2yq] {
	background: var(--surface-hover);
	color: var(--ink);
}

.basker-earlier-text[b-e8kumbu2yq] {
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.basker-earlier-date[b-e8kumbu2yq] {
	font-size: 12px;
	line-height: 1.2;
	color: var(--ink-faint);
}

/* The conversation shown in the middle (Figma 203:3812 part 3): light blue, the sentence bold, both lines in the accent. */
.basker-earlier-line.is-open[b-e8kumbu2yq] {
	background: var(--accent-soft);
}

.basker-earlier-line.is-open .basker-earlier-text[b-e8kumbu2yq] {
	font-weight: 700;
	color: var(--accent);
}

.basker-earlier-line.is-open .basker-earlier-date[b-e8kumbu2yq] {
	color: var(--accent);
}

/* A conversation is being answered or opened: the lines stay readable but do nothing. */
.basker-earlier-line[aria-disabled="true"][b-e8kumbu2yq] {
	opacity: 0.6;
	cursor: default;
}

.basker-earlier-more[b-e8kumbu2yq] {
	align-self: center;
	min-height: 34px;
	margin-top: var(--space-1);
	padding: 8px 14px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
}

.basker-earlier-more:hover:not(:disabled)[b-e8kumbu2yq] {
	background: var(--accent-soft);
}

.basker-earlier-more:disabled[b-e8kumbu2yq] {
	opacity: 0.6;
	cursor: default;
}

.basker-earlier-note[b-e8kumbu2yq] {
	margin: 0;
	padding: var(--space-2) 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ink-soft);
}

/* Always visible (decision D12): a thin line above it, a clock and the sentence in two lines, at the bottom of the column. */
.basker-earlier-retention[b-e8kumbu2yq] {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	gap: 6px;
	/* Pinned to the bottom also while the lines are not there yet (the prerendered shell, review n1 of issue 462). */
	margin: auto 0 0;
	padding: 10px var(--space-1) 0;
	border-top: 1px solid var(--line);
	font-size: 12px;
	line-height: 1.4;
	color: var(--ink-faint);
}

.basker-earlier-retention-icon[b-e8kumbu2yq] {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 13px;
	line-height: 1.4;
}

.basker-earlier-new:focus-visible[b-e8kumbu2yq],
.basker-earlier-line:focus-visible[b-e8kumbu2yq],
.basker-earlier-more:focus-visible[b-e8kumbu2yq],
.basker-earlier-close:focus-visible[b-e8kumbu2yq] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---- the overlay: the whole screen of a phone, no dimming, no shadow, no sheet (Figma 203:6682 state B, like the side window) ----- */
.basker-earlier-overlay[b-e8kumbu2yq] {
	position: fixed;
	inset: 0;
	/* The level of the Basker side window: above the menu and every sticky header, below the dialogs a person opens on purpose. */
	z-index: 1046;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--surface);
}

/* Focus lands on the list itself only when nothing inside can take it (DialogFocusScope); no ring on the container. */
.basker-earlier-overlay:focus[b-e8kumbu2yq] {
	outline: none;
}

.basker-earlier-header[b-e8kumbu2yq] {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 65px;
	padding: 12px 12px 12px var(--space-4);
	border-bottom: 1px solid var(--line);
}

.basker-earlier-title[b-e8kumbu2yq] {
	min-width: 0;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.basker-earlier-close[b-e8kumbu2yq] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
}

.basker-earlier-close:hover[b-e8kumbu2yq] {
	background: var(--line-soft);
	color: var(--ink);
}

.basker-earlier-overlay .basker-earlier-body[b-e8kumbu2yq] {
	padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
}

/* A touch screen: the lines and the buttons are at least 44 px tall. */
@media (pointer: coarse) {
	.basker-earlier-new[b-e8kumbu2yq],
	.basker-earlier-more[b-e8kumbu2yq] {
		min-height: 44px;
	}

	.basker-earlier-line[b-e8kumbu2yq] {
		min-height: 49px;
		justify-content: center;
	}
}

/* Review m4 of issue 462: on a phone and a touch screen the Close button of the full-screen list is a 44 px tap. */
@media (pointer: coarse), (max-width: 640.98px) {
	.basker-earlier-close[b-e8kumbu2yq] {
		width: 44px;
		height: 44px;
	}
}

/* Review P2: a short landscape phone (568 x 320, 640 x 360) keeps more room for the lines. */
@media (max-height: 480px) {
	.basker-earlier-header[b-e8kumbu2yq] {
		min-height: 48px;
		padding-block: 6px;
	}

	.basker-earlier-overlay .basker-earlier-body[b-e8kumbu2yq] {
		padding-top: var(--space-3);
		padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
	}
}
/* /Components/Shared/Organisms/BillingSourceCard.razor.rz.scp.css */
/* Billing card (issue 141) on ComplaintDetail and ServicePlanDetail. The card shell (DetailCard, side-card) styles the
   card, its title and the .kv rows. */

.form-error[b-z5vaue8vio] {
	margin: 6px 0 0;
	color: var(--danger-ink);
	font-size: 12px;
}

.empty-hint[b-z5vaue8vio] {
	margin: 0 0 10px;
	color: var(--ink-faint);
	font-size: 12px;
}

.statement-list[b-z5vaue8vio] {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.statement-row[b-z5vaue8vio] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12.5px;
}

.statement-row:last-child[b-z5vaue8vio] {
	border-bottom: none;
}

.statement-link[b-z5vaue8vio] {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}

.statement-link:hover[b-z5vaue8vio],
.statement-link:focus-visible[b-z5vaue8vio] {
	text-decoration: underline;
}

.statement-link-draft[b-z5vaue8vio] {
	font-style: italic;
	font-weight: 600;
}

.statement-of[b-z5vaue8vio] {
	margin-left: auto;
	color: var(--ink-faint);
	font-size: 11.5px;
}

/* An inline-size container, so the estimate tiles stack when the card itself is narrow (whatever the viewport). */
.unbilled[b-z5vaue8vio] {
	container-type: inline-size;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.unbilled-title[b-z5vaue8vio] {
	margin: 0 0 4px;
	color: var(--ink-faint);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.breakdown[b-z5vaue8vio] {
	margin-bottom: 10px;
}

.estimate-tiles[b-z5vaue8vio] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.estimate-tile[b-z5vaue8vio] {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
}

.estimate-tile-warranty[b-z5vaue8vio] {
	border-color: transparent;
	background: var(--info-soft);
	color: var(--info-ink);
}

.estimate-label[b-z5vaue8vio] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-soft);
}

.estimate-tile-warranty .estimate-label[b-z5vaue8vio] {
	color: var(--info-ink);
}

.estimate-value[b-z5vaue8vio] {
	overflow-wrap: anywhere;
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.estimate-currency[b-z5vaue8vio] {
	font-size: 11px;
	font-weight: 600;
}

.estimate-label[b-z5vaue8vio]  .estimate-icon {
	flex-shrink: 0;
}

.billed-hint[b-z5vaue8vio] {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border-radius: var(--radius-md);
	background: var(--success-soft);
	color: var(--success-ink);
	font-size: 12.5px;
}

.billed-hint[b-z5vaue8vio]  .billed-hint-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.create-btn[b-z5vaue8vio] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	white-space: normal;
}

.fine-print[b-z5vaue8vio] {
	margin: 8px 0 0;
	color: var(--ink-faint);
	font-size: 11px;
	line-height: 1.45;
}

/* A narrow card (a small phone, or the side column of a resized window): the two estimates stack. */
@container (max-width: 300px) {
	.estimate-tiles[b-z5vaue8vio] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 44 px targets for a finger. */
@media (pointer: coarse), (max-width: 640px) {
	.create-btn[b-z5vaue8vio] {
		min-height: 44px;
	}

	.statement-link[b-z5vaue8vio] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* Decision 181: priced items still waiting for a price. */
.needs-price .k[b-z5vaue8vio],
.needs-price .v[b-z5vaue8vio] {
	color: var(--danger-ink);
	font-weight: 600;
}
/* /Components/Shared/Organisms/ChargeItemsCard.razor.rz.scp.css */
/* Additional prices card (issue 139). The card shell (DetailCard) styles the card and its title. */

.badge[b-a9g84zmoq4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-default[b-a9g84zmoq4] { background: var(--line-soft); color: var(--ink-soft); }

/* Billable is the accent chip, Warranty the amber one (same tones as ComplaintDetail's "Warranty claim" badge). */
.mode-billable[b-a9g84zmoq4] { background: var(--accent-soft); color: var(--accent-strong); }
.mode-warranty[b-a9g84zmoq4] { background: var(--warning-soft); color: var(--warning-ink); }

.count-badge[b-a9g84zmoq4] {
    min-width: 24px;
    justify-content: center;
}

/* Info-tone hint: new items start as Warranty on a warranty claim. */
.charge-hint[b-a9g84zmoq4] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--info-soft);
    color: var(--info-ink);
    font-size: 12.5px;
}

.charge-hint[b-a9g84zmoq4]  .charge-hint-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.charge-hint span[b-a9g84zmoq4] {
    min-width: 0;
}

.charge-add[b-a9g84zmoq4] {
    margin: 4px 0 12px;
}

.form-error[b-a9g84zmoq4] {
    margin: 0;
    font-size: 12px;
    color: var(--danger-ink);
}

.charge-action-error[b-a9g84zmoq4] {
    margin-bottom: 8px;
}

.empty-hint[b-a9g84zmoq4] {
    color: var(--ink-faint);
    font-size: 13px;
    padding: 8px 0;
    margin: 0;
}

/* The table scrolls inside its own box on a narrow screen; the page never scrolls sideways. The wrap is an
   inline-size container so the inline edit row can stay as wide as the visible box (100cqw) while the table
   scrolls under it. position: relative keeps the visually-hidden "Actions" header (position: absolute) inside the
   scrolling box; without it, it sits at the table's far right edge and widens the whole page on a phone. */
.charge-table-wrap[b-a9g84zmoq4] {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    container-type: inline-size;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.charge-table[b-a9g84zmoq4] {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 12px;
}

.charge-table th[b-a9g84zmoq4] {
    padding: 7px 10px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.charge-table td[b-a9g84zmoq4] {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.charge-table tbody tr:last-child td[b-a9g84zmoq4] {
    border-bottom: none;
}

.charge-table .num[b-a9g84zmoq4] {
    text-align: right;
}

.charge-table .nowrap[b-a9g84zmoq4] {
    white-space: nowrap;
}

.col-item[b-a9g84zmoq4] {
    min-width: 180px;
}

.item-description[b-a9g84zmoq4] {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.item-part[b-a9g84zmoq4] {
    display: block;
    color: var(--ink-faint);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.col-actions[b-a9g84zmoq4] {
    width: 1%;
    white-space: nowrap;
}

/* The edit/remove buttons stay in view while a wide table scrolls sideways in its box. */
.charge-table .col-actions[b-a9g84zmoq4] {
    position: sticky;
    right: 0;
    background: var(--surface);
    box-shadow: -1px 0 0 var(--line-soft);
}

.charge-table th.col-actions[b-a9g84zmoq4] {
    background: var(--surface-muted);
}

.row-buttons[b-a9g84zmoq4] {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

.row-icon-btn[b-a9g84zmoq4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
}

.row-icon-btn:hover:not(:disabled)[b-a9g84zmoq4] {
    background: var(--accent-soft);
    color: var(--accent);
}

.row-icon-btn-danger:hover:not(:disabled)[b-a9g84zmoq4] {
    background: var(--danger-soft);
    color: var(--danger-ink);
}

.row-icon-btn:disabled[b-a9g84zmoq4] {
    opacity: 0.45;
    cursor: default;
}

.edit-row td[b-a9g84zmoq4] {
    padding: 10px;
    background: var(--surface-muted);
}

/* Pinned to the visible part of the scrolling box, as wide as that box (minus the cell padding). */
.edit-row-body[b-a9g84zmoq4] {
    position: sticky;
    left: 10px;
    width: calc(100cqw - 20px);
}

/* Issue 140: a refused remove, right under its row; sticky like the edit row so it stays in the visible part of a
   horizontally scrolled table on a phone. */
.row-error > td[b-a9g84zmoq4] {
    padding-top: 0;
}

.row-error-body[b-a9g84zmoq4] {
    position: sticky;
    left: 10px;
    width: calc(100cqw - 20px);
}

/* Decision 181: an item still waiting for a price reads red, with an inline "Set price" form under its row. */
.charge-table tr.needs-price > td[b-a9g84zmoq4] {
    background: var(--danger-soft);
}

.charge-table .price-missing[b-a9g84zmoq4] {
    color: var(--danger-ink);
    font-weight: 700;
}

.set-price-btn[b-a9g84zmoq4] {
    margin-right: 4px;
    white-space: nowrap;
}

.price-row td[b-a9g84zmoq4] {
    padding: 10px;
    background: var(--surface-muted);
}

.price-row-body[b-a9g84zmoq4] {
    position: sticky;
    left: 10px;
    width: calc(100cqw - 20px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row-controls[b-a9g84zmoq4] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.price-input[b-a9g84zmoq4] {
    width: 140px;
    max-width: 100%;
}

.needs-price-hint[b-a9g84zmoq4] {
    margin: 10px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--danger-ink);
}

.charge-totals[b-a9g84zmoq4] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 8px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}

.totals-sep[b-a9g84zmoq4] {
    color: var(--ink-faint);
}

/* Phones and other touch screens (unfolded foldables included): 44 px touch targets. */
@media (max-width: 640px), (pointer: coarse) {
    .set-price-btn[b-a9g84zmoq4],
    .price-row-controls .btn[b-a9g84zmoq4],
    .price-input[b-a9g84zmoq4] {
        min-height: 44px;
    }

    .row-icon-btn[b-a9g84zmoq4] {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    .charge-totals[b-a9g84zmoq4] {
        justify-content: flex-start;
    }
}
/* /Components/Shared/Organisms/ConfirmModal.razor.rz.scp.css */
/* Bootstrap's .modal is shown without its JS here (rendered only while Visible), so draw the backdrop ourselves. */
.confirm-modal[b-5fdh804giq] {
    background-color: var(--modal-backdrop);
}

/* Same compact density as the detail pages' own .btn override (Bootstrap's default .btn is ~38-40px tall). */
.modal-footer .btn[b-5fdh804giq] {
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Bootstrap's close button rings with a pale blue halo (about 1.3:1 on white): the accent pair the footer buttons and the
   planning dialogs' close buttons use (issue 195 E P-3). Forced colours: app.css outlines .btn-close. */
.modal-header .btn-close:focus-visible[b-5fdh804giq] {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

/* Touch screens: 44 px targets, the footer buttons and Bootstrap's 32 px close button (a mouse keeps the compact density). */
@media (pointer: coarse) {
    .modal-footer .btn[b-5fdh804giq] {
        height: 44px;
    }

    .modal-header .btn-close[b-5fdh804giq] {
        box-sizing: border-box;
        width: 44px;
        height: 44px;
    }
}
/* /Components/Shared/Organisms/DetailCard.razor.rz.scp.css */
.card[b-msbvk31lii] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.card h2[b-msbvk31lii] {
    font-size: 12.5px;
    margin: 0 0 10px;
    font-weight: 700;
}

.card h2 small[b-msbvk31lii] {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 2px;
}

/* An anchored title (e.g. /machines/1#complaints-card from a header badge) must not end up under the sticky
   PageHeader when jumped to. */
.card h2[id][b-msbvk31lii] {
    scroll-margin-top: 96px;
}

/* Below 1400px the sticky header wraps (actions on their own row), so it gets taller. */
@media (max-width: 1400px) {
    .card h2[id][b-msbvk31lii] {
        scroll-margin-top: 200px;
    }
}

@media (max-width: 349px) {
    .card h2[id][b-msbvk31lii] {
        scroll-margin-top: 270px;
    }
}

/* Field-grid card header: title + Edit Fields link on one row (the h2's bottom margin moves to the row). */
.card-head-row[b-msbvk31lii] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.card-head-row h2[b-msbvk31lii] {
    margin-bottom: 0;
}

.link-btn[b-msbvk31lii] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-btn:hover[b-msbvk31lii] {
    text-decoration: underline;
}

/* IconPencil is a child component - reaching its <svg> needs ::deep. */
.link-btn[b-msbvk31lii]  .icon-pencil {
    display: inline-flex;
    align-items: center;
    vertical-align: -1px;
}

/* Related-records card header: title + action button(s), vertically centred. */
.table-card-head[b-msbvk31lii] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

/* Sidebar summary card: key/value rows written by the host page. */
.side-card[b-msbvk31lii]  .kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12px;
}

.side-card[b-msbvk31lii]  .kv:last-child {
    border-bottom: none;
}

.side-card[b-msbvk31lii]  .kv .k {
    flex-shrink: 0;
    color: var(--ink-faint);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.side-card[b-msbvk31lii]  .kv .v {
    /* A long unbroken value (a 50-character serial, an e-mail) wraps instead of pushing the card off a phone
       screen (issue 112 A1). */
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
    text-align: right;
}
/* /Components/Shared/Organisms/FeedbackDialog.razor.rz.scp.css */
/* The Blazor shell of the report dialog (issue 237): the dim layer and the centred panel. The content (header, strip, note,
   images, steps, footer) is the shared wwwroot/css/feedback-dialog.css, which the JS-only fallback dialog uses too. Above
   the Bootstrap modals and the other custom dialogs (1050/1051), below the toast (1090). */
.fb-backdrop[b-t8wx10prfl] {
	position: fixed;
	inset: 0;
	background: var(--modal-backdrop);
	z-index: 1060;
}

.fb-dialog[b-t8wx10prfl] {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(700px, calc(100vw - 32px));
	z-index: 1061;
}

/* Phone: the full-screen sheet (the panel's own phone rules are in the shared file). */
@media (max-width: 576px) {
	.fb-dialog[b-t8wx10prfl] {
		inset: 0;
		transform: none;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
	}
}

/* ---- Suggest an improvement (issue 241; Figma 42:239 desktop, 43:828 phone). Tokens only. ---------------------------------- */

/* The amber tile of the header (the problem dialog's is red). */
.fb-tile-improvement[b-t8wx10prfl] {
	background: var(--warning-soft);
	color: var(--warning-ink);
}

/* The two columns. The left one is "contents": on a phone and on a narrow window its parts are plain children of the body, which
   lets the phone put the AI panel between the idea and the attachments. Wide and with the AI panel open, the body is a grid and each
   column scrolls on its own (the dialog widens to 1152 px, Figma 42:239). */
.fb-left[b-t8wx10prfl] {
	display: contents;
}

.fb-left > *[b-t8wx10prfl] {
	flex-shrink: 0;
}

.fb-ai[b-t8wx10prfl] {
	flex-shrink: 0;
	min-width: 0;
	padding: 14px;
	border-radius: var(--radius-lg);
	background: var(--accent-soft);
}

/* The privacy line of the footer sits on its own row above the buttons: beside three buttons in a 700 px dialog it was squeezed into
   three or four lines. In the two-column state (below) the footer is wide enough to keep it beside the buttons. */
.fb-improvement .fb-footer[b-t8wx10prfl] {
	flex-wrap: wrap;
	row-gap: 8px;
}

.fb-improvement .fb-privacy-footer[b-t8wx10prfl] {
	flex: 1 0 100%;
}

.fb-improvement .fb-actions[b-t8wx10prfl] {
	flex-wrap: wrap;
}

/* A landscape phone has about 300 px of height: the footer keeps only the buttons, and the privacy line moves to the end of the body
   (the "Ask AI" notice stays where it is). */
@media (max-height: 500px) {
	.fb-improvement .fb-privacy-footer[b-t8wx10prfl] {
		display: none;
	}

	.fb-improvement .fb-privacy-body[b-t8wx10prfl] {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.fb-dialog.fb-wide[b-t8wx10prfl] {
		width: min(1152px, calc(100vw - 48px));
	}

	.fb-cols.has-ai[b-t8wx10prfl] {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 520px;
		grid-template-rows: minmax(0, 1fr);
		gap: 0;
		padding: 0;
		overflow: hidden;
	}

	.fb-cols.has-ai > .fb-left[b-t8wx10prfl] {
		display: flex;
		flex-direction: column;
		gap: 14px;
		min-height: 0;
		padding: 20px;
		overflow-y: auto;
	}

	.fb-cols.has-ai > .fb-ai[b-t8wx10prfl] {
		min-height: 0;
		padding: 20px;
		border-radius: 0;
		overflow-y: auto;
	}

	/* "Use refined text" stays reachable with a long answer: the row sticks to the bottom of the scrolling column and takes the
	   column's own padding (a negative margin cancels it, so nothing moves while the answer fits). It sticks 20 px lower, over the
	   column's bottom padding, so no scrolled text shows under the buttons. */
	.fb-cols.has-ai > .fb-ai[b-t8wx10prfl]  .aip-actions {
		position: sticky;
		bottom: -20px;
		z-index: 1;
		margin: 0 -20px -20px;
		padding: 12px 20px 20px;
		background: var(--accent-soft);
	}

	.fb-improvement.fb-wide .fb-footer[b-t8wx10prfl] {
		flex-wrap: nowrap;
	}

	.fb-improvement.fb-wide .fb-privacy-footer[b-t8wx10prfl] {
		flex: 1 1 auto;
	}

	.fb-improvement.fb-wide .fb-actions[b-t8wx10prfl] {
		flex-wrap: nowrap;
	}
}

@media (min-width: 1024px) and (max-height: 500px) {
	.fb-improvement.fb-wide .fb-privacy-footer[b-t8wx10prfl] {
		display: none;
	}
}

/* Fields ------------------------------------------------------------------------------------------------------------ */
.fb-select-wrap[b-t8wx10prfl] {
	position: relative;
}

.fb-select[b-t8wx10prfl],
.fb-input[b-t8wx10prfl] {
	display: block;
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 13.5px;
}

.fb-select[b-t8wx10prfl] {
	padding-right: 32px;
	appearance: none;
	cursor: pointer;
}

.fb-select-chevron[b-t8wx10prfl] {
	position: absolute;
	top: 50%;
	right: 12px;
	display: inline-flex;
	transform: translateY(-50%);
	color: var(--ink-soft);
	pointer-events: none;
}

.fb-select:focus[b-t8wx10prfl],
.fb-input:focus[b-t8wx10prfl] {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.fb-input.is-invalid[b-t8wx10prfl] {
	border-color: var(--danger-ink);
}

.fb-select:disabled[b-t8wx10prfl],
.fb-input:disabled[b-t8wx10prfl] {
	opacity: .6;
	cursor: not-allowed;
}

.fb-improvement .fb-textarea[b-t8wx10prfl] {
	height: 120px;
}

.fb-linkish[b-t8wx10prfl] {
	display: inline;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent-strong);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.fb-linkish:hover[b-t8wx10prfl] {
	text-decoration: underline;
}

.fb-ai-used[b-t8wx10prfl] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Images and the steps strip share one row (Figma 42:239); the strip text is "N steps + context attached" and View opens the list. */
.fb-attach[b-t8wx10prfl] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fb-strip[b-t8wx10prfl] {
	display: flex;
	align-items: center;
	flex: 1 1 200px;
	gap: 8px;
	min-width: 0;
	padding: 8px 12px;
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	color: var(--ink);
	font-size: 12.5px;
}

.fb-strip-icon[b-t8wx10prfl] {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 14px;
	color: var(--ink-soft);
}

.fb-strip-text[b-t8wx10prfl] {
	min-width: 0;
}

.fb-strip-view[b-t8wx10prfl] {
	position: relative;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.fb-strip-view:hover[b-t8wx10prfl] {
	text-decoration: underline;
}

/* Touch: the link keeps its look, its tap area grows to 44 px (the strip doesn't get taller). */
@media (pointer: coarse), (max-width: 576px) {
	.fb-strip-view[b-t8wx10prfl]::after {
		content: "";
		position: absolute;
		inset: -14px -10px;
	}
}

@media (min-width: 577px) {
	.fb-improvement .fb-thumbs[b-t8wx10prfl] {
		align-items: center;
	}

	.fb-improvement .fb-thumb[b-t8wx10prfl],
	.fb-improvement .fb-add[b-t8wx10prfl] {
		width: 72px;
		height: 52px;
	}

	.fb-improvement .fb-add-text[b-t8wx10prfl] {
		display: none;
	}
}

/* "Ask AI to refine" and what it sends ----------------------------------------------------------------------------------- */
.fb-ask[b-t8wx10prfl] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fb-ask-button[b-t8wx10prfl] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 14px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--accent);
	font-size: 13.5px;
}

.fb-ask-button:hover:not(:disabled)[b-t8wx10prfl],
.fb-ask-button:focus-visible[b-t8wx10prfl] {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.fb-ask-button:disabled[b-t8wx10prfl] {
	border-color: var(--line-strong);
	background: var(--surface);
	color: var(--ink-faint);
	opacity: .7;
}

/* Touch and phone: the button is a full 44 px tall target. */
@media (max-width: 576px), (pointer: coarse) {
	.fb-ask-button[b-t8wx10prfl] {
		min-height: 44px;
	}
}

.fb-ask-hint[b-t8wx10prfl] {
	font-size: 12px;
	color: var(--ink-faint);
}

.fb-ai-notice[b-t8wx10prfl] {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

.fb-ai-notice[b-t8wx10prfl]  svg {
	flex-shrink: 0;
	margin-top: 1px;
	font-size: 14px;
	color: var(--success-ink);
}

/* Footer: Cancel is a quiet text button, "Save draft" the secondary one, "Submit proposal" the primary one. */
.fb-actions .fb-cancel-quiet[b-t8wx10prfl] {
	border-color: transparent;
	background: transparent;
	color: var(--ink-soft);
}

.fb-actions .fb-cancel-quiet:hover:not(:disabled)[b-t8wx10prfl],
.fb-actions .fb-cancel-quiet:focus-visible[b-t8wx10prfl] {
	border-color: transparent;
	background: var(--line-soft);
	color: var(--ink);
}

.fb-actions .fb-save-draft[b-t8wx10prfl] {
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
}

.fb-actions .fb-save-draft:hover:not(:disabled)[b-t8wx10prfl],
.fb-actions .fb-save-draft:focus-visible[b-t8wx10prfl] {
	border-color: var(--line-strong);
	background: var(--surface-muted);
	color: var(--ink);
}

.fb-actions .fb-save-draft:disabled[b-t8wx10prfl] {
	border-color: var(--line-strong);
	background: var(--surface);
	color: var(--ink);
	opacity: .5;
}

.fb-actions .fb-submit[b-t8wx10prfl] {
	font-weight: 700;
}

.fb-improvement .fb-actions .btn[b-t8wx10prfl] {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Phone: the panel sits between the idea and the attachments, the steps strip follows (Figma 43:828); the footer stacks the
   primary button full width above "Save draft" and "Cancel" at half width each. */
@media (max-width: 576px) {
	.fb-improvement .fb-textarea[b-t8wx10prfl] {
		height: 78px;
		min-height: 70px;
	}

	.fb-attach[b-t8wx10prfl],
	.fb-attach-steps[b-t8wx10prfl] {
		order: 2;
	}

	.fb-privacy-body[b-t8wx10prfl] {
		order: 3;
	}

	.fb-send-error[b-t8wx10prfl] {
		order: 4;
	}

	.fb-strip[b-t8wx10prfl] {
		flex: 1 0 100%;
	}

	.fb-actions[b-t8wx10prfl] {
		flex-wrap: wrap;
	}

	.fb-actions .fb-submit[b-t8wx10prfl] {
		order: -1;
		flex: 1 0 100%;
	}

	.fb-actions .fb-save-draft[b-t8wx10prfl] {
		order: 1;
	}

	.fb-actions .fb-cancel-quiet[b-t8wx10prfl] {
		order: 2;
	}

	/* Figma 43:828: the sticky footer has 20 px under the buttons. */
	.fb-improvement .fb-footer[b-t8wx10prfl] {
		padding-bottom: 20px;
	}
}
/* /Components/Shared/Organisms/MobileCardList.razor.rz.scp.css */
/* Cards are hidden on desktop; the table wrapper takes no box of its own (display: contents), so the table lays
   out exactly as if the host page had written it directly. */
.mobile-list[b-k2zafebh5f] {
    display: none;
}

.mobile-list-desktop[b-k2zafebh5f] {
    display: contents;
}

/* One block per supported Breakpoint (media queries can't take a parameter). 1400px is intentionally far wider
   than any phone: it also switches a resized desktop window to cards instead of squeezing the table. */
@media (max-width: 1400px) {
    .mobile-list.bp-1400[b-k2zafebh5f] {
        display: block;
    }

    .mobile-list-desktop.bp-1400[b-k2zafebh5f] {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mobile-list.bp-1024[b-k2zafebh5f] {
        display: block;
    }

    .mobile-list-desktop.bp-1024[b-k2zafebh5f] {
        display: none;
    }
}

@media (max-width: 780px) {
    .mobile-list.bp-780[b-k2zafebh5f] {
        display: block;
    }

    .mobile-list-desktop.bp-780[b-k2zafebh5f] {
        display: none;
    }
}

.m-card[b-k2zafebh5f] {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--m-card-radius, 9px);
    padding: var(--m-card-padding, 10px 12px);
    margin-bottom: var(--m-card-spacing, 7px);
    text-decoration: none;
    color: inherit;
}

.m-card:hover[b-k2zafebh5f] {
    border-color: var(--accent);
}

/* A card that opens its item in place (a div with role="link", see MobileCardList.razor). */
.m-card-action[b-k2zafebh5f] {
    cursor: pointer;
}

/* The card's content comes from the host's CardTemplate, so these need ::deep. */
.m-card[b-k2zafebh5f]  .m-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* min-width: 0 so a long title truncates instead of overflowing a narrow phone. */
.m-card[b-k2zafebh5f]  .m-card-title {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: var(--m-card-title-size, 13.5px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-card[b-k2zafebh5f]  .m-card-sub {
    display: flex;
    flex-direction: var(--m-card-sub-direction, column);
    justify-content: var(--m-card-sub-justify, normal);
    gap: var(--m-card-sub-gap, 2px);
    color: var(--ink-soft);
    font-size: 12.5px;
    margin-top: 4px;
}

.m-card[b-k2zafebh5f]  .m-card-meta {
    margin-top: 6px;
}

.m-card[b-k2zafebh5f]  .m-card-notes {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Shared/Organisms/PageErrorBoundary.razor.rz.scp.css */
/* The error card PageErrorBoundary shows in place of a page body that threw (issue 100): a bordered card in the
   design-system palette, danger-tinted icon tile, then title, explanation and the Retry / Go home actions. */
.page-error[b-3k04di94a9] {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 640px;
    margin: 24px 0;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--danger-line);
    border-radius: 10px;
}

.page-error-icon[b-3k04di94a9] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--danger-soft);
    color: var(--danger-ink);
    font-size: 18px;
}

.page-error-body[b-3k04di94a9] {
    min-width: 0;
}

.page-error-title[b-3k04di94a9] {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

/* The error code line (ErrorCodeLabel, issue 232) follows with its own 12px bottom margin. */
.page-error-text[b-3k04di94a9] {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.page-error-actions[b-3k04di94a9] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The report button's icon sits before its words (Figma 42:2). */
.page-error-report[b-3k04di94a9] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Phones and foldable cover screens: stack the icon above the text so the buttons keep their full width. */
@media (max-width: 480px) {
    .page-error[b-3k04di94a9] {
        flex-direction: column;
        gap: 12px;
        margin: 16px 0;
        padding: 16px;
    }
}
/* /Components/Shared/Organisms/PageHeader.razor.rz.scp.css */
.eyebrow[b-e87f8rsjjw] {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---- Detail pages: sticky header, like a spreadsheet's frozen panes ---- */

/* A rounded, bordered card like every other card on the page - not a full-bleed banner - while staying pinned to
   the top on scroll. */
.topbar-sticky[b-e87f8rsjjw] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
}

.topbar-sticky .eyebrow[b-e87f8rsjjw] {
    margin: 0 0 4px;
}

.topbar-identity[b-e87f8rsjjw] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.back-link[b-e87f8rsjjw] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    margin-bottom: 8px;
}

.back-link:hover[b-e87f8rsjjw] {
    color: var(--accent);
}

.title-row[b-e87f8rsjjw] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.title-row h1[b-e87f8rsjjw] {
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.01em;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The host page's action bar (passed in through Actions, so ::deep): one .actions row, or an .actions-wrap
   stacking .actions over an .actions-secondary row. */
.topbar-sticky[b-e87f8rsjjw]  .actions-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.topbar-sticky[b-e87f8rsjjw]  .actions,
.topbar-sticky[b-e87f8rsjjw]  .actions-secondary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-sticky[b-e87f8rsjjw]  .actions-secondary {
    justify-content: flex-end;
}

.topbar-sticky[b-e87f8rsjjw]  .actions .btn,
.topbar-sticky[b-e87f8rsjjw]  .actions-secondary .btn {
    white-space: nowrap;
}

/* 1400px: the detail pages' compact single-column switch - also covers a resized desktop window. */
@media (max-width: 1400px) {
    .topbar-sticky[b-e87f8rsjjw] {
        flex-direction: column;
    }

    .topbar-sticky[b-e87f8rsjjw]  .actions-wrap {
        width: 100%;
        align-items: stretch;
    }

    .topbar-sticky[b-e87f8rsjjw]  .actions,
    .topbar-sticky[b-e87f8rsjjw]  .actions-secondary {
        width: 100%;
    }

    .topbar-sticky[b-e87f8rsjjw]  .actions .btn,
    .topbar-sticky[b-e87f8rsjjw]  .actions-secondary .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .topbar-sticky[b-e87f8rsjjw] {
        padding: 12px;
    }
}

/* Extra-narrow tier: foldable cover screens (~280px) - the action buttons wrap cleanly instead of overflowing. */
@media (max-width: 349px) {
    .topbar-sticky[b-e87f8rsjjw] {
        padding: 10px 12px;
    }

    .topbar-sticky[b-e87f8rsjjw]  .actions .btn,
    .topbar-sticky[b-e87f8rsjjw]  .actions-secondary .btn {
        font-size: 12px;
        padding: 0 10px;
        height: 32px;
    }
}
/* /Components/Shared/Organisms/PlanPriceEstimateDialog.razor.rz.scp.css */
/* Issue 289, epic 281 (pictures docs/specs/pictures/289-price-estimate-desktop.png and -phone.png): the price estimate window of a
   service plan. Built like the line window (PlanLineWindow): the dim layer and the window are siblings, at Bootstrap's modal level
   (window 1055, layer 1054). A centred 640 px window with a table above 640 px; a full-screen sheet with the head and the buttons
   fixed and one block per row at 640 px and below. Colours only through app.css tokens; the page behind is locked in app.css.
   The dim layer, the window and the phone sheet use the visible viewport (inset 0), and the page lock in app.css keeps no scrollbar
   gutter, so with classic scrollbars there is no light strip beside the dim layer and nothing is cut off (fix round 2, D-1: a box
   wider than the visible viewport was clipped, and a fixed box isn't painted over a stable gutter). */

.estimate-backdrop[b-60qxoef7re] {
	position: fixed;
	inset: 0;
	z-index: 1054;
	background: var(--modal-backdrop);
	touch-action: none;
	overscroll-behavior: none;
}

/* Centred through inset 0 and auto margins (no transform: it blurs text on some screens). fit-content: with both top and bottom set
   the height would stretch to the screen. The head and the buttons keep their size; the body scrolls. */
.estimate-window[b-60qxoef7re] {
	position: fixed;
	inset: 0;
	z-index: 1055;
	display: flex;
	flex-direction: column;
	width: min(640px, calc(100% - 32px));
	height: fit-content;
	max-height: calc(100dvh - 32px);
	margin: auto;
	background: var(--surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.4;
}

.estimate-window:focus[b-60qxoef7re] {
	outline: none;
}

/* While loading, the window already has most of its height, so it doesn't jump from a small box to a tall one (fix round 1, D-3).
   Wide windows only: the phone sheet is full height anyway. min() keeps it inside a short window (min-height beats max-height). */
@media (min-width: 641px) {
	.estimate-window[data-state="loading"][b-60qxoef7re] {
		min-height: min(calc(20 * var(--space-6)), calc(100dvh - 32px));
	}
}

/* ---- Head: "SERVICE PLAN 123", "Price estimate", the X ---- */
.estimate-head[b-60qxoef7re] {
	display: flex;
	flex: none;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 20px 12px;
	border-bottom: 1px solid var(--line);
}

.estimate-heading[b-60qxoef7re] {
	flex: 1 1 auto;
	min-width: 0;
}

.estimate-eyebrow[b-60qxoef7re] {
	margin: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.estimate-title[b-60qxoef7re] {
	margin: 2px 0 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}

/* A 32 px box for the mouse too (Bootstrap's own is 20 px, under the 24 px minimum; fix round 1, D-4); the glyph stays centred. */
.estimate-x[b-60qxoef7re] {
	flex: none;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: -2px -6px 0 0;
}

.estimate-x:focus-visible[b-60qxoef7re] {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
}

/* ---- Body ---- */
.estimate-body[b-60qxoef7re] {
	flex: 1 1 auto;
	min-height: 0;
	padding: 14px 20px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* The body is a keyboard stop (it scrolls): an inset ring, so the window's edge doesn't clip it. */
.estimate-body:focus-visible[b-60qxoef7re] {
	outline: 2px solid var(--accent-strong);
	outline-offset: -2px;
}

/* The sentence the issue asks for: in a light accent box, bold, so nobody takes the numbers for a price. */
.estimate-sentence[b-60qxoef7re] {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--bs-primary-border-subtle);
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-weight: 700;
}

.estimate-basis[b-60qxoef7re] {
	margin: 8px 0 12px;
	font-size: 12px;
	color: var(--ink-faint);
}

.estimate-error[b-60qxoef7re] {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--danger-line);
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--danger-ink);
}

/* "Try again" under the error (fix round 1, D-6). */
.estimate-retry[b-60qxoef7re] {
	margin-top: var(--space-2);
}

/* ---- Wide: the table ---- */
.estimate-table[b-60qxoef7re] {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.estimate-table th[b-60qxoef7re] {
	padding: 7px 8px;
	border-bottom: 1px solid var(--line);
	background: var(--surface-muted);
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 400;
	text-align: left;
}

.estimate-table td[b-60qxoef7re] {
	padding: 8px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}

.estimate-table .num[b-60qxoef7re] {
	text-align: right;
	white-space: nowrap;
}

.item-cell[b-60qxoef7re] {
	overflow-wrap: anywhere;
}

.item-name[b-60qxoef7re] {
	color: var(--ink);
}

.item-detail[b-60qxoef7re] {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--ink-faint);
	overflow-wrap: anywhere;
}

.is-missing[b-60qxoef7re] {
	color: var(--danger-ink);
}

/* Issue 336 point 7: the plan has travel but no kilometres can be counted (no map position for the plan's address or the
   company address): the number's cell is red, in the table and in the phone block. Forced colours keep the text; a
   transparent outline keeps the box visible there. D3 fix round 1 (D-5): a thin red border and a bold dash, so the cell is
   easy to see on a phone too. */
.estimate-table td.km-missing[b-60qxoef7re],
.estimate-block .km-missing[b-60qxoef7re] {
	border: 1px solid var(--danger-line);
	background: var(--danger-soft);
	color: var(--danger-ink);
	font-weight: 700;
	outline: 1px solid transparent;
}

/* On the phone the cell is a box at least as wide as an amount ("6,706.00"), not a small chip around the dash. */
.estimate-block .km-missing[b-60qxoef7re] {
	display: inline-flex;
	justify-content: center;
	min-width: 9ch;
	padding: 2px 8px;
	border-radius: var(--radius-xs);
	font-variant-numeric: tabular-nums;
}

/* The "Warranty" tag after the name; the row's amount is struck through and followed by what the customer pays (0.00). A
   transparent border keeps the pill's shape in forced colours. */
.warranty-tag[b-60qxoef7re] {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--success-soft);
	color: var(--success-ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	vertical-align: 1px;
}

.struck[b-60qxoef7re] {
	color: var(--ink-faint);
}

/* ---- Phone: one block per row; hidden on a wide window ---- */
.estimate-blocks[b-60qxoef7re] {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: tabular-nums;
}

.estimate-block[b-60qxoef7re] {
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
}

.block-line[b-60qxoef7re] {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
}

.block-line .item-name[b-60qxoef7re] {
	min-width: 0;
	overflow-wrap: anywhere;
}

.block-amount[b-60qxoef7re] {
	flex: none;
	white-space: nowrap;
	text-align: right;
}

.block-amount .struck[b-60qxoef7re] {
	font-weight: 400;
}

/* ---- Totals: right on a wide window, full width on a phone ---- */
.estimate-totals[b-60qxoef7re] {
	width: min(300px, 100%);
	margin: 10px 0 0 auto;
	font-variant-numeric: tabular-nums;
}

.total-line[b-60qxoef7re] {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
}

.total-line dt[b-60qxoef7re] {
	font-weight: 400;
	color: var(--ink);
}

.total-line dd[b-60qxoef7re] {
	margin: 0;
	white-space: nowrap;
	text-align: right;
}

.total-line.is-grand[b-60qxoef7re] {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	font-size: 16px;
}

.total-line.is-grand dt[b-60qxoef7re],
.total-line.is-grand dd[b-60qxoef7re] {
	font-weight: 700;
}

.total-line.is-warranty dt[b-60qxoef7re],
.total-line.is-warranty dd[b-60qxoef7re] {
	color: var(--ink-soft);
}

/* The planner's hints (no lines, no map position, a rate of 0, …): one notice each, like the page's no-schedule warning. */
.estimate-hint[b-60qxoef7re] {
	margin: 12px 0 0;
	padding: 8px 10px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-md);
	background: var(--warning-soft);
	color: var(--warning-ink);
	overflow-wrap: anywhere;
}

.estimate-hint + .estimate-hint[b-60qxoef7re] {
	margin-top: 6px;
}

/* ---- Buttons: Close (outline) and Download PDF (primary) on the right ---- */
.estimate-actions[b-60qxoef7re] {
	display: flex;
	flex: none;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px;
	border-top: 1px solid var(--line);
}

.estimate-actions .btn[b-60qxoef7re] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	margin: 0;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

/* The outlined look through Bootstrap's own variables, so hover, active and focus still change it. The accent ink is the picture's. */
.estimate-actions .btn-outline-secondary[b-60qxoef7re] {
	--bs-btn-bg: var(--surface);
	--bs-btn-color: var(--accent);
	--bs-btn-border-color: var(--accent);
	--bs-btn-hover-bg: var(--accent-soft);
	--bs-btn-hover-color: var(--accent-strong);
	--bs-btn-hover-border-color: var(--accent-strong);
	--bs-btn-active-bg: var(--accent-soft);
	--bs-btn-active-color: var(--accent-strong);
	--bs-btn-active-border-color: var(--accent-strong);
}

/* ---- 640 px and below: a full-screen sheet over the visible viewport (D-1). The head and the buttons stay; the rows are blocks; the buttons
   are stacked full width in their DOM order, Close above Download PDF, so the Tab order runs top to bottom (fix round 1, F-N8: the
   picture had Download PDF on top through a reversed column, which reversed the focus order); the home indicator's safe area under
   them. ---- */
@media (max-width: 640.98px) {
	.estimate-window[b-60qxoef7re] {
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		margin: 0;
		border-radius: 0;
		padding-top: env(safe-area-inset-top);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.estimate-head[b-60qxoef7re] {
		padding: 14px 16px 10px;
	}

	.estimate-title[b-60qxoef7re] {
		font-size: 18px;
	}

	.estimate-body[b-60qxoef7re] {
		padding: 12px 16px 16px;
	}

	.estimate-table[b-60qxoef7re] {
		display: none;
	}

	.estimate-blocks[b-60qxoef7re] {
		display: block;
	}

	.estimate-totals[b-60qxoef7re] {
		width: 100%;
		margin-top: 10px;
	}

	.estimate-actions[b-60qxoef7re] {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px 16px;
	}

	.estimate-actions .btn[b-60qxoef7re] {
		width: 100%;
	}
}

/* A short phone window (landscape): the two buttons side by side in the same order, so the body keeps room (fix round 1, D-2). */
@media (max-width: 640.98px) and (max-height: 480px) {
	.estimate-actions[b-60qxoef7re] {
		flex-direction: row;
		padding-bottom: 12px;
	}

	.estimate-actions .btn[b-60qxoef7re] {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}

/* 44 px targets on a phone and on a touch screen; Bootstrap's close button keeps its glyph centred in the larger box. */
@media (max-width: 640.98px), (pointer: coarse) {
	.estimate-actions .btn[b-60qxoef7re],
	.estimate-retry[b-60qxoef7re] {
		min-height: 44px;
	}

	.estimate-x[b-60qxoef7re] {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		margin: -6px -10px 0 0;
	}
}

@media (forced-colors: active) {
	.estimate-window[b-60qxoef7re] {
		border: 1px solid CanvasText;
	}

	.warranty-tag[b-60qxoef7re] {
		border-color: CanvasText;
	}
}
/* /Components/Shared/SettingsTabs.razor.rz.scp.css */
/* The heading and the tab row are as wide as the inside of the Settings column (640px less its 12px side padding) on
   both pages, so they look the same on each tab. */
.settings-header[b-bbitg9umxx],
.settings-tabs[b-bbitg9umxx] {
	max-width: 616px;
}

.settings-header[b-bbitg9umxx] {
	margin-bottom: var(--space-3);
}

.eyebrow[b-bbitg9umxx] {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.settings-tabs[b-bbitg9umxx] {
	margin-bottom: var(--space-4);
}

/* The two tabs always share one row; on a narrow screen they split it and a long label breaks inside its tab. */
.settings-tabs .nav-tabs[b-bbitg9umxx] {
	flex-wrap: nowrap;
}

.settings-tabs .nav-item[b-bbitg9umxx] {
	display: flex;
	min-width: 0;
}

/* The active tab is marked by colour and the tab border only: a bolder weight would change its width on every switch. */
.settings-tabs .nav-link[b-bbitg9umxx] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: var(--ink-soft);
	text-align: center;
	overflow-wrap: anywhere;
}

.settings-tabs .nav-link:hover[b-bbitg9umxx] {
	color: var(--accent);
}

.settings-tabs .nav-link:focus-visible[b-bbitg9umxx] {
	box-shadow: 0 0 0 4px var(--accent-ring);
}

/* A 2px accent line on top of the active tab (inset, so the width stays the same). */
.settings-tabs .nav-link.active[b-bbitg9umxx] {
	color: var(--accent);
	box-shadow: inset 0 2px 0 var(--accent);
}

.settings-tabs .nav-link.active:focus-visible[b-bbitg9umxx] {
	box-shadow: inset 0 2px 0 var(--accent), 0 0 0 4px var(--accent-ring);
}

@media (pointer: coarse), (max-width: 640px) {
	.settings-tabs .nav-link[b-bbitg9umxx] {
		min-height: 44px;
	}
}

@media (max-width: 400px) {
	.settings-tabs .nav-item[b-bbitg9umxx] {
		flex: 1 1 0;
	}

	.settings-tabs .nav-link[b-bbitg9umxx] {
		padding-inline: var(--space-2);
		font-size: 14px;
	}
}
