/* Viscose v3.8 — Factory screen, Bulk update, Customer accounts, Chat extras, Driver history */
/* chat extras */
.v38-mbtn{ border:0; background:transparent; color:#66705F; font-size:16px; line-height:1; padding:0 6px; margin-left:4px; cursor:pointer; border-radius:6px; font-weight:700; letter-spacing:1px; }
.v38-mbtn:hover, .v38-mbtn:focus-visible{ background:rgba(var(--accent-rgb,78,122,18),.12); color:var(--accent-deep,#2F4D07); }
.v38-star{ margin-left:4px; font-size:12px; }
.v38-menu{ position:fixed; z-index:9999; width:230px; background:#fff; border:1px solid #E3E8E0; border-radius:12px; box-shadow:0 12px 40px rgba(15,31,31,.18); padding:6px; display:flex; flex-direction:column; }
.v38-menu button{ border:0; background:none; text-align:left; padding:10px 12px; font:inherit; font-size:14px; border-radius:8px; cursor:pointer; color:#1F1E1D; }
.v38-menu button:hover{ background:var(--accent-soft,#EEF6DD); } .v38-menu .v38-danger{ color:#B42318; }
.v34-msg.v38-gone{ opacity:.85; } .v38-gonetext{ font-style:italic; color:#66705F; font-size:13.5px; padding-top:2px; }
.v38-fwdlist, .v38-starlist{ display:flex; flex-direction:column; gap:6px; max-height:60vh; overflow:auto; }
.v38-fwd, .v38-starrow{ text-align:left; border:1px solid var(--line,#E1E6DD); background:#fff; border-radius:10px; padding:10px 12px; font:inherit; cursor:pointer; }
.v38-fwd:hover, .v38-starrow:hover{ border-color:var(--accent-line,#C9E09A); background:#FBFDF9; }
.v38-startext{ margin:4px 0; font-size:14px; white-space:pre-wrap; }
/* factory board */
.ci-shell.v38-fshell{ max-width:1400px; } .v38-fshell .ci-main{ max-width:none !important; }
.v38-fhead{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:6px 0 12px; } .v38-fhead input{ flex:1; min-width:200px; max-width:420px; }
.v38-tabs{ display:none; gap:6px; overflow-x:auto; margin-bottom:12px; padding-bottom:2px; }
.v38-tab{ border:1.5px solid #E3E8E0; background:#fff; border-radius:999px; padding:9px 12px; font:inherit; font-size:13.5px; font-weight:600; white-space:nowrap; cursor:pointer; color:#3C3F3A; }
.v38-tab.on{ background:var(--forest,#0F1F1F); color:#fff; border-color:var(--forest,#0F1F1F); } .v38-tab .v38-n{ background:rgba(0,0,0,.08); }
.v38-tab.on .v38-n{ background:rgba(255,255,255,.22); }
.v38-n{ display:inline-block; min-width:22px; text-align:center; border-radius:999px; padding:1px 7px; font-size:12px; font-weight:700; background:#F2F4F1; }
.v38-board{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; align-items:start; }
.v38-col{ background:#F5F7F3; border-radius:14px; padding:10px; min-height:120px; }
.v38-col > header{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; padding:4px 4px 10px; flex-wrap:wrap; }
.v38-col > header .v38-all{ margin-left:auto; font-weight:500; font-size:12.5px; color:var(--sub,#5E6B66); display:flex; gap:5px; align-items:center; }
.v38-col-picked > header{ color:#2D5DB0; } .v38-col-process > header{ color:var(--accent-deep,#2F4D07); } .v38-col-ready > header{ color:#1E7A4C; } .v38-col-delivered > header{ color:var(--sub,#5E6B66); }
.v38-col-picked{ border-top:4px solid #3F80E0; } .v38-col-process{ border-top:4px solid var(--accent,#4E7A12); } .v38-col-ready{ border-top:4px solid #1E9E5C; } .v38-col-delivered{ border-top:4px solid #BCC1B8; }
.v38-job{ background:#fff; border:1px solid #E7ECE4; border-radius:12px; padding:11px 12px; margin-bottom:9px; box-shadow:0 1px 2px rgba(15,31,31,.04); }
.v38-job.sel{ border-color:var(--accent,#4E7A12); box-shadow:0 0 0 2px var(--accent-soft,#EEF6DD); }
.v38-job-h{ display:flex; align-items:flex-start; gap:8px; } .v38-job-h .v38-chk{ padding-top:1px; } .v38-tk{ font-size:15px; } .v38-cust{ font-weight:600; font-size:14px; min-width:0; flex:1; line-height:1.25; }
.v38-chk input{ width:18px; height:18px; accent-color:var(--accent,#4E7A12); margin:0; }
.v38-job-m{ font-size:13px; color:#4A4950; margin-top:5px; } .v38-job-note{ font-size:12.5px; color:var(--sub,#5E6B66); margin-top:5px; font-style:italic; }
.v38-job-step{ font-size:11.5px; color:#66705F; margin-top:6px; }
.v38-job-b{ display:flex; gap:6px; margin-top:9px; justify-content:flex-end; flex-wrap:wrap; } .v38-job-b .btn-primary{ flex:1; }
.v38-empty{ color:#66705F; font-size:13px; text-align:center; padding:16px 4px; margin:0; }
.v38-fbulk{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; background:var(--forest,#0F1F1F); color:#fff; padding:10px 12px; border-radius:12px; margin-bottom:12px; }
.v38-fbulk .btn{ background:#fff; }
@media (max-width:900px){ .v38-tabs{ display:flex; } .v38-board{ grid-template-columns:1fr; } .v38-col{ display:none; } .v38-col.on{ display:block; } .v38-col > header > span:first-child, .v38-col > header > .v38-n{ display:none; } .v38-col > header{ padding:0 4px 8px; min-height:0; } .v38-fshell .ci-h1{ font-size:22px; } }
/* bulk update */
.v38-bulkbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 4px; padding:8px 12px; background:#fff; border:1px solid var(--line,#E1E6DD); border-radius:12px; position:sticky; top:0; z-index:5; box-shadow:0 2px 8px rgba(15,31,31,.05); }
.v38-all{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; cursor:pointer; } .v38-all input{ width:17px; height:17px; accent-color:var(--accent,#4E7A12); margin:0; }
.ticket[data-v38row]{ position:relative; padding-left:44px !important; }
.v38-tchk{ position:absolute; left:14px; top:16px; z-index:2; } .v38-bchk{ width:18px; height:18px; accent-color:var(--accent,#4E7A12); cursor:pointer; margin:0; }
.ticket.v38-picked, tr.v38-picked td{ background:#F9FCF4 !important; } .ticket.v38-picked{ border-color:var(--accent-line,#C9E09A) !important; }
.v38-thchk, .v38-tdchk{ width:34px; text-align:center; }
.v38-stage{ display:inline-flex; align-items:center; gap:3px; font-size:11.5px; font-weight:600; padding:2px 8px; border-radius:999px; white-space:nowrap; vertical-align:middle; }
.v38-st-scheduled{ background:#F2F4F1; color:#585D54; } .v38-st-picked{ background:#EAF0FB; color:#2D5DB0; } .v38-st-process{ background:var(--accent-soft,#EEF6DD); color:var(--accent-deep,#2F4D07); } .v38-st-ready{ background:#E6F4EC; color:#1E7A4C; } .v38-st-delivered{ background:#EDEFEC; color:#585D54; }
.v38-bklist{ font-size:13px; color:#585D54; background:#F7F8F6; border-radius:10px; padding:8px 10px; margin:10px 0 4px; line-height:1.5; }
.v38-ostage{ margin:8px 0 4px; display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
/* customer accounts */
.v38-acctbtn{ white-space:nowrap; }
.v38-acct{ display:flex; gap:12px; justify-content:space-between; align-items:center; border:1px solid var(--line,#E1E6DD); border-radius:12px; padding:12px; margin-bottom:8px; flex-wrap:wrap; }
.v38-acct-b{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; } .v38-acct-b select{ max-width:230px; }
.v38-acctmodal{ max-width:760px !important; } .v38-acctmodal h3{ margin:16px 0 8px; font-size:15px; }
.v38-invite{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0; }
.v38-appreq{ background:#F9FCF5; border:1px solid var(--accent-soft,#EEF6DD); border-radius:10px; padding:8px 10px; margin:6px 0; font-size:13.5px; display:flex; flex-direction:column; gap:3px; }
.v38-apptag{ font-weight:700; color:var(--accent-deep,#2F4D07); font-size:12.5px; }
.v38-reqimg{ width:100%; max-width:260px; max-height:150px; object-fit:cover; border-radius:8px; margin-top:4px; }
/* driver history */
.v38-hist{ display:flex; flex-direction:column; gap:10px; background:#fff; border:1px solid var(--line,#E1E6DD); border-radius:14px; padding:12px 14px; margin:10px 0 12px; }
.v38-hist-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.v38-hist-row label{ display:flex; gap:6px; align-items:center; font-size:13.5px; font-weight:600; }
.v38-hist-row input[type=range]{ flex:1; min-width:180px; accent-color:var(--accent,#4E7A12); }
.v38-seg{ display:inline-flex; border:1px solid var(--line-strong,#CDD5C8); border-radius:10px; overflow:hidden; }
.v38-seg button{ border:0; background:#fff; padding:8px 12px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; color:#3C3F3A; }
.v38-seg button + button{ border-left:1px solid var(--line,#E1E6DD); } .v38-seg button.on{ background:var(--forest,#0F1F1F); color:#fff; }
.v38-clock{ min-width:150px; font-size:14px; }
.v38-days{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:4px 0 10px; font-size:13px; }
.v38-daychip{ border:1px solid #E3E8E0; background:#fff; border-radius:999px; padding:5px 10px; font:inherit; font-size:12.5px; cursor:pointer; } .v38-daychip span{ color:#66705F; } .v38-daychip.on{ border-color:var(--accent,#4E7A12); background:var(--accent-soft,#EEF6DD); font-weight:600; }
.v38-dayh{ margin:6px 0 8px; font-size:15px; }
.v38-warn{ color:#94600A; }

/* v3.8 dialogs open on top of the full-screen chat on phones */
.overlay.v38-ovl{ z-index:9800; }
