/* NexStay Sales Agent — v141 design (replaces sales-agent-crm-v125.css)
   Ink navy + paper, one action blue, brass reserved for hot leads and the active stage.
   Serif (Palatino family) only for headings; larger sans for everything you read. */
:root{
  --ink:#102238; --ink-2:#34485e; --muted:#627489; --line:#e1e6ed; --line-2:#eef1f5;
  --paper:#f3f5f8; --card:#fff; --action:#1d4fbf; --action-2:#173f9a; --action-tint:#eaf0fc;
  --brass:#a9802f; --brass-tint:#f6efe1; --amber:#b45309; --amber-tint:#fdf3e7; --good:#1e7a55;
  --serif:"Palatino Linotype",Palatino,"Book Antiqua",P052,"URW Palladio L",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
}
body{background:var(--paper)!important}
.shell{max-width:none!important;margin:0!important;padding:0!important}
.back,.hero,.metrics,.grid,#leadPipeline122,.card.section{display:none!important}

#crm125{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr);background:var(--paper);color:var(--ink);font:400 15px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
#crm125 button,#crm125 input,#crm125 select{font-family:inherit}
#crm125 :focus-visible{outline:3px solid #93b4f0;outline-offset:2px;border-radius:8px}

/* ---------- sidebar ---------- */
.crm125-side{background:#0e2036;color:#fff;padding:26px 16px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.crm125-brand{text-align:center;padding:0 4px 24px}
.crm125-monogram{font:400 46px/1 var(--serif);color:#c9a35a}
.crm125-brand strong{display:block;font:600 23px/1.2 var(--serif);margin-top:6px;letter-spacing:.01em}
.crm125-brand small{display:block;font-size:12.5px;color:#b9c7d6;margin-top:3px;letter-spacing:.04em}
.crm125-nav{display:grid;gap:3px}
.crm125-nav a{display:flex;gap:12px;align-items:center;color:#c3d0de;text-decoration:none;padding:11px 14px;border-radius:10px;font-size:15px;font-weight:500}
.crm125-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.crm125-nav a.active{background:rgba(201,163,90,.16);color:#fff;box-shadow:inset 3px 0 0 #c9a35a}
.crm125-nav i{font-size:19px;opacity:.9}
.crm125-spacer{flex:1}
.crm125-hotel{border-top:1px solid rgba(255,255,255,.1);padding-top:16px;font-size:13px;color:#b9c7d6;line-height:1.5}
.crm125-hotel strong{color:#fff;font-weight:600}
.crm125-user{margin-top:14px;border-top:1px solid rgba(255,255,255,.1);padding-top:14px;display:flex;gap:10px;align-items:center}
.crm125-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#c9a35a;color:#0e2036;font-weight:700;font-size:16px}
.crm125-user strong{font-size:14px;font-weight:600}
.crm125-user small{display:block;color:#9fb1c4;font-size:12.5px}

/* ---------- top ---------- */
.crm125-main{padding:28px 32px 40px;min-width:0;max-width:1680px}
.crm125-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.crm125-title h1{font:600 34px/1.1 var(--serif);margin:0;color:var(--ink);letter-spacing:-.005em}
.crm125-title p{margin:6px 0 0;color:var(--muted);font-size:15px}
.crm125-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.crm-search-wrap{position:relative;display:block}
.crm-search-wrap i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:17px;pointer-events:none}
.crm125-search{width:280px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 14px 11px 38px;font-size:15px;color:var(--ink)}
.crm125-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:11px 16px;font-size:15px;font-weight:600;cursor:pointer;line-height:1.2;white-space:nowrap}
.crm125-btn:hover{border-color:#c7d1de;background:#fafbfd}
.crm125-btn.primary{background:var(--action);border-color:var(--action);color:#fff}
.crm125-btn.primary:hover{background:var(--action-2);border-color:var(--action-2)}
.crm125-btn.sm{padding:7px 12px;font-size:14px}
.crm125-btn i{font-size:18px}

/* ---------- summary band ---------- */
.crm125-summary{margin-bottom:18px}
.crm-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(280px,1.25fr);background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.crm-metric{padding:18px 22px;border-right:1px solid var(--line-2)}
.crm-metric-label{display:block;font-size:14px;color:var(--muted);font-weight:500}
.crm-metric strong{display:block;font:600 30px/1.15 var(--serif);margin-top:4px;color:var(--ink)}
.crm-metric strong em{font:500 17px var(--sans);color:var(--ink-2);font-style:normal}
.crm-metric small{display:block;font-size:13.5px;color:var(--muted);margin-top:3px}
.crm-metric.attention strong{color:var(--amber)}
.crm-hotel-card{display:flex;gap:14px;align-items:center;padding:14px 18px;background:#fbfaf7}
.crm-hotel-card img{width:104px;height:70px;object-fit:cover;border-radius:10px;flex:none}
.crm-hotel-card strong{display:block;font:600 16px/1.3 var(--serif)}
.crm-hotel-card small{display:block;color:var(--muted);font-size:13.5px;margin-top:3px}

/* ---------- stage bar ---------- */
.crm125-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:18px;overflow:hidden}
.crm125-tab{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;background:transparent;border:0;border-right:1px solid var(--line-2);padding:15px 20px 16px;text-align:left;cursor:pointer;color:var(--ink)}
.crm125-tab:last-child{border-right:0}
.crm125-tab:hover{background:#fafbfd}
.crm-stage-name{font-size:16px;font-weight:600}
.crm125-tab small{grid-column:1/-1;color:var(--muted);font-size:13.5px;margin-top:2px}
.crm125-count{font:600 20px/1 var(--serif);color:var(--ink-2)}
.crm125-tab.active{background:#fffdf8}
.crm125-tab.active::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--brass)}
.crm125-tab.attention .crm125-count{color:var(--amber)}
.crm125-tab.stage-duplicate .crm125-count,.crm125-tab.stage-finalized .crm125-count{color:var(--muted)}

/* ---------- list ---------- */
.crm125-work{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start}
.crm125-list-card,.crm125-detail{background:var(--card);border:1px solid var(--line);border-radius:14px}
.crm125-list-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.crm125-list-head h2{margin:0;font:600 24px/1.2 var(--serif)}
.crm125-list-head p{margin:3px 0 0;font-size:14px;color:var(--muted)}
.crm125-filters{display:flex;gap:8px}
.crm125-filters input,.crm125-filters select{border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:#fff;font-size:14.5px;color:var(--ink)}
.crm125-filters input{width:200px}
.crm125-rows{padding:4px 0}
.crm125-row{display:grid;grid-template-columns:56px minmax(0,1fr) 52px 150px;gap:18px;align-items:center;padding:16px 22px;border-bottom:1px solid var(--line-2);cursor:pointer;position:relative}
.crm125-row:last-child{border-bottom:0}
.crm125-row:hover{background:#f9fafc}
.crm125-row.selected{background:#fbf8f1}
.crm125-row.selected::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--brass)}
.crm-row-main{min-width:0}
.crm-row-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-row-title strong{font-size:17px;font-weight:650;color:var(--ink);line-height:1.3}
.crm-row-contact{font-size:14px;color:var(--ink-2);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm125-reason{font-size:14px;color:var(--muted);margin-top:5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:78ch}
.crm-row-figs{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:right}
.crm-row-figs strong{display:block;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}
.crm-row-figs small{display:block;font-size:12.5px;color:var(--muted)}
.crm125-empty{padding:48px 24px;text-align:center;color:var(--muted);font-size:15px}

/* tags: segment-tinted, readable size */
.crm125-tag{font-size:12.5px;font-weight:600;border-radius:6px;padding:2px 8px;text-transform:capitalize;background:#eef2f7;color:#425870;line-height:1.5}
.crm125-tag.recurring{background:var(--brass-tint);color:#7d5d1f;text-transform:none}

/* ---------- logos ---------- */
.crm-logo{position:relative;width:56px;height:56px;border-radius:13px;display:grid;place-items:center;overflow:hidden;flex:none;border:1px solid transparent}
.crm-logo.lg{width:64px;height:64px;border-radius:15px}
.crm-mono{font:600 19px/1 var(--serif);letter-spacing:.02em}
.crm-logo.lg .crm-mono{font-size:22px}
.crm-logo img{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);object-fit:contain;opacity:0}
.crm-logo img.ok{opacity:1}
.crm-logo.has-logo{background:#fff!important;border-color:var(--line)}
.crm-logo.has-logo .crm-mono{visibility:hidden}
.seg-construction{background:#fbeedd;color:#9a5a12}
.seg-medical{background:#dff2f0;color:#0f6b66}
.seg-corporate{background:#e5ecf9;color:#2f4f96}
.seg-university{background:#ece7f6;color:#5b4392}
.seg-sports{background:#e3f1e4;color:#2b6a30}
.seg-government{background:#e8ecf1;color:#3f4f63}
.seg-wedding,.seg-event{background:#f6e6ee;color:#8f3460}
.seg-crew{background:#f2e9df;color:#7a5127}
.seg-travel_agent{background:#e2f0f7;color:#22607e}
.seg-other{background:#edf0f4;color:#4c5d71}

/* ---------- score dial (the one bold element) ---------- */
.crm-dial{--p:0;--c:#9aa8b8;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p)*1%),#e7ebf0 0);justify-self:center}
.crm-dial span{width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;font:650 15px/1 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}
.crm-dial.hot{--c:var(--brass)}
.crm-dial.warm{--c:#6f8fc7}
.crm-dial.big{width:58px;height:58px}
.crm-dial.big span{width:46px;height:46px;font-size:18px}

/* ---------- detail ---------- */
.crm125-detail{padding:22px;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}
.crm-detail-head{display:flex;gap:14px;align-items:center}
.crm125-detail h3{margin:0;font:600 23px/1.2 var(--serif)}
.crm125-detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.crm-contact{margin:16px 0 6px;display:grid;gap:7px}
.crm125-detail-line{display:flex;gap:10px;align-items:center;font-size:15px;color:var(--ink-2);min-width:0}
.crm125-detail-line i{font-size:18px;color:var(--muted);flex:none}
.crm125-detail-line a{color:var(--action);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm125-detail-line a:hover{text-decoration:underline}
.crm125-detail-line.muted{color:var(--muted)}
.crm125-detail h4{margin:20px 0 6px;font-size:14px;font-weight:650;color:var(--ink-2)}
.crm125-note{font-size:15px;line-height:1.6;color:var(--ink-2);margin:0}
.crm-estimates{display:grid;grid-template-columns:auto 1fr 1fr;gap:14px;align-items:center;margin-top:16px;padding:14px 16px;background:#f8f9fb;border:1px solid var(--line-2);border-radius:12px}
.crm-estimates strong{display:block;font:600 22px/1.1 var(--serif);font-variant-numeric:tabular-nums}
.crm-estimates small{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.crm-assumption{font-size:13px;color:var(--muted);margin:8px 2px 0}
.crm125-follow{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f8f9fb;border:1px solid var(--line-2);border-radius:12px;padding:10px 12px;font-size:15px;font-weight:500}
.crm125-follow.overdue{background:var(--amber-tint);border-color:#f2d6b3;color:var(--amber)}
.crm125-follow.today{background:var(--brass-tint);border-color:#ead8b2;color:#7d5d1f}
.crm125-quick{display:grid;grid-template-columns:1fr;gap:10px;margin-top:20px}
.crm125-quick .crm125-btn.primary{padding:13px 16px;font-size:16px}

/* ---------- responsive ---------- */
.crm125-work>*{min-width:0}
@media (max-width:1380px){
  .crm125-work{grid-template-columns:minmax(0,1fr) 340px}
  .crm-band{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-hotel-card{display:none}
  .crm125-row{grid-template-columns:52px minmax(0,1fr) 48px 92px;gap:14px;padding:15px 18px}
  .crm-row-figs{grid-template-columns:1fr;gap:6px}
  .crm-row-figs strong{font-size:16px}
}
@media (max-width:1150px){
  #crm125{grid-template-columns:76px minmax(0,1fr)}
  .crm125-brand strong,.crm125-brand small,.crm125-nav span,.crm125-hotel,.crm125-user div:last-child{display:none}
  .crm125-nav a{justify-content:center;padding:12px}
  .crm125-work{grid-template-columns:1fr}.crm125-detail{position:static;max-height:none}
  .crm125-tabs{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}
  .crm125-tab{flex:0 0 auto;min-width:180px;scroll-snap-align:start}
}
@media (max-width:760px){
  #crm125{grid-template-columns:1fr}.crm125-side{display:none}
  .crm125-main{padding:16px 14px 32px}.crm125-title h1{font-size:28px}
  .crm125-actions{width:100%}.crm-search-wrap{flex:1 1 100%}.crm125-search{width:100%}
  .crm125-actions .crm125-btn{flex:1 1 0}
  .crm-metric{padding:12px 14px}.crm-metric-label{font-size:13px}.crm-metric strong{font-size:24px}.crm-metric strong em{font-size:14px}.crm-metric small{font-size:12.5px}
  .crm125-tab{min-width:150px;padding:12px 16px 14px}
  .crm125-list-head{padding:16px}
  .crm125-filters{width:100%}.crm125-filters input{flex:1 1 auto;width:auto;min-width:0}
  .crm125-row{grid-template-columns:48px minmax(0,1fr) 46px;gap:12px;padding:14px 16px}
  .crm-row-figs{grid-column:2/-1;text-align:left;grid-template-columns:auto auto;justify-content:start;gap:22px}
  .crm-logo{width:48px;height:48px;border-radius:12px}
  .crm125-detail{padding:18px}
}
@media (prefers-reduced-motion:reduce){#crm125 *{transition:none!important;animation:none!important}}

/* "Return to Main Dashboard" (added by sales-agent-nav-v127.js, styled by workspace v128):
   a quiet way back, separated from the Sales sections below it */
#crm125 .crm125-nav a.crm128-main-dashboard{background:transparent;color:#9fb1c4!important;font-size:14px;padding:9px 14px;margin-bottom:8px;border-radius:10px;box-shadow:0 1px 0 rgba(255,255,255,.08)}
#crm125 .crm125-nav a.crm128-main-dashboard:hover{background:rgba(255,255,255,.06);color:#fff!important}
