/* Moving Parts Shop (v7.4), white style */
.shop-page{background:#fff;color:#171a20;font-family:inherit}
.shop-page .skip{position:absolute;left:-999px}.shop-page .skip:focus{left:12px;top:12px;z-index:99;background:#fff;padding:8px 12px;border-radius:8px}
.shop-bar{max-width:1120px;margin:0 auto;padding:8px 20px 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;justify-content:space-between}
.shop-who{margin:0;color:#4a5363;font-size:.92rem;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shop-who select{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:0 10px;font:inherit;background:#fff}
.shop-nav{display:flex;gap:4px;flex-wrap:wrap}
.shop-nav a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:10px;color:#2b3445;text-decoration:none;font-weight:600}
.shop-nav a[aria-current],.shop-nav a.is-on{background:#eef3ff;color:#1d4ed8}
.shop-badge{background:#c62828;color:#fff;border-radius:999px;font-size:.75rem;padding:1px 7px}
.shop-main{max-width:1120px;margin:0 auto;padding:16px 20px 64px;outline:none}
.shop-main h1{font-size:clamp(1.5rem,3vw,2rem);margin:.2em 0 .4em;letter-spacing:-.01em}
.shop-main h2{font-size:1.15rem;margin:1.2em 0 .5em}
.shop-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.shop-head-act,.shop-actions,.shop-act,.shop-rowact,.shop-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.shop-sub,.shop-muted,.shop-small{color:#4f5868}.shop-small{font-size:.88rem}
.shop-btn,.shop-main button:not(.shop-link):not(.shop-x):not(.mp-cal button){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #c9d0dc;background:#fff;color:#171a20;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.shop-btn.primary,.shop-main button.primary,.shop-big{background:#2459db!important;border-color:#2459db!important;color:#fff!important}
.shop-btn.danger,.shop-main button.danger{color:#b42318;border-color:#e7b4ae}
.shop-big{min-height:56px!important;font-size:1.08rem;width:100%}
.shop-link{background:none;border:0;color:#1d4ed8;font:inherit;font-weight:600;cursor:pointer;min-height:44px;padding:0 4px;text-decoration:underline;text-underline-offset:3px}
.shop-x{width:44px;height:44px;border:0;background:none;font-size:1.3rem;cursor:pointer;color:#5b6474;border-radius:8px}
.shop-card,.shop-sec,.shop-job,.shop-doc,.shop-review,.shop-approval,.shop-work{background:#fff;border:1px solid #e3e7ef;border-radius:16px;padding:16px;margin:0 0 14px}
.shop-cards3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.shop-stat{display:block;border:1px solid #e3e7ef;border-radius:14px;padding:14px;color:inherit;text-decoration:none}
.shop-stat small{color:#4f5868;display:block}.shop-stat b{font-size:1.4rem}
.shop-stat.bad b{color:#b42318}.shop-stat.good b{color:#17703f}
.shop-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.shop-list a,.shop-list .shop-job{display:block;color:inherit;text-decoration:none}
.shop-grid2,.shop-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shop-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shop-form{display:grid;gap:12px}
.shop-main label{display:grid;gap:4px;font-weight:600;font-size:.94rem}
.shop-main input:not([type=checkbox]):not([type=radio]):not([type=file]),.shop-main select,.shop-main textarea{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:8px 10px;font:inherit;font-weight:400;background:#fff;color:#171a20;box-sizing:border-box;width:100%}
.shop-main input.xs{width:5.5em}.shop-main input.sm{width:7.5em}
.shop-main input:focus-visible,.shop-main select:focus-visible,.shop-main textarea:focus-visible,.shop-main button:focus-visible,.shop-main a:focus-visible,.shop-nav a:focus-visible{outline:3px solid #2459db;outline-offset:2px}
.shop-chk{display:inline-flex!important;grid-auto-flow:column;align-items:center;gap:6px;font-weight:400!important}
.shop-chk input{width:20px;height:20px}
.shop-tablewrap{position:relative;overflow-x:auto}
.shop-table,.shop-lines,.shop-pays{width:100%;border-collapse:collapse}
.shop-table th,.shop-table td,.shop-lines th,.shop-lines td,.shop-pays th,.shop-pays td{padding:8px;border-bottom:1px solid #eef0f4;text-align:left;vertical-align:top}
.shop-table th,.shop-lines th{font-size:.82rem;color:#4f5868;text-transform:uppercase;letter-spacing:.03em}
.n{text-align:right!important;white-space:nowrap}
.shop-lsec-h th{background:#f7f9fc;color:#2b3445;text-transform:none;font-size:.9rem}
.is-declined td{color:#8a93a3;text-decoration:line-through}
.shop-sub2{font-size:.86rem;color:#4f5868;margin-top:4px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.shop-totals{margin:12px 0 0 auto;min-width:280px;border-collapse:collapse}
.shop-totals td{padding:6px 8px;text-align:right}.shop-totals td:first-child{text-align:left;color:#4a5363}
.shop-totals .tot td{font-weight:700;font-size:1.1rem;border-top:2px solid #171a20}
.shop-totals .bal td{font-weight:700;color:#b42318}
.shop-totals .bal[data-balance-state="settled"] td{color:#17703f}
.shop-totals .bal[data-balance-state="credit"] td{color:#2459db}
.shop-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:600;background:#eef1f6;color:#2b3445;white-space:nowrap}
.st-draft{background:#eef1f6}.st-sent,.st-viewed,.st-assigned,.st-in_progress{background:#e7efff;color:#1d4ed8}.st-paid,.st-approved,.st-done,.st-completed{background:#e5f5ec;color:#17703f}
.st-partial,.st-ready_for_review,.st-pending{background:#fff4e0;color:#8a5200}.st-overdue,.st-declined,.st-void{background:#fdecec;color:#a31515}
.shop-tag{display:inline-block;border:1px solid #d9dee8;border-radius:999px;padding:1px 8px;font-size:.78rem;margin-right:4px}
.shop-plate{font-family:ui-monospace,Menlo,monospace;background:#f2f5fa;border-radius:6px;padding:1px 6px}
.shop-warn{background:#fff7e6;border:1px solid #f0d49a;border-radius:12px;padding:10px 12px}
.shop-ok{background:#ecf8f1;border:1px solid #b9e3c9;border-radius:12px;padding:10px 12px}
.shop-empty{text-align:center;padding:40px 16px;color:#4f5868}
.shop-search{display:flex;gap:8px;margin:8px 0}
.shop-filter{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.shop-clock{display:grid;gap:8px;margin:12px 0}
.shop-clock [data-hours]{display:block;margin-top:4px;line-height:1.4;color:#4f5868}
.shop-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.shop-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid #e3e7ef}
.shop-photo-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shop-3c{display:grid;gap:10px}
.shop-3c>div{display:grid;gap:4px}
.shop-3c small{font-weight:700;color:#4f5868}
.shop-log,.shop-tl{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.shop-tl-d{color:#4f5868;font-size:.85rem}
.shop-doc-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.shop-biz{display:flex;gap:12px;align-items:flex-start}.shop-logo{max-height:56px;max-width:140px}
.shop-docno{font-size:1.4rem;font-weight:700}
.shop-doc-meta,.shop-doc-to{font-size:.94rem}
.shop-auth{border-top:1px dashed #c9d0dc;margin-top:14px;padding-top:10px;font-size:.92rem}
.shop-sig,.shop-sign{border-bottom:1px solid #171a20;min-height:36px;margin-top:20px}
.shop-steps{list-style:none;padding:0;display:grid;gap:8px}
.shop-steps li{display:flex;gap:10px;align-items:center;border:1px solid #e3e7ef;border-radius:12px;padding:10px 12px}
.shop-map{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shop-owe td:last-child{white-space:nowrap}
.shop-toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,140%);background:#171a20;color:#fff;border-radius:12px;padding:12px 18px;opacity:0;transition:.2s;z-index:100;max-width:calc(100vw - 24px)}
.shop-toast.show{transform:translate(-50%,0);opacity:1}.shop-toast.bad{background:#a31515}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
dialog{border:0;border-radius:16px;padding:20px;max-width:520px;width:calc(100vw - 24px);box-shadow:0 20px 50px rgba(0,0,0,.2)}
dialog::backdrop{background:rgba(20,26,38,.4)}
dialog form{display:grid;gap:12px}
dialog label{display:grid;gap:4px;font-weight:600}
dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:8px 10px;font:inherit;box-sizing:border-box;width:100%}
dialog button{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #c9d0dc;background:#fff;font:inherit;font-weight:600;cursor:pointer}
dialog button.primary{background:#2459db;border-color:#2459db;color:#fff}
.shop-dlg{box-sizing:border-box;max-width:min(520px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.shop-dlg label,.shop-dlg input,.shop-dlg select,.shop-dlg textarea{min-width:0;max-width:100%}
@media(max-width:600px){.shop-dlg .shop-row2,.shop-dlg .shop-row3{grid-template-columns:minmax(0,1fr)}}
.shop-noprice .shop-money2{display:none}
@media screen and (max-width:760px){
  .shop-main{padding:12px 14px 96px}
  .shop-cards3,.shop-grid2,.shop-row2,.shop-row3,.shop-map{grid-template-columns:1fr}
  .shop-who select{max-width:100%}
  .shop-nav{overflow-x:auto;flex-wrap:nowrap;width:100%}
  .shop-nav a{white-space:nowrap}
  /* tech's job clock stays in the thumb zone */
  .shop-clock{position:sticky;bottom:0;z-index:20;background:#fff;padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin:0 -14px;padding-left:14px;padding-right:14px;border-top:1px solid #e3e7ef;box-shadow:0 -6px 18px rgba(16,24,40,.08)}
}
@page{margin:10mm 10mm;@bottom-right{content:"Page " counter(page) " of " counter(pages);font-size:9pt}}
@media print{
  .no-print,.hm-header,.hm-footer,.shop-bar,.shop-toast,.mp-logo-menu{display:none!important}
  body{font-size:9pt;line-height:1.3}
  .shop-main h1{font-size:14pt;margin:0 0 4pt}.shop-main h2{font-size:10.5pt;margin:6pt 0 3pt}
  .shop-doc-head{margin-bottom:4pt;gap:6pt}.shop-logo{max-height:36px}.shop-docno{font-size:13pt}
  .shop-auth{margin-top:6pt;padding-top:4pt;font-size:8pt}.shop-sig,.shop-sign{margin-top:8pt;min-height:20px}
  .shop-lsec-h th{padding:2px 5px}.shop-totals td{padding:2px 6px}
  .shop-pays{font-size:8pt}.shop-tl,.shop-log{display:none}
  .shop-sec,.shop-review,.shop-approval{border:0;padding:0;margin:0 0 6pt}
  .shop-main{padding:0;max-width:none}
  .shop-doc,.shop-card{border:0;padding:0;margin:0}
  .shop-lines td,.shop-lines th,.shop-pays td{padding:3px 5px}
  .shop-totals{min-width:220px}
  a{color:inherit;text-decoration:none}
}
/* ---- v7.6 job flow: stepper, sectioned cards, tighter spacing ---- */
.flow-steps{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.flow-steps li>a,.flow-steps li>.flow-s{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 10px;border:1px solid #e3e7ef;border-radius:12px;color:#2b3445;text-decoration:none;font-weight:600;font-size:.92rem;background:#fff}
.flow-steps small{display:block;font-weight:500;color:#5b6474;font-size:.75rem}
.flow-steps li.is-on>*{border-color:#2459db;background:#eef3ff;color:#1d4ed8}
.flow-steps li.is-done .flow-ic{background:#e7f6ec;color:#17703f}
.flow-ic{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f2f5fb;color:#2459db;flex:0 0 32px}
.flow-ic svg{width:20px;height:20px}
.flow-hero{display:flex;align-items:center;gap:14px;margin:0 0 10px}
.flow-hero img{width:96px;height:72px;object-fit:cover;border-radius:12px;border:1px solid #e3e7ef}
.flow-hero h1{margin:0!important}
.flow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.flow-card{background:#fff;border:1px solid #e3e7ef;border-radius:14px;padding:12px 14px;margin:0 0 12px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.flow-grid .flow-card{margin:0}
.flow-card h2{display:flex;align-items:center;gap:10px;margin:0 0 10px!important;font-size:1.05rem!important}
.flow-card label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.9rem;margin:0 0 8px}
.flow-card input,.flow-card select,.flow-card textarea{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:6px 10px;font:inherit;background:#fff;box-sizing:border-box;width:100%}
.flow-wide{margin-top:12px}
.flow-lines{list-style:none;padding:0;margin:0 0 8px;display:grid;gap:6px}
.flow-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:8px;align-items:center;padding:6px 8px;border:1px solid #eef0f4;border-radius:10px}
.flow-line[data-type=part]{grid-template-columns:auto minmax(0,1fr) 110px auto auto auto}
.shop-noprice .flow-line{grid-template-columns:auto minmax(0,1fr) auto auto}.shop-noprice .flow-line[data-type=part]{grid-template-columns:auto minmax(0,1fr) 110px auto auto}
.flow-line .flow-mini{flex-direction:row;align-items:center;gap:4px;margin:0;font-weight:500;font-size:.82rem;white-space:nowrap}
.flow-line .flow-mini input{width:76px}
.flow-tag{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#2459db;background:#eef3ff;border-radius:6px;padding:2px 6px}
.flow-line[data-type=part] .flow-tag{color:#7a4b00;background:#fff4dc}
.flow-totals{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:flex-end;border-top:1px solid #eef0f4;padding-top:8px;margin-top:6px;color:#4f5868}
.flow-totals b{color:#171a20}.flow-totals .tot b{font-size:1.2rem}
.flow-bar{position:sticky;bottom:0;display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.96);border-top:1px solid #e3e7ef;padding:10px 0;margin-top:4px;z-index:5}
.flow-bar>span{flex:1}
.flow-parts{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.flow-parts li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border:1px solid #eef0f4;border-radius:10px;padding:8px}
.flow-parts small{display:block;color:#5b6474}
.flow-seg{display:inline-flex;border:1px solid #c9d0dc;border-radius:10px;overflow:hidden}
.flow-seg button{border:0!important;border-radius:0!important;min-height:44px;padding:0 12px!important;background:#fff;font-weight:600}
.flow-seg button[aria-pressed=true]{background:#2459db!important;color:#fff!important}
.flow-addpart{display:flex;gap:6px}.flow-addpart input{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:0 10px;font:inherit;flex:1;min-width:0}.flow-addpart .sm{max-width:110px}
.flow-h3{font-size:.9rem;margin:10px 0 6px;color:#4f5868}
.flow-day{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:.92rem}.flow-day time{font-weight:700;min-width:70px;display:inline-block}
.flow-qc.is-wait{background:#fbfcfe}
.flow-ok{color:#17703f;font-weight:700}.flow-wait{color:#7a5a1f;font-weight:700}
.flow-checks{list-style:none;padding:0;margin:0 0 8px}
.shop-main{padding-top:10px}.shop-main h2{margin:.8em 0 .4em}
.shop-card,.shop-sec,.shop-job,.shop-doc,.shop-review,.shop-approval,.shop-work{padding:12px 14px;margin-bottom:10px;border-radius:14px}
.shop-head{margin-bottom:8px}
@media (max-width:720px){
 .flow-steps{gap:4px}.flow-steps li>a,.flow-steps li>.flow-s{flex-direction:column;gap:2px;padding:6px 4px;font-size:.72rem;text-align:center;min-height:64px}.flow-steps small{display:none}
 .flow-grid{grid-template-columns:1fr}
 .flow-line,.flow-line[data-type=part],.shop-noprice .flow-line,.shop-noprice .flow-line[data-type=part]{grid-template-columns:auto minmax(0,1fr) auto}
 .flow-line>input[data-f=description]{grid-column:2/4}.flow-line .flow-mini input{width:64px}
 .flow-hero img{width:72px;height:54px}
 .flow-bar{flex-wrap:wrap}.flow-bar .shop-btn{flex:1 1 auto}
 .shop-main{padding-left:12px;padding-right:12px}
}
.flow-bad{color:#b42318;font-weight:700}
.flow-hist{margin-top:8px;font-size:.9rem}.flow-hist ul{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:4px}.flow-hist li{padding:6px 8px;border-radius:8px;background:#f7f8fb}.flow-hist li.ok{border-left:3px solid #17703f}.flow-hist li.bad{border-left:3px solid #b42318}
.flow-rq-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.flow-rq-h small{display:block;color:#4f5868}
.flow-qa label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.9rem;margin:6px 0}
.flow-qa input[data-qa-notes]{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:0 10px;font:inherit}
/* v7.6: vertical step list on the left; compact bar on phones */
.flow-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}
.flow-side{position:sticky;top:12px}
.flow-layout .flow-steps{grid-template-columns:1fr;gap:4px;margin:0;position:relative}
.flow-layout .flow-steps li>a,.flow-layout .flow-steps li>.flow-s{min-height:52px}
.flow-layout .flow-steps li.is-on>*{box-shadow:inset 3px 0 0 #2459db}
.flow-main{min-width:0}
@media (max-width:720px){.flow-layout{grid-template-columns:1fr;gap:8px}.flow-side{position:sticky;top:0;z-index:6;background:#fff;padding:4px 0}.flow-layout .flow-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.flow-layout .flow-steps li.is-on>*{box-shadow:inset 0 -3px 0 #2459db}}
/* v7.6: app bar (same as workspace), Today tiles, Finance */
body{background:#f6f8fb}
.app-bar{display:flex;align-items:center;gap:10px;padding:8px 16px;background:#fff;border-bottom:1px solid #e3e7ef;position:sticky;top:0;z-index:20;min-height:52px}
.app-mark img{display:block;width:28px;height:28px}
.app-bar .shop-who{flex:1;margin:0;font-weight:700;color:#171a20;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-menu{position:relative}.app-menu summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 14px;border:1px solid #c9d0dc;border-radius:10px;font-weight:600}
.app-menu summary::-webkit-details-marker{display:none}
.app-menu nav{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #e3e7ef;border-radius:12px;box-shadow:0 8px 24px rgba(16,24,40,.12);display:grid;min-width:180px;padding:6px}
.app-menu nav a{padding:12px;border-radius:8px;color:#171a20;text-decoration:none}.app-menu nav a:hover{background:#f2f5fb}
.shop-page .app-bar{z-index:80}
.app-menu nav{max-height:calc(100dvh - 80px);overflow-y:auto;max-width:calc(100vw - 24px)}
.shop-save-state{font-size:.8rem;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 14px;background:#eef3ff;border-bottom:1px solid #dfe4eb}
.shop-save-state[data-state="failed"],.shop-save-state[data-state="conflict"]{color:#7a1a12;background:#fff5f4}
.shop-save-state button{min-height:44px}
.shop-page [data-user-content]{overflow-wrap:anywhere}
.shop-page .cal-seg{max-width:100%;overflow:visible}
.shop-page .cal-bar>*{min-width:0}
.shop-page .cal-seg button{flex:1;padding:0 8px}
@media(max-width:720px){.shop-page .cal-seg{flex-basis:100%;flex-wrap:nowrap}}
/* Phone Week keeps readable day widths inside the calendar, with common
   scroll coordinates for its sticky date rows and time gutter. */
@media(max-width:720px){
 .shop-page .cal-week-nav{display:flex;align-items:center;gap:6px;margin:0 0 8px;min-width:0}
 .shop-page .cal-week-nav p{flex:1;min-width:0;margin:0;font-size:.85rem;color:#4f5868}
 .shop-page .cal-week-nav button{flex:0 0 44px;width:44px;min-height:44px;border:1px solid #c9d0dc;background:#fff;border-radius:10px;color:#171a20;font:inherit;font-size:1.2rem;cursor:pointer}
 .shop-page .cal-week-nav button:disabled{opacity:.45;cursor:default}
 .shop-page .cal-week-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain;isolation:isolate;scroll-padding:96px 8px 8px 60px;scrollbar-gutter:stable}
 .shop-page .cal-week-scroll:focus-visible,.shop-page .cal-week-nav button:focus-visible{outline:3px solid #2459db;outline-offset:-3px}
 .shop-page .cal-week-scroll .cal-tg-head,.shop-page .cal-week-scroll .cal-allday,.shop-page .cal-week-scroll .cal-tg{width:calc(52px + 7 * var(--cal-day));grid-template-columns:52px repeat(7,minmax(0,1fr))}
 .shop-page .cal-week-scroll .cal-tg-head{position:sticky;top:0;z-index:8;height:64px;background:#fff}
 .shop-page .cal-week-scroll .cal-allday{position:sticky;top:64px;z-index:7;background:#fff}
 .shop-page .cal-week-scroll .cal-hours,.shop-page .cal-week-scroll .cal-tg-head>span,.shop-page .cal-week-scroll .cal-allday>span{position:sticky;left:0;z-index:4;background:#fff;box-shadow:1px 0 0 #e3e7ef}
 .shop-page .cal-week-scroll .cal-chip{font-size:.78rem;min-height:32px}
}
.shop-bar{background:#fff;border-bottom:1px solid #e3e7ef}
.money-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
.money-card{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;background:#fff;border:1px solid #e3e7ef;border-radius:14px;padding:12px 14px;color:#171a20;text-decoration:none}
.money-card small{color:#4f5868;font-weight:600}.money-card b{font-size:1.5rem;grid-column:2}
.money-ic{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#eef3ff;color:#2459db}.money-ic svg{width:22px;height:22px}
.money-card.bad .money-ic{background:#fdecea;color:#b42318}.money-card.bad b{color:#b42318}.money-card.good .money-ic{background:#e7f6ec;color:#17703f}
.tile-sec{margin:0 0 14px}.tile-sec h2{font-size:1.05rem;margin:0 0 8px}
.tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.job-tile{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 10px;background:#fff;border:1px solid #e3e7ef;border-radius:14px;padding:10px;color:#171a20;text-decoration:none;align-items:start}
.job-tile:hover{border-color:#2459db}
.job-tile-media{grid-row:1/3;width:72px;height:72px;border-radius:10px;overflow:hidden;background:#f2f5fb;display:grid;place-items:center;color:#2459db}
.job-tile-media img{width:100%;height:100%;object-fit:contain}.tile-ic svg{width:32px;height:32px}
.job-tile-media .shop-photo-miss{padding:6px;font-size:.75rem;line-height:1.3;text-align:center;color:#4f5868}
.job-tile-body{display:grid;gap:2px;min-width:0}.job-tile-body small{color:#4f5868;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.job-tile .shop-pill{grid-column:2;justify-self:start}
.tile-empty{display:grid;justify-items:center;gap:8px;text-align:center;background:#fff;border:1px dashed #c9d0dc;border-radius:14px;padding:20px}
.tile-empty p{margin:0;color:#4f5868}.tile-empty-ic{color:#2459db}.tile-empty-ic svg{width:48px;height:48px}
.shop-btn.big{min-height:52px;padding:0 22px;font-size:1.05rem}
.onb-corner{position:fixed;right:16px;bottom:16px;z-index:15;background:#fff;border:1px solid #e3e7ef;border-radius:14px;box-shadow:0 8px 24px rgba(16,24,40,.12);max-width:320px;padding:8px 12px;font-size:.9rem}
.onb-corner summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;min-height:44px;list-style:none}
.onb-corner ol{margin:6px 0;padding-left:18px;max-height:50vh;overflow:auto}.onb-corner li{margin:4px 0}
.onb-ring{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:conic-gradient(#2459db calc(var(--p)*1%),#e3e7ef 0)}
.onb-ring b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;font-size:.7rem}
.fin-aging{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 8px}.fin-aging div{background:#f7f8fb;border-radius:10px;padding:8px}.fin-aging small{display:block;color:#4f5868}.fin-aging .bad b{color:#b42318}
.fin-list{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:4px}.fin-list li{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eef0f4}.fin-list small{color:#4f5868}
.fin-cat{text-transform:capitalize;min-width:80px;font-weight:600}
.fin-bar{flex:1;height:8px;background:#eef0f4;border-radius:4px;overflow:hidden}.fin-bar i{display:block;height:100%;background:#2459db}
.fin-t{width:100%;border-collapse:collapse;font-size:.92rem}.fin-t th,.fin-t td{text-align:left;padding:6px 4px;border-bottom:1px solid #eef0f4}.fin-t td.bad{color:#b42318;font-weight:700}.fin-t td.good{color:#17703f;font-weight:700}
.fin-note{background:#fff8e6;border:1px solid #f0d58a;border-radius:10px;padding:8px 12px}
.fin-rates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border:1px solid #e3e7ef;border-radius:10px;padding:8px}.fin-rates label{text-transform:capitalize;font-size:.8rem}
.fin-flags{list-style:none;padding:0;margin:0;display:grid;gap:6px}.fin-flags li{padding:8px 10px;border-radius:10px;background:#f7f8fb;border-left:3px solid #2459db}.fin-flags .fin-fee{border-left-color:#b42318}.fin-flags .fin-sub{border-left-color:#7a5a1f}
@media (max-width:720px){.money-row{grid-template-columns:1fr}.money-card b{font-size:1.25rem}.fin-aging{grid-template-columns:repeat(2,1fr)}.fin-rates{grid-template-columns:repeat(2,1fr)}.onb-corner{left:12px;right:12px;bottom:12px;max-width:none}.app-bar{padding:6px 12px}}
@media print{.flow-layout{display:block!important}.flow-side,.onb-corner,.app-bar,.shop-bar,.flow-bar,button{display:none!important}}
.app-menu-h{margin:6px 12px 2px;font-size:.75rem;font-weight:700;color:#4f5868;text-transform:uppercase}
.sched-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.sched-day{margin:0!important;min-height:120px}.sched-day h2{font-size:.9rem!important}
.sched-ev{display:flex;gap:6px;padding:6px;border-radius:8px;background:#eef3ff;color:#171a20;text-decoration:none;margin:0 0 4px;font-size:.85rem}.sched-ev time{font-weight:700;color:#1d4ed8}.sched-ev small{display:block;color:#4f5868}
@media (max-width:900px){.sched-week{grid-template-columns:1fr}}
body,body .shop-main,body .app-bar{font-family:Manrope,'DM Sans',system-ui,sans-serif!important;color:#171a20}
.onb-corner:not([open]){padding:4px 12px}
/* from the design review: sticky bar never hides focused fields; full-width line descriptions on phones */
html{scroll-padding-top:120px}
@media (max-width:720px){.flow-line>input[data-f=description]{grid-column:1/-1!important}.flow-line{row-gap:6px}}
.money-card,.money-row{font-variant-numeric:tabular-nums}
@media print{html{scroll-padding-top:0}body{background:#fff}.flow-main>*:last-child{margin-bottom:0!important}.shop-toast,.onb-corner,#shop-toast{display:none!important}.shop-main{padding:0!important;min-height:0!important}}
/* v7.7: calendar, supplies, team inside the shop app */
.shop-cal{padding:10px!important}
.sup-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.sup-list li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;border:1px solid #eef0f4;border-radius:10px;padding:8px 10px}
.sup-list li>span:first-child{flex:1;min-width:160px}.sup-list small{display:block;color:#4f5868}
.sup-list li.is-low{border-color:#f3c7c1;background:#fff8f7}
.sup-count{display:inline-flex;align-items:center;gap:6px}.sup-count button{min-width:44px;min-height:44px;border:1px solid #c9d0dc;border-radius:10px;background:#fff;font-size:1.2rem;font-weight:700}.sup-count b{min-width:28px;text-align:center;font-size:1.1rem}
.sup-add{display:flex;flex-wrap:wrap;gap:6px}.sup-add input{min-height:44px;border:1px solid #c9d0dc;border-radius:10px;padding:0 10px;font:inherit;flex:2 1 180px;min-width:0}.sup-add input.sm{flex:1 1 70px}
/* v7.7: tinted blue glass sections; glowing red when something is needed (text + icon, not color alone) */
body{background:linear-gradient(160deg,#f4f7fd 0%,#eaf1fe 45%,#f6f8fb 100%) fixed}
.flow-card,.shop-sec,.tile-empty,.money-card,.job-tile{background:rgba(234,241,255,.62)!important;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);border:1px solid rgba(36,89,219,.20)!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 2px 10px rgba(36,89,219,.06)!important}
.flow-card{padding:10px 12px!important;margin:0 0 10px!important}.flow-card h2{margin:0 0 8px!important}
.flow-card input,.flow-card select,.flow-card textarea{background:rgba(255,255,255,.92)}
.flow-card.is-error{background:rgba(253,236,234,.78)!important;border:2px solid #b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.16),0 0 22px rgba(180,35,24,.28)!important}
.sec-err{display:flex;gap:8px;align-items:flex-start;margin:0 0 8px;padding:6px 10px;border-radius:8px;background:#fff;color:#7a1a12;font-weight:700;border-left:4px solid #b42318}
.sec-err span{display:inline-grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;background:#b42318;color:#fff;font-size:.8rem}
.flow-card.is-error h2::after{content:"Needs attention";margin-left:auto;font-size:.75rem;font-weight:700;color:#7a1a12;background:#fff;border:1px solid #b42318;border-radius:999px;padding:2px 8px}
.ik-search input{width:100%;min-height:52px!important;font-size:1.05rem;border-radius:12px!important;padding:0 14px!important;border:2px solid #2459db!important}
.ik-results{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}
.ik-results button{display:block;width:100%;text-align:left;min-height:48px;padding:6px 12px;border:1px solid #c9d0dc;border-radius:10px;background:#fff;font:inherit;cursor:pointer}
.ik-results button:hover,.ik-results button:focus-visible{border-color:#2459db;background:#f5f8ff}.ik-results small{display:block;color:#4f5868}
.ik-results .ik-create{color:#1d4ed8;font-weight:700;border-style:dashed}
.ik-chosen{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border:1px solid #c9d0dc;border-radius:12px;padding:8px 12px;margin:0 0 8px}.ik-chosen small{display:block;color:#4f5868}
.ik-new{font-size:.7rem;font-weight:800;text-transform:uppercase;color:#7a4b00;background:#fff4dc;border-radius:6px;padding:1px 6px}
.ik-veh{display:grid;grid-template-columns:2fr 1fr .8fr 1fr 1fr auto;gap:6px;align-items:end}
.ik-common{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.ik-chip{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #2459db;background:#fff;color:#1d4ed8;font-weight:700;font:inherit;font-weight:700;cursor:pointer}
.ik-chip:hover{background:#eef3ff}
.ik-more summary,.ik-more-in summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;color:#2b3445}
.ik-bar .shop-btn.big{min-width:240px}
@media (max-width:720px){.ik-veh{grid-template-columns:1fr 1fr}.ik-bar .shop-btn.big{flex:1 1 100%;min-width:0}}
@media (prefers-reduced-transparency:reduce){.flow-card,.shop-sec{-webkit-backdrop-filter:none;backdrop-filter:none;background:#eef3ff!important}}
@media (max-width:720px){
 .flow-line,.flow-line[data-type=part],.shop-noprice .flow-line,.shop-noprice .flow-line[data-type=part]{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:6px}
 .flow-line>.flow-tag{order:0}.flow-line>.shop-x{order:1;margin-left:auto}
 .flow-line>input[data-f=description]{order:2;flex:1 1 100%}
 .flow-line>input[data-f=partNumber]{order:3;flex:1 1 90px;min-width:0}
 .flow-line>.flow-mini{order:4;flex:1 1 90px;flex-direction:column!important;align-items:stretch!important}
 .flow-line .flow-mini input{width:100%!important}
}
.shop-toast{bottom:96px!important}
/* v7.8: undo bar, late parts, faster Parts & schedule */
.shop-undo{position:fixed;left:50%;bottom:20px;transform:translateX(-50%) translateY(140%);display:flex;align-items:center;gap:12px;background:#171a20;color:#fff;border-radius:12px;padding:8px 8px 8px 14px;z-index:60;max-width:min(92vw,560px);transition:transform .2s;overflow:hidden}
.shop-undo.show{transform:translateX(-50%) translateY(0)}.shop-undo.warn{background:#7a1a12}
.shop-undo .shop-btn{background:#fff;color:#171a20;min-height:44px;font-weight:800}
.shop-undo-bar{position:absolute;left:0;bottom:0;height:3px;background:#8fb0ff;width:100%;animation:undoBar 5s linear forwards}
@keyframes undoBar{to{width:0}}
@media (prefers-reduced-motion:reduce){.shop-undo{transition:none}.shop-undo-bar{animation:none}}
.cal-ev.is-late,.cal-chip.is-late{outline:2px solid #b42318;outline-offset:-2px;box-shadow:0 0 10px rgba(180,35,24,.45)}
.sec-err.late{margin:0 0 10px}.sec-err.walkin span{background:#2459db}
.pl-parts{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.pl-parts li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;background:#fff;border:1px solid #e3e7ef;border-radius:10px;padding:6px 8px}
.pl-parts li.is-late{border:2px solid #b42318;background:#fff8f7}
.pl-name small{display:block;color:#4f5868}
.pl-st{min-width:92px;min-height:44px;border-radius:10px;border:1px solid #c9d0dc;font-weight:800;background:#fff;cursor:pointer}
.pl-st.st-needed{color:#7a4b00;background:#fff4dc;border-color:#e8c27a}.pl-st.st-ordered{color:#1d4ed8;background:#eef3ff;border-color:#9db5f5}.pl-st.st-received{color:#17703f;background:#e7f6ec;border-color:#8fd0a8}
.pl-eta{display:flex!important;flex-direction:row!important;align-items:center;gap:4px;font-size:.8rem;margin:0!important}.pl-eta input{min-height:40px!important;width:150px!important}
.pl-all{margin-left:auto;min-height:40px}
.pl-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}.pl-chips .ik-chip[aria-pressed=true]{background:#2459db;color:#fff}
.shop-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:720px){.pl-parts li{grid-template-columns:auto minmax(0,1fr)}.pl-eta{grid-column:1/-1}.pl-eta input{width:100%!important}.shop-row3{grid-template-columns:1fr 1fr}}
@media (max-width:720px){.flow-side{top:65px!important}}
.shop-wt{border:1px solid #d6dce8;border-radius:10px;padding:6px 10px;display:flex;gap:14px;flex-wrap:wrap}
/* ===== v8.0 ===== */
/* unassigned = same glowing red as missing info, plus icon + words */
.job-tile.is-unassigned,.shop-card.is-unassigned{border:2px solid #b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.18),0 0 14px rgba(180,35,24,.25)!important;background:#fff5f4!important}
.flow-steps li.is-unassigned .flow-ic{background:#fff5f4;color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.22)}
.flow-steps li.is-unassigned small{color:#b42318;font-weight:800}
.no-tech{color:#b42318;font-weight:800}.no-tech span{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#b42318;color:#fff;font-size:.7rem;margin-right:3px}
.badge-auto{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#eef3ff;color:#1d4ed8;font-size:.72rem;font-weight:800;border:1px solid #9db5f5}
.pill-over{display:inline-flex;align-items:center;gap:4px;margin-top:4px;padding:2px 8px;border-radius:999px;background:#fff5f4;color:#b42318;border:1px solid #b42318;font-size:.76rem;font-weight:800;width:max-content}
.pill-over span{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#b42318;color:#fff;font-size:.65rem}
.jt-l1{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.jt-l1 b{margin-right:auto}
/* price list + team */
.pl-menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0 0 10px}
.pl-mi{display:grid;gap:6px;background:#fff;border:1px solid #d6e0f5;border-radius:12px;padding:10px}.pl-mi span{font-weight:800;font-size:1.05rem}
.pl-switch{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;min-height:44px;font-weight:700}
.pl-switch input{appearance:none;width:46px;height:28px;border-radius:999px;background:#c9d0dc;position:relative;cursor:pointer;flex:none;margin:0;transition:background .15s}
.pl-switch input::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.pl-switch input:checked{background:#2459db}.pl-switch input:checked::after{left:21px}
.pl-switch input:focus-visible{outline:3px solid #8fb0ff;outline-offset:2px}
.pl-item{border:1px solid #d6e0f5;border-radius:12px;background:#fff;margin:0 0 8px}.pl-item summary{display:flex;justify-content:space-between;gap:8px;padding:12px;min-height:44px;cursor:pointer;align-items:center}
.pl-item summary span{color:#4f5868;font-weight:700}.pl-fields{padding:0 12px 12px;display:grid;gap:8px}
.aa-tiles{display:grid;gap:8px;margin:8px 0}.aa-tile{display:grid!important;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:12px;border:1px solid #d6e0f5;border-radius:12px;background:#fff;min-height:56px;cursor:pointer}
.aa-tile input{grid-row:span 2;width:22px;height:22px;margin:0}.aa-tile small{color:#4f5868}.aa-tile.is-on{border:2px solid #2459db;background:#eef3ff}
.aa-tile:has(input:disabled){opacity:.55;cursor:default}
.aa-preview{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #d6e0f5;margin:8px 0}.aa-preview b{font-size:1.15rem;color:#1d4ed8}
.aa-preview.is-error{border:2px solid #b42318;background:#fff5f4;box-shadow:0 0 0 3px rgba(180,35,24,.18)}.aa-preview.is-error b{color:#b42318}
.aa-room{width:100%;border-collapse:collapse;font-size:.9rem}.aa-room th,.aa-room td{text-align:left;padding:6px 4px;border-bottom:1px solid #e3e7ef}
.wp-card{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid #e3e7ef}.wp-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wp-h small{color:#4f5868;margin-right:auto}
.wp-skills{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}.wp-skills legend{font-weight:700;margin-bottom:4px}
.wp-skills .ik-chip{display:inline-flex;align-items:center;gap:6px}.wp-skills .ik-chip:has(input:checked){background:#2459db;color:#fff}
.flow-line.is-fixed{grid-template-columns:auto minmax(0,1fr) auto auto auto!important;align-items:center}.ik-fx{font-weight:700}
.ik-chip small{opacity:.8;font-weight:700}
/* missing Year/Make/Model */
input.is-missing{border:2px solid #b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.18)!important;background:#fff5f4!important}
label.lbl-missing{color:#b42318}label.lbl-missing::after{content:' · needed';font-size:.75rem;font-weight:800}
/* setup progress sits in the page, not floating */
.onb-corner{position:static!important;max-width:none!important;margin:8px 0 12px!important;box-shadow:none!important}
/* laptops: nav "More" not needed */
.nav-more{display:none}
@media (max-width:720px){
  /* money cards: one small row */
  .money-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .money-card{padding:8px!important;min-height:0!important}.money-card .money-ic{display:none!important}.money-card small{font-size:.7rem!important}.money-card b{font-size:1rem!important}
  /* bottom bar: 4 tabs + More */
  .shop-bar{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;z-index:40;background:#fff;border-top:1px solid #e3e7ef;padding:4px 6px calc(4px + env(safe-area-inset-bottom))!important;box-shadow:0 -4px 16px rgba(16,24,40,.08)}
  .shop-nav{display:grid!important;grid-template-columns:repeat(5,1fr);gap:2px;overflow:visible!important}
  .shop-nav a,.nav-more{justify-content:center;font-size:.8rem;padding:0 4px!important;min-height:48px;border-radius:10px;border:0;background:none;font-weight:700;color:#2b3445;font-family:inherit;display:inline-flex;align-items:center;gap:4px}
  .shop-nav .nav-extra{display:none!important}
  .shop-bar.nav-open .shop-nav .nav-extra{display:flex!important;position:relative}
  .shop-bar.nav-open .shop-nav{grid-template-columns:repeat(4,1fr)}
  .shop-nav:not(:has(.nav-more)){grid-template-columns:repeat(4,1fr)}
  .shop-main{padding-bottom:84px!important}
  .shop-undo,.shop-toast{bottom:86px!important}
  /* Add job / Quote: one sticky header, Cancel/Save pinned at the bottom, Book it never covered */
  .shop-app[data-page=intake] .flow-side,#shop-app[data-page=intake] .flow-side{position:static!important}
  .flow-bar{position:fixed!important;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));margin:0!important;padding:8px 12px!important;z-index:30;box-shadow:0 -4px 16px rgba(16,24,40,.08)}
  #shop-app:has(.flow-bar){padding-bottom:150px}
  .shop-toast{top:72px!important;bottom:auto!important;transform:translate(-50%,-160%)!important}.shop-toast.show{transform:translate(-50%,0)!important}
}
.wp-skills .ik-chip{flex-direction:row!important;min-height:40px}.wp-skills .ik-chip input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;display:inline-block!important}
@media print{#shop-app,#shop-app:has(.flow-bar),.shop-main{padding-bottom:0!important}.flow-bar,.shop-bar,.nav-more{display:none!important}}
/* ===== v8.1: real bottom dock on phones, laptop tabs 6 + More ===== */
@media (min-width:721px){
  .nav-more.has-x6{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid #d6dce8;background:#fff;font:inherit;font-weight:600;color:#2b3445;cursor:pointer}
  .shop-nav .nav-x6{display:none}
  .shop-bar{position:relative}
  .shop-bar.nav-open .shop-nav .nav-x6{display:inline-flex;position:relative}
  .shop-bar.nav-open .shop-nav{flex-wrap:wrap}
}
@media (max-width:720px){
  #shop-dock{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);background:#fff;box-shadow:0 -4px 16px rgba(16,24,40,.10)}
  #shop-dock .shop-bar{position:static!important;box-shadow:none;padding:4px 6px!important}
  #shop-dock .flow-bar{position:static!important;margin:0!important;padding:8px 12px!important;box-shadow:none;border-top:1px solid #e3e7ef;border-bottom:1px solid #e3e7ef}
  .shop-main{padding-bottom:calc(var(--dock-h,64px) + 24px)!important}
  #shop-app:has(.flow-bar){padding-bottom:calc(var(--dock-h,64px) + 24px)}
  .shop-toast,.shop-undo{top:auto!important;bottom:calc(var(--dock-h,64px) + 10px)!important;transform:translate(-50%,160%)!important}
  .shop-toast.show,.shop-undo.show{transform:translate(-50%,0)!important}
}

/* v8.3: job and quote cards in lists are links; make them real blocks so they don't squeeze into thin strips on the phone */
a.shop-card{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;color:inherit;text-decoration:none}
a.shop-card>div{flex:1 1 auto;min-width:0}
a.shop-card>div>*{display:block}
a.shop-card .jt-l1{display:flex}
a.shop-card b,a.shop-card small,a.shop-card p{overflow-wrap:anywhere}
a.shop-card small{color:#5b6475;margin-top:4px}
a.shop-card p{margin:4px 0 0}
a.shop-card:hover{border-color:#bcd0f5}
a.shop-card:focus-visible{outline:3px solid #2459db;outline-offset:2px}

/* v8.3 (Critiquito): the toast is one line, pinned just above the tab bar on every page */
.shop-toast{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(560px,calc(100vw - 24px))!important;box-sizing:border-box;line-height:1.3;padding:10px 16px}
@media (max-width:720px){
  .shop-toast,.shop-undo{top:auto!important;bottom:calc(var(--dock-h,64px) + 8px)!important}
  #shop-dock.is-editing .shop-bar{display:none!important}
  #shop-dock.is-editing .flow-bar{border-bottom:0}
}

/* v8.7: 16px fields in shop popups on phones so the phone does not zoom in (zoom pushed sheets off the right edge) */
@media (max-width:600px){dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea,.shop-main input:not([type=checkbox]):not([type=radio]),.shop-main select,.shop-main textarea{font-size:16px}}
/* v8.7: the invoice lines table scrolls sideways on phones instead of widening the whole page (that pushed popups off the right edge) */
@media screen and (max-width:600px){table.shop-lines{display:block;position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* v8.9: show every unpaid invoice and its actions without a sideways scroll. */
@media screen and (max-width:600px){
  .shop-table[data-owes],.shop-table[data-owes] tbody{display:block;width:100%}
  .shop-table[data-owes] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .shop-table[data-owes] tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:12px;border:1px solid #e3e7ef;border-radius:14px;margin-bottom:12px;background:#fff}
  .shop-table[data-owes] td{display:block;min-width:0;padding:0;border:0;text-align:left!important;white-space:normal;overflow-wrap:anywhere}
  .shop-table[data-owes] td[data-label]::before{content:attr(data-label);display:block;color:#4f5868;font-size:.8rem;font-weight:800;margin-bottom:4px}
  .shop-table[data-owes] td:nth-child(1),.shop-table[data-owes] td:nth-child(2){grid-column:1/-1}
  .shop-table[data-owes] .shop-rowact{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:8px;padding-top:10px;border-top:1px solid #dfe4eb}
}

/* v8.9 sample shop */
.shop-demo-tag{display:inline-block;padding:2px 8px;border-radius:999px;background:#fff4dc;color:#7a4b00;font-size:.74rem;font-weight:800}
/* Sample job tools: normal forms, readable changes, and room for the guide. */
[data-sample-tools] form { display:grid;gap:8px;margin:12px 0; }
[data-sample-tools] form .shop-btn { justify-self:start;min-height:44px; }
[data-sample-history] summary { cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center; }
[data-sample-history] pre,[data-draft-preview] pre { white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font:inherit; }
[data-sample-draft] { min-width:0; }
[data-sample-draft] textarea { min-height:150px; }
[data-sample-files] input[type=file] { position:absolute; }
.shop-job input::placeholder,.shop-job textarea::placeholder { color:#2459db;opacity:.8; }

/* Separate incomplete-cost detail from the recorded amount. */
.fin-t td small{display:block;margin-top:4px;line-height:1.35;font-weight:400}
/* Keep the footer language controls above the phone dock when scrolled into view. */
@media (max-width:720px){nav.mp-lang{padding:12px 16px calc(var(--dock-h,64px) + 20px);margin:0;gap:6px}}
.shop-toast{white-space:normal;overflow:visible;overflow-wrap:anywhere}

/* Closed or worker-only jobs do not show an empty manager action card. */
.shop-sec.is-empty{display:none}

/* Saved package scope is unpriced; the customer amount stays on the package row. */
.shop-package{max-width:34rem;margin-top:6px;white-space:normal;line-height:1.5;color:var(--muted,#657181)}
.shop-package details{margin-top:6px;font-size:.875rem}.shop-package summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--blue,#2459db)}
.shop-package ul{margin:0 0 8px;padding-left:18px}.flow-totals>.shop-small{flex-basis:100%;line-height:1.5}

/* Extra work stays separate from the original approved repair. */
.shop-extra p { margin: 6px 0 10px; }
.shop-extra-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-extra-list > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line, #dfe4eb); border-radius: 10px; background: #fff; }
.shop-extra-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .shop-extra-list > li { align-items: stretch; flex-direction: column; } .shop-extra-actions .shop-btn { flex: 1; } }

/* Calm, connected Quote / Schedule / Work screens. */
.flow-layout { display:block; }
.flow-side { position:static!important; margin:0 0 14px; padding:0!important; background:transparent; }
.flow-layout .flow-steps { display:flex; gap:6px; flex-wrap:wrap; }
.flow-layout .flow-steps li { flex:1 1 0; min-width:0; }
.flow-layout .flow-steps li > a,.flow-layout .flow-steps li > .flow-s { min-height:56px; padding:8px 12px; flex-direction:row; text-align:left; font-size:14px; gap:8px; border-radius:10px; box-shadow:none; }
.flow-tab-copy { display:grid; gap:2px; }
.flow-steps .flow-tab-copy small { display:block; font-size:12px; line-height:1.25; color:var(--muted,#4f5868); }
.flow-steps li.is-on > * { border-color:#2459db; background:#eef3ff; box-shadow:inset 0 -2px #2459db!important; }
.job-overview { margin:0 0 14px; padding:16px; border:1px solid #dfe4eb; background:#fff; border-radius:14px; }
.job-overview-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.job-overview h1 { margin:4px 0 6px; font-size:clamp(1.3rem,3vw,1.8rem); line-height:1.2; }
.job-purpose { margin:0; color:#292e36; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.job-reference { display:block; color:#4f5868; font-weight:700; font-size:12px; }
.job-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0 0; padding-top:12px; border-top:1px solid #e3e7ef; }
.job-facts dt { font-size:12px; color:#4f5868; margin-bottom:4px; }
.job-facts dd { margin:0; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.job-plate { margin:10px 0 0; }
.job-next { background:#eef3ff; border-left:3px solid #2459db; border-radius:8px; padding:12px 14px; margin-bottom:14px; }
.job-next > b { color:#171a20; font-size:16px; }
.job-next p { margin:4px 0 0; line-height:1.5; font-size:15px; }
.job-doc-details { margin-bottom:12px; }
.job-doc-details > summary { cursor:pointer; color:#2459db; font-weight:700; min-height:44px; display:flex; align-items:center; }
.job-doc-details > summary::before { content:'+'; margin-right:8px; }
.job-doc-details[open] > summary::before { content:'−'; }
.shop-job > .shop-sec { margin-bottom:12px; }
@media (max-width:720px) {
 .flow-layout .flow-steps li > a,.flow-layout .flow-steps li > .flow-s { padding:8px 4px; gap:4px; flex-direction:column; text-align:center; min-height:64px; }
 .flow-layout .flow-steps .flow-ic { width:22px; height:22px; border-radius:6px; }
 .flow-steps .flow-tab-copy small { font-size:11px; }
 .job-overview { padding:12px; } .job-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .job-overview-title { flex-wrap:wrap; }
}
@media print { .job-overview,.job-next {display:none!important;} .job-doc-details > summary {display:none;} .job-doc-details > :not(summary) {display:block!important;} }

.job-print-header {display:none;}
@media print {.job-print-header {display:block!important;}}

.job-facts small {display:block;margin-top:5px;font-size:12px;color:#4f5868;line-height:1.4;}
.job-overdue {display:inline-block;color:#b42318;font-weight:800;}
.job-next .job-next-reason {margin-top:8px;padding-top:8px;border-top:1px solid #d6e2fa;}
/* Checkbox labels should stay beside their control inside work cards. */
.flow-card .shop-chk{flex-direction:row;align-items:center;gap:10px;min-height:44px;line-height:1.4}
.flow-card .shop-chk input[type="checkbox"]{width:20px;min-height:20px;height:20px;flex:0 0 20px;padding:0}
.shop-clock [data-hours]{display:block;margin-top:3px}

/* Status messages do not intercept taps, including when faded out. */
.shop-toast{pointer-events:none}

/* Give focused controls space above the phone navigation, including outside a guide. */
@media (max-width:720px){
  html:not(.sht-scroll-safe){scroll-padding-top:76px;scroll-padding-bottom:calc(var(--dock-h,64px) + 24px)}
  #shop-app :is(input,textarea,select,button,a){scroll-margin-block:12px}
}
