:root {
    --env-banner-height: 0px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ValidationSummary on the account pages renders its <ul> with the .alert classes
   so validation errors appear in the same colored box as status messages; drop the
   list bullets the <ul> would otherwise show inside the box. */
ul.validation-alert {
    list-style: none;
}

ul.validation-alert li + li {
    margin-top: 0.25rem;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
    /* Optical alignment: at this size a capital's left side bearing is ~0.05em
       (2px), making the title look indented next to body-size text below it. */
    margin-left: -0.05em;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.password-policy-hint {
    /* The title block above contributes 25px of built-in spacing (its own and its
       header's padding plus the layout flex gap) plus line-height slack; pull up
       through it so the visible gap above matches the 0.75rem below. */
    margin-top: -1.25rem;
    margin-bottom: 0.75rem;
    color: var(--bs-gray-700);
}

/* Full-screen blocking scrim shared by the idle-logoff warning overlay below and
   the account submit busy overlay (account-submit.css). One recipe so the dim
   level, stacking, and geometry cannot drift between them. Deliberately sets
   no `display`: each consumer controls its own visibility. */
.fullscreen-scrim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Idle-logoff warning modal (IdleTimeoutProvider.razor). Global stylesheet rather
   than scoped CSS so styles apply under dotnet watch, which does not regenerate the
   scoped-CSS bundle for newly added .razor.css files. The element also carries
   .fullscreen-scrim; it is conditionally rendered, so it is simply flex when present. */
.idle-timeout-overlay {
    display: flex;
}

.idle-timeout-modal {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.idle-timeout-modal h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--bs-body-color);
}

.idle-timeout-modal p {
    margin: 0 0 0.25rem;
    color: var(--bs-gray-700);
    font-size: 0.95rem;
}

.idle-timeout-countdown {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-warning);
    margin: 0.5rem 0 1.5rem;
    font-variant-numeric: tabular-nums;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

/* Treat tablet-width screens (≤1024px, e.g. iPads) as "mobile": hide the desktop-only
   header controls and show the in-drawer mobile equivalents instead. Breakpoint is 1024
   (not 768) so iPad-class devices get the compact layout. */
@media (max-width: 1024px) {
    .display-desktop {
        display: none;     /* Desktop-only elements (e.g. header user info / logout). */
    }

    .display-mobile {
        display: block;    /* Mobile-only elements (e.g. the in-drawer user menu). */
    }

}

/* Hide LastPass icons globally - 2024 selectors */
div[data-lastpass-icon-root],
div[data-lastpass-root],
span[data-lastpass-icon-root],
span[data-lastpass-root] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Fixed form action footer - used for form save/cancel buttons */
.form-action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
    z-index: 1020;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.form-action-footer .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* When desktop sidebar is open (MudDrawer mini-variant), offset footer past the 240px sidebar */
@media (min-width: 769px) {
    .panel-open .form-action-footer {
        left: 240px;
    }
}

/* Spacer so content isn't hidden behind fixed footer */
.form-action-footer-spacer {
    height: 10rem;
}

/* Larger spacer when validation errors are expanded */
.form-action-footer-spacer.validation-expanded {
    height: 28rem;
}

/* Environment banner - displays current environment at top of page */
.environment-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    text-align: center;
    padding: 0.25rem 1rem;
    font-size: 0.6125rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

.environment-banner.env-dev {
    background-color: #0d6efd;
}

.environment-banner.env-qa {
    background-color: #fd7e14;
}

.environment-banner.env-test {
    background-color: #198754;
}

.environment-banner.env-uat {
    background-color: #6f42c1;
}

.environment-banner-spacer {
    height: 1.25rem;
    flex-shrink: 0;
}

/* ============================================================
   Mobile-first auth page adaptations (phones ≤480px)
   - 48px touch targets for field workers
   - Scaled typography and tightened spacing
   - Vertically stacked links with large tap areas
   ============================================================ */
@media (max-width: 480px) {
    /* Title scaling */
    .title {
        gap: 0.25rem;
        padding-bottom: 0.375rem;
    }

    .title-header-text {
        font-size: 1.75rem;
        line-height: 2.125rem;
        padding: 0.125rem 0;
    }

    .title-content-text {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .title-content-text-secondary {
        font-size: 1rem;
    }

    /* Spacing */
    .block-content {
        gap: 0.5rem;
    }

    /* Links — stack vertically with large tap targets */
    .links-container {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .links-container a {
        display: flex;
        min-height: 2.75rem;
        align-items: center;
        justify-content: center;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--bs-primary);
    }

    .links-container .dot {
        display: none;
    }

    /* "Or" divider — hide on mobile */
    .or {
        display: none;
    }

    .links-area {
        padding-top: 0.25rem;
    }

    /* Status messages */
    .block-content .alert {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
        border-radius: 0.375rem;
        line-height: 1.5;
    }

    /* CTA prominence on static pages (Lockout, AccessDenied) */
    .cta-links-container {
        margin-top: 0.75rem;
    }

    .cta-links-container a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3.5rem;
        padding: 0 1.5rem;
        font-size: 1.125rem;
        background-color: var(--bs-primary);
        color: var(--bs-white) !important;
        border-radius: 0.375rem;
        font-weight: 600;
        text-decoration: none;
        width: 100%;
    }
}

/* MudDataGrid / MudTable base styling (.eb-mud-grid)
   ──────────────────────────────────────────────────
   Modern SaaS grid treatment: rounded container with a subtle shadow,
   a muted uppercase header, light row dividers, soft hover, and branded
   links/action icons. Colors reference the --mud-palette-* variables that
   MudThemeProvider emits from AppTheme.cs, so a theme change there propagates
   straight to the grid — AppTheme.cs is the single source of truth. */

.eb-page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.eb-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.eb-record-count {
    background-color: var(--mud-palette-gray-lighter);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 9999px;
    color: var(--mud-palette-gray-darker);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.eb-grid-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.eb-grid-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Once wrapped, margin-left: auto would strand the actions away from the filters they act on. */
@media (max-width: 768px) {
    .eb-grid-toolbar-actions {
        margin-left: 0;
    }
}

/* Keep .mud-picker qualified: MudPicker copies Class onto the inner column-flex input too, where an
   unqualified `flex: 0 1 20rem` resolves as a 320px HEIGHT. */
.mud-picker.eb-grid-date-range {
    max-width: 20rem;
    flex: 0 1 20rem;
}

/* Container. Grows to its rows and shrinks to the fold: basis auto measures the content, and shrink —
   against the definite height AuthenticatedLayout gives .mud-main-content — is what bounds it. Not
   flex: 1, which filled unconditionally and left a grid of four rows holding a viewport of blank card.
   A calc(100vh - Npx) cannot replace this: the page header and grid toolbar above it are flex-wrap and
   get taller on narrow screens.

   min-height: 0 so the shrink can happen at all — a flex item's automatic minimum size otherwise floors it
   at its content. The floor that keeps a squeezed grid usable is in the short-viewport media query below
   rather than here, because a flat floor is itself the bug this rule fixes: filter a grid down to three
   rows and a 12rem floor left 90px of blank card under the last one. */
.eb-mud-grid.mud-table {
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
}

/* Below this height the page header and toolbar can leave the grid a sliver, and because the card clips
   for its border radius, a floor on the scroll container inside it is invisible — the card shrinks past it
   and cuts the rows off with nothing overflowing the pane to scroll (measured at 330px tall: rows cut 43px
   below the card's edge). The floor goes on the card, so it overflows the pane and the pane's own
   overflow-y takes over. Scoped to short viewports because at a normal height it would pad a small grid
   with blank card instead. */
@media (max-height: 700px) {
    .eb-mud-grid.mud-table {
        min-height: 12rem;
    }
}

/* Shrinking the container is what bounds the scroll region MudBlazor needs for Virtualize and a sticky
   FixedHeader, so Height="100%" stays on the grids that use those; letting that inline 100% win instead
   would overflow the root by the height of an in-grid ToolBarContent. Basis auto so it measures its rows;
   the inline height:100% becomes cyclic against a content-sized parent and resolves to auto, so it no
   longer fights the flex box.

   Precondition: .eb-mud-grid must sit in a flex column of definite height, which every consumer does
   today by being a page rendered into .page-body. Without one nothing shrinks and the grid degrades to
   its natural height — the page then scrolls, which is the acceptable failure.

   No floor here: the card above carries it, and one here only fights it — the card clips, so a floor
   inside it just pushes the rows past the clip. Shrinking to nothing is fine because this box scrolls.

   min-width, because MudDataGrid writes an inline width: max-content here whenever HorizontalScrollbar
   or ColumnResizeMode.Container is on — and .mud-table-root is width: 100%, so 100% of a max-content box
   is the intrinsic column width and the table stops short of the card it sits in. A floor of 100% keeps
   the table spanning the card while leaving max-content free to grow past it. */
.eb-mud-grid .mud-table-container {
    overflow-y: auto;
    border-radius: inherit;
    flex: 0 1 auto;
    min-width: 100%;
}

/* The toolbar must not absorb the shrink meant for the rows. */
.eb-mud-grid .mud-table-toolbar {
    flex: 0 0 auto;
}

/* MudBlazor locks scrolling behind a dialog by putting overflow: hidden on <body>, which stopped working
   the moment .mud-main-content became the scroller instead of the window — the page scrolled under the
   modal. Both class names are MudBlazor's: it picks the -no-padding variant when no scrollbar gutter
   needs compensating. */
body.scroll-locked .mud-main-content,
body.scroll-locked-no-padding .mud-main-content {
    overflow: hidden;
}

/* Header */
.eb-mud-grid .mud-table-head .mud-table-row .mud-table-cell {
    background-color: var(--mud-palette-gray-lighter);
    border-bottom: 1px solid var(--mud-palette-table-lines);
    color: var(--mud-palette-gray-darker);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Filter inputs sit inside the head, so they'd otherwise inherit its uppercase bold treatment. */
.eb-mud-grid .mud-table-head .mud-input input {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    font-size: 0.8125rem;
}

/* Body rows: every consumer is Dense="true", so MudBlazor's 6px cell padding sets the height.
   Don't reintroduce a fixed height here — it overrides that padding and undoes the dense treatment.

   line-height is 1.25 rather than the theme's 1.5 to centre the text, which vertical-align cannot do on
   its own: it centres the line box, and Open Sans at 1.5 parks all its leading below the glyphs, so
   values with no descender (dates, permits, times) painted 1.8px high next to a chip that centres its own
   label. Don't pad the height back out — the modifiers below have only 2px of headroom before a row
   crosses its ItemSize and desyncs Virtualize. */
.eb-mud-grid .mud-table-body .mud-table-row .mud-table-cell {
    color: var(--mud-palette-text-primary);
    line-height: 1.25;
    border-bottom: 1px solid var(--mud-palette-divider-light);
}

/* .eb-mud-grid--fixed-rows — opt-in modifier for a virtualized grid that declares no column widths.
   Any consumer must pass a matching ItemSize: Virtualize maps scroll offsets to row indices through that
   number, and a row taller than it declares leaves the bottom spacer permanently intersecting, so the
   viewport never settles and ranges below the loaded window are never requested (FF-2748).

   Both rules are needed. A height on a tr is a floor, not a cap, so nowrap is what actually holds the
   row: without it a long Lot or Note value wraps to a second line and re-breaks the mapping. The cost is
   width — with no declared widths the columns size to content and the grid scrolls horizontally instead
   of wrapping. Use --wide when the grid can declare widths; it bounds the scroll port and ellipsises
   instead, which needs those widths to exist (see the container width note below). */
.eb-mud-grid.eb-mud-grid--fixed-rows tbody tr.mud-table-row,
.eb-mud-grid.eb-mud-grid--fixed-rows tbody tr.mud-table-row td {
    height: 40px;
}

.eb-mud-grid.eb-mud-grid--fixed-rows .mud-table-body .mud-table-cell {
    white-space: nowrap;
}

/* Inline editing swaps the cell's text for a dense outlined MudTextField, which is 40px on its own —
   the dense 6px cell padding would put the edited row over the floor on its own. */
.eb-mud-grid.eb-mud-grid--fixed-rows tbody tr.mud-table-row td:has(.mud-input-control) {
    padding-top: 0;
    padding-bottom: 0;
}

/* Last row: the container border handles the bottom edge */
.eb-mud-grid .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none;
}

/* Row hover is handled by MudBlazor's built-in Hover="true" treatment, which
   uses var(--mud-palette-table-hover) and is correctly gated by
   @media (hover:hover) — no custom rule needed (would duplicate it and break
   touch). */

/* Selected row */
.eb-mud-grid tbody tr.mud-table-row.eb-grid-selected-row,
.eb-mud-grid tbody tr.mud-table-row.eb-grid-selected-row:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.18);
}

