.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.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."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Radzen grid cells are one line and cut long values off with "...". Every grid in the app wraps instead: a value
   longer than its column goes onto a second line, and so does a column title (2026-09-23: list pages were hiding
   text). The class grid-wrap-cells is kept on the grids that opted in first; it is the default now. */
/* the selectors repeat Radzen's own (.rz-grid-table td .rz-cell-data, .rz-grid-table thead th .rz-column-title-content)
   under .rz-data-grid, so they outrank them */
.rz-data-grid .rz-grid-table td,
.rz-data-grid .rz-grid-table td .rz-cell-data,
.rz-data-grid.grid-wrap-cells td,
.rz-data-grid.grid-wrap-cells .rz-cell-data {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;   /* not "anywhere": that lets a column shrink to one character wide when the table lays itself out */
}

.rz-data-grid .rz-grid-table thead th .rz-column-title,
.rz-data-grid .rz-grid-table thead th .rz-column-title-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

/* A date picker with a clear button: Radzen keeps the text clear of the calendar button only, so a long date ran under
   the "x". The x sits the calendar button's width and half a rem in from the right (.rz-dropdown-clear-icon) and is as
   wide as the button; the text now stops short of it. A picker with a clear button needs room for its text as well:
   11rem for yyyy-MM-dd, 13rem for ddd dd MMM yyyy. */
.rz-datepicker:has(> .rz-datepicker-trigger):has(> .rz-dropdown-clear-icon) > .rz-inputtext {
    padding-inline-end: calc(var(--rz-dropdown-trigger-icon-width) + 0.75rem + var(--rz-dropdown-trigger-icon-height));
}

/* a badge wraps like any other text rather than spilling into the next column */
.rz-data-grid .rz-grid-table td .rz-badge {
    white-space: normal;
    height: auto;
    line-height: 1.3;
}

/* Driver roster matrix (Features/Rostering/DriverRosterMatrix.razor): day cells coloured by what the
   driver does, two duties in one day separated by a dashed line, hours in fixed-width digits. */
.rz-data-grid.roster-matrix td {
    vertical-align: top;
    overflow: hidden;
}

/* Radzen's table is width:100% with a fixed layout, which squeezes the 23 columns into the page
   instead of scrolling. The minimum is the sum of the column widths (driver 170, 14 days x 118,
   4 week hours x 75, 2 fortnight x 80), so the grid scrolls sideways with the driver column frozen. */
.rz-data-grid.roster-matrix .rz-grid-table {
    min-width: 2290px;
}

.roster-matrix td.matrix-leave,
.matrix-swatch.matrix-leave {
    background-color: var(--rz-info-lighter);
}

.roster-matrix td.matrix-standby,
.matrix-swatch.matrix-standby {
    background-color: var(--rz-warning-lighter);
}

.roster-matrix td.matrix-rest,
.matrix-swatch.matrix-rest {
    background-color: var(--rz-base-100);
}

.roster-matrix .matrix-duty + .matrix-duty {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--rz-base-300);
}

.matrix-hours {
    font-variant-numeric: tabular-nums;
}

.matrix-day-header {
    line-height: 1.2;
    text-align: center;
}

.matrix-published-icon {
    font-size: 0.9rem;
    vertical-align: middle;
    color: var(--rz-info);
}

.matrix-swatch {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.3rem;
    vertical-align: middle;
    border: 1px solid var(--rz-base-300);
    border-radius: 2px;
}

/* Roster line matrix (Features/Rostering/RosterLineMatrix.razor): the driver matrix's colours, plus a
   day that differs from the line - worked differently, or the line's duty not worked - and a heavier
   rule above each line's first row. Line 170, position 55, driver 150, 14 days x 96, off line 80. */
.rz-data-grid.line-matrix .rz-grid-table {
    min-width: 1800px;
}

.roster-matrix td.matrix-changed,
.matrix-swatch.matrix-changed {
    background-color: var(--rz-primary-lighter);
}

