/* CLA Title & Escrow portal (new build). REDESIGN (John, Nov 3): one design system for the whole app. Plain CSS, no framework, no CDN.
   Tokens below (colors, spacing, type, radius, shadow); every component uses them. Navy + neutral greys for a title company, with the CLA green kept
   as a small brand accent (success / done states). Class names, ids and data-attributes are unchanged (the UI scripts and pages rely on them). */
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
:root {
  /* brand + neutrals */
  --navy-950: #0b1730; --navy-900: #102244; --navy-800: #16305c; --navy-700: #1d3d74; --navy-600: #264d8f; --navy-500: #3563ad; --navy-200: #c9d6ec; --navy-100: #e6edf8; --navy-50: #f2f6fc;
  --ink: #18212f; --ink-2: #3f4a5c; --ink-3: #5f6b7d; --ink-4: #8a94a6; --line: #e3e7ee; --line-2: #cfd6e1; --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f8fafc;
  --brand: #7aa62f; --brand-ink: #4b6b14; --brand-50: #eff6e2;
  /* status */
  --ok: #17734a; --ok-bg: #e6f4ec; --ok-line: #b9e0c9; --warn: #9a4a07; --warn-bg: #fff4e5; --warn-line: #f5d19c; --bad: #b42318; --bad-bg: #fdeceb; --bad-line: #f4c2bd;
  --info: #1d4e9e; --info-bg: #eaf1fc; --info-line: #c4d6f3;
  /* type */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; --font-head: 'Poppins', var(--font);
  --fs-xs: 11.5px; --fs-sm: 12.5px; --fs: 14px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 26px;
  /* spacing, shape, depth */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05); --sh-2: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04); --sh-3: 0 8px 24px rgba(16, 24, 40, .12); --sh-4: 0 20px 48px rgba(16, 24, 40, .22);
  --focus: 0 0 0 3px rgba(53, 99, 173, .28);
  --topbar-h: 60px; --sidebar-w: 248px;
  /* legacy names (older rules and pages may still use them) */
  --green: var(--brand); --green-ink: var(--brand-ink); --dark: var(--navy-900); --grey: var(--ink-3); --orange: #e8833a; --red: var(--bad); --blue: var(--navy-600);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy-600); text-underline-offset: 2px; } a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -.005em; }