/* Links */
.eb-mud-grid .mud-table-body .mud-table-cell a {
    color: var(--mud-palette-secondary);
    font-weight: 500;
}

.eb-mud-grid .mud-table-body .mud-table-cell a:hover {
    color: var(--mud-palette-primary);
}

/* Row action icons */
.eb-mud-grid .mud-table-body .mud-icon-button {
    color: var(--mud-palette-gray-default);
    transition: color 0.15s ease;
}

.eb-mud-grid .mud-table-body .mud-icon-button:hover {
    color: var(--mud-palette-gray-darker);
    background-color: var(--mud-palette-divider-light);
}

/* .eb-mud-grid--sticky-actions — opt-in modifier that pins a trailing Actions column, so its edit and
   delete buttons stay reachable on a grid wide enough to scroll sideways.

   The container rules are what make sticky work at all. Every consumer sets
   ColumnResizeMode.Container, which makes MudDataGrid write an inline width: max-content here — so the
   card scrolls and the container never does, leaving a sticky cell no scrollport to stick against.
   Bounding the container moves the scroll into it, exactly as --wide does below; the min-width is then
   what stops the columns squeezing, because .mud-table-root is width: 100% of whatever bounds it. */
.eb-mud-grid.eb-mud-grid--sticky-actions .mud-table-container {
    width: 100% !important;
}

