html, body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.app-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Number plate badge (Cyprus plates are black on white/yellow) */
.plate {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 2px solid #1f2937;
    border-radius: 4px;
    padding: 0 0.45em;
    background: #fff;
    color: #111;
    white-space: nowrap;
}

.plate-lg {
    font-size: 1.6rem;
    padding: 0.1em 0.5em;
}

/* Long Greek texts ("17 ημέρες εκπρόθεσμο") must wrap inside narrow cards instead of overflowing */
.due-chip.mud-chip {
    height: auto;
    min-height: 24px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.checklist-row {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 2px 0;
}

.totals-table td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.totals-table .totals-grand td {
    font-weight: 700;
    border-top: 2px solid var(--mud-palette-lines-default);
}

.text-right {
    text-align: right;
}

.clickable-rows tbody tr {
    cursor: pointer;
}

/* The garage's logo: in Settings, on the invoice and on the printed job card */
.logo-preview {
    max-height: 64px;
    max-width: 220px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: 4px;
    background: #fff;
}

.inv-logo {
    display: block;
    max-height: 70px;
    max-width: 230px;
    margin-bottom: 6px;
}

.ws-logo {
    display: block;
    max-height: 48px;
    max-width: 200px;
    margin-bottom: 4px;
}

/* The notice to a garage's owner that the subscription ends soon or has ended: a slim bar above the page */
.subscription-notice {
    border-radius: 0;
}

/* A job in the list of the "Work done" field: its name, and its group (or its last price) at the right */
.work-option {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
}

.work-option-group {
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* The filter boxes under a table's headings: small and close to the heading they belong to */
.filter-row th {
    padding-top: 0;
    padding-bottom: 6px;
    font-weight: 400;
}

/* A box is as wide as its column and never makes the column wider */
.column-filter,
.column-filter .mud-input-control-input-container,
.column-filter .mud-input {
    min-width: 0;
    margin-top: 0;
}

.column-filter input {
    width: 100%;
    min-width: 0;
    font-size: 0.8125rem;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

.pre-wrap {
    white-space: pre-wrap;
}

.pre-line {
    white-space: pre-line;
}

/* One-line preview of a message in lists; the full text is in the tooltip. */
.message-preview {
    font-size: 0.8rem;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Diary ---------- */
.diary-scroll {
    overflow-x: auto;
}

.diary-grid {
    display: flex;
    min-width: fit-content;
}

.diary-axis {
    flex: 0 0 52px;
}

.diary-axis-hours {
    position: relative;
}

.diary-axis-label {
    position: absolute;
    right: 6px;
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    transform: translateY(-50%);
}

    .diary-axis-label:first-child {
        transform: none;
    }

.diary-day {
    flex: 1 1 0;
    min-width: 130px;
    border-left: 1px solid var(--mud-palette-lines-default);
}

    .diary-day.single {
        min-width: 320px;
    }

    .diary-day.today .diary-day-header {
        background: rgba(31, 58, 95, 0.08);
    }

.diary-day-header {
    height: 76px;
    box-sizing: border-box;
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
}

.diary-day-name {
    font-weight: 600;
    text-transform: capitalize;
}

.diary-day-date, .diary-day-load {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.diary-col {
    position: relative;
}

.diary-slots {
    position: absolute;
    inset: 0;
    cursor: copy;
    background-image: linear-gradient(to bottom, var(--mud-palette-lines-default) 1px, transparent 1px);
}

    .diary-slots.closed {
        background-color: rgba(0, 0, 0, 0.035);
    }

.diary-now {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px solid #e53935;
    z-index: 3;
    pointer-events: none;
}

.diary-appt {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    padding: 2px 5px;
    border-radius: 4px;
    border-left: 4px solid #1f3a5f;
    background: #e8eef7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

    .diary-appt:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        z-index: 4;
    }

    .diary-appt.status-arrived {
        background: #e7f5ea;
        border-left-color: #2e7d32;
    }

    .diary-appt.status-noshow {
        background: #fdecea;
        border-left-color: #c62828;
    }

    .diary-appt.status-cancelled {
        background: #f1f1f1;
        border-left-color: #9e9e9e;
        color: #777;
        text-decoration: line-through;
    }

.diary-appt-time {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.diary-appt-icon {
    font-size: 14px !important;
    vertical-align: text-bottom;
}

.diary-appt-ro {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #2e7d32;
}

.diary-appt-line, .diary-appt-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diary-appt-desc {
    color: #444;
}

.diary-plate {
    font-size: 10px;
    padding: 0 3px;
    margin-right: 4px;
    border-width: 1px;
}

/* ---------- Invoice document (screen preview and A4 print page) ---------- */
.invoice-doc {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    color: #111;
    background: #fff;
    max-width: 820px;
    margin: 0 auto;
}

.inv-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 2px solid #1f3a5f;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.inv-trading-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f3a5f;
}

.inv-title {
    text-align: right;
}

.inv-type {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f3a5f;
}

.inv-meta {
    margin-left: auto;
}

    .inv-meta td {
        padding: 1px 0 1px 12px;
        text-align: right;
    }

        .inv-meta td:first-child {
            color: #555;
        }

.inv-parties {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.inv-box {
    flex: 1;
    min-width: 220px;
    border: 1px solid #d0d7e2;
    border-radius: 4px;
    padding: 8px 10px;
}

.inv-box-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 2px;
}

.inv-muted {
    color: #666;
    font-size: 12px;
}

.inv-reason {
    background: #fff4e5;
    border: 1px solid #f5c27a;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.inv-lines {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

    .inv-lines th {
        background: #1f3a5f;
        color: #fff;
        text-align: left;
        font-weight: 600;
        padding: 5px 6px;
    }

    .inv-lines td {
        padding: 4px 6px;
        border-bottom: 1px solid #e3e8ef;
        vertical-align: top;
    }

    .inv-lines .num, .inv-vat .num, .inv-totals .num {
        text-align: right;
        white-space: nowrap;
    }

.inv-section td {
    background: #f1f4f8;
    font-weight: 600;
}

.inv-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.inv-vat {
    border-collapse: collapse;
    min-width: 260px;
}

.inv-novat {
    color: #555;
    padding-top: 3px;
}

    .inv-vat th {
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #ccc;
        padding: 3px 6px;
    }

    .inv-vat td, .inv-totals td {
        padding: 3px 6px;
    }

.inv-totals {
    border-collapse: collapse;
    min-width: 280px;
}

.inv-grand td {
    font-weight: 700;
    font-size: 15px;
    border-top: 2px solid #1f3a5f;
}

.inv-notes {
    margin-top: 12px;
}

.inv-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #444;
}

.invoice-preview {
    overflow-x: auto;
}

/* ---------- Print page ---------- */
.print-shell {
    background: #e9edf2;
    min-height: 100vh;
    padding: 16px;
}

    .print-shell .invoice-doc {
        width: 210mm;
        max-width: 100%;
        min-height: 297mm;
        box-sizing: border-box;
        padding: 15mm;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

.print-toolbar {
    max-width: 210mm;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.print-button {
    background: #1f3a5f;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* ---------- The job card on paper for the technician (boxes to tick by hand, no prices) ---------- */
.worksheet {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 14mm;
    background: #fff;
    color: #111;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12pt;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

    .worksheet h2 {
        font-size: 10.5pt;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1.5px solid #111;
        margin: 14px 0 6px;
        padding-bottom: 2px;
    }

.ws-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 2px solid #111;
    padding-bottom: 6px;
}

.ws-garage {
    font-size: 15pt;
    font-weight: 700;
}

.ws-tech {
    text-align: right;
}

    .ws-tech span {
        display: block;
        font-size: 9pt;
        text-transform: uppercase;
        color: #444;
    }

    /* A line to write the name on when nobody is assigned yet */
    .ws-tech b {
        display: inline-block;
        min-width: 55mm;
        min-height: 7mm;
        border-bottom: 1px solid #111;
        font-size: 14pt;
        text-align: center;
    }

.ws-car {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 6px;
}

.ws-car-name {
    font-size: 15pt;
    font-weight: 600;
}

.ws-facts {
    width: 100%;
    border-collapse: collapse;
    font-size: 11pt;
}

    .ws-facts th {
        text-align: left;
        font-weight: 600;
        color: #444;
        padding: 2px 8px 2px 0;
        white-space: nowrap;
        width: 1%;
    }

    .ws-facts td {
        padding: 2px 16px 2px 0;
    }

.ws-alert {
    margin-top: 6px;
    padding: 4px 8px;
    border: 1.5px solid #111;
    font-weight: 600;
}

.ws-text {
    white-space: pre-wrap;
    font-size: 13pt;
    min-height: 8mm;
}

.ws-small {
    font-size: 10.5pt;
    min-height: 0;
    margin-top: 4px;
}

.ws-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10mm;
}

.ws-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    break-inside: avoid;
}

.ws-box {
    flex: 0 0 5mm;
    width: 5mm;
    height: 5mm;
    margin-top: 1px;
    border: 1.5px solid #111;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10pt;
    line-height: 1;
}

.ws-line {
    flex: 1;
    height: 5mm;
    border-bottom: 1px solid #888;
}

.ws-checklist {
    columns: 2;
    column-gap: 10mm;
}

.ws-note-line {
    height: 8mm;
    border-bottom: 1px solid #888;
}

.ws-sign {
    width: 100%;
    margin-top: 10mm;
    border-collapse: collapse;
    table-layout: fixed;
}

    .ws-sign td {
        font-size: 9.5pt;
        color: #444;
        padding-right: 8mm;
    }

        .ws-sign td:last-child {
            padding-right: 0;
        }

        .ws-sign td span {
            display: block;
            height: 9mm;
            border-bottom: 1px solid #111;
        }

@media (max-width: 600px) {
    .worksheet {
        padding: 6mm;
    }
}

/* ---------------------------------------------------------------- workshop board, arrival and the job card */

/* Big, thumb-friendly buttons for the one next step */
.big-action.mud-button-root {
    min-height: 52px;
    font-size: 1.05rem;
}

/* Arrival: the plate is typed like a number plate */
.arrival {
    max-width: 720px;
}

.plate-input input {
    text-transform: uppercase;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.arrival-known {
    border-left: 4px solid var(--mud-palette-success) !important;
}

/* Simple job card: work list */
.work-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Icon above the label, so "+ Ανταλλακτικό" fits half a phone screen */
.work-buttons .mud-button-root {
    min-height: 64px;
    padding: 6px 8px;
    font-size: 1rem;
    text-transform: none;
}

.work-buttons .mud-button-label {
    flex-direction: column;
    gap: 2px;
}

.work-buttons .mud-button-icon-start {
    margin: 0;
}

/* What a garage holds, shown before it is deleted: a short list of counts */
.delete-contents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 20px;
}

.delete-contents > div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

@media (max-width: 600px) {
    .delete-contents {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Settings has seven tabs: a little less air around each, so they sit side by side on a laptop */
.settings-tabs .mud-tab {
    padding: 6px 8px;
    letter-spacing: 0.01em;
}

.settings-tabs .mud-tab .mud-icon-root {
    font-size: 1.25rem;
    margin-right: 6px;
}

/* The third button, under the two: a package of work and parts in one tap */
.work-buttons .mud-button-root.work-package {
    grid-column: 1 / -1;
    min-height: 44px;
}

.work-buttons .work-package .mud-button-label {
    flex-direction: row;
    gap: 6px;
}

/* In the package's own dialog the two buttons are smaller than on the job card */
.package-buttons .mud-button-root {
    min-height: 44px;
}

.package-buttons .mud-button-label {
    flex-direction: row;
    gap: 6px;
}

.work-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.work-row.clickable {
    cursor: pointer;
}

/* The heading of a separate job in the simple list */
.work-row.work-job {
    padding-top: 14px;
    background: var(--mud-palette-background-gray);
}

.work-row.clickable:hover {
    background: var(--mud-palette-action-default-hover);
}

.work-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.work-amount {
    font-weight: 600;
    white-space: nowrap;
}

.work-actions {
    display: flex;
    white-space: nowrap;
}

.next-step {
    border-top: 4px solid var(--mud-palette-primary);
}

/* Payment and hand-over: four big choices, two per row */
.pay-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-buttons .mud-button-root {
    min-height: 56px;
}

/* Photos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.photo-thumb {
    padding: 0;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--mud-palette-background-gray);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-full {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    border-radius: 6px;
}

/* Workshop board (home page) */
.board-column {
    background: var(--mud-palette-background-gray);
    border-radius: 8px;
    padding: 10px;
    min-height: 120px;
    height: 100%;
}

.board-card {
    display: block;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.board-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.board-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.board-make {
    font-weight: 600;
}

.board-customer {
    margin-top: 4px;
}

.board-technician {
    margin-top: 2px;
    font-size: 0.875rem;
    font-weight: 600;
}

.board-request {
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.board-meta .mud-icon-root {
    font-size: 1rem;
    vertical-align: text-bottom;
}

.board-late {
    color: var(--mud-palette-error);
    font-weight: 600;
}

.board-total {
    margin-left: auto;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

/* ---------------------------------------------------------------- figures */

.stat-trend {
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trend-up {
    color: var(--mud-palette-success);
    font-weight: 600;
}

.trend-down {
    color: var(--mud-palette-error);
    font-weight: 600;
}

.figure-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}

/* Twelve months of sales as plain bars; values appear on wider screens and as a tooltip */
.month-chart {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 220px;
    padding-top: 8px;
}

.month-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.month-bar {
    width: 100%;
    max-width: 48px;
    min-height: 2px;
    background: var(--mud-palette-primary-lighten);
    border-radius: 4px 4px 0 0;
}

.month-bar.current {
    background: var(--mud-palette-primary);
}

.month-value {
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    margin-bottom: 2px;
}

.month-label {
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--mud-palette-text-secondary);
}

/* Figures page on a phone: two cards per row, without the round icon */
@media (max-width: 599px) {
    .figure-cards .mud-avatar {
        display: none;
    }

    .figure-cards .mud-typography-h5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 700px) {
    .month-value {
        display: none;
    }

    .month-chart {
        gap: 3px;
    }
}

/* Change history */
.audit-change {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

/* Checklist on the job card: a whole row is the tick box */
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.check-row.clickable {
    cursor: pointer;
}

.check-row.clickable:hover {
    background: var(--mud-palette-action-default-hover);
}

.check-row.done .check-text > div:first-child {
    color: var(--mud-palette-text-secondary);
}

.check-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.check-note {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

/* Checklist editor (Settings) */
.checklist-edit {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.checklist-edit-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.checklist-edit-row:last-child {
    border-bottom: none;
}

.checklist-edit-number {
    min-width: 1.6em;
}

.checklist-edit-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.checklist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

/* Email and SMS page: the Microsoft 365 set-up steps */
.m365-steps {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.875rem;
}

.m365-steps li {
    margin-bottom: 4px;
}

/* Authenticator set-up: a white quiet zone around the code so phones read it in any theme */
.qr-code {
    display: block;
    background: #fff;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* The administrator's read-only view of a garage */
.support-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 16px;
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffe69c;
    font-size: 0.9rem;
}

.support-banner.support-changes {
    background: #ffd8a8;
    color: #6b2c00;
    border-bottom-color: #f59f00;
}

.support-banner .support-text {
    flex: 1;
    min-width: 200px;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    .no-print {
        display: none !important;
    }

    .print-shell {
        background: #fff;
        padding: 0;
    }

        .print-shell .invoice-doc {
            width: auto;
            min-height: 0;
            padding: 0;
            box-shadow: none;
        }

    .worksheet {
        width: auto;
        min-height: 0;
        padding: 0;
        box-shadow: none;
    }

    .inv-lines th, .inv-section td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Account (sign-in / sign-up) pages are statically rendered with Bootstrap */
.account-shell {
    min-height: 100vh;
    background: #f5f7fa;
}

.account-header {
    background: #1f3a5f;
    color: #fff;
}

    .account-header a {
        color: #fff;
        text-decoration: none;
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.validation-message {
    color: #e50000;
}

#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: 2000;
}

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

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* The page a customer opens from an approval link: one card, readable on a phone. */
.public-shell {
    min-height: 100vh;
    background: #f1f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
}

.public-main {
    width: 100%;
    max-width: 560px;
}

.public-footer {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6b7280;
}

    .public-footer a {
        color: #1f3a5f;
        margin: 0 6px;
    }

        .public-footer a.current {
            font-weight: 700;
            text-decoration: none;
        }

.approval-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    padding: 20px;
    line-height: 1.5;
}

    .approval-card h1 {
        font-size: 1.3rem;
        margin: 0 0 8px;
    }

.approval-garage {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #1f3a5f;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.approval-logo {
    max-height: 48px;
    max-width: 120px;
}

.approval-garage-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f3a5f;
}

.approval-car {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.approval-lines {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
}

    .approval-lines td {
        padding: 6px 0;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
    }

    .approval-lines tfoot td {
        font-weight: 700;
        font-size: 1.15rem;
        border-bottom: none;
        border-top: 2px solid #1f3a5f;
    }

.approval-amount {
    text-align: right;
    white-space: nowrap;
    padding-left: 12px !important;
}

.approval-buttons {
    display: flex;
    gap: 12px;
}

    .approval-buttons button {
        flex: 1;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 14px 8px;
        border-radius: 8px;
        cursor: pointer;
    }

.approval-approve {
    background: #2e7d32;
    color: #fff;
    border: none;
}

.approval-decline {
    background: #fff;
    color: #b42318;
    border: 2px solid #b42318;
}

.approval-result {
    font-size: 1.1rem;
    font-weight: 600;
}

.approval-result-ok {
    color: #2e7d32;
}

/* A discounted line on the job card: its percentage under the amount. */
.work-discount {
    font-size: 0.75rem;
    color: #2e7d32;
    text-align: right;
}

/* An offer's text as the customer will see it. */
.offer-preview {
    white-space: pre-wrap;
    background: #f1f4f8;
    border-left: 3px solid #1f3a5f;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

/* The send bar under a new offer stays in view. */
.offer-send {
    position: sticky;
    bottom: 8px;
    z-index: 2;
}
