/* Viscose v3.16 — Back toast, short customer form, Driver sheet / Short sheet */
#v316-toast{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:rgba(25,32,28,.94);color:#fff;
  padding:12px 20px;border-radius:24px;font:600 15px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 6px 24px rgba(0,0,0,.25);
  opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:100000;width:max-content;max-width:88vw;text-align:center}
#v316-toast.show{opacity:1;transform:translate(-50%,0)}

/* short customer form */
.c316-form .c316-basic{display:flex;flex-direction:column;gap:12px}
.c316-form .c316-basic input,.c316-form .c316-whenbody input[type=date],.c316-form .c316-whenbody input[type=time]{min-height:46px;font-size:16px}
.c316-form .c316-basic .v34-type{margin:0}
.c316-form .c316-basic .v34-seg label{min-height:44px;display:inline-flex;align-items:center}
.c316-when{border:1px solid var(--line,#E2E6DF);border-radius:12px;padding:10px 12px;background:#FAFBF8}
.c316-when.on{border-color:var(--accent,#4E7A12);background:var(--accent-soft,#EEF6DD)}
.c316-check{display:flex;gap:12px;align-items:flex-start;cursor:pointer;min-height:44px}
.c316-check input{width:26px;height:26px;flex:0 0 26px;margin:2px 0 0;accent-color:var(--accent,#4E7A12)}
.c316-check span{display:flex;flex-direction:column;font-size:16px;line-height:1.25}
.c316-check small{font-size:12.5px;color:var(--sub,#667);font-weight:400;margin-top:2px}
.c316-whenbody{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.c316-whenbody[hidden]{display:none}
.c316-whenbody .v34-weekly{margin:0;padding:10px;border-radius:10px;background:#fff;border:1px solid var(--line,#E2E6DF)}
.c316-whenbody .v34-weekly[hidden]{display:none}
.c316-more{border:1px solid var(--line,#E2E6DF);border-radius:12px;background:#fff}
.c316-more>summary{list-style:none;cursor:pointer;padding:14px 12px;font-weight:700;font-size:15.5px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;min-height:48px;box-sizing:border-box}
.c316-more>summary::-webkit-details-marker{display:none}
.c316-more>summary::after{content:"▾";margin-left:auto;color:var(--sub,#667)}
.c316-more[open]>summary::after{content:"▴"}
.c316-more>summary small{font-weight:400;color:var(--sub,#667);font-size:12.5px}
.c316-morebody{padding:0 12px 12px;display:flex;flex-direction:column;gap:12px}
.c316-form #f-submit{min-height:50px;font-size:17px}

/* Settings → Google Sheet: which tabs */
.v316-tabs{display:flex;flex-direction:column;gap:8px;margin:8px 0 12px}
.v316-tab{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line,#E2E6DF);border-radius:10px;padding:10px 12px;background:#fff;cursor:pointer}
.v316-tab input{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0}
.v316-tab span{display:flex;flex-direction:column;gap:2px}
.v316-tab small{color:var(--sub,#667);font-size:12.5px}

/* Driver sheet / Short sheet: text wraps so a phone shows every column */
.sg.v316d .sg-table th,.sg.v316d .sg-table td{white-space:normal;max-width:none;vertical-align:top;overflow-wrap:anywhere}
.sg.v316d .sg-table td{font-size:13.5px;line-height:1.3;padding:7px 8px}
.sg.v316d .sg-table td:first-child{white-space:nowrap}
.sg.v316d .v316-cards{display:none}
@media (max-width:640px){
  .sg.v316d .sg-wrap{display:none}
  .sg.v316d .v316-cards{display:flex;flex-direction:column;gap:10px;margin:6px 0}
}
.v316-card{background:#fff;border:1px solid #DADFD7;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 2px rgba(0,0,0,.04);cursor:pointer}
.v316-ch{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px;color:var(--sub,#556)}
.v316-ch b{color:var(--ink,#1d2a22)}
.v316-stop{background:var(--accent-soft,#EEF6DD);color:var(--accent-deep,#2F4D07);font-weight:700;border-radius:20px;padding:3px 10px;font-size:13.5px;white-space:nowrap}
.v316-co{font-size:17px;font-weight:700;line-height:1.3;color:var(--ink,#1d2a22)}
.v316-ca{font-size:15.5px;line-height:1.3}
.v316-cp{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;min-height:44px;padding:0 14px;border-radius:22px;background:#F1F5EC;border:1px solid #DADFD7;font-size:16px;font-weight:600;color:var(--accent-deep,#2F4D07);text-decoration:none}

/* v3.16 Addresses from Rentopian — to approve */
.a316{max-width:860px}
.a316.busy{opacity:.6;pointer-events:none}
.a316-up{display:flex;flex-direction:column;gap:10px;padding:14px;margin:8px 0 12px}
.a316-file{align-self:flex-start;min-height:46px}
.a316-f{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;-webkit-overflow-scrolling:touch}
.a316-f .chip{white-space:nowrap;min-height:40px}
.a316-bar{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0}
.a316-bar input{flex:1 1 200px;min-height:46px;font-size:16px}
.a316-bar .btn{min-height:46px}
.a316-list{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.a316-card{background:#fff;border:1px solid #DADFD7;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.a316-card.a316-diff{border-color:#E8C46A;background:#FFFCF2}
.a316-h{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:17px}
.a316-m{font-size:13.5px;color:var(--sub,#556)}
.a316-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:520px){.a316-cols{grid-template-columns:1fr}}
.a316-a{display:flex;flex-direction:column;gap:2px;background:#F6F7F4;border-radius:10px;padding:8px 10px;font-size:15px;line-height:1.3}
.a316-a small{font-size:12px;color:var(--sub,#667);text-transform:uppercase;letter-spacing:.03em}
.a316-new{background:#EEF6DD}
.a316-empty{color:#B23B2E;font-style:italic}
.a316-btns{display:flex;gap:8px;flex-wrap:wrap}
.a316-btns .btn{min-height:46px;flex:1 1 140px}
.a316-chip{font-size:12.5px;border-radius:20px;padding:3px 9px;background:#EEE;white-space:nowrap}
.a316-chip.ok{background:#E3F2D5;color:#2F4D07}
.a316-more{margin:10px 0;background:#fff;border:1px solid #DADFD7;border-radius:12px;padding:10px 14px}
.a316-more summary{font-weight:600;min-height:32px;cursor:pointer}
.a316-small{font-size:14px;padding:6px 0;border-top:1px solid #EEF0EC}
.a316-go{margin:0 0 12px;min-height:46px}

/* v3.16 Simpler screens (switch simpleApp) */
.s316-acts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 18px}
@media (max-width:640px){.s316-acts{grid-template-columns:repeat(2,1fr)}}
.s316-act{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:92px;border-radius:16px;border:1px solid #DADFD7;background:#fff;font-size:16.5px;font-weight:700;color:var(--ink,#1d2a22);cursor:pointer;padding:10px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.s316-act span{font-size:28px;line-height:1}
.s316-act.s316-main{background:var(--accent,#5B8C1A);color:#fff;border-color:transparent}
.s316-act:active{transform:scale(.98)}
.s316-numbers{margin:18px 0;background:#fff;border:1px solid #DADFD7;border-radius:14px;padding:10px 14px}
.s316-numbers>summary{font-weight:700;font-size:16px;min-height:40px;display:flex;align-items:center;cursor:pointer}
/* ☰ Menu */
.v316-every{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:6px 0 14px}
.v316-every .v312-it{border:1px solid #DADFD7;border-radius:12px;background:#fff}
.v316-every .v312-go{min-height:52px;font-size:16px}
.v316-admin{border:1px solid #DADFD7;border-radius:12px;padding:8px 12px;background:#FAFBF8}
.v316-admin>summary{font-weight:700;font-size:15.5px;min-height:44px;display:flex;align-items:center;gap:6px;cursor:pointer}
.v316-admin>summary small{background:#E8ECE4;border-radius:10px;padding:1px 8px;font-weight:600}
/* New order */
.s316-more{border:1px solid #DADFD7;border-radius:12px;padding:8px 12px;background:#FAFBF8}
.s316-more>summary{font-weight:700;font-size:15.5px;min-height:46px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer}
.s316-more>summary small{font-weight:400;color:var(--sub,#667);font-size:12.5px}
.s316-more-body{display:flex;flex-direction:column;gap:14px;padding:8px 0 4px}
.three-col.s316-two{grid-template-columns:1fr 1fr}
.s316-on #modal-root #f-customer,.s316-on #modal-root #f-dateout,.s316-on #modal-root #f-duedate{min-height:48px;font-size:16px}
/* Driver */
.s316-drv #modeBanner,.s316-drv .save-bar,.s316-drv .route-panel>h2{display:none!important}
.s316-drv .start-panel:has(.start-current.set){display:none!important}
.s316-drv #map{height:170px!important}
.s316-drv .route-panel{display:flex;flex-direction:column}
.s316-drv #routeToolsBox{order:5;margin-top:12px;opacity:.85}
.s316-drv #stopsList .ticket .go-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.s316-drv #stopsList .ticket .go-btn,.s316-drv #stopsList .ticket .s316-call{min-height:56px;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;border-radius:14px}
.s316-drv #stopsList .ticket .s316-call{background:#EEF6DD;border:1px solid #CFE3A8;color:#2F4D07}
.s316-drv #stopsList .ticket .check-row{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.s316-drv #stopsList .ticket .check-item.s316-done{min-height:60px;font-size:19px;font-weight:800;border-radius:14px;justify-content:center}
.s316-drv #stopsList .ticket .media-row:empty{display:none}
.s316-drv #stopsList .ticket .s316-x{display:none;flex-direction:column;gap:8px;margin-top:8px}
.s316-drv #stopsList .ticket.s316-open .s316-x{display:flex}
.s316-drv #stopsList .ticket .s316-x>*{min-height:48px;font-size:16px}
.s316-morebtn{margin-top:10px;width:100%;min-height:44px;border-radius:12px;border:1px dashed #C9CFC4;background:transparent;font-size:15.5px;font-weight:600;color:var(--sub,#556)}
.s316-drv #stopsList .ticket .go-btn small{display:none}
