/* Mech Tech technician workspace: black / charcoal / white / brand red. Scoped to body.tw-on only. */
body.tw-on{--tw-ink:#f4f4f5;--tw-mute:#a1a1a8;--tw-bg:#0d0d0f;--tw-bg2:#17171a;--tw-line:#2a2a2f;--tw-red:#c62828;--tw-redbg:#c628281f}
body.tw-on .app-shell .sidebar,body.tw-on [data-act="toggle-menu"]{display:none!important}
body.tw-on .tech-bnav{display:none!important}
body.tw-on .app-shell .main{margin-left:var(--tw-left,0)!important;margin-right:var(--tw-right,0)!important;transition:margin .2s ease}
body.tw-dragging,body.tw-dragging *{user-select:none;cursor:col-resize!important}
body.tw-dragging .app-shell .main{transition:none}
.tw-panel,.tw-mbar,.tw-back{display:none}
body.tw-on .tw-panel{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;z-index:30;background:var(--tw-bg);color:var(--tw-ink);border-color:var(--tw-line);font-size:13px}
body.tw-on .tw-left{left:0;width:var(--tw-left);border-right:1px solid var(--tw-line)}
body.tw-on .tw-right{right:0;width:var(--tw-right);border-left:1px solid var(--tw-line)}
.tw-ph{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--tw-line);min-height:62px}
.tw-rail{border:0;background:var(--tw-bg2);color:var(--tw-ink);width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none;padding:0}
.tw-rail svg,.tw-x svg,.tw-mbar svg,.tw-ron svg{width:17px;height:17px}
.tw-rail-t{display:none}
.tw-rail:hover,.tw-rail:focus-visible{background:var(--tw-red)}
.tw-pt{display:flex;flex-direction:column;min-width:0;flex:1}
.tw-pt b{font-size:15px;letter-spacing:-.2px}
.tw-eye{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--tw-red);font-weight:800}
.tw-x{display:none;border:1px solid var(--tw-line);background:transparent;color:var(--tw-ink);border-radius:8px;width:36px;height:36px;place-items:center}
.tw-body{flex:1;overflow:auto;padding:12px;overscroll-behavior:contain}
.tw-grip{position:absolute;top:0;bottom:0;width:7px;cursor:col-resize;z-index:2}
.tw-left .tw-grip{right:-4px}.tw-right .tw-grip{left:-4px}
.tw-grip:hover,.tw-grip:focus-visible{background:linear-gradient(90deg,transparent 2px,var(--tw-red) 2px,var(--tw-red) 4px,transparent 4px);outline:none}
.tw-panel.is-collapsed .tw-pt,.tw-panel.is-collapsed .tw-grip{display:none}
.tw-panel.is-collapsed .tw-ph{flex-direction:column;border:0;padding:12px 10px}
.tw-panel.is-collapsed .tw-rail{height:auto;padding:10px 0;width:32px;gap:10px;display:flex;flex-direction:column;align-items:center}
.tw-panel.is-collapsed .tw-rail-t{display:block;writing-mode:vertical-rl;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.tw-acts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.tw-panel .btn.secondary{background:var(--tw-bg2);color:var(--tw-ink);border-color:var(--tw-line)}
.tw-panel .btn.teal{background:var(--tw-red)}
.tw-ro{background:var(--tw-bg2);border:1px solid var(--tw-line);border-left:3px solid var(--tw-red);border-radius:12px;padding:12px;margin-bottom:12px}
.tw-ro-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tw-ron{display:inline-flex;align-items:center;gap:5px;font-weight:850;font-size:12px;color:#fff;letter-spacing:.4px}
.tw-waiter{font-style:normal;background:var(--tw-red);color:#fff;border-radius:5px;padding:1px 6px;font-size:10px;text-transform:uppercase}
.tw-ro h3{margin:8px 0 10px;font-size:16px;line-height:1.25;color:#fff}
.tw-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0}
.tw-facts div{min-width:0}.tw-facts dt{font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:var(--tw-mute)}
.tw-facts dd{margin:1px 0 0;font-weight:650;overflow-wrap:anywhere}
.tw-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.tw-warn{color:#ff8a80}
.tw-complaint{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#0d0d0f;color:var(--tw-ink)}
.tw-complaint span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:var(--tw-red);font-weight:800}
.tw-return{display:flex;align-items:center;gap:10px;margin-top:10px}
.tw-here{margin-top:10px;font-size:11px;color:var(--tw-mute);text-transform:uppercase;letter-spacing:1px}
.tw-link{border:0;background:none;color:var(--tw-mute);text-decoration:underline;padding:4px}
.tw-sec{margin:0 0 14px}
.tw-sec h4{margin:0 0 7px;font-size:10.5px;text-transform:uppercase;letter-spacing:1.3px;color:var(--tw-mute);display:flex;gap:6px;align-items:center}
.tw-sec h4 span{background:var(--tw-bg2);border-radius:5px;padding:0 6px;color:var(--tw-ink)}
.tw-job .list-item{border:1px solid var(--tw-line);border-radius:10px;padding:10px;margin-bottom:7px;background:var(--tw-bg2)}
.tw-job .hint,.tw-job .tiny{color:var(--tw-mute)}
.tw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:6px}
.tw-tool{border:1px solid var(--tw-line);background:var(--tw-bg2);color:var(--tw-ink);border-radius:10px;padding:9px 10px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:48px;transition:border-color .15s,transform .15s}
.tw-tool b{font-size:12.5px}.tw-tool small{font-size:11px;color:var(--tw-mute);line-height:1.3}
.tw-tool:hover,.tw-tool:focus-visible{border-color:var(--tw-red);outline:none}
.tw-tool:active{transform:scale(.98)}
.tw-tl{list-style:none;margin:0;padding:0}.tw-tl li{padding:6px 0;border-top:1px solid var(--tw-line)}.tw-tl span{display:block;font-size:11px;color:var(--tw-mute)}
.tw-none{border:1px dashed var(--tw-line);border-radius:12px;padding:16px;text-align:left}.tw-none p{color:var(--tw-mute);margin:6px 0 12px}
.tw-empty{color:var(--tw-mute);margin:0}
.tw-hub{display:flex;flex-direction:column;gap:2px}
.tw-hubi{border:0;background:none;color:var(--tw-ink);text-align:left;padding:9px 10px;border-radius:8px;font-weight:600;position:relative}
.tw-hubi:hover,.tw-hubi:focus-visible{background:var(--tw-bg2);outline:none}
.tw-hubi.on{background:var(--tw-redbg);color:#fff}.tw-hubi.on:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--tw-red)}
/* mobile: two labelled launchers, one slide-out at a time */
@media(max-width:767px){
 body.tw-on .tw-panel{width:min(90vw,400px);transform:translateX(-104%);transition:transform .24s cubic-bezier(.2,.8,.2,1);z-index:60;visibility:hidden}
 body.tw-on .tw-right{transform:translateX(104%)}
 body.tw-on .tw-panel.is-open{transform:none;visibility:visible}
 body.tw-on .tw-grip,body.tw-on .tw-rail{display:none}
 body.tw-on .tw-x{display:grid}
 body.tw-on .tw-back:not([hidden]){display:block;position:fixed;inset:0;background:#000a;z-index:55}
 body.tw-on .tw-mbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:50}
 body.tw-on .tw-mbar button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:12px;border:1px solid #2a2a2f;background:#0d0d0f;color:#fff;font-weight:800;box-shadow:0 8px 24px #0004}
 body.tw-on .tw-mbar button[data-side="left"]{background:#c62828;border-color:#c62828}
 body.tw-on .tw-mbar button[aria-expanded="true"]{outline:2px solid #fff;outline-offset:2px}
 body.tw-on .app-shell .main{margin:0 0 76px!important}
 .tw-est input,.tw-est textarea,.tw-panel input,.tw-panel select,.tw-panel textarea{font-size:16px}
}
@media(prefers-reduced-motion:reduce){body.tw-on .tw-panel,body.tw-on .app-shell .main,.tw-tool{transition:none}}
/* invoice & estimate worksheet */
.tw-est{margin-top:4px;padding-top:12px;border-top:1px solid var(--tw-line)}
.twe-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.twe-h h4{margin:0;font-size:10.5px;text-transform:uppercase;letter-spacing:1.3px;color:var(--tw-mute)}
.twe-tag{font-size:10px;color:#ff8a80;border:1px solid #c6282855;border-radius:5px;padding:1px 6px}
.twe-form{display:flex;flex-direction:column;gap:9px}
.tw-est input,.tw-est textarea{background:#0d0d0f;border:1px solid var(--tw-line);color:var(--tw-ink);border-radius:8px;padding:7px 8px;font-size:16px;min-height:0}
.tw-est input:not([type=checkbox]),.tw-est textarea{min-width:0;width:100%;box-sizing:border-box}
.tw-est textarea{min-height:52px}
.tw-est input:focus,.tw-est textarea:focus{outline:2px solid var(--tw-red);outline-offset:0}
.twe-line{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:4px;padding:6px;border:1px solid var(--tw-line);border-radius:9px;margin-bottom:5px;position:relative;background:var(--tw-bg2)}
.twe-line input:first-child{grid-column:1/-1;padding-right:30px}
.twe-del{position:absolute;top:8px;right:8px;border:0;background:none;color:var(--tw-mute);font-size:16px;line-height:1}
.twe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.twe-grid label{min-width:0}
.twe-grid label,.twe-full{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--tw-mute)}
.twe-row{display:flex;flex-wrap:wrap;gap:6px}
.twe-file{position:relative;overflow:hidden}.twe-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.twe-l{font-size:11px;color:var(--tw-mute);margin-bottom:4px}
.twe-hint{display:block;color:var(--tw-mute);font-size:11px;line-height:1.35}
.twe-doc{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;background:var(--tw-bg2);border-radius:8px;padding:7px 9px}.twe-doc span{font-size:11px;color:var(--tw-mute)}
.twe-chk{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.35;margin:4px 0}.twe-chk input{width:16px;height:16px;flex:none;margin-top:2px}
.twe-note,.twe-warn{background:#e59b301c;border:1px solid #e59b3055;color:#f5c27a;border-radius:8px;padding:7px 9px;font-size:11.5px;margin:6px 0 0}.twe-warn{padding-left:22px}
.twe-err{background:#c628281f;border:1px solid #c6282866;color:#ffb4ac;border-radius:8px;padding:7px 9px;font-size:12px}
.twe-ok{background:#1b5e201f;border:1px solid #2e7d3266;color:#a5d6a7;border-radius:8px;padding:7px 9px;font-size:12px}
.twe-t{width:100%;font-size:11.5px;border-collapse:collapse}.twe-t td{padding:4px 2px;border-bottom:1px solid var(--tw-line);color:var(--tw-ink);background:none}.twe-t td:last-child{text-align:right;font-variant-numeric:tabular-nums}.twe-tot td{font-weight:850;border-bottom:0;color:#fff}
.twe-hist{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.twe-v{display:flex;flex-direction:column;gap:4px;background:var(--tw-bg2);border-radius:9px;padding:8px 10px}.twe-v span{font-size:11px;color:var(--tw-mute)}
.twe-vd{border:1px solid var(--tw-line);border-radius:8px;padding:6px 9px}.twe-vd summary{cursor:pointer;font-size:12px}.twe-vd a{color:#ff8a80;font-size:12px}
.twe-skel i{display:block;height:12px;border-radius:6px;background:var(--tw-bg2);margin:6px 0}.twe-skel i+i{width:60%}
@media(max-width:767px){body.tw-on .tw-panel button:not(.twe-del){min-height:44px}.twe-chk{min-height:44px}}
@media(max-width:767px){body.tw-on input,body.tw-on select,body.tw-on textarea{font-size:16px!important}}
body.tw-on #ea-lube .ea-note{background:#202124!important;color:#f3f3f5!important;border-color:#45464c;border-left-color:#b8323b}
body.tw-on #ea-lube .ea-phasebar,body.tw-on #ea-lube .ea-steps{flex-wrap:wrap;overflow-x:visible}
body.tw-on #ea-lube .ea-phasebar span,body.tw-on #ea-lube .ea-steps li{background:#292a2e!important;color:#d1d3d4!important;white-space:normal}
body.tw-on #ea-lube .ea-steps li{flex:1 1 105px;min-width:0}
body.tw-on #ea-lube .ea-phasebar .is-on,body.tw-on #ea-lube .ea-steps .is-on{background:#b8323b!important;color:#fff!important}
.tw-ext{float:right;font-size:10px;color:var(--tw-mute);text-transform:uppercase;letter-spacing:.8px}a.tw-hubi{text-decoration:none;display:block}
body.tw-on .app-shell .main{min-width:0}body.tw-on .app-shell .page{max-width:100%}
