/* Copyright 2026 Roy Kaplan. All rights reserved. */
/* SoftSell Mobile - phone screens.  No outside fonts or files. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#1b1f24;background:#f2f4f7}
header.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#1d4f91;color:#fff;min-height:50px}
header.bar h1{flex:1;margin:0;font-size:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.bar button{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6);min-height:40px;padding:0 12px;font-size:15px;border-radius:8px}
main{padding:10px;max-width:640px;margin:0 auto}
main.narrow{max-width:440px}   /* setup, sign-in, no-signal: short forms stay narrow on a computer */
section.card,details.card{background:#fff;border-radius:10px;padding:10px 12px;margin:0 0 10px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
section.card h2{margin:0 0 6px;font-size:16px;color:#1d4f91}
label{display:block;margin:8px 0 3px;font-weight:600;font-size:14px}
input,select,textarea{width:100%;min-height:42px;padding:8px 10px;font-size:16px;border:1px solid #9aa4b2;border-radius:8px;background:#fff;color:#1b1f24}
textarea{min-height:72px;resize:vertical}
input:disabled,select:disabled,textarea:disabled{background:#eceff3;color:#5b6573}
input:focus,select:focus,textarea:focus,button:focus{outline:3px solid #f5b400;outline-offset:1px}
button{min-height:42px;padding:0 14px;font-size:16px;font-weight:600;border-radius:8px;border:1px solid #1d4f91;background:#fff;color:#1d4f91}
button.primary{background:#1d4f91;color:#fff}
button.danger{border-color:#a3261b;color:#a3261b}
button:disabled{opacity:.5}
.row{display:flex;gap:8px}
.row>*{flex:1;min-width:0}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.actions button{flex:1 1 140px;max-width:340px}
.msg{padding:8px 10px;border-radius:8px;margin:0 0 10px;font-weight:600;font-size:15px}
.msg.info{background:#e7f0fb;color:#123a6b}
.msg.ok{background:#e3f4e6;color:#155724}
.msg.warn{background:#fff4d6;color:#6b4e00}
.msg.err{background:#fde8e6;color:#8a1c12}
.muted{color:#5b6573;font-size:14px}
.daynav{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.daynav button{flex:0 0 auto;min-width:48px}
.daynav .day{flex:1;text-align:center;font-weight:700}
ul.list{list-style:none;margin:0;padding:0}
ul.list li{margin:0 0 10px}
ul.list li button{width:100%;text-align:left;padding:12px;min-height:72px;font-weight:400;color:#1b1f24;border-color:#c9d1dc;display:block}
.when{font-weight:700;color:#1d4f91}
.badge{display:inline-block;padding:2px 8px;margin:4px 4px 0 0;border-radius:999px;font-size:13px;font-weight:700;background:#eceff3;color:#3b4552}
.badge.inv{background:#e3f4e6;color:#155724}.badge.ns{background:#fff4d6;color:#6b4e00}.badge.cx{background:#fde8e6;color:#8a1c12}.badge.vo{background:#e7f0fb;color:#123a6b}
.line{border:1px solid #d5dbe3;border-radius:10px;padding:10px;margin:0 0 10px}
.line .top{display:flex;justify-content:space-between;gap:8px;font-weight:600}
.line .amt{white-space:nowrap}
.total{display:flex;justify-content:space-between;font-size:17px;font-weight:700;padding:8px 2px}
.check{display:flex;align-items:center;gap:8px;min-height:40px;font-weight:600;margin:4px 0}
.check input{width:24px;min-height:24px;height:24px;margin:0}
.overlay{position:fixed;inset:0;background:rgba(15,25,40,.6);z-index:20;display:flex;align-items:center;justify-content:center;padding:16px}
.overlay .card{width:100%;max-width:420px}
.tip{background:#fff;border-left:4px solid #1d4f91;padding:8px 10px;border-radius:8px;margin-top:10px;font-size:14px;color:#1f2937}   /* Stage 3: dark text on the white card (it inherited main #e9eef4) */
.results li button{min-height:40px}
.sr{position:absolute;left:-9999px}
.picked{border:1px solid #c9d3e0;border-radius:10px;padding:10px 12px;margin:4px 0 10px;background:#f6f9fd;overflow-wrap:anywhere}
.wholesale summary,.jobtimes summary{font-weight:700;color:#1d4f91;cursor:pointer;min-height:40px;display:flex;align-items:center;list-style:none}
.wholesale summary::-webkit-details-marker,.jobtimes summary::-webkit-details-marker{display:none}
.wholesale summary::before,.jobtimes summary::before{content:'\25B8';width:1em;flex:0 0 1em}
.wholesale[open] summary::before,.jobtimes[open] summary::before{content:'\25BE'}   /* look2: both folding cards white with the same arrow */
/* PIN boxes are plain text boxes (no browser "Save password?" - Roy 10/22 11:10 AM), masked here.  Browsers without
   -webkit-text-security (older Firefox) show the digits. */
.pin{-webkit-text-security:disc;text-security:disc;letter-spacing:.2em}
/* Compact item rows (Roy 10/22 11:26 / 11:28 AM): closed = one line; open = narrow boxes with small inline labels */
.line{padding:4px 8px;margin:0 0 4px;font-size:15px;line-height:1.3}
.line .line-btn{cursor:pointer}
.line .top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-weight:400;min-width:0}
.line .qi{font-weight:600;min-width:0;word-break:break-word}
.line .right{flex:0 0 auto;white-space:nowrap;display:inline-flex;gap:6px}
.line .qx{color:#4a5563}
.line .amt{font-weight:600}
.line .dsc{color:#3b4350;white-space:pre-wrap;word-break:break-word}
.line.open{border-color:#2f6fb0;box-shadow:0 0 0 1px #2f6fb0}
.line .full{white-space:pre-wrap;word-break:break-word;margin:4px 0}
.line.needs{border-left:4px solid #c27c00}
.inl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:6px 0}
.inl.end{justify-content:flex-end}
.inl .f{display:inline-flex;align-items:center;gap:4px}
label.sm,.sm{font-size:.85em;margin:0;display:inline}
.inl input,.inl select{margin:0;width:auto;min-height:40px;padding:6px 8px}
input.w-qty{width:4.5em}
input.w-price{width:6.5em}
input.w-item{width:9em}
select.w-tax{width:auto;min-width:5em}
.line textarea.grow{width:100%;box-sizing:border-box;min-height:2.6em;resize:vertical;overflow:hidden;margin:2px 0 0}
.line .count{font-size:.8em;margin-right:auto}
button.small{padding:0 12px;font-size:14px;min-height:40px}
.total.sticky{position:sticky;bottom:0;background:#fff;padding:8px 0;border-top:1px solid #d5dbe3;z-index:1}
/* Narrow short fields side by side (Roy 10/22 11:28 AM: fewer rows) */
.row>.n-year{flex:0 0 5.5em}
.row>.n-state{flex:0 0 4.5em}
.row>.n-zip{flex:0 0 7em}
.row>.n-bay{flex:0 0 6em}
input[type=date],input[type=time]{min-width:0}
/* Q201 switch L.LINE_DESC_COLLAPSED = true: closed rows clip the description to 2 lines (like the POS) */
.line.clip .dsc,.line.clip .qi{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
/* Compact list rows (Roy 10/22 11:39 AM): parts run together with middots, wrap only when needed */
ul.list li{margin:0 0 6px}
ul.list li button.sum{min-height:44px;padding:7px 10px;line-height:1.35}
.run{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:1px;font-size:15px}   /* small gaps, no dots at line starts */
.run .b{font-weight:600}
.run .m{color:#4a5563;font-size:14px}
.run .badge{margin:0;padding:1px 7px;font-size:12px}
@media (min-width:1000px){main.wide{max-width:960px}}   /* lists use more of a computer screen; forms stay 640 */
/* After looking at the screenshots (10/22 11:50 AM): less wasted space */
.row.tight>button{flex:0 0 auto;padding:0 22px}
.row.tight>.check{flex:1}
.actions button{padding:0 10px;white-space:nowrap}
.results li{margin:0 0 4px}
.results li button.sum{min-height:40px;padding:6px 10px}
.results .run .when{color:#1d4f91}
.line .qi.txt{font-weight:400;color:#1b1f24}
.line textarea.grow{font:inherit;font-size:16px;line-height:1.35;padding:6px 8px}
.inl input,.inl select{font-size:16px}
input.w-qty{width:4em}
input.w-price{width:6em}
.inl .f.muted{font-size:13px}
#f-pin,#f-unlock{max-width:9em;text-align:center;font-size:22px;letter-spacing:.3em}
.row>.n-phone{flex:0 0 10em}
/* Round 2 look (Roy 10/22 11:59 AM): the rest of the screens */
.row>.n-cid{flex:1 1 0;min-width:0}   /* Stage 3 (Roy 1:30 AM): Client ID and Setup code boxes the same width */
.setuprow>div{flex:1 1 0;min-width:0}
.row>.n-pin{flex:0 0 7em}
.n-pin #f-pin{max-width:none}
.pin-actions button{flex:1 1 auto}
.overlay .card .actions{margin-top:8px}
p{margin:6px 0}
section.card>p:first-child,section.card>h2+p{margin-top:0}
.checks{display:flex;flex-wrap:wrap;column-gap:24px}
textarea{font:inherit;font-size:16px;line-height:1.35}
section.card p{font-size:15px}
section.card>label:first-child{margin-top:0}
ul.list li.grp{margin:10px 0 4px}
ul.list li.grp:first-child{margin-top:0}
.grp-h{margin:0;font-size:14px;font-weight:700;color:#1d4f91;border-bottom:1px solid #c9d1dc;padding:0 2px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Left-side labels, paired short fields (Roy 10/22 12:08 PM "more on the screen at once while keeping it readable") */
.lf.card{padding:8px 10px}
.lf h2,.lf summary{font-size:15px}
section.card.lf h2{margin:0 0 2px}
.fld{display:flex;align-items:center;gap:6px;margin:6px 0;min-width:0}
.fld>label{flex:0 0 auto;margin:0;font-size:14px;font-weight:600;color:#3b4552;white-space:nowrap}
.fld>input,.fld>select{flex:1 1 auto;min-width:0;width:auto}
.fld>button.small{flex:0 0 auto}
.row.wrap{flex-wrap:wrap;column-gap:10px;row-gap:0}
.row>.fld{flex:1 1 0}
.row.wrap>*{flex:1 1 auto}
.row.wrap>.cidbox{flex:1 1 150px;min-width:0}
.row.wrap>.n-ph{flex:1 1 280px}
.row>.n-half{flex:1 1 0}
.row.wrap>.n-addr{flex:1 1 100%}
.row.wrap>.n-city{flex:1 1 120px}
.row.wrap>.n-state{flex:0 0 auto}.n-state>input{width:3.2em;flex:0 0 3.2em}
.row.wrap>.n-zip{flex:0 0 auto}.n-zip>input{width:4.6em;flex:0 0 4.6em}
.row.wrap>.n-wp{flex:1 1 220px}
.row.wrap>.n-email{flex:2 1 260px}
.row.wrap>.n-year{flex:0 0 auto}.n-year>input{width:4.2em;flex:0 0 4.2em}
.row.wrap>.n-make{flex:1 1 110px}
.row.wrap>.n-model{flex:1.5 1 140px}
.row.wrap>.n-date{flex:1 1 180px}
.row.wrap>.n-time{flex:1 1 150px}
.lf input[type=time],.lf input[type=date]{padding:8px 6px}
.row.wrap>.n-bay{flex:0 0 auto}.n-bay>input{width:4.5em;flex:0 0 4.5em}
.row.wrap>.n-tech{flex:1 1 180px}
.row.wrap>.n-jt{flex:1 1 200px}
.cidbox .results{margin:0 0 4px}
.cidbox .picked{margin:2px 0 6px}
.lf .row,.lf .fld{margin-top:0}
.lf>.muted{margin:0 0 4px}
.lf .row>.fld{margin:6px 0 0}
.lf .row{margin-bottom:0}
.lf>label{margin-top:8px}
.row.wrap>.n-city{flex:1 1 150px}
.row.wrap>.n-sz{flex:0 0 auto;gap:10px;margin:0}
.n-sz>.fld{flex:0 0 auto;margin:6px 0 0}
.n-job>input{flex:1 1 0}
.row.wrap>.n-len{flex:0 0 auto}.n-len>select{width:6.2em;flex:0 0 6.2em}
.salescm{margin-top:6px;padding:6px 8px;background:#f6f9fd;border:1px solid #d5dbe3;border-radius:8px;font-size:15px}
.salescm .sm-h{font-size:13px;font-weight:700;color:#3b4552}
.salescm .txt{white-space:pre-wrap;overflow-wrap:anywhere}
.jobtimes summary{gap:10px}
.jobtimes .jt-sum{font-weight:400}
.row.wrap>.n-jt1{flex:1 1 230px}
.n-jt1>input{flex:1 1 auto}
.row.stack>.fld{flex-direction:column;align-items:stretch;gap:2px;flex:1 1 0}
.row.stack>.fld>label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row.wrap>.phbox{flex:1 1 320px;min-width:0}
.phbox #f-phone{min-width:8em}   /* look2: the whole number shows on a computer (was cut to 555-555-010) */
.phbox .results{margin:0 0 4px}
.row.wrap>.phbox>.fld{margin:6px 0 0}
.row.wrap>.n-ro{flex:1 1 180px}
.row.wrap>.n-ordby{flex:1 1 220px}
.row.wrap>.n-jt{flex:0 0 auto}.n-jt>select{width:7.5em;flex:0 0 7.5em}
.lf .checks{column-gap:14px;align-items:center}
.row.wrap>.cidbox>.fld{margin:6px 0 0}
header.bar button.applist{white-space:nowrap;flex:0 0 auto;padding:0 10px}   /* Roy 1:23 PM / 1:51 PM: appointment form 'Close' renamed ('Done'), one line at 360 px */

/* look3 (Roy 4:57 PM): Schedule toolbar stays under the header; New appointment / New invoice / Today's invoices fixed at the bottom */
.topbar{position:sticky;top:0;z-index:5}
.topbar header.bar{position:static}
.subbar{background:#f2f4f7;border-bottom:1px solid #d5dbe3;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.subin{max-width:640px;margin:0 auto;padding:6px 10px 2px}
@media (min-width:1000px){.subin{max-width:960px}}
.schbar .daynav{margin-bottom:4px}
.schbar .row.tight{align-items:center}
.schbar .row.tight>button{flex:0 0 auto;min-width:0;padding:0 14px}   /* Today + Estimates + Only my jobs on one row at 360 px */
.schbar .check{margin:0}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:6;background:#fff;border-top:1px solid #d5dbe3;box-shadow:0 -1px 4px rgba(0,0,0,.08);
  padding:8px 10px calc(8px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))}
.dockin{max-width:640px;margin:0 auto;padding-right:env(safe-area-inset-right)}
@media (min-width:1000px){.dockin{max-width:960px}}
/* Stage 1 item C (Roy 2026-10-25): each bottom bar button sizes from its OWN text (flex-basis auto) and is never narrower than its
   longest word (min-width:min-content; words never break).  Extra room is shared out; if the words alone can't fit, the bar wraps. */
.dock .actions{margin:0;flex-wrap:wrap}
.dock .actions button{flex:1 1 auto;min-width:min-content;max-width:340px;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:manual;line-height:1.15;padding:4px 6px;font-size:15px}
main.has-dock{padding-bottom:84px}
/* look3 (Roy 5:00 PM): Scheduled is a quiet label; Invoiced / No Show / Canceled keep their colours */
.badge.sch{background:transparent;color:#5b6573;border:1px solid #c9d1dc;font-weight:600}
/* look3 (Roy 5:02 PM): Bay label quieter than its value, on the Schedule rows and the appointment form */
.run .bay .lbl{color:#5f6b7a;font-weight:400}   /* Stage 3 visual review: 3.8:1 -> 5.4:1 on white */
.run .bay{color:#1b1f24}
.fld.n-bay>label{color:#6b7584;font-weight:600}
/* ---- Estimates, home screen card, demo switch-over (design section 28) ---- */
.badge.est{background:#efe7fb;color:#4a2a7d}
.homecard{position:relative;border-left:4px solid #1d4f91}
.homecard h2{margin:0 36px 6px 0;font-size:17px}
.homecard p{margin:4px 0}
.homecard button.x{position:absolute;top:6px;right:6px;min-height:36px;width:36px;padding:0;border:0;font-size:22px;line-height:1;background:transparent;color:#5b6573}
ol.steps{margin:6px 0;padding-left:22px}
ol.steps li{margin:6px 0;line-height:1.4}
button.linkish{min-height:36px;padding:0 4px;border:0;background:transparent;color:#1d4f91;text-decoration:underline;font-weight:600}
a.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;font-size:16px;font-weight:600;border-radius:8px;border:1px solid #1d4f91;background:#fff;color:#1d4f91;text-decoration:none}
a.btn.primary{background:#1d4f91;color:#fff}
.switch h2{margin:0 0 8px;color:#1d4f91}
.switch h3{margin:16px 0 4px;font-size:16px}
.switch .actions a.btn{width:100%}
p.small{font-size:13px}
.muted.nl{white-space:pre-line}
/* ---- p10 (Roy 2026-10-23) ---- */
/* Job length first, then Bay, on one line (also at 360 px); Tech ID next to them when it fits */
.row.wrap>.n-lb{flex:0 0 auto;gap:10px;margin:0}
.n-lb>.fld{flex:0 0 auto;margin:6px 0 0}
/* Schedule: Refresh next to the date, the day's job total right under it (Only my jobs) */
.daynav button.refresh{min-width:0;padding:0 10px;font-size:14px}
.daytotal{text-align:center;font-weight:600;font-size:14px;color:#1d4f91;margin:-2px 0 4px}
/* Job times: stop before start */
.jt-warn{margin:6px 0 0}
/* Item type-ahead: one line per item - item number | description ... | price; tap for the detail */
.results li button.irow{display:flex;align-items:baseline;gap:8px;min-height:40px;padding:6px 10px;width:100%;text-align:left;font-weight:400;color:#1b1f24;border-color:#c9d1dc}
.irow .ino{flex:0 0 auto;max-width:45%;font-weight:700;color:#1d4f91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.irow .idesc{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3b4350;font-size:15px}
.irow .iprice{flex:0 0 auto;white-space:nowrap;font-weight:600}
.irow[aria-expanded=true]{border-color:#2f6fb0;box-shadow:0 0 0 1px #2f6fb0}
.idetail{border:1px solid #c9d1dc;border-top:0;border-radius:0 0 8px 8px;padding:6px 10px 8px;margin:-2px 0 4px;background:#f6f9fd;font-size:15px}
.idetail .ifull{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 4px}
.idl{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:1px;margin:0}
.idl dt{color:#5b6573;font-size:14px}
.idl dd{margin:0;overflow-wrap:anywhere}
.idetail .inl{margin:6px 0 0}
/* p10 item 16: invoice Subtotal / Tax / Total; demo sales tax rate box and Settings link */
.total.tax3{display:block;font-size:15px;font-weight:600;padding:4px 0}
.total.tax3 .trow{display:flex;justify-content:space-between;padding:1px 2px}
.total.tax3 .trow.tot{font-size:17px;font-weight:700}
.taxbox #f-taxrate{width:6em;flex:0 0 auto}
.taxbox .row.n-lb{align-items:center;gap:8px}
button.linkish.settings{margin-left:8px;min-height:28px}

/* p11 Mark Paid (Roy Q241 / Q242): payment status on the invoice and in Today's invoices; the pay-method picker */
.badge.due{background:#fff4d6;color:#6b4e00}.badge.paid{background:#e3f4e6;color:#155724}
.paycard .payrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.paycard .payrow .lbl{font-weight:700;color:#3b4552}
.paycard .payrow .badge{margin:0}
.paycard .payacts{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.paybox .paygrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.paybox .paygrid button{min-height:48px;width:100%}
/* p13 item 41 (Roy 4:07 PM, final - like the POS line): top line left = qty + item number; right = unit price | line
   amount | T (fixed slots, money right-aligned, rows line up).  Narrow screens: a long amount wraps under the price on the
   right, never onto the left.  Description line below unchanged. */
.line .top .left{display:flex;align-items:baseline;gap:8px;min-width:0}
.line .top .left .nq{flex:0 0 auto;font-variant-numeric:tabular-nums;color:#1b1f24}
.line .top .left .nq:empty{display:none}
.line .right.nums{display:grid;grid-template-columns:5.8em 7.4em 1em;column-gap:8px;justify-items:end;
  align-items:baseline;font-variant-numeric:tabular-nums;white-space:nowrap}
.line .nums .np{color:#4a5563}
.line .nums .amt{font-weight:600}
.line .nums .nt{justify-self:stretch;text-align:center;font-weight:700;color:#1d5e2f}
@media (max-width:479px){.line .right.nums{grid-template-columns:4.4em 5em .8em;column-gap:4px;font-size:.9em}.line .top .left{gap:6px}}
.line .right.nums.wrap{grid-template-columns:minmax(7.4em,auto) 1em}
.line .right.nums.wrap .amt{grid-column:1;grid-row:2}
.tlegend{font-size:.8em;margin:2px 0 4px;text-align:right}
/* p13 item 44 (Roy 4:31 PM): disclosure arrow left of the item list heading; open by default. */
.items-h{margin:0 0 6px}
.items-tog{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font:inherit;color:inherit;padding:2px 4px 2px 0;min-height:32px}
.items-tog:focus-visible{outline:2px solid #1d4f91;outline-offset:2px;border-radius:4px}
.items-tog .arrow{display:inline-block;width:1em;text-align:center;font-weight:700;transition:transform .15s}
.items-tog .arrow.open{transform:rotate(90deg)}
/* p13 item 47 (Roy 4:40 PM): action buttons inside a list item (the item detail under a search match) were picking up
   the list-row look (ul.list li button: dark text, grey border, full width, 72 px) - "Add item" was dark text on blue.
   Give them the normal button look again: primary = solid blue with white text, same size as other primary buttons. */
ul.list li .idetail button,ul.list li .inl button{width:auto;display:inline-block;text-align:center;min-height:42px;padding:0 14px;font-size:16px;font-weight:600;
  border:1px solid #1d4f91;background:#fff;color:#1d4f91}
ul.list li .idetail button.primary,ul.list li .inl button.primary{background:#1d4f91;color:#fff;border-color:#1d4f91}
button.primary:hover,a.btn.primary:hover,ul.list li .idetail button.primary:hover{background:#163f75;border-color:#163f75;color:#fff}
ul.list li .idetail button:not(.primary):hover{background:#eef3fa}
button.primary:focus-visible,ul.list li .idetail button.primary:focus-visible{outline:3px solid #f5b400;outline-offset:1px;color:#fff}
/* disabled: no see-through blue (white on 50% blue was hard to read) - a solid grey-blue that keeps white text readable */
button.primary:disabled,ul.list li .idetail button.primary:disabled{opacity:1;background:#5b6f8a;border-color:#5b6f8a;color:#fff}
/* p13 item 48: the Save button after Cancel on "Leave without saving ...?" - a short glow so it's obvious */
@keyframes saveflash{0%,100%{box-shadow:0 0 0 0 rgba(245,180,0,0)}30%,70%{box-shadow:0 0 0 6px rgba(245,180,0,.85)}}
button.save-flash{animation:saveflash 1.6s ease-in-out}
#f-save{scroll-margin-bottom:12px;scroll-margin-top:70px}
/* p13 item 49 (Roy Q280): the unsaved-changes leave dialog - short message, Discard changes (danger) + Go to Save (primary) */
.leavebox{width:100%;max-width:400px;margin:0;padding:16px}
.leavebox .leave-msg{font-size:17px;font-weight:600;margin:0 0 14px;color:#1b1f24}
.leavebox .actions{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.leavebox .actions button{flex:1 1 140px;max-width:none;white-space:nowrap}
.leavebox button.danger{background:#fff;border-color:#a3261b;color:#a3261b}
.leavebox button.danger:hover{background:#fbeceb}
/* p13 item 55: one salesperson shown read-only next to Tech ID */
.fld p.ro { margin: .35em 0 0; font-weight: 600; }
/* p13 item 56: a long customer name in the title is cut with ... and never pushes the header buttons */
header.bar h1{min-width:0}
header.bar > button{flex-shrink:0}
/* p13 item 57: the Remove question's second line (quantity + item) */
.leavebox .leave-sub{margin:-4px 0 12px;font-size:15px;overflow-wrap:anywhere}
/* p14 (ROY-LIST 74-77): demo notes / tip of the day (demo only, never licensed) and the Email invoice offer */
.nudge{position:relative;border-left:4px solid #2e7d32}
.nudge h2,.nudge .nudge-main{margin:0 36px 6px 0;font-size:17px}
.nudge p{margin:4px 36px 4px 0}
.nudge button.x{position:absolute;top:6px;right:6px;min-height:36px;width:36px;padding:0;border:0;font-size:22px;line-height:1;background:transparent;color:#5b6573}
.nudge.emailoffer{border-left-color:#1d4f91}
.msg.tip{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.emailbox .fld input{flex:1 1 auto;min-width:0}
#f-emailed{margin:2px 0}

/* Stage 1 item D (Roy 2026-10-25): REMOVE in red capitals on the remove buttons and on "Yes, REMOVE". */
button.rmbtn{background:#fff;border:1px solid #a3261b;color:#1d2733}
button.rmbtn:hover{background:#fbeceb}
button.rmbtn .rm,.rm{color:#c0271b;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
/* Stage 1 item E: the read-only Installer Comments box on an invoice without a linked appointment (tap -> the offer). */
textarea.ro-tap{background:#f4f6f9;color:#3b4654;cursor:pointer}
p.small{font-size:13px;margin:2px 0 0}

/* ======================================================================================================================
   Stage 1 item V (Roy 2026-10-26, mock-ups metal9 / metal10 / metal11): the metal look on every screen - CSS / SVG only,
   no image files.  Brushed-silver frame tinted blue with a screw in each corner; dark brushed background around WHITE data
   boxes; blue bar (#3a64a0 -> #173f78, 2px #0a1f40 border, title centred); green bar on invoice screens (item AG); chrome
   buttons, blue-metal primary, an inset pressed state; flat outlined status labels with their field name (never button-like).
   ====================================================================================================================== */
:root{--frame:6px;--dock-h:0px;
  --silver:linear-gradient(135deg,#dfe8f4,#7f97b8 25%,#eef3fa 50%,#6f88ab 75%,#d3deec);
  --chrome:linear-gradient(180deg,#fdfdfd 0%,#d9dde1 45%,#b9bfc5 55%,#e3e6e9 100%);
  --bluemetal:linear-gradient(180deg,#6f95c9 0%,#2c5d9e 45%,#1d4f91 55%,#3a6aa8 100%)}
/* item Y: dark down to the very bottom (no white under the bottom bar), under the home indicator too */
html{background:#2b2f33;min-height:100%}
body{color:#1b1f24;min-height:100vh;padding:var(--frame) var(--frame) 0;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px),linear-gradient(180deg,#4a5057,#2b2f33);
  background-attachment:fixed}
/* the frame: a fixed silver-blue border round the whole screen; the screws are four small radial gradients */
body::before{content:"";position:fixed;inset:0;z-index:8;pointer-events:none;border:var(--frame) solid #7f97b8;border-image:var(--silver) 1;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.4)}
body::after{content:"";position:fixed;inset:0;z-index:9;pointer-events:none;
  --sc:radial-gradient(circle at 35% 35%,#fff 0,#8c939a 2.6px,#5a6067 4px,transparent 4.6px);
  background:var(--sc) 1px 1px/10px 10px no-repeat,var(--sc) calc(100% - 1px) 1px/10px 10px no-repeat,
             var(--sc) 1px calc(100% - 1px)/10px 10px no-repeat,var(--sc) calc(100% - 1px) calc(100% - 1px)/10px 10px no-repeat}
/* the bar: blue metal, the title centred between an empty spacer and the buttons */
.topbar{top:var(--frame)}
header.bar{display:flex;align-items:center;gap:6px;min-height:48px;padding:6px 8px;border:2px solid #0a1f40;border-radius:6px 6px 0 0;color:#f2f6fb;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 2px),linear-gradient(180deg,#3a64a0,#173f78)}
header.bar.inv{border-color:#0b2e14;color:#f2f8f3;   /* item AG: invoice screens */
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 2px),linear-gradient(180deg,#3f8f52,#1c5c2c)}
header.bar .hsp{flex:0 0 auto;min-width:0}
header.bar h1{flex:1 1 auto;min-width:0;text-align:center;font-size:18px;font-weight:800;letter-spacing:.03em;text-shadow:0 -1px 0 #000,0 1px 0 rgba(255,255,255,.25)}
header.bar .hbtns{flex:0 0 auto;display:flex;justify-content:flex-end;gap:6px}
header.bar button{min-height:36px;padding:0 12px;font-size:15px;font-weight:700;color:#1b2330;border:1px solid #0a1f40;border-radius:7px;background:var(--chrome);
  box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(0,0,0,.45);text-shadow:0 1px 0 #fff}
header.bar.inv button{border-color:#0b2e14}
/* text straight on the dark background reads light; the white boxes keep dark text */
main{color:#e9eef4}
main>p.muted,main>.muted,main>p,.subbar .check,.subbar .muted,.daytotal{color:#d7dde5}
main>p.muted.small{color:#c3cad3}
.grp-h{color:#dfe8f4;border-bottom-color:#6f7a87}
section.card,details.card,.overlay .card,.msg,.line,.picked,ul.list li button,.leavebox{color:#1b1f24}
/* white data boxes with the silver-blue edge */
section.card,details.card,div.card{background:linear-gradient(#fff,#fff) padding-box,var(--silver) border-box;border:3px solid transparent;border-radius:9px;box-shadow:0 2px 5px rgba(0,0,0,.45)}
section.card h2,.lf h2,.lf summary,.wholesale summary{color:#1d4f91;text-transform:uppercase;letter-spacing:.05em;font-size:13px}
.overlay .card h2{text-transform:none;letter-spacing:0;font-size:17px}
ul.list li button.sum{background:#fff;border:1px solid #8fa3bf;border-radius:7px;box-shadow:0 1px 3px rgba(0,0,0,.4)}
ul.list li button.sum:active{background:#eef3fa;box-shadow:inset 0 2px 4px rgba(0,0,0,.25)}
.homecard,.nudge{border-left-width:3px}
/* chrome buttons, blue-metal primary, pressed = inset */
button,a.btn{color:#1b2330;border:1px solid #7d848b;border-radius:8px;background:var(--chrome);box-shadow:inset 0 1px 0 #fff,0 2px 3px rgba(0,0,0,.35);text-shadow:0 1px 0 #fff;font-weight:700}
button.primary,a.btn.primary,ul.list li .idetail button.primary,ul.list li .inl button.primary{color:#fff;border-color:#0e2f5a;background:var(--bluemetal);text-shadow:0 -1px 0 #0b2547;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 3px rgba(0,0,0,.35)}
button.primary:hover,a.btn.primary:hover,ul.list li .idetail button.primary:hover{background:var(--bluemetal);border-color:#0e2f5a;filter:brightness(1.06)}
button:active,a.btn:active,button.pressed{background:linear-gradient(180deg,#b9bfc5,#d9dde1);box-shadow:inset 0 2px 5px rgba(0,0,0,.45);text-shadow:none}
button.primary:active{background:linear-gradient(180deg,#173f78,#2c5d9e);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
button:disabled,button[aria-disabled=true]{opacity:.55}
button.primary:disabled{opacity:.6;background:var(--bluemetal)}
button.danger,.leavebox button.danger{color:#a3261b;border-color:#8d2a22;background:var(--chrome)}
button.rmbtn{background:var(--chrome)}
button.linkish{background:transparent;border:0;box-shadow:none;text-shadow:none;color:#bcd2f0}
section.card button.linkish,.overlay button.linkish{color:#1d4f91}
ul.list li .idetail button,ul.list li .inl button{background:var(--chrome);border-color:#7d848b;color:#1b2330}
.items-tog,.homecard button.x,.nudge button.x{background:transparent!important;box-shadow:none!important;text-shadow:none;border:0}
/* metal icons (item V) */
button .ico{flex:0 0 auto;vertical-align:-3px;margin-right:5px}
button.iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:0}
button.primary .ico rect,button.primary .ico path{filter:brightness(1.5)}
/* flat status labels: outlined, small capitals, never button-like; the field name in front ("PAYMENT  PAID") */
.badge,.run .badge{display:inline-block;margin:0;padding:0 6px;border:1.5px solid currentColor;border-radius:3px;background:transparent;font-size:11px;font-weight:800;
  line-height:16px;text-transform:uppercase;letter-spacing:.06em;box-shadow:none;color:#4a5563}
.badge.paid,.badge.inv{color:#1f6b33;background:transparent}.badge.due,.badge.ns{color:#9a6700;background:transparent}
.badge.est{color:#1d4f91;background:transparent}.badge.cx{color:#a3261b;background:transparent}.badge.vo{color:#2c5d9e;background:transparent}
.badge.sch{color:#5b6573;border-color:#9aa4b2;background:transparent}
.stat{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.stat .blbl{font-size:12px;font-weight:600;color:#5b6573}
.paycard .payrow .stat{margin-right:4px}
/* sub bar (date row, Today ...) and bottom bar: dark brushed metal */
.subbar{background:repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),linear-gradient(180deg,#4b525a,#33383e);border-bottom:1px solid #1e2226;box-shadow:0 2px 4px rgba(0,0,0,.45)}
.subin{padding:6px 8px 4px}
/* items X / Z: the arrows at the outside edges; the full day name on its own line above the date */
.daynav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 4px}
.daynav button.arrow{flex:0 0 52px;min-width:52px;min-height:44px;font-size:20px;padding:0}
.daynav .day{flex:1 1 auto;text-align:center;color:#f2f6fb;line-height:1.15;text-shadow:0 1px 0 #000}
.daynav .dname{font-size:15px;font-weight:700;letter-spacing:.04em}
.daynav .ddate{font-size:17px;font-weight:800}
.schbar .row.tight>button{min-height:38px}
.subbar .check{font-size:15px}
.dock{left:var(--frame);right:var(--frame);bottom:0;border-top:2px solid #8fa3bf;box-shadow:0 -2px 5px rgba(0,0,0,.45);
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),linear-gradient(180deg,#3d4349,#25292d);
  padding:8px 8px calc(var(--frame) + 4px + env(safe-area-inset-bottom)) 8px}
.dock .actions button{min-height:46px}
/* items AD / AI: the small Sign Out footer, bottom right, with a gap under the bottom buttons */
.signfoot{display:flex;justify-content:flex-end;margin-top:10px}
.dock.footonly .signfoot{margin-top:0}
.signfoot button.signout{min-height:30px;padding:0 12px;font-size:13px;font-weight:700;border-radius:6px}
.total.sticky{bottom:var(--dock-h)}
/* the Settings invoice switches (item AB) */
.switches{margin-top:12px;border-top:1px solid #d5dbe3;padding-top:8px}
.switches h3{margin:0 0 4px;font-size:15px;color:#1d4f91}
.switches .checks{flex-direction:column}
.switches .check{min-height:34px;margin:0}
.actions.editbar{margin:0 0 10px}
/* ======================================================================================================================
   Stage 1 item AJ (Roy 2026-10-26 4:31 PM, mock-up metal11): compact POS-style forms.  Left labels in a fixed ~78 px column,
   rows ~31 px touching, 27 px boxes with 16 px type (no phone zoom), thin inset borders, no rounded box per field;
   First / Last, City / State / Zip and Year + Make / Model share one row.
   ====================================================================================================================== */
.lf.card{padding:4px 7px 6px}
section.card.lf h2{margin:2px 0 2px}
.lf .fld{min-height:31px;margin:0;gap:4px;border-top:1px solid #e3e7ec}
.lf .row>.fld,.lf .row.wrap>.fld,.lf .row.wrap>.phbox>.fld,.lf .row.wrap>.cidbox>.fld,.n-lb>.fld,.n-sz>.fld{margin:0}
.lf .fld>label{flex:0 0 78px;width:78px;font-size:13px;font-weight:700;color:#3b4552;white-space:normal;line-height:1.1;overflow-wrap:anywhere}
.lf .row.one>.fld+.fld>label,.lf .n-lb>.fld+.fld>label,.lf .n-sz>.fld+.fld>label{flex:0 0 auto;width:auto;margin-left:4px;white-space:nowrap}
.lf .fld>input,.lf .fld>select,.lf .inl input,.lf .inl select{min-height:27px;height:27px;padding:1px 4px;font-size:16px;border:1px solid #b9c0c8;border-top-color:#8f98a3;border-radius:2px;
  background-color:#fff;box-shadow:inset 0 1px 1px rgba(0,0,0,.08)}
.lf .fld>input:disabled,.lf .fld>select:disabled{background-color:#eef1f4}
.lf .fld>button.small,.lf .fld button.small{min-height:27px;padding:0 8px;font-size:13px}
.lf .row,.lf .row.wrap{gap:0 6px;margin:0}
.lf .row.one{flex-wrap:nowrap;border-top:1px solid #e3e7ec}
.lf .row.one>.fld{border-top:0}
.lf .row.one>.n-half{flex:1 1 0}
.lf .row.one>.n-city{flex:1 1 0}
.lf .row.one>.n-state,.lf .row.one>.n-zip,.lf .row.one>.n-year{flex:0 0 auto}
.lf .row.one>.n-model{flex:1 1 0}
.lf .n-state>input{width:38px;flex:0 0 38px}.lf .n-zip>input{width:60px;flex:0 0 60px}.lf .n-year>input{width:50px;flex:0 0 50px}
.lf textarea{border-radius:2px;border:1px solid #b9c0c8;border-top-color:#8f98a3;min-height:58px;padding:4px 6px}
.lf>label{margin:4px 0 2px;font-size:13px}
.lf .muted{margin:2px 0}
@media (max-width:599px){.lf .row.wrap>*{flex:1 1 100%}.lf .row.wrap>.n-lb,.lf .row.wrap>.n-sz{flex:1 1 100%}}
/* the Date / Appointment time pair keeps its labels above the boxes */
.lf .row.stack>.fld>label{flex:0 0 auto;width:auto;white-space:nowrap}
.lf .row.stack{gap:0 8px;border-top:1px solid #e3e7ec}
.lf .row.stack>.fld{border-top:0;padding:2px 0}
/* ======================================================================================================================
   Stage 1B (Roy 2026-10-26 7:05 PM)
   ====================================================================================================================== */
/* A1: real-looking corner screws - round domed head, a proper slot, light from the top left (SVG, no image files) */
body::after{--sc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3CradialGradient id='h' cx='.36' cy='.3' r='.78'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.35' stop-color='%23d4d9de'/%3E%3Cstop offset='.75' stop-color='%23878e96'/%3E%3Cstop offset='1' stop-color='%23565c63'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='8' cy='8.4' r='7.2' fill='%23000' opacity='.35'/%3E%3Ccircle cx='8' cy='8' r='7' fill='url(%23h)' stroke='%23464c53' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='5.9' fill='none' stroke='%23fff' stroke-opacity='.45' stroke-width='.5'/%3E%3Cg transform='rotate(-38 8 8)'%3E%3Crect x='2.3' y='7' width='11.4' height='2' rx='.6' fill='%23353a40'/%3E%3Crect x='2.6' y='8.65' width='10.8' height='.55' fill='%23fff' fill-opacity='.7'/%3E%3Crect x='2.6' y='7' width='10.8' height='.55' fill='%23000' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  background:var(--sc) 0 0/14px 14px no-repeat,var(--sc) 100% 0/14px 14px no-repeat,var(--sc) 0 100%/14px 14px no-repeat,var(--sc) 100% 100%/14px 14px no-repeat}
/* A3: invoice buttons are green (green metal when primary, a green tint otherwise) */
:root{--greenmetal:linear-gradient(180deg,#78c28b 0%,#2f8a47 45%,#1f6b33 55%,#3f9a58 100%);
  --greentint:linear-gradient(180deg,#f6fcf7 0%,#d6eedc 45%,#b9dcc2 55%,#e4f4e8 100%)}
button.invbtn{color:#123f1c;border-color:#2c7a41;background:var(--greentint);text-shadow:0 1px 0 #fff}
button.invbtn:active{background:linear-gradient(180deg,#b9dcc2,#d6eedc)}
button.primary.invbtn{color:#fff;border-color:#0b3a17;background:var(--greenmetal);text-shadow:0 -1px 0 #0b3a17}
button.primary.invbtn:hover{background:var(--greenmetal);border-color:#0b3a17}
button.primary.invbtn:active{background:linear-gradient(180deg,#1c5c2c,#2f8a47)}
button.primary.invbtn:disabled{background:var(--greenmetal)}
/* A4: the main bottom bar's second row - the switch button centred, sized like the buttons above it, Sign Out at the right */
.dock .dockrow2{display:flex;align-items:center;gap:8px;margin-top:8px}
.dock .dockrow2 .d2side{flex:1 1 0;min-width:0;display:flex}
.dock .dockrow2 .d2side.end{justify-content:flex-end;min-width:max-content}   /* never narrower than Sign Out: the middle button moves left instead of running under it */
.dock .dockrow2 .d2mid{flex:0 0 calc(50% - 4px)}
.dock .dockrow2>button{flex:0 0 auto;min-width:calc(50% - 4px);max-width:340px;min-height:46px;padding:4px 8px;font-size:15px;line-height:1.15;white-space:nowrap}
.dock .dockrow2>button img,.dock .dockrow2>button svg{margin-right:5px}
@media (max-width:400px){.dock .dockrow2>button{font-size:14px;padding:4px 6px}}
.dock .dockrow2 button.signout{min-height:30px;padding:0 10px;font-size:13px;font-weight:700;border-radius:6px;white-space:nowrap}
.subbar .row.tight.end{justify-content:flex-end}
/* E: the Settings page */
section.card.settings{margin-bottom:12px}
.settings .checks{display:flex;flex-direction:column}
.settings .check{min-height:36px;margin:0;color:#1b1f24}
.settings .fld{display:flex;align-items:center;min-height:38px}
.settings .fld select{flex:0 0 auto;min-width:130px}
.settings .msg{margin:6px 0 0}
.settings p.small{color:#3b4552;margin:2px 0 6px}
button.setview{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:36px;margin:0;padding:0 4px;border:0;border-top:1px solid #e3e7ec;
  border-radius:0;background:transparent;box-shadow:none;text-shadow:none;font-weight:400;color:#1b1f24;text-align:left}
button.setview:active{background:#eef3fa}
button.setview .sv-l{font-weight:600}
button.setview .sv-v{font-weight:800;color:#1d4f91}
.settings .taxrow{display:flex;align-items:center;gap:6px}
.settings .taxrow input{width:80px;flex:0 0 80px}
.settings .taxrow button{margin-left:auto}
button.plainbtn{background:var(--chrome)}
/* Stage 2 item J: Text Size for this phone.  List-look build (Roy 4:24 AM rule): it scales ONLY the text in the fields and the
   list rows - the header, titles, buttons and the dock stay their normal size (see the end of this file). */
html{--tsz:1}html.ts-large{--tsz:1.12}html.ts-xlarge{--tsz:1.25}
/* Stage 2 item L: the Personal schedule rows and the one-line comment that grows as it is typed */
.prow{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;text-align:left}
.prow .pt{font-weight:700;min-width:5.2em}
.prow .pn{font-weight:600}
.prow .pc{flex-basis:100%;color:#5b6570;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
textarea.grow1{min-height:2.4em;height:2.4em;resize:none;overflow:hidden}
/* Stage 2 item G: the demo's email count under the Email buttons */
.demoemail{margin:4px 2px 0}
/* Stage 2 item J: at Large / Extra Large the second dock row has less room - the switch button takes the free space
   (not centred) so it never runs under Sign Out */
html.ts-large .dock .dockrow2>.d2side:first-child,html.ts-xlarge .dock .dockrow2>.d2side:first-child{display:none}
html.ts-large .dock .dockrow2>button,html.ts-xlarge .dock .dockrow2>button{flex:1 1 auto;min-width:0;max-width:none;font-size:14px}
html.ts-large .dock .dockrow2 .d2side.end,html.ts-xlarge .dock .dockrow2 .d2side.end{flex:0 0 auto}
ul.list button.sum.prow{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;text-align:left}

/* ---- Stage 3 (2026-10-27) ---- */
/* Roy 1:30 / 1:31 AM: Client ID and Setup Code boxes the same width; the setup code shows all 8 characters (plus a dash) at once */
.row.setuprow{flex-wrap:nowrap}
.row.setuprow>div{flex:1 1 0;min-width:0}
.row.setuprow input{width:100%;box-sizing:border-box}
input.code8{font-family:ui-monospace,Menlo,Consolas,"Roboto Mono",monospace;letter-spacing:.04em;padding-left:8px;padding-right:8px;text-transform:uppercase}
.row.setuprow.stacked{flex-direction:column;align-items:stretch}
.warnline{color:#7a4b00;background:#fff4dc;border:1px solid #e0b860;border-radius:6px;padding:8px 10px;font-size:14px}
details.repair summary{cursor:pointer;padding:4px 0}
/* Roy 1:34 AM: the dock switch button (Today's Invoices / Appointment List) has left-aligned text; its spot is unchanged */
.dock #f-dock-switch{justify-content:flex-start;text-align:left}
/* Stage 3 part B (Roy): POS-style bar - title left, Back / Done, then Windows-style Minimize and Close at the far right */
header.bar h1{text-align:left;flex:1 1 auto;min-width:0}
header.bar .winbtns{flex:0 0 auto;display:flex;gap:4px;margin-left:2px}
header.bar button.win{min-height:34px;width:34px;min-width:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1;font-weight:700}
header.bar button.win .wmin{display:block;width:13px;height:0;border-bottom:3px solid currentColor;margin-top:10px}
header.bar button.winx:active,header.bar button.winx:hover{background:#c42b1c;color:#fff;border-color:#8e1b10}
@media (max-width:380px){header.bar h1{font-size:16px;letter-spacing:.01em}header.bar{gap:4px;padding:6px 6px}header.bar .hbtns button{padding:0 9px}header.bar button.win{width:30px;min-width:30px}}
.minicover{position:fixed;inset:0;z-index:100;background:rgba(10,20,40,.94);color:#f2f6fb;display:flex;align-items:center;justify-content:center;padding:24px}
.minicover .mc-in{max-width:420px;text-align:center}
.minicover h2{font-size:20px;margin:0 0 10px}
.minicover p{font-size:16px;line-height:1.4}
p.invno{margin:4px 2px 8px;font-weight:700;color:#14421f}
/* Roy 1:45 AM: shared form rows never cut a box or run off the card - boxes sized in em (they grow with the text), and a
   row that does not fit splits onto two lines (fitRows in app.js adds .split) */
.lf .n-state>input{width:2.9em;flex:0 0 2.9em}.lf .n-zip>input{width:4em;flex:0 0 4em}.lf .n-year>input{width:3.2em;flex:0 0 3.2em}
.lf .n-bay>input,.n-lb .n-bay>input{width:3.4em;flex:0 0 3.4em;min-width:0}   /* Bay 1-3 characters */
.lf .row.n-lb{flex-wrap:nowrap;max-width:100%}
.lf .row.n-lb>.fld{min-width:0}
.lf .row.one.split,.lf .row.n-lb.split{flex-wrap:wrap}
.lf .row.one.split>.fld,.lf .row.n-lb.split>.fld{flex:1 1 100% !important;border-top:1px solid #e3e7ec}
.lf .row.one.split>.fld:first-child,.lf .row.n-lb.split>.fld:first-child{border-top:0}
.lf .row.one.split>.fld+.fld>label,.lf .row.n-lb.split>.fld+.fld>label{flex:0 0 78px;width:78px;margin-left:0;white-space:normal}
.lf .row.one.split>.fld>input,.lf .row.n-lb.split>.fld>input,.lf .row.n-lb.split>.fld>select{flex:1 1 auto;width:auto;min-width:0}
/* Roy 1:55 AM - smallest fixes, no new rows: the Make / Model label may take two lines (its box gets the room); the
   Time Estimate list may narrow so Bay stays on the card */
.lf .row.one:not(.split)>.n-model>label{white-space:normal;max-width:3.6em;line-height:1.05}
.lf .row.n-lb>.fld:first-child{flex:1 1 auto;min-width:0}
.lf .row.n-lb>.fld:first-child>select{min-width:0;flex:1 1 auto;width:auto}
/* Visual review (Stage 3): 'Look Up Customer' ran off the right edge at 360 px (Stage 2 too) - the button may take two
   lines and the phone box takes the rest, so a 10-digit phone (555 010-9911) still shows whole */
.lf .fld>#f-lookup{white-space:normal;line-height:1.1;max-width:6.6em;flex:0 0 auto;text-align:center}
.lf .fld>#f-lookup~*,.lf .fld>input#f-phone{min-width:0}
/* the Minimize / X buttons match the height of Done / Back at any text size */
header.bar .winbtns{align-self:stretch;align-items:stretch}
header.bar button.win{min-height:34px;height:auto}
/* City / State / Zip that cannot show a city (narrow phone or large text): City keeps its own line and State + Zip
   stay together on ONE second line (one line more, not two); State lines up with the label column */
.lf .row.one.split:has(>.n-city)>.n-state,.lf .row.one.split:has(>.n-city)>.n-zip{flex:0 0 auto !important}
.lf .row.one.split:has(>.n-city)>.n-zip>label{flex:0 0 auto;width:auto;margin-left:10px}
.lf .row.one.split:has(>.n-city)>.n-state>input,.lf .row.one.split:has(>.n-city)>.n-zip>input{flex:0 0 auto !important}
.lf .row.one.split:has(>.n-city)>.n-state>input{width:2.9em}.lf .row.one.split:has(>.n-city)>.n-zip>input{width:6.4em}
/* Visual review: with large text the title was cut ('Appointment Fo...') - it may take two lines instead */
header.bar h1{white-space:normal;overflow-wrap:normal;line-height:1.1;text-overflow:clip}
/* Visual review: with large text an item number broke mid-word ('DEMORADI / O') - the number stays whole; only when it
   cannot share the line do the prices move under it (right-aligned) */
.line .top{flex-wrap:wrap}
.line .qi{word-break:normal;overflow-wrap:break-word}
.line .top>.right{margin-left:auto}
.lf .row.one.split:has(>.n-city)>.n-zip.own>label{flex:0 0 78px;width:78px;margin-left:0}
#app.pinhide{visibility:hidden}   /* Stage 3 (live test A2): the PIN lock hides the screen behind it */
/* Stage 3 (live test B5): with Large / Extra Large text the bottom buttons keep their normal size, so the dock stays one
   or two rows (it took up to 45% of a 360 px screen); the list above still gets the larger text */
/* (List-look build: Text Size no longer zooms the screen, so the dock needs no zoom back.) */
/* Stage 3 (live test B6): Only mine never runs off the right edge - it keeps one line and moves under Today / Estimates
   only when there is no room */
.schbar .row.tight{flex-wrap:wrap}
.schbar .row.tight>.check{white-space:nowrap;flex:0 0 auto}
/* Stage 3 (live test B10): Edit Invoice is as wide as the cards under it */
.actions.editbar button{max-width:none}
/* Stage 3 (live test B8): an item search result's description may take a second line instead of being cut
   (tapping the row still shows the full description) */
.irow .idesc{white-space:normal;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
/* Stage 3 visual review: when a long title takes two lines at Extra Large text, Back / Done match the Minimize / X height */
header.bar .hbtns{align-self:stretch;align-items:stretch}
/* Stage 3 visual review: the Settings lists never run past their card on a narrow phone at Extra Large text */
#f-us-pin,#f-us-size,#f-us-type{max-width:100%;min-width:0}
/* Stage 3 (live test B4, Roy 1:55 rule - no new rows): First and Last share their row with EQUAL boxes (First's box was
   about half of Last's because of its label column), so a normal first name (Jennifer, Christopher) shows whole */
.lf .row.one:not(.split):has(>.n-half>#f-first_name)>.n-half{flex:1 1 auto;min-width:0}
.lf .row.one:not(.split):has(>.n-half>#f-first_name)>.n-half>input{width:0;flex:1 1 auto;min-width:0}
/* B4: Make / Model gets the room a normal vehicle needs (Ford F-150 XLT): the Year box is 4 digits wide, no wider */
.lf .n-year>input{width:3em;flex:0 0 3em;padding-left:4px;padding-right:4px}
.lf .row.one:not(.split)>.n-model>label{max-width:3.1em}
/* Stage 3 visual review: the invoice number line sits on the dark page (not on a card) - light text like the other page lines */
main>p.invno{color:#e6f4ea}

/* ---- List look (Roy OK'd the mockup 12:10 PM 2026-10-27; Mobile_Mockup_2026-10-27_1155.html v9) ----
   Appointments and Invoices: a taller bar (big title, metal gear / Minimize / X), the date row, Today / Estimates / tech picker,
   the list, and ONE row of three two-line dock buttons.  Only the list scrolls.  Cards are the Stage 3 cards, unchanged. */
header.bar.listhdr{min-height:58px;padding:0 8px 0 13px;gap:6px}
header.bar.listhdr h1{font-size:28px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:clip;line-height:1.1}
header.bar.listhdr .winbtns,header.bar.listhdr .gearbtns{display:flex;gap:6px;align-self:center;align-items:center;margin:0}
header.bar.listhdr .gearbtns{flex:0 0 auto}
header.bar.listhdr button.win{width:42px;min-width:42px;height:42px;min-height:42px;font-size:27px;border-radius:7px}
header.bar.listhdr button.win .wmin{width:17px;border-bottom-width:3px;margin-top:0}
header.bar.listhdr button.gear svg{width:28px;height:28px;margin:0}
.listbar{padding:0}
.topbar.listtop .subin{padding:0 6px}
.listbar .daynav{height:62px;margin:0;padding-top:4px;gap:6px}
.listbar .daynav button.arrow{flex:0 0 96px;min-width:96px;height:54px;min-height:54px;font-size:31px;font-weight:700;padding:0}
.listbar .daynav button.arrow:disabled{opacity:.45}
.listbar .daynav .day{line-height:1.08}
.listbar .daynav .dname,.listbar .daynav .ddate{font-size:22px;font-weight:800;letter-spacing:0}
.listbar .row.r2{height:46px;padding-bottom:4px;margin:0;gap:6px;flex-wrap:nowrap;align-items:center}
.listbar .row.r2>button{height:40px;min-height:40px;font-size:20px;font-weight:700;padding:0 8px;white-space:nowrap;min-width:0}
.listbar .row.r2>#f-today{flex:1 1 auto}
.listbar .row.r2>#f-estimates{flex:0 0 auto;padding:0 6px}
.listbar .row.r2>#f-estimates svg{margin-right:5px}
button.pickbtn{display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
button.pickbtn .pk{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
button.pickbtn .car{font-size:14px;margin-left:4px;flex:0 0 auto}
button.pickbtn.filt{color:#c0180c}   /* Roy 12:03 PM: one tech picked - its ID in RED; List All stays the normal color */
.pickdim{position:fixed;left:0;right:0;bottom:0;z-index:20;background:rgba(0,0,0,.35)}
.pickmenu{position:fixed;z-index:21;min-width:176px;border:1px solid #4a5058;border-radius:9px;overflow:hidden;background:#2b2f33;
  box-shadow:0 6px 16px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.15)}
.pickmenu button.pickrow{display:flex;width:100%;height:52px;min-height:52px;align-items:center;gap:10px;padding:0 16px 0 14px;margin:0;border:0;border-radius:0;
  border-bottom:1px solid #7d848b;font-weight:700;font-size:20px;color:#1b2330;white-space:nowrap;background:var(--chrome);text-shadow:0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:left}
.pickmenu button.pickrow:last-child{border-bottom:0}
.pickmenu button.pickrow .ck{width:18px;flex:0 0 18px;color:#1d4f91;font-size:20px}
.pickmenu button.pickrow.on{background:linear-gradient(180deg,#e9f1fb 0%,#c9d9ee 45%,#b2c7e3 55%,#dbe6f4 100%);color:#123a6b}
/* the tech groups: a thin black line, then a small white tab on the group's first card ('Tech DMH' / 'No Tech') */
ul.list li.grp{margin:12px 0 0}
ul.list li.grp:first-child{margin-top:0}
ul.list li.grp .sep{height:2px;background:#000;margin:0 -10px;box-shadow:0 1px 0 rgba(255,255,255,.15)}
ul.list li.grp h3.grp-h.tab{display:inline-block;margin:6px 0 0;padding:2px 11px 1px;border:0;border-radius:7px 7px 0 0;background:#fff;color:#1d4f91;
  font-size:15px;font-weight:700;line-height:1.35;white-space:nowrap}
ul.list li.grp+li>button.sum{border-top-left-radius:0}
/* the dock: one row of equal buttons, words centred, the icon just left of them (placed by dockFit in app.js) */
.dock.listdock{padding:6px 6px calc(var(--frame) + 3px + env(safe-area-inset-bottom)) 6px}
.dock.listdock .actions.dockbtns{display:flex;flex-wrap:nowrap;gap:6px;margin:0}
.dock.listdock .actions.dockbtns>button{position:relative;flex:1 1 0;min-width:0;max-width:none;height:58px;min-height:58px;padding:0 4px;
  display:flex;align-items:center;justify-content:center;text-align:center;font-size:19px;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;border-radius:9px}
.dock.listdock .actions.dockbtns>button>svg{position:absolute;top:50%;transform:translateY(-50%);margin:0}
.dock.listdock .actions.dockbtns>button .lbl2{display:block;text-align:center}
.dock.listdock .actions.dockbtns>button .lbl2>span{display:block}
.dock.listdock .actions.dockbtns>button.dsm{font-size:16px}
.dock.listdock .actions.dockbtns>button.dnoi>svg{display:none}
.dock.listdock #f-dock-switch{justify-content:center;text-align:center}
.dock.listdock button.dswitch{color:#123f1c;border:1px solid #2c7a41;background:var(--greentint);text-shadow:0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff,0 2px 3px rgba(0,0,0,.35)}
.dock.listdock button.primary svg rect,.dock.listdock button.primary svg path{filter:brightness(1.5)}
/* a narrow phone, or Android's large text (it zooms the page): the bar and rows shrink a little - still one line each */
@media (max-width:380px){header.bar.listhdr h1{font-size:25px;letter-spacing:.01em}header.bar.listhdr{padding:0 6px 0 10px;gap:5px}
  header.bar.listhdr .winbtns,header.bar.listhdr .gearbtns{gap:5px}}
@media (max-width:330px){header.bar.listhdr h1{font-size:21px}header.bar.listhdr button.win{width:36px;min-width:36px;height:36px;min-height:36px;font-size:23px}
  header.bar.listhdr button.gear svg{width:23px;height:23px}
  .listbar .daynav button.arrow{flex-basis:72px;min-width:72px}.listbar .daynav .dname,.listbar .daynav .ddate{font-size:19px}
  .listbar .row.r2>button{font-size:17px;padding:0 6px}.dock.listdock .actions.dockbtns>button{font-size:17px}}
/* Settings: who is signed in (moved off the Schedule) */
.settings p.signedin{margin:0 0 8px;font-weight:600;color:#1b1f24}
/* Text Size (Roy 4:24 AM): field text and list rows only */
#app main input:not([type=checkbox]):not([type=radio]),#app main select,#app main textarea,#overlay input:not([type=checkbox]),#overlay select,#overlay textarea{font-size:calc(16px * var(--tsz))}
.run{font-size:calc(15px * var(--tsz))}
.run .m{font-size:calc(14px * var(--tsz))}
.run .badge{font-size:calc(11px * var(--tsz))}
.run .stat .blbl{font-size:calc(12px * var(--tsz))}
.prow{font-size:calc(16px * var(--tsz))}.prow .pc{font-size:calc(14px * var(--tsz))}
.listbar .row.r2.r2tight>button{font-size:16px;padding:0 5px}
.listbar .row.r2.r2tight>#f-estimates svg{display:none}
.listbar .row.r2.r2tight>button.pickbtn .car{font-size:12px;margin-left:3px}
header.bar:not(.listhdr) button.gear svg{width:22px;height:22px;margin:0}
header.bar:not(.listhdr) .gearbtns{display:flex;flex:0 0 auto;align-self:stretch;align-items:stretch}
/* list look: Android's 130% text zooms the page (a 360 px phone lays out at ~277 px) - the fixed bars get a little shorter there so
   the list keeps most of the screen (still one line each, nothing cut) */
@media (max-width:330px){header.bar.listhdr{min-height:48px}
  .listbar .daynav{height:52px;padding-top:3px}.listbar .daynav button.arrow{height:46px;min-height:46px;font-size:26px}
  .listbar .row.r2{height:42px}.listbar .row.r2>button{height:36px;min-height:36px}
  .dock.listdock{padding-top:5px}.dock.listdock .actions.dockbtns>button{height:50px;min-height:50px}}
/* Roy 4:24 AM 10-27 (live Stage 3 notes): other screens' header shorter (~40 px), one-line buttons, square minimize / X.
   The two lists keep their own taller bar (List look, OK'd 12:10 PM). */
header.bar:not(.listhdr){min-height:40px;padding:3px 8px}
header.bar:not(.listhdr) button{min-height:32px;height:32px;line-height:1;white-space:nowrap}
header.bar:not(.listhdr) button.win{width:32px;min-width:32px;height:32px;min-height:32px}
header.bar:not(.listhdr) button.win.gear svg{width:20px;height:20px}
@media (max-width:380px){header.bar:not(.listhdr){padding:3px 6px}header.bar:not(.listhdr) button.win{width:32px;min-width:32px}}
/* Roy 4:24 AM: shorter dock buttons and top-bar buttons on the other list screens (Estimates, Personal list) */
.dock:not(.listdock) .actions button{min-height:40px;padding:3px 6px}
.topbar:not(.listtop) .subbar button,.topbar:not(.listtop) .daynav button.arrow{min-height:34px;height:34px;line-height:1}
header.bar:not(.listhdr) h1{line-height:1.2}
/* 277 px (360 phone at Android 130%): a two-line title ("Appointment Form") keeps the other screens' header <= 44 px */
@media (max-width:330px){header.bar:not(.listhdr) h1{font-size:14px;line-height:1.05;letter-spacing:0}}
/* Next build A (Roy Q480): the day's Total Time Estimate at the bottom of the Appointment List */
.daytotal.listtotal{margin:10px 0 4px;font-size:15px}
/* Next build G (Roy 4:15 PM): date boxes show MM/DD/YY themselves; the native date input underneath (text + icon invisible)
   still takes the tap and opens the phone's date picker */
.dwrap{position:relative;display:flex;flex:1 1 auto;min-width:0}
.fld>.dwrap{flex:1 1 auto;min-width:0}
.row.stack>.fld>.dwrap{flex:0 0 auto}
.dwrap>input[type=date]{flex:1 1 auto;width:100%;min-width:0;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent}
.dwrap>input[type=date]::-webkit-datetime-edit{opacity:0}
.dwrap>input[type=date]::-webkit-calendar-picker-indicator{position:absolute;left:0;top:0;right:0;bottom:0;width:auto;height:auto;margin:0;padding:0;opacity:0;cursor:pointer}
.dwrap>.dshow{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;padding:0 6px;pointer-events:none;font-size:16px;color:#111;white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums}
.dwrap>.dshow.ph{color:#8a929c}
.dwrap>.dshow.dis{color:#555}
.lf .fld>.dwrap>input{min-height:27px;height:27px;padding:1px 4px;font-size:16px;border:1px solid #b9c0c8;border-top-color:#8f98a3;border-radius:2px;background-color:#fff;box-shadow:inset 0 1px 1px rgba(0,0,0,.08)}
.lf .fld>.dwrap>input:disabled{background-color:#eef1f4}
.lf .fld>.dwrap>.dshow{padding:0 5px}
/* ---------------- nb2 (Roy GO 2026-10-27 9:52 PM) ---------------- */
/* A: tech tabs 'BOX  Hrs 8.0 | All 16.0' (mockup TechTabs3 8:26 PM, CSS as OK'd) and the job hours at the right of a row */
ul.list li.grp h3.grp-h.tab.hrs{display:inline-flex;align-items:baseline;gap:0;padding:2px 12px 1px 11px}
.tab.hrs .tid{min-width:62px;padding-right:10px}
.tab.hrs .thrs{min-width:58px;font-size:17px;font-weight:800;color:#1b1f24;padding-left:12px;border-left:1.5px solid #c9d1dc;line-height:1.2}
.run .jh{margin-left:auto;padding-left:8px;font-size:13px;font-weight:600;color:#5f6b7a;white-space:nowrap}
.run .jh.off{color:#9aa4b2}
.tab.hrs .tid{min-width:68px;box-sizing:border-box}.tab.hrs .thrs{white-space:nowrap;padding-right:10px}.tab.hrs .tall{min-width:72px;padding-right:0}.tab.hrs .thrs:not(.tall){border-left:0;padding-left:0}.tab.hrs .thrs{font-size:15px;font-weight:700;line-height:1.35}
/* C: a calendar icon at the right of every date box (the date text stays fully visible; a tap anywhere opens the picker) */
.dwrap>.dcal{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none}
.dwrap>.dcal svg{width:18px;height:16px;margin:0}
.dwrap>.dshow{padding-right:28px}
.dwrap>input[type=date]{padding-right:28px}
/* F: Estimates in the Appointment List look - purple (accent #6A3FA0, header #4A2873, tint #E6DDF3; mockup 8:45 PM) */
:root{--purplemetal:linear-gradient(180deg,#9a76c9 0%,#6A3FA0 45%,#5a338c 55%,#7a52b0 100%)}
header.bar.est{border-color:#2a143f;color:#fff;background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 2px),linear-gradient(180deg,#6A3FA0,#4A2873)}
header.bar.est button{border-color:#2a143f}
ul.list li.grp h3.grp-h.tab.est{color:#6A3FA0}
.badge.est,.run .badge.est{color:#6A3FA0;border-color:#6A3FA0;background:transparent}
main>p.estnote{margin:2px 2px 10px;font-size:14px;color:#E6DDF3}
button.estbtn,button.primary.estbtn,button.primary.estbtn:hover,button.primary.estbtn:disabled{color:#fff;border:1px solid #2a143f;background:var(--purplemetal);text-shadow:0 -1px 0 #2a143f;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 3px rgba(0,0,0,.35)}
button.primary.estbtn:active{background:linear-gradient(180deg,#4A2873,#6A3FA0)}
.dock .actions.dockbtns>button.estbtn{flex:1 1 auto;min-height:48px;font-size:19px;font-weight:700}
header.bar.listhdr.est .hbtns button{height:42px;min-height:42px;padding:0 10px}
/* I: the maroon Settings bar and card titles (mockup 9:31 PM; header #8E2443 -> #5E1530, border #3a0c1d, titles #5E1530) */
header.bar.set{border-color:#3a0c1d;color:#fbf2f5;background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 2px),linear-gradient(180deg,#8E2443,#5E1530)}
header.bar.set button{border-color:#3a0c1d}
section.card.settings h2{color:#5E1530}
#f-msgcard textarea{display:block;width:100%;box-sizing:border-box;min-height:64px;font-size:16px;resize:vertical}
#f-taxcard .taxrow{align-items:center;gap:8px}
#f-taxcard .taxrow>label{font-size:14px;font-weight:600;color:#3b4552}
#f-taxcard .taxrow>#f-taxrate{flex:0 0 84px;width:84px;font-size:16px}
/* M: his own Full Location Control, ticked and not changeable */
.checks label.check.off{color:#5b6573}
/* N: the Personal note right of the Schedule Type box; below it when it doesn't fit */
.settings .fld.typefld{flex-wrap:wrap;row-gap:2px;padding:3px 0}
.settings .fld.typefld>.typenote{flex:1 1 140px;min-width:0;font-size:12px;line-height:1.3;color:#5b6573;font-weight:400}

/* Invoice List rows (Roy 10-28 12:41 AM): line 1 invoice + name + pay status; line 2 phone, vehicle, and '5 items 214.99' right-aligned in the corner */
.run .brk{flex-basis:100%;height:0}
.run .rt{margin-left:auto;padding-left:8px;white-space:nowrap;font-weight:600;color:#1b1f24}

/* ======== Invoice form build (Roy 2026-10-28 notes A-H, answers Q488-Q495) ======== */
/* A / B: the invoice number in the white pay card, upper right, black; the payment below it; no row above the cards */
.paycard .payacts{margin:6px 0 0;margin-left:0;justify-content:flex-start}
main>.paycard:first-child,main>.msg+.paycard{margin-top:0}
/* C: First smaller (about 9 letters), Last larger; split (narrow / large text): each on its own line */
.lf .row.one:not(.split)>.n-first{flex:0 1 auto;min-width:0}
.lf .row.one:not(.split)>.n-first>input{width:5.2em;flex:0 1 5.2em;min-width:0}
.lf .row.one:not(.split)>.n-last{flex:1 1 auto;min-width:0}
.lf .row.one:not(.split)>.n-last>input{width:0;flex:1 1 auto;min-width:0}
/* C: a bigger Year box (width only; 4 characters as before); Make / Model label on ONE line, its box takes the rest */
.lf .n-year>input{width:4.8em;flex:0 0 4.8em}
.lf .row.one:not(.split)>.n-model>label,.lf .row.one.split>.fld.n-model>label{white-space:nowrap;max-width:none;line-height:1.1;font-size:12px;overflow-wrap:normal}
.lf .row.one.split>.n-year>input{flex:0 0 4.8em;width:4.8em}   /* own line (narrow phone): the Year box keeps its size */
.lf .row.one:not(.split)>.n-model>input{min-width:0}
/* D: the coded store cost, tiny, lower left under the letter counter */
.line .cntbox{display:flex;flex-direction:column;align-items:flex-start;margin-right:auto;line-height:1.15}
.line .cntbox .count{margin-right:0}
.line .ccode{font-size:.7em;color:#8a929c;letter-spacing:.04em;font-family:ui-monospace,Menlo,Consolas,monospace}
/* F: Close | Qty [1] | Add Item in the item lookup detail */
.idetail .dqrow{align-items:center;gap:6px 8px}
.idetail .dqrow label.sm{font-size:14px;font-weight:700;color:#3b4552;margin:0 0 0 4px}
.idetail .dqrow input#f-dqty{width:3.4em;flex:0 0 3.4em;min-height:40px;font-size:17px;text-align:center;padding:0 4px;border:1px solid #8f98a3;border-radius:4px}
.idetail .dqmsg{margin:6px 0 0}
/* G: the fixed Add Typed-In Item button right under the item search box */
.actions.typedbar{margin:6px 0 2px;justify-content:flex-start}
.actions.typedbar>button{flex:0 0 auto;width:auto;max-width:none;min-height:36px;padding:0 14px}
/* H: the Taxable choice still to make on a typed-in line */
.line select.need{outline:3px solid #d93025;outline-offset:1px}

/* ======== Stage 4 + fix batch (Roy 2026-10-28) ======== */
/* C: the invoice number on the payment row, at the right (the separate row above it is gone) */
.paycard .payrow .invno{margin-left:auto;font-weight:700;color:#000;font-size:15px;line-height:1.2;white-space:nowrap}
/* 360 px: the 'Taxable' label no longer touches its select box */
.inl .f>label.sm{margin-right:3px}
@media (max-width:380px){.inl .f{gap:5px}.inl .f>label.sm{margin-right:2px}}
/* D: the held typed-in line's message */
.line .msg.lmsg{margin:4px 0 2px;padding:6px 8px;font-size:15px}
/* Stage 4: the renew warning on the lists, the renew screen */
#f-licwarn{margin:0 0 8px}
#f-renew h2{margin-top:0}

/* Customer fold (Roy OK 11/01 6:03 PM) - the same summary + arrow as the Wholesale / Job times folding cards (no new colors) */
.custfold summary{font-weight:700;color:#1d4f91;cursor:pointer;min-height:40px;display:flex;align-items:center;list-style:none}
.custfold summary::-webkit-details-marker{display:none}
.custfold summary::before{content:'\25B8';width:1em;flex:0 0 1em;align-self:flex-start;line-height:22px}
.custfold[open] summary::before{content:'\25BE'}
.custfold[open] summary::before{align-self:center}
.custfold[open] .cf-sum,.custfold:not([open]) .cf-h{display:none}
.custfold:not([open]) + .vehcard{display:none}
.custfold .cf-sum{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;text-transform:none;letter-spacing:0;font-size:16px;line-height:22px}
.custfold .cf-l1{display:flex;align-items:baseline;gap:12px;min-width:0}
.custfold .cf-name{color:#1b1f24;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.custfold .cf-tel{color:#1d4f91;font-weight:700;white-space:nowrap;margin-left:auto}
.custfold .cf-l2{color:#1b1f24;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Installer Comments grow with their text (JS grow(): height = scrollHeight, max 480px); no inner scroll bar */
textarea#f-comments.grow{min-height:2.6em;overflow:hidden;resize:none;box-sizing:border-box}
