/* The Delivery Calendar's delivery box, its settings, and Service, Parts & Internal on a booking (deallog.js, Nov 19, 2026) */

/* a delivery opens full size inside the calendar: the week gives way to its box */
#calendar.cal-boxon > :is(.cal-newrow, .inv-bar, .cal-statrow, .cal-list) { display: none !important; }
#calendar > .cal-det { position: static; inset: auto; z-index: auto; background: none; padding: 0; overflow: visible; display: block; }
#calendar > .cal-det[hidden] { display: none; }
#calendar > .cal-det > .cal-mbox { width: auto; max-width: none; margin: 8px 0 0; box-shadow: none; border: 1px solid #DCE1EA; border-radius: 14px; padding: 14px 16px 16px; }
#calendar > .cal-det .cal-mclose { position: static; display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 5px 12px; margin: 0 0 10px; border: 1px solid #C9D4F0; border-radius: 999px; background: #fff; color: var(--brand, #1F3A93); font: 600 12.5px Roboto, Arial, sans-serif; line-height: 1.2; cursor: pointer; }
#calendar > .cal-det .cal-mclose:hover { border-color: var(--brand, #1F3A93); }
.dbx { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(280px, 1.4fr) minmax(320px, 1.5fr); gap: 14px; margin-top: 12px; align-items: start; }
.dbx-col, .dbx-svc, .dbx-chat { background: #fff; border: 1px solid #E3E7EF; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.dbx-right { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; }
.dbx h4 { margin: 0 0 10px; font: 700 12.5px Roboto, Arial, sans-serif; color: #1B2333; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.dbx h5 { margin: 14px 0 6px; font: 700 11.5px Roboto, Arial, sans-serif; color: #5B6475; text-transform: uppercase; letter-spacing: .05em; }
.dbx .muted { color: #8A93A6; font-size: 13px; margin: 2px 0; }
.dbx-n { font-weight: 600; color: #5B6475; text-transform: none; letter-spacing: 0; font-size: 12px; background: #F1F3F7; border-radius: 999px; padding: 1px 8px; }
.dbx-ckh { margin: 12px 0 4px; font: 700 12px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); }
.dbx-chk h4 + .dbx-ckh { margin-top: 0; }
.dbx-ck { display: flex; align-items: flex-start; gap: 8px; padding: 4px 2px; font-size: 13.5px; cursor: pointer; }
.dbx-ck input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--brand, #1F3A93); }
.dbx-ck.on > span { color: #5B6475; }
.dbx-ck small { display: block; font-size: 11px; color: #8A93A6; }
.dbx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.dbx-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dbx-f > span { font-size: 11px; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; }
.dbx-f > b { font-size: 13.5px; font-weight: 600; color: #1B2333; overflow-wrap: anywhere; }
.dbx-in input, .dbx-in textarea { font: 13.5px Roboto, Arial, sans-serif; border: 1px solid #C9D1DA; border-radius: 7px; padding: 6px 8px; width: 100%; box-sizing: border-box; color: #1B2333; background: #fff; }
.dbx-in textarea { resize: vertical; }
.dbx-in input:focus, .dbx-in textarea:focus, .dbx-chat textarea:focus { outline: none; border-color: var(--brand, #1F3A93); box-shadow: 0 0 0 3px rgba(31, 58, 147, .15); }
.dbx-wide { grid-column: 1 / -1; }
.dbx-lien { font-size: 13.5px; line-height: 1.45; }
.dbx-more { margin-top: 14px; border-top: 1px solid #E3E7EF; padding-top: 10px; }
.dbx-more > summary { cursor: pointer; font: 600 12.5px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); }
.dbx-more .bk-grid, .dbx-more .bk-sec:has(.bk-lien) { display: none; } /* shown above, under Deal details */
.dbx-req { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.dbx-req th { text-align: left; font-size: 11px; font-weight: 600; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border-bottom: 1px solid #E3E7EF; }
.dbx-req td { padding: 6px; border-bottom: 1px solid #F1F3F7; vertical-align: top; }
/* a line of work ticked off (Nov 20, 2026): a green check on the line, with who ticked it and when */
.dbx-req .dbx-wck { width: 26px; padding-right: 0; }
.dbx-wck label { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; cursor: pointer; }
.dbx-wck input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.dbx-wck input:disabled { cursor: default; }
.dbx-tick { width: 16px; height: 16px; border: 1.5px solid #9AA3B5; border-radius: 4px; box-sizing: border-box; background: #fff; display: grid; place-items: center; }
.dbx-wck input:focus-visible + .dbx-tick { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
.dbx-wck input:checked + .dbx-tick { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #1E8449; }
.dbx-wck input:checked + .dbx-tick::after { content: ''; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.dbx-req tr.done td { background: #EEF8F1; }
.dbx-req tr.done td:nth-child(2) { color: #1E6B3A; font-weight: 500; }
.dbx-req td small { display: block; font-size: 11px; font-weight: 400; color: #5B7A66; }
.dbx-saved { margin-left: 8px; font-style: normal; font-weight: 600; color: #1E8449; text-transform: none; letter-spacing: 0; }
.dbx-pre { white-space: pre-wrap; font-weight: 400; }
.dbx-mlist { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; margin-bottom: 8px; }
.dbx-chat .rc-comp { border-top: 1px solid #E3E7EF; padding: 8px 0 0; }
.dbx-chat textarea { width: 100%; box-sizing: border-box; font: 13px Roboto, Arial, sans-serif; border: 1px solid #C9D1DA; border-radius: 8px; padding: 7px 9px; resize: vertical; }
.dbx-to { margin-top: 3px; font-size: 11px; color: #8A93A6; }
.dbx .rc-save { font: 700 12.5px Roboto, Arial, sans-serif; border-radius: 6px; padding: 6px 16px; cursor: pointer; border: 1px solid var(--brand, #1F3A93); background: var(--brand, #1F3A93); color: #fff; }
@media (max-width: 1180px) { .dbx { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .dbx-right { grid-column: 1 / -1; } }
@media (max-width: 700px) { .dbx { grid-template-columns: 1fr; } .dbx-grid { grid-template-columns: 1fr; } }

/* booking: Notify Service, Parts & Internal */
.bk-chk { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font: 600 13.5px Roboto, Arial, sans-serif; color: #1B2333; cursor: pointer; }
.bk-chk input { width: 16px; height: 16px; accent-color: var(--brand, #1F3A93); }
.bk-svc { border: 1px solid #E3E7EF; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; background: #FAFBFD; }
.bk-svch, .bk-svcr { display: grid; grid-template-columns: minmax(0, 1.6fr) 96px minmax(0, 1.4fr) 26px; gap: 6px; align-items: center; }
.bk-svch { font-size: 11px; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.bk-svcr { margin-bottom: 6px; }
.bk-svcr .bk-in { margin: 0; min-width: 0; width: 100%; box-sizing: border-box; }
.bk-svcx { border: 0; background: none; font-size: 18px; line-height: 1; color: #8A93A6; cursor: pointer; }
.bk-svcx:hover { color: #B42318; }

/* Settings */
.cs-box { width: min(640px, 100%); }
.cs-store { margin-bottom: 14px; }
.cs-sec { margin: 0 0 20px; }
.cs-sec h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 700 13.5px Roboto, Arial, sans-serif; color: #1B2333; }
/* Accessories and service work, and Customize Checklist, fold shut (Nov 20, 2026) */
.cs-tog { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 2px; margin-left: -2px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; cursor: pointer; }
.cs-tog:hover { background: #F1F4FA; }
.cs-tog:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 1px; }
.cs-chev { width: 15px; height: 15px; flex: none; fill: none; stroke: #5B6475; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cs-tog[aria-expanded="true"] .cs-chev { transform: rotate(90deg); }
.cs-n { min-width: 20px; padding: 1px 7px; border-radius: 10px; background: #EEF1F7; color: #5B6475; font: 600 11.5px Roboto, Arial, sans-serif; text-align: center; }
.cs-in[hidden] { display: none; }
.cs-sec.cs-shut { margin-bottom: 8px; }
.cs-sec.cs-shut h4 { margin-bottom: 0; }
.cs-sec.cs-shut + .cs-sec:not(.cs-shut) { margin-top: 12px; }
.cs-items { max-height: 300px; overflow: auto; padding-right: 2px; }
.cs-item, .cs-line, .cs-head { display: grid; gap: 6px; align-items: center; margin-bottom: 6px; }
.cs-item { grid-template-columns: minmax(0, 1fr) 110px 28px; }
.cs-head { grid-template-columns: minmax(0, 1fr) 28px; }
.cs-head .bk-in { font-weight: 700; }
.cs-line { grid-template-columns: 16px minmax(0, 1fr) 28px; margin-left: 16px; }
.cs-item .bk-in, .cs-line .bk-in, .cs-head .bk-in { margin: 0; min-width: 0; width: 100%; box-sizing: border-box; }
.cs-tick { width: 14px; height: 14px; border: 1.5px solid #9AA3B5; border-radius: 4px; }
.cs-group { margin-bottom: 10px; }
.cs-x { border: 0; background: none; font-size: 18px; line-height: 1; color: #8A93A6; cursor: pointer; }
.cs-x:hover { color: #B42318; }
.cs-plus { width: 34px; height: 34px; border-radius: 50%; border: 1px dashed var(--brand, #1F3A93); background: #fff; color: var(--brand, #1F3A93); font: 600 20px/1 Roboto, Arial, sans-serif; cursor: pointer; }
.cs-plus:hover { background: #F1F4FA; }
.cs-menu, .cs-newb { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.cs-newb { justify-content: flex-end; }
.cs-new { border: 1px solid #E3E7EF; border-radius: 10px; padding: 10px 12px; background: #FAFBFD; }
.cs-ntf { margin-bottom: 14px; position: relative; }
.cs-nh { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.cs-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid #C9D1DA; border-radius: 8px; padding: 5px 6px; background: #fff; }
.cs-pick:focus-within { border-color: var(--brand, #1F3A93); box-shadow: 0 0 0 3px rgba(31, 58, 147, .15); }
.cs-chip { display: inline-flex; align-items: center; gap: 4px; background: #E8EDFB; color: #1F3A93; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12.5px; font-weight: 600; }
.cs-chip button { border: 0; background: none; cursor: pointer; color: #5B6475; font-size: 14px; line-height: 1; }
.cs-pq { flex: 1; min-width: 140px; border: 0; outline: 0; font: 13px Roboto, Arial, sans-serif; padding: 4px; }
.cs-hits { position: absolute; left: 0; right: 0; z-index: 5; background: #fff; border: 1px solid #DCE1EA; border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 24, 39, .14); padding: 4px; margin-top: 4px; }
.cs-hits button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; font: 13px Roboto, Arial, sans-serif; color: #1B2333; }
.cs-hits button:hover, .cs-hits button:focus-visible { background: #F1F3F7; outline: none; }
.cs-pick .cs-pq:focus { outline: 0; box-shadow: none; border: 0; }
/* a store's Team invite emails switch (Settings › Invites) */
.cs-sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 600 13.5px Roboto, Arial, sans-serif; color: #1B2333; }
.cs-sw input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; margin: 0; flex: none; border-radius: 999px; background: #C9D1DA; position: relative; cursor: pointer; transition: background .15s; }
.cs-sw input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.cs-sw input:checked { background: var(--brand, #1F3A93); }
.cs-sw input:checked::after { left: 19px; }
.cs-sw input:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
/* booking: Notify Service, Parts & Internal in its own box, saying who's tagged (Nov 20, 2026) */
.bk-svcbox { border: 1px solid #DCE1EA; border-radius: 10px; padding: 9px 12px 10px; margin: 12px 0 8px; background: #fff; }
.bk-svcbox.on { border-color: var(--brand, #1F3A93); background: #F7F9FE; }
.bk-svcbox .bk-chk { margin: 0; }
.bk-svcwho { margin: 3px 0 0 24px; font-size: 12.5px; color: #5B6475; }
.bk-svcwho b { color: var(--brand, #1F3A93); font-weight: 600; }
.bk-svcbox .bk-svc { margin: 10px 0 0; }
.bk-bookwho { margin: 0 0 10px 2px; }

/* Attach RO (Nov 20, 2026): the ROs in Service RO / Work, and the prompt */
.dbx-ros { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dbx-ros li { border: 1px solid #E3E7EF; border-left: 3px solid #B42318; border-radius: 8px; padding: 8px 10px; background: #FFFAF9; }
.dbx-rof { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dbx-ron { font-weight: 600; font-size: 13px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.dbx-rot { font-size: 13px; margin: 4px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dbx-ros small { font-size: 11px; color: #6B7488; }
.bk-btn.sm { padding: 3px 9px; font-size: 12px; }
.dbx-roadd { margin: 0 0 12px; }
/* Files for the team on the booking (Nov 23, 2026): picked as chips, then in Service RO / Work with the ROs */
.bk-files .bk-fchips { display: flex; flex-wrap: wrap; gap: 4px; }
.bk-files .bk-fadd { align-self: flex-start; cursor: pointer; font-weight: 600; }
.dbx-ros li.dbx-bkf { border-left-color: #1F3A93; background: #F7F9FD; }
/* RO #, Quote #s and Work notes as entries (Nov 23, 2026): each saved one with who and when, a fresh spot below */
.dbx-ents { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dbx-ents li { border: 1px solid #E3E7EF; border-left: 3px solid #1F3A93; border-radius: 8px; padding: 6px 10px; background: #F7F9FD; }
.dbx-entb { font-size: 13px; overflow-wrap: anywhere; } .dbx-entb b { font-weight: 600; } .dbx-entb i { font-style: normal; color: #8A93A6; }
.dbx-ents small { font-size: 11px; color: #6B7488; }
.dbx-wrow { grid-template-columns: 1fr 1fr auto; align-items: end; margin-bottom: 12px; }
.dbx-wrow .dbx-wide { grid-column: 1 / 3; }
.dbx-wsave { align-self: end; margin-bottom: 2px; }
.dbx-wnh { font-size: 11px; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 6px; }
@media (max-width: 700px) { .dbx-wrow { grid-template-columns: 1fr; } .dbx-wrow .dbx-wide { grid-column: auto; } .dbx-wsave { justify-self: start; } }
.dbx-flash { animation: dbx-flash 1.8s ease-out; }
@keyframes dbx-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(180, 35, 24, .35); } 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); } }
.ro-box { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.gs-box.ro-box h3 { color: #1B2333; }
.ro-sub { color: #5B6475; font-size: 13px; margin: -2px 0 14px; }
.ro-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ro-l { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.ro-l > span { font: 600 11.5px Roboto, Arial, sans-serif; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; }
.ro-l textarea { font: 13.5px Roboto, Arial, sans-serif; border: 1px solid #C9D1DA; border-radius: 8px; padding: 8px 10px; resize: vertical; width: 100%; box-sizing: border-box; }
.ro-l textarea:focus, .ro-pick input:focus { outline: none; border-color: var(--brand, #1F3A93); box-shadow: 0 0 0 3px rgba(31, 58, 147, .15); }
.ro-file { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ro-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ro-file b { font-weight: 500; font-size: 13px; color: #1B2333; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-file input:focus-visible + .bk-btn { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
.ro-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.ro-pick { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.ro-pick input { font: 13.5px Roboto, Arial, sans-serif; border: 1px solid #C9D1DA; border-radius: 8px; padding: 8px 10px; }
.ro-hits { max-height: 180px; overflow: auto; border: 1px solid #E1E5EE; border-radius: 8px; display: flex; flex-direction: column; padding: 3px; }
.ro-hits button { all: unset; cursor: pointer; padding: 6px 9px; border-radius: 6px; font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; }
.ro-hits button small { color: #6B7488; font-size: 11.5px; }
.ro-hits button:hover, .ro-hits button.hi { background: #EEF2FB; }
.ro-hits .muted { margin: 6px 9px; }
.ro-plus { width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--brand, #1F3A93); background: #fff; color: var(--brand, #1F3A93); font: 600 18px/1 Roboto, Arial, sans-serif; cursor: pointer; }
.ro-plus:hover { background: #F1F4FA; }
.ro-err:empty { display: none; }

/* The delivery box (Nov 20, 2026): the name and buttons with the checklist across the top beside them, the deal and
   Service RO / work below, and the chat down the whole right side, its messages scrolling once they fill it */
.dbx.dbx-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "top top" "main chat"; gap: 14px; margin-top: 0; align-items: start; }
.dbx-shell > .dbx-toprow { grid-area: top; }
.dbx-shell > .dbx-two { grid-area: main; min-width: 0; }
.dbx-shell > .dbx-chatcol { grid-area: chat; }
.dbx-toprow { display: grid; grid-template-columns: minmax(240px, auto) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.dbx-top { min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; }
.dbx-top .cal-mhead { margin: 0; }
.dbx-top .cd-actions.in-modal { margin: 0; flex-wrap: wrap; }
.dbx-ckgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 18px; }
.dbx-ckg .dbx-ckh { margin-top: 0; }
.dbx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dbx-chatcol { position: sticky; top: 10px; min-width: 0; }
.dbx-chatcol .dbx-chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; box-sizing: border-box; }
.dbx-chatcol .dbx-mlist { flex: 1; max-height: none; min-height: 0; overflow-y: auto; }
.dbx-chatcol .rc-comp { flex: none; }
@media (max-width: 1180px) {
  .dbx.dbx-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "chat"; }
  .dbx-chatcol { position: static; }
  .dbx-chatcol .dbx-chat { height: 520px; min-height: 0; }
}
@media (max-width: 820px) {
  .dbx-toprow, .dbx-two { grid-template-columns: minmax(0, 1fr); }
}
/* the customer's email on a delivery: Open in Outlook or Gmail (Nov 20, 2026); the booking's two parts */
.bk-send .bk-mailt { font: 600 12px Roboto, Arial, sans-serif; color: #5B6475; text-transform: uppercase; letter-spacing: .04em; align-self: center; margin-right: 2px; }
.bk-send .bk-sp { flex: 1; }
.bk-sect { border: 1px solid #E3E7EF; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.bk-sect-cust { border-left: 3px solid #2E7D32; }
.bk-sect-team { border-left: 3px solid var(--brand, #1F3A93); }
.bk-h { margin: 0 0 6px; font: 700 12.5px Roboto, Arial, sans-serif; color: #1B2333; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; }
/* Open in Email (Nov 20, 2026): which email, asked once; and "change" beside it */
.gs-box.mail-pick { width: min(360px, calc(100vw - 32px)); }
.gs-box.mail-pick h3 { color: #1B2333; }
.mp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.mp-btns .bk-btn { justify-content: center; padding: 10px; font-size: 14px; }
.bk-to .bk-link { all: unset; cursor: pointer; color: var(--brand, #1F3A93); text-decoration: underline; }
.bk-to .bk-link:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }

/* Nov 21, 2026: the walkthroughs' fixes. These sit before index.html's styles, so most name #calendar to win. */
/* Book a delivery, beside Deleted and Settings; an empty time on the week books then too */
#calendar .cal-book { font: 600 13px Roboto, Arial, sans-serif; color: #fff; background: var(--brand, #1F3A93); border: 1px solid var(--brand, #1F3A93); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
#calendar .cal-book:hover { filter: brightness(1.1); }
#calendar .cal-book:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
#calendar .cal-book[hidden] { display: none; }
#calendar .wk-slot.bookable { cursor: pointer; }
#calendar .wk-slot.bookable:hover { background: rgba(31, 58, 147, .06); box-shadow: inset 0 0 0 1px rgba(31, 58, 147, .25); }
.bp-box { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.gs-box.bp-box h3 { color: #1B2333; margin-bottom: 2px; }
.bp-sub { color: #5B6475; font-size: 13px; margin: 0 0 12px; }
.bp-box .bk-l { margin-bottom: 10px; }
.bp-list { max-height: 300px; overflow: auto; border: 1px solid #E1E5EE; border-radius: 8px; padding: 3px; margin-bottom: 12px; display: flex; flex-direction: column; }
.bp-it { all: unset; cursor: pointer; padding: 7px 10px; border-radius: 6px; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: #1B2333; }
.bp-it small { color: #6B7488; font-size: 12px; }
.bp-it:hover, .bp-it.hi, .bp-it:focus-visible { background: #EEF2FB; }
.bp-list .muted { margin: 8px 10px; }
/* a card's Delivered and Delete: words, on their own line, Delete at the far end */
#calendar .wk-btn2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
#calendar .wk-btn2 .wk-a { width: auto; height: 26px; padding: 0 9px; font: 600 12px Roboto, Arial, sans-serif; border-radius: 5px; white-space: nowrap; }
#calendar .wk-btn2 .wk-a.ok { color: #1E6B3A; border-color: #9fd2b3; }
#calendar .wk-btn2 .wk-a.del { margin-left: auto; color: #B42318; border-color: #f1c0bb; }
#calendar .wk-card.done .wk-btn2 .wk-a.ok { color: #1E6B3A; background: #fff; border-color: #9fd2b3; }
#calendar .wk-card.done .wk-btn2 { margin-top: 4px; }
/* the day's Block time button, in words */
#calendar .wk-blkb { width: auto; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11px/20px Roboto, Arial, sans-serif; }
/* blocked-off time in its hours (Nov 28, 2026): the hours a block covers are shaded, its label in the first one */
#calendar .wk-slot.blk { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--f, #6B7280) 12%, #fff) 0 6px, color-mix(in srgb, var(--f, #6B7280) 5%, #fff) 6px 12px); }
#calendar .wk-slot.blk.all { background: repeating-linear-gradient(135deg, #FDECEA 0 6px, #FBE0DD 6px 12px); }
#calendar .wk-slot > .wk-blk { margin: 0; flex-wrap: wrap; row-gap: 2px; }
#calendar .wk-slot > .wk-blk span:not(.wk-blk-i) { white-space: normal; overflow: visible; }
/* the hours stay on the left and the day and FSM headings at the top while the week scrolls (the laptop opened scrolled right) */
#calendar .wk-slots > .wk-gut { position: sticky; left: 0; z-index: 3; }
#calendar .wk-slots > .wk-gut .wk-gh { z-index: 4; }
#calendar .wk.split.wk-slots .wk-colh { position: sticky; top: 41px; z-index: 2; background: #fff; }
#calendar .wk-lit { animation: dbx-flash 1.8s ease-out; }
/* a search's matches on other dates, each one a click to its week */
.wk-out { position: sticky; left: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; font-size: 12.5px; color: #7a5600; background: #FFF9E8; border-bottom: 1px solid #F3E3B5; }
.wk-jump { font: 600 12px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); background: #fff; border: 1px solid #C9D4F0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.wk-jump:hover { border-color: var(--brand, #1F3A93); }
/* a phone: the deliveries as a list by day, from today */
#calendar.cal-phlist .cal-week, #calendar.cal-phlist .cal-dates { display: none; }
.cal-phl { display: flex; flex-direction: column; gap: 12px; padding: 10px; }
.cal-phd h4 { margin: 0 0 6px; font: 700 12px Roboto, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--brand, #1F3A93); }
.cal-phd.today h4 { color: #8A5A00; }
.cal-phd .wk-card { margin-bottom: 8px; }
.cal-phd .wk-none { margin: 0; }
/* a phone's delivery page: a plain band stays at the top of the screen for the floating menu and chat buttons, and the
   delivery scrolls under it, so they never sit over its words */
html.phone #calendar.cal-boxon > .cal-det .cal-mbox::before { content: ''; display: block; position: sticky; top: 0; z-index: 20; height: 58px; margin: -14px -17px 4px; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 1px 0 #E3E7EF; }
/* a phone's deal screen: its booked delivery, a tap away */
.ph-booked { display: block; width: 100%; text-align: left; font: 14px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); background: #F1F4FA; border: 1px solid #C9D4F0; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; cursor: pointer; }
/* the deal # on a delivery opens the deal */
.dbx-open { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; color: #1B2333; }
.dbx-open span { font: 600 11.5px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); border: 1px solid #C9D4F0; border-radius: 999px; padding: 1px 8px; }
.dbx-open:hover span, .dbx-open:focus-visible span { border-color: var(--brand, #1F3A93); background: #F1F4FA; }
.dbx-lienw { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* what someone who doesn't book can't do here, and who does */
.cd-who { font-size: 12.5px; color: #5B6475; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bk-send .bk-none { font-size: 12.5px; color: #6B7488; align-self: center; }
/* the customer's email, to read before Open in Email */
.bk-prev { margin: 8px 0 4px; }
.bk-prev > summary { cursor: pointer; font: 600 12.5px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); }
.bk-prevb { margin-top: 6px; border: 1px solid #E3E7EF; border-radius: 8px; background: #FAFBFD; padding: 10px 12px; max-height: 320px; overflow: auto; }
.bk-prevs { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.bk-prevt { white-space: pre-wrap; font-size: 13px; line-height: 1.45; color: #1B2333; }
/* who's who beside a name: their job and store */
.rc-mention button small, .cs-hits button small { display: block; font-size: 11.5px; color: #6B7488; }
/* the SCHEDULED cell's Book */
#deallog .xl .sch-need { display: inline-block; padding: 0 8px; border: 1px solid #F1B5AE; border-radius: 999px; background: #FFF5F4; font-size: 11.5px; line-height: 17px; }
/* Delivery Calendar Settings: Save and Cancel always on screen; Add a line under each header; what was just added, lit */
.cs-back .bk-box.cs-box { max-height: calc(100vh - max(16px, 4vh) - 16px); }
.cs-back .cs-box > .bk-body { overflow: auto; min-height: 0; flex: 1 1 auto; }
.cs-back .cs-box > .bk-head, .cs-back .cs-box > .bk-foot { flex: none; }
.cs-back .cs-line { grid-template-columns: minmax(0, 1fr) 28px; }
.cs-addl { all: unset; cursor: pointer; margin: 0 0 4px 16px; font: 600 12.5px Roboto, Arial, sans-serif; color: var(--brand, #1F3A93); padding: 3px 6px; border-radius: 6px; }
.cs-addl:hover, .cs-addl:focus-visible { background: #F1F4FA; }
.cs-lit .bk-in { animation: cs-lit 1.6s ease-out; }
@keyframes cs-lit { 0%, 40% { background: #FFF4C2; border-color: #D9B44A; } 100% { background: #fff; } }
.gn-ok { margin-left: 8px; }
/* the booking form keeps its buttons on screen too */
.bk-formback > .bk-box { max-height: calc(100vh - max(16px, 4vh) - 16px); }
.bk-formback > .bk-box > .bk-body { overflow: auto; min-height: 0; }
