/* THE DAY BOARD - calendar day and the job editor's pick a day. v1453. */
.dbx{ font-family:Nunito,system-ui,Arial,sans-serif; }
.dbx-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; background:#fff; border:1px solid #e3e7f1; border-radius:14px; }
.dbx-in{ position:relative; }
.dbx-head{ display:flex; height:44px; border-bottom:1px solid #e3e7f1; position:sticky; top:0; background:#fff; z-index:5; }
.dbx-axis{ position:relative; flex:none; }
.dbx-q{ position:absolute; top:0; bottom:0; box-sizing:border-box; border:0; border-left:1px solid #eef1f8; background:transparent; padding:0; margin:0; font:inherit; display:flex; align-items:flex-end; }
.dbx-q span{ display:block; padding:0 0 7px 4px; font-size:10.5px; font-weight:800; color:#9aa2b6; white-space:nowrap; line-height:1; }
.dbx-q0{ border-left:1px solid #cfd6e6; }
.dbx-q2{ border-left:1px solid #e1e6f0; }
.dbx-q0 span{ position:absolute; top:7px; left:0; font-size:12.5px; font-weight:900; color:#16246b; padding:0 0 0 5px; }
button.dbx-q{ cursor:pointer; }
button.dbx-q:hover{ background:#eef2ff; }
button.dbx-q:hover span{ color:#2547d6; }
.dbx-who{ position:sticky; left:0; z-index:4; width:var(--lw); flex:none; box-sizing:border-box; padding:8px 12px; background:#fff; border-right:1px solid #e3e7f1; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.dbx-who b{ font-size:13.5px; font-weight:900; color:#16246b; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dbx-who span{ font-size:11.5px; font-weight:700; color:#6b7488; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dbx-corner{ font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; color:#6b7488; justify-content:flex-end; padding-bottom:8px; }
.dbx-row{ display:flex; border-bottom:1px solid #eef1f8; }
/* hour lines and quarter lines drawn from the same width as the labels above,
   so a job at 8:45 sits exactly under 8:45 */
.dbx-track,.dbx-flowtrack{ position:relative; flex:none; box-sizing:border-box;
  background-image:linear-gradient(to right,#dfe4ef 1px,transparent 1px),linear-gradient(to right,#e9edf5 1px,transparent 1px),linear-gradient(to right,#f4f6fa 1px,transparent 1px);
  background-size:var(--px) 100%, var(--px) 100%, calc(var(--px) / 4) 100%;
  background-position:0 0, calc(var(--px) / 2) 0, 0 0; }
.dbx-flowtrack{ display:flex; flex-wrap:wrap; align-content:flex-start; gap:6px; padding:6px; min-height:66px; background-image:none; background:#fbfcfe; }
.dbx-none{ font-style:normal; font-size:12px; font-weight:700; color:#a3abbd; align-self:center; padding-left:6px; }
.dbx-now{ position:absolute; top:0; bottom:0; width:2px; background:#e5484d; z-index:3; pointer-events:none; }
.dbx-bandbg{ position:absolute; top:0; bottom:0; background:#fff6ea; border-left:1px dashed #f0c48c; border-right:1px dashed #f0c48c; pointer-events:none; }
.dbx-grp{ position:relative; height:28px; display:flex; align-items:center; background:#f7f8fc; border-bottom:1px solid #e3e7f1; }
.dbx-grp span{ position:sticky; left:0; padding:0 12px; font-size:11px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; }
.dbx-g-w2 span{ color:#2547d6; } .dbx-g-hc span{ color:#3a8f1f; } .dbx-g-blk span{ color:#c96a12; } .dbx-g-open span{ color:#5d6784; }
.dbx-open .dbx-who{ background:#fafbfd; }
.dbx-open .dbx-who b{ color:#3b4459; }
.dbx-row.dbx-open{ border-bottom:2px solid #e3e7f1; }
/* the jobs */
.dbx .dbx-card{ position:absolute; box-sizing:border-box; text-align:left; align-items:stretch; min-width:0; margin:0; border-radius:9px; padding:6px 9px; display:flex; flex-direction:column; justify-content:center; gap:1px; overflow:hidden; z-index:2; cursor:pointer;
  border:1px solid #b6c8f5; background:#e4ecff; color:#1c3391; box-shadow:0 1px 2px rgba(20,30,60,.06); transition:box-shadow .12s, transform .12s; }
.dbx .dbx-card:hover{ box-shadow:0 6px 18px rgba(20,30,60,.16); z-index:4; }
.dbx .dbx-card b{ display:block; font-size:12.5px; font-weight:900; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:inherit; -webkit-line-clamp:unset; }
.dbx .dbx-card .dbx-sub{ display:block; font-size:11px; font-weight:700; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:.8; color:inherit; }
.dbx .dbx-card.sjb-hc{ border-color:#b3dda0; background:#e2f5da; color:#1f6410; }
.dbx .dbx-card.sjb-blk{ border-color:#f0c48c; background:#ffefdc; color:#8a5b12; }
.dbx .dbx-card.sjb-unclaimed{ border-style:dashed; }
.dbx .dbx-card.sjb-notok{ box-shadow:inset 4px 0 0 #e8862e; }
.dbx .dbx-card.sjb-done{ box-shadow:inset 4px 0 0 #57bd34; }   /* done: green bar. v1923 */
.dbx .dbx-card.sjb-done{ opacity:.6; }
.dbx .dbx-card.dbx-tight{ padding:5px 6px; }
.dbx .dbx-card.dbx-tight b{ font-size:11px; }
.dbx .dbx-card.dbx-tight .dbx-sub{ font-size:10px; }
.dbx .dbx-card.dbx-tiny{ padding:4px 3px; }
.dbx .dbx-card.dbx-tiny b{ font-size:10px; }
.dbx .dbx-card.dbx-tiny .dbx-sub{ display:none; }
.dbx .dbx-card.dbx-flow{ position:relative; left:auto; top:auto; flex:none; }
/* pick a day: every quarter hour of every row can be clicked */
.dbx-slots{ position:absolute; inset:0; display:flex; z-index:1; }
.dbx-slot{ flex:1 1 0; min-width:0; border:0; margin:0; padding:0; background:transparent; cursor:pointer; }
.dbx-slot:hover{ background:rgba(37,71,214,.12); box-shadow:inset 2px 0 0 #2547d6; }
/* the hover box */
.dbx-tip{ position:absolute; z-index:100001; background:#fff; border:1px solid #e3e7f1; border-left:3px solid #2547d6; border-radius:12px; box-shadow:0 12px 38px rgba(20,30,60,.20); padding:10px 13px; font-family:Nunito,system-ui,Arial,sans-serif; font-size:12.5px; color:#1a2235; max-width:320px; max-height:60vh; overflow:auto; pointer-events:auto; animation:dbxIn .12s ease-out; }
.dbx-tip.dbx-tip-sm{ padding:6px 10px; border-radius:9px; border-left-width:1px; background:#16246b; border-color:#16246b; color:#fff; box-shadow:0 8px 24px rgba(20,30,60,.25); pointer-events:none; max-width:260px; }
.dbx-tt{ font-weight:800; font-size:12px; line-height:1.35; white-space:pre-line; }
.dbx-tip .ct-n{ font-weight:900; color:#16246b; font-size:13.5px; line-height:1.3; }
.dbx-tip .ct-s{ font-weight:700; line-height:1.45; }
.dbx-tip .ct-sep{ height:1px; background:#e6e9f2; margin:8px 0; }
.dbx-tip .ct-kv{ display:grid; grid-template-columns:62px 1fr; gap:8px; line-height:1.4; padding:2px 0; }
.dbx-tip .ct-kv i{ font-style:normal; font-weight:800; color:#6b7488; }
.dbx-tip .ct-kv span{ font-weight:700; word-break:break-word; }
.dbx-tip .ct-a{ margin-top:6px; font-weight:900; color:#2f8c1d; }
.dbx-tip .ct-a.no{ color:#b5822f; }
@keyframes dbxIn{ from{ opacity:0; transform:translateY(3px); } to{ opacity:1; transform:none; } }
@media(max-width:760px){ .dbx-who{ padding:6px 8px; } .dbx-who b{ font-size:12.5px; } }
/* the arrival window the customer was given */
.dbx .dbx-card .dbx-win{ display:block; font-size:10.5px; font-weight:800; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#7c3aed; }
.dbx .dbx-card.dbx-tight .dbx-win,.dbx .dbx-card.dbx-tiny .dbx-win{ display:none; }
/* the time row stays put while the day scrolls under it */
.dbx.dbx-fit .dbx-scroll{ overflow:visible; }
.dbx.dbx-fit .dbx-head{ top:var(--dbx-top,0px); border-radius:14px 14px 0 0; }
/* the day note */
.dbx-note{ display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; background:#fffbea; border:1px solid #f1e3a6; border-radius:12px; padding:8px 12px; font-family:Nunito,system-ui,Arial,sans-serif; }
.dbx-note label{ flex:none; font-size:11px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; color:#8a6d12; line-height:36px; }
.dbx-note textarea{ flex:1 1 auto; min-width:0; min-height:36px; height:36px; box-sizing:border-box; resize:none; border:0; background:transparent; font:inherit; font-size:14px; font-weight:700; color:#1a2235; line-height:1.4; padding:8px 0; outline:none; }
.dbx-note textarea::placeholder{ color:#b9a65f; font-weight:700; }
.dbx-nst{ flex:none; font-size:11px; font-weight:800; line-height:36px; color:#9aa2b6; min-width:44px; text-align:right; }
.dbx-nst.ok{ color:#2f8c1d; } .dbx-nst.bad{ color:#b42318; }