.roster-matrix td.matrix-uncovered,
.matrix-swatch.matrix-uncovered {
    background-color: var(--rz-danger-lighter);
}

.line-matrix tr.line-start > td {
    border-top: 2px solid var(--rz-base-500);
}

.matrix-struck {
    text-decoration: line-through;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Help panel (Features/Help): fixed on the right, above dialogs, and it blocks nothing - a topic is read next to the form. */
.help-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 100vw);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: var(--rz-base-background-color, #fff);
    color: var(--rz-text-color);
    border-left: 1px solid var(--rz-base-300);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.18);
}

.help-panel-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.25rem;
    border-bottom: 1px solid var(--rz-base-300);
}

.help-panel-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1.25rem 2rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.help-panel-body p {
    margin: 0 0 0.75rem;
}

.help-panel-body .help-h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.help-panel-body .help-h3,
.help-panel-body .help-h4 {
    font-size: 0.925rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}

.help-panel-body > .help-h2:first-child {
    margin-top: 0.25rem;
}

.help-panel-body ul,
.help-panel-body ol {
    margin: 0 0 0.75rem;
    padding-left: 1.4rem;
}

.help-panel-body li {
    margin-bottom: 0.3rem;
}

.help-panel-body li > ul,
.help-panel-body li > ol {
    margin: 0.3rem 0 0;
}

.help-panel-body code {
    font-size: 0.85em;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    background: var(--rz-base-200);
    color: inherit;
}

.help-panel-body a {
    color: var(--rz-primary);
    text-decoration: underline;
    cursor: pointer;
}

.help-note {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid var(--rz-info);
    background: var(--rz-info-lighter);
    border-radius: 0 4px 4px 0;
}

.help-note > :last-child {
    margin-bottom: 0;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
}

.help-table th,
.help-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--rz-base-300);
}

.help-table th {
    font-weight: 600;
    border-bottom-width: 2px;
}

ul.help-contents {
    list-style: none;
    padding-left: 0;
}

/* the search box on top of the list of topics, and what it finds */
.help-search {
    width: 100%;
    margin: 0.25rem 0 0.75rem;
}

ul.help-results li {
    margin-bottom: 0.8rem;
}

.help-result-bundle {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--rz-text-tertiary-color);
    white-space: nowrap;
}

.help-result-snippet {
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
}

.help-result-snippet mark {
    padding: 0 0.1rem;
    background: var(--rz-warning-lighter);
    color: inherit;
}

/* the heading a link inside the help went to */
.help-heading-found {
    background: var(--rz-warning-lighter);
    transition: background 0.6s;
}

/* Field hint (Features/Help/FieldHint.razor): the info icon inside a field or after a tick box's label */
.field-hint {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    color: var(--rz-text-tertiary-color);
    cursor: help;
    vertical-align: middle;
}

.field-hint:hover {
    color: var(--rz-primary);
}

.field-hint .rzi {
    font-size: 1.15rem;
}

/* "Why?" after the message of a warning or error toast */
.help-why-link {
    margin-left: 0.4rem;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
}


/* Roster Planner (Features/Rostering/RosterPlanner.razor): the drag-and-drop fortnight */
.plan-scroll {
    overflow: auto;
    max-height: calc(100vh - 250px);
    border: 1px solid var(--rz-base-300);
    border-radius: 4px;
    background: var(--rz-base-background-color, #fff);
}

.plan-scroll.plan-busy {
    opacity: 0.6;
    pointer-events: none;
}

.plan-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1500px;
    table-layout: fixed;
    font-size: 0.8rem;
}

.plan-grid th,
.plan-grid td {
    border-right: 1px solid var(--rz-base-200);
    border-bottom: 1px solid var(--rz-base-200);
    padding: 2px 3px;
    vertical-align: top;
}

.plan-grid thead th,
.plan-grid thead td {
    position: sticky;
    z-index: 3;
    background: var(--rz-base-100);
}

