html, body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    background: #f4f2f7;
}

h1:focus {
    outline: none;
}

/* ── Landing ───────────────────────────── */
.kiosk-landing {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(16px, 3vh, 40px) 40px clamp(14px, 2vh, 28px);
    box-sizing: border-box;
}

.kiosk-greeting {
    margin: 0 0 clamp(12px, 2.4vh, 28px);
    font-size: clamp(26px, 4vh, 40px);
    font-weight: 800;
    letter-spacing: -.5px;
    color: #161616;
}

.kiosk-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(14px, 2.2vh, 26px);
    flex: 1;
    min-height: 0;
}

.kiosk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: clamp(10px, 1.6vh, 20px);
    padding: clamp(18px, 2.6vh, 34px) clamp(20px, 2vw, 36px);
    min-height: 0;
    overflow: hidden;
    border: none;
    border-radius: 26px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

.kiosk-card--orange {
    background: #C14A24;
}

.kiosk-card--blue {
    background: #2541D8;
}

.kiosk-card--green {
    background: #304751;
}

.kiosk-card--purple {
    background: #5B2A86;
}

.kiosk-card:not(.kiosk-card--disabled):hover {
    transform: translateY(-4px);
    filter: brightness(1.04);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.kiosk-card--disabled {
    cursor: default;
    opacity: .72;
}

.kiosk-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 6vh, 64px);
    height: clamp(44px, 6vh, 64px);
    flex: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, .16);
}

.kiosk-card-icon .mud-icon-root {
    font-size: clamp(24px, 3.2vh, 34px);
    color: #fff;
}

/* Brand logo in a card icon slot (Club → DELPEÇAS) — shown ~5× the icon size */
.kiosk-card-icon--logo {
    background: transparent;
    padding: 0;
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    border-radius: 0;
}
.kiosk-card-logo {
    max-width: 100%;
    max-height: 100%;
    width: clamp(150px, 22vh, 240px);
    height: auto;
    object-fit: contain;
    display: block;
}

/* Illustration image in a card icon slot (medium size) */
.kiosk-card-icon--img {
    background: transparent;
    padding: 0;
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    border-radius: 0;
}
.kiosk-card-img {
    max-width: 100%;
    max-height: 100%;
    width: clamp(96px, 14vh, 150px);
    height: auto;
    object-fit: contain;
    display: block;
}

.kiosk-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(4px, 1vh, 10px);
}

.kiosk-card-title {
    flex: none;
    align-self: flex-start;
    text-align: left;
    font-size: clamp(22px, 3.2vh, 34px);
    font-weight: 800;
    letter-spacing: -.5px;
}

/* Centered illustration (PNG from assets/images) between the top-left title and the bottom sentence */
.kiosk-card-media {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kiosk-card-art {
    max-height: 100%;
    max-width: 80%;
    width: clamp(110px, 20vh, 220px);
    height: auto;
    object-fit: contain;
    display: block;
}

.kiosk-card-text {
    flex: none;
    align-self: center;
    text-align: center;
    font-size: clamp(14px, 1.7vh, 17px);
    line-height: 1.4;
    color: rgba(255, 255, 255, .88);
    max-width: 92%;
}

.kiosk-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: clamp(8px, 1.3vh, 12px) clamp(16px, 1.6vw, 24px);
    border-radius: 999px;
    background: #fff;
    color: #161616;
    font-size: clamp(14px, 1.7vh, 17px);
    font-weight: 700;
}

