/* HC Sales v2 (Step A, Step B): shared look. public/sales/sales.css
   The calm HC App frame stays; color lives in the data (stage fills, tiles,
   stripes, batteries). Shared classes start hcs-. View files add their own
   (hcs-t- table, hcs-b- board, hcs-y- today and so on). Motion: 150ms on
   color, opacity and transform only. Taps are 44px on a phone. */
:root{
  /* Athena sage (option D): warm page, lines and text greys. --hcs-green is
     a dark readable ink for links and focus; main buttons use the forest
     pill --brand-fill from index.html. Stage colors below do not change. */
  --hcs-page:#eef0ea;--hcs-card:#ffffff;--hcs-line:#e0e3da;--hcs-line2:#ccd2c6;
  --hcs-text:#1f3025;--hcs-text2:#5b6a5f;--hcs-muted:#636e66;
  --hcs-green:#44624c;--hcs-green-hover:#33503b;
  --hcs-new:#216edf;--hcs-talking:#fdab3d;--hcs-quoted:#9d50dd;--hcs-invoiced:#7fd3ad;--hcs-booked:#00c875;
  --hcs-delivered:#037f4c;--hcs-passed:#757575;--hcs-closed:#c4c4c4;
  --hcs-red:#df2f4a;--hcs-orange:#fdab3d;--hcs-done:#00c875;--hcs-none:#e6e9ef;
  --hcs-navy:#225091;--hcs-aqua:#4eccc6;--hcs-pink:#e50073;
  /* Markets (status design D2): NY navy, Miami teal, Las Vegas violet. */
  --hcs-m-miami:#0E9F9A;--hcs-m-vegas:#6D28D9;--hcs-m-unknown:#9ca3af;
  --hcs-amber-line:#f2a33a;--hcs-amber-text:#8f5600;
  --hcs-radius:8px;--hcs-t:150ms;
}
/* The P1 wrapper was 760px wide; v2 uses the whole main area. */
#sales-wrap.sales-wrap{max-width:none;margin:0;padding:0;background:var(--hcs-page)}
.hcs{color:var(--hcs-text);font-size:14px;min-height:100%}
.hcs *{box-sizing:border-box}
.hcs button{font-family:inherit}
.hcs-ic{flex:none;display:inline-block;vertical-align:middle}