.plan-grid thead tr:first-child th {
    top: 0;
    height: 40px;
    text-align: center;
    font-weight: 600;
}

/* the vacancies row sticks under the day headers */
.plan-grid thead tr.plan-tray th,
.plan-grid thead tr.plan-tray td {
    top: 40px;
    border-bottom: 2px solid var(--rz-base-400);
}

.plan-tray-cell {
    max-height: 132px;
    overflow-y: auto;
}

/* the depot work tray (work with no run in it) sits under the vacancies and scrolls with the drivers */
.plan-grid tbody tr.plan-tray-depot th,
.plan-grid tbody tr.plan-tray-depot td {
    background: var(--rz-base-100);
    border-bottom: 2px solid var(--rz-base-400);
}

.plan-driver-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 190px;
    min-width: 190px;
    background: var(--rz-base-100);
    text-align: left;
}

.plan-grid thead .plan-driver-col {
    z-index: 4;
}

.plan-driver-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-driver-sub,
.plan-day-date {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--rz-base-600);
}

.plan-group td {
    background: var(--rz-base-200);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 6px;
    position: sticky;
    left: 0;
}

.plan-cell {
    height: 38px;
}

.plan-weekend {
    background-color: var(--rz-base-50, #fafafa);
}

.plan-today {
    box-shadow: inset 0 -3px 0 var(--rz-primary);
}

.plan-published {
    color: var(--rz-primary-dark, var(--rz-primary));
}

.plan-closed {
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--rz-base-200) 6px 7px);
}

.plan-row-locked .plan-driver-col {
    color: var(--rz-base-500);
}

.plan-on-leave {
    background-color: var(--rz-info-lighter);
}

/* the dragged duty's own day: what the rules say about each driver */
.plan-cell.plan-ok,
.plan-swatch.plan-ok {
    background-color: var(--rz-success-lighter);
}

.plan-cell.plan-warn,
.plan-swatch.plan-warn {
    background-color: var(--rz-warning-lighter);
}

.plan-cell.plan-block,
.plan-swatch.plan-block {
    background-color: var(--rz-danger-lighter);
}

.plan-cell.plan-locked,
.plan-swatch.plan-locked {
    background-color: var(--rz-base-300);
}

.plan-cell.plan-origin {
    box-shadow: inset 0 0 0 2px var(--rz-base-500);
}

.plan-tray-target {
    background-color: var(--rz-base-200);
}

.plan-hover {
    outline: 2px solid var(--rz-primary);
    outline-offset: -2px;
}

