*{box-sizing:border-box}body{margin:0;font:14px/1.5 Arial,sans-serif;color:#20262b;background:#f7f8fa;letter-spacing:0}a{color:#b64013}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #ccd2d6;background:#fff;color:#262e35;border-radius:5px;padding:9px 16px;font-weight:600;min-height:40px}button:hover{background:#f1f3f5}button:disabled{opacity:.55;cursor:wait}.primary{background:#e74b13;color:white;border-color:#e74b13}.primary:hover{background:#c63b0d}h1{font-size:28px;line-height:1.25;margin:0 0 12px}h2{font-size:18px;margin:0 0 20px}p{margin:0 0 16px}header{display:flex;align-items:center;gap:24px;padding:14px 30px;background:#fff;border-bottom:1px solid #dce1e5}header>a:nth-child(2){margin-left:auto}.brand{display:flex;align-items:center;gap:20px;text-decoration:none;color:#626f79;font-size:11px;font-weight:bold;letter-spacing:0}.brand img{width:152px;height:54px;object-fit:contain}.workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 83px)}nav{padding:28px 14px;background:#fff;border-right:1px solid #dce1e5;display:flex;flex-direction:column;gap:7px}nav button{border:0;text-align:left;font-weight:500}nav button.active{background:#fff0e9;color:#b53a0d;font-weight:700}.content{max-width:1280px;width:100%;padding:36px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{font-size:11px;font-weight:700;color:#697983;margin:0 0 7px}.badge{display:inline-block;padding:4px 8px;border-radius:4px;background:#e9eef2;color:#405564;font-size:12px;white-space:nowrap}.status-new{background:#e8f0fc;color:#225092}.status-confirmed,.status-delivered{background:#e1f3e9;color:#176342}.status-cancelled{background:#f7e4e4;color:#963131}.metrics{display:flex;gap:50px;border-bottom:1px solid #dce1e5;padding:0 0 24px;margin-bottom:24px}.metrics span{display:block;color:#687781;font-size:12px}.metrics strong{font-size:28px}.filters{display:flex;gap:18px;margin:0 0 18px;align-items:end}.filters label:first-child{flex:1}.filters label{margin:0}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;margin-bottom:16px;justify-content:end}input,select,textarea{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #aebac3;border-radius:4px;background:#fff;color:#20262b}textarea{resize:vertical}input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0;accent-color:#db4613;flex-shrink:0}.check{flex-direction:row;justify-content:start;align-items:start;gap:10px;font-weight:400}.muted,small{font-size:12px;color:#677680}section{padding:28px 0;border-top:1px solid #dce1e5;max-width:800px}section:first-child{padding-top:0;border:0}section>label{max-width:320px}.band-row,.band-head{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:580px}.band-head{display:none}.savebar{position:sticky;bottom:0;background:#fff;border-top:1px solid #dce1e5;padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:800px}.savebar span{font-size:12px;color:#677680}.message:empty{display:none}.message{padding:12px 16px;margin-bottom:22px;border-radius:4px}.success{background:#e7f4ec;color:#195438}.error{background:#fce9e5;color:#962b1a}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;background:white;text-align:left}th{font-size:11px;text-transform:uppercase;color:#6b7b85;background:#eef1f4;padding:12px 16px;white-space:nowrap}td{padding:16px;border-bottom:1px solid #e3e7ea;vertical-align:top;overflow-wrap:anywhere}td small{display:block;margin-top:5px}td:nth-child(3){max-width:270px}.empty{padding:65px 20px;text-align:center;background:white;border-top:1px solid #dce1e5;border-bottom:1px solid #dce1e5}.empty p{color:#677680;margin:0}.auth{max-width:440px;margin:70px auto;padding:30px;background:#fff;border:1px solid #dce1e5;border-radius:8px}.auth .brand{margin-bottom:32px}.auth button{width:100%}dialog{width:min(640px,calc(100% - 32px));max-height:90vh;border:1px solid #cbd4da;border-radius:8px;padding:28px}dialog::backdrop{background:#14202b66}dl{display:grid;grid-template-columns:130px 1fr;gap:10px 15px;margin:0 0 28px}dt{color:#677680;font-size:12px}dd{margin:0;overflow-wrap:anywhere}.calculator{max-width:600px;padding:24px;margin:0 auto;background:white}.calculator h1{font-size:24px}.calculator fieldset{border:0;margin:0;padding:0}.calculator legend{font-weight:700;margin:8px 0 14px}.calculator .fields{gap:0 18px}.calculator form>button{width:100%}.line{display:flex;justify-content:space-between;gap:16px;margin:9px 0;font-size:14px}.line span:last-child{white-space:nowrap}.total{padding-top:14px;border-top:1px solid #ccd6dc;font-size:20px;font-weight:bold}.calculator details{border-top:1px solid #ccd6dc;margin:20px 0;padding-top:18px}.calculator summary{font-size:17px;font-weight:bold;cursor:pointer;margin-bottom:18px}#estimate-result{margin-top:24px}#estimate-result:empty{display:none}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.loading{padding:30px}:focus-visible{outline:3px solid #ee946e;outline-offset:3px}@media(max-width:760px){header{padding:10px 16px;gap:12px;flex-wrap:wrap}.brand img{width:115px;height:42px}.brand span{display:none}header>a:nth-child(2){font-size:12px}.workspace{display:block}nav{flex-direction:row;border-right:0;border-bottom:1px solid #dce1e5;padding:10px;overflow-x:auto}nav button{white-space:nowrap;padding:8px 11px}.content{padding:24px 16px}.fields{gap:0 16px}.filters{flex-wrap:wrap}.filters label:first-child{flex-basis:100%}.page-heading{align-items:start}.metrics{gap:38px}h1{font-size:24px}.auth{margin:30px 16px}.calculator{padding:18px}dl{grid-template-columns:1fr;gap:4px}dd{margin-bottom:10px}}
[hidden]{display:none!important}
table.requests td:last-child{width:1%;white-space:nowrap;overflow-wrap:normal}
.open-request{white-space:nowrap;min-width:76px}
.table-wrap table{min-width:760px}
td strong{white-space:nowrap}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.status-picked-up,.status-in-transit{background:#fff1e3;color:#8a4300}
.pay-paid,.pay-free{background:#e1f3e9;color:#176342}
.pay-unpaid{background:#fff4d6;color:#7a5200}
.pay-processing{background:#e8f0fc;color:#225092}
.pay-refunded{background:#eef1f4;color:#405564}
.package-details{grid-template-columns:120px minmax(0,1fr);gap:4px 12px;margin:0}
.copy-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.copy-row input{flex:1;font-size:12px}
.copy-row button{white-space:nowrap}
h4{margin:18px 0 8px;font-size:14px}
.history{margin:0;padding-left:20px}
.history li{margin-bottom:8px}
.history time{display:block;color:#677680;font-size:12px}
@media(max-width:760px){.package-details{grid-template-columns:1fr}.package-details dd{margin-bottom:6px}}
.pay-awaiting{background:#eef1f4;color:#52606b}
.tracking-actions{display:flex;flex-wrap:wrap;gap:8px}
.tracking-actions:empty{display:none}
.record-payment{margin-top:18px;padding-top:4px}
.record-payment label{max-width:320px}
@media(max-width:760px){.table-wrap table.requests{min-width:0}table.requests thead{display:none}table.requests,table.requests tbody{display:block}table.requests tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id status" "customer customer" "route route" "estimate estimate" "open open";gap:8px 12px;padding:14px 16px;border-bottom:1px solid #e3e7ea;background:#fff}table.requests td{display:block;padding:0;border:0;max-width:none;width:auto}table.requests td:nth-child(1){grid-area:id}table.requests td:nth-child(2){grid-area:customer}table.requests td:nth-child(3){grid-area:route;max-width:none}table.requests td:nth-child(4){grid-area:estimate}table.requests td:nth-child(5){grid-area:status}table.requests td:last-child{grid-area:open;width:auto;white-space:normal}table.requests .badges{justify-content:flex-end}table.requests .open-request{width:100%}}
.quote-booked{padding:14px 16px 16px;margin:0 0 14px;border:1px solid #cfe3d7;border-radius:6px;background:#f3faf6}
.quote-booked p{margin:0 0 8px}
.quote-booked .badges{align-items:center}
.quote-booking .message{margin-bottom:14px}
.quote-again summary{cursor:pointer;font-weight:600;margin:4px 0 16px}
.quote-booking-form .fields{gap:0 16px}
.quote-amount{max-width:220px}
@media(max-width:560px){.quote-booking-form .fields{grid-template-columns:1fr}.quote-amount{max-width:none}}
.quote-booking .calc-line q{overflow-wrap:anywhere}
.quote-at-request{margin:0 0 12px}
.quote-at-request button{margin-left:6px}
/* Proof of delivery (2026-10-24): the delivery sheet (full screen, phone first), the signature pad, the admin blocks. */
.sheet-open{overflow:hidden}
.sheet{position:fixed;inset:0;z-index:50;background:#f7f8fa;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.sheet-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#1c2b4a;color:#fff}
.sheet-head h2{margin:0;font-size:17px;color:#fff}
.sheet-head small{display:block;color:#c9d2e3;font-size:12px}
.sheet-head button{min-height:36px;padding:6px 12px;background:#fff}
.sheet-body{max-width:720px;margin:0 auto;padding:16px 16px 48px}
.sheet-card{background:#fff;border:1px solid #dce1e5;border-radius:8px;padding:14px 16px;margin-bottom:12px}
.sheet-card h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#697983}
.sheet-card p{margin:0 0 4px;overflow-wrap:anywhere}
.sheet-card p.muted{margin-top:2px}
.sheet-brand{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.sheet-brand img{width:150px;height:auto}
.sheet-brand strong{font-size:15px;letter-spacing:.5px;color:#1c2b4a;text-align:right}
.sheet-brand small{display:block;font-weight:400;color:#677680;letter-spacing:0}
.sheet-ref{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}
.sheet-ref strong{font-size:18px}
.sheet-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sheet-two .sheet-card{margin:0}
.sheet label{margin-bottom:12px}
/* 16px inputs: iOS Safari zooms the page when a smaller field gets focus, and on the fixed sheet the zoom would stay. */
.sheet input,.sheet textarea,.new-sheet-form input,.new-sheet-form textarea,.new-sheet-form select{font-size:16px}
.sheet .sheet-form .primary{width:100%;min-height:50px;font-size:17px;margin-top:4px}
/* Both lines under Confirm keep their height when empty: signing (or a save) would otherwise shorten the page and move the button under the finger. */
.sheet-why{margin:8px 0 0;text-align:center;min-height:1.5em}.sheet-status{min-height:1.5em}
.copy-fallback{width:100%;min-height:120px;margin-top:8px;font-size:13px}
.pod-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;margin:-8px 0 20px;background:#fff7f3;border:1px solid #f3cdbb;border-radius:6px}
.pod-quick p{margin:0;flex:1 1 220px}
.pod-hint{margin:-6px 0 14px;padding:10px 12px;background:#fff7f3;border:1px solid #f3cdbb;border-radius:6px}
.pod-hint button{margin-top:8px}
.sheet .sheet-form .primary:disabled{cursor:not-allowed}
.sig-wrap{position:relative;border:1px dashed #9aa6b0;border-radius:8px;background:#fff;overflow:hidden}
.sig-pad{display:block;width:100%;height:210px;touch-action:none;cursor:crosshair;background:#fff;user-select:none;-webkit-user-select:none}
.sig-line{position:absolute;left:18px;right:18px;bottom:46px;border-top:1px solid #dce1e5;pointer-events:none}
.sig-hint{position:absolute;left:0;right:0;bottom:14px;text-align:center;color:#9aa6b0;font-size:12px;pointer-events:none}
.sig-wrap.signed .sig-hint{display:none}
.sig-actions{display:flex;justify-content:space-between;gap:10px;margin:10px 0 6px;align-items:center}
.sig-actions .muted{margin:0}
.sheet-done{text-align:center;padding:10px 0 0}
.sheet-done h3{font-size:20px;text-transform:none;letter-spacing:0;color:#176342;margin:0 0 6px}
.sheet-done .pod-actions{justify-content:center}
.pod-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.pod-thumb{display:block;max-width:260px;width:100%;height:auto;border:1px solid #dce1e5;border-radius:6px;background:#fff;margin:8px 0}
a.button-link{display:inline-block;border:1px solid #ccd2d6;background:#fff;color:#262e35;border-radius:5px;padding:9px 16px;font-weight:600;min-height:40px;text-decoration:none;line-height:20px;text-align:center}
a.button-link:hover{background:#f1f3f5}
a.button-link.primary{color:#fff}
.sheet-list{display:grid;gap:10px}
.sheet-item{background:#fff;border:1px solid #dce1e5;border-radius:8px;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:start}
.sheet-item p{margin:0 0 3px;overflow-wrap:anywhere}
.sheet-item .pod-actions{margin:4px 0 0;grid-column:1/-1}
.sheet-item .badge{justify-self:end}
.new-sheet-form{max-width:720px}
.new-sheet-form .fields{gap:0 16px}
@media(max-width:760px){.sheet-two{grid-template-columns:1fr}.sheet-body{padding:12px 12px 48px}.sheet-item{grid-template-columns:1fr}.sheet-item .badge{justify-self:start}.new-sheet-form .fields{grid-template-columns:1fr}}
/* Draft delivery sheets (2026-10-24 afternoon): "Awaiting signature" in the admin's orange, the draft card tinted like .pod-quick. */
.badge.pod-draft{background:#ffe8dc;color:#b53a0d}
.sheet-item.is-draft{border-color:#f3cdbb;background:#fffaf7}
.sheet-item .badges{justify-self:end;align-items:center}
.new-sheet-form h2 .muted{font-weight:400;font-size:14px}
@media(max-width:760px){.sheet-item .badges{justify-self:start}}
/* Client accounts (2026-10-25): Clients tab, the client dialog, the booking dialog's "Client account" row (clients.php). */
.clients-email-banner{font-weight:600}
.clients-seed,.clients-add{background:#fff;border:1px solid #dce1e5;border-radius:8px;padding:16px 18px;margin:0 0 18px;max-width:none}
.clients-add summary{font-weight:700;cursor:pointer;padding:12px 0}
.clients-add form{margin-top:14px;max-width:760px}
table.clients td:last-child{width:1%;white-space:nowrap}
.badge.portal-active{background:#e1f3e9;color:#176342}
.badge.portal-invited,.badge.terms-invoice,.badge.terms-etransfer{background:#e8f0fc;color:#225092}
.badge.portal-disabled,.badge.portal-closed{background:#f7e4e4;color:#963131}
.badge.terms-cash{background:#fff4d6;color:#7a5200}
.client-emails{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.client-emails li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e3e7ea;border-radius:6px;background:#fff;overflow-wrap:anywhere}
.client-email-actions,.client-buttons,.candidate-actions{display:flex;flex-wrap:wrap;gap:8px}
.client-email-actions button{min-height:40px;padding:8px 12px;font-size:13px}
.client-code{font:700 30px/1.2 Menlo,Consolas,monospace;letter-spacing:6px;color:#1c2b4a;background:#f3f4f6;border:2px dashed #aebac3;border-radius:8px;padding:10px 14px;margin:0 0 12px}
.client-code small{display:block;margin-top:6px;font:400 12px/1.4 Arial,sans-serif;letter-spacing:0;color:#677680}
.client-contact-add,.client-link-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.client-contact-add label,.client-link-form label{flex:1 1 220px;margin-bottom:0}
.candidate-list{list-style:none;margin:10px 0;padding:0;display:grid;gap:6px;max-height:340px;overflow:auto}
.candidate-list li{padding:8px 10px;border:1px solid #e3e7ea;border-radius:6px;background:#fff}
.candidate-list label{margin:0}
.candidate-list small{display:block}
.candidate-list .badges{margin-top:4px}
/* The client's bookings live in the 640 px dialog: cards at every width (no sideways scroll). */
.table-wrap table.client-bookings{min-width:0}table.client-bookings thead{display:none}table.client-bookings,table.client-bookings tbody{display:block}
table.client-bookings tr{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"pick id amount" "pick route route" "pick status unlink";gap:6px 10px;padding:12px 2px;border-bottom:1px solid #e3e7ea}
table.client-bookings td{display:block;padding:0;border:0;max-width:none;width:auto}
table.client-bookings td:nth-child(1){grid-area:pick}table.client-bookings td:nth-child(2){grid-area:id}table.client-bookings td:nth-child(3){grid-area:route}table.client-bookings td:nth-child(4){grid-area:amount;text-align:right}table.client-bookings td:nth-child(5){grid-area:status}table.client-bookings td:nth-child(6){grid-area:unlink;text-align:right}
.client-paybar{flex-wrap:wrap;max-width:none;bottom:-28px;margin-bottom:-28px;padding-bottom:28px}
.pay-pick-box{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-10px 0 0 -10px;cursor:pointer}
.pay-pick-box input[type=checkbox]{width:22px;height:22px;min-height:22px}
.client-close-problem{color:#963131}
.client-paybar label{margin:0}
.client-paybar label:first-child{min-width:200px}
.paybar-total{flex:1 1 160px}
/* Release 1025c: Make a delivery / quote -> booking "Client account" select (an owner-made booking linked as it is made). */
.client-account-pick label{max-width:420px;margin-bottom:4px}
.client-account-pick .client-account-note{margin:0 0 12px;font-size:13px}
@media(max-width:760px){
.table-wrap table.clients{min-width:0}table.clients thead{display:none}table.clients,table.clients tbody{display:block}
table.clients td{display:block;padding:0;border:0;max-width:none;width:auto}
table.clients tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name portal" "terms owing" "last last" "open open";gap:8px 12px;padding:14px 16px;border-bottom:1px solid #e3e7ea;background:#fff}
table.clients td:nth-child(1){grid-area:name}table.clients td:nth-child(2){grid-area:terms}table.clients td:nth-child(3){grid-area:owing;text-align:right}table.clients td:nth-child(4){grid-area:last}table.clients td:nth-child(5){grid-area:portal;text-align:right}table.clients td:last-child{grid-area:open;width:auto}
table.clients .open-client,.client-paybar button{width:100%}
.client-paybar{gap:8px 12px;padding-top:10px;font-size:13px}.client-paybar label:first-child{min-width:0;flex:1 1 150px}
}
/* Unified jobs (2026-10-25): Make a delivery, the job panel (Waze / Maps route, fuel, Google sync), Settings > Integrations, Sync log. */
.badge.source-admin{background:#eef1f4;color:#405564}
.job-panel h4{margin:18px 0 8px;font-size:14px}
.job-panel h4:first-of-type{margin-top:8px}
.job-order{margin:0 0 10px}
.nav-list{display:grid;gap:8px}
.nav-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:start;padding:10px 12px;background:#fff;border:1px solid #dce1e5;border-radius:6px}
.nav-row p{margin:0;overflow-wrap:anywhere}
.nav-row .button-link{white-space:nowrap;min-width:150px}
.nav-row .button-link.primary{background:#e74b13;border-color:#e74b13}
.fuel-line{font-size:15px;margin:6px 0 10px}
.fuel-line strong{font-size:18px}
.job-panel label.vehicle-pick{max-width:360px;margin-bottom:10px}
.sync-list{display:grid;gap:6px;margin:0 0 10px}
.sync-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:8px 10px;border:1px solid #e3e7ea;border-radius:6px;background:#fff}
.sync-row .sync-meta{grid-column:1/-1;margin:0;font-size:12px;color:#677680;overflow-wrap:anywhere}
.sync-row .sync-meta a{margin-right:8px}
.sync-row button{min-height:32px;padding:4px 10px;font-size:12px}
.badge.sync-done{background:#e1f3e9;color:#176342}
.badge.sync-failed{background:#f7e4e4;color:#963131}
.badge.sync-pending{background:#fff4d6;color:#7a5200}
.badge.sync-none{background:#eef1f4;color:#52606b}
.sync-notice{margin:0 0 10px;padding:10px 12px;background:#fff7f3;border:1px solid #f3cdbb;border-radius:6px}
.delivery-form{max-width:760px}
.delivery-form .fields{gap:0 16px}
.delivery-form fieldset{border:0;margin:0 0 8px;padding:0}
.delivery-form legend{font-weight:700;font-size:16px;margin:14px 0 12px;padding:0}
.delivery-form input,.delivery-form select,.delivery-form textarea{font-size:16px}
.stop-list{display:grid;gap:4px;margin-bottom:8px}
.stop-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.stop-row label{margin-bottom:8px}
.stop-move{display:flex;gap:6px;margin-bottom:8px}
.stop-move button{padding:6px 12px}
.pay-choice{display:flex;flex-wrap:wrap;gap:10px 22px;margin:0 0 12px}
.pay-choice label{flex-direction:row;align-items:center;gap:8px;margin:0;font-weight:500}
.pay-choice input[type=radio]{width:18px;min-height:18px;height:18px;margin:0;accent-color:#db4613}
.delivery-form .price-box{padding:12px 14px;border:1px solid #dce1e5;border-radius:6px;background:#fff;margin-bottom:12px}
.delivery-form .price-box label{max-width:260px}
.delivery-form .primary{min-height:50px;font-size:17px}
.vehicle-rows{display:grid;gap:4px;margin-bottom:8px}
.vehicle-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto auto;gap:8px;align-items:end}
.vehicle-row label{margin-bottom:8px}
.vehicle-row .check{margin-bottom:12px;white-space:nowrap}
.vehicle-row button{margin-bottom:8px}
.integrations-form section{max-width:800px}
.ping-ok{color:#176342}
.ping-bad{color:#963131}
table.sync-log td small{display:block;margin-top:4px}
table.sync-log .sync-log-actions{white-space:nowrap}
/* Fix pass 2026-10-25: fuel price age, chained deliveries, the tracker client, stop reordering, the Sync log as cards on a phone. */
.fuel-stale{margin:0 0 10px;padding:8px 12px;background:#fff4d6;border:1px solid #efd68d;border-radius:6px;color:#6b4a00}
.job-panel .chained-pick{max-width:none;margin:0 0 12px;font-weight:400}
.job-panel .client-pick{max-width:420px;margin-bottom:6px}
.job-panel .client-note{margin:0 0 8px}
@media(max-width:760px){.nav-row{grid-template-columns:1fr}.nav-row .button-link{width:100%}.stop-row{grid-template-columns:1fr}.vehicle-row{grid-template-columns:1fr 1fr}.delivery-form .fields{grid-template-columns:1fr}.delivery-form .primary{width:100%}
.table-wrap table.sync-log{min-width:0}table.sync-log thead{display:none}table.sync-log,table.sync-log tbody{display:block}table.sync-log tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"booking state" "what what" "when actions";gap:6px 12px;padding:12px 14px;border-bottom:1px solid #e3e7ea;background:#fff}table.sync-log td{display:block;padding:0;border:0;max-width:none;width:auto}table.sync-log td:nth-child(1){grid-area:when;font-size:12px;color:#677680;align-self:center}table.sync-log td:nth-child(2){grid-area:booking}table.sync-log td:nth-child(3){grid-area:what}table.sync-log td:nth-child(4){grid-area:state;text-align:right}table.sync-log td:nth-child(5){grid-area:actions;text-align:right;white-space:normal}table.sync-log td small{margin-top:2px}}
/* Pharmacy runs (2026-10-25): Make a delivery › Multi-drop run (stops from text, slip photos, typing; review list; order + price), the price breakdown, proof photos and documents in the job panel. */
.mode-pick .pay-choice{margin-bottom:8px}
.recent-clients{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.recent-clients button{min-height:36px;padding:6px 12px;font-weight:500;font-size:13px}
.file-pick{position:relative;cursor:pointer;display:inline-block;flex-direction:row;border:1px solid #ccd2d6;background:#fff;color:#262e35;border-radius:5px;padding:9px 16px;font-weight:600;font-size:14px;line-height:20px;min-height:40px;margin:0;text-align:center}
.file-pick:hover{background:#f1f3f5}
.file-pick input[type=file]{position:absolute;width:1px;height:1px;min-height:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);pointer-events:none}
.file-pick:focus-within{outline:3px solid #ee946e;outline-offset:3px}
.run-stops{display:grid;gap:10px;margin:0 0 12px}
.run-stops:empty{margin:0}
.run-stop{padding:12px 14px;border:1px solid #dce1e5;border-radius:8px;background:#fff}
.run-stop-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:8px}
.run-stop label{margin-bottom:8px}
.run-stop .stop-move{margin-bottom:0}
.delivery-form .run-stop-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}
.run-options{margin:4px 0 10px}
.badge.stop-ok{background:#e1f3e9;color:#176342}
.badge.stop-bad{background:#f7e4e4;color:#963131}
.badge.stop-check{background:#fff4d6;color:#7a5200}
.badge.stop-none{background:#eef1f4;color:#52606b}
.run-breakdown:empty{display:none}
.run-breakdown,.breakdown{margin:10px 0}
.breakdown-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #e3e7ea}
.breakdown-row span:last-child{white-space:nowrap;font-weight:600}
.breakdown-row.total{border-bottom:0;font-size:16px}
.breakdown-row .muted{font-weight:400}
.breakdown-note{margin:0 0 8px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:8px 0 12px}
.photo-card{margin:0;border:1px solid #dce1e5;border-radius:8px;background:#fff;padding:6px;display:grid;gap:6px;align-content:start}
.photo-card img{width:100%;height:130px;object-fit:contain;border-radius:4px;background:#eef1f4}
.photo-card figcaption{font-size:12px;color:#405564;overflow-wrap:anywhere}
.photo-card button{min-height:32px;padding:4px 8px;font-size:12px}
.save-links{display:flex;flex-wrap:wrap;gap:8px}
.save-links:empty{display:none}
@media(max-width:760px){.delivery-form .run-stop-fields{grid-template-columns:1fr 1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.run-stop .stop-move button{flex:1}.recent-clients button{flex:1 1 auto}}
/* Scanned documents (2026-10-25): the Original | Scan review of each photo before it is used, and the photo cards. */
.scan-tray{display:grid;gap:12px;margin:0 0 12px}
.scan-item{margin:0;border:1px solid #dce1e5;border-radius:8px;background:#fff;padding:10px;display:grid;gap:8px;min-width:0}
.scan-item.busy{opacity:.75}
.scan-item.failed{border-color:#e7b4b4;background:#fdf6f6}
.scan-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.scan-side{border:2px solid #e3e7ea;border-radius:6px;padding:4px;background:#f7f8fa;display:grid;gap:4px;align-content:start;min-width:0}
.scan-side.chosen{border-color:#e74b13;background:#fff7f3}
.scan-side img{display:block;width:100%;height:190px;object-fit:contain;background:#eef1f4;border-radius:4px}
.scan-label{font-size:12px;font-weight:700;color:#405564}
.scan-side.chosen .scan-label{color:#b53a0d}
.scan-wait{display:flex;align-items:center;justify-content:center;height:190px;font-size:13px}
.scan-item figcaption{font-size:13px;overflow-wrap:anywhere}
.scan-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.scan-actions button{min-height:36px;padding:6px 12px;font-size:13px}
.scan-use{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.scan-use label,.scan-actions .scan-colour{flex-direction:row;align-items:center;gap:6px;margin:0;font-weight:500;font-size:13px}
.scan-use input[type=radio]{width:18px;min-height:18px;height:18px;margin:0;accent-color:#db4613}
.scan-stop{max-width:420px;margin:0}
.scan-extra{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}
.scan-extra:empty{display:none}
.scan-extra button{min-height:32px;padding:4px 10px;font-size:12px}
.scan-status{margin:0;font-size:12px}
.scan-status:empty{display:none}
.photo-group{margin:8px 0 0;font-size:12px;font-weight:700;color:#52606b}
.photo-card>a{display:block}
.photo-card-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px}
.proof-tray-actions{margin:0 0 10px}
@media(max-width:760px){.scan-side img,.scan-wait{height:150px}.scan-actions button{flex:1 1 auto}.scan-item{padding:8px}}
/* Fix pass 2026-10-25: an unresolved stop's badge wraps inside the stop card (no sideways scroll on a phone), touch-sized
   tray buttons, "Keep this image with the run", the stop outcome picker in the route list. */
.delivery-form fieldset{min-width:0}
.run-stop{min-width:0}
.run-stop-head .badge{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:left}
.scan-actions button,.scan-extra button{min-height:44px}
.scan-extra .scan-keep{flex-direction:row;align-items:center;gap:6px;margin:0;font-weight:500;font-size:13px}
.scan-stop select{max-width:100%}
.stop-outcome{margin:6px 0 0;font-size:12px;font-weight:500;max-width:320px}
.stop-outcome select{min-height:40px;font-size:13px}
.nav-row.stop-returned{border-color:#e7b4b4;background:#fdf6f6}
.breakdown-surcharge{margin:6px 0 0;font-size:12px}
@media(max-width:760px){.scan-stop{max-width:100%}.stop-outcome{max-width:100%}}
