/* Smart Scheduler (js/scheduler/). Uses the app's colors from :root in index.html. */
body.no-scheduler [data-feature~="scheduler"]{display:none!important}

/* Settings › Scheduler */
:is(#sch-settings,.sch-host) .sch-h{font-size:13.5px;font-weight:800;color:var(--ink);margin:20px 0 8px;padding-top:14px;border-top:1px solid var(--line)}
:is(#sch-settings,.sch-host) .sch-h:first-child{margin-top:4px;padding-top:0;border-top:0}
:is(#sch-settings,.sch-host) .sch-lbl{display:block;font-size:12.5px;font-weight:700;color:var(--ink);margin:12px 0 5px}
:is(#sch-settings,.sch-host) .sch-lbl small{display:block;font-weight:500;color:var(--mute)}
:is(#sch-settings,.sch-host) .sch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
:is(#sch-settings,.sch-host) .sch-row .sch-lbl{margin:0}
:is(#sch-settings,.sch-host) .sch-pills{display:flex;flex-wrap:wrap;gap:6px}
:is(#sch-settings,.sch-host) .sch-pill{min-height:44px;padding:6px 13px;border:1.5px solid var(--line-2);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
:is(#sch-settings,.sch-host) .sch-pill[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
:is(#sch-settings,.sch-host) .sch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:8px}
:is(#sch-settings,.sch-host) .field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink)}
:is(#sch-settings,.sch-host) .field input,:is(#sch-settings,.sch-host) .field select{display:block;width:100%;box-sizing:border-box;margin-top:4px}
:is(#sch-settings,.sch-host) .sch-item{border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:#fff}
:is(#sch-settings,.sch-host) .sch-off{opacity:.62}
:is(#sch-settings,.sch-host) .sch-item-head{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:8px 12px;border:0;background:none;font:inherit;color:var(--text);text-align:left;cursor:pointer}
:is(#sch-settings,.sch-host) .sch-item-text{flex:1;min-width:0}
:is(#sch-settings,.sch-host) .sch-item-text b{display:block;font-size:14px}
:is(#sch-settings,.sch-host) .sch-item-text .small{display:block;overflow-wrap:anywhere}
:is(#sch-settings,.sch-host) .sch-edit{font-size:12.5px;font-weight:700;color:#2563eb;flex-shrink:0}
:is(#sch-settings,.sch-host) .sch-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0}
:is(#sch-settings,.sch-host) .sch-form{padding:2px 12px 12px;border-top:1px solid var(--line)}
:is(#sch-settings,.sch-host) .sch-colors{display:flex;flex-wrap:wrap;gap:8px}
:is(#sch-settings,.sch-host) .sch-color{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line-2);cursor:pointer;padding:0}
:is(#sch-settings,.sch-host) .sch-color[aria-checked="true"]{box-shadow:0 0 0 3px var(--ink)}
:is(#sch-settings,.sch-host) .sch-closed-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13.5px}
:is(#sch-settings,.sch-host) .sch-err{color:#b91c1c;margin:8px 0 0}
:is(#sch-settings,.sch-host) .sch-err:empty{display:none}
:is(#sch-settings,.sch-host) .sch-home[hidden]{display:none}

/* Schedule board (js/scheduler/board.js). Hidden in the menu until a company switches it on. */
body:not(.sch-on) [data-nav="schedule"]{display:none!important}
#panel-schedule{background:#f4f6f9}
#sch-board{padding:18px 22px 28px;max-width:none}
#sch-board .sb-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#sch-board .sb-actions{display:flex;gap:8px;flex-wrap:wrap}
#sch-board .sb-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#sch-board .sb-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#sch-board .sb-nav .btn{min-width:44px;min-height:40px}
#sch-board .sb-nav [data-a="prev"],#sch-board .sb-nav [data-a="next"]{font-size:20px;line-height:1;padding:4px 10px}
#sch-board .sb-date{border:1px solid var(--line-2);border-radius:8px;padding:8px 10px;font:inherit;font-size:14px;background:#fff;min-height:40px;box-sizing:border-box}
#sch-board .sb-main{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;align-items:start}
#sch-board .sb-area{min-width:0}
#sch-board .sb-scroll{overflow:auto;max-height:calc(100vh - 250px);background:#fff;border:1px solid var(--line);border-radius:12px}
#sch-board .sb-grid{display:flex;min-width:min-content}
#sch-board .sb-gutter{flex:0 0 56px;position:sticky;left:0;z-index:4;background:#fff;border-right:1px solid var(--line)}
#sch-board .sb-hour{box-sizing:border-box;font-size:11.5px;color:var(--mute);text-align:right;padding-right:6px}
#sch-board .sb-hour span{position:relative;top:-1px}
#sch-board .sb-col{flex:1 0 210px;min-width:210px;border-right:1px solid var(--line)}
#sch-board .sb-col:last-child{border-right:0}
#sch-board .sb-head{position:sticky;top:0;z-index:3;background:#fff;height:78px;box-sizing:border-box;padding:9px 10px;border-bottom:1px solid var(--line)}
#sch-board .sb-who{display:flex;align-items:center;gap:7px;font-size:14px}
#sch-board .sb-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sch-board .sb-dot,.sb-pill .sb-dot{display:inline-block;width:11px;height:11px;border-radius:50%;flex-shrink:0}
#sch-board .sb-cap{height:6px;border-radius:4px;background:#e8ecf1;overflow:hidden;margin-top:5px}
#sch-board .sb-cap i{display:block;height:100%;background:#15803d}
#sch-board .sb-cap.over i{background:#d97706}
#sch-board .sb-lane{position:relative;background-image:linear-gradient(to bottom,var(--line) 1px,transparent 1px);cursor:copy}
#sch-board .sb-job{position:absolute;z-index:1;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;margin:1px 2px;padding:3px 7px;border:1px solid var(--line-2);border-left-width:5px;border-radius:7px;background:#fff;font:inherit;font-size:12px;line-height:1.25;text-align:left;color:var(--text);overflow:hidden;cursor:pointer;touch-action:pan-y;user-select:none}
#sch-board .sb-job b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sch-board .sb-job span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sch-board .sb-job .sb-chip{position:absolute;right:4px;bottom:3px}
#sch-board .sb-job:hover,#sch-board .sb-wjob:hover,#sch-board .sb-card:hover{box-shadow:0 2px 8px rgba(15,23,42,.18)}
#sch-board .sb-drive{position:absolute;left:2px;right:6px;box-sizing:border-box;background:repeating-linear-gradient(135deg,#e2e8f0 0 5px,#f4f6f9 5px 10px);border-radius:5px;font-size:10.5px;color:var(--mute);overflow:hidden;pointer-events:none}
#sch-board .sb-drive span{padding:0 5px;background:rgba(255,255,255,.8);border-radius:4px}
.sb-chip{display:inline-block!important;font-size:10.5px;font-weight:800;padding:1px 7px;border-radius:999px;border:1px solid transparent;width:max-content;white-space:nowrap}
.sb-chip.sb-s-HELD{background:#fff;border:1.5px dashed #92400e;color:#92400e}
.sb-chip.sb-s-ROUTED{background:#dbeafe;color:#1d4ed8}
.sb-chip.sb-s-CONFIRMED{background:#dcfce7;color:#166534}
.sb-chip.sb-s-EN_ROUTE{background:#ede9fe;color:#6d28d9}
.sb-chip.sb-s-ON_SITE{background:#ccfbf1;color:#0f766e}
.sb-chip.sb-s-DONE{background:#e2e8f0;color:#475569}
.sb-chip.sb-s-CANCELED{background:#fee2e2;color:#b91c1c}
#sch-board .sb-job.sb-s-HELD,#sch-board .sb-wjob.sb-s-HELD{border-style:dashed;border-left-style:solid;background:#fffbeb}
#sch-board .sb-job.sb-s-ROUTED{background:#eff6ff}
#sch-board .sb-job.sb-s-CONFIRMED{background:#f0fdf4}
#sch-board .sb-job.sb-s-DONE{opacity:.6}
#sch-board .sb-legend{display:flex;gap:8px;margin-top:10px}
#sch-board .sb-closed{background:#fef3c7;color:#92400e;border-radius:8px;padding:8px 12px;font-weight:700;font-size:13.5px;margin-bottom:8px}
#sch-board .sb-empty{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px;text-align:center;color:var(--mute)}
#sch-board .sb-week{border-collapse:collapse;width:100%;min-width:800px;font-size:13px}
#sch-board .sb-week th{position:sticky;top:0;background:#fff;z-index:2;padding:9px 8px;border-bottom:1px solid var(--line);text-align:left;font-size:12.5px}
#sch-board .sb-week tbody th{position:sticky;left:0;z-index:1;font-size:13.5px;white-space:nowrap;border-right:1px solid var(--line);vertical-align:top}
#sch-board .sb-week td{vertical-align:top;padding:6px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);width:18%;min-width:128px}
#sch-board .sb-daylink{border:0;background:none;padding:0;font:inherit;font-weight:800;color:#2563eb;cursor:pointer}
#sch-board .sb-celltop{display:flex;align-items:center;gap:6px;margin-bottom:5px}
#sch-board .sb-celltop .sb-cap{flex:1;margin:0}
#sch-board .sb-wjob{display:block;width:100%;box-sizing:border-box;margin-bottom:3px;padding:4px 6px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;font:inherit;font-size:12px;text-align:left;color:var(--text);cursor:pointer;touch-action:pan-y}
#sch-board .sb-wjob.sb-s-CONFIRMED{background:#f0fdf4;border-color:#bbf7d0}
#sch-board .sb-wjob.sb-s-ROUTED{background:#eff6ff;border-color:#bfdbfe}
#sch-board .sb-add{width:100%;border:1px dashed var(--line-2);background:none;border-radius:6px;color:var(--mute);min-height:28px;font:inherit;cursor:pointer}
.sb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#sch-board .sb-tray{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
#sch-board .sb-tray h2{font-size:15px;margin:0 0 8px}
#sch-board .sb-card{display:block;width:100%;box-sizing:border-box;margin-bottom:6px;padding:8px 10px;border:1px solid var(--line-2);border-radius:8px;background:#fff;font:inherit;font-size:13px;text-align:left;color:var(--text);cursor:pointer;touch-action:pan-y;min-height:44px}
#sch-board .sb-card b,#sch-board .sb-card span{display:block}
#sch-board .sb-hint{margin:8px 0 0}
.sb-urgent{color:#b91c1c;font-weight:800}
.sb-ghost{position:fixed;left:0;top:0;z-index:10080;background:var(--ink);color:#fff;border-radius:7px;padding:6px 10px;font-size:13px;font-weight:700;pointer-events:none;box-shadow:0 6px 18px rgba(15,23,42,.3)}

/* Details and the add/edit form */
.sb-over{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.5);display:flex;justify-content:flex-end}
.sb-over.sb-center{justify-content:center;align-items:flex-start;padding:24px 12px;overflow:auto;box-sizing:border-box}
.sb-drawer{width:min(440px,100%);height:100%;box-sizing:border-box;background:#fff;padding:18px;overflow:auto}
.sb-modal{width:min(620px,100%);box-sizing:border-box;background:#fff;border-radius:14px;padding:18px}
.sb-modal.sb-small{width:min(420px,100%)}
.sb-d-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.sb-d-head h2,.sb-modal h2{font-size:18px;margin:0 0 4px}
.sb-x{border:0;background:none;font-size:24px;line-height:1;min-width:44px;min-height:44px;cursor:pointer;color:var(--mute)}
.sb-dl{display:grid;grid-template-columns:96px 1fr;gap:6px 10px;margin:0 0 12px;font-size:14px}
.sb-dl dt{font-weight:700;color:var(--mute);font-size:12.5px}
.sb-dl dd{margin:0;overflow-wrap:anywhere}
.sb-notes{white-space:pre-wrap}
.sb-more{border:0;background:none;padding:0;font:inherit;font-weight:700;color:#2563eb;cursor:pointer}
.sb-more:hover{text-decoration:underline}
.sb-btns{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.sb-btns .btn{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.sb-drawer h3{font-size:13.5px;margin:14px 0 6px}
.sb-todo{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.sb-todo label{display:flex;align-items:center;gap:8px;min-height:40px;font-size:14px}
.sb-todo input{width:20px;height:20px}
.sb-photos{display:flex;flex-wrap:wrap;gap:6px}
.sb-photos img{width:88px;height:66px;object-fit:cover;border-radius:6px;display:block}
.sb-cancel{margin-top:18px}
.sb-over .field{margin-bottom:10px}
.sb-over .field label,.sb-l{display:block;font-size:12.5px;font-weight:700;color:var(--ink)}
.sb-over .field input,.sb-over .field select,.sb-over .field textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:42px}
.sb-g2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 10px}
.sb-len{display:flex;gap:10px;margin-top:4px}
.sb-len label{display:flex!important;align-items:center;gap:5px;flex:1}
.sb-len input{margin-top:0!important}
.sb-check{display:flex;align-items:center;gap:8px;min-height:40px;font-size:13.5px;font-weight:600}
.sb-check input{width:20px;height:20px}
.sb-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.sb-pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 13px;border:1.5px solid var(--line-2);border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}
.sb-pill[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.sb-link{display:block;border:0;background:none;padding:6px 0;text-align:left;font:inherit;font-size:13px;font-weight:700;color:#2563eb;cursor:pointer;min-height:36px}
.sb-sub{background:#f8fafc;border-radius:8px;padding:10px 10px 2px;margin-bottom:10px}
.sb-matches{margin-top:4px}
.sb-match{display:block;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 10px;margin-bottom:3px;font:inherit;cursor:pointer;min-height:44px}
.sb-match b,.sb-match span{display:block}
.sb-warn{background:#fffbeb;border:1px solid #fcd34d;border-radius:9px;padding:10px 12px;margin:8px 0;font-size:13.5px}
.sb-warn ul,.sb-modal.sb-small ul{margin:6px 0 8px;padding-left:18px}
.sb-confirm{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.sb-confirm p{margin:0 0 0 28px}
.sb-err{color:#b91c1c;margin:6px 0 0}
.sb-err:empty{display:none}
.sb-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.sb-foot .btn{min-height:44px}

@media (max-width:900px){
  #sch-board{padding:14px 12px 24px}
  #sch-board .sb-main{grid-template-columns:minmax(0,1fr)}
  #sch-board .sb-tray{order:-1}
  #sch-board .sb-scroll{max-height:none}
  #sch-board .sb-actions,#sch-board .sb-actions .btn{flex:1 1 auto}
}

/* Day sheets */
#sb-print{display:none}
@media print{
  body.sb-printing>*:not(#sb-print){display:none!important}
  body.sb-printing #sb-print{display:block;font-family:Arial,Helvetica,sans-serif;color:#000}
  .sb-sheet{page-break-after:always}
  .sb-sheet:last-child{page-break-after:auto}
  .sb-sheet h1{font-size:20px;margin:0}
  .sb-sheet p{margin:2px 0 12px;font-size:13px}
  .sb-sheet table{width:100%;border-collapse:collapse;font-size:12px}
  .sb-sheet th,.sb-sheet td{border:1px solid #666;padding:6px;text-align:left;vertical-align:top}
}
@media (max-width:700px){#sch-board .sb-hint{display:none}}

/* Smart Scheduler screen (js/scheduler/smart.js) */
#sch-smart{padding:18px 22px 28px}
#sch-smart[hidden],#sch-board[hidden]{display:none}
#sch-smart .sm-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#sch-smart .sm-grid{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:14px;align-items:start}
#sch-smart .sm-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px}
#sch-smart .sm-card h2{font-size:17px;margin:0 0 2px}
#sch-smart .sm-card h3{font-size:14px;margin:0 0 8px}
#sch-smart .sm-slots{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
#sch-smart .sm-slot{display:flex;gap:12px;width:100%;text-align:left;padding:12px;border:1.5px solid var(--line-2);border-radius:12px;background:#fff;font:inherit;color:var(--text);cursor:pointer}
#sch-smart .sm-slot[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
#sch-smart .sm-slot.over{background:#fffbeb}
#sch-smart .sm-score{flex:0 0 44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
#sch-smart .sm-slot.over .sm-score{background:#b45309}
#sch-smart .sm-body{min-width:0;display:flex;flex-direction:column;gap:2px}
#sch-smart .sm-label{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#15803d}
#sch-smart .sm-slot.over .sm-label{color:#b45309}
#sch-smart .sm-tech{display:flex;align-items:center;gap:6px;font-size:13px}
#sch-smart .sm-tech i,#sch-smart .sm-heat th i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;flex-shrink:0}
#sch-smart .sm-meta{font-size:12.5px;font-weight:700;color:var(--ink);margin-top:3px}
#sch-smart .sm-map{height:320px;border-radius:9px;overflow:hidden;background:#e8ecf1;z-index:0}
#sch-smart .sm-pin{display:flex!important;align-items:center;justify-content:center;border-radius:50%;background:var(--tech,#2563eb);color:#fff;font-size:13px;font-weight:800;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4);box-sizing:border-box}
#sch-smart .sm-pin.new{background:#d97706;font-size:16px}
#sch-smart .sm-pin.home{background:var(--ink);border-radius:6px}
#sch-smart .sm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
#sch-smart .sm-stats div{background:#f4f6f9;border-radius:9px;padding:8px 10px}
#sch-smart .sm-stats span,#sch-smart .sm-stats b{display:block}
#sch-smart .sm-stops{list-style:none;margin:0 0 12px;padding:0;font-size:13.5px}
#sch-smart .sm-stops li{display:flex;gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid var(--line)}
#sch-smart .sm-stops li.new{background:#fffbeb}
#sch-smart .sm-n{flex:0 0 22px;text-align:center;font-weight:800}
#sch-smart .sm-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#sch-smart .sm-actions .btn{min-height:44px}
#sch-smart .sm-actions select{min-height:40px;border:1px solid var(--line-2);border-radius:7px;padding:6px;font:inherit;background:#fff;margin-left:4px}
#sch-smart .sm-heat{overflow-x:auto}
#sch-smart .sm-heat table{border-collapse:separate;border-spacing:2px;font-size:11px}
#sch-smart .sm-heat th{font-weight:700;text-align:center;padding:2px 4px;color:var(--mute);min-width:32px}
#sch-smart .sm-heat tbody th{text-align:left;white-space:nowrap;position:sticky;left:0;background:#fff;color:var(--text);font-size:12px}
#sch-smart .sm-heat td{text-align:center;padding:5px 2px;border-radius:4px;font-weight:700;color:#1e293b}
#sch-smart .light{background:#dcfce7}
#sch-smart .good{background:#bfdbfe}
#sch-smart .full{background:#fed7aa}
#sch-smart td.off{background:#f1f5f9}
#sch-smart td.picked{outline:3px solid var(--ink);outline-offset:-1px}
#sch-smart .sm-key{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px}
#sch-smart .sm-key span{padding:1px 7px;border-radius:5px;color:#1e293b}
@media (max-width:900px){
  #sch-smart{padding:14px 12px 24px}
  #sch-smart .sm-grid{grid-template-columns:minmax(0,1fr)}
  #sch-smart .sm-map{height:240px}
}

/* Map tab (js/scheduler/techmap.js) */
#tm-root .tm-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
#tm-root .tm-map{height:calc(100vh - 290px);min-height:380px;border-radius:12px;overflow:hidden;background:#e8ecf1;border:1px solid var(--line);z-index:0}
#tm-root .tm-cards{display:flex;flex-direction:column;gap:6px;max-height:calc(100vh - 290px);overflow:auto}
#tm-root .tm-card{display:flex;flex-direction:column;gap:2px;width:100%;box-sizing:border-box;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--text);cursor:pointer}
#tm-root .tm-card.late{border-color:#fca5a5;background:#fef2f2}
#tm-root .tm-who{display:flex;align-items:center;gap:7px;font-size:14px}
#tm-root .tm-who i{width:11px;height:11px;border-radius:50%;flex-shrink:0}
#tm-root .tm-state{font-weight:800;font-size:13px;color:var(--ink)}
#tm-root .tm-state.s-late{color:#b91c1c}
#tm-root .tm-state.s-on_site{color:#0f766e}
#tm-root .tm-state.s-driving{color:#6d28d9}
#tm-root .tm-note{margin:10px 0 0}
#tm-root .tm-pin span{display:flex;align-items:center;justify-content:center;width:32px;height:32px;box-sizing:border-box;border-radius:50%;color:#fff;font-size:12px;font-weight:800;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.45)}
#tm-root .tm-pin.sched span{border-style:dashed}
#tm-root .tm-pin.in span{border-style:solid}
#tm-root .tm-pin.late span{border-color:#dc2626}
@media (max-width:900px){
  #tm-root .tm-grid{grid-template-columns:minmax(0,1fr)}
  #tm-root .tm-map{height:300px;min-height:0}
  #tm-root .tm-cards{max-height:none}
}
#tm-root .tm-note[hidden]{display:none}

/* My day (js/scheduler/techday.js). Phone first. */
body:not(.sch-day-on) [data-nav="myday"]{display:none!important}
#panel-myday{background:#f4f6f9}
#tech-day{max-width:640px;margin:0 auto;padding:16px 14px 32px}
#tech-day .td-top{margin-bottom:10px}
#tech-day .td-pick{margin-bottom:10px}
#tech-day .td-pick label{display:block;font-size:12.5px;font-weight:700;color:var(--ink)}
#tech-day .td-pick select{display:block;width:100%;min-height:44px;margin-top:4px;border:1px solid var(--line-2);border-radius:8px;padding:8px;font:inherit;background:#fff}
#tech-day .td-tabs{margin-bottom:12px;width:max-content}
#tech-day .td-tabs button{min-height:44px;min-width:76px}
#tech-day .td-empty{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;text-align:center;color:var(--mute)}
#tech-day .td-drive{font-size:12.5px;color:var(--mute);padding:4px 0 4px 26px;margin-left:13px;border-left:2px dashed var(--line-2)}
#tech-day .td-job{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:6px;overflow:hidden}
#tech-day .td-job.next{border:2px solid #d97706}
#tech-day .td-job.done{background:#f1f5f9;opacity:.72}
#tech-day .td-head{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px 12px;border:0;background:none;font:inherit;color:var(--text);text-align:left;cursor:pointer}
#tech-day .td-n{flex:0 0 32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
#tech-day .td-job.done .td-n{background:#64748b}
#tech-day .td-main{flex:1;min-width:0}
#tech-day .td-main b,#tech-day .td-main span{display:block;overflow-wrap:anywhere}
#tech-day .td-body{padding:2px 12px 14px;border-top:1px solid var(--line)}
#tech-day .td-body h3{font-size:13.5px;margin:14px 0 6px}
#tech-day .td-held{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:8px 10px;font-weight:700;color:#92400e;margin:10px 0}
#tech-day .td-addr{font-weight:700;margin:10px 0 4px;overflow-wrap:anywhere}
#tech-day .td-notes{white-space:pre-wrap;margin:6px 0;font-size:14px}
#tech-day .td-parts label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14.5px}
#tech-day .td-parts input{width:24px;height:24px;flex-shrink:0}
#tech-day .td-row{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;margin-top:10px}
#tech-day .td-row .btn{min-height:48px;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:6px 4px;font-size:14px}
#tech-day .td-row .btn[disabled]{opacity:.65}
#tech-day .td-photos{display:flex;flex-wrap:wrap;gap:6px}
#tech-day .td-photos img{width:96px;height:72px;object-fit:cover;border-radius:6px;display:block}
#tech-day .td-day{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px}
#tech-day .td-day h2{font-size:14.5px;margin:0 0 6px}
#tech-day .td-line{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;border-top:1px solid var(--line);font-size:14px}
#tech-day .td-line span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}

/* Schedule board, owner's design (2026-11-06). These come last and win over the rules above. */
#panel-schedule{background:#f5f6f8}
#sch-board{padding:16px 24px 24px}
#sch-board .btn.primary,.sb-sidecard .btn.primary,.sb-drawer .btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
#sch-board .btn{border-radius:10px;font-weight:700;min-height:44px}
#sch-board .btn.sm{min-height:40px}
#sch-board .sb-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#dcfce7;color:#166534;border-radius:12px;padding:12px 16px;margin-bottom:12px;font-size:14px}
#sch-board .sb-banner button{border:0;background:none;color:inherit;font-size:20px;min-width:32px;min-height:32px;cursor:pointer}
#sch-board .sb-bar{margin-bottom:14px}
#sch-board .sb-nav{gap:8px}
#sch-board .sb-title{font-size:24px;font-weight:800;margin:0 8px;color:var(--ink);white-space:nowrap}
#sch-board .sb-arrow{width:44px;height:44px;border:1px solid var(--line-2);border-radius:10px;background:#fff;font-size:22px;line-height:1;color:var(--ink);cursor:pointer}
#sch-board .sb-date{border-radius:10px}
#sch-board .sb-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sch-board .sb-main{grid-template-columns:minmax(0,1fr) 300px;gap:16px}
#sch-board .sb-scroll{max-height:calc(100vh - 200px);border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
#sch-board .sb-gutter{flex:0 0 60px}
#sch-board .sb-head{height:96px;padding:12px 14px}
#sch-board .sb-who{gap:10px;align-items:center}
#sch-board .sb-ava{flex:0 0 34px;height:34px;border-radius:50%;color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center}
#sch-board .sb-whotext{min-width:0;display:flex;flex-direction:column}
#sch-board .sb-whotext b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sch-board .sb-whotext .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sch-board .sb-capline{display:flex;align-items:center;gap:10px;margin-top:9px;font-size:12.5px;white-space:nowrap}
#sch-board .sb-capline .sb-cap{flex:1;height:7px;margin:0}
#sch-board .sb-cap.low i{background:#16a34a}
#sch-board .sb-cap.mid i{background:#d97706}
#sch-board .sb-cap.high i{background:#dc2626}
#sch-board .sb-lane{background-color:#fafbfc;background-image:none;cursor:copy}
#sch-board .sb-job{border:1.5px solid var(--tc,#94a3b8);border-radius:10px;background:color-mix(in srgb,var(--tc,#94a3b8) 7%,#fff);padding:6px 9px;font-size:12.5px;line-height:1.3;box-shadow:none}
#sch-board .sb-job.sb-s-HELD{border-style:dashed;background:color-mix(in srgb,var(--tc,#94a3b8) 5%,#fff)}
#sch-board .sb-job.sb-s-ROUTED,#sch-board .sb-job.sb-s-CONFIRMED{background:color-mix(in srgb,var(--tc,#94a3b8) 7%,#fff)}
#sch-board .sb-job.sel{box-shadow:0 0 0 3px var(--ink);z-index:2}
#sch-board .sb-jt{display:flex!important;align-items:center;justify-content:space-between;gap:6px;overflow:visible!important;margin-bottom:1px}
#sch-board .sb-job .sb-chip{position:static;flex-shrink:0}
.sb-chip{font-size:10px;letter-spacing:.03em;text-transform:uppercase;border-radius:6px;padding:1px 6px}
#sch-board .sb-drive{left:6px;right:8px;background:#eef1f5;border-radius:7px 7px 0 0}
#sch-board .sb-drive span{background:none;padding:0 6px;font-size:11px;line-height:1.5}
#sch-board .sb-side{display:flex;flex-direction:column;gap:14px;min-width:0}
#sch-board .sb-tray{border-radius:14px;padding:14px}
.sb-sidecard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;font-size:14px}
.sb-sidecard h2,.sb-drawer h2{font-size:19px;font-weight:800;margin:0 0 8px;color:var(--ink);line-height:1.25}
.sb-len{font-size:13px;font-weight:600;color:var(--mute)}
.sb-d-label{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.sb-d-head{align-items:center}
.sb-d-who{margin:0 0 8px;line-height:1.4;overflow-wrap:anywhere}
.sb-techname{color:#0f766e}
.sb-sidecard h3{font-size:13.5px;margin:12px 0 6px;padding-top:10px;border-top:1px solid var(--line)}
.sb-sidecard .sb-btns{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sb-sidecard .sb-btns .btn{justify-content:center}
.sb-sidecard .sb-todo{grid-template-columns:1fr}
.sb-sidecard .sb-status label{display:block;font-size:12.5px;font-weight:700}
.sb-sidecard .sb-status select{display:block;width:100%;min-height:42px;margin-top:4px;box-sizing:border-box;border:1px solid var(--line-2);border-radius:8px;padding:6px;font:inherit;background:#fff}
.sb-seeday{display:block;width:100%;margin-top:12px;min-height:48px;background:#0f766e;border-color:#0f766e;color:#fff;border-radius:10px;font-weight:700}
.sb-sidecard .sb-cancel{display:block;margin-top:10px}
@media (max-width:1099px){
  #sch-board .sb-main{grid-template-columns:minmax(0,1fr) 260px}
  #sb-side-detail:empty{display:none}
}
@media (max-width:900px){
  #sch-board{padding:14px 12px 24px}
  #sch-board .sb-main{grid-template-columns:minmax(0,1fr)}
  #sch-board .sb-title{font-size:20px;margin:0 2px}
  #sch-board .sb-side{order:-1}
  #sch-board .sb-actions{width:100%}
  #sch-board .sb-actions .btn{flex:1 1 auto}
}

/* My day, owner's design (2026-11-06) */
#tech-day{padding:0 0 32px;--teal:#0f766e}
#tech-day>*:not(.td-hero){margin-left:14px;margin-right:14px}
#tech-day .td-hero{background:var(--teal);color:#fff;padding:16px 18px 18px;margin-bottom:12px}
#tech-day .td-hi{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:15px}
#tech-day .td-brand{background:rgba(255,255,255,.2);border-radius:999px;padding:3px 12px;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
#tech-day .td-hero h1{font-size:26px;font-weight:800;margin:4px 0 2px;color:#fff}
#tech-day .td-hero p{margin:0;font-size:14px;opacity:.95}
#tech-day .td-job{border-radius:14px}
#tech-day .td-job.next{border:2px solid var(--teal)}
#tech-day .td-job.done{background:#fafbfc;opacity:.8}
#tech-day .td-job.open{padding:12px 14px 14px}
#tech-day .td-head{min-height:60px}
#tech-day .td-label{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:none;padding:0;font:inherit;cursor:pointer;min-height:32px}
#tech-day .td-label span:first-child{font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--teal)}
#tech-day .td-time{font-size:20px;font-weight:800;color:var(--ink);margin-top:2px}
#tech-day .td-title{font-size:16px;font-weight:700;color:var(--ink)}
#tech-day .td-sub{font-size:14px;color:var(--mute);overflow-wrap:anywhere}
#tech-day .td-body{padding:0;border-top:0}
#tech-day .td-notes{background:#f4f6f8;border-radius:10px;padding:10px 12px;margin:10px 0}
#tech-day .td-drive{border-left:0;margin-left:16px;padding:2px 0 4px}
#tech-day .td-row .btn{border-radius:10px;font-weight:700}
#tech-day .td-row .btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}
#tech-day .td-tabs button.on{background:var(--teal)}

/* Suggest best slot, owner's design (2026-11-06) */
#sch-smart{background:#f5f6f8;min-height:100%}
#sch-smart .btn{border-radius:10px;font-weight:700}
#sch-smart .btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
#sch-smart .sm-grid{grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:18px}
#sch-smart .sm-card{border-radius:14px;padding:18px}
#sch-smart .sm-jobtop{display:flex;justify-content:space-between;align-items:center;gap:10px}
#sch-smart .sm-card h2{font-size:18px;font-weight:800;color:var(--ink);margin:0}
#sch-smart .sm-urgent,#sch-smart .sm-soon{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;padding:3px 8px;border-radius:6px;background:#fee2e2;color:#b91c1c;white-space:nowrap}
#sch-smart .sm-soon{background:#fef3c7;color:#92400e}
#sch-smart .sm-who{margin:6px 0 8px;font-size:14px;overflow-wrap:anywhere}
#sch-smart .sm-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}
#sch-smart .sm-chips span{background:#ecfdf5;color:#065f46;font-weight:700;padding:3px 10px;border-radius:999px}
#sch-smart .sm-chips em{font-style:normal;color:var(--mute)}
#sch-smart .sm-note{background:#f4f6f8;border-radius:10px;padding:10px 12px;margin:10px 0 0;font-size:13px;color:var(--mute)}
#sch-smart .sm-rec{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:4px 2px 10px}
#sch-smart .sm-rec h2{font-size:18px;font-weight:800;color:var(--ink);margin:0}
#sch-smart .sm-slot{padding:14px;border:1px solid var(--line);border-radius:14px;gap:14px}
#sch-smart .sm-slot[aria-pressed="true"]{border:2px solid #0f766e;box-shadow:none;background:#f0fdfa}
#sch-smart .sm-score{flex:0 0 46px;height:46px;border-radius:12px;font-size:18px}
#sch-smart .sm-score.hi{background:#dcfce7;color:#166534}
#sch-smart .sm-score.ok{background:#fef3c7;color:#92400e}
#sch-smart .sm-score.lo,#sch-smart .sm-slot.over .sm-score{background:#fee2e2;color:#b91c1c}
#sch-smart .sm-label,#sch-smart .sm-slot.over .sm-label{color:var(--mute)}
#sch-smart .sm-body>b{font-size:15.5px;color:var(--ink)}
#sch-smart .sm-tech{display:block;font-size:13.5px}
#sch-smart .sm-meta{font-weight:500;color:var(--mute);font-size:13px}
#sch-smart .sm-actions{margin:10px 0}
#sch-smart .sm-actions .btn{flex:1 1 auto}
#sch-smart .sm-route{font-size:18px;margin:0 0 12px!important}
#sch-smart .sm-map{height:400px;border-radius:12px}
#sch-smart .sm-stats{gap:12px}
#sch-smart .sm-stats div{border-radius:12px;padding:10px 14px}
#sch-smart .sm-stats b{font-size:20px;font-weight:800;color:var(--ink)}
#sch-smart .sm-stops{margin:0}
#sch-smart .sm-stops li{display:grid;grid-template-columns:58px 28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0}
#sch-smart .sm-stops li.new{background:none}
#sch-smart .sm-n{flex:none;width:24px;height:24px;border-radius:50%;background:#0f766e;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center}
#sch-smart .sm-n.base{background:#6b7280}
#sch-smart .sm-n.new{background:var(--ink);border-radius:6px}
#sch-smart .sm-right{color:var(--mute);font-size:13px}
#sch-smart .sm-heatop{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
#sch-smart .sm-heatop h3{font-size:18px;font-weight:800;color:var(--ink);margin:0}
#sch-smart .sm-key{margin:0}
#sch-smart .sm-heat table{border-spacing:4px;width:100%}
#sch-smart .sm-heat tbody th{font-size:13px;font-weight:800;color:inherit}
#sch-smart .sm-heat td{padding:9px 4px;border-radius:8px;font-size:12px;min-width:44px;white-space:nowrap}
#sch-smart .light{background:#dcfce7}
#sch-smart .good{background:#fde68a}
#sch-smart .full{background:#b91c1c;color:#fff!important}
#sch-smart .sm-key span.full{color:#fff}
#sch-smart td.picked{outline:3px solid var(--ink);outline-offset:0;background:#dcfce7;color:#1e293b!important}
@media (max-width:1000px){#sch-smart .sm-grid{grid-template-columns:minmax(0,1fr)}#sch-smart .sm-map{height:260px}}

/* Job type box in the job form */
.sb-typefield{position:relative}
.sb-typelist{position:absolute;left:0;right:0;top:100%;z-index:5;margin-top:2px;background:#fff;border:1px solid var(--line-2);border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.16);max-height:260px;overflow:auto}
.sb-typelist[hidden]{display:none}
.sb-tp{display:block;width:100%;min-height:48px;padding:7px 12px;border:0;border-bottom:1px solid var(--line);background:#fff;font:inherit;text-align:left;cursor:pointer}
.sb-tp b,.sb-tp span{display:block}
.sb-tp:hover{background:#f1f5f9}
.sb-tp.add b{color:#2563eb}
.sb-tpnone{padding:10px 12px;margin:0}
.sb-over .field select[hidden]{display:none}

/* Customer page: Schedule button and Scheduled work card */
body:not(.sch-on) #cust-detail-schedule,#cust-detail-schedule[hidden]{display:none!important}
#cdz-sched{margin-bottom:16px}
.cs-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:7px 0;border:0;border-top:1px solid var(--line);background:none;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.cs-row:first-of-type{border-top:0}
.cs-when{min-width:0}
.cs-when b,.cs-when span{display:block;overflow-wrap:anywhere}
.cs-past summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--mute);padding:8px 0 2px}
#sch-board .sb-dup{font-style:normal;font-weight:800;color:#b91c1c}

/* Time grid, drop preview, resize and full screen */
#sch-board .sb-lane{background-image:linear-gradient(to bottom,#dde2e8 1px,transparent 1px),linear-gradient(to bottom,#eef1f4 1px,transparent 1px);background-size:100% 64px,100% 32px}
#sch-board .sb-hour{border-top:1px solid #e3e7ec;background-image:linear-gradient(to bottom,transparent 31px,#eef1f4 31px,#eef1f4 32px,transparent 32px)}
.sb-drop{position:absolute;left:3px;right:7px;z-index:6;box-sizing:border-box;background:rgba(37,99,235,.14);border:2px solid #2563eb;border-radius:9px;padding:3px 7px;font-size:12.5px;font-weight:800;color:#1d4ed8;pointer-events:none;overflow:hidden}
.sb-hoverline{position:absolute;left:0;right:0;height:0;border-top:1.5px solid #2563eb;pointer-events:none;z-index:0}
#sch-board .sb-hoverline{font-size:11px;font-weight:800;color:#1d4ed8;line-height:16px;padding-left:5px}
#sch-board .sb-job.sb-lifting{opacity:.4}
#sch-board .sb-rz{position:absolute;left:0;right:0;bottom:0;height:9px;cursor:ns-resize}
#sch-board .sb-rz::after{content:'';position:absolute;left:50%;bottom:2px;width:24px;height:3px;margin-left:-12px;border-radius:2px;background:var(--tc,#94a3b8);opacity:0;transition:opacity .1s}
#sch-board .sb-job:hover .sb-rz::after{opacity:.75}
.sb-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sb-quick label{font-size:12px;font-weight:700;color:var(--ink);min-width:0}
.sb-quick input,.sb-quick select{display:block;width:100%;box-sizing:border-box;margin-top:3px;min-height:40px;border:1px solid var(--line-2);border-radius:8px;padding:6px 8px;font:inherit;font-weight:500;background:#fff}
.sb-quick .wide{grid-column:1/-1}
body.sch-full #panel-schedule{left:0;top:0;bottom:0;right:0;z-index:10030}
body.sch-full #sch-board{padding:12px 18px}
body.sch-full #sch-board .sb-scroll{max-height:calc(100vh - 84px)}
#sch-board .sb-col{flex:1 0 165px;min-width:165px}
:is(#sch-settings,.sch-host) .sch-msg{border:1px solid var(--line);border-radius:10px;padding:6px 12px 10px;margin-bottom:6px;background:#fff}
:is(#sch-settings,.sch-host) .sch-msg textarea{display:block;width:100%;box-sizing:border-box;border:1px solid var(--line-2);border-radius:8px;padding:8px;font:inherit;font-size:14px}

/* Most of the page is the schedule (owner, 2026-11-06). Desktop only; phones keep the layout above. */
#sch-board .sb-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-2);border-radius:9px;background:#fff;cursor:pointer;color:var(--ink);padding:0}
#sch-board .sb-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:901px){
  #sch-board{padding:8px 14px 10px}
  #sch-board .sb-banner{padding:6px 12px;margin-bottom:6px;font-size:13px}
  #sch-board .sb-bar{margin-bottom:8px;gap:8px}
  #sch-board .sb-title{font-size:18px;margin:0 4px}
  #sch-board .sb-arrow{width:34px;height:34px;font-size:18px;border-radius:8px}
  #sch-board .sb-nav{gap:5px}
  #sch-board .sb-nav .btn.sm,#sch-board .sb-date{min-height:34px;height:34px;padding:0 10px;font-size:13px;border-radius:8px}
  #sch-board .btn{min-height:38px;padding:0 14px;font-size:14px}
  #sch-board .dsh-seg button{padding:5px 12px;font-size:13px}
  #sch-board .sb-actions{gap:6px}
  #sch-board .sb-main{grid-template-columns:minmax(0,1fr) 250px;gap:10px}
  #sch-board .sb-scroll{max-height:calc(100vh - 118px);border-radius:10px}
  #sch-board .sb-gutter{flex:0 0 50px}
  #sch-board .sb-head{height:62px;padding:7px 10px}
  #sch-board .sb-ava{flex:0 0 26px;height:26px;font-size:12px}
  #sch-board .sb-who{gap:7px}
  #sch-board .sb-whotext b{font-size:13.5px;line-height:1.2}
  #sch-board .sb-whotext .small{font-size:11px;line-height:1.2}
  #sch-board .sb-capline{margin-top:5px;font-size:11.5px;gap:7px}
  #sch-board .sb-tray{padding:10px;border-radius:10px}
  #sch-board .sb-tray h2{font-size:14px;margin-bottom:6px}
  #sch-board .sb-card{padding:6px 8px;font-size:12.5px;margin-bottom:4px;min-height:0}
  #sch-board .sb-hint{font-size:11.5px}
  #sch-board .sb-side{gap:8px;max-height:calc(100vh - 118px);overflow:auto}
  .sb-sidecard{padding:12px;border-radius:10px;font-size:13.5px}
  .sb-sidecard h2{font-size:16px}
  .sb-sidecard .sb-btns{gap:4px}
  .sb-sidecard .sb-btns .btn{min-height:36px;padding:2px 6px;font-size:12.5px}
  .sb-seeday{min-height:38px;margin-top:8px}
  body.sch-full #sch-board{padding:8px 12px}
  body.sch-full #sch-board .sb-scroll,body.sch-full #sch-board .sb-side{max-height:calc(100vh - 66px)}
  /* The Map tab: map and list both run the height of the page */
  #tm-root .tm-grid{grid-template-columns:minmax(0,1fr) 330px;gap:10px}
  #tm-root .tm-map{height:calc(100vh - 136px);min-height:360px;border-radius:10px}
  #tm-root .tm-cards{max-height:calc(100vh - 136px);gap:4px}
  #tm-root .tm-card{padding:6px 10px;gap:0;border-radius:8px;font-size:12.5px;line-height:1.3}
  #tm-root .tm-card .small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #tm-root .tm-who{font-size:13.5px}
  #tm-root .tm-state{font-size:12px}
  #tm-root .tm-note{margin:5px 0 0;font-size:12px}
  body.sch-full #tm-root .tm-map,body.sch-full #tm-root .tm-cards{max-height:none;height:calc(100vh - 92px)}
  body.sch-full #tm-root .tm-cards{max-height:calc(100vh - 92px)}
}

/* Zoom and a tighter Week view */
#sch-board .sb-grid{--h:64px}
#sch-board .sb-lane{background-size:100% var(--h),100% calc(var(--h) / 2)}
#sch-board .sb-hour{background-image:linear-gradient(to bottom,transparent calc(var(--h) / 2 - 1px),#eef1f4 calc(var(--h) / 2 - 1px),#eef1f4 calc(var(--h) / 2),transparent calc(var(--h) / 2))}
#sch-board .sb-zoom{display:inline-flex;border:1px solid var(--line-2);border-radius:9px;overflow:hidden;background:#fff}
#sch-board .sb-zoom button{width:34px;height:36px;border:0;background:none;font-size:18px;font-weight:700;color:var(--ink);cursor:pointer}
#sch-board .sb-zoom button+button{border-left:1px solid var(--line-2)}
#sch-board .sb-zoom button:disabled{opacity:.35;cursor:default}
@media (min-width:901px){
  #sch-board .sb-week{min-width:0;font-size:12px}
  #sch-board .sb-week th{padding:4px 6px;font-size:12px}
  #sch-board .sb-week tbody th{font-size:12.5px;width:110px;max-width:110px;overflow:hidden;text-overflow:ellipsis}
  #sch-board .sb-week td{padding:3px 4px;min-width:112px}
  #sch-board .sb-celltop{margin-bottom:2px;gap:4px}
  #sch-board .sb-celltop .small{font-size:11px}
  #sch-board .sb-celltop .sb-cap{height:5px}
  #sch-board .sb-wjob{padding:1px 5px;margin-bottom:2px;font-size:11.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:5px}
  #sch-board .sb-add{min-height:18px;line-height:1;font-size:12px;padding:0}
  #sch-smart{padding:8px 14px 12px}
  #sch-smart .sm-top{margin-bottom:6px}
  #sch-smart .sm-card{padding:12px;margin-bottom:8px}
  #sch-smart .sm-grid{gap:10px}
  #sch-smart .sm-slot{padding:8px 10px}
  #sch-smart .sm-slots{gap:5px}
  #sch-smart .sm-map{height:300px}
  #sch-smart .sm-stops li{padding:4px 0}
  #sch-smart .sm-stats{margin:8px 0}
  #sch-smart .sm-heat td{padding:5px 3px}
}
@media (min-width:901px){
  #sch-board .sb-week{table-layout:fixed;width:100%}
  #sch-board .sb-week thead th:first-child,#sch-board .sb-week tbody th{width:104px}
  #sch-board .sb-week td{min-width:0;overflow:hidden}
}

/* AI job review (js/scheduler/jobreview.js) */
#sch-review{padding:10px 16px 20px;background:#f5f6f8;min-height:100%}
#sch-review[hidden]{display:none}
#sch-review .btn{border-radius:10px;font-weight:700}
#sch-review .btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
#sch-review .sm-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.jr-err{color:#b91c1c;margin:0 0 6px}
.jr-err:empty{display:none}
.jr-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:12px;align-items:start}
.jr-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px;min-width:0}
.jr-card h2{font-size:16px;font-weight:800;color:var(--ink);margin:0 0 8px}
.jr-card h3{font-size:14px;font-weight:800;color:var(--ink);margin:10px 0 6px}
.jr-card>h3:first-child{margin-top:0}
.jr-title{font-size:20px!important;margin-bottom:2px!important}
.jr-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jr-photos figure{margin:0;min-width:0}
.jr-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}
.jr-photos figcaption{font-size:12.5px;margin-top:4px;color:var(--mute);overflow-wrap:anywhere}
.jr-photos figcaption b{display:block;color:var(--ink)}
.jr-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:8px}
#sch-review label{display:block;font-size:12.5px;font-weight:700;color:var(--ink);min-width:0}
#sch-review input,#sch-review select,#sch-review textarea{display:block;width:100%;box-sizing:border-box;margin-top:3px;min-height:42px;border:1px solid var(--line-2);border-radius:8px;padding:8px 10px;font:inherit;font-weight:500;background:#fff}
.jr-full{margin-top:8px}
.jr-check{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;background:#fffbeb;border-radius:8px;padding:8px 8px 8px 12px;margin:0 0 5px;color:#92400e;font-size:14px}
.jr-x{flex-shrink:0;width:28px;height:28px;margin:-4px 0;border:0;border-radius:6px;background:none;color:#92400e;font-size:18px;line-height:1;cursor:pointer}
.jr-x:hover{background:#fef3c7}
.jr-three{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.jr-three .jr-card{margin-bottom:0}
.jr-len{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.jr-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;flex-wrap:wrap}
.jr-foot .btn{min-height:46px}
.cs-acts{display:flex;gap:6px}
@media (max-width:900px){.jr-grid{grid-template-columns:minmax(0,1fr)}.jr-foot .btn{flex:1 1 auto}}

/* Drag handles between panes (js/scheduler/panes.js) */
.sb-split{display:none}
.sb-colgrip{display:none}
@media (min-width:901px){
  .sb-split{display:flex;align-items:center;justify-content:center;align-self:stretch;width:12px;cursor:col-resize;touch-action:none;border-radius:6px;user-select:none}
  .sb-split i{display:block;width:4px;height:44px;border-radius:3px;background:var(--line-2);transition:background .1s,height .1s}
  .sb-split:hover i,.sb-split.on i,.sb-split:focus-visible i{background:#2563eb;height:72px}
  .sb-split:focus-visible{outline:2px solid #2563eb}
  #sch-board .sb-main{grid-template-columns:minmax(0,1fr) 12px var(--sb-side-w,250px);gap:0}
  #sch-board .sb-area,#sch-board .sb-side{min-width:0}
  #tm-root .tm-grid{grid-template-columns:minmax(0,1fr) 12px var(--tm-list-w,330px);gap:0}
  #sch-smart .sm-grid{grid-template-columns:var(--sm-left-w,430px) 12px minmax(0,1fr);gap:0}
  .jr-grid{grid-template-columns:var(--jr-left-w,380px) 12px minmax(0,1fr);gap:0}
  #sch-board .sb-head{position:sticky}
  #sch-board .sb-colgrip{display:block;position:absolute;top:0;right:-7px;bottom:0;width:14px;z-index:5;cursor:col-resize;touch-action:none}
  #sch-board .sb-colgrip:hover,#sch-board .sb-colgrip.on{background:linear-gradient(to right,transparent 5px,#2563eb 5px,#2563eb 8px,transparent 8px)}
  #sch-board .sb-col{position:relative}
  #sch-board .sb-col:last-child .sb-colgrip{right:0}
  body.sb-resizing,body.sb-resizing *{cursor:col-resize!important;user-select:none!important}
  body.sb-resizing .sm-map,body.sb-resizing .tm-map{pointer-events:none}
}
@media (min-width:901px) and (max-width:1000px){#sch-smart .sm-grid{grid-template-columns:minmax(0,1fr)}#sch-smart .sb-split{display:none}}

/* Full screen: the board takes the width; details and Unassigned slide out as a drawer */
body.sch-full #sch-board .sb-main{grid-template-columns:minmax(0,1fr)}
body.sch-full #sch-board .sb-main>.sb-split,body.sch-full #sch-board .sb-main>.sb-side{display:none}
.sb-over.sb-peek{background:none;pointer-events:none}
.sb-peek .sb-drawer{pointer-events:auto;width:min(max(380px,var(--sb-side-w,380px)),100%);box-shadow:-10px 0 28px rgba(15,23,42,.2)}
.sb-peek.fresh .sb-drawer{animation:sb-slide .18s ease-out}
@keyframes sb-slide{from{transform:translateX(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.sb-peek.fresh .sb-drawer{animation:none}}
.sb-peek .sb-tray{border:0;padding:0}
#sch-board .sb-traybtn{white-space:nowrap}
.sb-over.sb-peek{top:56px}
.sb-peek .sb-drawer{height:calc(100vh - 56px);border-top-left-radius:12px}
/* Hover keeps white text readable */
.btn.sb-seeday:hover,.btn.sb-seeday:focus-visible{background:#148a7f;border-color:#148a7f;color:#fff}
#sch-board .btn.primary:hover,.sb-sidecard .btn.primary:hover,.sb-drawer .btn.primary:hover,#sch-smart .btn.primary:hover,#sch-review .btn.primary:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#tech-day .td-row .btn.primary:hover{background:#148a7f;border-color:#148a7f;color:#fff}

/* Area tab (js/scheduler/areasearch.js) */
#ar-root{--ar-green:#047857;--ar-green-bg:#ecfdf5;--ar-green-line:#a7f3d0}
#ar-root .ar-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:10px}
#ar-root .ar-f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--ink);min-width:0}
#ar-root .ar-f input,#ar-root .ar-f select{min-height:42px;padding:8px 10px;border:1.5px solid var(--line-2);border-radius:9px;font:inherit;font-size:15px;font-weight:500;background:#fff;color:var(--ink);box-sizing:border-box;width:100%}
#ar-root .ar-qf{flex:2 1 240px}
#ar-root .ar-tf{flex:1 1 170px;max-width:260px}
#ar-root .ar-go{min-height:42px;padding:0 20px}
#ar-root .ar-toggle{display:inline-flex;align-items:center;gap:8px;min-height:42px;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer;margin-left:auto}
#ar-root .ar-toggle input{position:absolute;opacity:0;width:1px;height:1px}
#ar-root .ar-track{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;flex-shrink:0;transition:background .15s}
#ar-root .ar-track::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
#ar-root .ar-toggle input:checked+.ar-track{background:var(--ar-green)}
#ar-root .ar-toggle input:checked+.ar-track::after{left:18px}
#ar-root .ar-toggle input:focus-visible+.ar-track{outline:2px solid #1d4ed8;outline-offset:2px}
#ar-root .ar-line{margin:0;font-size:14px;color:var(--ink)}
#ar-root .ar-err{color:#b91c1c;font-weight:700;padding:4px 2px 10px}
#ar-root .ar-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
#ar-root .ar-seg{display:inline-flex;border:1px solid var(--line-2);border-radius:8px;overflow:hidden;flex-shrink:0}
#ar-root .ar-seg button{border:0;background:#fff;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:700;color:var(--ink);cursor:pointer}
#ar-root .ar-seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
#ar-root .ar-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
#ar-root .ar-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1.5px solid var(--line-2);border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}
#ar-root .ar-chip i,#ar-root .ar-who i{width:11px;height:11px;border-radius:50%;flex-shrink:0;display:inline-block}
#ar-root .ar-chip em{font-style:normal;font-weight:500;color:#64748b;font-size:12px}
#ar-root .ar-chip[aria-pressed="false"]{opacity:.55;text-decoration:line-through}
#ar-root .ar-missing{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid #fcd34d;background:#fffbeb;border-radius:10px;margin-bottom:10px;font-size:13.5px}
#ar-root .ar-missing p{margin:0}
#ar-root .ar-missing ul{flex-basis:100%;margin:2px 0 0;padding-left:18px}
#ar-root .ar-link{border:0;background:none;padding:0;font:inherit;font-size:12.5px;font-weight:700;color:#1d4ed8;cursor:pointer;text-decoration:underline}
#ar-root .ar-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,46%);gap:14px;align-items:start}
#ar-root .ar-left{min-width:0}
#ar-root .ar-mapwrap{position:sticky;top:8px;display:flex;flex-direction:column;gap:10px}
#ar-root .ar-map{height:calc(100vh - 560px);min-height:300px;max-height:560px;border-radius:12px;overflow:hidden;background:#e8ecf1;border:1px solid var(--line);z-index:0}
#ar-root .ar-cal{border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px 10px}
#ar-root .ar-days{max-height:144px;overflow-y:auto}
#ar-root .ar-notice{margin-bottom:10px}
#ar-root .ar-week,#ar-root .ar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
#ar-root .ar-week span{text-align:center;font-size:11px;font-weight:700;color:#64748b;padding-bottom:3px}
#ar-root .ar-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;min-height:32px;padding:2px 1px;border:1.5px solid transparent;border-radius:7px;background:#f8fafc;font:inherit;color:#94a3b8;box-sizing:border-box;min-width:0}
#ar-root .ar-day b{font-size:11.5px;font-weight:600;white-space:nowrap}
#ar-root .ar-day.past{background:none;color:#cbd5e1}
#ar-root .ar-day.today{border-color:#94a3b8}
#ar-root button.ar-day{cursor:pointer;color:var(--ink)}
#ar-root button.ar-day b{font-weight:800}
#ar-root .ar-day.free{background:var(--ar-green-bg);border-color:var(--ar-green-line)}
#ar-root .ar-day.full{background:#f1f5f9;border-color:#cbd5e1}
#ar-root .ar-day.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
#ar-root .ar-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}
#ar-root .ar-dots i{width:7px;height:7px;border-radius:50%}
#ar-root .ar-key{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:6px 0 0;font-size:12px;color:#475569}
#ar-root .ar-key span{width:12px;height:12px;border-radius:3px;margin-left:8px;border:1.5px solid}
#ar-root .ar-key span:first-child{margin-left:0}
#ar-root .ar-key .free{background:var(--ar-green-bg);border-color:var(--ar-green-line)}
#ar-root .ar-key .full{background:#f1f5f9;border-color:#cbd5e1}
#ar-root .ar-key .ar-link{margin-left:auto}
#ar-root .ar-date{display:flex;align-items:baseline;gap:8px;margin:14px 0 6px;font-size:14.5px;font-weight:800;color:var(--ink)}
#ar-root .ar-date small{font-size:12px;font-weight:500;color:#64748b}
#ar-root #ar-list>.ar-date:first-child{margin-top:0}
#ar-root .ar-row{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:6px;cursor:pointer}
#ar-root .ar-row:hover{border-color:var(--line-2)}
#ar-root .ar-row.full{background:#f8fafc}
#ar-root .ar-rowtop{display:flex;align-items:center;gap:8px}
#ar-root .ar-who{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;font-weight:800;color:var(--ink);min-width:0}
#ar-root .ar-mi{font-size:12.5px;font-weight:700;color:#475569;white-space:nowrap}
#ar-root .ar-rowtop .ar-link{margin-left:auto;white-space:nowrap}
#ar-root .ar-job{margin:4px 0 7px;font-size:13px;color:#475569;overflow-wrap:anywhere}
#ar-root .ar-job em{font-style:normal;font-weight:700;color:var(--ink)}
#ar-root .ar-opens{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
#ar-root .ar-l{font-size:12px;font-weight:700;color:#64748b}
#ar-root .ar-open{min-height:32px;padding:4px 11px;border:1.5px solid var(--ar-green-line);border-radius:8px;background:var(--ar-green-bg);font:inherit;font-size:13px;font-weight:700;color:var(--ar-green);cursor:pointer}
#ar-root .ar-open:hover{background:var(--ar-green);border-color:var(--ar-green);color:#fff}
#ar-root .ar-none{font-size:13px;font-weight:700;color:#64748b}
#ar-root .ar-homes{margin-top:16px;padding-top:2px;border-top:1px solid var(--line)}
#ar-root .ar-foot{margin:10px 0 0}
#ar-root .ar-empty{padding:26px 18px;border:1px dashed var(--line-2);border-radius:12px;text-align:center;color:#475569;font-size:14px;background:#fff}
#ar-root .ar-empty b{color:var(--ink);font-size:15px}
#ar-root .ar-empty p{margin:8px 0 0}
#ar-root .ar-pin span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;box-sizing:border-box;border-radius:50%;color:#fff;font-size:11.5px;font-weight:800;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4)}
#ar-root .ar-pin.full span{opacity:.6}
#ar-root .ar-pin.home span{border-radius:7px;font-size:16px}
#ar-root .ar-pin.center span{font-size:15px}
@media (max-width:900px){
  #ar-root .ar-grid{grid-template-columns:minmax(0,1fr)}
  #ar-root .ar-mapwrap{position:static;order:-1}
  #ar-root .ar-map{height:280px;min-height:0}
  #ar-root .ar-grid.waiting .ar-mapwrap{display:none}
  #ar-root .ar-toggle{margin-left:0}
  #ar-root .ar-go{flex:1 1 100%}
}

/* Field techs see only their own jobs (My day), never the whole Schedule */
body.sch-tech [data-nav="schedule"],body.sch-tech #cust-detail-schedule{display:none!important}

/* Time off on the Schedule (board.js) and in Settings › Scheduler (settings.js) */
#sch-board .sb-off{position:absolute;left:0;right:4px;border-radius:8px;background:repeating-linear-gradient(135deg,#f1f5f9,#f1f5f9 8px,#e2e8f0 8px,#e2e8f0 16px);border:1px dashed #94a3b8;z-index:0;pointer-events:none;display:flex;align-items:flex-start;justify-content:center}
#sch-board .sb-off span{margin-top:6px;font-size:12px;font-weight:700;color:#475569;background:#fff;padding:1px 8px;border-radius:999px}
#sch-board .sb-offtag{display:inline-block;margin:2px 0 4px;padding:1px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:11.5px;font-weight:700}
:is(#sch-settings,.sch-host) .sch-timeoff{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
:is(#sch-settings,.sch-host) .sch-timeoff-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
:is(#sch-settings,.sch-host) .sch-timeoff-row small{display:block;color:#64748b}
:is(#sch-settings,.sch-host) .sch-timeoff-add{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:10px;align-items:end}
:is(#sch-settings,.sch-host) .sch-timeoff-add .wide{grid-column:1/-1}
:is(#sch-settings,.sch-host) .sch-timeoff-warn{margin-top:8px;padding:8px 12px;border-radius:9px;background:#fffbeb;border:1px solid #fcd34d;font-size:13px}

/* Settings › Scheduler cards (settings.js render, 2026-11-11 design) */
#panel-settings .panel-body #s-scheduler-card{background:transparent;border:0;box-shadow:none;padding:0}
#panel-settings .panel-body #s-scheduler-card>h3,#panel-settings .panel-body #s-scheduler-card>.s-card-body>p.small{display:none}
/* the page has its own cards now, so the old wrapper always stays open */
#panel-settings .panel-body #s-scheduler-card>.s-card-body{max-height:none!important;opacity:1!important;pointer-events:auto!important;overflow:visible}
:is(#sch-settings,.sch-host) .schp-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
:is(#sch-settings,.sch-host) .schp-top p{margin:0;color:var(--mute);font-size:14.5px;flex:1 1 260px}
:is(#sch-settings,.sch-host) .schp-tools{display:flex;gap:8px}
:is(#sch-settings,.sch-host) .schp-jump{display:none;gap:6px;overflow-x:auto;margin:0 0 12px;padding-bottom:2px}
:is(#sch-settings,.sch-host) .schp-jump button{flex:0 0 auto;padding:7px 12px;border:1px solid var(--line-2);border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
:is(#sch-settings,.sch-host) .schc{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;overflow:hidden;scroll-margin-top:12px}
:is(#sch-settings,.sch-host) .schc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px 20px;border:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
:is(#sch-settings,.sch-host) .schc-head b{display:block;font-size:17px;font-weight:800}
:is(#sch-settings,.sch-host) .schc-head small{display:block;font-size:13.5px;color:var(--mute);margin-top:2px;overflow-wrap:anywhere}
:is(#sch-settings,.sch-host) .schc-chev{width:10px;height:10px;border-right:2px solid #475569;border-bottom:2px solid #475569;transform:rotate(-135deg);margin:6px 4px 0;flex-shrink:0;transition:transform .15s}
:is(#sch-settings,.sch-host) .schc.shut .schc-chev{transform:rotate(45deg);margin-top:-4px}
:is(#sch-settings,.sch-host) .schc-head:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
:is(#sch-settings,.sch-host) .schc-body{border-top:1px solid var(--line)}
:is(#sch-settings,.sch-host) .schr{display:grid;grid-template-columns:minmax(180px,38%) minmax(0,1fr);gap:16px 28px;padding:18px 20px;border-bottom:1px solid var(--line)}
:is(#sch-settings,.sch-host) .schr:last-child{border-bottom:0}
:is(#sch-settings,.sch-host) .schr.schr-full{grid-template-columns:minmax(0,1fr);gap:10px}
:is(#sch-settings,.sch-host) .schr-l b{display:block;font-size:14.5px;font-weight:700;color:var(--ink)}
:is(#sch-settings,.sch-host) .schr-l small{display:block;font-size:13px;color:var(--mute);margin-top:3px;line-height:1.45}
:is(#sch-settings,.sch-host) .schr-c{min-width:0}
:is(#sch-settings,.sch-host) .schr-c input:not([type=checkbox]),:is(#sch-settings,.sch-host) .schr-c select{min-height:42px;box-sizing:border-box;width:100%;border:1px solid var(--line-2);border-radius:9px;padding:8px 12px;font:inherit;font-size:14.5px;background:#fff}
:is(#sch-settings,.sch-host) .schr-inline{display:flex;gap:10px;align-items:center}
:is(#sch-settings,.sch-host) .schr-inline input{flex:1}
:is(#sch-settings,.sch-host) .schr-add{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1.4fr) auto;gap:10px;align-items:end;margin-top:12px}
:is(#sch-settings,.sch-host) .schr-add .btn{min-height:42px}
:is(#sch-settings,.sch-host) .schr-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:is(#sch-settings,.sch-host) .schr-empty{margin:0;padding:12px 14px;border:1.5px dashed var(--line-2);border-radius:10px;color:var(--mute);font-size:13.5px}
:is(#sch-settings,.sch-host) .schr-band{padding:14px 20px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:13.5px;color:#334155}
:is(#sch-settings,.sch-host) .schr-band p{margin:0}
:is(#sch-settings,.sch-host) .schr-vars{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px!important}
:is(#sch-settings,.sch-host) .schr-vars code{padding:2px 7px;border:1px solid var(--line-2);border-radius:6px;background:#fff;font-size:12.5px}
:is(#sch-settings,.sch-host) .schr-sw{display:inline-flex;align-items:center;gap:10px}
:is(#sch-settings,.sch-host) .schr-swl{font-size:14px;font-weight:700;color:var(--ink);min-width:26px}
:is(#sch-settings,.sch-host) .schr .sch-msg{border:0;padding:0;margin:0;background:none;display:flex;flex-direction:column;gap:8px}
:is(#sch-settings,.sch-host) .schr-foot{display:flex;justify-content:flex-end;padding:14px 20px;background:#f8fafc}
#s-nav .s-subnav{display:none;flex-direction:column;margin:2px 0 6px 22px;padding-left:10px;border-left:2px solid var(--line)}
#s-nav button.on+.s-subnav{display:flex}
#s-nav .s-subnav a{padding:6px 8px;border-radius:7px;font-size:13.5px;color:var(--ink);text-decoration:none}
#s-nav .s-subnav a:hover{background:rgba(37,99,235,.07)}
@media (max-width:760px){
  :is(#sch-settings,.sch-host) .schp-jump{display:flex}
  :is(#sch-settings,.sch-host) .schr{grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}
  :is(#sch-settings,.sch-host) .schc-head{padding:14px 16px}
  :is(#sch-settings,.sch-host) .schr-band,:is(#sch-settings,.sch-host) .schr-foot{padding:12px 16px}
  :is(#sch-settings,.sch-host) .schr-add{grid-template-columns:minmax(0,1fr)}
  :is(#sch-settings,.sch-host) .schr-2{grid-template-columns:minmax(0,1fr)}
  :is(#sch-settings,.sch-host) .schr-inline{flex-direction:column;align-items:stretch}
  :is(#sch-settings,.sch-host) .schp-tools{width:100%}
  :is(#sch-settings,.sch-host) .schp-tools .btn{flex:1}
}
:is(#sch-settings,.sch-host) [data-o-times][hidden]{display:none}

/* Closer to the mockup (2026-11-11): one title row, blue card buttons, a calmer bottom bar */
#panel-settings .panel-body:has(> #s-scheduler-card:not(.snav-off)) > #s-section-title{display:none}
:is(#sch-settings,.sch-host) .schp-top{align-items:flex-start;margin:6px 0 18px}
:is(#sch-settings,.sch-host) .schp-title{flex:1 1 300px;min-width:0}
:is(#sch-settings,.sch-host) .schp-title h2{font-size:28px;font-weight:800;letter-spacing:-.01em;margin:0 0 4px;color:var(--ink)}
:is(#sch-settings,.sch-host) .schp-title p{margin:0;font-size:15px;color:var(--mute)}
:is(#sch-settings,.sch-host) .schp-tools .btn{min-height:40px;padding:8px 16px;border-radius:10px;background:#fff;font-weight:700}
:is(#sch-settings,.sch-host) .schc{border-radius:16px;margin-bottom:18px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
:is(#sch-settings,.sch-host) .schc-head{padding:18px 24px}
:is(#sch-settings,.sch-host) .schc-head b{font-size:19px}
:is(#sch-settings,.sch-host) .schc-head small{font-size:14px}
:is(#sch-settings,.sch-host) .schr{padding:20px 24px}
:is(#sch-settings,.sch-host) .schr-band{padding:16px 24px}
:is(#sch-settings,.sch-host) .schr-foot{padding:14px 24px}
:is(#sch-settings,.sch-host) .schr-l b{font-size:15px}
:is(#sch-settings,.sch-host) .schr-l small{font-size:13.5px}
:is(#sch-settings,.sch-host) .schr-c input:not([type=checkbox]),:is(#sch-settings,.sch-host) .schr-c select{min-height:44px;border-radius:10px}
:is(#sch-settings,.sch-host) .schr-inline .btn,:is(#sch-settings,.sch-host) .schr-add .btn{min-height:44px;padding:8px 18px;border-radius:10px;font-weight:700}
:is(#sch-settings,.sch-host) .btn.sch-blue{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
:is(#sch-settings,.sch-host) .btn.sch-blue:hover{filter:brightness(1.08)}
#s-nav .s-subnav a{font-size:14px;padding:7px 10px}
#s-settings-footer{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 20px;margin:20px 0 8px;box-shadow:0 -2px 10px rgba(15,23,42,.04);gap:10px}
#s-settings-footer>span{order:0;margin-left:0!important;display:inline-flex;align-items:center;gap:8px;font-size:13.5px}
#s-settings-footer>span::before{content:"";width:9px;height:9px;border-radius:50%;background:#16a34a;flex-shrink:0}
#s-settings-footer #s-reset{order:1;margin-left:auto;background:none;border-color:transparent;color:#b91c1c;font-weight:700}
#s-settings-footer #s-reset:hover{text-decoration:underline}
#s-settings-footer label[for="s-import"]{order:2}
#s-settings-footer #s-export{order:3}
#s-settings-footer #s-save{order:4}
@media (max-width:760px){
  :is(#sch-settings,.sch-host) .schp-title h2{font-size:24px}
  :is(#sch-settings,.sch-host) .schc-head{padding:14px 16px}
  :is(#sch-settings,.sch-host) .schr{padding:16px}
  :is(#sch-settings,.sch-host) .schr-band,:is(#sch-settings,.sch-host) .schr-foot{padding:12px 16px}
  #s-settings-footer{padding:10px 12px;border-radius:12px}
  #s-settings-footer>span{flex-basis:100%}
  #s-settings-footer #s-reset{margin-left:0}
  #s-settings-footer>.btn,#s-settings-footer>label.btn{flex:1 1 calc(50% - 10px);justify-content:center;text-align:center;margin:0}
}

/* Technician profile (js/scheduler/profile.js) */
:is(#sch-settings,.sch-host) .sch-profile-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:13.5px;color:#334155}
body.tp-open{overflow:hidden}
#tp-sheet{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.45);display:flex;justify-content:flex-end}
#tp-sheet .tp-panel{width:min(760px,100%);height:100%;background:#f4f5f7;display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(15,23,42,.2)}
#tp-sheet .tp-top{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid var(--line);font-weight:700;font-size:14px;color:#475569}
#tp-sheet .tp-main{flex:1;overflow-y:auto;padding:18px 20px 24px}
#tp-sheet .tp-hero{display:flex;align-items:center;gap:14px;margin-bottom:8px}
#tp-sheet .tp-hero h2{font-size:24px;font-weight:800;margin:0;color:var(--ink)}
#tp-sheet .tp-hero p{margin:2px 0 0;color:var(--mute);font-size:14px}
#tp-sheet .tp-dot{width:18px;height:18px;border-radius:50%;flex-shrink:0}
#tp-sheet .tp-private{margin:0 0 16px;padding:8px 12px;border-radius:10px;background:#eef4ff;color:#1e3a8a;font-size:13px}
#tp-sheet .tp-card{background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:14px;overflow:hidden}
#tp-sheet .tp-card>header{padding:14px 20px;border-bottom:1px solid var(--line)}
#tp-sheet .tp-card>header b{display:block;font-size:17px;font-weight:800;color:var(--ink)}
#tp-sheet .tp-card>header small{display:block;font-size:13px;color:var(--mute);margin-top:2px}
#tp-sheet .tp-body{padding:16px 20px}
#tp-sheet .tp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
#tp-sheet .tp-wide{grid-column:1/-1}
#tp-sheet .field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink)}
#tp-sheet .field input,#tp-sheet .field textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:44px;border:1px solid var(--line-2);border-radius:10px;padding:8px 12px;font:inherit;font-size:14.5px;background:#fff}
#tp-sheet .field textarea{min-height:80px;resize:vertical}
#tp-sheet .tp-hint{display:block;margin-top:4px;color:var(--mute);font-size:12.5px}
#tp-sheet .tp-read span{display:block;font-size:12.5px;font-weight:700;color:var(--mute)}
#tp-sheet .tp-read b{display:block;margin-top:4px;font-size:15px;overflow-wrap:anywhere}
#tp-sheet .tp-soon{margin:0;color:var(--mute);font-size:14px}
#tp-sheet .tp-foot{display:flex;align-items:center;gap:10px;padding:12px 18px;background:#fff;border-top:1px solid var(--line)}
#tp-sheet .tp-foot #tp-msg{flex:1;font-size:13.5px;color:#334155}
#tp-sheet .btn.sch-blue{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
@media (max-width:600px){
  #tp-sheet .tp-grid{grid-template-columns:minmax(0,1fr)}
  #tp-sheet .tp-main{padding:14px}
  #tp-sheet .tp-body{padding:14px 16px}
  #tp-sheet .tp-foot{flex-wrap:wrap}
  #tp-sheet .tp-foot #tp-msg{flex-basis:100%}
  #tp-sheet .tp-foot .btn{flex:1}
}
#tp-sheet .tp-top{padding-top:calc(12px + env(safe-area-inset-top))}
#tp-sheet .tp-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}

/* Profile: where they work, the required list, documents (profile.js) */
#tp-sheet .tp-checks{display:flex;flex-direction:column;gap:10px}
#tp-sheet .tp-check{display:flex;align-items:center;gap:10px;font-size:14.5px;color:var(--ink);cursor:pointer}
#tp-sheet .tp-check input{width:20px;height:20px;flex-shrink:0}
#tp-sheet .tp-reqs{display:flex;flex-direction:column;gap:8px}
#tp-sheet .tp-req{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
#tp-sheet .tp-req>i{width:12px;height:12px;border-radius:50%;flex-shrink:0;background:#94a3b8}
#tp-sheet .tp-req>div{flex:1;min-width:0}
#tp-sheet .tp-req b{display:block;font-size:14.5px}
#tp-sheet .tp-req b em{font-style:normal;font-weight:600;font-size:12px;color:var(--mute);margin-left:4px}
#tp-sheet .tp-req small{display:block;font-size:12.5px;color:var(--mute)}
#tp-sheet .tp-st{font-size:13px;font-weight:700;white-space:nowrap}
#tp-sheet .tp-req.tone-red{border-color:#fca5a5;background:#fef2f2}
#tp-sheet .tp-req.tone-red>i{background:#dc2626}
#tp-sheet .tp-req.tone-red .tp-st{color:#b91c1c}
#tp-sheet .tp-req.tone-yellow{border-color:#fcd34d;background:#fffbeb}
#tp-sheet .tp-req.tone-yellow>i{background:#d97706}
#tp-sheet .tp-req.tone-yellow .tp-st{color:#b45309}
#tp-sheet .tp-req.tone-green>i{background:#16a34a}
#tp-sheet .tp-req.tone-green .tp-st{color:#15803d}
#tp-sheet .tp-h{font-size:13.5px;font-weight:800;margin:18px 0 8px;color:var(--ink)}
#tp-sheet .tp-docs{display:flex;flex-direction:column;gap:8px}
#tp-sheet .tp-doc{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
#tp-sheet .tp-doc b{display:block;font-size:14.5px}
#tp-sheet .tp-doc small{display:block;font-size:12.5px;color:var(--mute);overflow-wrap:anywhere}
#tp-sheet .tp-doc-btns{display:flex;gap:6px;flex-shrink:0}
#tp-sheet .field select{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:44px;border:1px solid var(--line-2);border-radius:10px;padding:8px 12px;font:inherit;font-size:14.5px;background:#fff}
#tp-sheet .tp-addrow{display:flex;align-items:center;gap:12px}
#tp-sheet #tp-d-msg{font-size:13.5px;color:#334155}
:is(#sch-settings,.sch-host) .sch-paper{flex-shrink:0;margin-left:8px;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
:is(#sch-settings,.sch-host) .sch-paper.red{background:#fee2e2;color:#b91c1c}
:is(#sch-settings,.sch-host) .sch-paper.yellow{background:#fef3c7;color:#b45309}
:is(#sch-settings,.sch-host) .sch-paper.green{background:#dcfce7;color:#15803d}
@media (max-width:600px){
  #tp-sheet .tp-req{flex-wrap:wrap}
  #tp-sheet .tp-st{flex-basis:100%;order:3;padding-left:24px}
  #tp-sheet .tp-doc{flex-direction:column;align-items:stretch}
}

/* Home bases (settings.js offices, board.js menu) */
:is(#sch-settings,.sch-host) .schr-office{display:grid;grid-template-columns:minmax(130px,1fr) minmax(170px,1.4fr) minmax(130px,1fr) auto;gap:10px;align-items:center}
:is(#sch-settings,.sch-host) .schr-office.schr-sender{grid-template-columns:minmax(0,1fr) auto}
:is(#sch-settings,.sch-host) .schr-office-btns{display:flex;gap:6px}
:is(#sch-settings,.sch-host) .schr-office .btn{min-height:44px;padding:8px 16px;border-radius:10px;font-weight:700}
#sch-board .sb-base{max-width:180px}
@media (max-width:760px){:is(#sch-settings,.sch-host) .schr-office{grid-template-columns:minmax(0,1fr)}:is(#sch-settings,.sch-host) .schr-office-btns .btn{flex:1}}
/* Headings match the rest of Settings: page title like #s-section-title, card titles like .card h3 */
:is(#sch-settings,.sch-host) .schp-title h2{font-size:22px;font-weight:700;letter-spacing:0;line-height:1.2}
:is(#sch-settings,.sch-host) .schc-head b{font-size:17px;font-weight:600}
:is(#sch-settings,.sch-host) .schr-l b{font-size:14.5px;font-weight:600}
#tp-sheet .tp-hero h2{font-size:22px;font-weight:700}
#tp-sheet .tp-card>header b{font-size:17px;font-weight:600}
@media (max-width:760px){:is(#sch-settings,.sch-host) .schp-title h2{font-size:22px}}

/* No double booking (board.js) and job notes */
#sch-board .sb-here{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:4px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12.5px;font-weight:700;white-space:nowrap}
#sch-board .sb-hold{position:absolute;left:0;right:4px;border:2px dashed #2563eb;border-radius:8px;background:rgba(37,99,235,.06);z-index:1;pointer-events:none;display:flex;align-items:flex-start;justify-content:center}
#sch-board .sb-hold span{margin-top:6px;font-size:12px;font-weight:700;color:#1d4ed8;background:#fff;padding:1px 8px;border-radius:999px}
.sb-dbl{background:#fee2e2!important;color:#b91c1c!important}
.sb-jn{display:flex;flex-direction:column;gap:8px}
.sb-jn textarea{width:100%;box-sizing:border-box;border:1px solid var(--line-2);border-radius:8px;padding:8px 10px;font:inherit;font-size:14px;resize:vertical}
.sb-jn .btn{align-self:flex-start}
.sb-jn-hint{margin:0}
.sb-jn-row{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;font-size:13.5px}
.sb-jn-row p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Finish job (finish.js) */
body.fj-open{overflow:hidden}
#fj-sheet{position:fixed;inset:0;z-index:10060;background:#f4f5f7;display:flex;flex-direction:column}
#fj-sheet .fj-bar{display:flex;align-items:center;gap:14px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:#1e2a44;color:#fff}
#fj-sheet .fj-bar small{display:block;font-size:13px;opacity:.75}
#fj-sheet .fj-bar b{display:block;font-size:19px}
#fj-sheet .fj-back{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;font-size:20px;cursor:pointer}
#fj-sheet .fj-main{flex:1;overflow-y:auto;padding:14px 14px 20px;max-width:720px;width:100%;margin:0 auto;box-sizing:border-box}
#fj-sheet .fj-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}
#fj-sheet .fj-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
#fj-sheet .fj-head h2{font-size:18px;font-weight:700;margin:0}
#fj-sheet .fj-head p{margin:4px 0 0;color:var(--mute);font-size:14px}
#fj-sheet .fj-chip{flex-shrink:0;padding:3px 10px;border-radius:999px;background:#d1fae5;color:#065f46;font-size:12px;font-weight:800;text-transform:uppercase}
#fj-sheet .fj-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px}
#fj-sheet .fj-h h3{font-size:16px;font-weight:700;margin:0}
#fj-sheet .fj-h span,#fj-sheet .fj-hint{font-size:13.5px;color:var(--mute)}
#fj-sheet .fj-hint{margin:-4px 0 10px}
#fj-sheet .fj-slot{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px}
#fj-sheet .fj-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
#fj-sheet .fj-thumb{width:64px;height:52px;border-radius:8px;background:#e2e8f0;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;font-size:12px;color:#64748b}
#fj-sheet .fj-thumb.empty{background:#fff;border:1.5px dashed #cbd5e1}
#fj-sheet .fj-thumb img{width:100%;height:100%;object-fit:cover}
#fj-sheet .fj-what{flex:1;min-width:0}
#fj-sheet .fj-what b{display:block;font-size:15px}
#fj-sheet .fj-what em{font-style:normal;font-size:13.5px;font-weight:700;color:var(--mute)}
#fj-sheet .fj-what em.ok{color:#15803d}
#fj-sheet .fj-what em.need{color:#b45309}
#fj-sheet .fj-x{border:0;background:none;font-size:22px;color:#94a3b8;cursor:pointer;padding:4px 8px}
#fj-sheet .fj-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#fj-sheet .fj-btns .btn{justify-content:center;min-height:46px;cursor:pointer;text-align:center}
#fj-sheet .fj-btns .btn.primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#fj-sheet .fj-add{display:block;text-align:center;padding:14px;border:1.5px dashed #cbd5e1;border-radius:12px;font-weight:700;cursor:pointer}
#fj-sheet textarea{width:100%;box-sizing:border-box;border:1px solid var(--line-2);border-radius:10px;padding:10px;font:inherit;font-size:15px}
#fj-sheet .fj-foot{display:flex;flex-direction:column;gap:8px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
#fj-sheet .fj-foot span{font-size:14px;color:#475569}
#fj-sheet #fj-done{min-height:52px;font-size:17px;font-weight:800;justify-content:center;background:#e2e8f0;color:#334155;border-color:#cbd5e1}
#fj-sheet #fj-done.ready{background:#15803d;border-color:#15803d;color:#fff}
#tech-day .td-fin{display:block;width:100%;margin-top:8px}
/* The finished job on the customer page (board.js doneBox) */
.cs-done{margin:4px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.cs-done-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;margin:0 0 10px;font-size:13.5px}
.cs-by{border:0;background:none;padding:0;color:#1d4ed8;text-decoration:underline;font:inherit;font-size:13px;cursor:pointer}
.cs-ph-row{display:flex;flex-wrap:wrap;gap:8px}
.cs-ph{position:relative;width:92px;height:72px;border:1px solid var(--line);border-radius:8px;background:#e2e8f0;padding:0;overflow:hidden;cursor:pointer}
.cs-ph img{width:100%;height:100%;object-fit:cover;display:block}
.cs-ph em{position:absolute;left:0;right:0;bottom:0;padding:2px 4px;background:rgba(15,23,42,.6);color:#fff;font-style:normal;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-inv{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:170px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left;cursor:pointer;font:inherit}
.cs-inv b{font-size:14px}
.cs-inv span{font-size:12.5px;color:var(--mute)}
.cs-done-foot{display:flex;flex-wrap:wrap;gap:4px 16px;margin:10px 0 0;font-size:12.5px;color:var(--mute)}
.cs-by-ul{margin:0;padding-left:18px;max-height:60vh;overflow:auto;font-size:14px;line-height:1.7}

/* Job history in the Schedule panel: folded shut, oldest first (board.js) */
.sb-hist{border:1px solid var(--line);border-radius:12px;margin:14px 0 10px;background:#fff}
.sb-hist summary{cursor:pointer;padding:10px 12px;list-style:none;display:flex;gap:8px;align-items:center;min-height:44px}
.sb-hist summary::-webkit-details-marker{display:none}
.sb-hist summary::before{content:"";width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:rotate(-45deg);transition:transform .15s;flex-shrink:0}
.sb-hist[open] summary::before{transform:rotate(45deg)}
.sb-hist-list{list-style:none;margin:0;padding:0 12px 10px;max-height:280px;overflow-y:auto;border-top:1px solid var(--line)}
.sb-hist-list li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.sb-hist-list li:last-child{border-bottom:0}
.sb-hist-list time{color:#64748b;font-size:12px}
.sb-hist-list li.ov b{color:#b45309}
.sb-hist-list q{display:block;margin-top:3px;padding:4px 8px;background:#fff7ed;border-left:3px solid #f59e0b;border-radius:4px;quotes:"\201C" "\201D"}
.sb-hist-list small{display:block;color:#64748b;margin-top:2px}

/* A job address that differs from the customer's (board.js) */
.sb-addrwarn{color:#b45309;font-weight:600}
small.sb-addrwarn{display:block;margin-top:4px;font-size:12.5px}
small.sb-addrwarn:empty{display:none}

/* Lanes in my order (board.js): drag a name, or Arrange */
.sb-who[draggable="true"]{cursor:grab}
.sb-col.sb-dragging{opacity:.55}
.sb-col.sb-dropl{box-shadow:inset 3px 0 0 #2563eb}
.sb-col.sb-dropr{box-shadow:inset -3px 0 0 #2563eb}
.sb-arrbtn{font-size:16px;min-width:40px}
.sb-arrange ol{list-style:none;margin:10px 0 14px;padding:0;max-height:55vh;overflow-y:auto}
.sb-arrange li{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line)}
.sb-arrange li b{flex:1}
.sb-arrange li .btn{min-width:44px;min-height:40px}
.sb-arrange .sb-ava{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:12px;flex-shrink:0}
