:root {
    --page: #07111f;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --ink: #f8fafc;
    --muted: #aab8cc;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #168a56;
    --accent: #38bdf8;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

@font-face {
    font-family: "CleaningBayPlate";
    src:
        url("/assets/fonts/uk-number-plate.woff2") format("woff2"),
        url("/assets/fonts/uk-number-plate.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    overflow: hidden;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), transparent 32rem),
        radial-gradient(circle at top right, rgba(22, 138, 86, 0.28), transparent 30rem),
        linear-gradient(135deg, #07111f 0%, #0f172a 50%, #102418 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.monitor-login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 22px;
    overflow: auto;
}

.monitor-login-card {
    display: grid;
    gap: 16px;
    width: min(720px, 100%);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.monitor-login-card img {
    justify-self: center;
    width: min(420px, 100%);
    max-height: 130px;
    object-fit: contain;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
}

.monitor-login-card h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.95;
}

.monitor-login-card p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 750;
}

.monitor-login-error {
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 8px;
    padding: 12px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.42);
    font-weight: 900;
}

.monitor-login-form {
    display: grid;
    gap: 16px;
}

.monitor-login-form label {
    display: grid;
    gap: 8px;
    color: #dbeafe;
    font-size: 18px;
    font-weight: 900;
}

.monitor-login-form select,
.monitor-login-form input,
.monitor-login-form button {
    width: 100%;
    min-height: 72px;
    border-radius: 8px;
    font: inherit;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 950;
}

.monitor-login-form select,
.monitor-login-form input {
    border: 1px solid rgba(203, 213, 225, 0.36);
    padding: 0 16px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.94);
}

.monitor-login-form input {
    letter-spacing: 10px;
    text-align: center;
}

.monitor-code-entry input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
}

.monitor-code-display {
    display: grid;
    min-height: 72px;
    place-items: center;
    border: 1px solid rgba(203, 213, 225, 0.36);
    border-radius: 8px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.94);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 950;
    letter-spacing: 10px;
    line-height: 1;
}

.monitor-code-pad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.monitor-code-pad button {
    min-height: 64px;
    border: 1px solid rgba(203, 213, 225, 0.24);
    border-radius: 8px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.11);
    font: inherit;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 950;
    cursor: pointer;
}

.monitor-code-pad button:active {
    transform: translateY(1px);
}

.monitor-login-form button {
    border: 0;
    color: #052e1b;
    background: linear-gradient(135deg, #b9f3da, #22c55e);
    cursor: pointer;
}

@media (orientation: landscape) and (max-height: 900px) {
    body.monitor-login-page {
        overflow: auto;
    }

    .monitor-login-shell {
        min-height: 100dvh;
        align-items: start;
        padding: 8px;
    }

    .monitor-login-card {
        gap: 7px;
        width: min(610px, 100%);
        padding: 12px 16px;
    }

    .monitor-login-card img {
        max-height: 62px;
        padding: 5px;
    }

    .monitor-login-card h1 {
        font-size: clamp(30px, 4.2vw, 44px);
    }

    .monitor-login-card p {
        font-size: 14px;
        line-height: 1.12;
    }

    .monitor-login-form {
        gap: 6px;
    }

    .monitor-login-form label {
        gap: 4px;
        font-size: 14px;
    }

    .monitor-login-form select,
    .monitor-login-form button {
        min-height: 46px;
        font-size: 23px;
    }

    .monitor-code-display {
        min-height: 40px;
        font-size: 27px;
        letter-spacing: 6px;
    }

    .monitor-code-pad {
        gap: 5px;
    }

    .monitor-code-pad button {
        min-height: 38px;
        font-size: 22px;
    }
}

.monitor-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    width: min(1840px, 100%);
    height: 100vh;
    margin: 0 auto;
    padding: 8px;
    overflow: hidden;
}

.monitor-header,
.monitor-stats article,
.monitor-header-stats article,
.job-group,
.empty-bay {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 8px 12px;
}

.monitor-header > div:first-child {
    flex: 1 1 360px;
    min-width: 260px;
}

.monitor-kicker {
    color: #b9f3da;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.monitor-header h1 {
    margin: 4px 0 2px;
    font-size: clamp(28px, 2.75vw, 44px);
    line-height: 0.95;
}

