/* ConfirmLink theme (11/21): the DC Concierge look, so the two apps match.
 * From "DC Concierge look, for ConfirmLink" (Lissette's design guide). Loaded after
 * styles.css: every color and size the screens use comes from the names below.
 * Fonts: Bricolage Grotesque for headings and big numbers, DM Sans for everything else.
 * Status colors: amber = needs a look, red = cancel or problem, blue = replies, green = done.
 */
:root{
  /* brand (Renewal by Andersen) */
  --brand-green:#63BD60; --brand-green-soft:#E7F5E6; --green-dark:#2E7D32; --green-line:#9FD49C;
  --navy:#011B38;
  --amber:#F4B740; --amber-soft:#FFF3D6; --amber-ink:#8A5A00;
  --orange:#8A3F07; --orange-soft:#FCEBDD;
  --red:#A12626; --red-soft:#FBE6E6; --red-line:#E8C4C4;
  --blue:#2B56C9; --blue-dark:#1F3F99; --blue-soft:#E6ECFB;
  --head:#F3F6FA; --zebra:#F6F8FB; --row-hover:#EAF1FA; --line-3:#B9BFCC;
  --shadow-1:0 1px 2px rgba(1,22,34,.06), 0 2px 8px rgba(1,22,34,.05);
  --shadow-2:0 2px 4px rgba(1,22,34,.08), 0 10px 24px rgba(1,22,34,.09);
  --display:'Bricolage Grotesque','DM Sans',system-ui,sans-serif;
  --font:'DM Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --ctl-h:36px; --r-card:14px;

  /* ConfirmLink's own names, mapped onto the palette */
  --paper:#E9EEF5; --surface:#FFFFFF; --surface-2:#F3F6FA;
  --ink:#011622; --ink-2:#3A4152; --ink-3:#5A6275;
  --line:#DDE3EC; --line-soft:#EEF0F3;
  --call:var(--red); --call-wash:var(--red-soft);
  --reply:var(--amber-ink); --reply-wash:var(--amber-soft);
  --fail:var(--orange); --fail-wash:var(--orange-soft);
  --cancel:var(--red); --cancel-wash:var(--red-soft);
  --done:var(--green-dark); --done-wash:var(--brand-green-soft);
  --header-bg:var(--navy);
  --primary:#011622; --primary-ink:#FFFFFF;
  --brand-wash:#EAF1FA; --brand-wash-ink:#011B38;
  --sel-bg:#011622; --sel-ink:#FFFFFF;
  --shadow:var(--shadow-1);
  --r:10px; --r-lg:14px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0B1220; --surface:#121B2B; --surface-2:#18233A; --head:#18233A; --zebra:#141E31; --row-hover:#1D2A44;
    --ink:#E9EEF5; --ink-2:#C3CCD8; --ink-3:#9AA5B5; --line:#26324A; --line-soft:#1C2639; --line-3:#3A4763;
    --amber-ink:#F4C76A; --amber-soft:#3A2F14; --orange:#F2A56B; --orange-soft:#3A2517;
    --red:#F08A8A; --red-soft:#3A1E1E; --blue:#8FB0F5; --blue-dark:#B8CCF8; --blue-soft:#1A2746;
    --green-dark:#7FD3A0; --brand-green-soft:#16301F;
    --primary:#E9EEF5; --primary-ink:#0B1220; --sel-bg:#2B3B5C; --sel-ink:#FFFFFF;
    --brand-wash:#172540; --brand-wash-ink:#D6E4F8;
    --shadow-1:0 1px 0 rgba(0,0,0,.35), 0 8px 20px -14px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"]{
  --paper:#0B1220; --surface:#121B2B; --surface-2:#18233A; --head:#18233A; --zebra:#141E31; --row-hover:#1D2A44;
  --ink:#E9EEF5; --ink-2:#C3CCD8; --ink-3:#9AA5B5; --line:#26324A; --line-soft:#1C2639; --line-3:#3A4763;
  --amber-ink:#F4C76A; --amber-soft:#3A2F14; --orange:#F2A56B; --orange-soft:#3A2517;
  --red:#F08A8A; --red-soft:#3A1E1E; --blue:#8FB0F5; --blue-dark:#B8CCF8; --blue-soft:#1A2746;
  --green-dark:#7FD3A0; --brand-green-soft:#16301F;
  --primary:#E9EEF5; --primary-ink:#0B1220; --sel-bg:#2B3B5C; --sel-ink:#FFFFFF;
  --brand-wash:#172540; --brand-wash-ink:#D6E4F8;
  --shadow-1:0 1px 0 rgba(0,0,0,.35), 0 8px 20px -14px rgba(0,0,0,.8);
}