.eb-mud-grid.eb-mud-grid--sticky-actions .mud-table-root {
    min-width: max-content;
}

.eb-mud-grid.eb-mud-grid--sticky-actions .eb-grid-actions-cell {
    position: sticky;
    right: 0;
    z-index: 3;
    box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.25);
}

/* Cells are transparent by default, which would let the columns scroll through this one. The head cells
   already carry a background from the header rule above, so only the body needs one. */
.eb-mud-grid.eb-mud-grid--sticky-actions .mud-table-body .eb-grid-actions-cell {
    background-color: var(--mud-palette-surface);
}

/* Equal z-index would let the body cells, later in the DOM, paint over the pinned header cell as the
   grid scrolls down. */
.eb-mud-grid.eb-mud-grid--sticky-actions .mud-table-head .eb-grid-actions-cell {
    z-index: 4;
}

/* An opaque cell cannot show the row's hover tint through it. Gated to match MudBlazor's own hover rule,
   which leaves touch devices alone. */
@media (hover: hover) {
    .eb-mud-grid.eb-mud-grid--sticky-actions tbody tr.mud-table-row:hover .eb-grid-actions-cell {
        background-color: var(--mud-palette-table-hover);
    }
}

/* .eb-mud-grid--wide — opt-in modifier for declared column widths + fixed virtualized row heights.
   Applied only to Inspection Submissions: the other consumers size rows to content, which the
   virtualizer cannot do. The doubled-up class in each selector outranks the equally-specific base
   rules regardless of source order. */

