/* Villa Motoring Centre – MOT Diary
   The page is drawn to look like the Forte-style paper diary on the desk. */
:root{
  --desk:#17191c;
  --paper:#f8f7f2;
  --paper-2:#f1efe7;
  --rule:#d8d9dc;
  --rule-strong:#b9bbc0;
  --gold:#b89a62;
  --gold-soft:#d9c7a1;
  --ink:#1d2c6b;          /* blue biro: bookings made in the office */
  --ink-web:#b4231c;      /* red biro: bookings made online */
  --pencil:#8b8f97;
  --navy:#1b3a6b;
  --navy-2:#2b5aa0;
  --text:#2a2c31;
  --muted:#6b6f78;
  --ok:#1f7a3f;
  --bad:#b4231c;
  --warn:#b7791f;
  --hand:"Segoe Print","Ink Free","Bradley Hand","Comic Neue","Comic Sans MS",cursive;
  --ui:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --tb-h:56px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--ui);color:var(--text);background:var(--desk);overflow:hidden;
  background-image:
    radial-gradient(ellipse at 20% 10%,rgba(255,255,255,.05),transparent 60%),
    radial-gradient(ellipse at 80% 90%,rgba(255,255,255,.035),transparent 55%),
    repeating-linear-gradient(45deg,rgba(255,255,255,.012) 0 2px,transparent 2px 5px);}
.hidden{display:none!important}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit}

