/* Quotes staff workspace. Deliberately separate from onboarding and client review. */
body.quotes-workspace {
  --ink: #192a3b;
  --ink2: #526174;
  --ink3: #778396;
  --paper: #fff;
  --surface: #f5f7fa;
  --sunk: #f8fafc;
  --line: #e6ebf1;
  --line2: #d3dce5;
  --brand: #c92832;
  --brand-soft: #fceef0;
  --accent2: #427395;
  --accent2-soft: #edf4fa;
  --on-accent: #fff;
  --chrome: #15232f;
  --chrome-ink: #f7f9fc;
  --chrome-dim: #9baebf;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --sidebar-width: 232px;
  --shadow: 0 2px 6px rgb(24 42 59 / 3%);
  color-scheme: light;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
}
.quotes-workspace a { text-underline-offset: 3px; }
.quotes-workspace svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quotes-workspace .btn { min-height: 38px; border-radius: 7px; font-size: 13px; font-weight: 600; padding: 9px 14px; box-shadow: none; text-decoration: none; }
.quotes-workspace .btn.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.quotes-workspace .btn.primary:hover { background: #ac202b; border-color: #ac202b; filter: none; }
.quotes-workspace .btn:focus-visible, .quotes-workspace a:focus-visible { outline: 3px solid #6da7cf; outline-offset: 3px; }
.quotes-workspace .actionmenu > summary.btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; vertical-align: middle; cursor: pointer; }
.quotes-workspace .actionmenu > summary.btn > span[aria-hidden="true"] { display: none; }
.quotes-workspace .actionmenu > summary.btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.quotes-workspace .actionmenu[open] > summary.btn::after { transform: translateY(2px) rotate(225deg); }
.quotes-workspace .presend-card { border-left: 3px solid var(--brand); margin-bottom: 20px; }
.quotes-workspace .presend-card h2 { margin: 6px 0; font-size: 18px; }
.quotes-workspace .presend-card p { margin: 8px 0; line-height: 1.6; }
.quotes-workspace .presend-review { margin-bottom: 20px; }
.quotes-workspace .monthly-price-preview { display: grid; gap: 6px; padding: 18px; margin: 18px 0; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; color: var(--ink2); font-size: 12px; }
.quotes-workspace .monthly-price-preview strong { font-size: 24px; color: var(--ink); }
.quotes-workspace .catalog-billing { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--sunk); border-radius: 6px; color: var(--ink2); font-size: 12px; }
.quotes-workspace .catalog-billing small { display: block; margin-top: 5px; color: var(--ink3); }
.quotes-workspace .catrow input[readonly] { background: var(--sunk); color: var(--ink2); }
.quotes-workspace .presend-review h3 { margin: 24px 0 10px; font-size: 15px; }
.quotes-workspace .presend-review p { line-height: 1.7; overflow-wrap: anywhere; }
.quotes-workspace .workspace-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.quotes-workspace .workspace-pagehead h1 { margin: 8px 0; }
.quotes-workspace .workspace-pagehead p { margin: 0; color: var(--ink3); }
.quotes-workspace .workspace-kicker { color: var(--ink3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 620px) { .quotes-workspace .workspace-pagehead { align-items: flex-start; flex-direction: column; gap: 16px; } }
.quotes-workspace input[type="checkbox"] { accent-color: var(--brand); width: 15px; height: 15px; min-height: 0; padding: 0; flex: none; }
.quotes-workspace .bar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100dvh;
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
  padding: 0 15px; gap: 0; background: var(--chrome); border: 0; box-shadow: none;
  overflow-y: auto; z-index: 80;
}
.quotes-workspace .brand { min-height: 104px; padding: 22px 3px; gap: 12px; flex-direction: row; justify-content: flex-start; border-bottom: 1px solid #ffffff12; }
.quotes-workspace .brandmark { display: block; width: 96px; flex: none; }
/* Real SVG paths keep the compact brand crisp at any display density. */
body.quotes-workspace .bar .brandmark img {
  display: block; width: 96px; height: auto;
  padding: 0; border: 0; border-radius: 0; background: none; clip-path: none;
}
.quotes-workspace .brandcopy { display: grid; gap: 5px; line-height: 1.2; min-width: 0; }
.quotes-workspace .brandcopy b { color: #fff; font-size: 18px; letter-spacing: -.3px; }
.quotes-workspace .brandcopy > span { display: none; }
.quotes-workspace .sidebar-section { display: block; color: #7d93a6; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; padding: 28px 13px 12px; }
.quotes-workspace .bar .actions { position: static; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; gap: 6px; padding: 0; background: none; border: 0; box-shadow: none; }
.quotes-workspace .bar .actions .btn {
  display: flex; align-items: center; gap: 12px; text-align: left; color: #aebdcc;
  min-height: 44px; padding: 11px 13px; font-size: 13px; border: 1px solid transparent; border-radius: 7px;
  background: none; box-shadow: none; font-weight: 500;
}
.quotes-workspace .bar .actions .btn svg { width: 18px; height: 18px; opacity: .85; }
.quotes-workspace .bar .actions .btn:hover { background: #ffffff08; color: #fff; }
.quotes-workspace .bar .actions .btn.on { color: #fff; background: #ffffff0d; border-color: #ffffff0d; box-shadow: inset 3px 0 0 #df4a53; }
.quotes-workspace .bar .actions .btn.on svg { color: #e9747b; opacity: 1; }
.quotes-workspace .admin-section { padding-top: 34px; padding-bottom: 8px; }
.quotes-workspace .bar > * { flex-shrink: 0; }
.quotes-workspace .sidebar-bottom { margin-top: auto; padding: 36px 1px 18px; }
.quotes-workspace .workspace-label { padding: 10px 10px 18px; color: #8b9fb0; font-size: 10px; letter-spacing: 1.05px; display: flex; align-items: center; gap: 7px; }
.quotes-workspace .workspace-label > span { width: 5px; height: 5px; border-radius: 50%; background: #b2c1cd; }
.quotes-workspace .userchip { display: flex; align-items: center; width: 100%; padding: 16px 6px 0; margin: 0; border: 0; border-top: 1px solid #ffffff16; gap: 10px; white-space: normal; }
.quotes-workspace .useravatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; background: #2b3d4b; border: 1px solid #ffffff10; color: #e6edf4; font-size: 12px; font-weight: 600; }
.quotes-workspace .useridentity { display: grid; gap: 2px; min-width: 0; }
.quotes-workspace .useridentity b { font-size: 12px; color: #e8eef5; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quotes-workspace .useridentity small { color: #8a9eaf; font-size: 12px; }
.quotes-workspace .userchevron { margin-left: auto; color: #8a9eaf; font-size: 20px; }
.quotes-workspace .workspace-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; margin-left: var(--sidebar-width); padding: 14px 36px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.quotes-workspace .workspace-location { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quotes-workspace .workspace-breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 12px; white-space: nowrap; color: #7c8795; }
.quotes-workspace .workspace-breadcrumb > span { color: #c7cfd8; }
.quotes-workspace .workspace-breadcrumb b { font-weight: 500; color: #33475c; }
.quotes-workspace .topbar-actions { display: flex; align-items: center; gap: 22px; }
.quotes-workspace .workspace-search { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #7a8797; text-decoration: none; }
.quotes-workspace .workspace-search:hover { color: var(--ink); }
.quotes-workspace .workspace-search svg { width: 16px; height: 16px; }
.quotes-workspace .newquote { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.quotes-workspace .newquote > span { font-size: 20px; font-weight: 400; line-height: 14px; }
.quotes-workspace .navtoggle { display: none; }
.quotes-workspace .workspace-scrim { position: fixed; inset: 0; background: #14202b66; border: 0; z-index: 70; }
.quotes-workspace main, .quotes-workspace main.wide { max-width: 1600px; padding: 38px 36px 70px; margin: 0 auto; }
.quotes-workspace.is-authenticated main, .quotes-workspace.is-authenticated main.wide { margin-left: var(--sidebar-width); max-width: none; }
.quotes-workspace .dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.quotes-workspace .eyebrow { font-size: 11px; color: #8190a0; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 9px; }
.quotes-workspace .dashboard-heading h1 { margin: 0 0 8px; font-size: clamp(25px,2.2vw,34px); font-weight: 600; letter-spacing: -1.1px; line-height: 1.2; }
.quotes-workspace .dashboard-heading p { margin: 0; color: #6c7b8d; font-size: 13px; }
.quotes-workspace .dashboard-date { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: #6b798a; white-space: nowrap; padding: 10px 12px; border: 1px solid #e0e6ed; border-radius: 6px; background: #fff; }
.quotes-workspace .dashboard-date svg { width: 15px; height: 15px; color: #8996a7; }
.quotes-workspace .dashboard-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 12px; }
.quotes-workspace .dashboard-section-heading h2 { color: #33465b; font-size: 13px; letter-spacing: -.15px; margin: 0; font-weight: 600; }
.quotes-workspace .scope-filter { display: flex; align-items: center; gap: 8px; color: #738092; font-size: 12px; cursor: pointer; }
.quotes-workspace .workspace-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 28px; }
.quotes-workspace .stat-card { min-width: 0; padding: 20px 21px 0; border: 1px solid #e2e8ef; border-radius: 10px; background: #fff; box-shadow: 0 2px 3px #14202b02; overflow: hidden; }
.quotes-workspace .stat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.quotes-workspace .stat-heading h3 { font-size: 12px; font-weight: 500; color: #718095; margin: 0; }
.quotes-workspace .stat-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 7px; background: #f0f3f7; color: #7a8c9e; }
.quotes-workspace .stat-icon svg { width: 16px; height: 16px; }
.quotes-workspace .stat-blue .stat-icon { background: #edf5fc; color: #4d8ac1; }
.quotes-workspace .stat-amber .stat-icon { background: #fff7e9; color: #bf9345; }
.quotes-workspace .stat-green .stat-icon { background: #ecf7f1; color: #4d9676; }
.quotes-workspace .stat-value { display: block; margin: 0 0 3px; font-size: 30px; line-height: 1.25; letter-spacing: -1.2px; font-weight: 600; color: #22354a; font-variant-numeric: tabular-nums; }
.quotes-workspace .stat-detail { min-height: 30px; color: #6c7b8d; font-size: 11px; margin: 7px 0 14px; }
.quotes-workspace .stat-caption { display: flex; align-items: center; min-height: 34px; font-size: 11px; color: #6c7b8d; border-top: 1px solid #edf0f5; margin: 0 -21px; padding: 8px 21px; background: #fdfefe; }
.quotes-workspace .dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 302px; gap: 24px; align-items: start; }
.quotes-workspace .dashboard-aside { display: grid; gap: 20px; }
.quotes-workspace .workspace-panel { border: 1px solid #e2e8ef; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 2px 3px #14202b02; }
.quotes-workspace .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 24px 22px; }
.quotes-workspace .panel-heading h2 { font-size: 13px; color: #2c4158; font-weight: 600; margin: 0 0 5px; letter-spacing: -.2px; }
.quotes-workspace .panel-heading p { font-size: 12px; color: #6c7b8d; margin: 0; }
.quotes-workspace .text-link, .quotes-workspace .table-footer a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #5c7188; white-space: nowrap; text-decoration: none; }
.quotes-workspace .text-link:hover, .quotes-workspace .table-footer a:hover { color: var(--brand); }
.quotes-workspace .text-link svg, .quotes-workspace .table-footer svg { width: 13px; height: 13px; }
.quotes-workspace .workspace-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.quotes-workspace .workspace-table th { padding: 11px 14px; color: #6c7b8d; text-transform: uppercase; letter-spacing: .7px; font-size: 10px; font-weight: 500; background: #fafbfd; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.quotes-workspace .workspace-table th:first-child, .quotes-workspace .workspace-table td:first-child { padding-left: 24px; }
.quotes-workspace .workspace-table th:last-child, .quotes-workspace .workspace-table td:last-child { padding-right: 24px; }
.quotes-workspace .workspace-table td { padding: 18px 14px; border-bottom: 1px solid #edf0f5; font-size: 12px; color: #52677c; }
.quotes-workspace .workspace-table tr:last-child td { border-bottom: 0; }
.quotes-workspace .workspace-table tr.click:hover { background: #fbfcfe; }
.quotes-workspace .workspace-table .num { font-family: var(--sans); font-weight: 500; font-variant-numeric: tabular-nums; }
.quotes-workspace .quote-identity { display: flex; align-items: center; gap: 12px; }
.quotes-workspace .quote-file { display: grid; place-items: center; width: 32px; height: 38px; color: #a4b0be; border: 1px solid #e7ebf0; border-radius: 6px; background: #fcfdfe; flex: none; }
.quotes-workspace .quote-file svg { width: 17px; height: 17px; }
.quotes-workspace .quote-ref { display: block; color: #40566f; font-size: 12px; font-weight: 600; letter-spacing: .05px; text-decoration: none; }
.quotes-workspace .quote-ref:hover { color: var(--brand); text-decoration: underline; }
.quotes-workspace .quote-client { display: block; font-size: 11px; color: #6c7b8d; margin-top: 4px; }
.quotes-workspace .pill { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; padding: 4px 7px; line-height: 1.2; font-size: 10px; letter-spacing: .3px; font-weight: 500; text-transform: capitalize; background: #f1f4f8; color: #62748a; }
.quotes-workspace .pill::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.quotes-workspace .pill.sent { color: #427fae; background: #eef5fb; }
.quotes-workspace .pill.accepted { color: #36795a; background: #eaf5ee; }
.quotes-workspace .pill.pending_approval { color: #aa803b; background: #fff6e7; }
.quotes-workspace .pill.lost { color: #b36267; background: #fff0f1; }
.quotes-workspace .table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0f5; padding: 16px 24px; color: #6c7b8d; font-size: 11px; }
.quotes-workspace .pipeline-panel .panel-heading { padding-bottom: 19px; }
.quotes-workspace .pipeline-bar { display: flex; gap: 3px; height: 7px; border-radius: 4px; overflow: hidden; background: #eff2f6; margin: 0 24px 21px; }
.quotes-workspace .stage-slate { background: #9eafc0; }
.quotes-workspace .stage-blue { background: #6ba1cf; }
.quotes-workspace .stage-amber { background: #d8b576; }
.quotes-workspace .pipeline-stages { display: grid; gap: 15px; padding: 0 24px 22px; }
.quotes-workspace .pipeline-stages > div { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.quotes-workspace .stage-dot { height: 6px; width: 6px; border-radius: 50%; }
.quotes-workspace .stage-label { color: #7a899a; }
.quotes-workspace .pipeline-stages b { color: #40566c; font-size: 12px; font-weight: 500; margin-left: auto; font-variant-numeric: tabular-nums; }
.quotes-workspace .pipeline-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 24px; background: #fbfcfd; border-top: 1px solid #edf0f5; color: #6c7b8d; font-size: 11px; line-height: 1.6; }
.quotes-workspace .pipeline-note svg { width: 14px; height: 14px; margin-top: 2px; color: #97a6b7; }
.quotes-workspace .expiry-panel .panel-heading { padding-bottom: 7px; }
.quotes-workspace .expiry-empty { display: flex; flex-direction: column; align-items: center; padding: 20px 20px 27px; text-align: center; }
.quotes-workspace .empty-check { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 11px; color: #72a28b; background: #f0f7f3; border-radius: 50%; }
.quotes-workspace .empty-check svg { width: 16px; height: 16px; }
.quotes-workspace .expiry-empty b { color: #687c8f; font-size: 12px; font-weight: 500; }
.quotes-workspace .expiry-empty p { color: #6c7b8d; font-size: 11px; margin: 5px 0 0; }
.quotes-workspace .expiry-list { list-style: none; padding: 5px 24px 20px; margin: 0; }
.quotes-workspace .expiry-list li { display: flex; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.quotes-workspace .expiry-list li:last-child { border-bottom: 0; }
.quotes-workspace .expiry-list a { text-decoration: none; flex: 1; min-width: 0; }
.quotes-workspace .expiry-list b, .quotes-workspace .expiry-list span, .quotes-workspace .expiry-list small { display: block; }
.quotes-workspace .expiry-list b { color: var(--ink2); font-size: 12px; }
.quotes-workspace .expiry-list span { color: var(--ink3); font-size: 11px; }
.quotes-workspace .expiry-list small { font-size: 11px; color: #ae8547; margin-top: 4px; }
.quotes-workspace .expiry-list svg { color: #8d9dae; width: 14px; height: 14px; }
.quotes-workspace .dashboard-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: #6c7b8d; margin-top: 26px; }
.quotes-workspace .dashboard-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.quotes-workspace .dashboard-footer svg { width: 12px; height: 12px; }
.quotes-workspace .workspace-empty { padding: 70px 30px; text-align: center; color: var(--ink3); }
.quotes-workspace .workspace-empty > svg { height: 32px; width: 32px; color: #a7b4c2; }
.quotes-workspace .workspace-empty h3 { color: var(--ink2); font-size: 14px; }
.quotes-workspace .workspace-empty p { font-size: 13px; }
.quotes-workspace .approval-tools { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.quotes-workspace .approval-search { display: flex; align-items: center; gap: 10px; min-width: 260px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding-left: 13px; }
.quotes-workspace .approval-search svg { width: 17px; height: 17px; color: #8594a5; }
.quotes-workspace .approval-search input { border: 0; background: transparent; font-size: 12px; }
.quotes-workspace .approval-tools select { width: auto; font-size: 12px; }
.quotes-workspace .record-label { display: inline-flex; align-items: center; gap: 7px; color: #778b9d; font-size: 11px; white-space: nowrap; }
.quotes-workspace .record-label svg { width: 15px; height: 15px; }
.quotes-workspace .approval-table { min-width: 850px; }
.quotes-workspace .record-name, .quotes-workspace .record-date { display: block; color: #41576c; font-size: 12px; }
.quotes-workspace .record-pagination { display: flex; gap: 7px; }
.quotes-workspace .deal-tools { display: grid; grid-template-columns: minmax(260px,1fr) auto auto auto; gap: 10px; align-items: center; margin-top: 24px; }
.quotes-workspace .deal-tools .approval-search { min-width: 0; }
.quotes-workspace .deal-tools select { width: 100%; font-size: 12px; }
.quotes-workspace .deal-search-hint { color: var(--ink3); font-size: 12px; margin: 12px 0 22px; }
.quotes-workspace .deal-table { min-width: 820px; }
.quotes-workspace .deal-table td:first-child { width: 40%; }
.quotes-workspace .deal-client { display: block; color: var(--ink2); font-size: 12px; margin-top: 4px; }
.quotes-workspace .deal-project { display: block; color: var(--ink3); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width:1200px) { .quotes-workspace .deal-tools { grid-template-columns: repeat(3,minmax(0,1fr)); } .quotes-workspace .deal-tools .approval-search { grid-column: 1 / -1; } }
@media (max-width:620px) { .quotes-workspace .deal-tools { grid-template-columns: 1fr; } .quotes-workspace .deal-table td { padding-top: 16px; padding-bottom: 16px; } .quotes-workspace .deal-table .deal-client { max-width: 210px; } }
.quotes-workspace .approval-retention-note { color: #7b8999; font-size: 12px; margin-top: 20px; }
.quotes-workspace .approval-record-modal { width: min(660px,100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.quotes-workspace .record-intro { padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.quotes-workspace .record-intro h2 { font-size: 20px; margin: 0 0 4px; color: var(--ink); }
.quotes-workspace .record-intro p { margin: 0; color: var(--ink3); font-size: 13px; }
.quotes-workspace .record-facts { display: grid; gap: 13px; margin: 20px 0; }
.quotes-workspace .record-facts > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 14px; }
.quotes-workspace .record-facts dt { color: #7a899a; font-size: 12px; }
.quotes-workspace .record-facts dd { color: var(--ink2); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.quotes-workspace .record-terms { border: 1px solid var(--line); background: var(--sunk); border-radius: 8px; padding: 16px; }
.quotes-workspace .record-terms h3 { font-size: 13px; margin: 0 0 8px; }
.quotes-workspace .record-terms p { font-size: 12px; line-height: 1.7; margin: 0; color: var(--ink2); }
.quotes-workspace .record-verification { margin-top: 18px; color: var(--ink2); font-size: 12px; }
.quotes-workspace .record-verification summary { cursor: pointer; font-weight: 500; }
.quotes-workspace .record-verification p { line-height: 1.6; }
@media (max-width:700px) { .quotes-workspace .approval-tools { flex-wrap: wrap; gap: 8px; } .quotes-workspace .approval-search { min-width: 0; flex-basis: 100%; } .quotes-workspace .approval-tools select { flex: 1; min-width: 0; } .quotes-workspace .record-label { display: none; } .quotes-workspace .record-facts > div { grid-template-columns: 105px minmax(0,1fr); gap: 10px; } }
.quotes-workspace .pagehead h1 { font-size: 27px; font-weight: 600; letter-spacing: -.8px; }
.quotes-workspace .card { border-color: #e2e8ef; box-shadow: 0 2px 3px #14202b02; }
.quotes-workspace .card h2 { color: #41576c; font-size: 13px; }
.quotes-workspace .toolbar input, .quotes-workspace .toolbar select { font-size: 13px; }
.quotes-workspace .sticky { left: var(--sidebar-width); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #14202b08; }
.quotes-workspace .login { min-height: calc(100dvh - 108px); }
.quotes-workspace .login .card { width: 420px; max-width: 100%; border-radius: 14px; box-shadow: 0 16px 60px #14202b0a; padding: 40px; }
.quotes-workspace .login h1 { font-size: 23px; letter-spacing: -.8px; }
@media (min-width: 1700px) {
  .quotes-workspace { --sidebar-width: 248px; }
  .quotes-workspace .workspace-topbar { padding-left: 48px; padding-right: 48px; }
  .quotes-workspace.is-authenticated main { padding: 45px 48px 70px; }
  .quotes-workspace .dashboard-grid { grid-template-columns: minmax(0,1fr) 340px; }
  .quotes-workspace .stat-value { font-size: 34px; }
  .quotes-workspace .stat-detail { font-size: 12px; }
  .quotes-workspace .stat-heading h3 { font-size: 13px; }
  .quotes-workspace .stat-caption { font-size: 12px; }
  .quotes-workspace .workspace-table td { padding-top: 22px; padding-bottom: 22px; }
}
@media (max-width: 1250px) {
  .quotes-workspace { --sidebar-width: 210px; }
  .quotes-workspace .workspace-topbar { padding: 14px 24px; }
  .quotes-workspace.is-authenticated main { padding: 30px 24px 60px; }
  .quotes-workspace .workspace-stats { gap: 12px; }
  .quotes-workspace .stat-card { padding-left: 16px; padding-right: 16px; }
  .quotes-workspace .stat-caption { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .quotes-workspace .stat-value { font-size: 27px; }
  .quotes-workspace .dashboard-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
  .quotes-workspace .quote-file { display: none; }
  .quotes-workspace .panel-heading { padding: 20px; }
  .quotes-workspace .workspace-table td, .quotes-workspace .workspace-table th { padding-left: 10px; padding-right: 10px; }
  .quotes-workspace .workspace-table td:first-child, .quotes-workspace .workspace-table th:first-child { padding-left: 20px; }
  .quotes-workspace .workspace-table td:last-child, .quotes-workspace .workspace-table th:last-child { padding-right: 20px; }
}
@media (max-width: 1050px) and (min-width: 901px) {
  .quotes-workspace .workspace-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quotes-workspace .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .quotes-workspace .dashboard-aside { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 900px) {
  .quotes-workspace { --sidebar-width: 232px; }
  .quotes-workspace:has(.actions.open) { overflow: hidden; }
  .quotes-workspace .bar { transform: translateX(-100%); }
  .quotes-workspace .bar:has(.actions.open) { transform: translateX(0); }
  .quotes-workspace .workspace-topbar { margin-left: 0; min-height: 68px; padding: 12px 22px; }
  .quotes-workspace .navtoggle { display: grid; place-items: center; min-height: 36px; width: 36px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #6c7e90; margin: 0; }
  .quotes-workspace .workspace-breadcrumb { font-size: 12px; gap: 10px; }
  .quotes-workspace.is-authenticated main, .quotes-workspace.is-authenticated main.wide { margin-left: 0; padding: 30px 22px 50px; }
  .quotes-workspace .workspace-search { display: none; }
  .quotes-workspace .dashboard-grid { grid-template-columns: minmax(0,1fr) 260px; }
  .quotes-workspace .sticky { left: 0; }
}
@media (max-width: 700px) {
  .quotes-workspace .dashboard-heading { align-items: flex-start; margin-bottom: 28px; }
  .quotes-workspace .dashboard-date { display: none; }
  .quotes-workspace .dashboard-heading h1 { font-size: 27px; }
  .quotes-workspace .workspace-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quotes-workspace .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .quotes-workspace .dashboard-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quotes-workspace .stat-detail { min-height: 28px; }
  .quotes-workspace .quote-file { display: grid; }
  .quotes-workspace .workspace-breadcrumb { font-size: 12px; }
  .quotes-workspace .workspace-breadcrumb { display: block; }
  .quotes-workspace .workspace-breadcrumb > span, .quotes-workspace .workspace-breadcrumb b { display: none; }
  .quotes-workspace .tablewrap { margin-left: 0; margin-right: 0; }
}
@media (max-width: 450px) {
  .quotes-workspace .workspace-topbar { padding-left: 14px; padding-right: 14px; }
  .quotes-workspace .workspace-location { gap: 8px; }
  .quotes-workspace .workspace-breadcrumb { font-size: 11px; }
  .quotes-workspace .newquote { min-height: 36px; padding: 8px 10px; font-size: 12px; }
  .quotes-workspace.is-authenticated main, .quotes-workspace.is-authenticated main.wide { padding: 27px 14px 45px; }
  .quotes-workspace .dashboard-heading h1 { font-size: 25px; }
  .quotes-workspace .dashboard-heading p { font-size: 12px; max-width: 270px; }
  .quotes-workspace .workspace-stats { gap: 10px; margin-bottom: 20px; }
  .quotes-workspace .stat-card { padding: 15px 13px 0; }
  .quotes-workspace .stat-heading h3 { font-size: 11px; }
  .quotes-workspace .stat-icon { width: 24px; height: 24px; border-radius: 5px; }
  .quotes-workspace .stat-icon svg { width: 13px; height: 13px; }
  .quotes-workspace .stat-value { font-size: 25px; }
  .quotes-workspace .stat-detail { font-size: 11px; margin: 7px 0 10px; }
  .quotes-workspace .stat-caption { font-size: 10px; margin-left: -13px; margin-right: -13px; padding: 8px 13px; }
  .quotes-workspace .dashboard-aside { grid-template-columns: 1fr; gap: 16px; }
  .quotes-workspace .panel-heading { padding: 18px 16px; gap: 10px; }
  .quotes-workspace .panel-heading h2 { font-size: 13px; }
  .quotes-workspace .panel-heading p { font-size: 11px; }
  .quotes-workspace .text-link { font-size: 11px; }
  .quotes-workspace .quote-file { display: none; }
  .quotes-workspace .workspace-table td, .quotes-workspace .workspace-table th { padding: 14px 8px; }
  .quotes-workspace .workspace-table td:first-child, .quotes-workspace .workspace-table th:first-child { padding-left: 16px; }
  .quotes-workspace .workspace-table td:last-child, .quotes-workspace .workspace-table th:last-child { padding-right: 16px; }
  .quotes-workspace .workspace-table th { font-size: 10px; }
  .quotes-workspace .workspace-table td { font-size: 11px; }
  .quotes-workspace .quote-ref { font-size: 10px; }
  .quotes-workspace .quote-client { font-size: 10px; max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
  .quotes-workspace .pill { font-size: 10px; padding: 4px 5px; }
  .quotes-workspace .table-footer { padding: 13px 16px; font-size: 10px; }
  .quotes-workspace .table-footer a { font-size: 10px; }
  .quotes-workspace .dashboard-footer { font-size: 10px; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) { .quotes-workspace .bar { transition: transform .2s ease; } }
@media print { .quotes-workspace .bar, .quotes-workspace .workspace-topbar, .quotes-workspace .workspace-scrim { display: none !important; } .quotes-workspace.is-authenticated main { margin: 0; padding: 0; } }

@media (min-width: 901px) and (max-height: 720px) {
  .quotes-workspace .brand { min-height: 88px; padding-top: 17px; padding-bottom: 17px; }
  .quotes-workspace .sidebar-section { padding-top: 14px; padding-bottom: 8px; font-size: 10px; }
  .quotes-workspace .bar .actions { gap: 4px; }
  .quotes-workspace .bar .actions .btn { min-height: 38px; padding-top: 9px; padding-bottom: 9px; }
  .quotes-workspace .sidebar-bottom { padding-top: 14px; padding-bottom: 12px; }
  .quotes-workspace .workspace-label { display: none; }
  .quotes-workspace .userchip { padding-top: 12px; }
}

/* Evening polish: clear next actions, a readable price book, and phone results. */
.quotes-workspace .pagehead { align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.quotes-workspace .pagehead h1 { margin: 4px 0 7px; }
.quotes-workspace .pagehead .sub { max-width: 700px; font-size: 12px; line-height: 1.6; }
.quotes-workspace .btn { white-space: nowrap; transition: background-color .12s, border-color .12s; }
.quotes-workspace input:not([type="checkbox"]), .quotes-workspace select, .quotes-workspace textarea { border-color: #dfe6ee; }
.quotes-workspace input:focus, .quotes-workspace select:focus, .quotes-workspace textarea:focus { border-color: #82a8c3; box-shadow: 0 0 0 3px #42739512; }
.quotes-workspace .workspace-search kbd { display: grid; place-items: center; width: 21px; height: 22px; margin-left: 3px; background: #f8fafc; border: 1px solid #e2e8ef; border-radius: 4px; color: #8a99a8; font: 11px var(--sans); }
.quotes-workspace .modal { border: 1px solid #e0e6ed; border-radius: 13px; padding: 25px; box-shadow: 0 24px 90px #12233330; max-height: calc(100dvh - 36px); overflow-y: auto; }
.quotes-workspace .modalhead { margin-bottom: 20px; }
.quotes-workspace .modalhead h3 { font-size: 18px; letter-spacing: -.4px; }
.quotes-workspace .save-state, .quotes-workspace #savestate:not(:empty) { display: inline-flex; align-items: center; gap: 6px; color: #6e8191; font-size: 11px; padding: 6px 9px; background: #f3f6f8; border-radius: 20px; font-weight: 500; }
.quotes-workspace [data-state="saved"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #369569; }
.quotes-workspace [data-state="saving"]::before, .quotes-workspace [data-state="pending"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c48c32; }
.quotes-workspace .save-state[data-state="error"], .quotes-workspace #savestate[data-state="error"] { color: #ae2936; background: #fceef0; }
.quotes-workspace .catalog-actions { justify-content: flex-end; gap: 8px; }
.quotes-workspace .catalog-heading .sub { max-width: 320px; }
.quotes-workspace .catalog-controls { display: grid; grid-template-columns: minmax(180px,1fr) minmax(160px,230px) minmax(140px,180px); align-items: center; gap: 12px; position: sticky; top: 88px; z-index: 20; background: #f5f7faf5; padding: 12px 0; }
.quotes-workspace .catalog-controls .approval-search { min-width: 0; }
.quotes-workspace .catalog-controls select { font-size: 12px; }
.quotes-workspace .catalog-result-count { margin: 0 0 19px; color: #7a8999; font-size: 11px; }
.quotes-workspace .catalog-import-help { border: 1px solid var(--line); border-radius: 9px; background: #fff; margin: 0 0 22px; color: var(--ink2); font-size: 12px; }
.quotes-workspace .catalog-import-help summary { display: flex; align-items: center; gap: 10px; padding: 14px 17px; cursor: pointer; list-style: none; font-weight: 600; }
.quotes-workspace .catalog-import-help summary::-webkit-details-marker { display: none; }
.quotes-workspace .catalog-import-help summary::after { content: "+"; margin-left: auto; color: #8494a4; font-size: 18px; font-weight: 400; }
.quotes-workspace .catalog-import-help[open] summary::after { content: "−"; }
.quotes-workspace .catalog-import-help summary svg { width: 17px; height: 17px; color: #7a91a6; }
.quotes-workspace .catalog-import-help summary small { font-size: 11px; font-weight: 400; margin-left: 8px; color: #8b98a6; }
.quotes-workspace .catalog-import-help > div { border-top: 1px solid var(--line); padding: 0 18px 16px; }
.quotes-workspace .catalog-category { padding: 0; margin-bottom: 24px; overflow: hidden; }
.quotes-workspace .catalog-category-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.quotes-workspace .catalog-category-head > div:first-child { min-width: 0; flex: 1; }
.quotes-workspace .catalog-category-head input { width: 100%; padding: 3px 0; min-height: 0; border-color: transparent; background: transparent; box-shadow: none; font-size: 15px; color: var(--ink); font-weight: 600; }
.quotes-workspace .catalog-category-head input:focus { padding-left: 7px; background: #fff; border-color: #82a8c3; }
.quotes-workspace .catalog-category-head > div > span { display: block; color: #8a98a7; font-size: 11px; margin-top: 3px; }
.quotes-workspace .catalog-category-head .btnrow { flex: none; gap: 7px; margin: 0; }
.quotes-workspace .catalog-category-head .btn { font-size: 11px; min-height: 34px; padding: 7px 10px; }
.quotes-workspace .catrow { position: relative; margin: 16px; padding: 17px; border: 1px solid #e5ebf1; border-radius: 9px; grid-template-columns: minmax(150px,1fr) 65px 90px 90px 110px 54px 28px; align-items: end; gap: 13px 9px; }
.quotes-workspace .cat-field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.quotes-workspace .cat-field > span:first-child { font-size: 10px; line-height: 1.4; color: #7c8b9b; font-weight: 500; }
.quotes-workspace .catrow input, .quotes-workspace .catrow select { min-height: 38px; padding: 9px; font-size: 12px; border-radius: 6px; }
.quotes-workspace .cat-name input { font-weight: 600; color: #334a60; }
.quotes-workspace .catrow .mg { display: grid; align-items: center; min-height: 38px; padding: 5px; font-size: 12px; text-align: center; border-radius: 5px; background: #f4f7f9; }
.quotes-workspace .cat-delete { align-self: end; margin-bottom: 3px; border-color: transparent; color: #9aa8b5; }
.quotes-workspace .cat-delete:hover { background: #fceef0; border-color: #f2d4d9; color: #ae2936; }
.quotes-workspace .catrow .sub2 { grid-template-columns: minmax(130px,.35fr) 1fr; gap: 12px; padding-top: 3px; }
.quotes-workspace .catrow.hardware-template { grid-template-columns: minmax(140px,1fr) 70px minmax(180px,1.3fr) 28px; }
.quotes-workspace .hardware-template .sub2 { grid-template-columns: 1fr; }
.quotes-workspace .hardware-template-note { display: grid; gap: 5px; align-self: center; font-size: 12px; color: var(--ink2); }
.quotes-workspace .hardware-template-note strong, .quotes-workspace .hardware-rate { font-size: 12px; color: #49677e; font-weight: 500; }
.quotes-workspace .hardware-template-note span { font-size: 11px; line-height: 1.5; color: #7c8b9b; }
.quotes-workspace .software-option { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 12px 0; }
.quotes-workspace .software-option .two { margin-top: 12px; }
.quotes-workspace .dashboard-heading .btn { margin-top: 18px; }
.quotes-workspace .quote-build-steps { display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
.quotes-workspace .quote-build-steps button { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quotes-workspace .quote-build-steps b { display: grid; place-items: center; border-radius: 50%; background: #eef3f7; width: 24px; height: 24px; font-size: 11px; }
.quotes-workspace #build-client, .quotes-workspace #build-items { scroll-margin-top: 90px; }
.quotes-workspace .picklist { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.quotes-workspace .quote-review-client { display: grid; gap: 5px; padding: 14px; background: #f5f7fa; border-radius: 8px; margin-bottom: 15px; }
.quotes-workspace .quote-review-detail { display: block; white-space: pre-line; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.quotes-workspace .quote-review-totals { display: grid; gap: 8px; padding: 15px 0; }
.quotes-workspace .quote-review-totals > span { display: flex; justify-content: space-between; gap: 16px; }
.quotes-workspace .quote-review-totals > small { color: var(--ink2); }
.quotes-workspace .quote-review-terms { border-block: 1px solid var(--line); padding: 12px 0; margin-bottom: 15px; }
.quotes-workspace .hardware-amounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quotes-workspace .catrow textarea, .quotes-workspace .row .detail { width: 100%; resize: vertical; line-height: 1.5; }
.quotes-workspace .row textarea.detail { min-height: 52px; font-size: 12px; padding: 8px; }
@media (max-width:700px) {
  .quotes-workspace .catrow.hardware-template { grid-template-columns: minmax(0,1fr) 70px; }
  .quotes-workspace .hardware-template-note { grid-column: 1 / -1; }
}
.quotes-workspace .catalog-billing { padding: 12px; margin-top: 2px; border: 1px solid #eaf0f5; font-size: 11px; }
.quotes-workspace .catalog-billing .btn { font-size: 11px; }
.quotes-workspace .catalog-category > .hint { padding: 0 20px 16px; }
.quotes-workspace .catalog-empty { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.quotes-workspace .sending-inbox { margin: 0 0 26px; border: 1px solid #e4e8ee; border-radius: 10px; background: #fff; overflow: hidden; }
.quotes-workspace .sending-inbox-heading { display: flex; align-items: center; gap: 13px; padding: 20px 24px; border-bottom: 1px solid #edf0f4; }
.quotes-workspace .inbox-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fceef0; color: #c92832; }
.quotes-workspace .sending-inbox-heading .eyebrow { font-size: 9px; margin: 0; }
.quotes-workspace .sending-inbox h2 { font-size: 15px; margin: 4px 0; letter-spacing: -.2px; }
.quotes-workspace .sending-inbox p { margin: 0; color: #7a8999; font-size: 11px; }
.quotes-workspace .review-count { display: grid; place-items: center; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 600; color: #b32a37; background: #fceef0; }
.quotes-workspace .sending-inbox-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 20px; align-items: center; padding: 17px 24px; border-bottom: 1px solid #edf0f4; }
.quotes-workspace .sending-inbox-list article:last-child { border: 0; }
.quotes-workspace .sending-inbox-list strong { display: inline; font-weight: 500; font-size: 12px; color: #53677a; margin-left: 10px; }
.quotes-workspace .sending-inbox-list article > div > span { display: block; color: #8593a1; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.quotes-workspace .sending-inbox-list time { color: #8a98a6; font-size: 11px; }
@media (max-width:1200px) {
  .quotes-workspace .catrow { grid-template-columns: minmax(140px,1fr) 58px 75px 75px 95px 48px 24px; padding: 14px; gap: 12px 7px; margin: 13px; }
  .quotes-workspace .catalog-actions { justify-content: flex-start; }
}
@media (max-width:1050px) {
  .quotes-workspace .catrow { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 17px; gap: 14px; }
  .quotes-workspace .cat-name { grid-column: 1 / -1; padding-right: 34px; }
  .quotes-workspace .cat-delete { position: absolute; right: 15px; top: 37px; margin: 0; }
  .quotes-workspace .cat-margin .mg { min-height: 38px; }
  .quotes-workspace .catalog-billing { align-items: flex-start; flex-direction: column; gap: 10px; }
  .quotes-workspace .catalog-category-head { padding: 16px; gap: 10px; }
}
@media (max-width:700px) {
  .quotes-workspace .catalog-controls { grid-template-columns: 1fr 1fr; gap: 9px; top: 76px; }
  .quotes-workspace .catalog-controls > label { grid-column: 1 / -1; }
  .quotes-workspace .catalog-controls select { min-width: 0; font-size: 11px; }
  .quotes-workspace .catalog-actions { width: 100%; }
  .quotes-workspace .catalog-actions .save-state { flex-basis: 100%; width: fit-content; }
  .quotes-workspace .catalog-actions .primary { width: auto !important; }
  .quotes-workspace .catalog-import-help summary small { display: none; }
  .quotes-workspace .catalog-category-head { align-items: flex-start; flex-direction: column; }
  .quotes-workspace .catalog-category-head > div:first-child { width: 100%; }
  .quotes-workspace .catrow .sub2 { grid-template-columns: 1fr; }
  .quotes-workspace .deal-table, .quotes-workspace .deal-table tbody { display: block; min-width: 0; width: 100%; }
  .quotes-workspace .deal-table thead { display: none; }
  .quotes-workspace .deal-table tbody { display: grid; gap: 12px; padding: 12px; }
  .quotes-workspace .deal-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px; border: 1px solid #e5eaf0; border-radius: 8px; background: #fff; }
  .quotes-workspace .deal-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; border: 0; padding: 0 !important; width: auto; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .quotes-workspace .deal-table td:first-child { grid-column: 1 / -1; width: 100%; border-bottom: 1px solid #edf0f4; padding-bottom: 12px !important; }
  .quotes-workspace .deal-table td:not(:first-child)::before { content: attr(data-label); font-size: 10px; color: #8a99a8; }
  .quotes-workspace .deal-table td:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; }
  .quotes-workspace .deal-table .quote-ref { font-size: 12px; }
  .quotes-workspace .deal-table .deal-client { max-width: none; font-size: 13px; margin: 0; }
  .quotes-workspace .deal-table .deal-project { font-size: 11px; margin: 0; }
  .quotes-workspace .table-footer { flex-wrap: wrap; gap: 12px; }
  .quotes-workspace .sending-inbox-heading { padding: 17px; gap: 11px; }
  .quotes-workspace .sending-inbox-list article { grid-template-columns: minmax(0,1fr) auto; gap: 13px; padding: 17px; }
  .quotes-workspace .sending-inbox-list strong { display: block; margin: 4px 0 0; }
  .quotes-workspace .sending-inbox-list .btn { grid-column: 1 / -1; }
  .quotes-workspace .modal { padding: 20px; }
}
@media (max-width:620px) {
  .quotes-workspace .deal-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quotes-workspace .deal-tools .approval-search, .quotes-workspace .deal-tools #f-status { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .quotes-workspace .btn { transition: none; } }