/* Without table-layout: fixed the browser ignores the per-column HeaderStyle widths entirely;
   min-width then keeps the table at their sum so it scrolls rather than squeezing. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-root {
    table-layout: fixed;
    min-width: max-content;
}

/* MudDataGrid.razor.cs sets an inline width: max-content on the container whenever HorizontalScrollbar
   is on; chained with the rule above and MudBlazor's colspan="1000" placeholder cells, that resolved to a
   measured 1,000,000px table. Pinning the width breaks the chain. Scoped to --wide on purpose: the other
   grids declare no column widths, so bounding their scroll port squeezes columns to min-content and wraps
   long cell text — and they scroll horizontally on the root instead, which MudBlazor already handles. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-container {
    width: 100% !important;
}

/* Must equal the grid's ItemSize, or the virtualizer's scroll math drifts from the rendered rows.
   40px is the measured floor: the Files cell's inline icon plus count comes to 39.5px once
   MudBlazor's dense 6px cell padding is applied. Anything lower and rows render taller than
   ItemSize claims. */
.eb-mud-grid.eb-mud-grid--wide tbody tr.mud-table-row,
.eb-mud-grid.eb-mud-grid--wide tbody tr.mud-table-row td {
    height: 40px;
}

/* Required, not cosmetic: MudChip's default 4px margin makes the Result cell 44px, over the floor. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-chip {
    margin: 0;
}

/* The chip is inline-flex, so the cell's text-overflow below cannot reach its label — a chip wider than
   its column was clipped mid-word ("NOT PASSED (FA"). The Result column is sized to fit the longest
   result, and this is the fallback if it ever does not: block makes the label its own ellipsis context
   without changing the chip's 24px height, so the row floor holds. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-chip .mud-chip-content,
.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-chip .eb-chip-label {
    /* Both are flex items, whose automatic minimum size is min-content — the whole nowrap string. Without
       this the label can never be narrower than its text, so overflow never triggers and the ellipsis
       below is dead. */
    min-width: 0;
}

.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-chip .eb-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MudTooltip's inline-block wrapper would otherwise size to the chip, not the cell, and sit on the baseline. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-tooltip-root {
    max-width: 100%;
    vertical-align: middle;
}