.kiosk-card--orange .kiosk-card-action { color: #C14A24; }
.kiosk-card--blue .kiosk-card-action { color: #2541D8; }
.kiosk-card--green .kiosk-card-action { color: #304751; }
.kiosk-card--purple .kiosk-card-action { color: #5B2A86; }

.kiosk-card-action--ghost {
    background: rgba(255, 255, 255, .22);
    color: #fff !important;
}

.kiosk-card-badge {
    position: absolute;
    top: 26px;
    right: 28px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* ── Footer bar ────────────────────────── */
.kiosk-footerbar {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex: none;
    margin-top: clamp(14px, 2.2vh, 26px);
}

.kiosk-orders {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.kiosk-orders-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #FBEAE2;
}

.kiosk-orders-icon .mud-icon-root { color: #C14A24; }

.kiosk-orders-title { font-size: 17px; font-weight: 700; color: #161616; }
.kiosk-orders-sub { font-size: 14px; color: #8a8a8a; }

.kiosk-help {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    border-radius: 18px;
    background: #1b1b1b;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.kiosk-help:hover { background: #000; }

/* ── ALERTAS hero ──────────────────────── */
/* The hero card has no big illustration; its content IS the breakdown of
   what's coming due, pinned to the bottom of the card. */
.fleet-badge--loud {
    background: #fff;
    color: #C14A24;
    font-weight: 800;
    font-size: 15px;
}

.fleet-alert-list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1vh, 9px);
}

.fleet-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(6px, 1.1vh, 11px) clamp(12px, 1.4vw, 18px);
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    font-size: clamp(14px, 1.7vh, 17px);
    font-weight: 600;
}

.fleet-alert b {
    min-width: 28px;
    text-align: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff;
    color: #C14A24;
    font-weight: 800;
}

/* ── Bottom action bar (3-up) ──────────── */
.fleet-bottombar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(12px, 1.6vw, 20px);
    flex: none;
    margin-top: clamp(14px, 2.2vh, 26px);
}

.fleet-action {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: clamp(14px, 1.8vh, 20px) clamp(16px, 1.6vw, 22px);
    border: none;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.fleet-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.fleet-action-badge {
    margin-left: auto;
    flex: none;
    min-width: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #C14A24;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.fleet-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
}

.fleet-action-icon .mud-icon-root { font-size: 26px; }

.fleet-action--report .fleet-action-icon { background: #FBEAE2; }
.fleet-action--report .fleet-action-icon .mud-icon-root { color: #C14A24; }
.fleet-action--book .fleet-action-icon { background: #E6EAFB; }
.fleet-action--book .fleet-action-icon .mud-icon-root { color: #2541D8; }
.fleet-action--call .fleet-action-icon { background: #1b1b1b; }
.fleet-action--call .fleet-action-icon .mud-icon-root { color: #fff; }

.fleet-action-title {
    font-size: clamp(15px, 1.9vh, 18px);
    font-weight: 700;
    color: #161616;
}

.fleet-action-sub {
    font-size: clamp(12px, 1.5vh, 14px);
    color: #8a8a8a;
    margin-top: 2px;
}

/* ── Placeholder pages (ALERTAS / FROTA / CUSTOS / avaria) ── */
.fleet-stub {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}

.fleet-stub-back {
    align-self: flex-start;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #161616;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.fleet-stub h1 { margin: 8px 0 0; font-size: 40px; font-weight: 800; color: #161616; }
.fleet-stub p { margin: 0; font-size: 18px; color: #555; max-width: 660px; line-height: 1.5; }

/* ════════ Pedir peças wizard ════════════ */
.pecas {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 40px 32px;
    box-sizing: border-box;
}

.pecas-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #161616;
    margin: 0 0 18px;
}

.pecas-inline-error {
    color: #b32121;
    font-weight: 600;
    font-size: 15px;
    margin: 8px 0;
}

/* ── Top bar + stepper ── */
.pecas-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
}

.pecas-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #161616;
    cursor: pointer;
}

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-seg { display: flex; align-items: center; gap: 8px; opacity: .45; }
.stepper-seg.active, .stepper-seg.done { opacity: 1; }
.stepper-seg:not(:last-child)::after {
    content: ""; width: 26px; height: 2px; background: rgba(0,0,0,.15); margin-left: 4px;
}
.stepper-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #e3e0d8; color: #6b6b6b; font-size: 13px; font-weight: 700;
}
.stepper-seg.active .stepper-dot { background: #C14A24; color: #fff; }
.stepper-seg.done .stepper-dot { background: #1e8e3e; color: #fff; }
.stepper-label { font-size: 14px; font-weight: 600; color: #161616; }

/* ── Step 1: plate ── */
.plate-step { display: flex; flex-direction: column; align-items: center; }
.plate-step .pecas-title { text-align: center; }

.plate-display {
    display: inline-flex; align-items: stretch;
    height: 84px; border: 3px solid #161616; border-radius: 12px;
    overflow: hidden; background: #fff; margin-bottom: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.plate-eu {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 46px; background: #0033a0; color: #ffcc00; gap: 2px;
}
.plate-stars { font-size: 14px; }
.plate-country { font-size: 15px; font-weight: 700; color: #fff; }
.plate-text {
    display: flex; align-items: center; padding: 0 28px;
    font-size: 48px; font-weight: 800; letter-spacing: 6px; color: #161616;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.plate-keyboard { margin-top: 18px; }
.plate-hint { color: #8a8a8a; font-size: 15px; margin-top: 14px; }

/* On-screen keyboard */
.kbd { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.kbd-row { display: flex; gap: 10px; }
.kbd-key {
    min-width: 54px; height: 54px; padding: 0 14px;
    border: none; border-radius: 12px; background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    font-size: 20px; font-weight: 600; color: #161616; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .08s ease, background .12s ease;
}
.kbd-key:hover { background: #f3f1ec; }
.kbd-key:active { transform: translateY(1px); }
.kbd-key--wide { min-width: 80px; }
.kbd-key--enter {
    background: #C14A24; color: #fff; min-width: 150px; gap: 8px; font-weight: 700;
}
.kbd-key--enter:hover { background: #a93f1f; }

/* ── Vehicle bar ── */
.veh-bar {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 16px; padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06); margin-bottom: 22px;
}
.veh-plate {
    font-weight: 800; font-size: 18px; letter-spacing: 2px; color: #161616;
    border: 2px solid #161616; border-radius: 8px; padding: 4px 12px;
}
.veh-info { display: flex; flex-direction: column; margin-right: auto; }
.veh-name { font-weight: 700; color: #161616; }
.veh-detail { font-size: 13px; color: #8a8a8a; }
.veh-ok {
    display: inline-flex; align-items: center; gap: 6px;
    color: #1e8e3e; font-weight: 700; font-size: 14px;
}
.veh-change {
    border: 1px solid rgba(0,0,0,.14); background: #fff; border-radius: 999px;
    padding: 7px 16px; font-weight: 600; cursor: pointer; color: #161616;
}

/* ── Search box ── */
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cat-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; padding: 10px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); min-width: 280px; color: #8a8a8a;
}
.cat-search input { border: none; outline: none; background: transparent; font-size: 16px; width: 100%; color: #161616; }
.cat-search--sm { min-width: 200px; padding: 8px 14px; }

/* ── Category grid ── */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px;
}
.cat-tile {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    align-items: flex-start; text-align: left;
    background: #fff; border: none; border-radius: 20px; padding: 22px;
    min-height: 120px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: transform .14s ease, box-shadow .14s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.cat-tile-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; background: #FBEAE2;
}
.cat-tile-icon .mud-icon-root { color: #C14A24; font-size: 26px; }
.cat-tile-name { font-size: 18px; font-weight: 700; color: #161616; }
.cat-tile--promo { background: #161616; }
.cat-tile--promo .cat-tile-name { color: #fff; }
.cat-tile--promo .cat-tile-icon { background: rgba(255,255,255,.14); }
.cat-tile--promo .cat-tile-icon .mud-icon-root { color: #fff; }
.cat-badge {
    position: absolute; top: 16px; right: 16px;
    background: #C14A24; color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}

/* ── Step 3: products + cart ── */
.prod-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prod-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.prod-list { display: flex; flex-direction: column; gap: 12px; }
.prod-empty { color: #8a8a8a; padding: 24px 0; }
.prod-row {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 2px solid transparent; border-radius: 16px; padding: 16px 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.prod-row.selected { border-color: #C14A24; }
.prod-info { flex: 1; min-width: 0; }
.prod-name { font-weight: 700; color: #161616; display: flex; align-items: center; gap: 8px; }
.prod-tag { background: #FBEAE2; color: #C14A24; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.prod-meta { font-size: 13px; color: #8a8a8a; margin-top: 2px; }
.prod-price { font-weight: 800; color: #161616; font-size: 17px; white-space: nowrap; }
.prod-add {
    display: inline-flex; align-items: center; gap: 6px;
    border: 2px solid #C14A24; background: #fff; color: #C14A24;
    border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.prod-add:hover { background: #FBEAE2; }
.qty {
    display: inline-flex; align-items: center; gap: 4px;
    background: #C14A24; border-radius: 999px; padding: 4px; color: #fff;
}
.qty button {
    border: none; background: rgba(255,255,255,.2); color: #fff;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.cart {
    position: sticky; top: 16px; background: #fff; border-radius: 20px; padding: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 14px;
}
.cart-title { font-size: 18px; font-weight: 800; color: #161616; }
.cart-empty { color: #8a8a8a; font-size: 14px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.cart-qty { font-weight: 700; color: #C14A24; }
.cart-name { flex: 1; min-width: 0; color: #161616; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-sum { font-weight: 700; color: #161616; white-space: nowrap; }
.cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; font-size: 16px;
}
.cart-total strong { font-size: 24px; color: #161616; }
.cart-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #C14A24; color: #fff; border: none; border-radius: 14px;
    padding: 16px; font-size: 18px; font-weight: 700; cursor: pointer;
}
.cart-submit:hover:not(:disabled) { background: #a93f1f; }
.cart-submit:disabled { opacity: .5; cursor: default; }
/* ── Step 3b: option (Encomendar / Orçamentar / Separar) ── */
.opt-step {
    flex: 1; display: flex; flex-direction: column;
    width: 100%; max-width: 720px; margin: 0 auto;
}
.opt-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 20px; }
.opt-card {
    display: flex; align-items: center; gap: 18px; text-align: left; cursor: pointer;
    background: #fff; border: 2px solid rgba(0,0,0,.12); border-radius: 18px;
    padding: 20px 22px; font-family: inherit;
}
.opt-card:hover { background: #faf9f6; }
.opt-card.selected { border-color: #C14A24; background: #fdf3ee; }
.opt-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 15px; background: #f1f1f4; color: #C14A24;
}
.opt-icon .mud-icon-root { font-size: 30px; }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt-title { font-size: 20px; font-weight: 800; color: #161616; }
.opt-desc { font-size: 15px; line-height: 1.45; color: #6a6a6a; }
.opt-radio { flex: none; color: #C14A24; }
.opt-radio .mud-icon-root { font-size: 30px; }
.opt-continue { align-self: stretch; }

/* ── Order history (shared component + toggles) ── */
.hist-toggle {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #161616;
    border-radius: 12px; padding: 10px 16px; font-size: 15px; font-weight: 700; font-family: inherit;
}
.hist-toggle:hover { background: #f3f1ec; }
.hist-toggle-row { margin: 4px 0 16px; }

/* Ficha tabs (tablet) */
.ficha-tabs { display: flex; gap: 8px; margin: 4px 0 16px; }
.ficha-tab {
    flex: 1; padding: 14px; cursor: pointer; font-family: inherit;
    border: 1px solid rgba(0,0,0,.1); background: #fff; color: #555;
    border-radius: 12px; font-size: 16px; font-weight: 700;
}
.ficha-tab:hover { background: #f6f5f1; }
.ficha-tab.active { background: #2541D8; color: #fff; border-color: #2541D8; }
.ficha-tabpanel { display: flex; flex-direction: column; gap: 16px; }
.ohist-obra { border-left-color: #2541D8; }

/* Histórico — lista de datas das obras */
.hlist { display: flex; flex-direction: column; gap: 10px; }
.hlist-item {
    display: flex; align-items: center; gap: 16px; width: 100%; cursor: pointer; text-align: left;
    background: #f6f5f1; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
    padding: 16px 18px; font-family: inherit;
}
.hlist-item:hover { background: #efede7; }
.hlist-date {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    font-size: 16px; font-weight: 800; color: #161616; font-variant-numeric: tabular-nums;
}
.hlist-date .mud-icon-root { color: #2541D8; }
.hlist-main { flex: 1; min-width: 0; font-size: 15px; color: #5a5a5a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist-status { flex: none; font-size: 13px; font-weight: 700; color: #6b6b6b; }
.hlist-item .mud-icon-root { color: #9a9a9a; }

.ohist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ohist-loading, .ohist-empty { color: #8a8a8a; font-size: 15px; padding: 8px 2px; }
.ohist-day { font-size: 13px; font-weight: 700; color: #9a9a9a; text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.ohist-card {
    background: #fff; border: 1px solid rgba(0,0,0,.08); border-left: 5px solid #8a8a8a;
    border-radius: 12px; padding: 12px 14px;
}
.ohist-enc { border-left-color: #C14A24; }
.ohist-orc { border-left-color: #2541D8; }
.ohist-sep { border-left-color: #5B2A86; }
.ohist-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ohist-badge {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
    border-radius: 999px; padding: 3px 10px; background: #f1f1f4; color: #555;
}
.ohist-enc .ohist-badge { background: #f8ece6; color: #C14A24; }
.ohist-orc .ohist-badge { background: #e9edfb; color: #2541D8; }
.ohist-sep .ohist-badge { background: #f3f1f7; color: #5B2A86; }
.ohist-num { font-size: 14px; font-weight: 700; color: #161616; }
.ohist-time { font-size: 13px; color: #9a9a9a; }
.ohist-status { margin-left: auto; font-size: 13px; font-weight: 700; color: #6b6b6b; }
.ohist-lines { display: flex; flex-direction: column; gap: 2px; }
.ohist-line { display: flex; gap: 8px; font-size: 14px; color: #3a3a3a; }
.ohist-qty { font-weight: 800; color: #161616; min-width: 28px; }
.ohist-name { min-width: 0; }

/* parts mode — flat distinct list of parts + references */
.ohist-parts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ohist-part {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; padding: 10px 14px;
}
.ohist-part .mud-icon-root { font-size: 18px; color: #8a8a8a; }
.ohist-part-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: #161616; }
.ohist-part-brand { font-size: 13px; color: #8a8a8a; }
.cart-note { font-size: 12px; color: #8a8a8a; text-align: center; margin: 0; }

/* ── Step 4: confirmation ── */
.done-step {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 10px; padding: 24px 16px;
}
.done-check .mud-icon-root { font-size: 84px; color: #1e8e3e; }
.done-title { font-size: 36px; font-weight: 800; color: #161616; margin: 8px 0 0; }
.done-sub { font-size: 18px; color: #6b6b6b; margin: 0 0 8px; }
.done-receipt {
    background: #fff; border-radius: 16px; padding: 18px 24px; min-width: 360px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 10px;
}
.done-row { display: flex; justify-content: space-between; gap: 24px; font-size: 15px; color: #6b6b6b; }
.done-row strong { color: #161616; }
.done-divider { height: 1px; background: rgba(0,0,0,.08); margin: 4px 0; }
.done-summary-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8a8a8a; }
.done-item { display: flex; gap: 10px; font-size: 15px; color: #161616; text-align: left; }
.done-item-qty { font-weight: 700; color: #C14A24; min-width: 28px; }
.done-item-name { flex: 1; }
.done-countdown { font-size: 14px; color: #8a8a8a; margin-top: 6px; }
.done-actions { display: flex; gap: 14px; margin-top: 10px; }
.done-btn-ghost {
    border: 1px solid rgba(0,0,0,.16); background: #fff; color: #161616;
    border-radius: 14px; padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.done-btn-dark {
    border: none; background: #1b1b1b; color: #fff;
    border-radius: 14px; padding: 14px 32px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.done-btn-dark:hover { background: #000; }

/* ════════ As minhas obras ═══════════════ */
.obras {
    flex: 1; display: flex; flex-direction: column;
    width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 24px 40px 32px; box-sizing: border-box;
}
.obras-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.obras-head-text { margin-right: auto; }
.obras-title { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #161616; margin: 0; }
.obras-sub { font-size: 15px; color: #8a8a8a; margin-top: 2px; }
.novo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2541D8; color: #fff; border: none; border-radius: 12px;
    padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.novo-btn:hover { background: #1c34ad; }

/* ── Board (Kanban) ── */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.board-col { background: #ecebe6; border-radius: 18px; padding: 14px; }
.board-col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.col-dot { width: 10px; height: 10px; border-radius: 50%; }
.col-espera { background: #9a9a9a; }
.col-reparacao { background: #2541D8; }
.col-pronto { background: #1e8e3e; }
.col-title { font-weight: 700; color: #161616; margin-right: auto; }
.col-count { font-weight: 700; color: #8a8a8a; }
.board-col-cards { display: flex; flex-direction: column; gap: 12px; }

.kcard {
    display: flex; flex-direction: column; gap: 6px; text-align: left;
    background: #fff; border: none; border-left: 4px solid #2541D8; border-radius: 12px; padding: 14px 16px;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .12s ease, box-shadow .12s ease;
}
.kcard:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.kcard-espera { border-left-color: #9a9a9a; }
.kcard-reparacao { border-left-color: #2541D8; }
.kcard-pronto { border-left-color: #1e8e3e; }
.kcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcard-plate {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 800; font-size: 14px; letter-spacing: 1px; color: #161616;
    border: 2px solid #161616; border-radius: 6px; padding: 2px 8px;
}
.kcard-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: #E3E8FD; color: #2541D8;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.kcard-vehicle { font-size: 16px; font-weight: 700; color: #161616; }
.kcard-job { font-size: 13px; color: #8a8a8a; }
.kcard-badge { align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.kcard-badge--info { background: #FBE4D5; color: #C14A24; }
.kcard-badge--success { background: #DDF3E4; color: #1e8e3e; }

/* ── Ficha do carro ── */
.ficha { display: flex; flex-direction: column; gap: 18px; }
.ficha-top { display: flex; align-items: center; gap: 16px; }
.ficha-plate {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 20px; letter-spacing: 2px; color: #161616;
    border: 2px solid #161616; border-radius: 8px; padding: 6px 14px;
}
.plate-eu--sm { width: 22px; height: 28px; border-radius: 4px; }
.plate-eu--sm .plate-country { font-size: 12px; }
.ficha-headinfo { margin-right: auto; }
.ficha-title { font-size: 22px; font-weight: 800; color: #161616; }
.ficha-sub { font-size: 14px; color: #8a8a8a; }
.ficha-call {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #161616;
    border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 15px;
}
.ficha-call:hover { background: #f3f1ec; }
.ficha-schedule {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    border: 1px solid #2541D8; background: #fff; color: #2541D8;
    border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 15px;
}
.ficha-schedule:hover { background: #eef1fe; }

.ficha-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.status-seg {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 12px;
    padding: 14px; font-size: 16px; font-weight: 700; color: #161616; cursor: pointer;
}
.status-seg-num {
    width: 24px; height: 24px; border-radius: 50%; background: #ece9e2; color: #6b6b6b;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.status-seg.active { background: #2541D8; color: #fff; border-color: #2541D8; }
.status-seg.active .status-seg-num { background: rgba(255,255,255,.25); color: #fff; }

.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ficha-panel { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.panel-title { font-size: 18px; font-weight: 800; color: #161616; }
.panel-meta { font-size: 13px; color: #8a8a8a; }

/* progress */
.progress-bar { height: 12px; border-radius: 999px; background: #ece9e2; overflow: hidden; }
.progress-fill { height: 100%; background: #2541D8; border-radius: 999px; transition: width .2s ease; }
.progress-presets { display: flex; gap: 8px; margin-top: 14px; }
.progress-btn {
    flex: 1; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #161616;
    border-radius: 10px; padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer;
}
.progress-btn:hover { background: #f6f5f1; }
.progress-btn.active { background: #2541D8; color: #fff; border-color: #2541D8; }
.ficha-detailtext { margin-top: 16px; font-size: 15px; color: #6b6b6b; line-height: 1.5; }

/* card progress (board) */
.kcard-progress { height: 6px; border-radius: 999px; background: #ece9e2; overflow: hidden; margin-top: 6px; }
.kcard-progress-fill { height: 100%; background: #2541D8; }

.obras-loading { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px; }

/* small primary button (device setup "Ativar") */
.task-add-ok { border: none; background: #2541D8; color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 700; cursor: pointer; }

/* parts */
.fpart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fpart-empty { color: #8a8a8a; font-size: 14px; }
.fpart { background: #FBEFE7; border-radius: 10px; padding: 12px 14px; }
.fpart-name { font-size: 15px; font-weight: 700; color: #161616; }
.fpart-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #C14A24; margin-top: 4px; }
.fpart-order {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    border: 2px solid #C14A24; background: #fff; color: #C14A24; border-radius: 12px;
    padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 12px;
}
.fpart-order:hover { background: #FBEAE2; }
.ficha-ready {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    border: none; background: #1e8e3e; color: #fff; border-radius: 12px;
    padding: 16px; font-size: 17px; font-weight: 800; cursor: pointer;
}
.ficha-ready:hover { background: #1a7d37; }

/* ════════ Frota (FROTA) ═════════════════ */
.fleet-filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

.fleet-list { display: flex; flex-direction: column; gap: 10px; }

.fleet-row {
    display: flex; align-items: center; gap: 16px;
    width: 100%; text-align: left;
    background: #fff; border: none; border-radius: 14px;
    padding: 14px 18px; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    transition: transform .12s ease, box-shadow .12s ease;
}
.fleet-row:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.fleet-row .mud-icon-root { color: #c7c7c7; }

.fleet-row-plate {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 148px; font-size: 16px; font-weight: 800; color: #161616;
}
.fleet-row-main { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.fleet-row-vehicle { font-size: 16px; font-weight: 700; color: #161616; }
.fleet-row-driver { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #8a8a8a; }
.fleet-row-driver .mud-icon-root { font-size: 16px; color: #b0b0b0; }
.fleet-row-km { font-size: 15px; font-weight: 700; color: #6b6b6b; white-space: nowrap; }

.fleet-pill {
    padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; white-space: nowrap;
}
.fleet-pill--ativo   { background: #DDF3E4; color: #1e8e3e; }
.fleet-pill--oficina { background: #FBE4D5; color: #C14A24; }
.fleet-pill--parado  { background: #FCE8C8; color: #9a6a00; }
.fleet-pill--inativo { background: #eceae4; color: #8a8a8a; }

/* ── ALERTAS rows ──────────────────────────── */
.alert-row {
    display: flex; align-items: center; gap: 16px;
    width: 100%; text-align: left;
    background: #fff; border-radius: 14px;
    border-left: 4px solid #d8d8d8;
    padding: 14px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.alert-row--overdue { border-left-color: #C14A24; }
.alert-row--soon    { border-left-color: #E0A100; }
.alert-row--later   { border-left-color: #2541D8; }

.alert-row-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: #f0efe9;
}
.alert-row-icon .mud-icon-root { font-size: 22px; color: #6b6b6b; }
.alert-icon--ipo     { background: #E6EAFB; } .alert-icon--ipo .mud-icon-root     { color: #2541D8; }
.alert-icon--revisao { background: #E6EAFB; } .alert-icon--revisao .mud-icon-root { color: #2541D8; }
.alert-icon--pneus   { background: #eceae4; } .alert-icon--pneus .mud-icon-root   { color: #444; }
.alert-icon--seguro  { background: #DDF3E4; } .alert-icon--seguro .mud-icon-root  { color: #1e8e3e; }
.alert-icon--iuc     { background: #FCE8C8; } .alert-icon--iuc .mud-icon-root     { color: #9a6a00; }

.alert-row-main { display: flex; flex-direction: column; gap: 3px; margin-right: auto; min-width: 0; }
.alert-row-title { font-size: 16px; font-weight: 800; color: #161616; }
.alert-row-vehicle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #555; }
.alert-row-notes { font-size: 13px; color: #9a9a9a; }

.alert-row-due { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.alert-due-date { font-size: 14px; font-weight: 700; color: #6b6b6b; }
.alert-chip {
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .2px;
}
.alert-chip--overdue { background: #FBE4D5; color: #C14A24; }
.alert-chip--soon    { background: #FCF0CC; color: #9a6a00; }
.alert-chip--later   { background: #E6EAFB; color: #2541D8; }

.alert-book {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    border: none; border-radius: 10px; cursor: pointer; font-family: inherit;
    padding: 9px 14px; font-size: 14px; font-weight: 700;
    background: #2541D8; color: #fff;
    transition: filter .12s ease;
}
.alert-book:hover { filter: brightness(1.08); }
.alert-book .mud-icon-root { font-size: 18px; color: #fff; }

.alert-row-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.alert-resolve {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    border: 1px solid #d6e2da; border-radius: 10px; cursor: pointer; font-family: inherit;
    padding: 9px 14px; font-size: 14px; font-weight: 700;
    background: #eef6f0; color: #2e7d53;
    transition: filter .12s ease;
}
.alert-resolve:hover { filter: brightness(0.97); }
.alert-resolve:disabled { opacity: .55; cursor: default; }
.alert-resolve .mud-icon-root { font-size: 18px; color: #2e7d53; }

.pecas-inline-note { margin-top: 10px; font-size: 13px; color: #8a8a8a; }

/* ── CUSTOS — behaviour indicators (no money) ─────────────── */
.cost-sub-alert { color: #C14A24; font-weight: 800; }
.cost-legend { font-size: 13px; color: #8a8a8a; margin: 4px 2px 12px; }

.cost-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(90px, .8fr) minmax(320px, 2fr);
    align-items: center; gap: 16px;
    padding: 14px 16px; border-radius: 14px;
    background: #fff; border: 1px solid #ececec;
    border-left: 5px solid #d6d6d6;
}
.cost-row--good    { border-left-color: #35A35F; }
.cost-row--normal  { border-left-color: #2541D8; }
.cost-row--warn    { border-left-color: #E0A100; }
.cost-row--alert   { border-left-color: #C14A24; }
.cost-row--unknown { border-left-color: #cfcfcf; }

.cost-row-head { display: flex; flex-direction: column; gap: 4px; }
.cost-row-title { font-size: 15px; font-weight: 700; color: #333; }

.cost-bars { display: flex; align-items: center; }
.cost-bar {
    position: relative; width: 100%; height: 10px;
    background: #f0f0f0; border-radius: 999px; overflow: hidden;
}
.cost-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.cost-bar-fill--good    { background: #35A35F; }
.cost-bar-fill--normal  { background: #2541D8; }
.cost-bar-fill--warn    { background: #E0A100; }
.cost-bar-fill--alert   { background: #C14A24; }
.cost-bar-fill--unknown { background: #cfcfcf; }

.cost-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cost-sig {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.cost-sig .mud-icon-root { font-size: 16px; }
.cost-sig--good    { background: #E3F3E9; color: #246B42; }
.cost-sig--good .mud-icon-root    { color: #246B42; }
.cost-sig--normal  { background: #E6EAFB; color: #2541D8; }
.cost-sig--normal .mud-icon-root  { color: #2541D8; }
.cost-sig--warn    { background: #FCF0CC; color: #9a6a00; }
.cost-sig--warn .mud-icon-root    { color: #9a6a00; }
.cost-sig--alert   { background: #FBE4D5; color: #C14A24; }
.cost-sig--alert .mud-icon-root   { color: #C14A24; }
.cost-sig--unknown { background: #f1f1f1; color: #8a8a8a; }
.cost-sig--unknown .mud-icon-root { color: #8a8a8a; }

.cost-nodata { grid-column: 2 / 4; text-align: right; font-size: 13px; color: #9a9a9a; }

@media (max-width: 820px) {
    .cost-row { grid-template-columns: 1fr; gap: 10px; }
    .cost-chips { justify-content: flex-start; }
    .cost-nodata { grid-column: auto; text-align: left; }
}

/* Cost entries on the vehicle ficha (Frota) */
.fleet-cost-entry {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f1f1f1;
}
.fleet-cost-entry:last-child { border-bottom: none; }
.fleet-cost-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fleet-cost-cat { font-size: 14px; font-weight: 700; color: #333; }
.fleet-cost-meta { font-size: 12px; color: #8a8a8a; }
.fleet-cost-notes { font-size: 13px; color: #9a9a9a; }
.fleet-cost-amount { font-size: 15px; font-weight: 800; color: #444; white-space: nowrap; }
.fleet-cost-del {
    border: none; background: transparent; cursor: pointer;
    color: #C14A24; padding: 6px; border-radius: 8px; line-height: 0;
    transition: background .12s ease;
}
.fleet-cost-del:hover { background: #FBE4D5; }
.fleet-cost-del .mud-icon-root { font-size: 20px; color: #C14A24; }
.fleet-cost-confirm { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fleet-cost-actions { display: flex; align-items: center; gap: 4px; }
.fleet-cost-edit-btn {
    border: none; background: transparent; cursor: pointer;
    color: #2541D8; padding: 6px; border-radius: 8px; line-height: 0;
    transition: background .12s ease;
}
.fleet-cost-edit-btn:hover { background: #E6EAFB; }
.fleet-cost-edit-btn .mud-icon-root { font-size: 20px; color: #2541D8; }
.fleet-cost-edit {
    padding: 12px; margin: 8px 0;
    background: #f7f8fc; border: 1px solid #e3e7f5; border-radius: 12px;
}

/* ── Peças: pick a vehicle from the fleet (default), or go ad-hoc ─ */
.pick-step { display: flex; flex-direction: column; gap: 16px; }
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px; border-radius: 14px; cursor: pointer;
    background: #fff; border: 1px solid #ececec; text-align: left;
    font-family: inherit; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.pick-row:hover {
    border-color: #2541D8;
    box-shadow: 0 6px 18px rgba(37, 65, 216, .12);
    transform: translateY(-1px);
}
.pick-row-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pick-row-vehicle { font-size: 16px; font-weight: 700; color: #222; }
.pick-row-driver { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #8a8a8a; }
.pick-row-driver .mud-icon-root { font-size: 16px; color: #9a9a9a; }

.pick-adhoc {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 6px; padding: 14px; border-radius: 14px; cursor: pointer;
    background: #fafafa; border: 1.5px dashed #c7c7c7; color: #444;
    font-family: inherit; font-size: 15px; font-weight: 700;
    transition: border-color .12s ease, color .12s ease;
}
.pick-adhoc:hover { border-color: #2541D8; color: #2541D8; }
.pick-adhoc .mud-icon-root { font-size: 20px; }

/* Open-report badge on a FROTA list row */
.fleet-report-badge {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    padding: 4px 10px; border-radius: 999px;
    background: #FBE4D5; color: #C14A24;
    font-size: 13px; font-weight: 800; white-space: nowrap;
}
.fleet-report-badge .mud-icon-root { font-size: 16px; color: #C14A24; }

/* ── Reportar avaria ─────────────────────────────────────── */
.seg-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Type selector cards */
.seg-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1 1 120px; padding: 14px 12px; border-radius: 14px; cursor: pointer;
    background: #fff; border: 1.5px solid #e2e2e2; color: #444;
    font-family: inherit; font-size: 14px; font-weight: 700;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.seg-card .mud-icon-root { font-size: 26px; color: #8a8a8a; }
.seg-card:hover { border-color: #b9c2ec; }
.seg-card.active { border-color: #2541D8; background: #eef1fe; color: #2541D8; }
.seg-card.active .mud-icon-root { color: #2541D8; }

/* Priority selector segments */
.prio-seg {
    flex: 1 1 80px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1.5px solid #e2e2e2; color: #555;
    font-family: inherit; font-size: 14px; font-weight: 800;
    transition: filter .12s ease, box-shadow .12s ease;
}
.prio-seg.active { color: #fff; border-color: transparent; }
.prio-seg.prio--baixa.active   { background: #5A6B8C; }
.prio-seg.prio--media.active   { background: #2541D8; }
.prio-seg.prio--alta.active    { background: #E0A100; }
.prio-seg.prio--urgente.active { background: #C14A24; }

/* Priority chip (list) */
.prio-chip {
    padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.prio-chip.prio--baixa   { background: #E8ECF4; color: #40506E; }
.prio-chip.prio--media   { background: #E6EAFB; color: #2541D8; }
.prio-chip.prio--alta    { background: #FCF0CC; color: #9a6a00; }
.prio-chip.prio--urgente { background: #FBE4D5; color: #C14A24; }

/* Report rows */
.report-row {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) auto auto;
    align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px;
    background: #fff; border: 1px solid #ececec; border-left: 5px solid #d6d6d6;
}
.report-row--baixa   { border-left-color: #5A6B8C; }
.report-row--media   { border-left-color: #2541D8; }
.report-row--alta    { border-left-color: #E0A100; }
.report-row--urgente { border-left-color: #C14A24; }
.report-row--done { opacity: .62; border-left-color: #cfcfcf; background: #fafafa; }
.report-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: #f2f2f2;
}
.report-icon .mud-icon-root { font-size: 22px; color: #555; }
.report-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.report-title { font-size: 15px; font-weight: 700; color: #222; }
.report-meta { font-size: 12.5px; color: #8a8a8a; }
.report-desc { font-size: 13px; color: #6a6a6a; margin-top: 2px; }
.report-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.report-status { font-size: 12px; color: #8a8a8a; font-weight: 600; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.report-act { flex: none; }

@media (max-width: 820px) {
    .report-row { grid-template-columns: auto 1fr; }
    .report-side { align-items: flex-start; grid-column: 2; }
    .report-actions { grid-column: 1 / 3; justify-content: flex-end; }
}

.fleet-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 16px; }
.fleet-fact { display: flex; flex-direction: column; gap: 2px; }
.fleet-fact span { font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .4px; }
.fleet-fact b { font-size: 16px; color: #161616; font-weight: 700; }

.fleet-visit { background: #f6f5f1; border-radius: 10px; padding: 12px 14px; }
.fleet-visit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fleet-visit-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #6b6b6b; }
.fleet-visit-date .mud-icon-root { font-size: 16px; }
.fleet-visit-cost { font-size: 14px; font-weight: 800; color: #161616; }
.fleet-visit-desc { font-size: 15px; font-weight: 700; color: #161616; margin-top: 4px; }
.fleet-visit-meta { font-size: 13px; color: #8a8a8a; margin-top: 2px; }

/* ── FROTA management (add/edit form + quick actions) ───── */
.fleet-form { max-width: 920px; }
.fleet-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 18px;
}
.fleet-field { display: flex; flex-direction: column; gap: 5px; }
.fleet-field--wide { grid-column: 1 / -1; }
.fleet-field > span { font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.fleet-field .novo-input { width: 100%; }

.fleet-form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.fleet-cancel { background: #eceae4; color: #444; }
.fleet-cancel:hover { filter: brightness(.97); }

.fleet-quickstatus {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 0 0 18px; padding: 12px 16px;
    background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.fleet-quick-label { font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; margin-right: 4px; }

.fleet-km-edit { display: flex; gap: 10px; margin-bottom: 14px; }
.fleet-km-edit .novo-input { width: 140px; }

.fleet-retire {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
    border: 1px solid #e3cdc3; background: #fff; color: #C14A24;
    border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: background .12s ease;
}
.fleet-retire:hover { background: #FBEAE2; }
.fleet-retire .mud-icon-root { font-size: 18px; color: #C14A24; }

.fleet-danger-confirm {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
    padding: 10px 14px; border-radius: 10px; background: #FBEAE2; color: #C14A24; font-weight: 700;
}

.fleet-addvisit { margin-bottom: 14px; }
.fleet-visit-form {
    background: #f6f5f1; border-radius: 12px; padding: 14px; margin-bottom: 14px;
}

/* Tarefas a realizar (one per line) */
.task-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.task-item {
    display: flex; align-items: center; gap: 12px;
    background: #f6f5f1; border-radius: 10px; padding: 10px 12px;
}
.task-num {
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #2541D8; color: #fff; font-size: 13px; font-weight: 700;
}
.task-text { flex: 1; min-width: 0; font-size: 16px; color: #161616; }
.task-del {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
    border: 1px solid #f0d2cf; background: #fff; color: #b5291f;
}
.task-del:hover { background: #fbece9; }
.task-add { display: flex; gap: 10px; }
.task-add .novo-input { flex: 1; min-width: 0; }
.task-add-ok { display: inline-flex; align-items: center; gap: 6px; }

/* novo carro */
.novo-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.07); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.novo-plate-display {
    display: inline-flex; align-items: stretch; height: 70px; border: 3px solid #161616;
    border-radius: 10px; overflow: hidden; background: #fff;
}
.novo-plate-display .plate-text { font-size: 40px; letter-spacing: 5px; }
.novo-fields { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 760px; }
.novo-input {
    flex: 1; min-width: 200px; border: 1px solid rgba(0,0,0,.14); border-radius: 12px;
    padding: 14px 16px; font-size: 16px; outline: none; background: #fff; color: #161616;
}
.novo-input:focus { border-color: #2541D8; }
.novo-lookup { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #6b6b6b; }
.novo-lookup--ok { color: #1e8e3e; }
.novo-lookup--warn { color: #B5791F; }

/* ════════ Device gate / setup ═══════════ */
.device-gate {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 48px 20px; text-align: center;
}
.device-gate-text { color: #6b6b6b; font-size: 16px; }
.device-setup {
    background: #fff; border-radius: 22px; padding: 44px 48px; max-width: 620px;
    box-shadow: 0 8px 28px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.device-setup-icon { font-size: 56px !important; color: #2541D8; }
.device-setup h1 { font-size: 28px; font-weight: 800; color: #161616; margin: 4px 0; }
.device-setup p { color: #6b6b6b; font-size: 16px; margin: 0; }
.device-setup-err { color: #b32121 !important; font-weight: 600; }
.device-setup-url {
    display: block; background: #f3f1ec; border-radius: 10px; padding: 12px 16px;
    font-size: 15px; color: #161616; word-break: break-all; margin: 6px 0;
}
.device-setup-manual { display: flex; gap: 10px; width: 100%; margin-top: 10px; }

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

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

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

    .blazor-error-boundary::after {
        content: "Ocorreu um erro."
    }

/* ── Agenda (upcoming appointments) ── */
.agenda {
    flex: 1; display: flex; flex-direction: column;
    width: 100%; max-width: 1000px; margin: 0 auto;
    padding: 24px 40px 32px; box-sizing: border-box;
}
.agenda-empty {
    background: #fff; border-radius: 20px; padding: 40px; text-align: center;
    color: #8a8a8a; font-size: 16px; border: 1px solid rgba(0,0,0,.06);
}
.agenda-day { margin-bottom: 26px; }
.agenda-day-head {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;
}
.agenda-day-label { font-size: 19px; font-weight: 800; color: #161616; letter-spacing: -.3px; }
.agenda-day-count { font-size: 14px; color: #9a9a9a; }
.agenda-rows { display: flex; flex-direction: column; gap: 12px; }
.agenda-row {
    display: flex; align-items: center; gap: 18px;
    background: #fff; border-radius: 18px; padding: 16px 22px;
    border: 1px solid rgba(0,0,0,.06);
    border-left: 6px solid #8a8a8a;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.agenda-revisao     { border-left-color: #17795E; }
.agenda-reparacao   { border-left-color: #C14A24; }
.agenda-diagnostico { border-left-color: #2541D8; }
.agenda-pneus       { border-left-color: #5B2A86; }
.agenda-outro       { border-left-color: #8a8a8a; }
.agenda-time {
    font-size: 22px; font-weight: 800; color: #161616; letter-spacing: -.5px;
    font-variant-numeric: tabular-nums; min-width: 62px; flex: none;
}
.agenda-dot {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: #f1f1f4; color: #555;
}
.agenda-revisao .agenda-dot     { background: #e5f1ed; color: #17795E; }
.agenda-reparacao .agenda-dot   { background: #f8ece6; color: #C14A24; }
.agenda-diagnostico .agenda-dot { background: #e9edfb; color: #2541D8; }
.agenda-pneus .agenda-dot       { background: #f3f1f7; color: #5B2A86; }
.agenda-info { flex: 1; min-width: 0; }
.agenda-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.agenda-act {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.14); background: #fff; font-family: inherit;
}
.agenda-act--done   { color: #1e8e3e; border-color: #cfe8d6; }
.agenda-act--done:hover   { background: #e9f6ec; }
.agenda-act--cancel { color: #b5291f; border-color: #f0d2cf; }
.agenda-act--cancel:hover { background: #fbece9; }
.agenda-confirm { font-size: 14px; font-weight: 700; color: #b5291f; }
.agenda-act--yes, .agenda-act--no { width: auto; padding: 0 18px; font-weight: 700; font-size: 14px; }
.agenda-act--yes { color: #fff; background: #b5291f; border-color: #b5291f; }
.agenda-act--no  { color: #161616; }
.agenda-row-title { font-size: 17px; font-weight: 700; color: #161616; }
.agenda-plate {
    font-weight: 800; letter-spacing: .3px;
    background: #f1f1f4; border-radius: 6px; padding: 1px 7px;
}
.agenda-row-sub { font-size: 14px; color: #8a8a8a; margin-top: 3px; }

/* Nova marcação form */
.agenda-field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.agenda-field-label { font-size: 13px; font-weight: 600; color: #8a8a8a; }
.agenda-field .novo-input { width: 100%; box-sizing: border-box; }
.agenda-pickgroup { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.agenda-save { align-self: center; padding: 14px 32px; font-size: 17px; }
.agenda-save:disabled { opacity: .5; cursor: default; }

/* big "Trabalho" textarea */
.agenda-job {
    width: 100%; box-sizing: border-box; min-height: 110px; resize: none;
    font-family: inherit; font-size: 17px; line-height: 1.45;
}

/* week picker */
.agenda-week-head { display: flex; align-items: center; justify-content: space-between; }
.agenda-week-label { font-size: 18px; font-weight: 800; color: #161616; }
.agenda-week-nav {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #161616;
}
.agenda-week-nav:hover:not(:disabled) { background: #f3f1ec; }
.agenda-week-nav:disabled { opacity: .35; cursor: default; }
.agenda-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 12px; }
.agenda-day-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #161616;
    border-radius: 14px; padding: 16px 0; font-family: inherit;
}
.agenda-day-btn:hover:not(:disabled) { background: #f6f5f1; }
.agenda-day-btn.active { background: #2541D8; color: #fff; border-color: #2541D8; }
.agenda-day-btn:disabled { opacity: .35; cursor: default; }
.agenda-day-dow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.agenda-day-num { font-size: 28px; font-weight: 800; line-height: 1; }

/* bigger time field */
.agenda-time-input { max-width: 220px; font-size: 24px; padding: 16px; text-align: center; }

/* active field highlight (on-screen keyboard target) */
.novo-input.is-active { border-color: #2541D8; box-shadow: 0 0 0 3px rgba(37,65,216,.18); }

/* ── On-screen QWERTY keyboard (TextKeyboard) ── */
.tkbd { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.tkbd-row { display: flex; gap: 8px; justify-content: center; }
.tkbd-key {
    flex: 1; min-width: 0; height: 54px; border-radius: 10px;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #161616;
    font-size: 20px; font-weight: 600; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center;
}
.tkbd-key:hover { background: #f6f5f1; }
.tkbd-key:active { background: #e9e6df; }
.tkbd-key--mod { flex: 0 0 66px; color: #2541D8; }
.tkbd-key--mod.active { background: #2541D8; color: #fff; border-color: #2541D8; }
.tkbd-key--accent { color: #C14A24; }
.tkbd-key--space { flex: 0 0 55%; font-size: 15px; font-weight: 700; color: #6b6b6b; }

/* ── Club DELPEÇAS ── */
.club {
    flex: 1; display: flex; flex-direction: column;
    width: 100%; max-width: 1000px; margin: 0 auto;
    padding: 24px 40px 32px; box-sizing: border-box;
}
.club-hero {
    background: linear-gradient(135deg, #17795E, #0f5742);
    color: #fff; border-radius: 24px; padding: 30px 34px;
    box-shadow: 0 12px 34px rgba(23,121,94,.28);
}
.club-hero-tier {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.18); border-radius: 999px;
    padding: 7px 16px; font-size: 15px; font-weight: 700;
}
.club-hero-tier .mud-icon-root { font-size: 20px; }
.club-hero-points { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 4px; }
.club-points-value { font-size: 52px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.club-points-label { font-size: 17px; color: rgba(255,255,255,.85); }
.club-hero-next { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.club-progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.club-progress-fill { height: 100%; background: #fff; border-radius: 999px; }
.club-section { font-size: 22px; font-weight: 800; color: #161616; margin: 30px 0 16px; }
.club-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.club-benefit {
    background: #fff; border-radius: 20px; padding: 22px 24px;
    border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.club-benefit-icon {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 14px;
    background: #e5f1ed; color: #17795E; margin-bottom: 14px;
}
.club-benefit-icon .mud-icon-root { font-size: 26px; }
.club-benefit-title { font-size: 18px; font-weight: 800; color: #161616; }
.club-benefit-text { font-size: 15px; line-height: 1.5; color: #5a5a5a; margin-top: 4px; }

/* Pontos acumulados banner */
.club-balance {
    display: flex; flex-direction: column; gap: 4px;
    background: #304751; color: #fff; border-radius: 20px;
    padding: 24px 30px; margin-bottom: 26px;
}
.club-balance-label { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.8); }
.club-balance-value { font-size: 54px; font-weight: 800; letter-spacing: -1px; line-height: 1; }

/* Club rewards "magazine" — rows of two */
.club-rewards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.club-reward-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; background: #1e8e3e; color: #fff; border-radius: 10px;
    padding: 9px 18px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.club-reward-btn:hover { background: #1a7d37; }
.club-reward {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 20px; padding: 22px 22px 18px;
    border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.club-reward.is-ready { border-color: #cfe8d6; box-shadow: 0 6px 20px rgba(30,142,62,.12); }
.club-reward-media {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: clamp(150px, 20vh, 220px);
    border-radius: 14px; overflow: hidden;
    background: #f4f5f6; margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,.05);
}
/* fallback icon (shown only when the product image is missing) */
.club-reward-media .mud-icon-root { font-size: 56px; color: #c4c8cb; }
/* real product image fills the media area; onerror removes it if the file is missing */
.club-reward-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; background: #fff;
}
.club-reward-name { font-size: 18px; font-weight: 800; color: #161616; letter-spacing: -.2px; }
.club-reward-desc { font-size: 14px; line-height: 1.5; color: #6a6a6a; margin-top: 4px; flex: 1; }
.club-reward-bar { height: 7px; border-radius: 999px; background: #ececef; overflow: hidden; margin: 16px 0 12px; }
.club-reward-bar-fill { height: 100%; background: #304751; border-radius: 999px; }
.club-reward.is-ready .club-reward-bar-fill { background: #1e8e3e; }
.club-reward-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.club-reward-points { font-size: 16px; font-weight: 800; color: #161616; }
.club-reward-pvp { color: #304751; font-weight: 800; }
.club-reward-sep { color: #b8bbbd; margin: 0 4px; }
.club-reward-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: #8a6d1f;
    background: #faf1d8; border-radius: 999px; padding: 5px 12px;
}
.club-reward-tag--ok { color: #1e8e3e; background: #e5f1ed; }