/* ---------- type ---------- */
body{font-family:var(--font);font-size:14px;background:var(--paper)}
h1,h2,h3,.qh,.workhead h1,.dtop h3,.panel h3,.panel h2,.tile .tn,.tile .v,.loginbox h1,.wordmark{font-family:var(--display)}
h1,h2,.workhead h1{font-weight:700;letter-spacing:-.01em}
.qh{font-size:16px;font-weight:700}

/* ---------- top band: navy, the chosen screen gets a green underline ---------- */
.band nav.screens button{border-radius:10px;font-weight:600}
.band nav.screens button[aria-current="true"]{background:rgba(255,255,255,.12);color:#FFFFFF;box-shadow:inset 0 -3px 0 var(--brand-green)}

/* ---------- buttons: 36px tall at least ---------- */
.btn{min-height:var(--ctl-h);border-radius:var(--r);font-weight:700;padding:7px 14px;transition:background .12s,border-color .12s}
.btn:hover{background:var(--navy);border-color:var(--navy)}
:root[data-theme="dark"] .btn:hover{background:#FFFFFF;border-color:#FFFFFF}
.btn.ghost{background:var(--surface);color:var(--ink);border-color:var(--line-3)}
.btn.ghost:hover{background:var(--head);border-color:var(--ink-3)}
.btn.danger{background:var(--red);border-color:var(--red);color:#FFFFFF}
.btn.danger:hover{background:#7E1D1D;border-color:#7E1D1D}
.btn.ghost.danger{background:var(--surface);border-color:var(--red-line);color:var(--red)}
.btn.ghost.danger:hover{background:var(--red-soft)}
.btn:disabled{opacity:.55;cursor:not-allowed}

/* ---------- cards ---------- */
.tile,.caltile,.ddetail,.panel,.rcard,.wsec,.list,.qpanel,.mkt,.txctl,.loginbox{border-radius:var(--r-card)}
.tile,.ddetail,.panel,.mkt{box-shadow:var(--shadow-1)}

/* ---------- number tiles: a colored line across the top ---------- */
.tile{border-top:3px solid var(--qc,var(--line-3))}
.tile .tn{font-weight:700;font-size:28px}
.q-hold{--qc:var(--line-3)} .q-call{--qc:var(--amber)} .q-reply{--qc:var(--blue)}
.q-fail{--qc:var(--orange)} .q-cancel{--qc:var(--red)} .q-sameday{--qc:var(--blue)}
.tile[aria-pressed="true"]{border-top-color:var(--qc,var(--brand-green));box-shadow:var(--shadow-2)}
.tile .tdot{background:var(--qc,var(--red))}
.wsec.rep{--wc:var(--blue);--wwash:var(--blue-soft)}

/* ---------- chips and pills: fully round, 12px bold ---------- */
.chip,.tchip,.pill,.role,.mchip,.gchk span{border-radius:999px;font-size:12px;font-weight:700}
.chip{background:var(--line-soft);color:var(--ink-2)}
.tchip.hard{background:var(--red-soft);color:var(--red)}
.tchip.loose{background:var(--brand-green-soft);color:var(--green-dark)}
.role.admin{background:var(--brand-wash);color:var(--navy)}
.role.supervisor{background:var(--blue-soft);color:var(--blue-dark)}
.role.agent{background:var(--line-soft);color:var(--ink-2)}
:root[data-theme="dark"] .role.admin{color:var(--brand-wash-ink)}

/* ---------- tables: gray header, light zebra, highlight under the mouse ---------- */
table.users,table.rptable{border-collapse:separate;border-spacing:0}
table.users thead th,table.rptable thead th{background:var(--head);font-size:12px;font-weight:700;color:var(--ink-2);text-transform:none;letter-spacing:0}
table.users tbody tr:nth-child(even) td{background:var(--zebra)}
table.users tbody tr:hover td{background:var(--row-hover)}
.tscroll{border-radius:var(--r-card);border:1px solid var(--line);background:var(--surface);overflow:auto}
.tscroll table{margin:0}

/* ---------- empty lists: "All caught up" with a soft green edge ---------- */
.emptyq{border:1px solid var(--line);border-left:4px solid var(--brand-green);background:var(--surface);border-radius:var(--r-card)}

/* ---------- inputs ---------- */
input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],input:not([type]),select,textarea{border-radius:var(--r)}
.toolbar input[type=search],.toolbar select{min-height:var(--ctl-h)}

/* ---------- folding sections (fold.js) ---------- */
.fold{margin:10px 0}
.fpanel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-1)}
.fpanel > .fhead:first-child,.fpanel > .fbody-own > .fhead:first-child{
  margin:-16px -16px 0;padding:11px 16px;background:var(--head);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
.fpanel > .fbody-own{display:flex;flex-direction:column;gap:10px}
.fhead{cursor:pointer;user-select:none;display:flex;align-items:center;gap:8px;font-family:var(--display);font-size:16px;font-weight:700;color:var(--ink);
  text-transform:none;letter-spacing:0;outline:none}
.fhead::after{content:'';width:7px;height:7px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg);margin:-4px 0 0 2px;flex:none}
.fold.shut .fhead::after{transform:rotate(-45deg);margin-top:0}
.fhead:hover{color:var(--navy)}
:root[data-theme="dark"] .fhead:hover{color:#FFFFFF}
.fhead:focus-visible{box-shadow:inset 0 0 0 2px var(--blue)}
.fhead h3{margin:0;font:inherit}
.fold.shut > .fpanel > :not(.fhead),.fold.shut > .fpanel > .fbody-own > :not(.fhead){display:none !important}
.fold.shut > .fpanel{padding-bottom:0;gap:0}
.fold.shut > .fpanel > .fhead:first-child,.fold.shut > .fpanel > .fbody-own > .fhead:first-child{border-bottom:0;border-radius:var(--r-card)}
.fold-all{display:flex;justify-content:flex-end;gap:8px;margin:12px 0 4px}
/* inside the customer card the sections are lighter: no shadow, no double padding */
.ddetail .fpanel,#detail .fpanel,#cust-body .fpanel{box-shadow:none}
.fpanel .thread{padding:0}
.fpanel .dsec{margin:0}

/* ---------- in-page boxes and quick messages (ui.js) ---------- */
.ui-veil{position:fixed;inset:0;background:rgba(1,22,34,.38);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.ui-box{background:var(--surface);color:var(--ink);border-radius:var(--r-card);border-top:4px solid var(--brand-green);box-shadow:var(--shadow-2);
  width:min(460px,100%);padding:20px 20px 16px;display:flex;flex-direction:column;gap:12px}
.ui-box.danger{border-top-color:var(--red)}
.ui-box h3{margin:0;font-family:var(--display);font-size:18px}
.ui-box p{margin:0;color:var(--ink-2);white-space:pre-line;line-height:1.45}
.ui-box input{font:inherit;padding:8px 10px;border:1px solid var(--line-3);min-height:var(--ctl-h);background:var(--surface);color:var(--ink)}
.ui-box input.ui-code{font-size:24px;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums}
.ui-box .ui-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.ui-toasts{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:1001;pointer-events:none}
.ui-toast{background:var(--ink);color:var(--surface);padding:10px 16px;border-radius:999px;box-shadow:var(--shadow-2);font-weight:600;
  animation:uiup .18s ease-out;max-width:min(560px,92vw)}
.ui-toast.bad{background:var(--red);color:#FFFFFF}
@keyframes uiup{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

/* header: DM Sans runs a little wider; keep everything on one line */
.band header.top{gap:12px 16px}
.band nav.screens button{padding:8px 14px}
.band .cl-find input{width:240px}
.wfilter .btn.wfold{background:var(--surface);border-color:var(--line-3);color:var(--ink);text-decoration:none;border-radius:var(--r)}
.wfilter .btn.wfold:hover{background:var(--head)}

/* ---------- tables: sort arrows, export button, headers that stay put ---------- */
th.sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.sortable:hover{color:var(--ink)}
th.sortable::after{content:'';display:inline-block;width:0;height:0;margin-left:6px;vertical-align:middle;border:4px solid transparent;opacity:.25;border-top-color:currentColor;transform:translateY(2px)}
th.sortable[aria-sort="ascending"]::after{border-top-color:transparent;border-bottom-color:currentColor;transform:translateY(-2px);opacity:1}
th.sortable[aria-sort="descending"]::after{opacity:1}
.tblbar{display:flex;justify-content:flex-end;margin:6px 0}
.btn.sm{min-height:30px;padding:4px 10px;font-size:12.5px}
.tscroll{max-height:70vh}
table.users thead th,table.rptable thead th{position:sticky;top:0;z-index:1}
tr.clickable:focus-visible,tr[data-open]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.wfilter{position:sticky;top:0;z-index:5;background:var(--paper);padding:8px 0}
#admin-subnav{position:sticky;top:0;z-index:6;background:var(--paper)}
.calfilter{position:sticky;top:0;z-index:5;background:var(--paper);padding:8px 0}

/* ---------- people: a round avatar with initials next to each name ---------- */
.av.sm{width:28px;height:28px;font-size:11px;font-weight:700}
.person{display:inline-flex;align-items:center;gap:10px}
.fbr1 .av{margin-right:2px}
:root[data-theme="dark"] .av.t1{background:#1E2B45;color:#C9D8F2} :root[data-theme="dark"] .av.t2{background:#3A2F14;color:#F4D18A}
:root[data-theme="dark"] .av.t3{background:#16301F;color:#A6E0BB} :root[data-theme="dark"] .av.t4{background:#2E2238;color:#D9BFE6}
:root[data-theme="dark"] .av.t5{background:#3A2219;color:#F4B9A3}

/* ---------- Report: jump-to pills, sections as cards with a gray strip ---------- */
.jumprow{position:sticky;top:44px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--paper);padding:8px 0;margin:0 0 6px}
.jumprow .spacer{flex:1}
.jpill{border:1px solid var(--line-3);background:var(--surface);color:var(--ink);border-radius:999px;padding:5px 12px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;min-height:30px}
.jpill:hover{background:var(--head)}
details.rpsec{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:0 16px 16px;margin:12px 0;box-shadow:var(--shadow-1);scroll-margin-top:100px}
details.rpsec > summary{list-style:none;cursor:pointer;margin:0 -16px;padding:11px 16px;background:var(--head);border-radius:var(--r-card) var(--r-card) 0 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
details.rpsec > summary::-webkit-details-marker{display:none}
details.rpsec > summary h3{margin:0;font-size:16px}
details.rpsec > summary::after{content:'';width:7px;height:7px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg);margin-top:-4px}
details.rpsec:not([open]){padding-bottom:0}
details.rpsec:not([open]) > summary{border-bottom:0;border-radius:var(--r-card)}
details.rpsec:not([open]) > summary::after{transform:rotate(-45deg);margin-top:0}
details.rpsec[open] > summary{margin-bottom:12px}

/* ---------- guided tours (tour.js) ---------- */
.tour-veil{position:fixed;inset:0;z-index:990;background:transparent}
.tour-ring{position:fixed;z-index:991;border-radius:12px;box-shadow:0 0 0 3px var(--brand-green),0 0 0 9999px rgba(1,22,34,.45);pointer-events:none;transition:all .18s ease}
.tour-card{position:fixed;z-index:992;background:var(--surface);color:var(--ink);border-radius:var(--r-card);border-top:4px solid var(--brand-green);box-shadow:var(--shadow-2);padding:14px 16px 12px}
.tour-card h3{margin:2px 0 6px;font-family:var(--display);font-size:17px}
.tour-card p{margin:0 0 10px;color:var(--ink-2);line-height:1.45}
.tour-n{font-size:11.5px;font-weight:700;color:var(--ink-3);text-transform:uppercase;letter-spacing:.05em}
.tour-acts{display:flex;align-items:center;gap:8px}
.tour-acts .spacer{flex:1}
details.rpsec > summary::before{content:none}

/* ---------- loading: a spinner and shimmering placeholders, so a wait never looks broken (11/22) ---------- */
.loadline{display:inline-flex;align-items:center;gap:10px;font-weight:700;color:var(--ink)}
.spin{width:16px;height:16px;border-radius:50%;border:2.5px solid var(--line-3);border-top-color:var(--brand-green);animation:clspin .8s linear infinite;flex:none}
@keyframes clspin{to{transform:rotate(360deg)}}
.skel{display:inline-block;width:92px;height:14px;border-radius:999px;vertical-align:middle;
  background:linear-gradient(90deg,var(--line-soft) 0%,var(--line) 50%,var(--line-soft) 100%);background-size:200% 100%;animation:clshimmer 1.2s ease-in-out infinite}
@keyframes clshimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.loadfail{color:var(--red);font-weight:700}
@media (prefers-reduced-motion: reduce){ .spin,.skel{animation:none} }

/* Open in Enabled+ stands out everywhere (Lissette 11/22): solid dark green with white text, as on
   the style board ("eplus-btn"). Never white on the light green. */
a.epgo, .btn.epgo, .eplink.epgo{background:var(--green-dark);color:#FFFFFF;border:1px solid var(--green-dark);font-weight:700;text-decoration:none}
a.epgo:hover, .btn.epgo:hover{background:#1F5E22;border-color:#1F5E22;color:#FFFFFF}
:root[data-theme="dark"] a.epgo, :root[data-theme="dark"] .btn.epgo{background:#2E7D32;border-color:#2E7D32;color:#FFFFFF}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) a.epgo, :root:not([data-theme="light"]) .btn.epgo{background:#2E7D32;border-color:#2E7D32;color:#FFFFFF} }
a.epgo.sm{font-size:12px;padding:3px 9px;border-radius:999px;white-space:nowrap}
.caltile .cacts a.epgo{color:#FFFFFF}
.cl-hit{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:center;cursor:pointer}
.cl-hit .hn{grid-column:1}.cl-hit .hm{grid-column:1}.cl-hit .epgo{grid-column:2;grid-row:1 / span 2}

/* A lead's history on its card (11/22) */
.lhist .lhsub{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);margin:10px 0 4px}
.lhist ul{list-style:none;margin:0;padding:0}
.lhappts li{padding:4px 0;border-bottom:1px solid var(--line-soft,var(--line));font-size:13px}
.lhappts .lhmeta{color:var(--ink-3)} .lhappts .lhst{font-weight:600}
.lhappts .lhres{background:var(--brand-green-soft);color:var(--green-dark);border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600}
.lhlist{max-height:340px;overflow:auto}
.lhlist li{display:grid;grid-template-columns:118px 92px 1fr;gap:8px;padding:5px 0;border-bottom:1px solid var(--line-soft,var(--line));font-size:13px;align-items:baseline}
.lhwhen{color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.lhsrc{font-size:11px;font-weight:700;border-radius:999px;padding:1px 8px;justify-self:start}
.lhsrc.ep{background:var(--brand-green-soft);color:var(--green-dark)}
.lhsrc.cl{background:var(--surface-2,#EEF2F6);color:var(--ink-2)}
.lhwho{color:var(--ink-3)}
@media (max-width:640px){ .lhlist li{grid-template-columns:1fr;gap:2px} }

/* ---------- the lead card, like DC Concierge's record page (style board, 11/22) ---------- */
/* The card sits on the blue-grey page; every part is its own white card. */
#detail.ddetail,#cust-body.ddetail{background:var(--head);border:1px solid var(--line);gap:10px;padding:12px}
#cust-body.ddetail{border:0;border-radius:0}
.lc-head{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px 18px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-1)}
.lc-head .av.lg{width:52px;height:52px;font-size:16px}
.lc-head .dtop h3{font-size:23px;font-weight:700;line-height:1.15}
.lc-head .dtop .meta{font-size:14px;margin-top:3px}
.lc-head .chips{align-items:center}
.chip.store-chip{background:var(--amber-soft);color:var(--amber-ink,#7A4A00);border:1px solid var(--amber);font-weight:700}
.btn.eplus{min-height:30px;padding:0 12px;font-size:12px;border-radius:10px}
.ddetail .btn.eplus{padding:0 12px;font-size:12px;border-radius:10px}

.glance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.glance-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:10px 12px;min-width:0;box-shadow:var(--shadow-1)}
.glance-tile .k{font-size:12px;font-weight:700;color:var(--ink-3)}
.glance-tile .v{font-weight:700;margin-top:2px;font-size:13.5px;overflow-wrap:anywhere;line-height:1.3}
.glance-tile .v.blue{color:var(--blue-dark)}
@media (max-width:1250px){ #detail .glance{grid-template-columns:repeat(2,minmax(0,1fr))} }

.lc-next{box-shadow:var(--shadow-1)}
.lc-strip{margin:-16px -16px 0;padding:11px 16px;background:var(--head);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0;
  font-family:var(--display);font-size:16px;font-weight:700}
.lc-next .whybox{padding:12px 14px;border-radius:var(--r-card);line-height:1.45}
.lc-next .acts{display:flex;flex-wrap:wrap;gap:8px}
.lc-next .acts .btn{min-height:36px;border-radius:10px;padding:0 14px}
.ddetail .fpanel{box-shadow:var(--shadow-1)}

/* Texts: ours on the right in green, theirs on the left in blue, failed in red */
.ddetail .thread{gap:10px}
.ddetail .bub{max-width:86%;border:0;padding:9px 13px;font-size:14px;line-height:1.45}
.ddetail .bub.out{align-self:flex-end;background:var(--brand-green-soft);color:var(--ink);border-radius:12px 12px 4px 12px}
.ddetail .bub.in{align-self:flex-start;background:var(--blue-soft);color:var(--ink);border-radius:12px 12px 12px 4px}
.ddetail .bub.fail{background:var(--red-soft);border:1px dashed var(--red-line)}
.ddetail .bub .stamp{font-size:11px;color:var(--ink-3);margin-top:5px}
.ddetail .bub.out .stamp{text-align:right}
.bub .bx{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.bub .bx.open{display:block;-webkit-line-clamp:unset}
.bub .bmore{font-size:12px;padding:2px 0;color:var(--navy);font-weight:600}
:root[data-theme="dark"] .bub .bmore{color:#FFFFFF}

/* History: appointments as rows (amber = coming up, grey = past), then a timeline */
.lhappts{display:flex;flex-direction:column;gap:6px}
.result-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;background:var(--amber-soft);font-size:13.5px}
.result-row.done{background:var(--head)}
.result-row .lhmeta{font-size:12px;color:var(--ink-3);margin-top:2px}
.status-pill{font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap}
.status-pill.sold{background:var(--brand-green);color:var(--ink)}
.status-pill.plain{background:var(--surface-2);color:var(--ink-2)}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.lh-tl{display:grid;grid-template-columns:70px 1fr;gap:12px;padding:10px 0}
.lh-tl + .lh-tl{border-top:1px solid var(--line)}
.lh-when{color:var(--ink-3);font-size:12px;padding-top:2px;line-height:1.35}
.lh-title{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;font-size:13.5px}
.lh-title .lhsrc{margin-left:auto}
.lh-who{color:var(--ink-3)}
.lh-note{margin-top:5px;padding:8px 12px;border-radius:12px;background:var(--head);border:1px solid var(--line);font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.lhist .timeline{max-height:420px;overflow:auto}
.ddetail .fpanel > .btn{align-self:flex-start}
.ddetail .fpanel > .btn.pdfbtn{align-self:flex-end;min-height:30px;padding:0 12px;font-size:12px;border-radius:10px}

/* ---------- number tiles and filter pills, from the style board (11/22) ---------- */
.stat-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.stat{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--line-3);border-radius:var(--r-card);padding:12px 14px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow-1)}
.stat .label{font-size:12px;font-weight:700;color:var(--ink-2)}
.stat .num{font-family:var(--display);font-size:26px;font-weight:700;color:var(--ink)}
.stat.tile-green{border-top-color:var(--brand-green)} .stat.tile-blue{border-top-color:var(--blue)}
.stat.tile-amber{border-top-color:var(--amber)} .stat.tile-red{border-top-color:var(--red)}
.filters{display:flex;flex-wrap:wrap;gap:6px}
.filters button{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line-3);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#FFFFFF;font-weight:700}
:root[data-theme="dark"] .filters button[aria-pressed="true"]{background:#FFFFFF;color:#011622}

/* ---------- My activity (11/22) ---------- */
.mydlg{width:min(760px,calc(100vw - 32px))}
.mydlg .udbody{display:flex;flex-direction:column;gap:14px;background:var(--head)}
.my-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.my-list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-1);max-height:52vh;overflow:auto}
.my-row{display:grid;grid-template-columns:120px 74px 1fr;gap:10px;align-items:baseline;padding:10px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.my-row:last-child{border-bottom:0}
.my-row:nth-child(even){background:var(--zebra)}
.my-row:hover,.my-row:focus-visible{background:var(--row-hover);outline:none}
.my-when{font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.my-tag{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 9px;justify-self:start;white-space:nowrap}
.my-tag.green{background:var(--brand-green-soft);color:var(--green-dark)} .my-tag.amber{background:var(--amber-soft);color:var(--amber-ink,#7A4A00)}
.my-tag.blue{background:var(--blue-soft);color:var(--blue-dark)} .my-tag.gray{background:var(--surface-2);color:var(--ink-2)}
.my-what{min-width:0;font-size:13.5px}
.my-store{color:var(--ink-3);font-size:12.5px}
.my-act{display:block;color:var(--ink-2);font-size:13px;margin-top:1px}
.my-empty{background:var(--brand-green-soft)}
.dhello .mybtn{margin-top:6px;min-height:30px;padding:0 12px;font-size:12.5px;border-radius:999px}
@media (max-width:640px){ .my-row{grid-template-columns:1fr auto} .my-what{grid-column:1 / -1} }

/* ---------- Calendar tiles colored by status (Lissette 11/22–11/23) ----------
   White tiles, a thick colored edge, and the status as a solid pill: amber Unconfirmed (dark
   text), blue Confirmed, green Assigned (a DC is on it), red Asked to cancel, orange Potential
   cancel (white text). "It needs to be more pronounced." */
.caltile{border-left-width:6px;background:var(--surface)}
.caltile.unc{--edge:var(--amber)} .caltile.con{--edge:var(--blue)} .caltile.asg{--edge:var(--green-dark)}
.caltile .cst{padding:2px 10px;border-radius:999px;font-weight:700;font-size:11.5px;white-space:nowrap;letter-spacing:.01em}
.caltile.unc .cst{background:var(--amber);color:#011622}
.caltile.con .cst{background:var(--blue);color:#FFFFFF}
.caltile.asg .cst{background:var(--green-dark);color:#FFFFFF}
.caltile .clast{border-top-color:var(--line)}
.caltile.flag{--edge:var(--red);outline-color:var(--red);background:var(--surface)}
.caltile.flag .clb{background:var(--red);color:#FFFFFF}
.caltile.flag.maybe{--edge:#C2570C;outline-color:#C2570C;box-shadow:none;background:var(--surface)}
.caltile.flag.maybe .clb{background:#C2570C;color:#FFFFFF}
:root[data-theme="dark"] .caltile.con .cst{background:#5B82E8}
:root[data-theme="dark"] .caltile.asg .cst{background:#3F9A45}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .caltile.con .cst{background:#5B82E8} :root:not([data-theme="light"]) .caltile.asg .cst{background:#3F9A45} }
.callegend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:12px;color:var(--ink-2);margin:2px 0 8px}
.callegend span{display:inline-flex;align-items:center;gap:6px}
.callegend i{width:30px;height:12px;border-radius:999px;display:inline-block}
.callegend .unc i{background:var(--amber)}
.callegend .con i{background:var(--blue)}
.callegend .asg i{background:var(--green-dark)}
.callegend .can i{background:var(--red)}
.callegend .may i{background:#C2570C}

/* Watch rows (11/23): name | market + when the text came in | their words | appointment | Enabled+ */
.wrow{grid-template-columns:34px minmax(0,.9fr) minmax(150px,.8fr) minmax(0,1.7fr) 150px auto}
.wgot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.wgot .wgt{font-size:12.5px;color:var(--ink-2);font-weight:600;white-space:nowrap}
.chip.store-chip.sm{font-size:11.5px;padding:2px 9px}
.wwhen small{display:block;font-size:11px;color:var(--ink-3);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
@media (max-width:1000px){
  .wrow{grid-template-columns:34px minmax(0,1fr) auto}
  .wrow .wav{grid-row:1;grid-column:1}.wrow .wnm{grid-row:1;grid-column:2}.wrow .wgo{grid-row:1;grid-column:3}
  .wrow .wgot,.wrow .wwhy,.wrow .wwhen{grid-column:2/-1}
  .wgot{flex-direction:row;flex-wrap:wrap;align-items:center}
}

/* Quiet hours on the lead card's text box (11/23), DC Concierge's purple "practice" colors */
.quietbar{display:flex;flex-direction:column;gap:6px;padding:10px 12px;margin:0 0 10px;border-radius:12px;background:#F6F2FF;border:1px solid #D6C9F5}
.quietbar .qchip{align-self:flex-start;background:#EDE7FB;color:#4B2E83;border:1px solid #D6C9F5;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
.quietbar .qtxt{font-size:13px;color:#3A2A5E;line-height:1.4}
:root[data-theme="dark"] .quietbar{background:#241B3A;border-color:#3D2F62} :root[data-theme="dark"] .quietbar .qchip{background:#3D2F62;color:#E2D8FF;border-color:#5A4690}
:root[data-theme="dark"] .quietbar .qtxt{color:#D9CFF5}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .quietbar{background:#241B3A;border-color:#3D2F62} :root:not([data-theme="light"]) .quietbar .qchip{background:#3D2F62;color:#E2D8FF;border-color:#5A4690} :root:not([data-theme="light"]) .quietbar .qtxt{color:#D9CFF5} }
.txsend:disabled{opacity:.75;cursor:not-allowed}

/* Why Hard or Loose, under the lead card's chips (11/23) */
.treatwhy{font-size:13px;line-height:1.45;padding:8px 12px;border-radius:10px;border-left:4px solid}
.treatwhy.hard{background:var(--red-soft);border-left-color:var(--red);color:var(--ink)}
.treatwhy.loose{background:var(--brand-green-soft);border-left-color:var(--brand-green);color:var(--ink)}