.plan-chip {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    margin: 1px 0;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid var(--rz-base-400);
    border-left: 3px solid var(--rz-base-500);
    background: var(--rz-base-background-color, #fff);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}

.plan-chip[draggable="true"] {
    cursor: grab;
}

.plan-chip-code {
    font-weight: 600;
}

.plan-chip-time {
    font-size: 0.7rem;
    color: var(--rz-base-700);
}

.plan-chip-vacancy {
    border-style: dashed;
    border-left-style: solid;
    border-left-color: var(--rz-danger);
    background: var(--rz-danger-lighter);
}

.plan-chip-depot-work {
    border-style: dashed;
    border-left-style: solid;
    border-left-color: var(--rz-info);
    background: var(--rz-info-lighter);
}

.plan-chip-published {
    border-left-color: var(--rz-primary);
}

.plan-chip-warning {
    border-left-color: var(--rz-warning);
    background: var(--rz-warning-lighter);
}

.plan-chip-blocking {
    border-left-color: var(--rz-danger);
    background: var(--rz-danger-lighter);
}

.plan-chip-worked {
    opacity: 0.75;
    font-style: italic;
}

.plan-chip-outofstep .plan-chip-time {
    text-decoration: underline dotted;
}

.plan-chip-proposed {
    border: 1px dashed var(--rz-primary);
    background: var(--rz-primary-lighter);
    cursor: default;
}

.plan-chip-demo {
    display: inline-block;
    cursor: default;
}

.plan-mark {
    font-size: 0.7rem;
    border-radius: 3px;
    padding: 0 4px;
    margin: 1px 0;
}

.plan-mark-leave {
    background: var(--rz-info-light, var(--rz-info-lighter));
    font-weight: 600;
}

.plan-mark-standby {
    background: var(--rz-secondary-lighter, var(--rz-base-200));
}

.plan-legend {
    font-size: 0.75rem;
}

.plan-swatch {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid var(--rz-base-400);
    border-radius: 2px;
    vertical-align: text-bottom;
}

.plan-dropped-list {
    margin-top: 0.5rem;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.8rem;
}

/* Test database (MainLayout): api/me says the API isn't on the live database - said on every page, so made-up data never
   goes into the live one by mistake. */
.test-database-badge {
    margin-left: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 1rem;
    background: #b45309;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.test-database-strip {
    padding: 0.3rem 0.75rem;
    background: repeating-linear-gradient(135deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px);
    border-bottom: 1px solid #b45309;
    color: #78350f;
    font-size: 0.85rem;
}

/* The welcome page (Pages/Home.razor): one card in the middle of the page, the build in small print under it. */
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem 2rem;
}

.welcome-card {
    width: 100%;
    max-width: 34rem;
    padding: 2.5rem 2rem 1.5rem;
    border: 1px solid var(--rz-border-color, #d9dee3);
    border-radius: 0.75rem;
    background: var(--rz-base-background-color, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.welcome-card h1 {
    margin: 0.25rem 0 0.25rem;
    font-size: 2.25rem;
}

.welcome-icon {
    font-size: 3rem;
    color: var(--rz-primary, #1565c0);
}

.welcome-lead {
    margin-bottom: 1.5rem;
    color: var(--rz-text-secondary-color, #5f6b76);
    font-size: 1.05rem;
}

.welcome-note {
    color: var(--rz-text-secondary-color, #5f6b76);
}

.welcome-card .rz-alert {
    text-align: left;
    margin-bottom: 1rem;
}

.welcome-links {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rz-border-color, #d9dee3);
}

.welcome-foot {
    margin-top: 1rem;
    color: var(--rz-text-secondary-color, #5f6b76);
    font-size: 0.8rem;
}

/* The duty timeline (Features/Common/DutyTimeline.razor): the day as lanes - runs, then positioning when any - each tall
   enough for two lines of text. Breaks and waits are drawn on the run bar as grey chips whose text may spill past a narrow
   bar, the sign-on and sign-off allowances pale at the ends, a changeover a red line, a midnight a dashed one, and the hour
   scale under it is the sign-on clock. Shared by the duty workbench and the duty detail dialog. */
.duty-timeline { position: relative; background: var(--rz-base-200); border-radius: 4px; margin: 0.5rem 0 0; }
.duty-lane { position: relative; height: 2.9rem; border-bottom: 1px dashed var(--rz-base-300); }
.duty-lane:last-child { border-bottom: none; }
/* a run's stops on the driver's stretch: ticks under the block, the code where it has room (the lane grows for them) */
.duty-lane.duty-lane-stops { height: 3.7rem; }
.duty-stop { position: absolute; top: 2.65rem; width: 0; height: 0.3rem; border-left: 1px solid var(--rz-base-700); z-index: 1; }
.duty-stop .duty-stop-code { position: absolute; top: 0.25rem; left: 0; transform: translateX(-50%); font-size: 0.58rem; line-height: 0.75rem; color: var(--rz-text-secondary-color); white-space: nowrap; }
.duty-lane-name { position: absolute; left: 0.3rem; top: 0.1rem; font-size: 0.65rem; color: var(--rz-text-disabled-color); text-transform: uppercase; letter-spacing: 0.04em; }
.duty-el { position: absolute; top: 0.35rem; height: 2.3rem; border-radius: 3px; overflow: hidden; white-space: nowrap; font-size: 0.72rem; line-height: 1.1rem; padding: 0.05rem 0.3rem; color: #fff; cursor: default; box-sizing: border-box; }
.duty-el .duty-el-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.duty-el .duty-el-times { display: block; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; }
.duty-el.duty-run { background: var(--rz-primary); }
.duty-el.duty-break { background: var(--rz-base-600); }
.duty-el.duty-wait { background: var(--rz-base-400); color: #000; }
.duty-el.duty-positioning { background: var(--rz-info); }
.duty-el.duty-untimed { background: var(--rz-warning); color: #000; }
.duty-clickable { cursor: pointer; }
.duty-over { position: absolute; top: 0.55rem; height: 1.9rem; z-index: 3; overflow: visible; }
.duty-over .duty-chip { position: absolute; left: 0; top: 0; height: 100%; min-width: 100%; display: flex; align-items: center; padding: 0 0.3rem; box-sizing: border-box;
                        background: var(--rz-base-700); color: #fff; border-radius: 3px; font-size: 0.68rem; white-space: nowrap; opacity: 0.95; }
.duty-over.duty-over-wait .duty-chip { background: var(--rz-base-500); color: #000; }
.duty-over.duty-over-unpaid .duty-chip { background: repeating-linear-gradient(45deg, var(--rz-base-700), var(--rz-base-700) 4px, var(--rz-base-600) 4px, var(--rz-base-600) 8px); }
.duty-allow { position: absolute; top: 0.35rem; height: 2.3rem; background: var(--rz-primary-lighter); color: var(--rz-primary-dark); border-radius: 3px; font-size: 0.68rem; line-height: 2.3rem; padding: 0 0.3rem; box-sizing: border-box; overflow: hidden; white-space: nowrap; }
.duty-mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--rz-danger); z-index: 2; }
.duty-mark .duty-mark-label { position: absolute; top: -0.1rem; left: 0.2rem; font-size: 0.65rem; color: var(--rz-danger); white-space: nowrap; background: rgba(255,255,255,0.8); padding: 0 0.15rem; border-radius: 2px; }
.duty-midnight { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--rz-base-700); z-index: 1; }
.duty-midnight .duty-mark-label { position: absolute; bottom: 0; left: 0.2rem; font-size: 0.65rem; color: var(--rz-text-secondary-color); white-space: nowrap; }
.duty-scale { position: relative; height: 1.2rem; font-size: 0.68rem; color: var(--rz-text-secondary-color); }
.duty-scale .duty-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.duty-scale .duty-tick::before { content: ""; display: block; width: 0; height: 0.25rem; border-left: 1px solid var(--rz-base-500); margin: 0 auto; }
.duty-ends { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--rz-text-secondary-color); }
.duty-untimed-note { font-size: 0.72rem; color: var(--rz-text-secondary-color); margin-top: 0.25rem; }

/* ChangeHistoryDialog: a save per block, its changes under it, each field from -> to */
.change-history { display: flex; flex-direction: column; gap: 0.75rem; max-height: 65vh; overflow-y: auto; }
.change-history-group { border-left: 3px solid var(--rz-base-300); padding-left: 0.75rem; }
.change-history-when { font-size: 0.875rem; margin-bottom: 0.25rem; }
.change-history-change { margin: 0.25rem 0; font-size: 0.875rem; }
.change-history-fields { margin: 0.15rem 0 0 0; padding-left: 1.5rem; font-size: 0.8125rem; }

/* OperationProgressView: a long step the API's background job runner is doing */
.operation-progress { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0; }
.operation-progress-text { font-size: 0.875rem; }
.operation-progress-note { font-size: 0.75rem; color: var(--rz-text-secondary-color); }

/* js/update.js: a new build is ready, reload when convenient */
#update-ready {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #1b5e20;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#update-ready button {
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: #1b5e20;
    padding: 0.2rem 0.75rem;
    cursor: pointer;
}

#update-ready button.later {
    background: transparent;
    color: #fff;
}