/* Fixed widths mean overflowing text would otherwise spill into the neighbouring column. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-body .mud-table-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Give the filter row its own surface so it reads as an input strip rather than a second header. */
.eb-mud-grid.eb-mud-grid--wide .mud-table-head .filter-header-cell {
    background-color: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Dispatch state badges (.schedule-badge)
   ───────────────────────────────────────
   Global rather than scoped to InspectionSchedule because two components render them: the board card and
   the detail dialog. The dialog is mounted by MudDialogProvider, outside the board's CSS-isolation scope,
   so a ::deep rule in InspectionSchedule.razor.css matches nothing there. One vocabulary, one home. */

/* Read by screen readers, absent visually — clip rather than display:none, which removes it from the
   accessibility tree along with everything else. Global for the same reason as the badges below: both the
   board and the dialog use it, and the dialog is out of the board's isolation scope. */
.schedule-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.schedule-filter-popover {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    /* Only the cards take clicks, so blank space in this box reaches the click-outside overlay. */
    pointer-events: none;
}

.schedule-badge {
    font-size: 0.66rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}

.schedule-badge--sent {
    background: #e8f5ec;
    border-color: #b7dfc3;
    color: #1e6b37;
}

.schedule-badge--awaiting {
    background: #eef2f9;
    border-color: #c8d4e6;
    color: #3a5175;
}

.schedule-badge--not-sent {
    background: #fdecec;
    border-color: #f3c0c0;
    color: #a02020;
}

/* Not-sent red because it needs a person; dashed because, unlike not-sent, a stale copy did reach Cogniform. */
.schedule-badge--out-of-date {
    background: #fdecec;
    border-color: #d98a8a;
    border-style: dashed;
    color: #a02020;
}

.schedule-badge--past {
    background: #f4f4f6;
    border-color: #dcdee4;
    color: #71767f;
}

/* Amber because in-progress work is neither a promise nor a fact, and the badge palette had no warm hue.
   Amber is in the inspector palette too, but so is green — identity and status are read from different
   parts of the card. */
.schedule-badge--in-progress {
    background: #fdf3e0;
    border-color: #e6cc95;
    color: #8a5a00;
}

/* Solid where --sent is an outline, in the same green rather than a new hue: "sent" is a promise and
   "complete" is a fact, and the office scans the board for the difference between work still to chase and
   work already done. Weight carries that at 0.66rem where a second green would not, and it survives
   greyscale and colour blindness. */
.schedule-badge--complete {
    background: #1e6b37;
    border-color: #1e6b37;
    color: #ffffff;
}

/* The residual, for work Cogniform has not described. Shares --complete's weight because it is equally
   untouchable; only the label and the dialog's note stay vague. */
.schedule-badge--worked {
    background: #1e6b37;
    border-color: #1e6b37;
    color: #ffffff;
}

/* Dashed border on the same grey as --past rather than a new hue: an expired dispatch is history like a
   passed date, but the two sit side by side on the board and mean different things — one was never sent,
   the other was sent and abandoned. The remaining hues are spoken for, and a 0.66rem label alone is too
   weak to carry the difference. */
.schedule-badge--expired {
    background: #f4f4f6;
    border-color: #b9bcc4;
    border-style: dashed;
    color: #71767f;
}

/* Struck through as well as greyed: a cancelled inspection keeps its card, because the schedule board is
   projected from the warehouse and the portal cannot remove a submission from it. Colour alone would leave
   it looking like just another past-date card. */
.schedule-badge--cancelled {
    background: #f4f4f6;
    border-color: #dcdee4;
    color: #71767f;
    text-decoration: line-through;
}

/* MudDialog offers no class hook on its actions row; the Close button marks the detail dialog's, whose six buttons wrapped their labels. */
.mud-dialog-actions:has(.schedule-detail-action) {
    flex-wrap: wrap;
}

.mud-dialog-actions:has(.schedule-detail-action) .mud-button-root {
    white-space: nowrap;
}

/* A flag beside the state, not a state: the inspection is still scheduled and still on the phone. The
   dashed red outline reads as "removal pending" against --not-sent's solid red, which means a fault. */
.schedule-badge--deletion-requested {
    background: #ffffff;
    border-color: #d77a7a;
    border-style: dashed;
    color: #a02020;
}

.eb-photo-thumb {
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    cursor: zoom-in;
}

.eb-photo-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    border-radius: 4px;
    background: #1e1d1b;
}

.eb-photo-gallery__image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.eb-photo-gallery__step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #222222;
}

.eb-photo-gallery__step:hover {
    background: #ffffff;
}

.eb-photo-gallery__step--previous {
    left: 12px;
}

.eb-photo-gallery__step--next {
    right: 12px;
}
