/* 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}
.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:0 0 8.5em}
.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}}
.dock .actions{margin:0;flex-wrap:nowrap}
.dock .actions button{flex:1 1 0;min-width:0;max-width:340px;white-space:normal;line-height:1.15;padding:4px 8px;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:#7a8492;font-weight:400}
.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%}
