@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&family=Fira+Code:wght@300..700&family=Mulish:wght@400;600;700&display=swap');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textbox;
}

a, .btn-link {
    color: unset; /*#006bb7;*/
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate {
    background-color: #6c757d;
    border-color: #6c757d;
}

.form-check-input:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* */

html, body {
    font-family: 'Tilt Neon', cursive, Helvetica, Arial, sans-serif;
    -webkit-print-color-adjust: exact !important;
}

.popover-body {
    font-family: 'Tilt Neon', cursive, Helvetica, Arial, sans-serif;
}

body {
    background-color: #eee;
    overflow: hidden;
}

a:hover, .btn-link:hover {
    text-decoration: none!important;
}

.btn-xs {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

button, .btn:focus, .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

button[data-bs-toggle="dropdown"],
button[data-bs-toggle="dropdown"]:hover,
button[data-bs-toggle="dropdown"]:active,
button[data-bs-toggle="dropdown"]:focus {
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

.card {
    border-radius: 15px;
}

.datepicker {
    padding: 6px;
}

    .datepicker td, th {
        text-align: center;
        padding: 6px 8px;
        font-size: 14px;
    }

.datepicker table tr td.active.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled.active, .datepicker table tr td.active.disabled.disabled, .datepicker table tr td.active.disabled:active, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active.disabled:hover.active, .datepicker table tr td.active.disabled:hover.disabled, .datepicker table tr td.active.disabled:hover:active, .datepicker table tr td.active.disabled:hover:hover, .datepicker table tr td.active.disabled:hover[disabled], .datepicker table tr td.active.disabled[disabled], .datepicker table tr td.active:active, .datepicker table tr td.active:hover, .datepicker table tr td.active:hover.active, .datepicker table tr td.active:hover.disabled, .datepicker table tr td.active:hover:active, .datepicker table tr td.active:hover:hover, .datepicker table tr td.active:hover[disabled], .datepicker table tr td.active[disabled] {
    background-color: #6c757d !important;
    background-image: unset;
}

.datepicker table tr td span.active.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled.disabled, .datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active.disabled:hover.active, .datepicker table tr td span.active.disabled:hover.disabled, .datepicker table tr td span.active.disabled:hover:active, .datepicker table tr td span.active.disabled:hover:hover, .datepicker table tr td span.active.disabled:hover[disabled], .datepicker table tr td span.active.disabled[disabled], .datepicker table tr td span.active:active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active:hover.active, .datepicker table tr td span.active:hover.disabled, .datepicker table tr td span.active:hover:active, .datepicker table tr td span.active:hover:hover, .datepicker table tr td span.active:hover[disabled], .datepicker table tr td span.active[disabled] {
    background-color: #6c757d !important;
    background-image: unset;
}

    .datepicker table tr td span.active.active, .datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover.active, .datepicker table tr td span.active.disabled:hover:active, .datepicker table tr td span.active:active, .datepicker table tr td span.active:hover.active, .datepicker table tr td span.active:hover:active {
        background-color: #6c757d !important;
        background-image: unset;
    }


.dropdown-item {
    cursor: pointer;
}

    .dropdown-item:active,
    .dropdown-item.active {
        background-color: #6c757d;
        color: #fff;
    }
    
.dropdown-menu > li > a:hover {
    background-image: none;
    background-color: #6c757d;
    color: #fff;
}

.fit-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@font-face {
    font-family: "alarm clock";
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Alarm Clock.woff2') format('woff2');
}

/* An operator's typeface on its own staff site (WV-4904), fetched only where its look names it, as Mulish above is. */
@font-face {
    font-family: 'Rotonto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Rotonto-Regular.woff') format('woff');
}

/* The operator's logo there: in the sidebar, and on the sign-in cards, one for each ground. */
.staff-brand-logo {
    max-height: 40px;
    max-width: 170px;
    object-fit: contain;
}

.staff-brand-name {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.staff-brand-head img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
}

.staff-brand-dark,
html[data-darkreader-scheme="dark"] .staff-brand-light {
    display: none;
}

html[data-darkreader-scheme="dark"] .staff-brand-dark {
    display: inline;
}

@font-face {
    font-family: 'password';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Password.woff2') format('woff2');
}

.form-control:focus {
    border-color: #DEE2E6;
    box-shadow: none;
    outline: none;
}

.form-select:focus {
    border-color: #DEE2E6;
    box-shadow: none;
    outline: none;
}

.form-switch .form-check-input {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    height: 20px !important;
    width: 40px !important;
}

    .form-switch .form-check-input:focus {
        border-color: rgba(0, 0, 0, 0.25);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        outline: 0;
    }

    .form-switch .form-check-input:not(checked) {
        background-color: #dc3545;
        border: none;
        border-color: #DC3545;
    }

    .form-switch .form-check-input:checked {
        background-color: #198753;
        border: none;
        border-color: #198754;
    }

    .form-switch .form-check-input:not(checked)::after {
        color: #fff !important;
        /*content: "No";*/
        content: "\f00d" !important;
        font: var(--fa-font-solid) !important;
        font-size: 9pt !important;
        left: 25px !important;
        position: relative;
        top: -3px;
    }

    .form-switch .form-check-input:checked::after {
        color: #fff !important;
        /*content: "Yes";*/
        content: "\f00c" !important;
        font: var(--fa-font-solid) !important;
        font-size: 9pt !important;
        left: 7px !important;
        position: relative;
        top: -3px;
    }

input[type="time"] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

    input[type="time"]::-webkit-calendar-picker-indicator {
        background: none;
        display: none;
    }

.label {
    position: relative;
    top: 6px;
}

.label56 {
    position: relative;
    top: 16px;
}

.modal {
    margin-left: 125px !important;
    margin-top: 30px !important;
}

.sidebar-floating .modal,
body:has(.sidebar-floating) > .modal {
    margin-left: 0 !important;
}

.sidebar-floating article {
    min-width: 100vw;
}

.bs-popover-dark .popover-body {
    background: #222;
    color: #fff;
    border-radius: 6px;
    padding-top: 4px;
}

.bs-popover-dark .popover-body img {
    height: 500px;
}

.bs-popover-dark .popover-arrow::before,
.bs-popover-dark .popover-arrow::after {
    border-bottom-color: #222 !important;
}

.modal-backdrop {
    height: 100vh; /* 125vh; */
    width: 100vw /* 125vw; */
}

.modal-header {
    background-color: #f8f8f8 !important;
    height: 50px;
    padding: 2px 0px 0px 8px;
}

.modal-footer {
    background-color: #f8f8f8 !important;
    height: 50px;
    padding: 0px 8px 0px 8px;
    position: relative;
    top: -0px;
}

.modal-content,
.modal-dialog-scrollable .modal-content {
    max-height: 80vh !important;
}

/* --- GLASSMORPHISM MODALS (comment/uncomment this block to toggle) --- */
/*.modal-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.modal-header,
.modal-footer {
    background-color: rgba(248, 248, 248, 0.5) !important;
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}
.modal-content .form-control,
.modal-content .form-select,
.modal-content .input-group-text {
    background-color: rgba(255, 255, 255, 0.3) !important;
}*/
/* --- END GLASSMORPHISM MODALS --- */

.modal-body,
.modal-dialog-scrollable .modal-body {
    /* The content is capped at 80vh with a fixed 50px header + 50px footer, so the body gets the
       remaining height and scrolls. max-height gives it a real bound (a flex child's default
       min-height:auto otherwise refuses to shrink below its content, so it overflows the modal
       instead of scrolling); min-height:0 lets it shrink in the flex column too. */
    max-height: calc(80vh - 100px);
    min-height: 0;
    overflow-y: auto !important;
}

.month.focused.active {
    background-color: #6c757d !important;
    background-image: unset;
}

.slider1, .slider2, .slider3, .slider4, .slider5, .slider6 {
    align-items: center;
    display: flex;
    -ms-overflow-style: none;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 0px;
    scrollbar-width: none;
}

    .slider1 td, .slider2 td, .slider3 td, .slider4 td, .slider5 td, .slider6 td {
        font-size: 10pt;
        padding-left: 5px;
        padding-right: 5px;
        text-align: center;
    }

/* A datatable's sideways scroller (Shared/Table.razor, the Viewings diary) has the header bar's 10px corners, so a header
   cut off on the right still ends rounded; and, where the browser can tie an animation to scrolling, it fades its right
   edge while more columns are hidden, gone at the scroll's end (Dave, 6 Nov 2026). A table that fits has no scroll
   timeline, so it gets no mask. */
.table-responsive:has(> table.datatable) {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@keyframes wv-scroll-fade {
    from, 95% {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    }

    to {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@supports (animation-timeline: scroll()) {
    .table-responsive:has(> table.datatable) {
        animation: wv-scroll-fade linear both;
        animation-timeline: scroll(self inline);
    }
}

table.datatable {
    width: 100%;
}

    table.datatable td {
        padding: 5px;
        text-align: center;
        vertical-align: middle;
    }

        table.datatable td:first-child {
            padding-left: 10px !important;
        }

        table.datatable td:last-child {
            padding-right: 10px !important;
        }

    table.datatable th {
        background-color: #6c757d;
        color: #fff;
        cursor: pointer;
        padding: 10px 5px 10px 5px;
        text-align: center;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: .03em;
        font-size: .8rem;
    }

        table.datatable th:first-child {
            border-top-left-radius: 10px;
            padding-left: 10px !important;
        }

        table.datatable th:last-child {
            border-top-right-radius: 10px;
            padding-right: 10px !important
        }

    table.datatable tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    /* Compact table layout convention (table standardisation): .col-min on the fixed bookend
       columns — Id and Actions — so they shrink to content; the content columns in between are
       left un-classed so they spread to fill the width (no void, no bunching). Align by data type
       with Bootstrap's text-start (text) / text-end (numbers) / text-center (id, status, badges)
       — those carry !important so they override the datatable centre default. */
    table.datatable td.col-min,
    table.datatable th.col-min {
        width: 1%;
        white-space: nowrap;
    }

/* WV-7804: at phone width a stack-first datatable gives its first column a line of its own and shares the other columns out
   under it, so the first column is not squeezed to a word a line and the table does not scroll sideways (Change Modules
   and Switches and caps on /Billing, 390 px). */
@media (max-width: 575.98px) {
    table.datatable.stack-first,
    table.datatable.stack-first > thead,
    table.datatable.stack-first > tbody {
        display: block;
    }

    table.datatable.stack-first tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    table.datatable.stack-first > thead > tr {
        align-items: stretch;
    }

    table.datatable.stack-first th {
        align-content: center;
    }

    table.datatable.stack-first th,
    table.datatable.stack-first td {
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
        white-space: normal !important;
    }

    table.datatable.stack-first td:first-child {
        flex-basis: 100%;
    }

    table.datatable.stack-first th:first-child {
        display: none;
    }

    table.datatable.stack-first th:nth-child(2) {
        border-top-left-radius: 10px;
    }

    table.datatable.stack-first input.form-control {
        width: 100% !important;
    }
}

/* Custom breakpoints beyond Bootstrap's xxl (1400px) */
@media (min-width: 2200px) {
    .col-xxxl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xxxl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xxxl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xxxl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xxxl-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 3000px) {
    .col-xxxxl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xxxxl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xxxxl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xxxxl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xxxxl-6 { flex: 0 0 50%; max-width: 50%; }
}
/* Scrolls, but never shows a bar. Global because some of these elements are injected
   as HTML strings from C#/JS and never pick up a component's scoped stylesheet. */
.wv-noscrollbar {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* legacy Edge */
}

    .wv-noscrollbar::-webkit-scrollbar {
        display: none;          /* Chrome, Edge, Safari */
    }

/* Status badges (style guides, README rule 8; Dave, 19 Oct 2026): a soft pill in the colour's tint, a faint ring,
   the text in the colour's dark shade, and always an icon, so the meaning is in the shape as well as the colour.
   One height everywhere; a cell holding just one badge (a status column) gives every badge one width.
   <span class="wv-badge wv-badge-success"><i class="fa-solid fa-check"></i>Paid</span> */
.wv-badge {
  --wv-b: var(--bs-secondary); --wv-b-bg: var(--bs-secondary-bg-subtle); --wv-b-ink: var(--bs-secondary-text-emphasis);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--wv-b-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wv-b) 40%, transparent);
  color: var(--wv-b-ink); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.wv-badge > i { font-size: 11px; color: color-mix(in srgb, var(--wv-b) 70%, var(--wv-b-ink)); }
.wv-badge-success { --wv-b: var(--bs-success); --wv-b-bg: var(--bs-success-bg-subtle); --wv-b-ink: var(--bs-success-text-emphasis); }
.wv-badge-warning { --wv-b: var(--bs-warning); --wv-b-bg: var(--bs-warning-bg-subtle); --wv-b-ink: var(--bs-warning-text-emphasis); }
.wv-badge-danger { --wv-b: var(--bs-danger); --wv-b-bg: var(--bs-danger-bg-subtle); --wv-b-ink: var(--bs-danger-text-emphasis); }
.wv-badge-secondary { --wv-b: var(--bs-secondary); --wv-b-bg: var(--bs-secondary-bg-subtle); --wv-b-ink: var(--bs-secondary-text-emphasis); }
.wv-badge-info { --wv-b: #0d6efd; --wv-b-bg: #cfe2ff; --wv-b-ink: #052c65; }
.wv-badge-light { --wv-b: #adb5bd; --wv-b-bg: #f8f9fa; --wv-b-ink: #495057; }
td > .wv-badge:only-child { min-width: 96px; }

/* The action bars' tooltips (the journey, version 2, section C rule 4: data-bs-custom-class="journey-tip"): the button's icon
   and what it does, on one line however long. */
.journey-tip .tooltip-inner { max-width: none; white-space: nowrap; }

/* A photo tile - an image in a relative span, its button (a picture's bin, Shared/PhotoBin and its question, or the add
   tile's +) at top: 0 of the span, over the image's top-right corner (Dave, 17 Nov 2026: "the badge should be top 0px, the
   picture offset down say 5px ... then the element should be made the picture height + the offset"). As an inline-block the
   span is the image's box, and its 5px of padding moves the image down under the button, so the tile is the picture's
   height and the 5px. The button's top is the span's, never above the row, so the row's sideways scroller (overflow-x: auto
   clips both ways) cuts nothing off, in a modal or not. Placed from the span's foot (before 4 Nov) it rose past the row; 13px
   above the image (7 Nov) it sat too low. */
span:has(> [data-photo-bin], > [data-photo-bin-asking], > [data-photo-add]) {
    display: inline-block;
    padding-top: 5px;
}

/* A KPI's month against its own thresholds (KPIs and SLAs spec; Dave, 4 Nov 2026): a rounded block in the badge's light
   ground, its figure and icon in the dark shade. Green, amber, red; blue only past the scale. Month to date is faded. */
.kpi-rag { display: block; border-radius: 6px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.kpi-rag-g { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.kpi-rag-a { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.kpi-rag-r { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.kpi-rag-b { background: #cfe2ff; color: #052c65; }
.kpi-rag-mtd { opacity: .62; font-style: italic; }
/* The mini strip (My KPIs, the Home widgets): a square per month in the same colours, no figure light grey, this month outlined. */
.kpi-rag-dot { display: inline-block; width: 14px; height: 12px; margin-right: 2px; border-radius: 3px; vertical-align: middle;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }
.kpi-rag-none { background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); }
.kpi-rag-now { outline: 1.5px solid #343a40; outline-offset: 1px; }
/* WV-7825: the trend's arrow better into the stretch band, and level, in the band's vivid shade (Dave, 10 Nov 2026);
   amber darker than Bootstrap's, which is not legible on white. */
.kpi-band-g { color: #198754; }
.kpi-band-a { color: #cc9a06; }
.kpi-band-r { color: #dc3545; }
.kpi-band-b { color: #0d6efd; }
/* WV-7825: a KPIs page's search card (the dashboard, SLAs) - the search, then its filters beside it; on a phone (under
   Bootstrap's sm) the filters take their own line under the search and share it, so neither squeezes the search nor runs
   off the card (#1's 390 pictures, 10 Nov 2026). */
.kpis-filters { display: flex; gap: .5rem 1rem; align-items: center; }
.kpis-filters .kpis-search { flex: 1 1 auto; width: auto; min-width: 0; }
.kpis-filters .kpis-pickers { display: flex; gap: .5rem; flex-shrink: 0; }
.kpis-filters .kpis-tools { display: flex; gap: .5rem; flex-shrink: 0; align-items: center; margin-left: auto; }
@media (max-width: 575.98px) {
    .kpis-filters { flex-wrap: wrap; }
    .kpis-filters .kpis-search { flex-basis: 100%; }
    .kpis-filters .kpis-pickers { width: 100%; }
    .kpis-filters .kpis-pickers > .dropdown { flex: 1 1 0; min-width: 0; width: auto !important; }
    .kpis-filters .kpis-tools { width: 100%; flex-wrap: wrap; }
}
/* WV-7962: the KPIs page's switches and Add take a line of their own under the search and filters where they do not fit beside them. */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .kpis-filters { flex-wrap: wrap; }
}
/* WV-7825: a strip that ends this month and shows as much history as its space fits, whole squares only - newest first,
   laid right to left, the rest wrapped onto a line the box hides; the padding leaves room for this month's outline. */
.kpi-strip-fit { display: flex; flex-flow: row-reverse wrap; row-gap: 6px; height: 18px; padding: 3px 3px 3px 0; overflow: hidden; }
/* WV-7960: a KPI's people as the tags modal's stack - 36px faces overlapping by 6px, at most five, then a grey +N last. */
.kpi-group { font-weight: 600; margin: 10px 0 4px; padding-top: 8px; border-top: 1px solid var(--bs-border-color-translucent); }
.kpi-avs { display: inline-flex; align-items: center; padding-left: 6px; vertical-align: middle; }
.kpi-av { width: 36px; height: 36px; border: 2px solid var(--bs-body-bg); margin-left: -6px; border-radius: 50%; object-fit: cover; background: var(--bs-body-bg); }
.kpi-av.more { display: inline-flex; align-items: center; justify-content: center; background: #6c757d; color: #fff; font-size: 12px; font-weight: 600; }

.modal-body.text-center {
    text-wrap: pretty;
}

/* A strip of stage chevrons too wide for its card scrolls sideways in it, with no scrollbar, and opens with its current stage
   ([data-stage-now]) in view: js/stages-in-view.js. Each strip's own phone rule keeps every stage's whole word (WV-7659,
   Dave, 16 Nov 2026). */
.wv-stages { overflow-x: auto; scrollbar-width: none; }
.wv-stages::-webkit-scrollbar { display: none; }

/* The phone companion (spec one-app-sign-in, section F): on a phone - a touch screen of phone size, either way up - the
   menu keeps only the companion's modules, with Inspections (folded into Facilities on a bigger screen) as a row of its
   own, and one row for each phone page (NavMenu, WV-6364), and a page outside the companion shows "This page is for a
   desktop or iPad" in its place (CompanionGate, WV-8011). A desktop window of any size and an iPad either way up match
   neither rule and draw
   everything: the smallest iPad, a mini, is 744 px wide held upright, and staff on an iPad get the full site (WV-8012).
   The top-right menu keeps only Help, Feedback and Logout on a phone (WV-6364). The site's one device test. */
.phone-only,
.companion-notice {
    display: none;
}

.desktop-page {
    display: contents;
}

@media (pointer: coarse) and (max-width: 599.98px), (pointer: coarse) and (max-height: 540px) {
    .not-companion,
    .desktop-page {
        display: none;
    }

    .phone-only {
        display: block;
    }

    .companion-notice {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 16px;
        justify-content: center;
        min-height: 60vh;
        text-align: center;
    }
}

.companion-notice-icon {
    color: #6c757d;
    font-size: 48px;
}