/* ── Header bar (sticky, 56px) */
.hcs-head{position:sticky;top:var(--hc-topbar-h,0px);z-index:20;display:flex;align-items:center;gap:16px;height:56px;padding:0 24px;background:#fff;border-bottom:1px solid var(--hcs-line)}
.hcs-title{font-size:18px;font-weight:700;margin:0;white-space:nowrap}
.hcs-searchbox{flex:1 1 auto;max-width:420px;display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border-radius:8px;background:var(--hcs-page);border:1px solid var(--hcs-line);color:var(--hcs-muted);font-size:13px;cursor:pointer;text-align:left;transition:border-color var(--hcs-t)}
.hcs-searchbox:hover{border-color:var(--hcs-line2)}
.hcs-searchbox-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hcs-kbd{font-size:11px;color:var(--hcs-muted);border:1px solid var(--hcs-line2);border-radius:4px;padding:1px 5px;background:#fff}
.hcs-health{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--hcs-muted);white-space:nowrap}
.hcs-dot{width:8px;height:8px;border-radius:50%;background:var(--hcs-muted)}
.hcs-health-ok .hcs-dot{background:var(--hcs-done)}
.hcs-health-stale .hcs-dot{background:var(--hcs-orange)}
.hcs-health-never .hcs-dot{background:var(--hcs-none);border:1px solid var(--hcs-line2)}
.hcs-tidy{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#fff4e0;color:#9a5b00;border:1px solid #f2c47a;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background-color var(--hcs-t)}
.hcs-tidy:hover{background:#ffe9c2}
.hcs-new,.hcs-btn-primary{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:8px;background:var(--brand-fill);color:var(--on-brand);border:0;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background-color var(--hcs-t)}
.hcs-new:hover,.hcs-btn-primary:hover{background:var(--brand-fill-hover)}
.hcs-new:active,.hcs-btn-primary:active{background:var(--brand-fill-press)}
.hcs-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 14px;border-radius:8px;background:#fff;border:1px solid var(--hcs-line2);color:var(--hcs-text);font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;transition:background-color var(--hcs-t),border-color var(--hcs-t)}
.hcs-btn:hover{background:#f5f6f8}
.hcs-btn[disabled],.hcs-btn-primary[disabled]{opacity:.5;cursor:not-allowed}
.hcs-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#fff;border:1px solid var(--hcs-line2);color:var(--hcs-text);cursor:pointer}

/* ── Phone segments (Today | Deals | Prep | Clients) */
.hcs-seg{display:none}
.hcs-seg-btn{flex:1;min-height:36px;border:0;border-radius:8px;background:transparent;color:var(--hcs-text2);font-size:14px;font-weight:600;cursor:pointer;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-seg-btn.hcs-on{background:#fff;color:var(--hcs-text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.hcs-seg-btn[disabled]{color:var(--hcs-muted);cursor:default}

/* ── Main area, notes, empty and loading states */
.hcs-main{padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.hcs-note{margin:12px 24px 0;padding:10px 12px;border-radius:8px;background:#fff4e0;color:#7a4b00;font-size:13px}
.hcs-note[hidden]{display:none}
.hcs-loading,.hcs-empty,.hcs-waiting{padding:32px 16px;text-align:center;color:var(--hcs-text2);font-size:14px}
.hcs-gray{color:var(--hcs-muted);font-size:13px}
.hcs-step-note{padding:12px;border:1px dashed var(--hcs-line2);border-radius:8px;color:var(--hcs-muted);font-size:13px;text-align:center}

/* ── Cards, rows, tiles, group stripes */
.hcs-card{background:var(--hcs-card);border:1px solid var(--hcs-line);border-radius:var(--hcs-radius);padding:16px}
.hcs-row{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--hcs-line);border-left:4px solid transparent;cursor:pointer;transition:background-color var(--hcs-t)}
.hcs-row:hover{background:#f7f8fa}
.hcs-wash{background:#fdeef0}
.hcs-wash:hover{background:#fbe2e6}
.hcs-initials{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#e6f0ff;color:#1f4f99;font-size:13px;font-weight:700}
.hcs-tile{display:flex;flex-direction:column;justify-content:space-between;min-height:112px;padding:14px 16px;border-radius:8px;border:0;text-align:left;cursor:pointer;transition:opacity var(--hcs-t),transform var(--hcs-t)}
.hcs-tile:hover{opacity:.92}
.hcs-tile-num{font-size:32px;font-weight:800;line-height:1}
.hcs-tile-label{font-size:14px;font-weight:600}
.hcs-tile-sub{font-size:12px}
.hcs-tile-white{background:#fff;border:1px solid var(--hcs-line);border-top:4px solid var(--hcs-line2);color:var(--hcs-text)}
.hcs-group{display:flex;align-items:center;gap:10px;padding:8px 0}
.hcs-stripe{flex:none;width:4px;height:20px;border-radius:2px;background:var(--hcs-line2)}
.hcs-group-title{font-size:16px;font-weight:700}
.hcs-group-count{font-size:13px;color:var(--hcs-text2)}

/* ── Pills and fills. Solid: stage, market (at most 3 solid per row). */
.hcs-pill{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:0}
.hcs-cell{display:flex;align-items:center;justify-content:center;height:32px;border-radius:4px;font-size:13px;font-weight:600;white-space:nowrap;transition:filter var(--hcs-t)}
.hcs-cell:hover{filter:brightness(.92)}
.hcs-fill-new{background:#216edf;color:#fff}.hcs-fill-talking{background:#fdab3d;color:#323338}
.hcs-fill-quoted{background:#9d50dd;color:#fff}.hcs-fill-booked,.hcs-fill-booked_later{background:#00c875;color:#323338}
/* Invoice sent (Sidd 2026-10-07): the Invoice sent, not paid look (white,
   green outline), so a stage pill and its money word match. */
.hcs-fill-invoiced{background:#fff;color:#0B5136;box-shadow:inset 0 0 0 1.5px #0B5136}
.hcs-fill-delivered{background:#037f4c;color:#fff}.hcs-fill-passed{background:#757575;color:#fff}
.hcs-fill-closed,.hcs-fill-cancelled_old{background:#c4c4c4;color:#323338}.hcs-fill-history{background:#e6e9ef;color:#323338}
/* One market palette (status design D2): navy, teal, violet, gray. A market
   is never red, amber or green (those mean status). */
.hcs-fill-ny{background:#225091;color:#fff}.hcs-fill-miami{background:#0E9F9A;color:#052726}
.hcs-fill-vegas{background:#6D28D9;color:#fff}.hcs-fill-unknown{background:#fff;color:#4b5563;box-shadow:inset 0 0 0 1.5px #9ca3af}
/* Status design (Sidd 2026-10-06): a booked deal's money word, in the same
   colors as the HC App calendar chip (index.html .bk.bk-*). */
.hcs-fill-pay_not_paid{background:#fff;color:#0B5136;box-shadow:inset 0 0 0 1.5px #0B5136}
.hcs-fill-pay_deposit{background:#D6EFE0;color:#0B5136;box-shadow:inset 0 0 0 1.5px #0B5136}
.hcs-fill-pay_paid{background:#0B5136;color:#fff}
.hcs-fill-pay_check{background:#F3F4F6;color:#374151;outline:1.5px dotted #6B7280;outline-offset:-1.5px}
.hcs-fill-payment_check{background:#F3F4F6;color:#374151;outline:1.5px dotted #6B7280;outline-offset:-1.5px}
.hcs-t-bg-payment_check{background:#F3F4F6}
.hcs-t-ink-payment_check{color:#374151}
.hcs-edge-payment_check{border-left-color:#6B7280}
.hcs-l-p-payment_check:not(.hcs-l-on){background:#F3F4F6;color:#374151;border:1.5px dotted #6B7280}
.hcs-sym{font-weight:800;line-height:1}
.hcs-cell .hcs-sym{margin-right:4px}
.hcs-edge-new{border-left-color:#216edf}.hcs-edge-talking{border-left-color:#fdab3d}.hcs-edge-quoted{border-left-color:#9d50dd}
.hcs-edge-invoiced{border-left-color:#7fd3ad}.hcs-edge-booked,.hcs-edge-booked_later{border-left-color:#00c875}.hcs-edge-delivered{border-left-color:#037f4c}
.hcs-edge-passed{border-left-color:#757575}.hcs-edge-closed,.hcs-edge-cancelled_old,.hcs-edge-history{border-left-color:#c4c4c4}

/* Tint tags (never solid): event types and deal tags */
.hcs-tag{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:4px;font-size:11px;font-weight:600;white-space:nowrap;background:var(--hcs-page);color:var(--hcs-text2)}
.hcs-type-wedding{background:#fde8f1;color:#a3195b}.hcs-type-private{background:#fff0e5;color:#a44f10}
.hcs-type-corporate{background:#e6f0ff;color:#1f4f99}.hcs-type-trade_show{background:#f0e9ff;color:#5b2ea6}
.hcs-type-venue{background:#e0f7f6;color:#11706b}
.hcs-tag-past_client{background:var(--green-pale);color:var(--green)}.hcs-tag-planner{background:#f0e9ff;color:#5b2ea6}
.hcs-tag-rush{background:#fde7ea;color:#b3122e}.hcs-tag-date_q{background:var(--hcs-page);color:var(--hcs-text2)}
.hcs-tag-market_q{background:#fff;color:#4b5563;box-shadow:inset 0 0 0 1px #9ca3af}
.hcs-risk{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:4px;font-size:11px;font-weight:600;background:#df2f4a;color:#fff}
.hcs-datechip{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:4px;background:#f0f2f5;font-size:12px;color:var(--hcs-text)}
.hcs-datechip-red{background:#fde7ea;color:#b3122e}

/* Readiness dots: done green, in progress orange, missing a hollow red ring,
   missing within 7 days solid red, not needed or not tracked light gray. */
.hcs-rdot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e6e9ef;flex:none}
.hcs-r-done{background:#00c875}.hcs-r-progress{background:#fdab3d}
.hcs-r-missing{background:#fff;box-shadow:inset 0 0 0 2px #df2f4a}.hcs-r-urgent{background:#df2f4a;box-shadow:none}
.hcs-r-unknown{background:#fff;box-shadow:inset 0 0 0 1.5px #c4c4c4}.hcs-r-not_needed{background:#e6e9ef}
.hcs-rpill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--hcs-page);color:var(--hcs-text2)}
.hcs-rpill.hcs-r-done{background:#00c875;color:#323338}.hcs-rpill.hcs-r-progress{background:#fdab3d;color:#323338}
.hcs-rpill.hcs-r-missing{background:#fff;color:#b3122e}.hcs-rpill.hcs-r-urgent{background:#df2f4a;color:#fff}
.hcs-ready{display:inline-flex;align-items:center;gap:4px;color:#037f4c;font-size:12px;font-weight:600}

/* Battery bars: segments sized by count (flex-grow set by the view). */
.hcs-battery{display:flex;gap:1px;height:8px;border-radius:4px;overflow:hidden;background:#eef1f4}
.hcs-battery>span{display:block;min-width:2px;background:#c4c4c4}
.hcs-battery-text{font-size:12px;color:var(--hcs-text2);white-space:nowrap}

/* ── Hosts: sheet (over the page), preview panel (right), search, toast */
#hcs-sheet.hcs-overlay{position:fixed;inset:0;z-index:300;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,23,32,.45)}
.hcs-sheet-box{width:100%;max-width:520px;max-height:90vh;overflow:auto;border-radius:16px 16px 0 0}
/* Step B: the phone drag handle, and per-type hooks on [data-sheet=<type>] */
.hcs-sheet-handle{width:36px;height:4px;margin:-6px auto 10px;border-radius:2px;background:var(--hcs-line2)}
#hcs-panel{position:fixed;top:0;right:0;bottom:0;z-index:250;width:440px;max-width:100%;overflow:auto;background:#fff;border-left:1px solid var(--hcs-line);box-shadow:-8px 0 24px rgba(23,35,46,.12);transform:translateX(0);transition:transform var(--hcs-t)}
#hcs-search{position:fixed;inset:0;z-index:280;display:flex;align-items:flex-start;justify-content:center;padding:72px 16px 16px;background:rgba(15,23,32,.35)}
#hcs-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:320;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:10px 12px 10px 16px;border-radius:10px;background:#323338;color:#fff;font-size:14px;transform:translateX(-50%);box-shadow:0 8px 24px rgba(0,0,0,.25);transition:opacity var(--hcs-t)}
#hcs-toast[hidden]{display:none}
.hcs-toast-undo,.hcs-toast-x{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--toast-accent);font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}
.hcs-toast-x{color:#c4c4c4;padding:0 6px}

/* ── Laptop sidebar: Sales sub-nav under the Sales button, and the badges */
.hcs-navbadge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:999px;background:#216edf;color:#fff;font-size:11px;font-weight:700;line-height:1}
.hcs-navbadge[hidden]{display:none}
.hcs-navbadge-muted{background:var(--nav-badge);color:var(--on-soft)}
.hcs-navbadge-amber{background:#fdab3d;color:#323338}
.sales-subnav{display:flex;flex-direction:column;gap:2px;margin:2px 0 6px 14px}
.sales-subnav[hidden]{display:none!important}
.sales-subnav-item{display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--side-text);font-size:13px;font-weight:500;text-align:left;cursor:pointer;font-family:inherit;transition:background-color var(--hcs-t),color var(--hcs-t)}
.sales-subnav-item:hover{background:var(--side-hover);color:var(--side-strong)}
.sales-subnav-item.active{background:var(--side-active);color:var(--side-active-text);font-weight:600;box-shadow:inset 3px 0 0 var(--side-bar)}
.sales-subnav-later{display:flex;align-items:center;justify-content:space-between;min-height:30px;padding:0 10px;color:var(--side-muted);font-size:13px}
.sales-subnav-later span{font-size:11px;color:var(--side-muted)}

/* ── Phone (under 1150px): 16px gutter, 44px taps, segments, no x-scroll */
@media (max-width:1149px){
  .sales-subnav{display:none!important}
  #vt-sales{position:relative}
  #vt-sales .hcs-navbadge{position:absolute;top:2px;left:calc(50% + 8px);min-width:16px;height:16px;margin:0;padding:0 4px;font-size:10px}
  .hcs{overflow-x:hidden;overflow-x:clip}
  .hcs-head{gap:8px;padding:0 16px}
  .hcs-searchbox{flex:0 0 44px;width:44px;height:44px;justify-content:center;padding:0;margin-left:auto}
  .hcs-searchbox-text,.hcs-kbd,.hcs-health-label,.hcs-new{display:none}
  .hcs-tidy{height:32px}
  .hcs-seg{display:flex;position:sticky;top:calc(var(--hc-topbar-h,0px) + 56px);z-index:19;gap:4px;margin:8px 16px 0;padding:4px;min-height:44px;border-radius:10px;background:var(--seg-track)}
  /* A page-colored band round the stuck segments, so cards scrolling under
     them never peek out at their sides or round corners. */
  .hcs-seg{box-shadow:0 0 0 16px var(--hcs-page)}
  .hcs-seg[hidden]{display:none}
  .hcs-main{padding:16px}
  .hcs-note{margin:12px 16px 0}
  .hcs-btn,.hcs-btn-primary,.hcs-iconbtn,.hcs-seg-btn{min-height:44px}
  .hcs-iconbtn{width:44px}
  .hcs-row{min-height:56px}
  .hcs-tile-num{font-size:28px}
  #hcs-panel{width:100%}
  #hcs-toast{bottom:calc(76px + env(safe-area-inset-bottom))}
  /* Step B: above the deal page's fixed bar (deal.js sets body.hcs-has-bar),
     44px toast buttons, and Quick add as a 90% tall bottom sheet. */
  body.hcs-has-bar #hcs-toast{bottom:calc(84px + env(safe-area-inset-bottom))}
  /* While a sheet is open (shell.js marks the body) the toast sits at the
     top, so its Undo never lands on the sheet's bottom buttons. After the
     deal bar rule above, so it wins. */
  body.hcs-sheet-up #hcs-toast{top:calc(12px + env(safe-area-inset-top));bottom:auto}
  .hcs-toast-undo,.hcs-toast-x{min-height:44px}
  .hcs-toast-x{min-width:44px;justify-content:center}
  .hcs-sheet-box[data-sheet="quickadd"]{min-height:90vh}
}
