/* Phase 19 Part 3: the Fleet customer app (/My). Phone first, one stylesheet, no frameworks. */
:root {
    --ink: #1c2430; --muted: #5B6770; --line: #e2e0d8; --bg: #F8F7F3; --panel: #fff;   /* Release 21: warm white page, slate muted text */
    --ok: #1f7a4d; --ok-bg: #e3f3ea; --warn: #8a5a00; --warn-bg: #fdf1d8; --bad: #a4262c; --bad-bg: #fbe4e5;
    --info: #2d5b8a; --info-bg: #e4edf7;
    font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
a { color: var(--brand, #2f5d50); }
h1 { font-size: 1.45rem; margin: 0 0 .6rem; } h2 { font-size: 1.12rem; margin: 0 0 .6rem; } h3 { font-size: 1rem; margin: 0 0 .4rem; }
p { margin: 0 0 .6rem; }
.my-inner { max-width: 880px; margin: 0 auto; padding: 0 14px; }
.my-top { background: var(--brand, #2f5d50); color: #fff; padding-top: env(safe-area-inset-top); }
.my-top-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 8px; }
.my-brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.my-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.my-nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 16px; background: rgba(255,255,255,.14); white-space: nowrap; font-size: .92rem; }
.my-inline { display: inline; margin: 0; }
.my-link-btn { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; text-decoration: underline; }
.my-main { padding-top: 16px; padding-bottom: 24px; }
.my-foot { color: var(--muted); font-size: .82rem; padding-bottom: 32px; }
.my-alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; }
.my-alert.ok { background: var(--ok-bg); color: var(--ok); }
.my-alert.bad { background: var(--bad-bg); color: var(--bad); }
.my-alert.warn { background: var(--warn-bg); color: var(--warn); }
.my-alert.info { background: var(--info-bg); color: var(--info); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 12px; }
.cards .card { margin: 0; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .right { text-align: right; }
.big { font-size: 1.25rem; font-weight: 700; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: .78rem; font-weight: 600; background: #eceef1; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a.item { display: block; color: inherit; text-decoration: none; }
table.lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.lines th, table.lines td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.lines td.num, table.lines th.num { text-align: right; white-space: nowrap; }
table.lines tfoot td { font-weight: 700; border-bottom: 0; }
.field { margin-bottom: 11px; }
.field label, .label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number],
.field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9cfd6; border-radius: 10px; font: inherit; background: #fff; }
.field textarea { min-height: 90px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .two, .three { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.btn { display: inline-block; padding: 11px 16px; border-radius: 10px; border: 1px solid #c9cfd6; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn.primary { background: var(--brand, #2f5d50); border-color: var(--brand, #2f5d50); color: #fff; }
.btn.danger { color: var(--bad); border-color: #e6b3b6; }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 6px 10px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.slot { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; cursor: pointer; }
.slot input { width: 20px; height: 20px; }
.day { margin: 12px 0 6px; font-weight: 700; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photos figure { margin: 0; }
.photos img, .photos video { width: 100%; border-radius: 8px; display: block; background: #000; }
.photos figcaption { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.steps span { padding: 4px 10px; border-radius: 12px; background: #e3e7eb; font-size: .82rem; }
.steps span.on { background: var(--brand, #2f5d50); color: #fff; }
.steps span.done { background: var(--ok-bg); color: var(--ok); }
details summary { cursor: pointer; font-weight: 600; color: var(--brand, #2f5d50); padding: 6px 0; }
@media print {
    .my-top, .my-foot, .actions, .no-print, form { display: none !important; }
    body { background: #fff; } .card { border: 0; padding: 0; }
}
/* Release 21: brand logo, tagline, language switch, contact links, cookie notice */
.my-top-tools { display: flex; gap: 12px; align-items: center; }
.my-lang { color: #fff; font-size: .9rem; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.my-logo { display: block; height: 40px; width: auto; max-width: 62vw; }
.my-tagline { color: var(--accent, #fff); font-size: .78rem; font-weight: 700; letter-spacing: .12em; padding-bottom: 6px; }
.my-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; align-items: baseline; }
.my-contact a { color: var(--brand, #2f5d50); font-weight: 600; text-decoration: none; padding: 4px 0; }
.my-foot p { margin: 0 0 6px; }
.my-consent { position: sticky; bottom: 0; background: #fff; border-top: 3px solid var(--accent, var(--brand)); box-shadow: 0 -4px 14px rgba(0,0,0,.12); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); z-index: 20; }
.my-consent p { margin: 0 0 6px; }
.my-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.my-consent-actions .btn { flex: 1 1 140px; }
.badge.provenance-customer { background: #fff4e6; color: #8a4b00; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile .num { font-size: 1.4rem; font-weight: 700; display: block; }
.tile .lbl { color: var(--muted); font-size: .84rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
img, video { max-width: 100%; height: auto; }

/* Familiar standalone Fleet service cards, with quote approval before scheduling. */
.quote-flow { display:flex; flex-wrap:wrap; gap:8px 24px; padding-left:22px; color:var(--muted); margin:16px 0 24px; }
.quote-step { text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; font-weight:750; color:var(--brand); margin-bottom:8px; }
.service-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.service-choice { position:relative; display:flex; flex-direction:column; gap:8px; min-height:180px; padding:20px; border:2px solid var(--line); border-radius:12px; cursor:pointer; background:var(--panel); overflow-wrap:anywhere; }
.service-choice:hover { border-color:var(--brand); }
.service-choice:has(input:checked) { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); background:color-mix(in srgb,var(--brand) 7%,white); }
.service-choice:focus-within { outline:3px solid var(--accent); outline-offset:3px; }
.service-choice input[type=checkbox] { width:24px; height:24px; margin:0 0 4px; accent-color:var(--brand); }
.service-category { font-size:.75rem; font-weight:700; text-transform:uppercase; color:var(--muted); }
.service-name { font-size:1.15rem; }
.service-description { font-size:.93rem; line-height:1.5; }
.service-quote { margin-top:auto; padding-top:12px; font-size:.95rem; font-weight:700; color:var(--brand); }
/* Release 37.17: add-ons wait for a main service; the running starting total */
.service-addons-heading { margin:20px 0 4px; }
.service-choice.is-unavailable { opacity:.5; cursor:not-allowed; }
.service-choice.is-unavailable:hover { border-color:var(--line); }
.service-total { margin:14px 0 6px; font-weight:700; font-size:1.05rem; }
[hidden] { display:none !important; }
.app-install-help summary { min-height:44px; padding:10px 0; cursor:pointer; }
@media(max-width:520px) { .service-menu { grid-template-columns:minmax(0,1fr); } .service-choice { min-height:170px; } .quote-flow { font-size:.85rem; } .my-top-row { gap:12px; } }
.quote-optional summary { padding:12px 0; min-height:44px; cursor:pointer; color:var(--brand); }

.quote-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}.quote-choice{min-width:0;border:1px solid var(--line,#d9e0dc);border-radius:10px;padding:16px;overflow-wrap:anywhere}.quote-choice.current{border:2px solid var(--brand,#2f5d50)}.quote-choice .choice-price{font-size:1.35rem;font-weight:700}.quote-choice form{margin-top:16px}.quote-choice input:not([type=checkbox]){width:100%;max-width:100%}.quote-choice .btn{max-width:100%;white-space:normal}
.quote-choice form>label:not(.check),.quote-decline>label{display:block;margin:12px 0 5px}.quote-choice input:not([type=checkbox]),.quote-decline>input:not([type=hidden]){box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;border:1px solid var(--line,#d9e0dc);border-radius:6px;font:inherit;background:#fff}.quote-decline .btn{margin-top:12px}
[data-request-timing] .field input[type=date],[data-request-timing] .field select{width:100%;max-width:100%;min-height:44px;padding:10px;font:inherit;box-sizing:border-box;border:1px solid #c9cfd6;border-radius:8px;background:#fff}[data-request-timing] .btn{min-height:44px;margin:.6rem 0}[data-request-timing] summary{padding:.75rem 0;cursor:pointer}[data-request-timing] fieldset{min-width:0}[data-request-timing] .actions{display:flex;flex-wrap:wrap;gap:8px}[data-optional-selection]{margin:1rem 0;min-width:0;overflow-wrap:anywhere}[data-optional-selection] .check{display:flex;align-items:flex-start;gap:.6rem;margin:.75rem 0}[data-optional-selection] input[type=checkbox]{width:1.2rem;height:1.2rem;flex-shrink:0}.request-timing{overflow-wrap:anywhere}
@media(max-width:600px){.my-quote-lines,.my-quote-lines tbody,.my-quote-lines tr,.my-quote-lines td,.my-quote-lines tfoot{display:block;width:100%;box-sizing:border-box}.my-quote-lines thead{display:none}.my-quote-lines tbody tr{padding:12px 0;border-bottom:1px solid var(--line)}.my-quote-lines tbody td{border:0;white-space:normal!important;text-align:left!important;padding:5px}.my-quote-lines tbody td::before{content:attr(data-label) ': ';font-weight:600}.my-quote-lines tfoot tr{display:flex;gap:12px;justify-content:space-between}.my-quote-lines tfoot td{width:auto}.my-quote-lines .badge{display:block;white-space:normal}}

.workplace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}.workplace-vehicle form{margin-top:16px;padding-top:12px;border-top:1px solid #dce3e9}.workplace-vehicle .actions,.workplace-grid .actions{flex-wrap:wrap}.workplace-grid input,.workplace-grid select,.workplace-vehicle input,.workplace-vehicle select{max-width:100%;min-width:0}.workplace-grid a{overflow-wrap:anywhere}

/* Public quote request: progressive screens with a no-JavaScript single-form fallback. */
.request-progress ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:16px 0 8px;counter-reset:request-step}
.request-progress li{counter-increment:request-step;font-size:.85rem;color:var(--muted);border-top:3px solid var(--line);padding-top:8px;overflow-wrap:anywhere}
.request-progress li::before{content:counter(request-step) '. ';font-weight:700}.request-progress [aria-current=step]{border-color:var(--brand);color:var(--brand);font-weight:700}
.request-progress p{font-size:.85rem;color:var(--muted)}.request-step-actions{display:flex;gap:12px;justify-content:space-between;margin:16px 0 30px}.request-step-actions .btn{min-width:120px;min-height:48px}
[data-request-step] h2:focus{outline:none}[data-request-wizard] .card{margin-bottom:16px}

.request-review dt{font-size:.82rem;color:var(--muted);margin-top:10px}.request-review dd{margin:3px 0 12px;overflow-wrap:anywhere}