.monitor-header p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 750;
}

.monitor-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.monitor-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    flex: 0 1 410px;
    gap: 6px;
    min-width: 300px;
}

.garage-badge {
    display: grid;
    place-items: center;
    min-width: 260px;
    height: 58px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 28px rgba(0, 0, 0, 0.20);
}

.garage-badge img {
    display: block;
    width: auto;
    max-width: min(330px, 22vw);
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.monitor-side-widgets {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.monitor-clock-box,
.weather-widget,
.monitor-fuel-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.monitor-fuel-button {
    display: grid;
    place-items: center;
    width: 58px;
    min-width: 58px;
    border: 0;
    color: #ffffff;
    background: #be123c;
    cursor: pointer;
}

.monitor-fuel-button:hover {
    background: #9f1239;
}

.monitor-fuel-button span {
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.monitor-clock-box {
    display: grid;
    place-items: center;
    min-width: 100px;
    padding: 6px 10px;
}

.monitor-brand time {
    font-size: 24px;
    font-weight: 900;
}

.monitor-clock-box form {
    margin: 1px 0 0;
}

.monitor-clock-box button {
    border: 0;
    padding: 0;
    color: #fecaca;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.weather-widget {
    display: grid;
    gap: 2px;
    min-width: 166px;
    padding: 7px 10px;
}

.weather-widget span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.weather-widget strong {
    font-size: 20px;
    line-height: 1;
}

.weather-widget small {
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.monitor-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.monitor-stats article,
.monitor-header-stats article {
    display: grid;
    gap: 4px;
    padding: 5px 10px;
}

.monitor-stats span,
.monitor-header-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.monitor-stats strong,
.monitor-header-stats strong {
    font-size: clamp(24px, 2.25vw, 36px);
    line-height: 1;
}

.monitor-message {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    padding: 12px 18px;
    color: #fffbeb;
    background: rgba(120, 53, 15, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    font-size: 22px;
    font-weight: 950;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.monitor-message.is-hiding {
    opacity: 0;
    transform: translate(-50%, -10px);
}

.job-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.job-group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding: 7px;
    overflow: hidden;
}

.job-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.job-group-heading h2 {
    margin: 0;
    font-size: clamp(18px, 1.35vw, 25px);
}

.job-group-heading span {
    border-radius: 8px;
    padding: 5px 8px;
    color: #06281a;
    background: #b9f3da;
    font-size: 14px;
    font-weight: 900;
}

.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}

.date-group {
    display: grid;
    gap: 6px;
}

.date-group h3 {
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 6px 8px;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.92);
    font-size: clamp(14px, 0.95vw, 18px);
    font-weight: 950;
    letter-spacing: 0.2px;
}

.job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas:
        "top action"
        "title action"
        "tags action"
        "notes notes";
    gap: 4px 7px;
    min-height: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
        var(--panel-strong);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.job-card-top {
    display: flex;
    grid-area: top;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.monitor-reg-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 118px;
    max-width: 100%;
    min-height: 34px;
    padding: 4px 7px 3px;
    border: 2px solid #05070a;
    border-radius: 6px;
    color: #05070a;
    background: #ffd43b;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 7px 14px rgba(0, 0, 0, 0.34);
    font-family: "CleaningBayPlate", "Mandatory", "UKNumberPlate", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(16px, 1.08vw, 20px);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
}

.monitor-reg-plate.vin-plate {
    color: #0f172a;
    background: #d1d5db;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(10px, 0.78vw, 13px);
    font-stretch: normal;
    font-weight: 950;
    letter-spacing: normal;
}

.job-card-top span {
    min-width: 0;
    max-width: 100%;
    border-radius: 8px;
    padding: 3px 5px;
    color: #0f172a;
    background: #e0f2fe;
    font-size: 10px;
    font-weight: 900;
}

.vehicle-title {
    grid-area: title;
    color: #dbeafe;
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(13px, 0.78vw, 16px);
    font-weight: 900;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.job-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.job-tags span,
.job-tags a,
.job-tags button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 3px 6px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.job-tags .battery-tag {
    border-color: rgba(203, 213, 225, 0.32);
    color: #e2e8f0;
    background: rgba(100, 116, 139, 0.62);
}

.job-tags .demo-cleaned-tag {
    border-color: rgba(125, 211, 252, 0.46);
    color: #dff6ff;
    background: rgba(14, 116, 144, 0.62);
}

.job-tags .test-drive-tag {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fffbeb;
    background: rgba(180, 83, 9, 0.68);
}

.job-tags .recall-tag {
    border-color: rgba(248, 113, 113, 0.55);
    color: #fee2e2;
    background: #991b1b;
    cursor: pointer;
}

.job-tags .recall-tag:active {
    transform: translateY(1px);
}

.job-tags a {
    color: #082f49;
    background: #e0f2fe;
}

.job-notes {
    grid-area: notes;
    margin: 0;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 4px 7px;
    color: #fffbeb;
    background: rgba(245, 158, 11, 0.13);
    font-size: 11px;
    font-weight: 750;
}

.job-card form {
    grid-area: action;
    align-self: stretch;
    margin: 0;
}

.job-card form button {
    width: 100%;
    height: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    color: #052e1b;
    background: linear-gradient(135deg, #b9f3da, #22c55e);
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.22);
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.job-card form button:active {
    transform: translateY(1px);
}

@media (max-width: 1180px) {
    .job-card {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 4px 5px;
        padding: 6px;
    }

    .monitor-reg-plate {
        width: 104px;
        min-height: 30px;
        font-size: clamp(15px, 1.25vw, 18px);
    }

    .job-card-top span,
    .job-tags span,
    .job-tags a {
        font-size: 9px;
    }

    .job-card form button {
        min-height: 48px;
        padding: 4px;
        font-size: 10px;
        line-height: 1.1;
    }
}

.monitor-dialog {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.monitor-dialog-card {
    display: grid;
    gap: 20px;
    width: min(560px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.monitor-dialog.is-pdf .monitor-dialog-card {
    width: min(1120px, 96vw);
    height: min(820px, 88vh);
    grid-template-rows: auto minmax(0, 1fr);
    padding: 18px;
}

.monitor-dialog-card h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    text-align: center;
    white-space: pre-line;
}

.monitor-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.monitor-dialog-actions button {
    min-height: 86px;
    border: 0;
    border-radius: 8px;
    color: #052e1b;
    background: linear-gradient(135deg, #b9f3da, #22c55e);
    font: inherit;
    font-size: 26px;
    font-weight: 950;
    cursor: pointer;
}

.monitor-dialog-actions button:nth-child(2) {
    color: #450a0a;
    background: linear-gradient(135deg, #fecaca, #ef4444);
}

.monitor-dialog-actions.pin-pad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pin-pad .pin-display {
    grid-column: 1 / -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 14px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    font-size: 42px;
    font-weight: 950;
    letter-spacing: 10px;
    text-align: center;
}

.monitor-dialog-actions.pin-pad button {
    min-height: 72px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
}

.monitor-dialog-actions.pin-pad button:nth-child(11),
.monitor-dialog-actions.pin-pad button:nth-child(13) {
    color: #450a0a;
    background: linear-gradient(135deg, #fecaca, #ef4444);
}

.monitor-dialog-actions.recall-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
}

.monitor-dialog-actions.recall-details .recall-detail-summary {
    display: grid;
    gap: 4px;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 850;
}

.monitor-dialog-actions.recall-details .recall-detail-card {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 8px;
    color: #f8fafc;
    background: rgba(127, 29, 29, 0.35);
}

.monitor-dialog-actions.recall-details .recall-detail-card strong {
    color: #fecaca;
    font-size: 16px;
}

.monitor-dialog-actions.recall-details .recall-detail-card span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 750;
}

.monitor-dialog-actions.recall-details .recall-detail-card a {
    width: fit-content;
    margin-top: 3px;
    border-radius: 8px;
    padding: 5px 8px;
    color: #7f1d1d;
    background: #fee2e2;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.monitor-dialog-actions.recall-details .recall-detail-card button {
    width: fit-content;
    min-height: 0;
    margin-top: 3px;
    border-radius: 8px;
    padding: 5px 8px;
    color: #7f1d1d;
    background: #fee2e2;
    box-shadow: none;
    font-size: 13px;
    font-weight: 900;
}

.monitor-dialog-actions.recall-details .recall-detail-close {
    justify-self: end;
    width: auto;
    min-height: 0;
    padding: 8px 14px;
    font-size: 16px;
}

.monitor-dialog-actions.pdf-viewer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
}

.monitor-dialog-actions.monitor-fuel-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    text-align: left;
}

.monitor-fuel-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.monitor-fuel-summary section {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.monitor-fuel-summary span,
.monitor-fuel-station section span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.monitor-fuel-summary strong {
    color: #f8fafc;
    font-size: 28px;
}

.monitor-fuel-summary small,
.monitor-fuel-station small,
.monitor-fuel-station > div span {
    color: #cbd5e1;
    font-weight: 750;
}

.monitor-fuel-list {
    display: grid;
    gap: 8px;
    max-height: min(52vh, 480px);
    overflow-y: auto;
}

.monitor-fuel-station {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 100px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.monitor-fuel-station > div,
.monitor-fuel-station section {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.monitor-fuel-station-details {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.monitor-fuel-station-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.monitor-fuel-station-logo,
.monitor-fuel-station-logo-fallback {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #ffffff;
}

.monitor-fuel-station-logo {
    object-fit: contain;
    padding: 5px;
}

.monitor-fuel-station-logo-fallback {
    color: #ffffff;
    background: #475569;
    font-size: 14px;
    font-weight: 950;
}

.monitor-fuel-station-copy strong,
.monitor-fuel-station-copy span {
    overflow-wrap: anywhere;
}

.monitor-fuel-station section strong {
    color: #f8fafc;
    font-size: 20px;
}

.monitor-fuel-station > a,
.monitor-fuel-station > .monitor-fuel-map {
    width: auto;
    min-height: 0;
    border-radius: 8px;
    padding: 8px 10px;
    border: 0;
    color: #052e1b;
    background: #b9f3da;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.monitor-dialog-actions.monitor-fuel-results .monitor-fuel-close {
    justify-self: end;
    width: auto;
    min-height: 0;
    padding: 9px 16px;
    color: #450a0a;
    background: #fecaca;
    font-size: 16px;
}

.monitor-fuel-loading {
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 850;
    text-align: center;
}

.monitor-dialog-actions.monitor-map-results {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: min(70vh, 680px);
}

.monitor-dialog-actions.monitor-map-results .monitor-map-close {
    justify-self: end;
    width: auto;
    min-height: 0;
    padding: 9px 16px;
    color: #450a0a;
    background: #fecaca;
    font-size: 16px;
}

.monitor-map-frame {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.monitor-dialog-actions.pdf-viewer .recall-detail-close {
    justify-self: end;
    width: auto;
    min-height: 0;
    padding: 8px 14px;
    color: #450a0a;
    background: linear-gradient(135deg, #fecaca, #ef4444);
    font-size: 16px;
}

.recall-pdf-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.empty-bay {
    display: grid;
    place-items: center;
    min-height: 52vh;
    padding: 40px;
    text-align: center;
}

.empty-bay span {
    color: #b9f3da;
    font-size: 18px;
    font-weight: 950;
    text-transform: uppercase;
}

.empty-bay h2 {
    margin: 8px 0;
    font-size: clamp(42px, 5vw, 78px);
}

.empty-bay p {
    margin: 0;
    color: var(--muted);
    font-size: 24px;
    font-weight: 750;
}

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .monitor-shell {
        height: auto;
        min-height: 100vh;
        padding: 14px;
        overflow: visible;
    }

    .monitor-header,
    .job-card-top {
        align-items: stretch;
        flex-direction: column;
    }

    .job-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "title"
            "tags"
            "notes"
            "action";
    }

    .monitor-brand {
        justify-items: start;
    }

    .monitor-side-widgets {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .garage-badge {
        width: 100%;
        min-width: 0;
    }

    .garage-badge img {
        max-width: 100%;
    }

    .monitor-stats {
        grid-template-columns: 1fr;
    }

    .monitor-header-stats {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }

    .monitor-fuel-summary,
    .monitor-fuel-station {
        grid-template-columns: 1fr;
    }

    .monitor-fuel-station > a {
        justify-self: start;
    }

    .job-grid {
        grid-template-columns: 1fr;
        overflow: visible;
    }
}