.muted { color: var(--ink-3); } .small { font-size: var(--fs-sm); } .center { text-align: center; } .nowrap { white-space: nowrap; } .spacer { flex: 1; } .right { float: right; }
.sr { position: absolute; left: -9999px; } .bad-text { color: var(--bad); font-weight: 500; } .err-text { color: var(--bad); } .warn-text { color: var(--warn); }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
button, input, select, textarea { font-family: inherit; font-size: var(--fs); color: inherit; }
input, select, textarea { border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; background: var(--surface); width: 100%; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: #b4bfcf; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--navy-600); width: 16px; height: 16px; margin: 0; }
input[type=file] { padding: 8px; background: var(--surface-2); border-style: dashed; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-4); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6b7d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
select[multiple] { background-image: none; padding-right: 12px; }
textarea { resize: vertical; min-height: 44px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s4) var(--s4); margin: 0; min-width: 0; }
legend { padding: 0 6px; font-weight: 600; color: var(--ink-2); font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
/* ---------- topbar ---------- */
.topbar-main { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--topbar-h); background: linear-gradient(90deg, var(--navy-950), var(--navy-800)); box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 2px 10px rgba(11, 23, 48, .25); }
.topbar-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand), rgba(122,166,47,0) 60%); opacity: .9; }
.topbar-inner { display: flex; align-items: center; height: var(--topbar-h); padding: 0 var(--s5); gap: var(--s4); } .brand { display: flex; align-items: center; } .brand img { height: 34px; display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }
.green-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-950); background: #fff; padding: 7px 14px; border: 0; border-radius: var(--r); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--sh-1); transition: background .12s; }
.green-btn::before { content: '+'; font-size: 16px; line-height: 1; font-weight: 500; } .green-btn:hover { background: var(--navy-100); color: var(--navy-950); }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r); } .bell:hover { background: rgba(255,255,255,.1); } .bell img { height: 20px; display: block; filter: brightness(0) invert(1); opacity: .9; }
.notification-num { position: absolute; top: 2px; right: 0; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: var(--r-pill); padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; box-shadow: 0 0 0 2px var(--navy-900); }
.user-menu { position: relative; } .user-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 10px; border-radius: var(--r); font-weight: 500; } .user-btn:hover { background: rgba(255,255,255,.1); }
.user-dd { position: absolute; right: 0; top: 44px; margin: 0; padding: 6px; list-style: none; background: var(--surface); min-width: 200px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: 30; }
.user-dd a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); } .user-dd a:hover { background: var(--navy-50); }
.crm-global-search input { width: 260px !important; background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; border-radius: var(--r) !important; padding: 7px 12px !important; }
.crm-global-search input::placeholder { color: rgba(255,255,255,.65); } .crm-global-search input:focus { background: #fff !important; color: var(--ink) !important; }
/* ---------- layout ---------- */
.wrapper-main { min-height: 100vh; padding-top: var(--topbar-h); position: relative; background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--line) calc(var(--sidebar-w) - 1px), var(--line) var(--sidebar-w), transparent var(--sidebar-w)); }
.left-bar { position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: var(--s3) var(--s3) var(--s6); }
.right-bar { margin-left: var(--sidebar-w); padding: var(--s5) var(--s7) 72px; min-height: calc(100vh - var(--topbar-h)); max-width: calc(var(--sidebar-w) + 1440px); }
.footer-bar { margin-left: var(--sidebar-w); background: var(--surface); border-top: 1px solid var(--line); padding: var(--s3) var(--s7); display: flex; justify-content: space-between; gap: var(--s4); font-size: var(--fs-sm); color: var(--ink-3); }
.foot-logo { height: 20px; vertical-align: middle; margin-right: 8px; opacity: .8; }
.welcome-title { font-family: var(--font); color: var(--ink-3); text-transform: none; font-size: var(--fs-sm); font-weight: 500; padding: 0; border: 0; margin: 0 0 var(--s2); }
.dev-banner { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; background: #fff4d6; border: 2px solid #c47b00; color: #6a3d00; font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 8px; margin-bottom: 12px; } .dev-banner a { color: #6a3d00; }
.view-as-banner { background: #163a5f; border-color: #163a5f; color: #fff; } .view-as-banner a { color: #fff; text-decoration: underline; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0; margin: 0 0 var(--s3); color: var(--ink-3); font-size: var(--fs-sm); }
.breadcrumb li + li::before { content: '\203A'; display: inline-block; margin: 0 6px 0 2px; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; } .breadcrumb a:hover { color: var(--navy-600); text-decoration: underline; } .breadcrumb img { height: 13px; vertical-align: -2px; margin-right: 5px; opacity: .6; } .breadcrumb .active { color: var(--ink); font-weight: 500; }
/* ---------- sidebar ---------- */
.logo { padding: 0; } .logo-home-link { text-decoration: none; color: inherit; display: block; }
.order-heading-left { color: var(--navy-700); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; margin: 4px 4px 8px; }
.order-heading-left::before { content: 'FILE'; font-size: 10px; letter-spacing: .1em; color: var(--ink-4); font-weight: 600; } .order-heading-left::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.map-div { color: var(--ink-2); border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-lg); padding: 10px 12px 10px 40px; margin-bottom: var(--s3); position: relative; font-size: var(--fs-sm); text-align: left; } .map-div p { margin: 0; padding: 0; }
.map-pin { position: absolute; left: 12px; top: 11px; height: 20px; margin: 0; }
.logo-home-link:hover .map-div { border-color: var(--navy-200); background: var(--navy-50); }
.main-nav { padding-top: 2px; } .nav-pills { list-style: none; margin: 0; padding: 0; } .nav-item { list-style: none; }
.nav-link { display: flex; align-items: center; text-transform: none; font-size: var(--fs); font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r); padding: 8px 10px 8px 40px; margin-bottom: 2px; background: no-repeat 11px center / 18px; position: relative; transition: background-color .12s, color .12s; }
.nav-link:hover { color: var(--ink); background-color: var(--surface-2); }
.nav-link.active { color: var(--navy-800); background-color: var(--navy-100); font-weight: 600; }
.nav-link.active::before { content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy-600); }
.nav-link.orders { background-image: url('../assets/img/openorder-new.png'); } .nav-link.orders:hover, .nav-link.orders.active { background-image: url('../assets/img/openorder-new-active.png'); }
.nav-link.task { background-image: url('../assets/img/task-left.png'); } .nav-link.task:hover, .nav-link.task.active { background-image: url('../assets/img/task-left-active.png'); }
.nav-link.documents { background-image: url('../assets/img/documents-left.png'); } .nav-link.documents:hover, .nav-link.documents.active { background-image: url('../assets/img/documents-left-active.png'); }
.nav-link.inbox { background-image: url('../assets/img/inbox-left.png'); } .nav-link.inbox:hover, .nav-link.inbox.active { background-image: url('../assets/img/inbox-left-active.png'); }
.nav-link.activity { background-image: url('../assets/img/activity-left.png'); } .nav-link.activity:hover, .nav-link.activity.active { background-image: url('../assets/img/activity-left-active.png'); }
.nav-link.contact-us { background-image: url('../assets/img/phone-call-left.png'); } .nav-link.contact-us:hover, .nav-link.contact-us.active { background-image: url('../assets/img/phone-call-left-active.png'); }
.nav-sep { list-style: none; color: var(--ink-4); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: var(--s4) 10px 6px; border-top: 1px solid var(--line); margin-top: var(--s3); }
.nav-badge { display: inline-block; margin-left: auto; background: var(--orange); color: #fff; border-radius: var(--r-pill); padding: 0 7px; font-size: 11px; font-weight: 700; line-height: 18px; }
.tab-count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--line); color: var(--ink-2); border-radius: var(--r-pill); padding: 0 7px; line-height: 18px; }
.nav-link.active .tab-count { background: var(--navy-200); color: var(--navy-800); }
/* ---------- page headings ---------- */
.box-title { margin: var(--s6) 0 var(--s3); display: flow-root; } .box-title:first-child { margin-top: var(--s2); }
.box-title h2 { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-lg); text-transform: none; font-weight: 600; color: var(--ink); }
.h-ico { display: inline-block; width: 6px; height: 20px; border-radius: 3px; background: var(--navy-600); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); } .page-title { font-size: var(--fs-2xl); font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600); font-weight: 700; margin: 0 0 2px; }
/* ---------- buttons ---------- */
.m-btn, .ghost, .view-btn, .back-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r); cursor: pointer; text-decoration: none; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s, box-shadow .12s; vertical-align: middle; }
.m-btn { background: var(--navy-700); color: #fff; border: 1px solid var(--navy-700); padding: 9px 16px; font-size: var(--fs); box-shadow: var(--sh-1); }
.m-btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; } .m-btn:active { background: var(--navy-900); }
.m-btn:disabled { background: var(--line); border-color: var(--line); color: var(--ink-4); cursor: not-allowed; box-shadow: none; }
.m-btn-lg { padding: 12px 22px; font-size: var(--fs-md); }
.ghost, .back-btn { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); padding: 6px 12px; font-size: var(--fs-sm); box-shadow: var(--sh-1); }
.ghost:hover, .back-btn:hover { background: var(--surface-2); border-color: #b4bfcf; color: var(--ink); }
.view-btn { background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-200); padding: 4px 12px; font-size: var(--fs-sm); margin-top: 4px; } .view-btn:hover { background: var(--navy-100); }
.ghost.danger { border-color: var(--bad-line); color: var(--bad); } .ghost.danger:hover { background: var(--bad-bg); }
.ghost.small, button.small { padding: 3px 8px; font-size: var(--fs-xs); } .ghost.on { background: var(--navy-100); border-color: var(--navy-200); color: var(--navy-800); }
.linkish { background: none; border: 0; color: var(--navy-600); cursor: pointer; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; padding: 0; font-weight: 500; } .linkish:hover { color: var(--navy-800); }
/* ---------- cards + stats ---------- */
.card, .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin-bottom: var(--s4); box-shadow: var(--sh-1); }
.card h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s3); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); } .stat-card { margin: 0; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--navy-200); }
.stat-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; } .stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.25; color: var(--navy-900); } .stat-sub { font-size: var(--fs-sm); color: var(--ink-3); }
.stat-value.warn { color: var(--warn); } .stat-value.bad { color: var(--bad); }
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s4); } @media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); } .deal-card-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; } .deal-card-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.progress { height: 6px; background: var(--line); border-radius: var(--r-pill); margin: 10px 0 4px; overflow: hidden; } .progress div { height: 100%; background: var(--navy-500); border-radius: var(--r-pill); }
ul.plain { list-style: none; margin: 0; padding: 0; } ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); } ul.plain li:last-child { border-bottom: 0; }
/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.tbl > thead > tr:first-child > th:first-child, .tbl > tbody:first-child > tr:first-child > :first-child { border-top-left-radius: var(--r-lg); } .tbl > thead > tr:first-child > th:last-child, .tbl > tbody:first-child > tr:first-child > :last-child { border-top-right-radius: var(--r-lg); }
.tbl > tbody > tr:last-child > :first-child { border-bottom-left-radius: var(--r-lg); } .tbl > tbody > tr:last-child > :last-child { border-bottom-right-radius: var(--r-lg); }
.card .tbl, .sum-card .tbl, .modal-box .tbl { box-shadow: none; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.tbl td { padding: 11px 12px; vertical-align: top; font-size: 13.5px; border-bottom: 1px solid var(--line); } .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfd; }
.tbl.striped tbody tr:nth-child(odd) { background: transparent; } .tbl.striped tbody tr:nth-child(even) td { background: #fbfcfe; } .tbl.striped tbody tr:hover td { background: var(--navy-50); }
.tbl tr.is-done td { color: var(--ink-4); } .tbl tr.is-done strong { text-decoration: line-through; } .tbl tr.unread td { font-weight: 600; background: var(--navy-50); }
.tbl td a { font-weight: 500; }
/* ---------- badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r-pill); padding: 2px 10px; font-size: 12px; font-weight: 600; background: #eef1f5; color: var(--ink-2); border: 1px solid transparent; line-height: 1.5; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); } .pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); } .pill.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); } .pill.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.action-req { display: inline-block; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--r-pill); padding: 1px 9px; font-size: 12px; font-weight: 600; }
/* ---------- tabs ---------- */
.nav-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 var(--s4); border-bottom: 1px solid var(--line); }
.nav-tabs a { display: block; padding: 9px 14px; text-transform: none; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav-tabs a:hover { color: var(--ink); background: var(--surface-2); } .nav-tabs a.active { color: var(--navy-700); border-bottom-color: var(--navy-600); }
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s2); } .table-tools input { width: 260px; padding: 7px 12px; }
.bell-cell { position: relative; display: inline-block; } .bell-cell img { height: 20px; opacity: .55; } .bell-cell .count { position: absolute; top: -8px; right: -12px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: var(--r-pill); line-height: 15px; }
.fileico { height: 30px; }
/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); align-items: start; }
.form-grid label { display: block; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; } .form-grid label input, .form-grid label select, .form-grid label textarea { margin-top: 6px; font-weight: 400; }
.form-grid label .muted { font-weight: 400; }
.field-hint { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; margin-top: 5px; line-height: 1.45; }
.span2 { grid-column: 1 / -1; } .checks { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; } .checks label { display: block; padding: 2px 0; }
.form-grid label.check, label.check { flex-direction: row; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.req { color: var(--bad); } .ferr { display: block; color: var(--bad); font-size: var(--fs-xs); font-weight: 500; margin-top: 5px; }
.has-err input, .has-err select, .has-err textarea, input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.doc-have { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin: 4px 0; }
.filter-bar, .inline-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; margin-bottom: var(--s3); }
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s4); box-shadow: var(--sh-1); }
.filter-bar label { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; gap: 4px; text-transform: none; }
.filter-bar input, .filter-bar select, .inline-form select, .inline-form input { width: auto; min-width: 140px; padding: 7px 10px; font-size: 13px; } .filter-bar select { padding-right: 32px; }
/* ---------- notices ---------- */
.notice { border-radius: var(--r); padding: 11px 14px; margin: var(--s3) 0; font-size: var(--fs); border: 1px solid transparent; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #7a3b05; } .notice.info { background: var(--info-bg); border-color: var(--info-line); color: #173f80; }
.notice .m-btn { margin-left: 8px; padding: 6px 12px; font-size: var(--fs-sm); }
.ok-box { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #0f5132; padding: 10px 12px; border-radius: var(--r); } .ok-text { color: var(--ok); font-weight: 600; }
.note-box { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 8px 12px; margin: 8px 0; }
.dev-note { background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn); border-radius: var(--r); padding: 8px 12px; font-size: var(--fs-sm); margin: 14px 0; }
/* ---------- empty states (a table row or card that only says "nothing yet") ---------- */
.tbl td[colspan].muted, .tbl td[colspan] > .muted:only-child { display: table-cell; text-align: center; padding: var(--s7) var(--s4); background: var(--surface-2); color: var(--ink-3); }
.card > p.muted:only-of-type:last-child, .sum-card > p.muted:only-of-type { text-align: center; padding: var(--s5) var(--s3); margin: 0; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r); }
/* ---------- order page ---------- */
.order-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.order-header::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--navy-600), var(--navy-800)); }
.oh-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; grid-column: 1; }
.oh-address { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 600; color: var(--navy-950); grid-column: 1; line-height: 1.3; }
.oh-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-3); font-size: var(--fs-sm); } .oh-meta strong { color: var(--ink); font-weight: 600; }
.oh-side { grid-column: 2; grid-row: 1 / span 3; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-header .order-no { font-size: var(--fs-sm); color: var(--navy-700); font-weight: 700; letter-spacing: .02em; margin: 0; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-pill); padding: 2px 10px; }
.oh-big { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 600; color: var(--navy-900); } .oh-big-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.deal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.deal-head h2 { font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); } .home-flag { height: 22px; opacity: .7; } .order-no { color: var(--navy-600); font-size: var(--fs-sm); font-weight: 600; margin-left: 4px; } .deal-head select { width: auto; min-width: 140px; padding: 6px 32px 6px 10px; font-size: 13px; }
.file-title { font-weight: 600; margin-left: 4px; color: var(--ink); }
.new-msg { margin-left: 12px; font-size: 12px; background: var(--orange); color: #fff; border-radius: var(--r-pill); padding: 2px 10px; text-decoration: none; font-weight: 600; font-family: var(--font); }
.tracker { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); margin: var(--s4) 0 var(--s2); padding: var(--s4) var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.tracker li { text-align: center; position: relative; font-size: 11px; color: var(--ink-3); padding: 0 3px; line-height: 1.3; } .tracker li span { display: block; margin-top: 6px; }
.tracker li::before { content: ''; position: absolute; top: 8px; left: -50%; right: 50%; height: 3px; background: var(--line); } .tracker li:first-child::before { display: none; } .tracker li.done::before, .tracker li.current::before { background: var(--navy-500); }
.step { position: relative; z-index: 1; width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); padding: 0; cursor: pointer; transition: transform .1s; } .step:hover:not(:disabled) { transform: scale(1.15); } .step:disabled { cursor: default; }
.tracker li.done .step { background: var(--navy-500); border-color: var(--navy-500); } .tracker li.current .step { background: #fff; border: 5px solid var(--navy-600); box-shadow: 0 0 0 4px var(--navy-100); } .tracker li.current span { color: var(--navy-900); font-weight: 700; }
.keybar { display: flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: var(--s3) var(--s5); margin: var(--s4) 0; position: relative; gap: var(--s3) var(--s7); box-shadow: var(--sh-1); }
.keybar div { display: flex; flex-direction: column-reverse; } .keybar span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; } .keybar strong { font-weight: 600; font-size: var(--fs-md); color: var(--navy-950); }
.icon-edit { position: absolute; right: 10px; top: 10px; background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-200); border-radius: var(--r); width: 30px; height: 30px; cursor: pointer; font-size: 14px; } .icon-edit:hover { background: var(--navy-100); }
.sum-grid, .ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.sum-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: var(--s3) var(--s4) var(--s4); margin: 0; min-height: 110px; box-shadow: var(--sh-1); }
.sum-card legend { color: var(--navy-800); font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; padding: 0 8px; margin-left: -8px; background: var(--surface); }
.sum-card .person + .person { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sum-card .ghost { margin-top: 8px; margin-right: 4px; }
.agent-overview .notice[data-outstanding] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase-tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); list-style: none; padding: 0; margin: var(--s3) 0 var(--s2); counter-reset: ph; }
.phase-tracker li { counter-increment: ph; border-top: 4px solid var(--line); padding-top: 8px; color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); }
.phase-tracker li::before { content: counter(ph) '. '; color: var(--ink-4); }
.phase-tracker li.done { border-color: var(--navy-400, #5b82c4); color: var(--ink-2); } .phase-tracker li.current { border-color: var(--navy-700); color: var(--navy-900); font-weight: 700; }
dl.answers { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 8px 0; } dl.answers dt { color: var(--ink-3); font-size: var(--fs-sm); } dl.answers dd { margin: 0; font-weight: 500; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0 10px; } dl.kv dt { color: var(--ink-3); font-size: var(--fs-sm); } dl.kv dd { margin: 0; }
tr.chosen td { background: var(--navy-50); }
/* order placed (Place Order confirmation, shown once on the new order) */
.placed-confirm { position: relative; display: flex; gap: var(--s5); align-items: flex-start; background: linear-gradient(135deg, #fff 0%, var(--ok-bg) 140%); border: 1px solid var(--ok-line); border-radius: var(--r-xl); padding: var(--s5) var(--s6); margin: 0 0 var(--s5); box-shadow: var(--sh-2); }
.placed-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(23,115,74,.12); }
.placed-main h2 { font-size: var(--fs-xl); font-weight: 600; margin: 2px 0 2px; } .placed-main .eyebrow { color: var(--ok); }
.placed-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.placed-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: var(--r-sm); padding: 2px 6px; } .placed-x:hover { background: rgba(0,0,0,.05); }
ul.checklist { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 6px; } ul.checklist li { position: relative; padding-left: 24px; color: var(--ink-2); }
ul.checklist li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
ul.checklist li.warn-text::before { content: '!'; background: var(--warn-bg); color: var(--warn); } ul.checklist li.err-text::before { content: '!'; background: var(--bad-bg); color: var(--bad); }
/* ---------- messages ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; } .bubble { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; max-width: 80%; box-shadow: var(--sh-1); } .bubble.mine { align-self: flex-end; background: var(--navy-50); border-color: var(--navy-100); } .bubble .text { white-space: pre-wrap; }
.reply { display: flex; gap: 10px; align-items: flex-end; } .reply textarea { flex: 1; }
/* ---------- modal + toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(11, 23, 48, .5); backdrop-filter: blur(2px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 12px 24px; overflow: auto; }
.modal-box { background: var(--surface); border-radius: var(--r-xl); width: min(540px, 94vw); box-shadow: var(--sh-4); overflow: hidden; } .modal-box.wide { width: min(760px, 94vw); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface-2); } .modal-head h3 { font-size: var(--fs-md); font-weight: 600; }
.modal-x { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3); border-radius: var(--r-sm); padding: 2px 8px; } .modal-x:hover { background: var(--line); color: var(--ink); } .modal-body { padding: var(--s5); }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy-950); color: #fff; padding: 11px 16px 11px 14px; border-radius: var(--r); border-left: 4px solid var(--brand); max-width: 400px; box-shadow: var(--sh-3); font-size: var(--fs-sm); line-height: 1.45; animation: toast-in .18s ease-out; } .toast.err { border-left-color: #f04438; }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
/* ---------- entry (dev picker) page ---------- */
.login-page { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, var(--navy-100), transparent), var(--bg); display: flex; align-items: center; justify-content: center; gap: 60px; padding: 30px; flex-wrap: wrap; }
.login-left { max-width: 340px; } .login-left h1 { font-size: 32px; line-height: 1.2; margin-bottom: 14px; color: var(--navy-950); font-weight: 600; } .login-left p { color: var(--ink-3); }
.login-card { width: 400px; max-width: 94vw; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-3); text-align: center; }
.login-logo { height: 52px; } .login-card h2 { margin-top: 10px; font-size: var(--fs-xl); } .stack { display: flex; flex-direction: column; gap: 12px; text-align: left; } .login-foot { font-size: var(--fs-sm); margin-bottom: 0; color: var(--ink-3); }
/* ---------- notifications ---------- */
button.bell { background: none; border: 0; padding: 0; cursor: pointer; }
.notif-wrap { position: relative; display: inline-block; }
.notif-dd { position: absolute; right: -10px; top: 46px; width: 380px; max-height: 440px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: 30; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--surface-2); position: sticky; top: 0; }
.notif-list { list-style: none; margin: 0; padding: 0; } .notif-list li { border-bottom: 1px solid var(--line); padding: 0; color: var(--ink-2); } .notif-list li.muted { padding: 12px 14px; }
.notif-list a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 13px; } .notif-list a:hover { background: var(--surface-2); }
.notif-list li.unread a { background: var(--navy-50); font-weight: 500; } .notif-list li.unread a::before { content: '\25CF  '; color: var(--navy-600); }
/* ---------- documents, scheduling, misc ---------- */
.folder-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.folder { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; } .folder:hover { border-color: var(--navy-200); background: var(--navy-50); }
.folder.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); } .folder.active .muted { color: var(--navy-200); }
.links { margin: 10px 0; } .linkrow { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .linkrow span { min-width: 90px; font-size: 13px; } .linkrow input { flex: 1; font-size: 12px; }
.sched-card { width: 560px; max-width: 94vw; text-align: left; } .sched-logo { height: 46px; display: block; margin: 0 auto 12px; }
.pick-form { display: flex; flex-direction: column; gap: 10px; } .pick-form label.slot { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; } .pick-form label.slot:hover { border-color: var(--navy-200); background: var(--navy-50); }
.team-card h3 { margin: 0; } .team-list .card { max-width: 900px; } .card-grid > .card { min-width: 0; overflow-x: auto; }
.user-btn .role-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.done-by { color: var(--ok); } p.done-by { background: var(--ok-bg); border-radius: var(--r); padding: 6px 10px; }
.deleg select { margin-left: 6px; }
.role-group { margin: 0 0 var(--s6); } .role-group .group-title { font-size: var(--fs-lg); font-weight: 600; margin: 8px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pill.agent-party { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); margin-left: 4px; } .pill.self-rep { background: #efeafd; color: #4c1d95; border-color: #ddd3fa; }
a.active-link, .active-link { font-weight: 700; text-decoration: underline; } tr.overdue td { background: #fff7f6 !important; }
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; letter-spacing: inherit; text-transform: inherit; } .th-sort:hover { color: var(--navy-700); }
.sort-arrows { font-size: 9px; margin-left: 3px; white-space: nowrap; } .sort-arrows span { opacity: .3; } .sort-arrows span.on { opacity: 1; color: var(--navy-600); }
.grid-scroll { overflow-x: auto; border-radius: var(--r-lg); } .grid-scroll th[data-sort] { vertical-align: bottom; }
.intake-party { border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; padding: 4px 12px; background: var(--surface); } .intake-party > summary { cursor: pointer; padding: 6px 0; font-weight: 600; } .intake-party .intake-form { margin: 6px 0 10px 12px; }
.entity-line { margin-bottom: 2px; }
.col-chooser { display: inline-block; margin-left: 12px; } .col-chooser .col-list label { display: inline-flex !important; align-items: center; gap: 5px; width: auto !important; margin: 0; font-weight: normal; } .col-chooser .col-list input { width: auto !important; margin: 0; } .col-chooser .col-list { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 640px; padding: 6px 0; }
/* ---------- type-to-search person picker ---------- */
.picker { position: relative; } .picker > label { display: block; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; } .picker > label input { margin-top: 6px; font-weight: 400; }
.picker .picker-q { padding-left: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.picker[data-selected] .picker-q { background-color: var(--navy-50); border-color: var(--navy-200); font-weight: 600; color: var(--navy-900); }
.picker-list { position: absolute; z-index: 25; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-height: 300px; overflow: auto; box-shadow: var(--sh-3); }
.picker-list li { padding: 7px 10px; cursor: pointer; border-radius: var(--r-sm); font-size: 13px; } .picker-list li:hover { background: var(--surface-2); } .picker-list li.active { background: var(--navy-100); }
.picker-chosen { margin-top: 4px; } .picker-chosen:empty { display: none; }
/* several buyers / sellers, entities, lender */
.multi-party { background: var(--surface-2); } .multi-party .multi-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; } .multi-party .multi-row .picker { flex: 1; }
.multi-party .multi-row { align-items: flex-start; } .multi-party .multi-row > .ghost { margin-top: 25px; height: 39px; }
.party-row-wrap + .party-row-wrap { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.multi-party .entity-panel { margin: 0 0 12px; padding: var(--s3) var(--s4); border: 1px solid var(--navy-100); border-left: 3px solid var(--navy-500); border-radius: var(--r); background: var(--surface); }
.lender-block .form-grid { margin-top: var(--s3); }
/* ---------- Place Order: the step-by-step flow ---------- */
.wizard { max-width: 1120px; }
.wiz-progress { list-style: none; margin: 0 0 var(--s2); padding: var(--s3) var(--s2) var(--s2); display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.wiz-tab-item { position: relative; min-width: 0; }
.wiz-tab-item + .wiz-tab-item::before { content: ''; position: absolute; top: 22px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line); border-radius: 2px; }
.wiz-tab-item:has(.is-done) + .wiz-tab-item::before, .wiz-tab-item:has(.is-error) + .wiz-tab-item::before { background: var(--ok-line); }
.wiz-tab { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: none; border: 0; border-radius: var(--r); padding: 6px 4px 8px; cursor: pointer; color: var(--ink-3); position: relative; z-index: 1; }
.wiz-tab:hover { background: var(--surface-2); color: var(--ink); }
.wiz-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--surface); color: var(--ink-3); border: 2px solid var(--line-2); transition: background-color .15s, border-color .15s, box-shadow .15s; }
.wiz-text { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; } .wiz-label { font-weight: 600; font-size: 12.5px; color: inherit; line-height: 1.25; } .wiz-hint { font-size: 11px; color: var(--ink-4); line-height: 1.3; display: none; }
.wiz-tab.is-current { color: var(--navy-900); } .wiz-tab.is-current .wiz-label { font-weight: 700; } .wiz-tab.is-current .wiz-num { background: var(--navy-700); color: #fff; border-color: var(--navy-700); box-shadow: 0 0 0 4px var(--navy-100); }
.wiz-tab.is-done { color: var(--ink-2); } .wiz-tab.is-done .wiz-num { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.wiz-tab.is-error { color: var(--bad); } .wiz-tab.is-error .wiz-num { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
@media (min-width: 1560px) { .wiz-hint { display: block; } }
.wiz-meter { height: 4px; border-radius: var(--r-pill); background: var(--line); margin: 0 0 var(--s4); overflow: hidden; } .wiz-meter > div { height: 100%; background: linear-gradient(90deg, var(--navy-600), var(--navy-500)); border-radius: var(--r-pill); transition: width .2s ease; }
.wiz-body { padding: var(--s6) var(--s7) var(--s5); }
.wiz-panel-head { margin: 0 0 var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); } .wiz-panel-head h3 { font-size: var(--fs-xl); font-weight: 600; margin: 2px 0 4px; outline: none; } .wiz-panel-head p { margin: 0; }
.wiz-step-no { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600); font-weight: 700; }
.wiz-sub { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: var(--s5) 0 var(--s3); font-family: var(--font); } .wiz-panel-head + .wiz-errors + .wiz-sub, .wiz-panel-head + .wiz-sub { margin-top: 0; }
.wiz-errors ul { margin: 6px 0 0; padding-left: 18px; }
.wiz-nav { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.wiz-nav .ghost { padding: 9px 16px; font-size: var(--fs); }
.wiz-submit { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-lg); }
.people-optional { margin: 0 0 var(--s4); }
.addnew { margin-top: var(--s5); border-style: dashed; background: var(--surface); } .addnew-hint { margin: 0 0 8px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; padding-top: 4px; }
.nof-file { display: grid; grid-template-columns: 1fr 260px; gap: 4px 16px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0; background: var(--surface-2); }
#nof-docs { display: grid; gap: var(--s3); }
.agents-grid { align-items: start; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s4) 0; }
.review-sec { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s4) var(--s4); background: var(--surface); }
.review-sec header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s2); padding-bottom: 8px; border-bottom: 1px solid var(--line); } .review-sec h4 { font-size: var(--fs-md); font-weight: 600; color: var(--navy-900); }
.review-dl { display: grid; grid-template-columns: 150px 1fr; gap: 7px 14px; margin: 0; } .review-dl dt { color: var(--ink-3); font-size: var(--fs-sm); } .review-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.review-notes { white-space: pre-wrap; font-weight: 400; }
.next-box { background: var(--surface-2); box-shadow: none; } .next-box h4 { font-size: var(--fs); font-weight: 600; }
/* ---------- CRM + templates (layout only) ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: #eef1f6; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 120px; } .kanban-col h4 { margin: 2px 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kanban-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; font-size: 13px; box-shadow: var(--sh-1); } .kanban-card select { min-width: 0; width: 100%; font-size: 12px; }
.tpl-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; } .tpl-side ul { list-style: none; padding: 0; margin: 0 0 10px; } .tpl-side li { padding: 4px 0; } .tpl-side h4 { margin: 12px 0 4px; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.star { background: none; border: 0; font-size: 18px; cursor: pointer; color: #b8860b; }
.tpl-head-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.rte { border: 1px solid var(--line-2); border-radius: var(--r); margin: 10px 0; overflow: hidden; } .rte-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rte-b { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 2px 8px; font-size: 12px; cursor: pointer; } .rte-b.on { background: var(--navy-100); } .rte-b:disabled { color: var(--ink-4); cursor: not-allowed; }
.rte-color { font-size: 12px; display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 4px; background: var(--surface); } .rte-color input { width: 22px; height: 18px; padding: 0; border: 0; }
.rte-area { min-height: 220px; padding: 12px; outline: none; background: var(--surface); } .rte-src { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; border: 0; padding: 10px; }
.merge-picker { position: absolute; z-index: 2000; width: 320px; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; }
.merge-picker ul { list-style: none; padding: 0; margin: 4px 0; } .merge-picker li[data-token] { padding: 4px 6px; cursor: pointer; border-radius: var(--r-sm); } .merge-picker li[data-token]:hover, .merge-picker li[data-token]:focus { background: var(--navy-50); } .merge-picker .mp-group { font-weight: 700; font-size: 12px; margin-top: 6px; color: var(--ink-3); }
.tb-wrap { display: grid; grid-template-columns: 150px 1fr 280px; gap: 12px; margin: 10px 0; } .tb-palette { display: flex; flex-direction: column; gap: 4px; } .tb-pal { text-align: left; cursor: grab; }
.tb-canvas { max-width: 600px; margin: 0 auto; background: #f1f3f7; padding: 10px; min-height: 260px; border-radius: var(--r); } .tb-block { position: relative; background: #fff; border: 1px dashed transparent; margin-bottom: 2px; }
.tb-block:hover, .tb-block.selected { border-color: var(--navy-500); } .tb-ctl { display: none; position: absolute; top: -14px; right: 4px; z-index: 5; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 1px 3px; gap: 2px; }
.tb-block:hover .tb-ctl, .tb-block.selected .tb-ctl { display: flex; } .tb-handle { cursor: move; font-size: 12px; padding: 2px 6px; } .tb-edit { outline: none; min-height: 18px; }
.tb-settings { border-left: 1px solid var(--line); padding-left: 10px; } .tb-settings .form-grid { grid-template-columns: 1fr; } .tb-float { position: absolute; z-index: 1500; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 2px; display: flex; gap: 2px; box-shadow: var(--sh-2); }
.tb-float[hidden] { display: none; } .tpl-frame { height: 520px; border: 1px solid var(--line); background: #fff; display: block; margin: 0 auto; border-radius: var(--r); }
.rte-box { min-height: 90px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; background: #fff; } .dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 10px; background: var(--surface-2); } .dropzone.over { background: var(--navy-50); border-color: var(--navy-500); }
/* CRM Deals column chooser in the redesign (Nov 3 d merge): summary looks like a ghost button; the list is a light panel */
.col-chooser > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 5px 12px; font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--sh-1); }
.col-chooser > summary::-webkit-details-marker { display: none; } .col-chooser > summary::before { content: '\25B8'; font-size: 11px; color: var(--ink-3); } .col-chooser[open] > summary::before { content: '\25BE'; }
.col-chooser > summary:hover { background: var(--surface-2); border-color: #b4bfcf; } .col-chooser[open] > summary { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-800); }
.col-chooser[open] .col-list { margin-top: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); font-size: var(--fs-sm); }
/* ---------- CRM calls (Zoho video 11, Nov 3; merged into the redesign Nov 3 d): required call fields get a red left bar; Open Calls / activities board; call alert + banner ---------- */
label.req { color: var(--ink-2); border-left: 3px solid var(--bad); padding-left: 8px; } .req-mark { display: inline-block; width: 3px; height: 1em; background: var(--bad); vertical-align: middle; border-radius: 2px; }
.act-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s3); } .act-col { background: #eef1f6; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 120px; } .act-col h4 { margin: 2px 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); } .act-list { list-style: none; padding: 0; margin: 0; }
.act-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; font-size: 13px; box-shadow: var(--sh-1); } [data-board-closed] .act-card { background: var(--surface-2); color: var(--ink-3); box-shadow: none; }
.act-plus-items { position: absolute; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 180px; } .act-plus-items details { display: flex; flex-direction: column; }
.call-alert { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #7a3b05; padding: 11px 14px; border-radius: var(--r); } .call-alert[hidden] { display: none; }
.call-banner { position: fixed; top: calc(var(--topbar-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 3000; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); padding: 9px 16px; border-radius: var(--r); box-shadow: var(--sh-3); font-weight: 600; }
@media (max-width: 800px) { .act-board { grid-template-columns: 1fr; } }
[data-voice] label.check { display: inline-flex; margin-right: 12px; } [data-voice] input[type=radio] { width: auto; margin: 0; }
/* ---------- ACCOUNTING tab (John, Nov 3; behind the `accounting` flag): fee ledger, ALTA Settlement Statement, Closing Disclosure fee pages ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); } .acct-head .page-title { font-size: var(--fs-xl); margin: 2px 0 4px; } .acct-head p { margin: 0; max-width: 760px; }
.acct-head-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acct-stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } .acct-stats .stat-value { font-size: 24px; }
.acct-balance.is-ok::before { background: var(--ok); } .acct-balance.is-bad::before { background: var(--bad); } .acct-balance.is-bad { background: var(--bad-bg); border-color: var(--bad-line); } .acct-balance.is-ok .stat-value { color: var(--ok); }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.acct-form .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .acct-form .form-grid label.wide { grid-column: span 2; } @media (max-width: 1100px) { .acct-form .form-grid { grid-template-columns: 1fr 1fr; } }
.acct-preset { display: flex; gap: var(--s4); align-items: flex-end; flex-wrap: wrap; } .acct-preset label { flex: 0 1 460px; } .acct-preset .field-hint { flex: 1 1 300px; margin: 0; }
.acct-ledger td:first-child { min-width: 260px; } .acct-flow { display: block; color: var(--ink-3); }
.acct-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); } .acct-card-head h3 { margin: 0; }
.acct-form .form-grid { gap: var(--s3) var(--s4); } .acct-form .form-grid .form-grid { gap: var(--s3) var(--s4); }
.acct-preset { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r); padding: 10px 12px; margin-bottom: var(--s3); } .acct-preset label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); } .acct-preset select { margin-top: 6px; }
.acct-split { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 8px 10px; } .acct-split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 6px; }
.acct-form-actions { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.tbl td.num, .tbl th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-ledger td, .acct-statement td, .acct-cd td { padding: 8px 10px; } .acct-ledger th, .acct-statement th, .acct-cd th { padding: 8px 10px; }
.acct-cd thead th.center { text-align: center; } .acct-cd thead tr:first-child th[colspan] { border-bottom: 1px solid var(--line, #e2e8f0); }
.tbl tr.acct-sec th { background: var(--navy-50); color: var(--navy-800); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid var(--line); text-align: left; }
.tbl tr.acct-subtotal td { background: var(--surface-2); border-top: 1px solid var(--line-2); font-weight: 600; } .tbl tr.acct-total td { background: var(--navy-50); border-top: 2px solid var(--navy-200); font-weight: 700; color: var(--navy-900); }
.tbl tr.acct-due td { background: var(--warn-bg); font-weight: 600; } .tbl tr.acct-empty td { padding: 4px 10px; } .tbl tr.acct-auto td { background: #fbfcfe; } .tbl tr.acct-retired td { color: var(--ink-4); }
.acct-toolbar { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); } .seg-btn { padding: 6px 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; border-right: 1px solid var(--line-2); } .seg-btn:last-child { border-right: 0; } .seg-btn:hover { background: var(--surface-2); } .seg-btn.on { background: var(--navy-700); color: #fff; }
.acct-doc { padding: var(--s5) var(--s6); } .acct-doc-head h2 { font-size: var(--fs-xl); font-weight: 600; margin: 6px 0 2px; } .acct-doc-head p { margin: 0 0 var(--s3); }
.acct-doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); } .acct-doc-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; } .acct-doc-meta dd { margin: 0; font-weight: 500; }
.acct-mark { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bad); border: 1.5px solid var(--bad); border-radius: var(--r-sm); padding: 2px 8px; } .acct-mark-foot { margin-top: var(--s3); }
.acct-h { font-size: var(--fs-md); font-weight: 600; margin: var(--s4) 0 var(--s2); color: var(--navy-900); } .cd-line { display: inline-block; min-width: 22px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.acct-summaries { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); } .acct-summ h4 { font-size: var(--fs-sm); font-weight: 700; margin: var(--s2) 0 6px; color: var(--ink-2); } .acct-side { font-size: var(--fs); color: var(--navy-800); margin: 0 0 4px; }
.acct-cash { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r); padding: 8px 12px; } .acct-foot { margin-top: var(--s3); }
@media (max-width: 1000px) { .acct-summaries { grid-template-columns: 1fr; } }
/* Accounting: CLA rates (fee engine) - scoped, minimal */
.acct-calc .acct-calc-panel { margin-top: var(--s3); } .acct-calc-form .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s4); align-items: end; } @media (max-width: 1100px) { .acct-calc-form .form-grid { grid-template-columns: 1fr 1fr; } }
.acct-calc-ends { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.acct-calc-counts { margin: var(--s3) 0 var(--s2); } .acct-calc-diff td { padding: 7px 10px; vertical-align: top; } .tbl tr.acct-calc-quiet td { color: var(--ink-3); }
.acct-calc-detail summary { cursor: pointer; color: var(--navy-700, var(--ink-3)); } .acct-calc-detail div { margin: 2px 0 0 12px; max-width: 760px; } .acct-calc-examples { display: block; margin-top: var(--s3); }
.pill.acct-calc-pill { background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-100); }
@media print {
  .acct-noprint, .welcome-title, .breadcrumb, .order-header, .acct-form, .toast, #toasts { display: none !important; }
  body { background: #fff; } .acct-doc, .card { box-shadow: none; border: 0; padding: 0; } .acct-doc .tbl { border: 1px solid #999; } .tbl th, .tbl td { font-size: 10.5px; padding: 4px 6px !important; }
  .tbl tr.acct-sec th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .acct-mark { color: #b42318; border-color: #b42318; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .acct-doc-head::before { content: 'TEST - not a legal disclosure'; display: block; text-align: center; font-weight: 700; letter-spacing: .2em; color: #b42318; margin-bottom: 6px; }
  .acct-summaries { grid-template-columns: 1fr 1fr; } .acct-doc { page-break-inside: auto; } tr { page-break-inside: avoid; } }
/* ---------- responsive: laptop, tablet ---------- */
@media (max-width: 1280px) { .right-bar { padding: var(--s5) var(--s5) 64px; } .wiz-body { padding: var(--s5); } }
@media (max-width: 1100px) {
  :root { --sidebar-w: 216px; }
  .review-grid { grid-template-columns: 1fr; }
  .tracker { grid-template-columns: repeat(5, 1fr); row-gap: 14px; } .tb-wrap { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .sum-grid, .ap-grid { grid-template-columns: 1fr; } .crm-global-search input { width: 180px !important; } .order-header { grid-template-columns: 1fr; } .oh-side { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 1100px) { .right-bar .tbl { display: block; overflow-x: auto; max-width: 100%; } .right-bar .tbl > thead, .right-bar .tbl > tbody { min-width: 100%; } }
@media (max-width: 860px) {
  .wrapper-main { background: none; } .left-bar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3); }
  .main-nav .nav-pills { display: flex; flex-wrap: wrap; gap: 4px; } .nav-link { padding: 6px 10px 6px 34px; background-position: 9px center; background-size: 16px; font-size: 13px; margin: 0; } .nav-link.active::before { display: none; }
  .nav-sep { width: 100%; padding: 8px 4px 2px; margin-top: 4px; }
  .right-bar, .footer-bar { margin-left: 0; padding: var(--s4); } .form-grid { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; }
  .wiz-label { font-size: 11.5px; } .wiz-num { width: 28px; height: 28px; } .wiz-tab-item + .wiz-tab-item::before { top: 20px; } .nof-file { grid-template-columns: 1fr; } .review-dl { grid-template-columns: 120px 1fr; }
  .crm-global-search { display: none !important; } .topbar-inner { padding: 0 var(--s3); gap: var(--s2); } .user-btn .role-tag { display: none; } .tpl-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .wiz-label { display: none; } .wiz-tab.is-current .wiz-label { display: block; } .stat-row { grid-template-columns: 1fr 1fr; } .page-head { flex-direction: column; } .placed-confirm { flex-direction: column; } }
@media print { .topbar-main, .left-bar, .footer-bar, .dev-banner, .wiz-progress, .wiz-nav { display: none !important; } .right-bar { margin: 0; padding: 0; } }
/* ---------- MODULE SWITCHES (John, Nov 3): Modules page (Admin only), Live switch, Beta badge + banner ---------- */
.beta-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #fff4e5; color: #8a4306; border: 1px solid #f3c58a; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; line-height: 16px; vertical-align: middle; white-space: nowrap; }
.beta-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 var(--s4); padding: 10px 14px; background: #fff8ee; border: 1px solid #f3c58a; border-left: 4px solid #e58a1f; border-radius: var(--r); color: #5c3a0a; }
.beta-banner .beta-badge { margin-left: 0; font-size: 11.5px; line-height: 18px; }
.mod-intro { max-width: 900px; } .mod-intro .beta-badge { margin: 0 2px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); margin: var(--s4) 0; }
.mod-card { display: flex; flex-direction: column; gap: 6px; } .mod-card p { margin: 0; }
.mod-card.is-beta { border-color: #f3c58a; } .mod-card.is-off { opacity: .75; }
.mod-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .mod-title { margin: 0; font-size: var(--fs-md); }
.mod-pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.mod-pill.live { background: var(--ok-bg, #e7f6ec); color: var(--ok, #1d7a43); } .mod-pill.beta { background: #fff4e5; color: #8a4306; } .mod-pill.off { background: #eee; color: #666; }
.mod-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; user-select: none; position: relative; }
.mod-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; z-index: 1; }
.mod-track { width: 44px; height: 24px; border-radius: 12px; background: #c9ced6; position: relative; transition: background .15s; flex: none; }
.mod-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.mod-switch input:checked + .mod-track { background: var(--ok, #1d7a43); } .mod-switch input:checked + .mod-track .mod-knob { left: 23px; }
.mod-switch input:focus-visible + .mod-track { box-shadow: var(--focus); } .mod-switch.is-disabled { cursor: not-allowed; opacity: .55; } .mod-switch.is-disabled input { cursor: not-allowed; }
.mod-always-list { columns: 2; margin: 6px 0 0; padding-left: 18px; } @media (max-width: 800px) { .mod-always-list { columns: 1; } }
.mod-log-card { margin-top: var(--s4); }
/* ===== John's Nov 3 call items: Automation card, preview, underwriter splits ===== */
.automation-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4, 16px); flex-wrap: wrap; }
.automation-row > div { flex: 1 1 420px; } .automation-row p { margin: 4px 0; }
.preview-msg { margin: 10px 0; } .preview-body { white-space: pre-wrap; font: inherit; font-size: 13px; background: #f7f9fb; border: 1px solid #e3e8ee; padding: 10px; border-radius: 6px; margin: 8px 0 0; }
.acct-uw { margin-top: 3px; color: #2c4a63; } .acct-uw[data-uw-unset] { color: #8a5a00; }
.uw-pct { width: 80px; text-align: right; } [data-uw-table] input[name=underwriter] { width: 220px; }
.uw-add { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; } .uw-add input { width: 140px; }

/* Janine, Nov 3: "+" Create New menu at the end of the CRM tabs, county-from-ZIP note, company duplicate warning, task Subject type-ahead, import preview, invite preview */
.crm-tabs-row { display: flex; align-items: flex-end; gap: var(--s3); } .crm-tabs-row .nav-tabs { flex: 1; }
.crm-create-new { position: relative; margin: 0 0 var(--s4); } .crm-create-new > summary { list-style: none; cursor: pointer; font-size: 1.2em; line-height: 1; padding: 6px 12px; } .crm-create-new > summary::-webkit-details-marker { display: none; }
.crm-create-list { position: absolute; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; display: flex; flex-direction: column; min-width: 220px; }
.crm-create-list a { padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; } .crm-create-list a:hover, .crm-create-list a:focus { background: var(--surface-2); }
.zip-note { display: block; margin-top: 2px; } [data-county-pick] { margin-top: 4px; }
.dup-warn { display: block; margin-top: 4px; color: var(--red); font-size: var(--fs-sm); font-weight: 600; } .dup-warn a { color: inherit; text-decoration: underline; }
.ta-wrap { position: relative; } .typeahead { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; list-style: none; margin: 2px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.typeahead li { padding: 5px 8px; cursor: pointer; font-weight: 400; border-radius: var(--r-sm); } .typeahead li:hover, .typeahead li.on { background: var(--surface-2); }
tr.bad-row td { background: var(--warn-bg); } .invite-body { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; font-size: var(--fs-sm); max-height: 240px; overflow: auto; }
/* ---------- ACCOUNTING, Caroline Kim Nov 4 2026: prorations, CD pages 1-5, CD details & escrow ---------- */
.acct-cd-page { margin: 0 0 var(--s5); padding-top: var(--s3); border-top: 1px dashed var(--line-2); } .acct-cd-page:first-of-type { border-top: 0; }
.acct-cd-pagehead { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); } .acct-cd-pagehead .acct-h { margin: 0; flex: 1 1 auto; }
.acct-cd-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3) var(--s4); margin: 0 0 var(--s3); }
.acct-cd-info > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; } .acct-cd-info h4 { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--navy-800); }
.acct-cd-info dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 3px 12px; margin: 0; font-size: var(--fs-sm); } .acct-cd-info dt { color: var(--ink-3); } .acct-cd-info dd { margin: 0; font-weight: 500; }
.acct-cd-costs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); } .acct-cd-costs > div { display: flex; flex-direction: column; gap: 2px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r); padding: 10px 14px; } .acct-cd-costs strong { font-size: 20px; }
.acct-yn.yes { color: var(--bad); } .acct-yn.no { color: var(--ink-2); }
.acct-cd-group { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px 12px; margin: 0 0 var(--s3); } .acct-cd-group legend { font-weight: 600; font-size: var(--fs-sm); color: var(--navy-800); padding: 0 6px; }
.acct-cd-form .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s4); align-items: end; } @media (max-width: 1100px) { .acct-cd-form .form-grid { grid-template-columns: 1fr 1fr; } }
.acct-pr-preview { margin: var(--s3) 0 0; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); } .acct-pr-text { color: var(--ink-3); max-width: 760px; margin-top: 2px; }
.acct-prorations td { vertical-align: top; } .acct-escrow td { padding: 4px 10px; } .tbl tr.acct-escrow-low td { background: var(--warn-bg); font-weight: 600; }
@media print { .acct-cd-page { page-break-before: always; border-top: 0; } .acct-cd-page:first-of-type { page-break-before: auto; } .acct-cd-info > div, .acct-cd-costs > div { background: #fff !important; } }

/* ===== AGENT INVITE + "YOUR AGENT" CARD (John, Nov 4). Baby-blue card style, same palette variables as theme-cards.css ===== */
.with-agent { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; } .with-agent > #view { min-width: 0; }
/* live40 (John, Nov 5 meeting): on list pages (Open Orders) the "Your agent" card sits in the page flow ABOVE the table, one compact row; it never floats over the table */
.with-agent.agent-inline { display: block; } .agent-inline .your-agent { position: static; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: stretch; }
.agent-inline .your-agent .ya-head { flex: 0 0 100%; } .agent-inline .ya-agent { flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; text-align: left; padding: 12px 16px; border-bottom: 0; }
.agent-inline .ya-photo { margin: 0; } .agent-inline .ap-avatar.lg { width: 56px; height: 56px; font-size: 20px; } .agent-inline .ya-who { margin: 0; min-width: 160px; }
.agent-inline .ya-contact { flex-direction: row; flex-wrap: wrap; flex: 1 1 260px; } .agent-inline .ya-foot { flex: 0 0 100%; padding: 6px 16px 10px; text-align: left; }
.your-agent { position: sticky; top: 16px; background: #fff; border: 1px solid var(--tc-baby-line, #bfe6f8); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(11, 42, 69, .06); }
.your-agent .ya-head { background: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; padding: 9px 16px; }
.ya-agent { padding: 18px 16px 14px; text-align: center; border-bottom: 1px solid #eef6fb; }
.ya-agent:last-of-type { border-bottom: 0; }
.ya-photo { display: flex; justify-content: center; margin-bottom: 10px; }
.ya-who { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ya-name { font-size: 18px; color: var(--tc-on-baby, #0b2a45); }
.ya-brokerage { color: #555; font-size: 13px; }
.ya-role { color: var(--tc-baby-ink, #1f6fa3); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.ya-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ya-contact a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; background: var(--tc-baby-soft, #e8f6fd); color: var(--tc-baby-ink-2, #1a5f8c); text-decoration: none; font-size: 13px; word-break: break-all; }
.ya-contact a:hover, .ya-contact a:focus { background: var(--tc-baby-line, #bfe6f8); outline: none; box-shadow: var(--tc-focus, 0 0 0 3px rgba(31,111,163,.45)); }
.ya-lbl { margin-left: auto; font-size: 11px; color: #6b7f8e; }
.ya-foot { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: #6b7f8e; text-align: center; background: #f8fcfe; }
.ap-avatar { display: inline-flex; align-items: center; justify-content: center; object-fit: cover; background: var(--tc-baby-soft, #e8f6fd); color: var(--tc-on-baby, #0b2a45); font-weight: 700; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tc-baby, #89cff0); width: 56px; height: 56px; font-size: 20px; }
.ap-avatar.circle { border-radius: 50%; } .ap-avatar.square { border-radius: 10px; }
.ap-avatar.lg { width: 96px; height: 96px; font-size: 32px; } .ap-avatar.xl { width: 128px; height: 128px; font-size: 42px; }
.ap-form { padding: 20px; } .apf-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.ap-photo-col { border: 0; margin: 0; padding: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-photo-col legend { font-weight: 600; margin-bottom: 8px; }
.ap-file { cursor: pointer; display: inline-block; padding: 6px 12px; border: 1px solid var(--tc-baby-line, #bfe6f8); border-radius: 4px; background: var(--tc-baby-soft, #e8f6fd); font-size: 13px; }
.ap-file input { display: block; max-width: 190px; margin-top: 4px; font-size: 11px; }
.ap-crop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border: 1px dashed var(--tc-baby, #89cff0); border-radius: 8px; }
.ap-crop-canvas { width: 180px; height: 180px; cursor: grab; touch-action: none; box-shadow: 0 0 0 2px var(--tc-baby, #89cff0); }
.ap-crop-canvas.circle { border-radius: 50%; } .ap-crop-canvas.square { border-radius: 10px; }
.ap-shape { display: flex; gap: 12px; } .ap-dob { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .ap-dob-label { width: 100%; } .ap-dob select { width: auto !important; min-width: 150px; }
.ap-row2 { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.ap-signup-card { max-width: 920px; width: calc(100% - 24px); text-align: left; }
.ai-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.ai-new { padding: 16px; display: flex; flex-direction: column; gap: 10px; } .ai-new label { display: flex; flex-direction: column; gap: 4px; }
.ai-link { background: var(--tc-baby-soft, #e8f6fd); border: 1px solid var(--tc-baby-line, #bfe6f8); border-radius: 8px; padding: 10px; }
.ai-link-row { display: flex; gap: 6px; } .ai-link-row input { flex: 1; min-width: 0; font-family: monospace; font-size: 12px; }
@media (max-width: 900px) {
  .with-agent { grid-template-columns: 1fr; } .with-agent .your-agent { order: -1; position: static; }
  .ya-agent { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; text-align: left; padding: 12px; align-items: center; }
  .ya-photo { margin: 0; grid-row: span 2; } .ya-photo .ap-avatar { width: 56px; height: 56px; font-size: 20px; }
  .ya-who { margin: 0; } .ya-name { font-size: 16px; } .ya-role, .ya-foot, .ya-office { display: none; }
  .ya-contact { flex-direction: row; gap: 6px; } .ya-contact a { padding: 6px 10px; } .ya-contact .ya-txt, .ya-lbl { display: none; }
  .apf-grid, .ai-layout { grid-template-columns: 1fr; }
}
/* ---------- ACCOUNTING › CHARGES (Qualia layout, John Nov 4 2026; CLA baby-blue colours, no Qualia branding) ---------- */
.qc-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.qc-body { min-width: 0; }
.qc-nav { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 1px; padding: 8px; background: var(--tc-card, #f5f5f5); border-radius: 6px; font-size: var(--fs-sm); }
.qc-nav-group { margin: 10px 6px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); } .qc-nav-group:first-child { margin-top: 2px; }
.qc-nav-sub { margin: 2px 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.qc-nav-link { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; color: var(--ink-2); text-decoration: none; }
.qc-nav-link:hover { background: var(--tc-baby-soft, #e8f6fd); } .qc-nav-link.on { background: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); font-weight: 600; }
.qc-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 1px 6px; border-radius: 10px; background: var(--tc-baby-soft, #e8f6fd); border: 1px solid var(--tc-baby-line, #bfe6f8); color: var(--tc-baby-ink-2, #1a5f8c); font-size: 11px; font-weight: 700; }
.qc-nav-link.on .qc-chip { background: #fff; } .qc-chip.big { min-width: 30px; font-size: 14px; padding: 3px 8px; }
.qc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: var(--s4); align-items: start; }
.qc-main { min-width: 0; background: var(--tc-card, #f5f5f5); border-radius: 6px; padding: 14px 16px 16px; }
.qc-page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .qc-page-head h3 { margin: 0; font-size: 18px; } .qc-page-head .spacer { flex: 1; }
.qc-head-btns, .qc-under-btns, .qc-card-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .qc-under-btns { margin: 8px 0 0; }
.qc-sq { min-width: 30px; padding-left: 8px; padding-right: 8px; font-weight: 700; }
.btn-like { display: inline-flex; align-items: center; text-decoration: none; }
.qc-banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 0 0 10px; padding: 8px 12px; border-radius: 4px; background: var(--bad-bg, #fdecec); border: 1px solid #f3b4b4; color: #8a1f1f; font-size: var(--fs-sm); }
.qc-table-wrap { overflow-x: auto; background: #fff; border-radius: 4px; border: 1px solid var(--tc-line, #d9d9d9); }
.qc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.qc-table th { padding: 6px 8px; background: #fff; color: var(--ink-3); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--tc-line, #d9d9d9); text-align: left; white-space: nowrap; }
.qc-table th.num, .qc-table td.num { text-align: right; } .qc-table th.center { text-align: center; }
.qc-table td { padding: 2px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
.qc-table td.qc-num, .qc-table th.qc-num { width: 34px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.qc-row { cursor: pointer; } .qc-row:hover td { background: #fafcfe; }
.qc-row.is-sel td { background: var(--tc-baby-soft, #e8f6fd); } .qc-row.is-sel td.qc-num { color: var(--tc-baby-ink, #1f6fa3); font-weight: 700; box-shadow: inset 3px 0 0 var(--tc-baby, #89cff0); }
.qc-row.is-template .qc-cell::placeholder { color: #9aa7b2; font-style: italic; }
.qc-cell { width: 100%; min-width: 60px; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 3px; font: inherit; color: inherit; }
.qc-cell:hover { border-color: #e1e5e8; } .qc-cell:focus { outline: none; border-color: var(--tc-baby, #89cff0); background: #fff; box-shadow: var(--tc-focus, 0 0 0 3px rgba(31,111,163,.25)); }
.qc-cell.num { text-align: right; font-variant-numeric: tabular-nums; } .qc-desc { min-width: 220px; } .qc-desc .qc-cell { min-width: 200px; } .qc-payee .qc-cell { min-width: 150px; }
.qc-amt { width: 110px; } .qc-g { width: 90px; } .qc-mo { width: 64px; min-width: 0; }
.qc-pre, .qc-pre .qc-cell, .qc-pre-text, .qc-input.qc-pre { color: var(--tc-baby-ink, #1f6fa3); }
.qc-over, .qc-over .qc-cell, .qc-input.qc-over { color: #b45309; } .qc-input.qc-over { border-color: #f5b971; background: #fff8ef; } .qc-input.qc-pre { border-color: var(--tc-baby-line, #bfe6f8); background: #f3fafe; }
.qc-reduces td.qc-amt { color: #8a1f1f; }
.qc-mini { margin-left: 4px; font-size: 10px; padding: 0 6px; }
.qc-totals td { padding: 7px 8px; background: #fafafa; border-top: 1px solid var(--tc-line, #d9d9d9); border-bottom: 0; }
.qc-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); margin: var(--s4) 0 0; } @media (max-width: 1250px) { .qc-panels { grid-template-columns: minmax(0, 1fr); } }
.qc-card { background: #fff; border-radius: 4px; border: 1px solid var(--tc-line, #d9d9d9); padding: 12px 14px; } .qc-card.qc-empty { border-style: dashed; }
.qc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; } .qc-card-head h4 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.qc-field { margin: 0 0 10px; } .qc-field.flash { animation: qcflash .9s; } @keyframes qcflash { 0% { background: var(--tc-baby-soft, #e8f6fd); } 100% { background: transparent; } }
.qc-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 3px; }
.qc-input { border: 1px solid #d6dbe0; border-radius: 3px; padding: 5px 8px; font: inherit; font-size: var(--fs-sm); background: #fff; min-width: 0; } .qc-input.num { text-align: right; width: 110px; } .qc-input:disabled { background: #f5f5f5; color: #777; }
.qc-field > .qc-input, .qc-pf .qc-input, .qc-pf select { width: 100%; }
.qc-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .qc-inline label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-3); }
.qc-seg .seg-btn { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12px; } .qc-seg .seg-btn.on { background: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); }
.qc-seg.small .seg-btn { padding: 3px 8px; }
.qc-split { margin: 6px 0 0; } .qc-pd-calc { border: 1px solid #e3e3e3; border-radius: 4px; margin: 8px 0; padding: 6px 10px 10px; }
.qc-rec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 0 0 6px; } .qc-rec th { text-align: left; font-size: 11px; color: var(--ink-3); padding: 3px 4px; } .qc-rec td { padding: 3px 4px; border-top: 1px solid #f0f0f0; }
.qc-paytabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #e5e5e5; margin: 0 0 10px; padding: 0 0 6px; }
.qc-paytab { border: 1px solid #dcdcdc; background: #fff; border-radius: 14px; padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink-2); } .qc-paytab.on { background: var(--tc-baby, #89cff0); border-color: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); font-weight: 600; }
.qc-methods { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 10px; }
.qc-method { border: 1px solid #d6dbe0; background: #fff; border-radius: 3px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.qc-method.on { background: var(--tc-baby, #89cff0); border-color: var(--tc-baby-hover, #74c4ea); color: var(--tc-on-baby, #0b2a45); } .qc-method:disabled { cursor: default; opacity: .75; } .qc-itemize { margin-left: auto; }
.qc-pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; } .qc-pf-grid .wide, .qc-pf-grid .qc-pay-block, .qc-pf-grid > p { grid-column: 1 / -1; }
.qc-pf { display: block; } .qc-pay-block { border: 1px solid #e3e3e3; border-radius: 4px; padding: 6px 10px 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; } .qc-pay-block legend { font-size: 12px; font-weight: 600; color: var(--ink-2); } .qc-pay-block > .notice { grid-column: 1 / -1; margin: 0; }
.qc-help { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; }
.qc-help-card { background: #fff; border: 1px solid var(--tc-line, #d9d9d9); border-radius: 4px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); } .qc-help-card h5 { margin: 0 0 4px; font-size: 13px; display: flex; align-items: center; gap: 6px; } .qc-help-card p { margin: 0; }
.qc-help-pre { border-left: 4px solid var(--tc-baby, #89cff0); } .qc-help-over { border-left: 4px solid #f59e0b; } .qc-help-card.lit { box-shadow: 0 0 0 2px var(--tc-baby-line, #bfe6f8); }
.qc-help-over.lit { box-shadow: 0 0 0 2px #fcd9a5; }
.qc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .qc-dot.pre { background: var(--tc-baby, #89cff0); } .qc-dot.over { background: #f59e0b; }
.qc-q { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #c8c8c8; font-size: 10px; align-items: center; justify-content: center; color: #888; }
.qc-foot { margin: 10px 0 0; }
.qc-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); } @media (max-width: 1250px) { .qc-summary { grid-template-columns: minmax(0, 1fr); } }
.qc-sum-col { background: #fff; border-radius: 4px; border: 1px solid var(--tc-line, #d9d9d9); padding: 8px 10px; min-width: 0; } .qc-sum-col h4 { margin: 2px 0 8px; font-size: 14px; }
.qc-sum-head td { font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fafafa; padding-top: 6px; }
.qc-link-col { width: 96px; white-space: nowrap; } .qc-link { font-size: 11px; color: var(--tc-baby-ink, #1f6fa3); font-weight: 600; }
.qc-mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 12px; } .qc-mtile-big { font-size: 18px; font-weight: 600; color: var(--tc-baby-ink, #1f6fa3); }
.qc-viewer-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: var(--tc-card, #f5f5f5); border-radius: 6px 6px 0 0; border: 1px solid var(--tc-line, #d9d9d9); border-bottom: 0; } .qc-viewer-bar .spacer { flex: 1; } .qc-viewer-bar select { font-weight: 600; }
.qc-viewer { background: #e9edf0; border: 1px solid var(--tc-line, #d9d9d9); border-radius: 0 0 6px 6px; padding: 12px; overflow: auto; max-height: none; }
@media (max-width: 1100px) { .qc-shell { grid-template-columns: minmax(0, 1fr); } .qc-nav { position: static; flex-direction: row; flex-wrap: wrap; } .qc-wrap { grid-template-columns: minmax(0, 1fr); } .qc-help { position: static; } }
@media print { .qc-nav, .qc-help, .qc-viewer-bar { display: none !important; } .qc-shell { display: block; } .qc-viewer { background: #fff; border: 0; padding: 0; } .qc-viewer-inner { zoom: 1 !important; } }
.qc-panels > div { min-width: 0; } .qc-card { overflow-x: auto; } .qc-rec .qc-seg { flex-wrap: wrap; } .qc-rec .qc-input.num { width: 90px; }
.qc-desc-in { display: flex; align-items: center; gap: 2px; } .qc-prefix { color: var(--ink-3); white-space: nowrap; padding-left: 6px; } .qc-cdtext { color: var(--ink-3); padding: 0 6px 3px; } .qc-subbar { margin: 0 0 10px; }
.qc-wrap { grid-template-columns: minmax(0, 1fr) 210px; } .qc-shell { grid-template-columns: 190px minmax(0, 1fr); }
.qc-amt { width: 96px; min-width: 96px; } .qc-cell.num { min-width: 0; padding: 4px 3px; } .qc-desc { min-width: 190px; } .qc-desc .qc-cell { min-width: 160px; } .qc-payee .qc-cell { min-width: 110px; }
.qc-table td { padding: 2px 4px; } .qc-table th { padding: 6px 5px; }
.qc-inline .qc-input { width: auto; } .qc-inline input[type=date].qc-input { width: 150px; } .qc-inline .qc-input.num { width: 100px; } .qc-inline .qc-mo { width: 64px; }
.qc-pf-grid { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 1400px) { .qc-wrap { grid-template-columns: minmax(0, 1fr); } .qc-help { position: static; flex-direction: row; flex-wrap: wrap; } .qc-help-card { flex: 1 1 200px; } }

/* WORKSPACE SWITCHER (John, Nov 4): top-bar dropdown + neutral Home, baby-blue cards */
.ws-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 18px; margin-right: auto; }
.ws-btn { background: #e6f2ff; color: #0b3a6e; border: 1px solid #b9dcff; border-radius: 20px; padding: 6px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ws-btn .ws-k { font-weight: 500; opacity: .75; } .ws-btn:hover { background: #d7eaff; }
.ws-dd { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 320px; background: #fff; border: 1px solid #cfe6ff; border-radius: 12px; box-shadow: 0 10px 30px rgba(11,58,110,.18); padding: 6px; }
.ws-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px 12px; color: #123; cursor: pointer; font-size: 14px; }
.ws-opt small { display: block; color: #667; font-size: 12px; margin-top: 2px; } .ws-opt:hover { background: #f2f8ff; } .ws-opt.on { background: #e6f2ff; font-weight: 600; }
.ws-chip { font-size: 11px; background: #e6f2ff; color: #0b3a6e; border-radius: 10px; padding: 1px 8px; margin-left: 4px; font-weight: 500; }
.due-overdue { color: #b42318; font-weight: 600; } .due-today { color: #b54708; font-weight: 600; } .due-future { color: #067647; font-weight: 600; } .due-none { color: inherit; }
.view-pin { display: inline-flex; align-items: center; gap: 2px; } .view-pin-menu { position: relative; } .view-pin-menu summary { list-style: none; cursor: pointer; } .view-pin-menu summary::-webkit-details-marker { display: none; }
.view-pin-menu div[role=menu] { position: absolute; z-index: 30; background: #fff; border: 1px solid #d9d9d9; border-radius: 8px; padding: 6px; min-width: 140px; box-shadow: 0 8px 20px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: stretch; }
.view-pin-menu div[role=menu] a, .view-pin-menu div[role=menu] button { text-align: left; background: none; border: 0; padding: 6px 8px; cursor: pointer; color: inherit; font: inherit; }
.ws-home { max-width: 980px; } .ws-home-head { margin-bottom: 18px; }
.ws-prompts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ws-prompt { text-align: left; background: linear-gradient(180deg, #f2f8ff, #e1efff); border: 1px solid #b9dcff; border-radius: 16px; padding: 22px 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(30,110,200,.10); display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.ws-prompt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,110,200,.18); }
.ws-prompt strong { color: #0b3a6e; font-size: 18px; } .ws-prompt span { color: #456; font-size: 13px; min-height: 36px; } .ws-prompt em { font-style: normal; color: #2f7fd6; font-weight: 600; font-size: 13px; }
/* ---- Payoffs / HOA / FFB / Ground Rent (Qualia, feature/payoffs-hoa-ffb-gr; John, Nov 4 2026) ---- */
.po-tabs .qc-paytab { text-decoration: none; color: var(--ink-2); } .po-tabs .qc-paytab.on { background: var(--tc-baby, #89cff0); border-color: var(--tc-baby-hover, #74c4ea); color: var(--tc-on-baby, #0b2a45); font-weight: 600; }
.po-sub { margin: 12px 0 8px; font-size: 14px; } .po-inline-h { display: inline; margin: 0 8px 0 0; font-size: 14px; }
.po-addbox { display: grid; grid-template-columns: 1fr 40px 1fr; background: #fff; border: 1px solid var(--tc-line, #d9d9d9); border-radius: 4px; min-height: 180px; }
.po-addside { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } .po-addside h4 { margin: 0; font-size: 16px; }
.po-addside .qc-input { width: 100%; max-width: 300px; } .po-or { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink-3); border-left: 1px solid #eee; border-right: 1px solid #eee; }
.po-ico { font-size: 30px; color: var(--ink-2); line-height: 1; }
.po-results { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 4px; } .po-result { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid #e3e3e3; background: #fff; border-radius: 4px; padding: 6px 10px; cursor: pointer; font: inherit; }
.po-result:hover { background: var(--tc-baby-soft, #e8f6fd); border-color: var(--tc-baby, #89cff0); }
.po-newform { width: 100%; max-width: 320px; text-align: left; } .po-newform .qc-field { margin: 0 0 6px; } .po-newform .qc-input { width: 100%; }
.po-card { margin: 0 0 12px; } .po-kv th { width: 170px; text-align: right; padding: 6px 10px; font-size: 11px; letter-spacing: .05em; color: var(--ink-3); background: #fafafa; } .po-kv td { padding: 6px 10px; }
.po-kv { border: 1px solid #e5e5e5; } .po-kv tr + tr th, .po-kv tr + tr td { border-top: 1px solid #eee; }
details.po-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; } details.po-card > summary::-webkit-details-marker { display: none; }
.po-lines-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; } @media (max-width: 1200px) { .po-lines-grid { grid-template-columns: 1fr; } }
.po-li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; align-items: center; margin: 0 0 6px; } .po-li[data-po-li="interest"] { grid-template-columns: 170px minmax(0, 1fr) auto minmax(0, 1fr); }
.po-li-l { margin: 0; } .po-li .qc-input { width: 100%; } .po-item { grid-template-columns: 170px minmax(0, 1fr); } .po-item-l { font-size: 12px; background: #fafafa; }
.po-to { font-size: 12px; color: var(--ink-3); padding: 0 4px; border: 1px solid #e3e3e3; border-radius: 3px; background: #f6f6f6; line-height: 26px; }
.po-calc { position: sticky; top: 8px; } .po-calc h5 { margin: 0 0 6px; font-size: 13px; } .po-calc-h { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid #eee; } .po-calc .seg { margin: 0 0 8px; }
.po-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; } .po-calc-grid .qc-input { width: 100%; } .po-x-wrap { display: flex; gap: 2px; } .po-x { border: 0; background: transparent; color: #b45309; cursor: pointer; font-size: 16px; }
.po-gt { margin-top: 10px; max-width: 360px; }
.po-total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px; border-radius: 6px; background: #eaf7ee; border: 1px solid #bfe3c9; }
.po-total strong { font-size: 22px; color: #166534; } .po-total .small { color: #2f6b42; }
.po-info, .po-team { margin-top: var(--s4); } .po-check { align-self: end; } .po-orderinfo, .po-note pre { white-space: pre-wrap; font: inherit; font-size: 12px; background: #fafafa; border: 1px solid #eee; border-radius: 4px; padding: 8px 10px; margin: 8px 0; }
.po-team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s4); } @media (max-width: 1100px) { .po-team-grid { grid-template-columns: 1fr; } }
.po-team h4 { margin: 10px 0 6px; font-size: 14px; } .po-folders, .po-log { margin: 4px 0 8px; padding-left: 0; list-style: none; } .po-folders li, .po-log li { padding: 2px 0; }
.po-quick { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .po-note-form textarea { width: 100%; }
.po-note.is-critical pre { border-color: #f5b971; background: #fff8ef; } .po-notes h5 { margin: 10px 0 2px; font-size: 12px; letter-spacing: .05em; color: var(--ink-3); }
.po-pop { margin: 0 0 10px; max-width: 420px; } .po-pop .seg { margin: 0 0 8px; } .po-pop h5 { margin: 0 0 8px; }
.po-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; } .po-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; }
.po-grid4 .qc-input, .po-grid3 .qc-input, .po-wide .qc-input { width: 100%; } .po-blue .qc-label { color: var(--tc-baby-ink, #1f6fa3); }
.po-prorated { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin: 10px 0; padding: 12px 14px; border: 2px solid #bfe3c9; border-radius: 6px; background: #fff; }
.po-prorated .qc-input { width: 100%; color: #166534; font-weight: 600; } .po-green { color: #166534; }
.po-dotset { color: var(--tc-baby-ink, #1f6fa3); } .po-inline-sel { display: inline-block; width: auto; }
.po-choose { padding: 30px 16px; text-align: center; background: #fff; border: 1px solid var(--tc-line, #d9d9d9); border-radius: 4px; } .po-choose .qc-input { min-width: 240px; }
.po-hg { margin-top: var(--s4); } .po-switch { margin: 8px 0 0; max-width: 360px; } .po-demo { margin-top: 10px; }
.po-res-l { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px; }

/* Title Sales Rep on the agent Parties grid (John, Nov 4): photo or initials */
.sum-card .party-avatar { float: right; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--line); font-weight: 700; font-size: 14px; margin-left: 8px; }
.sum-card .sales-rep-party::after { content: ''; display: block; clear: both; }

/* VIEW AS (Super admin locked link only, live28) */
.view-as { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; color: inherit; } .view-as select { max-width: 260px; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
/* TASK SWITCHES (John, Nov 4; mockup 04) */
.tpl-tabs { display: flex; gap: 22px; border-bottom: 1px solid #e3e3e3; margin: 0 0 14px; }
.tpl-tabs a { padding: 8px 2px; color: #555; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tpl-tabs a.active { color: var(--ink, #1d4f7a); border-bottom-color: var(--ink, #1d4f7a); font-weight: 600; }
.task-switches tr.is-off td { color: #888; } .task-switches tr.is-off strong { color: #777; }
.ts-off-pill { display: inline-block; padding: 0 7px; border: 1px solid #f2c48d; background: #fff4e5; color: #8a4306; border-radius: 9px; font-size: 11px; font-weight: 600; }
.ts-filter { margin: 10px 0; }
/* ORDER PAGE REDESIGN (John, Nov 4; mockups 01-order-page / -mobile): status bar + glance, big address, one Parties list */
.op-status { background: #fff; border: 1px solid var(--line, #e3e3e3); border-radius: 10px; padding: 14px 18px; margin: 4px 0 6px; }
.op-status-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #666; margin-bottom: 4px; }
.op-status-label b { color: var(--navy-700, #123a5c); }
.op-status .tracker.op-steps { margin: 6px 0 2px; padding: 8px 0 4px; background: transparent; border: 0; box-shadow: none; }
.op-hint { margin: 0 0 4px; }
.op-glance { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13.5px; color: #444; border-top: 1px solid #eee; padding-top: 10px; margin-top: 6px; }
.op-glance b { color: var(--navy-700, #123a5c); } .op-glance .icon-edit { position: static; margin-left: auto; }
.op-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 2px; }
.op-title .op-address { font-size: 32px; line-height: 1.15; font-weight: 500; color: #333; margin: 0; }
.op-title .op-order-no { font-size: 20px; font-weight: 600; color: var(--navy-600, #1d4f7a); }
.op-sub { margin: 2px 0 10px; font-size: 13px; }
.op-actions { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; } .op-actions:empty { display: none; }
.op-plist { border: 1px solid #e3e3e3; border-radius: 6px; overflow: hidden; background: #fff; }
.op-prow { display: grid; grid-template-columns: minmax(108px, 150px) minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 1.5fr) auto; align-items: center; gap: 6px; padding: 4px 10px; border-top: 1px solid #eee; }
.op-contacts-tbl, [data-folder-bar] { display: none !important; }
.op-prow:first-child { border-top: 0; } .op-prow:nth-child(even) { background: #fafafa; }
.op-role { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--navy-600, #1d4f7a); font-weight: 600; }
.op-nm strong { color: #333; } .op-nm small { display: block; color: #888; font-size: 12px; } .op-nm .party-avatar { float: left; margin-right: 8px; }
.op-em, .op-ph { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; }
.op-copy-val { min-width: 0; overflow-wrap: anywhere; }
.op-copy { flex: 0 0 28px; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; color: #333; cursor: pointer; }
.op-copy:hover { border-color: var(--navy-500, #2a6496); } .op-copy:focus-visible { outline: 2px solid #1d4f7a; outline-offset: 2px; }
.op-copy.is-copied { border-color: #067647; color: #067647; } .op-copy.is-copied .op-copy-ico { display: none; } .op-copy.is-copied::after { content: '\2713'; font-size: 14px; line-height: 1; }
.op-copy.is-failed { border-color: #b42318; color: #b42318; } .op-copy.is-failed .op-copy-ico { display: none; } .op-copy.is-failed::after { content: '!'; font-size: 14px; font-weight: 700; line-height: 1; }
.op-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.op-act { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cfcfcf; border-radius: 3px; padding: 3px 9px; font-size: 12px; background: #fff; color: #333; text-decoration: none; cursor: pointer; font: inherit; font-size: 12px; min-height: 28px; }
.op-act:hover { border-color: var(--navy-500, #2a6496); } .op-act.is-off { color: #aaa; cursor: not-allowed; }
.op-pnote { margin: 6px 0 0; } .op-party-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.op-notes .op-note { border-left: 3px solid var(--baby, #8fcff0); padding: 8px 12px; background: #fafafa; margin-bottom: 8px; font-size: 13px; white-space: pre-wrap; }
.op-contacts-card { display: flex; gap: 40px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 700px) {
  .op-title .op-address { font-size: 25px; } .op-title .op-order-no { font-size: 17px; }
  .op-prow { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; }
  .op-prow .op-role { grid-column: 1; } .op-prow .op-nm, .op-prow .op-ph, .op-prow .op-em { grid-column: 1; }
  .op-prow .op-acts { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: stretch; }
  .op-status { padding: 12px; } .op-glance { gap: 4px 12px; font-size: 13px; } .op-contacts-card { gap: 14px; flex-direction: column; }
  .op-contacts-tbl { display: block; overflow-x: auto; }
}
/* ORDER PAGE REDESIGN (John, Nov 4 meeting): a SMALL EMD box next to the Wire instructions box (staff + buyer only; never agents) */
.op-money { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 4px 0 12px; }
.op-emd { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 12px; border: 1px solid #e3e3e3; border-radius: 6px; background: #fff; font-size: 13px; max-width: 340px; }
.op-emd b { color: var(--navy-700, #123a5c); font-size: 14px; } .op-emd .pill { font-size: 11px; }
.op-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--navy-600, #1d4f7a); font-weight: 700; }
.op-wire { flex: 1 1 380px; padding: 8px 14px; border: 1px solid #f2c48d; border-left: 4px solid #e7a33e; border-radius: 6px; background: #fffaf2; font-size: 13px; }
.op-wire-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.op-wire-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 2px; } .op-wire-facts b { color: var(--navy-700, #123a5c); } .op-wire p { margin: 4px 0 0; }
.op-prow.is-placeholder .op-nm strong { color: #888; font-weight: 500; }
/* ALIGN the document tabs and the Closing Disclosure (Nov 4 meeting): same tab strip on both. The Accounting / CD section menu was forced back
   into a 190px side column on phones by a later rule (.qc-shell above), squeezing the CD into ~150px: on narrow screens it now sits ABOVE the CD
   as one scrollable strip, like the Documents folder tabs, and both line up with the page's left edge. */
@media (max-width: 1100px) {
  .qc-shell { grid-template-columns: minmax(0, 1fr); }
  .qc-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 4px; padding: 6px; -webkit-overflow-scrolling: touch; }
  .qc-nav > * { flex: 0 0 auto; white-space: nowrap; } .qc-nav-group, .qc-nav-group:first-child { margin: 0 4px 0 8px; } .qc-nav-sub { display: none; }
}
@media (max-width: 700px) {
  [data-deal-docs] .folder-bar, .folder-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .folder-bar > * { flex: 0 0 auto; white-space: nowrap; }
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; } .nav-tabs li { flex: 0 0 auto; }
  .qc-viewer-bar { gap: 4px; } .qc-main { padding: 10px; }
  .op-emd { max-width: none; width: 100%; }
}
.op-money { align-items: flex-start; }
/* every Parties row uses the same columns (the actions column no longer changes width with a Message / + Add button), so names, phones and emails line up */
@media (min-width: 701px) { .op-prow { grid-template-columns: 170px minmax(160px, 1.2fr) 130px minmax(160px, 1.4fr) 300px; } }

/* HR WORKSPACE, Phase 1 (John + Francis, Nov 4; Zoho People layout in the baby-blue card style). Works in both themes. */
.hr-page { --hr-baby: #89cff0; --hr-baby-soft: #e8f6fd; --hr-baby-line: #bfe6f8; --hr-ink: #1f6fa3; --hr-on: #0b2a45; }
.hr-head { align-items: center; } .hr-subtabs { margin: 0 0 14px; }
.hr-quick-wrap, .hr-more-wrap { position: relative; display: inline-block; }
.hr-plus { font-size: 18px; line-height: 1; padding: 8px 14px; } .hr-plus-l { font-size: 13px; }
.hr-quick-dd, .hr-more-dd { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 230px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: #fff !important; box-shadow: 0 6px 24px rgba(11, 42, 69, .16) !important; border: 1px solid var(--hr-baby-line, #bfe6f8) !important; }
.hr-quick-dd a, .hr-more-dd .linkish, .hr-more-dd > span { display: block; padding: 7px 8px; border-radius: 4px; text-align: left; font-size: 14px; }
.hr-quick-dd a:hover, .hr-more-dd .linkish:hover { background: #e8f6fd; text-decoration: none; }
.hr-av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #89cff0; color: #0b2a45; font-weight: 700; font-size: 12px; flex: none; letter-spacing: .02em; }
.hr-av.lg { width: 52px; height: 52px; font-size: 18px; } .hr-av.xl { width: 84px; height: 84px; font-size: 28px; }
.hr-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .hr-home-grid > .card { margin: 0; }
.hr-greet { grid-column: span 2; background: linear-gradient(120deg, #e8f6fd, #f5fbff) !important; border-left: 4px solid #89cff0 !important; }
.hr-greet-row { display: flex; gap: 16px; align-items: center; } .hr-greet h3 { margin: 0 0 4px; color: #0b2a45 !important; font-size: 22px !important; }
.hr-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hr-stat { display: flex; flex-direction: column; gap: 2px; margin: 0; text-decoration: none; color: inherit; border-top: 3px solid #89cff0 !important; }
.hr-stat:hover { text-decoration: none; background: #e8f6fd !important; } .hr-stat-n { font-size: 28px; color: #1f6fa3; font-weight: 300; } .hr-stat-l { font-size: 13px; color: #6f6f6f; }
.hr-soon h3 .pill { margin-left: 6px; font-size: 11px; vertical-align: middle; }
.hr-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px !important; }
.hr-toolbar input[type=search] { flex: 1 1 260px; max-width: 420px; } .hr-tb-right { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.hr-view-toggle { display: inline-flex; } .hr-view-toggle .ghost { border-radius: 0; } .hr-view-toggle .ghost:first-child { border-radius: 4px 0 0 4px; } .hr-view-toggle .ghost:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.hr-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hr-table-card { padding: 0 !important; overflow-x: auto; } .hr-table { margin: 0; } .hr-table td, .hr-table th { white-space: nowrap; vertical-align: middle; }
.hr-chip { background: #e8f6fd; border-color: #bfe6f8; color: #0b2a45; }
.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.hr-emp-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; text-decoration: none; color: inherit; border-top: 3px solid #89cff0 !important; }
.hr-emp-card:hover { text-decoration: none; background: #e8f6fd !important; }
.hr-form .form-grid .span2 { grid-column: span 2; } .hr-inline { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; } .hr-inline input, .hr-inline select { flex: 1; margin-top: 0 !important; }
.hr-invite-box { margin-top: 12px; padding: 12px; background: #e8f6fd; border: 1px solid #bfe6f8; border-radius: 4px; }
.hr-invite-box .ai-link-row { display: flex; gap: 8px; } .hr-invite-box input { flex: 1; }
.hr-prof-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-left: 4px solid #89cff0 !important; }
.hr-prof-id h3 { margin: 0 0 2px; color: #0b2a45 !important; font-size: 22px !important; } .hr-prof-id p { margin: 2px 0; } .hr-prof-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hr-sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .hr-sec-grid > .card { margin: 0; }
.hr-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hr-dl { margin: 0; } .hr-dl-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ececec; } .hr-dl-row:last-child { border-bottom: 0; }
.hr-dl dt { color: #6f6f6f; font-size: 13px; } .hr-dl dd { margin: 0; color: #2b2b2b; } .hr-dl dd input, .hr-dl dd select { width: 100%; }
.hr-dl dd input:disabled, .hr-dl dd select:disabled { background: #f0f0f0; color: #777; cursor: not-allowed; }
.hr-save-row { position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); padding: 10px 0; margin: 12px 0 0; z-index: 5; }
.hr-hist td { vertical-align: top; } .hr-prof-body { margin: 16px 0; }
.ws-static { cursor: default; } .ws-opt-l .beta-badge, .ws-prompt .beta-badge { vertical-align: middle; }
@media (max-width: 900px) {
  .hr-home-grid, .hr-sec-grid { grid-template-columns: 1fr; } .hr-greet { grid-column: auto; } .hr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-filter-grid, .hr-form .form-grid { grid-template-columns: 1fr; } .hr-form .form-grid .span2 { grid-column: auto; } .hr-dl-row { grid-template-columns: 1fr; gap: 2px; }
  .hr-tb-right { margin-left: 0; } .hr-prof-actions { margin-left: 0; } .hr-quick-dd, .hr-more-dd { right: auto; left: 0; }
}

/* ---------- SIDEBAR SEARCH + PINNED ORDER NAV (John, Nov 4 call; js/sidebar-search.js) ---------- */
.ss-pin { position: sticky; top: 0; z-index: 5; background: inherit; padding: 12px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
body.theme-cards .ss-pin { background: var(--tc-side); }
.ss-wrap { position: relative; } .ss-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.ss-pin-main .ss-input { padding: 10px 10px; font-size: 14px; border-width: 2px; }
.ss-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 60vh; overflow: auto; min-width: 260px; }
.ss-dd li { padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1.35; } .ss-dd li.on, .ss-dd li[data-ss-pick]:hover { background: #eaf6fc; } .ss-fn { color: var(--ink-3); font-size: 12px; }
.ss-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; } .ss-switch { flex: 1; min-width: 0; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.ss-open { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--navy-700); border: 1px solid var(--line); background: #fff; }
.ss-home { margin: 0 0 18px; max-width: 760px; } .ss-home-l { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; } .ss-home .ss-input { padding: 14px 16px; font-size: 18px; border-width: 2px; border-radius: 10px; }
.nav-more details > summary { cursor: pointer; list-style: none; padding: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 6px; } .nav-more details > summary::before { content: '\25B8  '; } .nav-more details[open] > summary::before { content: '\25BE  '; }
.nav-more details > summary:hover { background: #fff; } .nav-more details > ul { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 860px) {
  /* mobile: the sidebar is the block above the page; the search is first and the order block stays stuck under the top bar */
  .left-bar, body.theme-cards .left-bar { display: contents; } .main-nav { background: var(--tc-side, var(--surface)); padding: 4px 12px; border-bottom: 1px solid var(--line); }
  .left-bar .logo { background: var(--surface); padding: 0 12px; } .ss-pin, body.theme-cards .ss-pin { top: var(--topbar-h); padding: 10px 12px; margin: 0; background: var(--tc-side, var(--surface)); z-index: 15; }
  .nav-more details > ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- FILE TASKS TAB: one box per side (John, Nov 4 2026). Soft tints, dark ink labels (all >= 7:1 on their tint). ---------- */
.side-box { border: 1px solid var(--sb-line); background: var(--sb-bg); border-radius: 10px; padding: 0 14px 12px; margin: 0 0 16px; }
.side-box > summary { cursor: pointer; padding: 10px 0; font-weight: 600; list-style-position: inside; }
.side-box .side-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--sb-tag); color: var(--sb-ink); font-size: 14px; }
.side-box .side-count { color: var(--sb-ink); }
.side-box .tbl { background: #fff; } .side-scroll { overflow-x: auto; }
.side-buyer { --sb-bg: #eef8fd; --sb-line: #bfe6f8; --sb-tag: #cdeefb; --sb-ink: #0b2a45; }
.side-seller { --sb-bg: #f2f7ee; --sb-line: #cfe3c2; --sb-tag: #dcefd0; --sb-ink: #1f3d12; }
.side-buyer-agent { --sb-bg: #f3f1fb; --sb-line: #d5cdf0; --sb-tag: #e2dcf7; --sb-ink: #2e2160; }
.side-listing-agent { --sb-bg: #fdf5ec; --sb-line: #f0d6b8; --sb-tag: #f8e3cc; --sb-ink: #4a2a07; }
.side-other { --sb-bg: #f5f6f7; --sb-line: #d6dadf; --sb-tag: #e4e7ea; --sb-ink: #22292f; }

/* ===== CLIENT OVERVIEW (John, Nov 4: approved buyer mockup, "make it live"). Buyer / seller File Overview only; every class is co-* so nothing else changes. ===== */
.co-shell { --co-b: #89cff0; --co-bs: #e8f6fd; --co-bl: #bfe6f8; --co-bi: #1f6fa3; --co-nv: #0b2a45; font-family: Roboto, Arial, sans-serif; background: #f4f9fc; color: #1d2b36; min-height: 100vh; }
.co-shell h1, .co-shell h2, .co-shell h3 { font-family: Roboto, Arial, sans-serif; }
.co-top { background: #fff; border-bottom: 3px solid var(--co-b); display: flex; align-items: center; gap: 16px; padding: 10px 28px; }
.co-top .co-logo img { height: 44px; display: block; }
.co-topr { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a5b68; }
.co-top .co-home { color: var(--co-bi); font-weight: 500; text-decoration: none; }
.co-top .user-btn { color: #4a5b68; } .co-top .user-btn b { color: var(--co-nv); } .co-top .user-btn:hover { background: var(--co-bs); }
.co-top .user-btn .role-tag { background: var(--co-bs); color: var(--co-bi); }
.co-top .bell img { filter: none; } .co-top .bell:hover { background: var(--co-bs); }
.co-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 28px 40px; }
.co-greet { font-size: 26px; font-weight: 500; color: var(--co-nv); margin: 0 0 4px; } .co-sub { color: #5b6d7a; margin: 0 0 18px; font-size: 15px; }
.co-seg { display: inline-flex; background: #fff; border: 1px solid var(--co-bl); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.co-seg a { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3d5566; text-decoration: none; display: flex; gap: 6px; align-items: center; }
.co-seg a:hover { background: var(--co-bs); } .co-seg a.on { background: var(--co-b); color: var(--co-nv); }
.co-seg .n { background: var(--co-nv); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.co-card { background: #fff; border: 1px solid var(--co-bl); border-radius: 14px; box-shadow: 0 2px 10px rgba(11,42,69,.06); overflow: hidden; margin-bottom: 20px; }
.co-ch { background: var(--co-b); color: var(--co-nv); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; padding: 10px 18px; display: flex; align-items: center; min-height: 36px; }
.co-ch .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.co-cb { padding: 18px; }
.co-btn { border: 0; border-radius: 999px; padding: 10px 20px; font: 600 14px Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none; display: inline-block; }
.co-btn.p { background: var(--co-nv); color: #fff; } .co-btn.g { background: #fff; color: var(--co-bi); border: 1px solid var(--co-bl); }
.co-next { display: flex; align-items: center; gap: 18px; background: linear-gradient(90deg, #eaf7fe, #fff); border: 1px solid var(--co-bl); border-left: 6px solid var(--co-b); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.co-next .co-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--co-b); display: grid; place-items: center; font-size: 22px; flex: none; color: var(--co-nv); }
.co-next .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--co-bi); font-weight: 700; } .co-next .t { font-size: 17px; font-weight: 500; color: var(--co-nv); } .co-next .d { font-size: 13px; color: #5b6d7a; }
.co-next .co-btn { margin-left: auto; flex: none; }
.co-status { display: flex; gap: 26px; align-items: center; }
.co-ring { flex: none; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; }
.co-ring > div { width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.co-ring b { font-size: 28px; color: var(--co-nv); display: block; line-height: 1.1; } .co-ring span { font-size: 11px; color: #5b6d7a; }
.co-l1 { font-size: 20px; font-weight: 500; color: var(--co-nv); } .co-l2 { color: #5b6d7a; font-size: 14px; margin-top: 4px; }
.co-dates { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .co-date { background: var(--co-bs); border-radius: 10px; padding: 7px 12px; font-size: 13px; color: #3d5566; } .co-date b { color: var(--co-nv); display: block; font-size: 14px; }
.co-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.co-pill { display: flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px 6px 6px; font-size: 13px; border: 1px solid var(--co-bl); background: #fff; color: #7b8c98; }
.co-pill i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #eef3f6; color: #7b8c98; }
.co-pill.done { background: var(--co-bs); color: var(--co-nv); } .co-pill.done i { background: var(--co-bi); color: #fff; }
.co-pill.now { background: var(--co-nv); color: #fff; border-color: var(--co-nv); font-weight: 600; box-shadow: 0 0 0 4px rgba(137,207,240,.5); } .co-pill.now i { background: var(--co-b); color: var(--co-nv); }
.co-acc { margin-top: 16px; border-top: 1px solid #e6f1f8; } .co-acc > div { display: flex; padding: 11px 4px; border-bottom: 1px solid #eef6fb; font-size: 14px; color: var(--co-nv); }
.co-badge { margin-left: auto; font-size: 12px; color: #2f8a57; background: #e7f6ee; border-radius: 999px; padding: 2px 10px; } .co-badge.w { color: var(--co-bi); background: var(--co-bs); }
.co-ur { list-style: none; padding: 0; margin: 4px 0 0; } .co-ur li { padding: 8px 4px; border-bottom: 1px solid #eef6fb; font-size: 14px; }
.co-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.co-addr { font-size: 22px; font-weight: 500; color: var(--co-nv); line-height: 1.25; } .co-city { color: #5b6d7a; font-size: 14px; margin-bottom: 14px; }
.co-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .co-fact { background: var(--co-bs); border-radius: 10px; padding: 10px 12px; } .co-fact.wide { grid-column: 1 / -1; }
.co-fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--co-bi); font-weight: 700; } .co-fact .v { font-size: 16px; color: var(--co-nv); font-weight: 500; margin-top: 2px; }
.co-agentline { margin-top: 14px; display: flex; align-items: center; gap: 10px; border: 1px dashed var(--co-b); border-radius: 10px; padding: 10px 12px; font-size: 14px; } .co-agentline img { height: 26px; }
.co-ya { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, var(--co-bs), #fff); border: 1px solid var(--co-bl); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.co-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--co-bs); color: var(--co-nv); font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--co-b); border: 2px solid #fff; font-size: 15px; }
.co-ya .co-av { width: 58px; height: 58px; font-size: 20px; }
.co-who { min-width: 0; } .co-nm { font-weight: 500; color: var(--co-nv); font-size: 15px; } .co-em { font-size: 12px; color: #6b7f8e; overflow-wrap: anywhere; } .co-you { color: #7b8c98; font-size: 12px; }
.co-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; background: var(--co-bs); color: var(--co-bi); border: 1px solid var(--co-bl); margin-top: 3px; }
.co-chip.cla { background: var(--co-nv); color: #fff; border-color: var(--co-nv); }
.co-acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.co-acts a, .co-acts button { font: 600 12px Roboto, Arial, sans-serif; color: var(--co-bi); border: 1px solid var(--co-bl); border-radius: 999px; padding: 6px 12px; text-decoration: none; background: #fff; cursor: pointer; }
.co-prow { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #eef6fb; } .co-prow:last-child { border-bottom: 0; }
.co-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7b8c98; font-weight: 700; margin: 10px 4px 2px; }
.co-shell .footer-bar { margin-left: 0; }
.co-shell .welcome-title.co-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 700px) {
  .co-top { padding: 8px 12px; flex-wrap: wrap; gap: 6px; } .co-top .co-logo img { height: 34px; } .co-topr { font-size: 12px; gap: 4px; } .co-top .user-btn .role-tag, .co-top .co-home { display: none; }
  .co-wrap { padding: 16px 14px; } .co-greet { font-size: 21px; }
  .co-seg { display: flex; flex-wrap: wrap; justify-content: center; border-radius: 16px; } .co-seg a { padding: 6px 10px; font-size: 12.5px; }
  .co-next { flex-wrap: wrap; } .co-next .co-btn { margin-left: 0; width: 100%; text-align: center; }
  .co-status { flex-direction: column; align-items: flex-start; gap: 14px; }
  .co-grid { grid-template-columns: 1fr; } .co-prow { flex-wrap: wrap; } .co-prow .co-acts { margin-left: 56px; } .co-ya { flex-wrap: wrap; } .co-ya .co-acts { margin-left: 72px; } .co-ch .r .co-btn { padding: 6px 12px; } }
/* live39 (John, Nov 5 "change desktop as well"): the client overview renders progress, address, tasks, team in that order on every screen (DOM order, full width), so no mobile reorder is needed. */
.co-page[data-client-overview] > [data-co-next] { margin-bottom: 20px; }
@media (min-width: 701px) { .co-page[data-client-overview] [data-co-property] .co-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* buyer page (Nov 4 call): every outstanding task listed first; compact so the page fits mostly on one screen */
.co-next { align-items: flex-start; padding: 14px 18px; } .co-next-main { flex: 1; min-width: 0; }
.co-todo { list-style: none; margin: 6px 0 0; padding: 0; } .co-todo li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #e6f1f8; }
.co-todo li:first-child { border-top: 0; } .co-todo .t { font-size: 15px; font-weight: 500; color: var(--co-nv); flex: 1; min-width: 0; } .co-todo .d { font-size: 13px; color: #5b6d7a; white-space: nowrap; }
.co-todo .co-btn { padding: 7px 14px; font-size: 13px; flex: none; }
.co-shell .co-card { margin-bottom: 16px; } .co-shell .co-cb { padding: 14px 18px; } .co-ring { width: 110px; height: 110px; } .co-ring > div { width: 84px; height: 84px; } .co-ring b { font-size: 24px; }
.co-status .co-pills { margin-top: 10px; gap: 6px; } .co-pill { padding: 4px 11px 4px 4px; font-size: 12.5px; }
.co-acc > div { padding: 7px 4px; }
.co-facts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .co-todo li { flex-wrap: wrap; } .co-todo .co-btn { width: 100%; text-align: center; } .co-facts { grid-template-columns: 1fr 1fr; } }
/* client tab pages (John, Nov 4): To-do list, Messages, Documents, Closing appointment, Activity live in the light shell; the old tab bodies get a light skin */
.co-greet.co-greet-sm { font-size: 24px; margin: 0 0 2px; } .co-tabpage .co-sub { margin-bottom: 12px; }
.co-tabcard .co-cb { overflow-x: auto; } .co-tabcard .box-title h2 { color: var(--co-nv); font-weight: 400; }
body .co-shell .co-tabcard .card { background: var(--co-bs); border: 1px solid var(--co-bl); border-radius: 12px; box-shadow: none; }
body .co-shell .co-tabcard .card h3 { color: var(--co-nv); font-weight: 500; }
.co-tabcard .tbl th { background: #f4f9fc; color: #5b6d7a; } .co-tabcard .tbl td { border-color: #e6f1f8; }
.co-tabcard .m-btn { background: var(--co-b); color: var(--co-nv); border-color: var(--co-b); border-radius: 999px; } .co-tabcard button.ghost { border-radius: 999px; }
.co-with-agent { align-items: flex-start; }
@media (max-width: 700px) { .co-greet.co-greet-sm { font-size: 20px; } .co-tabcard .co-cb { padding: 12px 10px; } .co-with-agent { display: block; } .co-with-agent > :not(#view) { margin-top: 14px; } }
/* HR FEEDBACK (John, Nov 4 HR review): time log, documents, hover labels on the HR sidebar icons */
.hr-timelog { margin-top: 10px; border-top: 1px solid var(--hr-baby-line, #bfe6f8); padding-top: 10px; }
.hr-timelog h4 { margin: 0 0 8px; color: var(--hr-ink, #1f6fa3); }
.hr-time-totals { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hr-time-tot { display: flex; flex-direction: column; background: var(--hr-baby-soft, #e8f6fd); border: 1px solid var(--hr-baby-line, #bfe6f8); border-radius: 10px; padding: 8px 12px; min-width: 110px; }
.hr-time-tot strong { font-size: 18px; color: var(--hr-on, #0b2a45); }
.hr-time-tbl td, .hr-time-tbl th, .hr-edoc-tbl td, .hr-edoc-tbl th { font-size: 13px; }
.hr-edoc-form { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hr-baby-line, #bfe6f8); }
.hr-sign-edit { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .hr-sign-edit select { font-size: 12px; padding: 2px 4px; }
.hr-doc-list { list-style: none; padding: 0; margin: 0; } .hr-doc-list li { padding: 6px 0; border-bottom: 1px solid var(--hr-baby-line, #bfe6f8); }
.hr-page textarea[data-hr-field] { width: 100%; }
.nav-link[data-hr-nav] { position: relative; }
.nav-link[data-hr-nav]:hover::after, .nav-link[data-hr-nav]:focus-visible::after { content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); z-index: 200;
  background: #0b2a45; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 14px rgba(11, 42, 69, .25); pointer-events: none; }
.hr-sec-wide { grid-column: 1 / -1; } .hr-timelog { overflow-x: auto; }
/* EMD reminder banner (John, Nov 4): pure buyer only, while the EMD receipt task is open; compact so the overview still fits one screen */
.co-emd { display: flex; align-items: center; gap: 12px; background: #eaf7fe; border: 1px solid var(--co-bl); border-left: 6px solid var(--co-b); border-radius: 12px; padding: 10px 16px; margin-bottom: 12px; color: #0b2a4a; font-size: 14px; }
.co-emd-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--co-bl); display: grid; place-items: center; font-weight: 700; }

/* ADMIN > OFFICES (John, Nov 4). Baby-blue admin card style, same palette variables as theme-cards.css */
.offices-page .off-intro { max-width: 900px; }
.off-card { margin-top: var(--s4); } .off-card h3 { margin-top: 0; }
.off-tbl thead th { background: var(--tc-baby-soft, #e8f6fd); color: var(--tc-on-baby, #0b2a45); border-bottom: 2px solid var(--tc-baby, #89cff0); }
.off-tbl td { vertical-align: top; } .off-tbl tr.off-retired td { color: #666; background: #fafafa; }
.off-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); white-space: nowrap; }
.off-chip-retired { background: #eee; color: #555; }
.off-form .off-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .off-form .off-check input { width: auto; }
.off-counties { border: 1px solid var(--tc-baby-line, #bfe6f8); border-radius: 8px; padding: 8px 12px; background: var(--tc-baby-soft, #e8f6fd); }
.off-counties legend { font-weight: 600; padding: 0 4px; color: var(--tc-on-baby, #0b2a45); }
.off-county-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .off-county-tools input { max-width: 240px; }
.off-county-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; max-height: 220px; overflow: auto; }
.off-county { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; } .off-county input { width: auto; margin: 0; }
.field-err { display: block; color: var(--err, #b42318); font-size: 12px; min-height: 0; } .is-invalid { border-color: var(--err, #b42318) !important; }
/* John, Nov 4: where each buyer / seller will be at closing (light baby-blue question box; staff flag rows) */
.loc-q { border: 1px solid var(--info-line); background: var(--info-bg); border-radius: var(--r); padding: 10px 14px; margin: 0; }
.loc-q legend { font-weight: 600; padding: 0 4px; } .loc-q label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 16px; font-weight: 400; }
.loc-q label.inline input { width: auto; } .loc-q [data-loc-no] { margin-top: 6px; } .loc-q select { max-width: 320px; }
tr.flagged td { background: var(--warn-bg); } [data-location-flags] div + div { margin-top: 4px; }

/* ===== order > Title (John, Nov 4 2026): light baby-blue, same cards / pills as the other order tabs ===== */
.tt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tt-meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .9rem; color: var(--tc-on-baby, #0b2a45); }
.tt-progress { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .4rem 0 .6rem; }
.tt-bar { flex: 1 1 220px; max-width: 420px; height: 10px; border-radius: 6px; background: var(--tc-baby-soft, #e8f6fd); border: 1px solid var(--tc-baby-line, #bfe6f8); overflow: hidden; }
.tt-bar > span { display: block; height: 100%; background: var(--tc-baby, #89cff0); }
.tt-status select { margin-left: .3rem; }
.tt-warn { list-style: none; margin: .3rem 0 .7rem; padding: .5rem .75rem; border: 1px solid var(--tc-baby-line, #bfe6f8); background: var(--tc-baby-soft, #e8f6fd); border-radius: 8px; font-size: .9rem; }
.tt-warn li { padding: .15rem 0; }
.tt-warn li::before { content: '⚠ '; }
.red, .tt-warn li.red, tr.red td { color: #b3261e; }
.tt-warn li.red { font-weight: 600; }
.ok { color: #1f7a3f; }
.tt-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--tc-baby-line, #bfe6f8); }
.tt-tabs a { padding: .3rem .65rem; border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--tc-baby-ink, #1f6fa3); background: #fff; border: 1px solid var(--tc-baby-line, #bfe6f8); }
.tt-tabs a.active, .tt-ptabs a.active { background: var(--tc-baby, #89cff0); color: var(--tc-on-baby, #0b2a45); border-color: var(--tc-baby, #89cff0); font-weight: 600; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.tt-card h3 { margin-top: 0; color: var(--tc-baby-ink, #1f6fa3); }
.tt-card h3 a { color: inherit; text-decoration: none; }
.tt-steps { list-style: none; padding: 0; margin: 0; }
.tt-steps li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; padding: .3rem 0; border-bottom: 1px dashed var(--tc-baby-line, #bfe6f8); font-size: .9rem; }
.tt-steps li.done > span:first-child { color: #1f7a3f; }
.tt-step { display: inline-flex; gap: .25rem; align-items: center; margin-right: .6rem; }
.tt-notes { list-style: none; padding: 0; }
.tt-notes li { padding: .4rem .5rem; margin-bottom: .35rem; background: #fffbe6; border-left: 3px solid #f2c94c; border-radius: 4px; }
.tt-items { list-style: none; padding: 0; margin: .6rem 0; }
.tt-item { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .5rem; align-items: start; padding: .55rem .4rem; border-bottom: 1px solid var(--tc-baby-line, #bfe6f8); }
.tt-item.sub { margin-left: 2rem; background: var(--tc-baby-soft, #e8f6fd); }
.tt-item.satisfied .tt-itext, .tt-item.waived .tt-itext { opacity: .6; }
.tt-num { font-weight: 700; color: var(--tc-baby-ink, #1f6fa3); }
.tt-itext p { margin: 0 0 .3rem; }
.tt-iact { display: flex; flex-wrap: wrap; gap: .2rem; justify-content: flex-end; }
.tt-being { padding: .55rem .7rem; background: var(--tc-baby-soft, #e8f6fd); border-radius: 6px; }
.tt-gen { padding: .5rem; background: var(--tc-baby-soft, #e8f6fd); border-radius: 6px; }
.tt-ptabs { display: flex; gap: .3rem; margin-bottom: .5rem; flex-wrap: wrap; }
.tt-ptabs a { padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--tc-baby-line, #bfe6f8); text-decoration: none; color: var(--tc-baby-ink, #1f6fa3); }
.tt-plist { list-style: none; padding: 0; max-height: 50vh; overflow: auto; }
.tt-plist li { padding: .3rem 0; border-bottom: 1px dashed var(--tc-baby-line, #bfe6f8); }
.tt-pre { white-space: pre-wrap; font-family: inherit; font-size: .88rem; background: var(--tc-baby-soft, #e8f6fd); padding: .6rem; border-radius: 6px; }
fieldset.span2 { display: flex; flex-wrap: wrap; gap: .5rem; border: 1px solid var(--tc-baby-line, #bfe6f8); border-radius: 6px; }
@media (max-width: 640px) { .tt-item { grid-template-columns: 2rem 1fr; } .tt-iact { grid-column: 1 / -1; justify-content: flex-start; } .tt-item.sub { margin-left: .8rem; } .tt-meta { gap: .5rem; font-size: .82rem; } }
@media print { .tt-tabs, .tt-progress, nav, .sidebar, button { display: none !important; } }
/* live40: on the client Open Orders page the orders table scrolls inside its own box instead of running past the page edge (it never sits under the agent card) */
.agent-inline #view .tbl { display: block; overflow-x: auto; max-width: 100%; }

/* TC PORTAL (John, Nov 5: Melissa Ward / Bowers Group): light coordination shell, five quick jumps, EMD/ALTA chips */
.co-seg a[aria-current="page"] { background: var(--co-b); color: var(--co-nv); }
.tc-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.tc-quick .muted { margin-right: 4px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.tc-page .co-facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 700px) { .tc-quick { gap: 6px; } .tc-quick .co-btn { padding: 8px 12px; font-size: 13px; } }

.voice-controls { display: flex; gap: 8px; margin: 12px 0; }
[data-voice-demo] textarea { width: 100%; }
