:root {
  --bg: #f3f5f4; --card: #fff; --ink: #14201d; --muted: #63736f; --line: #dfe5e3;
  --brand: #0f5c4d; --brand-ink: #fff; --brand-soft: #e3f1ed;
  --new: #6b7280; --assigned: #2563eb; --out: #c2410c; --delivered: #15803d; --failed: #b91c1c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }

.top { position: sticky; top: 0; z-index: 5; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.top h1 { font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who { font-size: 13px; opacity: .85; }
.top button { background: rgba(255,255,255,.15); color: inherit; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tab.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tab b { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 7px; font-size: 13px; }
.tab.on b { background: rgba(255,255,255,.22); }

.bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bar input { flex: 1; min-width: 180px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
textarea { min-height: 70px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
label > span { display: block; margin-bottom: 4px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
label.check input { width: auto; }

.btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { color: var(--failed); border-color: #f0c9c9; }
.btn.big { width: 100%; padding: 14px; font-size: 17px; }
.btn.sm { padding: 6px 10px; font-size: 14px; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card.click { cursor: pointer; }
.card.click:hover { border-color: var(--brand); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.ref { font-weight: 700; font-size: 15px; direction: ltr; unicode-bidi: isolate; }
.cust { font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; white-space: nowrap; }
.badge.new { background: var(--new); } .badge.assigned { background: var(--assigned); } .badge.out { background: var(--out); }
.badge.delivered { background: var(--delivered); } .badge.failed { background: var(--failed); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.note { background: #fff8e1; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.warn { color: var(--failed); font-size: 14px; }

.overlay { position: fixed; inset: 0; background: rgba(10,20,18,.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h2 { font-size: 19px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet h3 { font-size: 14px; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.x { border: 0; background: var(--bg); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; }
.code { font-size: 26px; font-weight: 800; letter-spacing: .25em; direction: ltr; }

.sig { border: 2px dashed var(--line); border-radius: 12px; background: #fff; width: 100%; height: 170px; touch-action: none; display: block; }
.preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.step > b { display: block; margin-bottom: 8px; }
.step.ok { border-color: var(--delivered); background: #f3faf5; }

.auth { max-width: 380px; margin: 8vh auto; padding: 16px; }
.auth .card { padding: 22px; }
.auth h1 { font-size: 24px; margin-bottom: 4px; }
.auth .lang { text-align: center; margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; }

#toast { position: fixed; inset-inline: 16px; bottom: 20px; margin: 0 auto; max-width: 420px; background: #14201d; color: #fff; padding: 12px 16px; border-radius: 12px; text-align: center; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-size: 13px; font-weight: 600; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- Version 2 ---- */
.badge.urgent { background: #dc2626; } .badge.late { background: #7c2d12; } .badge.partial { background: #a16207; }
.card.hot { border-color: #f1a5a5; box-shadow: inset 4px 0 0 #dc2626; }
[dir=rtl] .card.hot { box-shadow: inset -4px 0 0 #dc2626; }
.cod { background: #ecfdf3; border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.stop { background: var(--brand); color: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
select.narrow { width: auto; flex: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0 10px; }
.itemrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.itemrow .iname { flex: 1; min-width: 0; }
.itemrow .iqty, .itemrow .dqty { width: 84px; flex: none; text-align: center; }
label.inline { display: flex; align-items: center; gap: 6px; margin: 0; }
label.inline > span { margin: 0; white-space: nowrap; }
label.inline input { width: auto; }
.map { height: 58vh; min-height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; z-index: 0; }
.truck { transform: translate(-50%, -100%); white-space: nowrap; font-size: 22px; display: inline-flex; flex-direction: column; align-items: center; filter: grayscale(1); width: max-content; }
.truck.live { filter: none; }
.truck span { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c3cbc9; }
.dot.live { background: #16a34a; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile span { display: block; color: var(--muted); font-size: 13px; }
.tile b { font-size: 24px; }
h3.sec { font-size: 15px; margin: 18px 0 8px; }
.steps { list-style: none; padding: 0; margin: 6px 0; }
.steps li { position: relative; padding: 0 0 16px; padding-inline-start: 30px; color: var(--muted); }
.steps li b { display: block; font-weight: 600; }
.steps li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.steps li::after { content: ''; position: absolute; inset-inline-start: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); } .steps li.done::before, .steps li.done::after { background: var(--delivered); }
.steps li.now::before { box-shadow: 0 0 0 4px #cdebd8; }

/* ---- Version 3: customers ---- */
.suggestwrap { position: relative; margin-bottom: 12px; }
.suggest { position: absolute; inset-inline: 0; top: 2px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 280px; overflow-y: auto; }
.suggest button { display: block; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button:focus { background: var(--brand-soft); }
.suggest button b, .suggest button span.muted { display: block; }
.btn.sm.primary { color: var(--brand-ink); }

/* ---- Version 4: home screen with app tiles ---- */
body.home { background: linear-gradient(135deg, #e4e7f1 0%, #f2f1f7 48%, #e6e9f2 100%) fixed; min-height: 100vh; }
.top.clear { background: transparent; color: var(--ink); }
.top.clear button { background: rgba(255,255,255,.7); }
.homebtn { display: inline-flex; align-items: center; justify-content: center; padding: 7px !important; }
.launcher { display: grid; grid-template-columns: repeat(auto-fit, 116px); justify-content: center; gap: 30px 20px; max-width: 860px; margin: 7vh auto 0; }
.app { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px; border-radius: 12px; }
.app .ico { position: relative; width: 76px; height: 76px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(30,35,70,.12), 0 6px 16px rgba(30,35,70,.08); transition: transform .15s, box-shadow .15s; }
.app:hover .ico, .app:focus-visible .ico { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,35,70,.14), 0 12px 24px rgba(30,35,70,.14); }
.app .lbl { font-size: 15px; color: var(--ink); text-align: center; }
.app .n { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 13px; display: grid; place-items: center; }
@media (max-width: 480px) { .launcher { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; margin-top: 5vh; } }

/* ---- Version 5: push notifications ---- */
.pushcard { max-width: 560px; margin: 8vh auto 0; background: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(30,35,70,.12), 0 6px 16px rgba(30,35,70,.08); }
.pushline { max-width: 560px; margin: 8vh auto 0; text-align: center; }

/* ---- Version 6: scan a delivery PDF ---- */
.scanrow { margin-bottom: 10px; gap: 6px; }
.scanrow.isdone { opacity: .6; }
.rawtext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: var(--bg); border-radius: 10px; padding: 10px; max-height: 260px; overflow: auto; direction: ltr; text-align: start; }

/* ---- Version 7: welcome page ---- */
.welcome { max-width: 760px; margin: 0 auto; padding: 4vh 20px 40px; text-align: center; }
.wlogo { border-radius: 20px; box-shadow: 0 2px 4px rgba(30,35,70,.14), 0 12px 28px rgba(30,35,70,.16); }
.welcome h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.15; margin: 18px 0 4px; letter-spacing: -.01em; }
.wcompany { color: var(--brand); font-weight: 600; }
.wlead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 14px auto 24px; }
.wgo { max-width: 280px; }
.wpoints { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 40px 0 26px; text-align: start; }
.wpoint { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 1px 2px rgba(30,35,70,.1), 0 6px 16px rgba(30,35,70,.06); }
.wpoint .ico { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; }
.wpoint .ico svg { width: 32px; height: 32px; }
.wpoint p { margin-top: 2px; }
.wfoot { font-size: 13px; }

/* ---- Version 11: Discuss and Documents ---- */
.nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.convlist { display: flex; flex-direction: column; gap: 8px; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.conv:hover { border-color: var(--brand); }
.cico { font-size: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmain .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chatwrap { display: flex; flex-direction: column; height: calc(100dvh - 90px); max-width: 760px; margin: 0 auto; }
.chathead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chathead b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbox { flex: 1; overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 6px; }
.mday { align-self: center; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 8px 0; }
.msg { align-self: flex-start; max-width: 78%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; border-end-start-radius: 4px; padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.msg.mine { align-self: flex-end; background: #dcf3ea; border-color: #c4e8da; border-end-start-radius: 14px; border-end-end-radius: 4px; }
.mname { font-size: 12px; font-weight: 700; color: var(--brand); }
.mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.mtime { font-size: 11px; color: var(--muted); align-self: flex-end; }
.chatimg { max-width: 240px; max-height: 260px; border-radius: 10px; display: block; }
.msg audio { max-width: 240px; height: 40px; }
.composer, .recbar { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 10px 12px; }
.btn.icon { padding: 10px 12px; margin: 0; color: var(--ink); font-size: 18px; }
.recbar { align-items: center; }
.recbar .muted { flex: 1; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dthumb { display: grid; place-items: center; height: 150px; background: #f4f6f5; border-bottom: 1px solid var(--line); text-decoration: none; }
.dthumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dpdf { font-weight: 800; font-size: 22px; color: #b91c1c; border: 3px solid #b91c1c; border-radius: 8px; padding: 10px 12px; }
.dmeta { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.badge.kpdf { background: #b91c1c; } .badge.kphoto { background: #2563eb; } .badge.ksignature { background: #6b7280; }
[hidden] { display: none !important; } /* elements styled with display:flex must still hide */
.dthumb { overflow: hidden; }
.dthumb img { height: 150px; }

/* ---- Version 12: internet voice calls ---- */
.callui { position: fixed; inset: 0; z-index: 60; background: rgba(8, 30, 25, .92); display: grid; place-items: center; padding: 20px; }
.callcard { text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cavatar { width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 56px; }
.cavatar.pulse { animation: ring 1.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 100% { box-shadow: 0 0 0 26px rgba(74,222,128,0); } }
.cname { font-size: 24px; }
.cstate { font-size: 17px; opacity: .85; min-height: 26px; }
.cbtns { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.cbtn { border: 0; border-radius: 999px; padding: 14px 24px; font-size: 17px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; min-width: 120px; }
.cbtn.red { background: #dc2626; } .cbtn.green { background: #16a34a; }
.mcall { align-self: center; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* v13 */
.chatnote { font-size: 12.5px; color: var(--muted, #667); background: rgba(127,127,127,.08); border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; }

/* v17: pickup orders */
.badge.pickup { background: #ede9fe; color: #5b21b6; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.seg label { flex: 1; margin: 0; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 6px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg input:checked + span { background: var(--brand, #0f5c4d); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--brand, #0f5c4d); outline-offset: -2px; }
/* documents: one folder per customer */
.folder { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; font: inherit; color: var(--ink); }
.folder:hover { border-color: var(--brand, #0f5c4d); }
.folder .ficon { font-size: 30px; line-height: 1; }
.folder .fname { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.folder .fcount { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
/* could-not-deliver reasons */
.lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.reasons { display: grid; gap: 8px; margin-bottom: 14px; }
.reason { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.reason input { width: 20px; height: 20px; margin: 0; flex: none; }
.reason:has(input:checked) { border-color: #dc2626; background: #fef2f2; }
label.reason { color: var(--ink); font-size: 15px; }
label.reason > span { margin: 0; }
label.reason input { width: 20px; }
/* Discuss: tap a message to show Delete */
.msg[data-act="msgTap"] { cursor: pointer; }
.msg .mdel { display: none; margin-top: 6px; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 8px; border: 1px solid #fecaca; background: #fff; color: #b91c1c; cursor: pointer; }
.msg.sel .mdel { display: inline-block; }
.msg.mgone .mtext { font-style: italic; opacity: .65; }
/* the bell */
.top .bell { position: relative; font-size: 17px; line-height: 1; padding: 6px 9px; }
.top .bell .nb { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
.belllist { display: flex; flex-direction: column; gap: 8px; }
.bellrow { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.bellrow.new { border-color: #f59e0b; background: #fffbeb; }
.bellrow.click { cursor: pointer; }
@media (max-width: 480px) { .top .who { display: none; } }
/* ---------- orders page (v19): one tidy toolbar, simple filters, a clean list ---------- */
.otools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.otools .osearch { flex: 1 1 260px; }
.otools select { width: auto; flex: none; }
.otools .oacts { display: flex; gap: 8px; margin-inline-start: auto; }
.otools .btn { margin: 0; color: var(--ink); padding: 10px 12px; }
.otools .btn.primary { color: var(--brand-ink); }
.otools .btn.icon { width: 44px; padding: 10px 0; }
.orange { display: flex; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; }
.ofilters { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.segs { display: inline-flex; background: #e6ebe9; border-radius: 12px; padding: 3px; }
.seg { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.seg b { font-size: 12px; background: rgba(0,0,0,.07); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.seg.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 14px; cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.chip b { font-weight: 700; font-size: 12px; color: var(--muted); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.new { background: var(--new); } .dot.assigned { background: var(--assigned); } .dot.out { background: var(--out); } .dot.failed { background: var(--failed); }
/* the list: rows on a computer, compact cards on a phone */
.grid.olist { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.olist .ohead, .olist .orow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 150px 110px 80px; gap: 14px; align-items: center; padding: 11px 16px; }
.olist .ohead { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #f8faf9; border-bottom: 1px solid var(--line); }
.olist .orow { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.olist .orow:last-child { border-bottom: 0; }
.olist .orow:hover { background: #f6faf8; }
.olist .orow.hot { box-shadow: inset 4px 0 0 #dc2626; }
.olist .cust { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olist .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.olist .oc-ref { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.olist .otags { display: flex; gap: 4px; flex-wrap: wrap; }
.olist .otags .badge { font-size: 10px; padding: 1px 7px; }
.olist .oc-due, .olist .oc-drv { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olist .oc-time { font-size: 13px; text-align: end; white-space: nowrap; }
@media (max-width: 860px) {
  .otools select { flex: 1 1 140px; }
  .otools .oacts { margin-inline-start: 0; flex: 1 1 100%; }
  .otools .oacts .btn.primary { flex: 1; }
  .hide-s { display: none; }
  .olist .ohead { display: none; }
  .olist .orow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ref st" "cust cust" "drv time"; gap: 4px 10px; padding: 12px 14px; }
  .olist .oc-ref { grid-area: ref; flex-direction: row; align-items: center; gap: 8px; }
  .olist .oc-st { grid-area: st; }
  .olist .oc-cust { grid-area: cust; }
  .olist .oc-due { display: none; }
  .olist .oc-drv { grid-area: drv; font-size: 13px; color: var(--muted); }
  .olist .oc-time { grid-area: time; }
  .segs { width: 100%; } .seg { flex: 1; justify-content: center; padding: 7px 8px; }
}
.segs { align-items: center; }
.seg { margin: 0; line-height: 1.3; min-height: 0; }
.olist .ohead, .olist .orow { grid-template-columns: 110px minmax(0, 1fr) 140px 150px 110px 90px; }
/* ---------- team page (v20) ---------- */
.pendb { background: #f59e0b !important; color: #fff; }
.tset { max-width: 760px; }
.pendcard { margin-bottom: 14px; border-color: #f59e0b; }
.plist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.plist .phead, .plist .prow { display: grid; grid-template-columns: minmax(0, 1fr) 190px 130px 290px; gap: 14px; align-items: center; padding: 11px 16px; }
.plist .phead { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #f8faf9; border-bottom: 1px solid var(--line); }
.plist .prow { border-bottom: 1px solid var(--line); }
.plist .prow:last-child { border-bottom: 0; }
.plist .prow.off { opacity: .6; }
.pwho { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.pname { display: flex; flex-direction: column; min-width: 0; }
.pname b { font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pname .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.you { font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 1px 8px; }
.rolepill { display: inline-block; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.prole select { padding: 8px 10px; }
.pacts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pacts .btn { margin: 0; }
.rolehelp { margin: 4px 2px 20px; } .rolehelp summary { cursor: pointer; color: var(--brand); font-weight: 600; } .rolehelp p { margin-top: 8px; }
.tset .card { margin-bottom: 14px; }
@media (max-width: 860px) {
  .plist .phead { grid-template-columns: 1fr; } .plist .phead span:not(:first-child) { display: none; }
  .plist .prow { grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "who role" "phone acts"; gap: 8px 10px; }
  .pwho { grid-area: who; } .prole { grid-area: role; } .pphone { grid-area: phone; font-size: 13px; } .pacts { grid-area: acts; }
}
@media (max-width: 520px) {
  .plist .prow { grid-template-columns: 1fr; grid-template-areas: "who" "role" "acts"; } .pphone { display: none; } .pacts { justify-content: flex-start; }
}
.plist .phead, .plist .prow { grid-template-columns: minmax(0, 1fr) 170px 120px 330px; }
.tset { max-width: none; }
.plist.bklist { margin: 10px 0 0; }
.plist.bklist .prow { grid-template-columns: minmax(0, 1fr) 120px auto; padding: 9px 14px; }
@media (max-width: 860px) {
  .plist .prow { grid-template-columns: minmax(0, 1fr) 150px; }
  .plist.bklist .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; }
  .plist.bklist .pacts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 520px) { .plist .prow { grid-template-columns: 1fr; } }

/* =====================================================================
   v21: one professional look for the whole app
   ===================================================================== */
:root {
  --bg: #f4f6f7; --card: #fff; --ink: #101c19; --muted: #5d6b68; --line: #e2e7e6; --line2: #eef1f0;
  --brand: #0f5c4d; --brand-2: #0b4a3e; --brand-ink: #fff; --brand-soft: #e6f2ee;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
}
body { font-size: 15px; -webkit-font-smoothing: antialiased; }
body.home { background: var(--bg); }
.wrap { max-width: 1180px; padding: 20px 20px 40px; }

/* header */
.top, .top.clear { background: var(--brand); color: #fff; height: 58px; padding: 0 16px; gap: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.top h1 { font-size: 17px; font-weight: 650; letter-spacing: -.005em; margin-inline-start: 4px; }
.top button, .top.clear button { background: transparent; color: rgba(255,255,255,.92); border-radius: 9px; height: 38px; min-width: 38px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.top button:hover { background: rgba(255,255,255,.12); }
.top .homebtn { background: rgba(255,255,255,.12); }
.brandmark { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.top .bell { font-size: 14px; }
.top .bell .nb { top: 2px; inset-inline-end: 2px; }
.top .who { display: flex; align-items: center; gap: 9px; padding: 0 10px; margin-inline-start: 4px; border-inline-start: 1px solid rgba(255,255,255,.18); opacity: 1; font-size: 13px; }
.whoname { display: flex; flex-direction: column; line-height: 1.2; } .whoname b { font-weight: 600; font-size: 13.5px; } .whoname small { opacity: .75; font-size: 11.5px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
@media (max-width: 700px) { .whoname { display: none; } .top .who { padding: 0 4px; border: 0; } }

/* type */
h3.sec { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 10px; }
.muted { color: var(--muted); }

/* controls */
input, select, textarea { border-color: #d7dedc; border-radius: 9px; padding: 9px 12px; min-height: 40px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #c3ccc9; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 92, 77, .15); }
input[type=checkbox], input[type=radio] { min-height: 0; box-shadow: none; accent-color: var(--brand); }
label { font-size: 13.5px; font-weight: 500; }
.btn { border-color: #d7dedc; border-radius: 9px; padding: 9px 14px; min-height: 40px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); transition: background .15s, border-color .15s; }
.btn:hover { background: #f6f8f8; border-color: #c3ccc9; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.danger { color: #b42318; border-color: #f3c9c5; } .btn.danger:hover { background: #fef3f2; }
.btn.sm { min-height: 34px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; }
.btn.big { min-height: 48px; font-size: 16px; border-radius: 10px; }
.linkbtn { text-decoration: none; font-weight: 600; } .linkbtn:hover { text-decoration: underline; }

/* surfaces */
.card { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.card.click:hover { border-color: #b9c9c4; box-shadow: var(--shadow-md); }
.plist, .grid.olist, .tablewrap, .panel { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.empty { background: var(--card); border: 1px dashed #d4dbd9; border-radius: var(--radius); padding: 44px 16px; }

/* tables (reports, map, activity, items) */
table { border-radius: 0; }
th { background: #f8faf9; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; }
td { padding: 11px 14px; font-size: 14.5px; border-bottom-color: var(--line2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #fafcfb; }

/* badges: soft colours with strong text */
.badge { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; color: #fff; }
.badge.new { background: #eef0f3; color: #475467; }
.badge.assigned { background: #e0eaff; color: #1d4ed8; }
.badge.out { background: #ffedd5; color: #b54708; }
.badge.delivered { background: #dcfae6; color: #067647; }
.badge.failed { background: #fee4e2; color: #b42318; }
.badge.urgent { background: #fee4e2; color: #b42318; } .badge.late { background: #fdead7; color: #93370d; } .badge.partial { background: #fef0c7; color: #93370d; }
.badge.pickup { background: #f4ebff; color: #6941c6; }
.badge.kpdf { background: #fee4e2; color: #b42318; } .badge.kphoto { background: #e0eaff; color: #1d4ed8; } .badge.ksignature { background: #eef0f3; color: #475467; }

/* segmented controls (tabs) — the order form's Delivery / Pickup switch keeps its own look */
.segs { background: #e9eeed; border-radius: 10px; padding: 3px; gap: 2px; }
button.seg { border: 0; border-radius: 8px; padding: 7px 14px; font-size: 14px; }
button.seg.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
div.seg { display: flex; border: 1px solid #d7dedc; border-radius: 10px; overflow: hidden; margin-bottom: 14px; padding: 0; background: #fff; }
div.seg span { padding: 9px 6px; }

/* toolbars */
.otools { gap: 10px; margin-bottom: 16px; }
.otools .osearch { flex: 1 1 260px; }
.otools > input.osearch { width: auto; }
.otools label.inline { font-weight: 500; }
.otools .btn { min-height: 40px; }

/* home: greeting, today's numbers, sections */
.hello { margin: 6px 0 16px; } .hello h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; } .hello p { margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; font: inherit; color: var(--ink); }
.kpi::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tone, #98a2b3); }
.kpi:hover { box-shadow: var(--shadow-md); border-color: #cfd8d5; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 500; } .kpi b { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.t-gray { --tone: #98a2b3; } .t-orange { --tone: #f79009; } .t-green { --tone: #17b26a; } .t-red { --tone: #f04438; } .t-blue { --tone: #2e90fa; } .t-teal { --tone: #0f766e; } .t-purple { --tone: #7a5af8; }
.launcher { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); justify-content: stretch; gap: 12px; max-width: none; margin: 0; }
.app { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: start; transition: box-shadow .15s, border-color .15s; }
.app:hover { border-color: #b9c9c4; box-shadow: var(--shadow-md); }
.app .ico { width: 52px; height: 52px; border-radius: 12px; background: #f4f6f7; box-shadow: none; flex: none; }
.app:hover .ico { transform: none; box-shadow: none; }
.app .ico svg { width: 34px; height: 34px; }
.atext { display: flex; flex-direction: column; min-width: 0; }
.app .lbl { font-size: 15.5px; font-weight: 650; text-align: start; }
.adesc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.app .n { top: -6px; inset-inline-end: -6px; }
.pushcard, .pushline { max-width: none; margin: 14px 0 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pushline { background: #fffaeb; border: 1px solid #fedf89; border-radius: var(--radius); padding: 10px 14px; text-align: start; color: #93370d; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .hello h2 { font-size: 20px; }
  .kpi { padding: 12px 14px; } .kpi b { font-size: 22px; }
  .launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .app { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .app .ico { width: 44px; height: 44px; } .app .ico svg { width: 28px; height: 28px; }
  .adesc { font-size: 12px; }
}

/* order cards for drivers */
.card.job { gap: 8px; padding: 16px; }
.card.job .cust { font-size: 16.5px; }
.actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.actions .btn { flex-direction: column; gap: 3px; min-height: 60px; padding: 8px 4px; font-size: 12.5px; font-weight: 600; position: relative; line-height: 1.2; }
.actions .btn i { font-style: normal; font-size: 19px; line-height: 1; }
.actions .btn .nb { position: absolute; top: 4px; inset-inline-end: 6px; }
.jmain { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.note { background: #fffaeb; border: 1px solid #fef0c7; color: #7a2e0e; }
.cod { background: #ecfdf3; border: 1px solid #d1fadf; color: #05603a; }

/* lists */
.plist .prow:hover { background: #fafcfb; }
.clist .phead, .clist .prow { grid-template-columns: minmax(0, 1.4fr) 140px minmax(0, 1fr) 210px; }
.paddr { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
@media (max-width: 860px) {
  .clist .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who acts" "addr addr"; }
  .clist .pwho { grid-area: who; } .clist .pacts { grid-area: acts; } .clist .paddr { grid-area: addr; } .clist .pphone { display: none; }
}

/* reports */
.tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; box-shadow: var(--shadow); padding: 14px 16px; }
.tile::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tone, #98a2b3); }
.tile span { font-size: 12.5px; font-weight: 500; } .tile b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* discuss */
.convlist.panel { gap: 0; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.convlist.panel .conv { border: 0; border-radius: 0; border-bottom: 1px solid var(--line2); padding: 13px 16px; }
.convlist.panel .conv:last-child { border-bottom: 0; }
.convlist.panel .conv:hover { background: #fafcfb; }
.cico { background: var(--brand-soft); font-size: 20px; width: 42px; height: 42px; }
.chatwrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; height: calc(100dvh - 100px); }
.chatbox { background: #f7f9f8; border-radius: 10px; padding: 12px 10px; margin: 10px 0; }
.composer { border-top: 0; padding-top: 0; }
.msg { box-shadow: var(--shadow); }
.msg.mine { background: #e3f4ec; border-color: #cbe9dc; }
@media (max-width: 520px) { .chatwrap { border: 0; box-shadow: none; padding: 0; background: transparent; height: calc(100dvh - 92px); } }

/* documents */
.folder { box-shadow: var(--shadow); padding: 16px; gap: 4px; }
.folder:hover { box-shadow: var(--shadow-md); border-color: #b9c9c4; }
.folder .ficon { width: 44px; height: 44px; border-radius: 11px; background: #fef6e7; display: grid; place-items: center; font-size: 24px; margin-bottom: 6px; }
.doc { box-shadow: var(--shadow); }

/* map */
.map { box-shadow: var(--shadow); }

/* dialogs */
.overlay { background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); }
.sheet { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 20px 50px rgba(16,24,40,.25); }
.sheet h2 { font-size: 18px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line2); }
.sheet h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; margin: 20px 0 8px; }
.x { background: #f2f4f4; width: 32px; height: 32px; font-size: 15px; } .x:hover { background: #e7ebea; }
.kv { gap: 8px 16px; font-size: 14.5px; background: #fafbfb; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
.dacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.dacts .btn { justify-content: flex-start; }
@media (min-width: 640px) { .sheet { max-width: 600px; } }

/* sign in */
.auth .card { box-shadow: var(--shadow-md); border-radius: 14px; padding: 26px; }
.auth h1 { font-size: 22px; font-weight: 700; }
@media (max-width: 520px) {
  .segs { display: flex; width: 100%; }
  button.seg { flex: 1 1 0; min-width: 0; padding: 7px 4px; font-size: 13px; gap: 4px; justify-content: center; }
  button.seg b { padding: 0 5px; font-size: 11px; }
}
/* welcome page keeps a light, open header */
.top.clear { background: transparent; color: var(--ink); box-shadow: none; }
.top.clear button { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* printout settings */
.logobox { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.logoprev { width: 220px; height: 80px; border: 1px dashed #cfd8d5; border-radius: 10px; display: grid; place-items: center; background: #fafbfb; padding: 8px; text-align: center; }
.logoprev img { max-width: 100%; max-height: 64px; }
.logoprev .muted { font-size: 12px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .cols2 { grid-template-columns: 1fr; } }
/* v23: payment stamp choice and item units */
.badge.pay-paid { background: #dcfae6; color: #067647; } .badge.pay-unpaid { background: #fff1f3; color: #c01048; } .badge.pay-credit { background: #e0eaff; color: #1d4ed8; }
.itemrow .iunit { width: 92px; flex: none; }
.paypick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0 14px; }
.paypick .pp { margin: 0; }
.paypick .pp input { position: absolute; opacity: 0; pointer-events: none; }
.paypick .pp span { display: block; text-align: center; padding: 9px 4px; border: 1px solid #d7dedc; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; margin: 0; }
.paypick .pp input:checked + span { background: #eef2f1; border-color: #98a2b3; }
.paypick .pp-paid input:checked + span { background: #dcfae6; border-color: #067647; color: #067647; }
.paypick .pp-unpaid input:checked + span { background: #fff1f3; border-color: #c01048; color: #c01048; }
.paypick .pp-credit input:checked + span { background: #e0eaff; border-color: #1d4ed8; color: #1d4ed8; }
.paypick .pp input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
/* v24: warehouse pickups and stock */
.badge.wh-prep { background: #fef0c7; color: #93370d; } .badge.wh-ready { background: #dcfae6; color: #067647; }
.badge.wh-done { background: #eef0f3; color: #344054; } .badge.wh-partly { background: #e0eaff; color: #1d4ed8; }
.code.sm { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 700; letter-spacing: .18em; background: #f2f4f4; border-radius: 6px; padding: 2px 8px; }
.whlist .ohead, .whlist .orow { grid-template-columns: 110px minmax(0, 1fr) 160px 110px 130px 150px !important; }
.whlist .oc-time { text-align: end; }
#stepCode input.code { width: 150px; text-align: center; font-size: 24px; letter-spacing: .4em; }
.step.bad { border-color: #fecdca; background: #fef3f2; }
.plist .st-l { grid-template-columns: minmax(0, 1.2fr) 170px minmax(0, 1.4fr) 170px; }
.plist .st-p { grid-template-columns: minmax(0, 1fr) 110px 130px 120px; }
.batches { display: flex; flex-wrap: wrap; gap: 6px; }
.batch { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; background: #f4f6f7; border: 1px solid #e2e7e6; border-radius: 999px; padding: 2px 10px; }
.batch b { font-variant-numeric: tabular-nums; } .batch.neg { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.sttotal { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .sttotal b { font-size: 16px; font-variant-numeric: tabular-nums; }
.prow.stlow { background: #fffbfa; }
@media (max-width: 860px) {
  .whlist .orow { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "ref st" "cust cust" "due due" "drv time"; }
  .whlist .oc-due { display: block; grid-area: due; font-size: 13px; }
  .plist .st-l, .plist .st-p { grid-template-columns: minmax(0, 1fr) auto; } .plist .phead.st-l span:not(:first-child), .plist .phead.st-p span:not(:first-child) { display: none; }
  .plist .st-l .batches { grid-column: 1 / -1; }
}
/* the test copy of the app says so on every screen */
.testbar { background: repeating-linear-gradient(-45deg, #f79009 0 14px, #f9a63a 14px 28px); color: #1f1300; font-weight: 800; font-size: 12.5px; text-align: center; padding: 4px 10px; letter-spacing: .02em; position: sticky; top: 0; z-index: 6; }
body.istest .top { top: 26px; }
.testbar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 26px; box-sizing: border-box; line-height: 18px; }
