/* card.css - The profile cards in the newer look: a navy-to-blue header band,
   tabs as pills, light rounded section cards with thin rows. Same look as the
   cleaner availability picker and the notes window. Adam, 25 Oct 2026. v1813
   Loaded last so it wins; only reaches the person cards (.modal-wide). */

.modal.modal-wide{ border-radius:20px !important; overflow:auto; overflow-x:hidden; /* the card scrolls - v1813 had it locked. v1814 */ font-family:Nunito,system-ui,Arial,sans-serif; background:#f4f6fb; box-shadow:0 30px 80px rgba(16,36,107,.35); }

/* the header band */
.modal.modal-wide .m-head{ background:#16246b; border-bottom:0; padding:20px 24px; gap:16px; }
.modal.modal-wide .m-head .pav{ background:#fff !important; color:#2547d6 !important; box-shadow:0 0 0 3px rgba(255,255,255,.35); font-weight:900; }
.modal.modal-wide .m-name{ color:#fff !important; font-size:22px !important; font-weight:900 !important; letter-spacing:-.2px; }
.modal.modal-wide .m-sub{ color:#c9d6ff !important; font-weight:700; }
.modal.modal-wide .m-sub *{ color:inherit; }
.modal.modal-wide .m-x{ background:rgba(255,255,255,.16) !important; color:#fff !important; border:0 !important; width:36px; height:36px; border-radius:10px !important; }

/* preview strip */
.modal.modal-wide .pv-bar{ background:#fff; border-bottom:1px solid #e6e9f2; padding:10px 24px; }
.modal.modal-wide .pv-b{ border-radius:999px !important; height:30px; }

/* tabs as pills */
.modal.modal-wide .m-tabs{ background:#fff; border-bottom:1px solid #e6e9f2; padding:12px 24px; gap:6px; }
.modal.modal-wide .m-tab{ height:34px; padding:0 14px; border-radius:999px; border:1px solid transparent; border-bottom:1px solid transparent; margin:0; background:#f1f4fb; color:#5b6478; font-weight:800; font-size:13px; }
.modal.modal-wide .m-tab:hover{ background:#e8edff; color:#2547d6; }
.modal.modal-wide .m-tab.on{ background:#2547d6; color:#fff; border-color:#2547d6; box-shadow:0 2px 8px rgba(37,71,214,.25); }

/* the body and its section cards */
.modal.modal-wide .m-body{ padding:18px 24px 24px; background:#f4f6fb; }
.modal.modal-wide .sec{ border:1px solid #e3e8f4 !important; border-radius:16px !important; box-shadow:0 2px 10px rgba(22,36,107,.06) !important; margin-bottom:16px !important; background:#fff !important; }
.modal.modal-wide .sec-h{ background:#fff !important; border-bottom:1px solid #eef1f8 !important; padding:14px 18px 12px 30px !important; }
.modal.modal-wide .sec-h::before{ left:16px; top:16px; width:5px; height:18px; background:#2547d6; }
.modal.modal-wide .sec-t{ color:#16246b !important; font-size:15px !important; letter-spacing:0 !important; text-transform:none !important; }
.modal.modal-wide .sec-s{ color:#6b7488 !important; font-size:12.5px !important; }
.modal.modal-wide .sec > *:not(.sec-h){ margin-left:18px; margin-right:18px; }

/* thin rows */
.modal.modal-wide .acct-row{ padding:10px 0; border-bottom:1px solid #f0f2f8; font-size:14px; align-items:center; }
.modal.modal-wide .acct-row:last-child{ border-bottom:0; }
.modal.modal-wide .acct-k{ color:#6b7488; font-weight:700; }
.modal.modal-wide .acct-v{ color:#16246b; font-weight:800; }

/* buttons inside the card */
.modal.modal-wide .pr-add-btn{ height:36px; border-radius:999px; border:1.5px dashed #c9d6f5; background:#f7f9ff; color:#2547d6; font-weight:800; padding:0 16px; }
.modal.modal-wide .cr-link{ border-radius:999px; }
.modal.modal-wide .note-disp{ border-radius:12px; }

/* Notes tab: one thin row for the office note, a button per note section. v1813 */
.cnr{ display:flex; align-items:center; gap:10px; min-height:40px; border:1px solid #e3e8f4; border-radius:12px; background:#fff; padding:0 6px 0 14px; margin-bottom:10px; }
.cnr-lab{ flex:none; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.3px; color:#6b7488; }
.cnr-prev{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#16246b; font-size:14px; cursor:pointer; }
.cnr-prev.ph{ color:#9aa2b6; }
.cnr-x{ height:30px; padding:0 14px; border:0; border-radius:9px; background:#e8edff; color:#2547d6; font:inherit; font-weight:800; font-size:12.5px; cursor:pointer; flex:none; }
.cnr-x:hover{ background:#2547d6; color:#fff; }
.cns{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:4px 0 4px; }
.cns-lab{ font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.3px; color:#9aa2b6; margin-right:4px; }
.cns-b{ height:32px; padding:0 14px; border:1px solid #c9d6f5; border-radius:999px; background:#f4f7ff; color:#16246b; font:inherit; font-weight:800; font-size:13px; cursor:pointer; }
.cns-b:hover{ border-color:#2547d6; background:#e8edff; }
.cns-b.empty{ color:#7d869c; background:#fff; }
.cns-b.add{ border-style:dashed; background:#fff; color:#2547d6; }

@media (max-width:760px){
  .modal.modal-wide{ border-radius:0 !important; }
  .modal.modal-wide .m-head{ padding:14px 16px; }
  .modal.modal-wide .m-body{ padding:12px 12px 20px; }
  .modal.modal-wide .m-tabs{ padding:8px 12px; }
  .modal.modal-wide .m-tab{ border-radius:10px; }
}

/* One header, no second bar. Tags instead of a dotted line, quick buttons, and
   the tabs stay on screen while the card scrolls. Adam, 1 Nov 2026. v1884 */
.modal.modal-wide .m-head2{ position:sticky; top:0; z-index:6; background:linear-gradient(120deg,#16246b 0%,#2547d6 100%); padding:18px 22px; display:flex; align-items:center; gap:16px; }
.modal.modal-wide .mh-who{ flex:1; min-width:0; }
.modal.modal-wide .mh-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.modal.modal-wide .mh-tag{ display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-size:12px; font-weight:800; }
.modal.modal-wide .mh-tag.ok{ background:rgba(87,189,52,.28); color:#e9ffe0; }
.modal.modal-wide .mh-tag.warn{ background:rgba(232,134,46,.32); color:#fff1e3; }
.modal.modal-wide .mh-tag.dim{ background:rgba(255,255,255,.10); color:#c9d6ff; }
.modal.modal-wide .mh-acts{ display:flex; align-items:center; gap:8px; flex:none; }
.modal.modal-wide .mh-b{ display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:10px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:#fff; font:inherit; font-weight:800; font-size:13.5px; cursor:pointer; text-decoration:none; }
.modal.modal-wide .mh-b:hover{ background:#fff; color:#16246b; }
.modal.modal-wide .m-head2 .m-x{ margin-left:4px; }
.modal.modal-wide .pv-bar{ padding:6px 22px; background:#fafbfe; }
.modal.modal-wide .pv-lab{ font-size:12px; color:#7d869c; font-weight:800; }
.modal.modal-wide .pv-b{ height:28px; font-size:12px; }
.modal.modal-wide .m-tabs{ box-shadow:0 4px 10px -8px rgba(22,36,107,.18); }
@media (max-width:760px){
  .modal.modal-wide .m-head2{ flex-wrap:wrap; padding:14px 14px; gap:10px; }
  .modal.modal-wide .mh-acts{ width:100%; }
  .modal.modal-wide .mh-acts .m-x{ margin-left:auto; }
  .modal.modal-wide .m-head2 .m-x{ position:absolute; right:12px; top:12px; }
  .modal.modal-wide .m-tabs{ position:static; }
}

/* The header, tidied: no initials circle; the name and the quick buttons share
   one line, the tags sit in a row underneath, every button 36px and lined up.
   Room is left on the left for a picture later. Adam, 4 Nov 2026. v1923 */
.modal.modal-wide .m-head2.mh-tidy{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"who acts" "tags tags"; align-items:center; gap:8px 16px; padding:16px 22px 14px; }
.modal.modal-wide .mh-tidy .mh-who{ grid-area:who; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; min-width:0; }
.modal.modal-wide .mh-tidy .m-name{ line-height:36px; min-height:36px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.modal.modal-wide .mh-tidy .bill-tag{ display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-size:12px; font-weight:800; }
.modal.modal-wide .mh-tidy .mh-tags{ grid-area:tags; margin-top:0; }
.modal.modal-wide .mh-tidy .mh-acts{ grid-area:acts; align-self:start; width:auto; }
.modal.modal-wide .mh-tidy .mh-b{ box-sizing:border-box; justify-content:center; line-height:1; }
.modal.modal-wide .mh-tidy .m-x{ position:static; margin-left:4px; display:inline-flex; align-items:center; justify-content:center; padding:0; font-size:22px; line-height:1; }
@media (max-width:760px){
  .modal.modal-wide .m-head2.mh-tidy{ padding:12px 14px; gap:8px 10px; }
  .modal.modal-wide .mh-tidy .mh-acts{ width:auto; }
  .modal.modal-wide .mh-tidy .m-name{ font-size:19px !important; }
}

/* Past jobs, redone to match the card: each visit is its own rounded card -
   what and when on the left, the money on the right, the buttons in a row
   underneath with Job screen first. On a phone the buttons go two to a row,
   full width, and nothing scrolls sideways. Adam, 4 Nov 2026. v1927 */
.pj-row.pj-card{ display:flex; flex-direction:column; align-items:stretch; gap:10px; flex-wrap:nowrap; background:#fff; border:1px solid #e3e8f4; border-radius:14px; padding:12px 14px; margin-bottom:10px; box-shadow:0 1px 6px rgba(22,36,107,.05); min-width:0; max-width:100%; box-sizing:border-box; }
.pj-card .pj-main{ display:flex; align-items:flex-start; gap:12px; min-width:0; }
.pj-card .pj-lead{ flex:1 1 auto; min-width:0; }
.pj-card .pj-svc, .pj-card .pj-top, .pj-card .pj-meta{ overflow-wrap:anywhere; }
.pj-card .pj-money{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:2px; text-align:right; }
.pj-card .pj-amt{ font-size:15px; }
.pj-card .pj-btns{ display:flex; flex-wrap:wrap; gap:8px; padding-top:10px; border-top:1px solid #f0f2f8; }
.pj-card .pj-btns > *{ height:36px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:0 14px; border-radius:10px; font-size:13px; }
.pj-card.pj-removed{ flex-direction:row; flex-wrap:wrap; align-items:center; }
.pj-card.pj-notdone{ border-left:4px solid #e8862e; background:#fffaf4; }
/* Did not book in Past jobs: why they did not book, no money, no buttons. Adam, 15 Nov 2026. v2070 */
.pj-card.pj-never{border-left:4px solid #b9c0d4;background:#fafbfd}
.pj-nbpill{display:inline-block;background:#f1f3f8;color:#4a5370;border:1px solid #dde1ec;border-radius:999px;padding:0 8px;font-size:.76rem;font-weight:800;line-height:18px}
.pj-nbwhy{color:#16246b;font-weight:700}
.pj-card.pj-never a.pj-doc{text-decoration:none}
@media (max-width:640px){
  .pj-card .pj-main{ flex-direction:column; gap:6px; }
  .pj-card .pj-money{ flex-direction:row; align-items:center; gap:10px; text-align:left; }
  .pj-card .pj-btns{ display:grid; grid-template-columns:1fr 1fr; }
  .pj-card .pj-btns > *{ width:100%; min-width:0; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pj-card .pj-btns > .pj-job{ grid-column:1 / -1; }
  .pj-tots{ display:grid !important; grid-template-columns:1fr 1fr; }
  .pj-tots .pj-due{ grid-column:1 / -1; }
}

/* The office card is one screen at a time again, on a computer too - Adam: "no
   on the profile card layout. It needs screens." The screen buttons are one bar
   across the top, just under the header, and stay there while the card scrolls.
   A phone keeps its menu button. The v1927 side menu and two columns are gone.
   Adam, 4 Nov 2026. v1930 */
.modal.modal-wide.mcs-card .mcs-nav{ background:#fff; border-bottom:1px solid #e6e9f2; box-shadow:0 4px 10px -8px rgba(22,36,107,.18); }
.modal.modal-wide.mcs-card .mcs-nav .m-tabs{ border-bottom:0; box-shadow:none; }
@media (min-width:721px){
  .modal.modal-wide.mcs-card .mcs-nav{ position:sticky; top:var(--mcs-top,0px); z-index:5; }
  .modal.modal-wide.mcs-card .mcs-nav .m-tabs{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 22px; }
  .modal.modal-wide.mcs-card .mcs-nav .m-tabwrap{ display:inline-flex; }
  .modal.modal-wide.mcs-card .mcs-nav .m-tab{ display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border-radius:10px; border:1px solid #e3e8f4; background:#fff; color:#16246b; font-size:13.5px; font-weight:800; white-space:nowrap; }
  .modal.modal-wide.mcs-card .mcs-nav .m-tab:hover{ background:#eef2ff; border-color:#c9d4fb; color:#2547d6; }
  .modal.modal-wide.mcs-card .mcs-nav .m-tab.on{ background:#2547d6; border-color:#2547d6; color:#fff; box-shadow:0 2px 8px rgba(37,71,214,.25); }
}

/* The customer at a glance: tiles at the top of the Details screen. Two to a
   row on a phone, three on a tablet, four on a computer. Adam, 4 Nov 2026. v1930 */
.ck-wrap{ margin:0 0 16px; }
.ck-load{ background:#fff; border:1px solid #e3e8f4; border-radius:14px; padding:14px 16px; color:#6b7488; font-weight:700; }
.ck-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
@media (min-width:721px){ .ck-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1000px){ .ck-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; } }
.ck-tile{ background:#fff; border:1px solid #e3e8f4; border-radius:14px; padding:12px 14px; box-shadow:0 2px 10px rgba(22,36,107,.05); min-width:0; min-height:92px; box-sizing:border-box; display:flex; flex-direction:column; gap:4px; font-family:Nunito,system-ui,Arial,sans-serif; }
.ck-top{ display:flex; align-items:center; gap:8px; min-width:0; }
.ck-ic{ flex:none; width:28px; height:28px; border-radius:9px; background:#eef2ff; color:#2547d6; display:inline-flex; align-items:center; justify-content:center; }
.ck-lab{ font-size:11.5px; font-weight:900; letter-spacing:.3px; text-transform:uppercase; color:#6b7488; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ck-val{ font-size:21px; font-weight:900; color:#16246b; line-height:1.2; overflow-wrap:anywhere; }
.ck-txt .ck-val{ font-size:15.5px; line-height:1.3; }
.ck-sub{ font-size:12.5px; font-weight:700; color:#6b7488; line-height:1.35; overflow-wrap:anywhere; }
.ck-none .ck-val{ color:#9aa2b6; }
.ck-bad .ck-val{ color:#b5342f; }
.ck-bad .ck-ic{ background:#fdf0ef; color:#b5342f; }
.ck-ok .ck-ic{ background:#eaf6e4; color:#2f7d18; }
.ck-cb .ck-ic{ background:#f5f0ff; color:#7c3aed; }
.ck-stars{ color:#2547d6; font-size:15px; letter-spacing:1px; vertical-align:2px; }
.ck-wide{ grid-column:span 2; }
.ck-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.ck-chip{ display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 4px 0 12px; border-radius:999px; background:#eef2ff; color:#16246b; font-size:13px; font-weight:800; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-chip b{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#2547d6; color:#fff; font-size:11.5px; box-sizing:border-box; }
@media (max-width:420px){
  .ck-tile{ padding:10px 12px; min-height:86px; }
  .ck-top{ align-items:flex-start; gap:6px; }
  .ck-ic{ width:24px; height:24px; border-radius:8px; }
  .ck-lab{ white-space:normal; font-size:10.5px; line-height:1.25; padding-top:1px; }
  .ck-val{ font-size:18px; }
  .ck-txt .ck-val{ font-size:14.5px; }
}

/* THE CUSTOMER CARD, laid out exactly like the customer's own dashboard
   (customer.html): a side menu of screens on a computer, a bar along the top
   and a menu along the bottom on a phone, one screen at a time, a heading with
   one blue button, and the same white cards - date blocks, Paid and To pay
   tags, the navy card, the light strips. The sizes, colors and spacing are the
   customer app's, copied. Adam, 5 Nov 2026. v1932 */
.modal.modal-wide.cc-card{ --line:#e6e9f2; --muted:#6b7488; --royal:#2547d6; --navy:#16246b; padding:0; background:#f4f6fb; color:#1b2440; font-family:Nunito,system-ui,Arial,sans-serif; overflow-x:hidden; }
.cc-card .cx{ min-height:100%; background:#f4f6fb; }
.cc-card .cx-main, .cc-card .cx-wrap, .cc-card .cx-col, .cc-card .cx-card{ min-width:0; max-width:100%; }
.cc-card .cx-side{ display:none; }
.cc-card .cx-mtop{ display:flex; align-items:center; gap:10px; background:#fff; border-bottom:1px solid var(--line); padding:12px 14px; position:sticky; top:0; z-index:30; }
.cc-card .cx-mtop b{ font-size:15px; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.cc-card .cx-mtop .sp{ flex:1; }
.cc-card .cx-av{ flex:none; width:32px; height:32px; border-radius:50%; background:#eef2ff; color:var(--royal); display:inline-flex; align-items:center; justify-content:center; font-weight:900; font-size:15px; }
.cc-card .cx-sbtn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; padding:0 12px; border:1.5px solid var(--line); border-radius:9px; background:#fff; color:var(--navy); font:inherit; font-weight:800; font-size:13px; cursor:pointer; white-space:nowrap; box-sizing:border-box; }
.cc-card .cx-x{ width:36px; padding:0; font-size:20px; }
.cc-card .cx-sbtn .cx-ic{ width:17px; height:17px; }
.modal.modal-wide.cc-card .m-body.cx-main{ max-width:620px; margin:0 auto; padding:16px 14px 110px; background:none; }
.cc-card .cx-head{ display:flex; align-items:center; gap:12px; margin:0 0 14px; }
.cc-card .cx-head h1{ margin:0; font-size:21px; color:var(--navy); font-weight:900; }
.cc-card .cx-head p{ margin:3px 0 0; color:var(--muted); font-size:13.5px; font-weight:600; }
.cc-card .cx-head .sp{ flex:1; }
.cc-card .cx-req{ display:inline-flex; height:36px; padding:0 16px 0 8px; border:0; border-radius:11px; background:var(--royal); color:#fff; font:inherit; font-weight:800; font-size:13.5px; cursor:pointer; align-items:center; gap:7px; white-space:nowrap; box-shadow:0 6px 16px rgba(37,71,214,.24); transition:background .15s, transform .15s, box-shadow .15s; flex:none; }
.cc-card .cx-req svg{ width:22px; height:22px; padding:4px; border-radius:50%; background:rgba(255,255,255,.2); stroke:#fff; fill:none; stroke-width:2.6; stroke-linecap:round; box-sizing:border-box; }
.cc-card .cx-req:hover{ background:#1c37ab; transform:translateY(-1px); box-shadow:0 8px 20px rgba(37,71,214,.3); }
.cc-card .cx-ic{ width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.cc-card .cx-bot{ position:fixed; left:0; right:0; bottom:0; z-index:40; background:#fff; border-top:1px solid var(--line); display:flex; padding:6px 4px calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -4px 16px rgba(16,32,80,.06); }
.cc-card .cx-bot button{ flex:1; min-width:0; border:0; background:none; font:inherit; font-size:10.5px; font-weight:800; color:#8891a8; display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer; padding:2px 0; position:relative; min-height:44px; justify-content:center; }
.cc-card .cx-bot button.on{ color:var(--royal); }
.cc-card .cx-ban{ display:flex; align-items:center; gap:12px; background:#fff7ec; border:1px solid #f6d6ad; border-radius:12px; padding:10px 14px; margin:0 0 14px; font-weight:800; font-size:13.5px; color:#8a4b0c; }
.cc-card .cx-ban .sp{ flex:1; }
.cc-card .cx-ban button{ height:36px; padding:0 16px; border:0; border-radius:10px; background:#e8862e; color:#fff; font:inherit; font-weight:800; font-size:13px; cursor:pointer; white-space:nowrap; box-shadow:0 4px 12px rgba(232,134,46,.3); }
.cc-card .cx-ban button::after{ content:none; }   /* no arrows on the buttons - Adam. v1933 */
.cc-card .cx-cols{ display:flex; flex-direction:column; gap:14px; }
.cc-card .cx-col{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.cc-card .cx-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:15px 16px; box-sizing:border-box; }
.cc-card .cx-card h3{ display:flex; align-items:center; margin:0 0 11px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:900; }
.cc-card .cx-card h3 button{ margin-left:auto; border:0; color:var(--royal); font:inherit; font-size:13px; font-weight:800; letter-spacing:0; text-transform:none; cursor:pointer; background:#eef2ff; border-radius:999px; padding:4px 12px; }
.cc-card .cx-card h3 button::after{ content:none; }
.cc-card .cx-card h3 button:hover{ background:#dfe6ff; }
.cc-card .cx-nv{ display:flex; gap:14px; }
.cc-card .cx-dt{ flex:none; width:64px; border-radius:12px; background:#eef2ff; text-align:center; padding:7px 0; color:var(--royal); align-self:flex-start; }
.cc-card .cx-dt small{ display:block; font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.cc-card .cx-dt b{ display:block; font-size:26px; line-height:1.05; font-weight:900; color:var(--navy); }
.cc-card .cx-nvt{ min-width:0; flex:1; }
.cc-card .cx-nvt b{ display:block; font-size:17px; color:var(--navy); }
.cc-card .cx-nvt span{ display:block; color:var(--muted); font-weight:700; font-size:13px; margin-top:2px; }
.cc-card .cx-nvt .cx-tags{ margin-top:8px; }
.cc-card .cx-tags i{ font-style:normal; }
.cc-card .cx-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); color:inherit; text-decoration:none; }
.cc-card .cx-card h3 + .cx-row{ border-top:0; padding-top:0; }
.cc-card .cx-row .cx-dt{ width:46px; padding:5px 0; border-radius:10px; align-self:center; }
.cc-card .cx-row .cx-dt b{ font-size:17px; }
.cc-card .cx-row .cx-nvt b{ font-size:14.5px; }
.cc-card .cx-row .cx-nvt span{ font-size:12.5px; }
.cc-card .cx-tap{ cursor:pointer; }
.cc-card .cx-tap:hover .cx-nvt b{ color:var(--royal); }
.cc-card .cx-tag{ flex:none; display:inline-block; font-size:11.5px; font-weight:900; border-radius:99px; padding:3px 10px; white-space:nowrap; border:0; font-family:inherit; }
.cc-card .cx-tag.ok{ background:#e6f7e0; color:#2f7d18; }
.cc-card .cx-tag.wait{ background:#eef2ff; color:var(--royal); }
.cc-card .cx-tag.due{ background:#fff1e3; color:#b65d0c; }
/* not confirmed is an alert, amber, not the normal blue. Adam, 8 Nov 2026. v1970 */
.cc-card .cx-tag.unconf{ background:#fff4e0; color:#a5630a; box-shadow:inset 0 0 0 1px #f0cf94; }
.cc-card .cx-empty{ color:var(--muted); font-weight:700; font-size:13.5px; }
.cc-card .cx-who{ margin-top:14px; padding:10px 13px; border-radius:12px; background:#f6f8fd; }
.cc-card .cx-who b{ display:block; color:var(--navy); font-size:15px; }
.cc-card .cx-who span{ display:block; color:var(--muted); font-weight:700; font-size:13px; }
.cc-card .vs-link{ display:flex; align-items:center; justify-content:center; width:100%; box-sizing:border-box; margin-top:12px; height:40px; border:1.5px solid #c9d4f5; background:#fff; color:var(--royal); border-radius:11px; font:inherit; font-weight:800; font-size:14px; cursor:pointer; text-decoration:none; }
.cc-card .cx-money{ display:flex; align-items:baseline; gap:8px; }
.cc-card .cx-money b{ font-size:27px; color:var(--navy); font-weight:900; }
.cc-card .cx-money span{ color:var(--muted); font-weight:800; font-size:13px; }
.cc-card .cx-mini{ display:flex; align-items:center; gap:10px; margin-top:10px; padding:9px 12px; border-radius:10px; background:#f6f8fd; font-weight:800; font-size:13px; color:var(--navy); min-height:36px; box-sizing:border-box; }
.cc-card .cx-mini .sp{ flex:1; }
.cc-card .cx-dim{ color:var(--muted); }
.cc-card .cx-cv{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-card .cx-cv i{ font-style:normal; color:var(--muted); font-size:12px; }
.cc-card .cx-btn{ flex:none; display:inline-flex; align-items:center; height:32px; padding:0 12px; border:1.5px solid #c9d4f5; border-radius:9px; background:#fff; color:var(--royal); font:inherit; font-weight:800; font-size:13px; text-decoration:none; cursor:pointer; }
.cc-card .cx-btn:hover{ border-color:var(--royal); }
.cc-card .cx-mini .cx-btn + .cx-btn{ margin-left:-4px; }
.cc-card .cx-arow{ display:flex; align-items:center; gap:10px; }
.cc-card .cx-addr{ flex:1; min-width:0; font-weight:800; color:var(--navy); font-size:14px; }
.cc-card .cx-ref{ background:var(--navy); border-color:var(--navy); }
.cc-card .cx-ref h3{ color:#b9c6f2; }
.cc-card .cx-ref h3 button{ background:#fff; color:var(--navy); }
.cc-card .cx-cbl{ font-size:19px; font-weight:900; color:#fff; }
.cc-card .cx-ref p{ margin:4px 0 0; font-size:13.5px; font-weight:700; color:#dfe6ff; line-height:1.45; }
.cc-card .cx-hint{ margin:12px 0 0; color:var(--muted); font-size:12.5px; font-weight:700; }
.cc-card .cx-acct .acct-row:first-of-type{ border-top:0; }
.cc-card .cbup-dot{ margin-left:auto; }
/* a screen whose one box says what its heading already says */
.cc-card .cc-onebox .sec > .sec-h{ display:none; }
.cc-card .cc-onebox .sec{ padding-top:6px; }
/* the phone menu: every screen, sliding in from the side like the customer's drawer */
.cc-card .cx-dr-ov{ display:none; position:fixed; inset:0; z-index:88; background:rgba(22,36,107,.40); }
.cc-card .cx-dr-ov.open{ display:block; }
.cc-card .cc-drawer{ display:none; position:fixed; z-index:89; top:0; right:0; bottom:0; width:100%; max-width:340px; box-sizing:border-box; background:#fff; overflow-y:auto; padding:12px 12px 40px; box-shadow:-10px 0 40px rgba(16,32,80,.25); flex-direction:column; gap:3px; }
.cc-card .cc-drawer.open{ display:flex; }
.cc-card .cx-dr-h{ display:flex; align-items:center; gap:10px; padding:4px 6px 12px; }
.cc-card .cx-dr-h b{ flex:1; font-size:15px; color:var(--navy); }
.cc-card .cx-nav{ display:flex; align-items:center; gap:10px; width:100%; height:38px; padding:0 10px; border:0; border-radius:9px; background:none; color:#4a5470; font:inherit; font-weight:800; font-size:14px; cursor:pointer; text-align:left; box-sizing:border-box; flex:none; }
.cc-card .cx-nav:hover{ background:#f4f6fb; }
.cc-card .cx-nav.on{ background:#eef2ff; color:var(--royal); }
.cc-card .cx-nl{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cc-card .cx-nav .bd{ margin-left:auto; background:var(--royal); color:#fff; font-size:11px; font-weight:900; border-radius:99px; padding:1px 7px; }
.cc-card .cx-nav .bd.due{ background:#e8862e; }
.cc-card .cx-navw{ display:flex; align-items:center; gap:4px; }
.cc-card .cx-navw .cx-nav{ flex:1; }
/* the More menu - the preview, the notes window, edit, move, archive, delete */
.cc-pop{ position:relative; }
.cc-menu{ display:none; position:absolute; top:calc(100% + 6px); right:0; z-index:95; width:260px; max-width:calc(100vw - 32px); box-sizing:border-box; max-height:70vh; overflow:auto; background:#fff; border:1px solid #e3e8f4; border-radius:12px; box-shadow:0 12px 32px rgba(22,36,107,.18); padding:6px; text-align:left; }
.cc-pop-side .cc-menu{ top:auto; bottom:calc(100% + 6px); left:0; right:auto; }
.cc-pop.open > .cc-menu{ display:block; }
.modal.modal-wide .cc-menu .cc-mi{ display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; height:36px; margin:0; padding:0 12px; box-sizing:border-box; border:0; border-radius:8px; background:none; color:#16246b; font:inherit; font-size:14px; font-weight:700; text-align:left; cursor:pointer; white-space:nowrap; }
.modal.modal-wide .cc-menu .cc-mi:hover{ background:#f1f4fb; }
.modal.modal-wide .cc-menu .cc-mdel{ color:#b5342f; }
.cc-mfoot{ border-top:1px solid #eef0f5; margin-top:4px; padding-top:4px; }
.cc-mfoot:first-child{ border-top:0; margin-top:0; padding-top:0; }
.cc-menu .cc-mlab{ display:block; padding:8px 12px 4px; font-size:12.5px; font-weight:700; color:#6b7488; }
.cc-menu .m-sel{ display:block; width:calc(100% - 24px); max-width:none; margin:0 12px 6px; height:36px; }
.cc-menu .pm-off, .cc-menu .pm-pill{ margin:2px 12px; }
.cc-mgrp{ border-bottom:1px solid #eef0f5; margin-bottom:4px; padding-bottom:4px; }
.modal.modal-wide .cc-mgrp .pv-bar{ display:block; padding:4px 6px 6px; background:none; border:0; }
.modal.modal-wide .cc-mgrp .pv-lab{ display:block; padding:4px 6px 8px; font-size:12.5px; }
.cc-mgrp .pv-btns{ display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.modal.modal-wide .cc-mgrp .pv-b{ height:36px; border-radius:8px !important; padding:0 12px; font-size:13px; }
.cc-pop-top .cc-sq span{ display:none; }
.cc-pop-top .cc-sq{ width:36px; padding:0; }
/* below a computer's width the card is the whole screen, the way the app is */
@media (max-width:899px){
  .ovl:has(> .modal.cc-card){ padding:0; }
  .modal.modal-wide.cc-card{ width:100%; max-width:none; height:100%; max-height:100%; border-radius:0 !important; box-shadow:none; resize:none; }
  .cc-card .cx-head .cx-req{ height:36px; }
}
/* the heading's words take the room and wrap; New job keeps its size beside them */
.cc-card .cx-head > div:first-child{ flex:1; min-width:0; overflow-wrap:anywhere; }
/* a computer: the side menu, two columns of cards - the customer app's sizes */
@media (min-width:900px){
  .ovl:has(> .modal.cc-card){ padding:16px; }
  .modal.modal-wide.cc-card{ width:min(1320px, 100%); max-width:none; height:calc(100vh - 32px); max-height:none; resize:none; }
  .cc-card .cx{ display:grid; grid-template-columns:236px minmax(0,1fr); }
  .cc-card .cx-side{ display:flex; flex-direction:column; gap:3px; background:#fff; border-right:1px solid var(--line); padding:18px 14px; position:sticky; top:0; height:calc(100vh - 32px); box-sizing:border-box; overflow-y:auto; }
  .cc-card .cx-brand{ display:flex; align-items:center; gap:10px; padding:4px 6px 18px; }
  .cc-card .cx-brand .cx-av{ width:38px; height:38px; font-size:17px; }
  .cc-card .cx-brand b{ display:block; font-size:14px; color:var(--navy); line-height:1.15; }
  .cc-card .cx-brand small{ display:block; color:var(--muted); font-size:11.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
  .cc-card .cx-side .sp{ flex:1; min-height:12px; }
  .cc-card .cx-side-b{ display:flex; gap:8px; border-top:1px solid var(--line); padding:12px 4px 0; }
  .cc-card .cx-side-b > *{ flex:1; }
  .cc-card .cx-side-b .cc-sq{ width:100%; }
  .cc-card .cx-mtop, .cc-card .cx-bot, .cc-card .cc-drawer, .cc-card .cx-dr-ov{ display:none !important; }
  .modal.modal-wide.cc-card .m-body.cx-main{ max-width:1180px; margin:0; padding:24px 30px 48px; width:100%; box-sizing:border-box; }
  .cc-card .cx-head h1{ font-size:24px; }
  .cc-card .cx-cols{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; }
}

/* THE CARD, GONE THROUGH - Adam, 5 Nov 2026: "Go through the card NOW and make
   it better." Close and More at the top right of every screen, on a computer
   too; headings that never squeeze; every boxed section in the same white card
   as Home; Account details as a two-column list under their whole name;
   Reviews a screen of its own; Notes using the whole screen; the Edit client
   form full screen with its Save bar always in sight. v1933 */
.cc-card .cx-mst{ display:none; }
@media (min-width:900px){
  .modal.modal-wide.cc-card .cx-mtop{ display:flex !important; padding:12px 30px; min-height:61px; box-sizing:border-box; }
  .cc-card .cx-mtop .cx-av{ display:none; }
  .cc-card .cx-mtop b{ font-size:15px; flex:none; max-width:40%; }
  .cc-card .cx-mst{ display:block; min-width:0; color:var(--muted); font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .modal.modal-wide.cc-card .m-body.cx-main{ padding-top:20px; }
}
.cc-card .cx-mtop .cc-pop-top .cc-sq, .cc-card .cx-mtop .cx-x{ width:36px; height:36px; padding:0; }
.cc-card .cx-mtop .cx-x{ font-size:22px; line-height:1; }
.cc-card .cx-mtop .cx-x:hover{ background:#16246b; border-color:#16246b; color:#fff; }
/* the heading: name of the screen and New job on one line, the line under it
   across the whole width - it never folds into a narrow column on a phone */
.cc-card .cx-head{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; row-gap:0; align-items:center; }
.cc-card .cx-head > div:first-child{ display:contents; }
.cc-card .cx-head h1{ grid-column:1; grid-row:1; min-width:0; overflow-wrap:break-word; line-height:1.2; }
.cc-card .cx-head p{ grid-column:1 / -1; grid-row:2; margin-top:2px; }
.cc-card .cx-head .sp{ display:none; }
.cc-card .cx-head .cx-req{ grid-column:2; grid-row:1; }
/* the links in a card's heading are 36px like every control, without making the heading taller */
.cc-card .cx-card h3 button{ display:inline-flex; align-items:center; height:36px; margin:-10px 0 -10px auto; padding:0 14px; box-sizing:border-box; }
/* every boxed section on every screen in the Home cards' look */
.modal.modal-wide.cc-card .sec{ background:#fff !important; border:1px solid var(--line) !important; border-radius:14px !important; box-shadow:none !important; padding:15px 16px !important; margin:0 0 14px !important; }
.modal.modal-wide.cc-card .sec > *:not(.sec-h){ margin-left:0; margin-right:0; }
.modal.modal-wide.cc-card .sec-h{ display:flex; flex-direction:column; gap:3px; background:none !important; border:0 !important; padding:0 0 12px !important; }
.modal.modal-wide.cc-card .sec-h::before{ display:none; }
.modal.modal-wide.cc-card .sec-t{ font-size:12px !important; letter-spacing:.06em !important; text-transform:uppercase !important; color:var(--muted) !important; font-weight:900; }
.modal.modal-wide.cc-card .sec-s{ font-size:13px !important; font-weight:600; color:var(--muted) !important; line-height:1.4; }
.modal.modal-wide.cc-card .cc-onebox .sec{ padding-top:15px !important; }
.modal.modal-wide.cc-card .cc-onebox .sec > .sec-h{ display:none; }
.cc-card .cx-given .rv-head b{ white-space:nowrap; }
.cc-card .cc-scr input.field:not([type=checkbox]):not([type=radio]), .cc-card .cc-scr select.field{ height:36px; min-height:36px; box-sizing:border-box; padding-top:0; padding-bottom:0; }
.cc-card .cc-scr .sub-h{ margin-top:16px; }
/* Jobs on a computer: the buttons on their own line under the visit, full size, never squeezed */
@media (min-width:821px){
  .cc-card .job-item{ grid-template-columns:22px 3px minmax(0,1fr) !important; grid-template-areas:"pick spine info" ". . side"; row-gap:10px; padding:12px 6px; }
  .cc-card .job-side{ justify-content:flex-start; }
  .cc-card .job-btns{ display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; width:auto; }
  .cc-card .job-btns > *{ width:auto; }
  .cc-card .job-btns .cr-open, .cc-card .job-btns .cr-link, .cc-card .job-btns .pr-act-btn, .cc-card .job-btns a, .cc-card .job-btns button{ height:36px !important; padding:0 14px !important; font-size:13px !important; border-radius:10px; }
  .cc-card .job-svc{ font-size:15px; }
  .cc-card .job-date{ margin-left:8px; font-size:13px; }
  .cc-card .job-meta, .cc-card .job-where{ font-size:12.5px; }
}
/* Account details: label over value, two columns, one on a phone */
.cc-card .cx-acct-wrap{ display:flex; flex-direction:column; gap:14px; }
.cc-card .cx-kvs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:32px; }
.modal.modal-wide.cc-card .cx-kvs .acct-row{ display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:3px; padding:10px 0; border-top:0; border-bottom:1px solid #f0f2f8; min-width:0; text-align:left; }
.modal.modal-wide.cc-card .cx-kvs .acct-k{ font-size:11.5px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.modal.modal-wide.cc-card .cx-kvs .acct-v{ font-size:14.5px; font-weight:800; color:var(--navy); text-align:left; overflow-wrap:anywhere; max-width:100%; }
.cc-card .cx-kvs .pm-off{ display:contents; }
.cc-card .cx-edit{ margin-left:auto; display:inline-flex !important; align-items:center; gap:7px; height:36px !important; margin-top:-10px !important; margin-bottom:-10px !important; padding:0 16px 0 12px !important; border-radius:10px !important; background:var(--royal) !important; color:#fff !important; font-size:13.5px !important; box-shadow:0 6px 16px rgba(37,71,214,.22); }
.cc-card .cx-card h3 .cx-edit::after{ content:none; }
.cc-card .cx-edit .cx-ic{ width:16px; height:16px; }
.cc-card .cx-edit:hover{ background:#1c37ab !important; }
.cc-card .ccref-add{ display:flex !important; gap:8px; width:100%; margin-top:2px; }
.cc-card .ccref-add .field{ flex:1; min-width:0; height:36px; border:1.5px solid #dfe5f3; border-radius:9px; padding:0 11px; font:inherit; font-size:14px; box-sizing:border-box; }
.cc-card .ccref-b{ height:36px; margin-top:2px; }
.cc-card .ccref-msg{ grid-column:1 / -1; padding:8px 0 0; font-size:13px; font-weight:800; color:#2f7d18; }
.cc-card .ccref-msg.bad{ color:#b5342f; }
@media (max-width:640px){ .cc-card .cx-kvs{ grid-template-columns:1fr; } }
/* Reviews */
.cc-card .cx-revs{ display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
@media (min-width:1180px){ .cc-card .cx-revs{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
.cc-card .cx-grq .gr-block{ border:0; padding:0; margin:0; background:none; }
.cc-card .cx-grq .gr-h{ display:none; }
.cc-card .cx-grq .gr-row:first-of-type{ border-top:0; padding-top:0; }
.cc-card .cx-grq .gr-row{ grid-template-columns:170px minmax(0,1fr); }
.cc-card .cx-grq .gr-lab{ line-height:1.35; padding-top:10px; }
.cc-card .cx-given .rv-given{ margin:0; }
.cc-card .cx-given .rv-row:last-child{ margin-bottom:0; }
@media (max-width:640px){ .cc-card .cx-grq .gr-row{ grid-template-columns:1fr; } .cc-card .gr-send, .cc-card .gr-revtog{ width:100%; } }
/* Notes: the writing fills the screen under the heading */
.cc-card .cc-notes .cn-host{ --rn-h:calc(100vh - 32px - 61px - 132px); }
.cc-card .cc-notes .cn-host > .cx-card{ min-height:200px; }
.cc-card .cn-fail{ display:flex; align-items:center; gap:12px; }
@media (max-width:899px){
  .cc-card .cc-notes .cn-host{ --rn-h:calc(100vh - 61px - 128px - 78px); }
  .modal.modal-wide.cc-card .cc-notes{ margin-bottom:-90px; }
}
@supports (height:100dvh){
  .cc-card .cc-notes .cn-host{ --rn-h:calc(100dvh - 32px - 61px - 132px); }
  @media (max-width:899px){ .cc-card .cc-notes .cn-host{ --rn-h:calc(100dvh - 61px - 128px - 78px); } }
}
@media (min-width:900px){ .modal.modal-wide.cc-card .cx-main:has(.cc-notes.on){ max-width:none; padding-bottom:20px; } }
@media (max-width:899px){ .modal.modal-wide.cc-card .cx-main:has(.cc-notes.on){ padding-bottom:88px; } }

/* THE EDIT CLIENT FORM - full screen, sections, labels above boxes, a Save
   bar that is always in sight. v1933 */
.modal.modal-wide.cc-card.ce-card{ display:flex; flex-direction:column; overflow:hidden; background:#f4f6fb; }
.ce-card .ce-top{ flex:none; display:flex; align-items:center; gap:12px; padding:12px 24px; background:#fff; border-bottom:1px solid var(--line); min-height:61px; box-sizing:border-box; }
.ce-card .ce-top .sp{ flex:1; }
.ce-card .ce-tt{ min-width:0; }
.ce-card .ce-tt b{ display:block; font-size:19px; font-weight:900; color:var(--navy); line-height:1.2; }
.ce-card .ce-tt span{ display:block; font-size:13px; font-weight:700; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ce-card .ce-scroll{ flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; }
.ce-card .ce-form{ max-width:880px; margin:0 auto; padding:20px 24px 32px; display:flex; flex-direction:column; gap:14px; box-sizing:border-box; }
.ce-card .ce-sec{ padding:18px 20px; }
.ce-card .ce-sec h3{ font-size:13px; color:var(--navy); margin-bottom:14px; }
.ce-card .ce-sub{ margin:-8px 0 14px; color:var(--muted); font-size:13px; font-weight:600; }
.ce-card .ce-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; }
.ce-card .ce-grid + .ce-f, .ce-card .ce-f + .ce-f, .ce-card .ce-f + .ce-grid{ margin-top:14px; }
.ce-card .ce-wide{ grid-column:1 / -1; }
.ce-card .ce-grid > .ce-f, .ce-card .ce-grid > .ce-grid{ margin-top:0 !important; }
.ce-card .ce-sz{ grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:16px; }
.ce-card .ce-f{ min-width:0; }
.ce-card .ce-f > label, .ce-card .ce-form .add-lab{ display:block; margin:0 0 6px; font-size:12.5px; font-weight:800; color:#4a5470; text-transform:none; letter-spacing:0; }
.ce-card .ce-form .field{ display:block; width:100%; max-width:none; height:36px; min-height:36px; box-sizing:border-box; border:1.5px solid #dfe5f3; border-radius:9px; padding:0 11px; font:inherit; font-size:14px; font-weight:600; color:#16246b; background:#fff; margin:0; }
.ce-card .ce-form textarea.field{ height:auto; min-height:130px; padding:9px 11px; line-height:1.45; resize:vertical; }
.ce-card .ce-form .field:focus{ outline:none; border-color:var(--royal); box-shadow:0 0 0 3px #e3e9ff; }
.ce-card .ce-biz:not(:empty){ margin-top:14px; }
.ce-card #e_bizbox .add-lab{ margin-top:14px; }
.ce-card #e_bizbox .add-lab:first-child{ margin-top:0; }
.ce-card .add-hint, .ce-card .ce-hint{ margin:6px 0 0; font-size:12.5px; font-weight:600; color:var(--muted); line-height:1.4; }
.ce-card .ce-ph{ display:flex; align-items:center; gap:8px; margin:0 0 8px; }
.ce-card .ce-ph select.field{ flex:0 0 104px; width:104px; }
.ce-card .ce-ph input.field{ flex:1; min-width:0; width:auto; }
.ce-card .ce-main{ flex:0 0 52px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:9px; background:#eef2ff; color:var(--royal); font-size:11.5px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.ce-card .ce-phx{ flex:0 0 52px; height:36px; border:1.5px solid #f0c9c6; background:#fff; color:#b5342f; border-radius:9px; font:inherit; font-size:20px; font-weight:900; line-height:1; cursor:pointer; }
.ce-card .ce-phx:hover{ background:#fdf0ef; }
.ce-card .ce-add{ height:36px; padding:0 14px; border:1.5px dashed #c9d4f5; background:#fff; color:var(--royal); border-radius:9px; font:inherit; font-weight:800; font-size:13.5px; cursor:pointer; }
.ce-card .ce-add:hover{ border-color:var(--royal); background:#f7f9ff; }
.ce-card .ac-host:empty{ display:none; }
.ce-card .ac-host:empty + *{ margin-top:0; }
.ce-card .ce-sec .ce-f:has(> .ac-host:empty){ display:none; }
.ce-card .ce-ref .cx-kvs{ border:1px solid #eef1f8; border-radius:10px; padding:0 12px; }
.ce-card .ce-ref .acct-row:last-child{ border-bottom:0; }
.ce-card .ce-foot{ flex:none; display:flex; align-items:center; gap:10px; padding:12px 24px calc(12px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); box-shadow:0 -4px 16px rgba(16,32,80,.06); }
.ce-card .ce-foot .sp{ flex:1; }
.ce-card .ce-foot .msg.error{ margin:0; min-width:0; font-size:13px; font-weight:800; }
.ce-card .ce-cancel{ height:36px; padding:0 18px; border:1.5px solid var(--line); border-radius:10px; background:#fff; color:var(--navy); font:inherit; font-weight:800; font-size:14px; cursor:pointer; }
.ce-card .ce-save{ height:36px; min-width:150px; padding:0 22px; border:0; border-radius:10px; background:var(--royal); color:#fff; font:inherit; font-weight:900; font-size:14.5px; cursor:pointer; box-shadow:0 6px 16px rgba(37,71,214,.26); }
.ce-card .ce-save:hover{ background:#1c37ab; }
.ce-card .ce-save:disabled{ opacity:.6; cursor:default; }
@media (max-width:640px){
  .ce-card .ce-top{ padding:10px 14px; }
  .ce-card .ce-form{ padding:12px 12px 24px; gap:12px; }
  .ce-card .ce-sec{ padding:15px 14px; }
  .ce-card .ce-grid{ grid-template-columns:1fr; }
  .ce-card .ce-sz{ grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
  .ce-card .ce-ph select.field{ flex-basis:92px; width:92px; }
  .ce-card .ce-main, .ce-card .ce-phx{ flex-basis:44px; }
  .ce-card .ce-foot{ padding:10px 12px calc(10px + env(safe-area-inset-bottom)); flex-wrap:wrap; }
  .ce-card .ce-foot .msg.error{ flex:0 0 100%; }
  .ce-card .ce-foot .sp{ display:none; }
  .ce-card .ce-cancel, .ce-card .ce-save{ flex:1; min-width:0; }
}
.cc-card .cc-scr .cr-link[data-action="gotoptab"]{ display:inline-flex; align-items:center; min-height:36px; }   /* v1933 */

/* v1933 - Adam, 5 Nov 2026. Home's right column: address with Google Earth and
   street view, + Add, the callbacks that are set, account status. Clean text
   buttons, no arrows. */
.cc-card .cx-card h3 button{ font-weight:800; }
.cc-card .cx-addr1{ font-weight:800; color:var(--navy); line-height:1.35; }
.cc-card .cx-geo, .cc-card .cx-adds{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.cc-card .cx-adds{ padding-top:10px; border-top:1px solid var(--line); }
.cc-card .cx-geo .cx-btn, .cc-card .cx-adds .cx-btn, .cc-card .cx-acst .cx-btn, .cc-card .cx-wbtn{ height:36px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; padding:0 12px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; white-space:nowrap; }
.cc-card .cx-wbtn{ width:100%; margin-top:10px; }
.cc-card .cx-cbs{ display:flex; flex-direction:column; }
.cc-card .cx-cbr{ display:flex; align-items:baseline; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.cc-card .cx-cbr:first-child{ border-top:0; padding-top:0; }
.cc-card .cx-cbr b{ flex:1; min-width:0; color:var(--navy); font-weight:800; font-size:14px; }
.cc-card .cx-cbd{ font-size:13px; font-weight:800; color:var(--royal); white-space:nowrap; }
.cc-card .cx-cbd.due{ color:#b5342f; }
.cc-card .cx-strow{ display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; min-height:36px; padding:6px 0; border-top:1px solid var(--line); }
.cc-card .cx-strow:first-of-type{ border-top:0; }
.cc-card .cx-stk{ flex:1 1 140px; font-size:13px; font-weight:800; color:var(--muted); }
.cc-card .cx-st{ font-size:13px; font-weight:900; padding:4px 10px; border-radius:999px; }
.cc-card .cx-st.ok{ background:#e8f6e1; color:#2f7d18; }
.cc-card .cx-st.no{ background:#fdecec; color:#b5342f; }
.cc-card .cx-st.unk{ background:#eef1f7; color:#5b6478; }
.cc-card .cx-stars{ letter-spacing:.5px; }
.cc-card .cx-stars i{ font-style:normal; color:#9fb0d8; }
/* Notes on a phone: the strip of note tabs only slides sideways */
.cc-card .rn-tabs, .cc-card .rn-bar{ overflow-y:hidden !important; flex-wrap:nowrap; overscroll-behavior-x:contain; scrollbar-width:none; }
.cc-card .rn-tabs::-webkit-scrollbar, .cc-card .rn-bar::-webkit-scrollbar{ display:none; }
.cc-card .rn-tabs > *{ flex:none; }
.cc-card .rn-tabs{ align-items:flex-end; }
/* the photo viewer over the card - close button pinned top right, 36px, always in reach. v1933 */
.uplb{ position:fixed; inset:0; z-index:100050; background:rgba(10,16,40,.92); display:flex; flex-direction:column; font-family:Nunito,system-ui,Arial,sans-serif; }
.uplb-top{ position:sticky; top:0; flex:none; display:flex; align-items:center; gap:10px; padding:10px 12px; padding-top:max(10px, env(safe-area-inset-top)); background:#16246b; color:#fff; }
.uplb-t{ flex:1; min-width:0; }
.uplb-t b{ display:block; font-weight:900; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uplb-t span{ display:block; font-size:12px; font-weight:700; opacity:.8; }
.uplb-b{ height:36px; display:inline-flex; align-items:center; padding:0 12px; border-radius:10px; background:rgba(255,255,255,.14); color:#fff; font-weight:800; font-size:13px; text-decoration:none; }
.uplb-x{ width:36px; height:36px; flex:0 0 36px; border:0; border-radius:10px; background:#fff; color:#16246b; font:inherit; font-size:22px; font-weight:900; line-height:1; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.3); }
.uplb-pic{ flex:1; min-height:0; position:relative; display:flex; align-items:center; justify-content:center; padding:12px; overflow:hidden; }
.uplb-pic img{ max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; }
.uplb-nav{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border:0; border-radius:50%; background:rgba(255,255,255,.9); color:#16246b; font-size:28px; font-weight:900; line-height:1; cursor:pointer; }
.uplb-nav.prev{ left:10px; } .uplb-nav.next{ right:10px; }
/* Uploads: lots of photos scroll under the card's pinned header */
.cc-card #pt-up .up-job .up-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(90px, 1fr)); gap:10px; }
.cc-card #pt-up .up-sh{ width:auto; }
.cc-card #pt-up .up-sh img{ width:100%; height:auto; aspect-ratio:1/1; }

/* v1934 - Adam, 5 Nov 2026: "look how much space you use for barely any
   information". Dense cards: tight padding, no gray boxes, one thin line per
   fact, links as plain blue text with 36px tap height. */
.cc-card .cx-card.cx-dense{ padding:10px 14px; }
.cc-card .cx-dense h3{ margin:0 0 2px; min-height:36px; }
.cc-card .cx-dense .cx-hbtns{ margin-left:auto; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0; }
.cc-card .cx-dense .cx-btn, .cc-card .cx-dense .cx-geo .cx-btn{ height:36px; padding:0 8px; border:0; border-radius:8px; background:none; color:var(--royal); font-size:13px; font-weight:800; letter-spacing:0; text-transform:none; }
.cc-card .cx-dense .cx-btn:hover{ background:#eef2ff; }
.cc-card .cx-dense .cx-mini{ margin:0; padding:0; background:none; border-radius:0; border-top:1px solid var(--line); min-height:36px; gap:4px; }
.cc-card .cx-dense h3 + .cx-mini, .cc-card .cx-dense h3 + .cx-money{ border-top:0; }
.cc-card .cx-dense .cx-mini .cx-btn + .cx-btn{ margin-left:0; }
.cc-card .cx-dense .cx-addr1{ font-weight:800; }
.cc-card .cx-dense .cx-money{ align-items:center; min-height:36px; }
.cc-card .cx-dense .cx-money b{ font-size:20px; }
.cc-card .cx-dense .cx-money b.due{ color:#b5342f; }
.cc-card .cx-dense .cx-money .sp{ flex:1; }
.cc-card .cx-dense .cx-dim{ color:var(--muted); font-weight:700; }
.cc-card .cx-dense .cx-empty{ min-height:36px; display:flex; align-items:center; }
/* every Home card a little tighter, and the gaps between them. v1934 */
.cc-card .cx-card{ padding:12px 14px; }
.cc-card .cx-cols, .cc-card .cx-col{ gap:10px; }
.cc-card .cx-card h3{ margin-bottom:6px; }
.cc-card .cx-dense .cx-cbr{ padding:0; min-height:36px; align-items:center; }
.cc-card .cx-dense .cx-strow{ padding:0; }
.cc-card .cx-row{ padding:7px 0; }
.cc-card .cx-ban{ padding:6px 12px; margin-bottom:10px; }
.cc-card .cx-head{ margin-bottom:10px; }
.cc-card .cx-dense .cx-strow{ flex-wrap:nowrap; gap:6px; min-height:34px; }
.cc-card .cx-dense .cx-stk{ flex:1 1 auto; }
.cc-card .cx-dense .cx-st{ padding:2px 8px; font-size:12.5px; }
/* headings never wrap; the title itself opens the screen. v1934 */
.cc-card .cx-dense h3{ flex-wrap:nowrap; white-space:nowrap; }
.cc-card .cx-dense .cx-hbtns{ flex-wrap:nowrap; }
.cc-card .cx-card h3 .cx-hlink{ margin:0; padding:0; background:none; border:0; border-radius:0; color:inherit; font:inherit; letter-spacing:inherit; text-transform:inherit; cursor:pointer; }
.cc-card .cx-card h3 .cx-hlink:hover{ color:var(--royal); background:none; }
.cc-card .cx-dense h3 .cx-hbtns .cx-btn{ margin:0; }
.cc-card .cx-nxt .cx-nv{ gap:12px; }
.cc-card .cx-nxt .cx-dt{ width:52px; padding:4px 0; }
.cc-card .cx-nxt .cx-dt b{ font-size:21px; }
.cc-card .cx-nxt .cx-nvt b{ font-size:15.5px; }
.cc-card .cx-nxt .cx-nvt .cx-tags{ margin-top:4px; }
.cc-card .cx-dense .cx-strow{ min-height:30px; }
.cc-card .cx-dense .cx-row{ padding:5px 0; }
.cc-card .cx-dense .cx-cbs{ margin-top:0; }

/* The card's top never sits under the clock, the notch or the blue strip that
   covers them in the iPhone app. Adam, 5 Nov 2026: "The top of the customer
   card is buried in the header." The card window, its More menu, the Edit
   client form and the street view all start below that strip; a computer and
   a phone browser have no strip, so nothing moves there. v1935 */
@media (max-width:899px){
  .ovl:has(> .modal.cc-card){ padding:env(safe-area-inset-top,0px) 0 0; }
  .cc-card .cc-drawer{ padding-top:calc(12px + env(safe-area-inset-top,0px)); }
}
@media (min-width:900px){
  .ovl:has(> .modal.cc-card){ padding:calc(16px + env(safe-area-inset-top,0px)) 16px 16px; }
  .modal.modal-wide.cc-card{ height:calc(100vh - 32px - env(safe-area-inset-top,0px)); }
  .cc-card .cx-side{ height:calc(100vh - 32px - env(safe-area-inset-top,0px)); }
}
html body .svx-ov{ padding-top:calc(16px + env(safe-area-inset-top,0px)); }
/* Past jobs fits on one line in the bottom bar. v1935 */
.cc-card .cx-bot button{ white-space:nowrap; }