/* ---------------- toolbar ---------------- */
.toolbar{height:var(--tb-h);display:flex;align-items:center;gap:16px;padding:0 16px;
  background:linear-gradient(#22262c,#1c1f24);border-bottom:1px solid #000;color:#e8e9ec;position:relative;z-index:5}
.tb-left,.tb-right{display:flex;align-items:center;gap:6px}
.tb-brand{display:flex;align-items:center;gap:8px;font-weight:600;letter-spacing:.02em;margin-right:10px;white-space:nowrap}
.tb-brand .flag{width:14px;height:22px}
.tb-search{flex:1;display:flex;justify-content:center}
.tb-search input{width:100%;max-width:520px;height:36px;border-radius:18px;border:1px solid #3a3f47;background:#2a2e35;
  color:#fff;padding:0 16px;outline:none}
.tb-search input:focus{border-color:var(--gold);background:#30353d}
.btn{height:34px;padding:0 12px;border-radius:8px;border:1px solid #3a3f47;background:#2a2e35;color:#e8e9ec;white-space:nowrap}
.btn:hover{background:#353a42}
.btn.icon{width:36px;padding:0;font-size:18px;position:relative}
.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.primary:hover{background:var(--navy-2)}
.ghost-date{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.seg{display:flex;border:1px solid #3a3f47;border-radius:8px;overflow:hidden;margin-left:6px}
.seg button{background:#2a2e35;border:0;color:#b9bcc3;height:32px;padding:0 10px}
.seg button.on{background:#444a54;color:#fff}
.pill{display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:16px;border:1px solid #3a3f47;
  background:#2a2e35;color:#cfd2d8;font-size:13px}
.pill i{width:9px;height:9px;border-radius:50%;background:#777}
.pill.ok i{background:#3ccf6e;box-shadow:0 0 6px #3ccf6e}
.pill.offline i{background:#9aa0a8}
.pill.error i{background:#e0a030}
.pill.not_setup i{background:#666}
.badge{position:absolute;top:-4px;right:-4px;background:#d33;color:#fff;font-size:11px;min-width:18px;height:18px;
  border-radius:9px;display:flex;align-items:center;justify-content:center;font-style:normal}

/* ---------------- desk & book ---------------- */
.desk{height:calc(100% - var(--tb-h));display:flex;align-items:center;justify-content:center;padding:18px 26px 26px}
.book{height:100%;width:100%;max-width:1900px;display:flex;position:relative;perspective:2400px}
.book.single{max-width:1050px}
.page{flex:1;min-width:0;background:var(--paper);position:relative;display:flex;flex-direction:column;
  padding:22px 30px 16px 30px;
  background-image:linear-gradient(90deg,rgba(0,0,0,.025),transparent 6%,transparent 94%,rgba(0,0,0,.03));}
.page.left{border-radius:10px 2px 2px 10px;
  box-shadow:-1px 0 0 #e6e3da,-3px 1px 0 #d8d4c9,-4px 1px 0 #ebe8df,-6px 2px 0 #d3cfc3,-7px 2px 0 #e8e5dc,-9px 3px 0 #cdc8bb,
             -10px 3px 0 #e3e0d6,-12px 4px 0 #c6c1b3,0 18px 40px rgba(0,0,0,.6)}
.page.right{border-radius:2px 10px 10px 2px;
  box-shadow:1px 0 0 #e6e3da,3px 1px 0 #d8d4c9,4px 1px 0 #ebe8df,6px 2px 0 #d3cfc3,7px 2px 0 #e8e5dc,9px 3px 0 #cdc8bb,
             10px 3px 0 #e3e0d6,12px 4px 0 #c6c1b3,0 18px 40px rgba(0,0,0,.6)}
.book.single .page{border-radius:10px;
  box-shadow:1px 0 0 #e6e3da,3px 1px 0 #d8d4c9,6px 2px 0 #d3cfc3,9px 3px 0 #cdc8bb,12px 4px 0 #c6c1b3,
             -1px 0 0 #e6e3da,-3px 1px 0 #d8d4c9,-6px 2px 0 #d3cfc3,0 18px 40px rgba(0,0,0,.6)}
.spine{width:28px;flex:0 0 28px;background:linear-gradient(90deg,#e9e6dc 0%,#cfcbbf 30%,#8e8a80 50%,#cfcbbf 70%,#e9e6dc 100%);
  position:relative;z-index:1}
.ribbon{position:absolute;left:50%;bottom:-38px;width:12px;height:70px;margin-left:-6px;z-index:2;
  background:linear-gradient(90deg,#7d6a3c,#b39a5c,#7d6a3c);clip-path:polygon(0 0,100% 0,100% 100%,50% 86%,0 100%)}
.book.single .ribbon{left:auto;right:60px}
.turn-next .page:last-of-type{animation:turnNext .32s ease}
.turn-prev .page:first-of-type{animation:turnPrev .32s ease}
@keyframes turnNext{0%{transform:rotateY(-16deg);transform-origin:left;opacity:.4}100%{transform:none;opacity:1}}
@keyframes turnPrev{0%{transform:rotateY(16deg);transform-origin:right;opacity:.4}100%{transform:none;opacity:1}}

/* page header */
.ph{display:flex;align-items:flex-start;gap:14px;height:86px;flex:0 0 auto;border-bottom:1px solid var(--rule)}
.ph-num{font-size:64px;line-height:.95;font-weight:300;color:var(--gold);letter-spacing:-2px;font-family:"Segoe UI Light","Segoe UI",var(--ui)}
.ph-meta{padding-top:6px}
.ph-dow{font-size:17px;color:#55585f}
.ph-week{font-size:11px;color:var(--muted);margin-top:2px}
.ph-month{font-size:22px;color:var(--gold);margin-top:2px}
.ph-today{margin-left:6px;margin-top:10px;font-size:11px;font-weight:700;letter-spacing:.1em;color:#fff;background:var(--gold);
  padding:3px 8px;border-radius:3px;height:fit-content}
.ph-actions{margin-left:auto;display:flex;gap:6px;padding-top:6px;opacity:0;transition:opacity .15s}
.page:hover .ph-actions{opacity:1}
.ph-actions button{border:1px solid var(--rule);background:#fff;color:var(--muted);border-radius:6px;font-size:12px;padding:3px 8px}
.ph-actions button:hover{color:var(--text);border-color:var(--rule-strong)}
.brand{display:flex;align-items:center;gap:8px;padding-top:4px}
.flag{width:18px;height:46px;flex:0 0 auto;
  background:conic-gradient(#2a2c31 0 25%,#d8d9dc 0 50%,#2a2c31 0 75%,#d8d9dc 0) 0 0/9px 9px}
.brand b{display:block;font:italic 900 34px/0.9 "Arial Black","Segoe UI Black",Impact,sans-serif;color:var(--navy);letter-spacing:-1px}
.brand small{display:block;font-size:9.5px;letter-spacing:.28em;color:#555;margin-top:3px}

/* grid */
.grid{flex:1;display:flex;flex-direction:column;min-height:0;margin-top:6px}
.cols{display:grid;grid-template-columns:var(--cols);flex:0 0 auto;border-bottom:1.5px solid var(--gold-soft);padding-bottom:3px}
.cols span{font-size:10.5px;font-weight:600;color:#55585f;text-align:center;letter-spacing:.02em;line-height:1.15}
.cols span small{display:block;font-size:8.5px;font-weight:400;color:var(--muted)}
.page{--cols:44px 1.3fr 1.35fr .85fr 58px}
.hours{flex:1;display:flex;flex-direction:column;min-height:0}
.hr{flex:1;display:flex;border-bottom:1px solid var(--rule-strong);min-height:0}
.hr-label{width:44px;flex:0 0 44px;font-size:10.5px;color:#55585f;padding:3px 0 0 2px}
.hr-label b{font-weight:600}
.hr-lines{flex:1;display:flex;flex-direction:column;min-width:0}
.line{flex:1;display:grid;grid-template-columns:1.3fr 1.35fr .85fr 58px;min-height:24px;position:relative;cursor:pointer;
  border-bottom:1px solid var(--rule)}
.line:last-child{border-bottom:0}
.line>div{border-left:1px solid var(--rule);padding:0 8px;display:flex;align-items:center;min-width:0;overflow:hidden;white-space:nowrap}
.line .c-cust,.line .c-veh,.line .c-mil{font-family:var(--hand);font-size:14px;color:var(--ink);gap:10px}
.line.web .c-cust,.line.web .c-veh,.line.web .c-mil{color:var(--ink-web)}
.line .c-mil{font-size:13px}
.line .c-mot{justify-content:center}
.line .sub{opacity:.85;font-size:.92em}
.line .ell{overflow:hidden;text-overflow:ellipsis}
.line.empty:hover{background:rgba(27,58,107,.05)}
.line.empty:hover .c-cust::after{content:"+ write a booking";font-family:var(--hand);color:var(--pencil);font-size:13px}
.line.past.empty{cursor:default}
.line.past.empty:hover{background:transparent}
.line.past.empty:hover .c-cust::after{content:""}
.line.closed{background:repeating-linear-gradient(135deg,transparent 0 7px,rgba(0,0,0,.035) 7px 8px);cursor:default}
.line.closed:hover .c-cust::after{content:""}
.line.blocked{background:repeating-linear-gradient(135deg,transparent 0 7px,rgba(183,121,31,.12) 7px 9px)}
.line.blocked .c-cust{font-family:var(--hand);color:var(--warn);font-size:13px}
.line.filled:hover{background:rgba(27,58,107,.06)}
.line.drag-over{background:rgba(184,154,98,.25)!important;outline:2px dashed var(--gold);outline-offset:-2px}
.line.dragging{opacity:.4}
.line.conflict{background:rgba(180,35,28,.09);border-top:1px dashed var(--bad)}
.line.conflict .c-mil::before{content:"⚠ ";color:var(--bad)}
.line.noshow .c-cust,.line.noshow .c-veh,.line.noshow .c-mil{text-decoration:line-through;text-decoration-thickness:1.5px;opacity:.7}
.line.highlight{animation:hl 2.2s ease}
@keyframes hl{0%,40%{background:rgba(184,154,98,.45)}100%{background:transparent}}
.webtag{font:700 8.5px var(--ui);color:#fff;background:var(--ink-web);padding:1px 4px;border-radius:3px;letter-spacing:.06em;flex:0 0 auto}
.stamp{font:800 10.5px var(--ui);letter-spacing:.08em;padding:1px 5px;border:2px solid;border-radius:3px;transform:rotate(-6deg)}
.stamp.pass{color:var(--ok);border-color:var(--ok)}
.stamp.fail{color:var(--bad);border-color:var(--bad)}
.stamp.arrived{color:var(--navy-2);border-color:var(--navy-2);font-size:9px}
.stamp.noshow{color:#777;border-color:#999;font-size:9px}
.dot-open{width:13px;height:13px;border:1.5px solid var(--rule-strong);border-radius:50%}
.sms-mark{font-size:10px;color:var(--muted);position:absolute;right:62px;top:50%;transform:translateY(-50%);font-family:var(--ui)}

/* closed day */
.closed-stamp{position:absolute;inset:40% 0 auto 0;text-align:center;font:900 64px var(--ui);color:rgba(184,154,98,.22);
  letter-spacing:.2em;transform:rotate(-10deg);pointer-events:none}

/* notes */
.notes{flex:0 0 auto;display:flex;gap:10px;align-items:flex-start;border-bottom:1px solid var(--gold-soft);padding:8px 0 6px;margin-top:2px}
.notes label{font-size:11px;font-weight:700;color:#55585f;padding-top:3px}
.notes textarea{flex:1;border:0;background:transparent;resize:none;height:40px;font-family:var(--hand);color:var(--ink);font-size:14px;outline:none;
  background-image:linear-gradient(transparent 19px,var(--rule) 20px);background-size:100% 20px;line-height:20px}
.cancelled-list{font-size:12px;color:var(--muted);max-width:42%;line-height:1.5}
.cancelled-list a{color:var(--muted);text-decoration:line-through;cursor:pointer;font-family:var(--hand);margin-right:8px}
.pf{flex:0 0 auto;display:flex;justify-content:space-between;align-items:flex-end;padding-top:8px;font-size:10px;letter-spacing:.32em;color:#3b3d42}
.pf span:last-child{letter-spacing:.15em}

/* ---------------- side panel ---------------- */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s;z-index:8}
.scrim.on{opacity:1;pointer-events:auto}
.panel{position:fixed;top:0;right:0;height:100%;width:480px;max-width:100%;background:#fbfaf6;z-index:9;transform:translateX(105%);
  transition:transform .22s ease;box-shadow:-10px 0 40px rgba(0,0,0,.45);overflow-y:auto;padding:26px 28px 40px}
.panel.wide{width:640px}
.panel.on{transform:none}
.panel-close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:28px;color:var(--muted)}
.panel h2{font-size:20px;margin:0 0 2px;font-weight:600}
.panel h3{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:24px 0 8px;font-weight:700}
.panel .sub{color:var(--muted);font-size:13px;margin-bottom:16px}
.card{background:#fff;border:1px solid #e4e2da;border-radius:10px;padding:16px;
  background-image:linear-gradient(transparent 31px,#eef0f4 32px);background-size:100% 32px;background-position:0 12px}
.fld{display:block;margin-bottom:12px}
.fld>span{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:4px}
.fld input,.fld select,.fld textarea{width:100%;border:1px solid #d6d4cc;border-radius:7px;padding:8px 10px;background:#fff;outline:none;font-size:15px}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--navy-2);box-shadow:0 0 0 3px rgba(43,90,160,.15)}
.fld textarea{min-height:70px;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.plate{font:700 26px/1 "Arial Black","Segoe UI Black",Arial,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;text-align:center;
  background:#f6d630!important;border:2px solid #222!important;border-radius:6px!important;padding:8px!important;color:#111}
.plate.sm{font-size:14px!important;padding:2px 8px!important;display:inline-block;border-width:1.5px!important;border-radius:4px!important}
.hint{font-size:12.5px;color:var(--muted);margin-top:4px}
.hint.found{color:var(--ok)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chip{border:1px solid #d6d4cc;background:#fff;border-radius:14px;padding:3px 10px;font-size:12.5px}
.chip:hover{border-color:var(--navy-2)}
.check{display:flex;gap:8px;align-items:flex-start;font-size:14px;margin:6px 0 12px}
.check input{margin-top:3px}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.panel .btn{background:#fff;color:var(--text);border-color:#d6d4cc}
.panel .btn:hover{background:#f2f1ec}
.panel .btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}
.panel .btn.primary:hover{background:var(--navy-2)}
.panel .btn.danger{color:var(--bad)}
.statuses{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.statuses button{border:1px solid #d6d4cc;background:#fff;border-radius:7px;padding:8px 4px;font-size:13px}
.statuses button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.statuses button.on.pass{background:var(--ok);border-color:var(--ok)}
.statuses button.on.fail{background:var(--bad);border-color:var(--bad)}
.err{color:var(--bad);font-size:13px;margin-top:8px;min-height:18px}
.list{border:1px solid #e4e2da;border-radius:10px;background:#fff;overflow:hidden}
.li{display:flex;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #efede6;cursor:pointer;font-size:14px}
.li:last-child{border-bottom:0}
.li:hover{background:#f6f5f0}
.li .grow{flex:1;min-width:0}
.li .muted{color:var(--muted);font-size:12.5px}
.empty-note{color:var(--muted);font-size:14px;padding:10px 0}
table.hist{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;border:1px solid #e4e2da;border-radius:10px;overflow:hidden}
table.hist th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:8px 10px;background:#f4f3ee}
table.hist td{padding:8px 10px;border-top:1px solid #efede6}
table.hist tr.click{cursor:pointer}
table.hist tr.click:hover td{background:#f6f5f0}
.res{font-weight:700;font-size:12px}
.res.pass{color:var(--ok)}.res.fail{color:var(--bad)}.res.noshow,.res.cancelled{color:#888}
.smslog{font-size:13px;color:var(--muted);line-height:1.7}
.smslog b{color:var(--text);font-weight:600}
.hours-tbl{width:100%;font-size:14px;border-collapse:collapse}
.hours-tbl td{padding:4px 6px}
.hours-tbl select{padding:5px;border-radius:6px;border:1px solid #d6d4cc}
.tabs{display:flex;gap:4px;border-bottom:1px solid #e4e2da;margin:14px 0 6px;flex-wrap:wrap}
.tabs button{border:0;background:none;padding:8px 10px;color:var(--muted);border-bottom:2px solid transparent;font-size:14px}
.tabs button.on{color:var(--navy);border-color:var(--navy);font-weight:600}
code.k{background:#eee;padding:1px 5px;border-radius:4px;font-size:12px}

/* ---------------- lock ---------------- */
.lock{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;
  background:rgba(15,17,20,.92);backdrop-filter:blur(6px)}
.lock-card{width:380px;background:var(--paper);border-radius:12px;padding:34px 32px;box-shadow:0 30px 80px rgba(0,0,0,.6);text-align:center}
.lock-brand{display:flex;gap:10px;align-items:center;justify-content:center;margin-bottom:10px}
.lock-brand b{display:block;font:italic 900 34px/0.9 "Arial Black",Impact,sans-serif;color:var(--navy);text-align:left}
.lock-brand small{display:block;font-size:9px;letter-spacing:.28em;color:#555;text-align:left}
.lock h1{font-weight:300;color:var(--gold);margin:10px 0 2px;font-size:30px}
.lock p{color:var(--muted);margin:0 0 18px}
.lock input{width:100%;padding:11px 14px;border-radius:8px;border:1px solid #d6d4cc;margin-bottom:10px;font-size:16px;outline:none}
.lock input:focus{border-color:var(--navy-2)}
.lock .btn{width:100%;height:44px;font-size:16px}

/* ---------------- toasts ---------------- */
.toasts{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:30;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{background:#22262c;color:#fff;padding:11px 16px;border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.4);font-size:14px;
  display:flex;gap:14px;align-items:center;animation:tin .2s ease}
.toast.web{border-left:4px solid var(--ink-web)}
.toast.bad{border-left:4px solid #e0a030}
.toast button{background:none;border:0;color:var(--gold-soft);font-weight:700}
@keyframes tin{from{transform:translateY(10px);opacity:0}}

/* ---------------- smaller screens ---------------- */
@media (max-width:1280px){
  .tb-brand span{display:none}
  .page{padding:18px 18px 12px}
  .line .c-cust,.line .c-veh{font-size:13px}
}

/* ---------------- print ---------------- */
@media print{
  @page{size:A4 landscape;margin:8mm}
  body{background:#fff;overflow:visible}
  .toolbar,.panel,.scrim,.toasts,.ribbon,.ph-actions,.lock{display:none!important}
  .desk{height:auto;padding:0;display:block}
  .book{height:185mm;box-shadow:none}
  .page{box-shadow:none!important;border:1px solid #ccc}
  .spine{background:#fff;width:6mm;flex-basis:6mm}
}

/* ---------------- logo ---------------- */
.brand-logo{height:84px;width:auto;margin-top:-6px;flex:0 0 auto}
.tb-brand img{height:34px;width:34px;border-radius:8px}
.lock-logo{height:130px;width:auto}
.remember{display:flex;gap:8px;align-items:center;justify-content:center;font-size:14px;color:var(--muted);margin:0 0 12px}
.remember input{width:auto;margin:0}

/* ---------------- remote (phone / home) ---------------- */
.remote-banner{background:#b7791f;color:#fff;text-align:center;font-size:14px;font-weight:600;padding:8px 14px}
body.remote .remote-banner:not(.hidden)~.desk{height:calc(100% - var(--tb-h) - 37px)}
.move-row{display:grid;grid-template-columns:1.3fr 1fr .8fr auto;gap:6px}
.move-row input,.move-row select{border:1px solid #d6d4cc;border-radius:7px;padding:7px 8px;background:#fff;min-width:0;font-size:14px}

/* ---------------- phone layout ---------------- */
@media (max-width:760px){
  :root{--tb-h:auto}
  body{overflow:auto}
  .toolbar{flex-wrap:wrap;height:auto;padding:8px 10px;gap:8px}
  .tb-left{flex:1;gap:4px}
  .tb-brand{margin-right:4px}
  .tb-brand span,#viewSeg,#printBtn,#calBtn span{display:none}
  .tb-search{order:3;flex-basis:100%}
  .tb-search input{max-width:none;height:40px;font-size:16px}
  .tb-right{gap:4px}
  .pill{padding:0 9px;font-size:12px}
  .btn{height:36px}
  .desk{height:auto;padding:10px 8px 40px;display:block}
  .book,.book.single{height:auto;max-width:none}
  .book .ribbon{display:none}
  .page,.book.single .page{padding:14px 12px 10px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
  .ph{height:auto;padding-bottom:6px}
  .ph-num{font-size:46px}
  .ph-dow{font-size:15px}.ph-month{font-size:18px}
  .ph-actions{display:none}
  .brand-logo{height:60px;margin-top:0}
  .page{--cols:34px 1.2fr 1fr 40px}
  .cols span:nth-child(4){display:none}
  .hr-label{width:34px;flex-basis:34px;font-size:10px}
  .line{grid-template-columns:1.2fr 1fr 40px;min-height:46px}
  .line .c-mil{display:none}
  .line>div{padding:4px 6px}
  .line .c-cust,.line .c-veh{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;font-size:13.5px;line-height:1.25}
  .line .c-cust .sub,.line .c-veh .sub{font-size:12px}
  .line .ell,.line .sub{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .line.empty:hover .c-cust::after{content:""}
  .sms-mark{display:none}
  .stamp{font-size:9px;padding:1px 3px}
  .notes{flex-wrap:wrap}
  .notes textarea{min-width:60%}
  .cancelled-list{max-width:100%}
  .pf{display:none}
  .closed-stamp{font-size:40px}
  .panel,.panel.wide{width:100%;padding:20px 16px 40px}
  .statuses{grid-template-columns:repeat(3,1fr)}
  .move-row{grid-template-columns:1fr 1fr}
  .row2{grid-template-columns:1fr 1fr}
  .remote-banner{font-size:13px}
  body.remote .remote-banner:not(.hidden)~.desk{height:auto}
  .toasts{left:10px;right:10px;transform:none}
}

@media (max-width:760px){
  .toolbar{position:sticky;top:0;z-index:6}
}
.panel button:disabled,.panel input:disabled,.panel select:disabled,.panel textarea:disabled{opacity:.55;cursor:not-allowed}
