:root {
  --navy: #0B2E4A;
  --navy-deep: #071F33;
  --navy-line: #16405f;
  --gold: #C6972F;
  --gold-soft: #E4C874;
  --paper: #F6F2E9;
  --app-bg: #EBEFF3;
  --card: #FFFFFF;
  --ink: #0E1A24;
  --muted: #5C6B78;
  --line: #DDE4EA;
  --line-soft: #EAEEF2;
  --ok: #1E7D5A;
  --ok-bg: #E3F3EC;
  --sent: #2563A8;
  --sent-bg: #E4EEF8;
  --lost: #B23B3B;
  --lost-bg: #F8E7E7;
  --draft: #6B7A88;
  --draft-bg: #EDF1F4;
  --shadow: 0 1px 2px rgba(11,46,74,.06), 0 6px 20px rgba(11,46,74,.06);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--app-bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; user-select: text; -webkit-user-select: text; cursor: text; }
input[type="checkbox"], input[type="radio"] { cursor: pointer; }
input[type="date"], select { cursor: pointer; }
a { color: var(--navy); }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--navy-deep);
  color: #cfe0ee;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--navy-line);
}
.brand .wordmark {
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; font-size: 15px; line-height: 1.3;
}
.brand .wordmark b { color: var(--gold-soft); font-weight: 700; }
.brand .tag {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #7f97ac; margin-top: 6px;
}
.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  background: transparent; border: 0; color: #b9cad9;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.nav button .ico { width: 17px; height: 17px; opacity: .85; flex: none; }
.nav button:hover { background: #0e2c44; color: #fff; }
.nav button.active { background: var(--navy); color: #fff; }
.nav button.active .ico { opacity: 1; }
.nav .primary {
  margin: 8px 2px 4px; justify-content: center;
  background: var(--gold); color: var(--navy-deep); font-weight: 600;
}
.nav .primary:hover { background: var(--gold-soft); color: var(--navy-deep); }
.side-foot {
  margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--navy-line);
  font-size: 11px; color: #7f97ac; line-height: 1.6;
}

/* ---------- Main ---------- */
.main { padding: 26px 30px 60px; max-width: 1180px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search {
  flex: 1; min-width: 220px; position: relative;
}
.search input {
  width: 100%; padding: 10px 12px 10px 34px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); outline-offset: -1px; border-color: var(--gold); }

select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 15px; border-radius: 8px; font-weight: 500; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { border-color: #c3ccd4; background: #fbfcfd; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #0d3757; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn.gold:hover { background: #b9892a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; }
.btn.danger:hover { border-color: var(--lost); color: var(--lost); }

/* ---------- Card / table ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.qno { font-family: var(--mono); font-weight: 600; color: var(--navy); font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.Draft { color: var(--draft); background: var(--draft-bg); }
.pill.Sent { color: var(--sent); background: var(--sent-bg); }
.pill.Won  { color: var(--ok); background: var(--ok-bg); }
.pill.Lost { color: var(--lost); background: var(--lost-bg); }

.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn {
  border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 6px;
  display: inline-flex;
}
.icon-btn:hover { background: var(--line-soft); color: var(--navy); }
.icon-btn.danger:hover { background: var(--lost-bg); color: var(--lost); }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty svg { color: var(--line); margin-bottom: 14px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 16px; }

/* ---------- Quote editor ---------- */
.editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field label { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 62px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.section-title {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  font-weight: 700; margin: 4px 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--gold-soft);
}
.pad { padding: 20px; }

/* line items */
.items thead th { background: var(--navy); color: #cfe0ee; border: 0; }
.items tbody td { padding: 8px 10px; }
.items input { border: 1px solid transparent; background: transparent; padding: 7px 8px; border-radius: 6px; width: 100%; }
.items input:hover { border-color: var(--line); background: #fff; }
.items input:focus { border-color: var(--gold); background: #fff; }
.items .num input { text-align: right; font-variant-numeric: tabular-nums; }
.items .w-qty { width: 88px; }
.items .w-price { width: 120px; }
.items .w-unit { width: 84px; }
.items .line-total { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.add-row { position: relative; }
.add-row input {
  width: 100%; padding: 11px 12px; border: 1px dashed var(--line);
  border-radius: 8px; background: #fbfcfd;
}
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  max-height: 280px; overflow: auto;
}
.suggest .opt { padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.suggest .opt:last-child { border-bottom: 0; }
.suggest .opt:hover, .suggest .opt.active { background: var(--paper); }
.suggest .opt .p-name { font-weight: 500; }
.suggest .opt .p-meta { font-size: 12px; color: var(--muted); }
.suggest .opt .p-price { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; white-space: nowrap; }
.suggest .opt.freeform { color: var(--navy); font-weight: 500; }

/* totals panel */
.totals { position: sticky; top: 20px; }
.totals .pad { padding: 18px; }
.tline { display: flex; justify-content: space-between; padding: 7px 0; font-variant-numeric: tabular-nums; }
.tline.grand { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--navy); }
.tline .lbl { color: var(--muted); }
.mini { display: flex; align-items: center; gap: 8px; }
.mini input { width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.save-bar { display: flex; gap: 10px; margin-top: 16px; }
.save-bar .btn { flex: 1; justify-content: center; }

.pillbar { display: flex; gap: 6px; flex-wrap: wrap; }
.pillbar button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pillbar button.on.Draft { background: var(--draft-bg); color: var(--draft); border-color: transparent; }
.pillbar button.on.Sent { background: var(--sent-bg); color: var(--sent); border-color: transparent; }
.pillbar button.on.Won { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pillbar button.on.Lost { background: var(--lost-bg); color: var(--lost); border-color: transparent; }

/* editor header strip */
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.editor-head .qmeta { display: flex; align-items: baseline; gap: 12px; }
.editor-head .qmeta .qno { font-size: 20px; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-deep); color: #fff; padding: 11px 18px; border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transition: all .25s; z-index: 100; font-size: 13.5px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--lost); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(7,31,51,.45); display: none; align-items: flex-start; justify-content: center; z-index: 60; padding: 40px 20px; overflow-y: auto; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto; flex-shrink: 0; }
.modal h3 { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 16px; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal .body { padding: 20px; }
.modal .foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; }
  .nav { flex-direction: row; overflow-x: auto; }
  .side-foot, .brand .tag { display: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .totals { position: static; }
}

/* ============ PRINT / QUOTE DOCUMENT ============ */
.print-only { display: none; }
@media print {
  .app > .sidebar, .main { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  @page { margin: 14mm 14mm; }
}
#printDoc {
  background: #fff; color: #16202a; max-width: 800px; margin: 0 auto;
  font-size: 12.5px;
}
#printDoc .doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--navy); padding-bottom: 16px; }
#printDoc .co-name { font-size: 20px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
#printDoc .co-name b { color: var(--gold); }
#printDoc .co-sub { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
#printDoc .co-contact { text-align: right; font-size: 11px; color: #35424e; line-height: 1.7; }
#printDoc .doc-title { text-align: center; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--navy); margin: 18px 0 4px; font-weight: 700; }
#printDoc .certs { text-align: center; font-size: 10px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
#printDoc .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; margin-bottom: 18px; }
#printDoc .meta-grid .row { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
#printDoc .meta-grid .k { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; width: 108px; flex: none; padding-top: 1px; }
#printDoc .meta-grid .v { font-weight: 600; }
#printDoc table.doc-items { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
#printDoc table.doc-items th { background: var(--navy); color: #fff; text-align: left; padding: 8px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
#printDoc table.doc-items th.num, #printDoc table.doc-items td.num { text-align: right; }
#printDoc table.doc-items td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
#printDoc table.doc-items tr:nth-child(even) td { background: #fafbf7; }
#printDoc .doc-totals { width: 300px; margin-left: auto; }
#printDoc .doc-totals .row { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
#printDoc .doc-totals .row.grand { border-top: 2px solid var(--navy); margin-top: 4px; padding-top: 9px; font-weight: 700; font-size: 15px; color: var(--navy); }
#printDoc .notes { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
#printDoc .notes .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
#printDoc .doc-foot { margin-top: 34px; display: flex; justify-content: space-between; align-items: flex-end; }
#printDoc .sign { border-top: 1px solid #35424e; padding-top: 5px; width: 200px; font-size: 11px; color: var(--muted); }
#printDoc .thanks { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .05em; }

/* ============ Operations Hub additions ============ */
/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%); padding: 20px; }
.login-card { background: #fff; border-radius: 14px; padding: 34px 30px 24px; width: 100%; max-width: 370px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .wordmark { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 22px; color: var(--navy); }
.login-brand .wordmark b { color: var(--gold); }
.login-brand .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.login-error { background: var(--lost-bg); color: var(--lost); padding: 9px 12px; border-radius: 7px; font-size: 13px; margin-bottom: 14px; }
.login-foot { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }

/* Side user block */
.side-foot .who { color: #dfe9f2; font-weight: 600; font-size: 13px; }
.side-foot .role { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f97ac; margin-top: 2px; }
.side-foot .links { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.side-foot .links a { color: #9fb4c7; font-size: 12px; cursor: pointer; text-decoration: none; }
.side-foot .links a:hover { color: #fff; }

/* RFQ + quote statuses */
.pill.Open { color: var(--sent); background: var(--sent-bg); }
.pill.Quoted { color: var(--gold); background: #F6EED8; }
.pill.Won { color: var(--ok); background: var(--ok-bg); }
.pill.Lost { color: var(--lost); background: var(--lost-bg); }
.pill\.No { }
.pill.NoResponse { color: var(--draft); background: var(--draft-bg); }

.pillbar button.on.Open { background: var(--sent-bg); color: var(--sent); border-color: transparent; }
.pillbar button.on.Quoted { background: #F6EED8; color: var(--gold); border-color: transparent; }
.pillbar button.on.Won { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pillbar button.on.Lost { background: var(--lost-bg); color: var(--lost); border-color: transparent; }
.pillbar button.on.NoResponse { background: var(--draft-bg); color: var(--draft); border-color: transparent; }

/* Dashboard cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 700; color: var(--navy); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: var(--navy-deep); }
.stat.accent .k { color: #9fb4c7; } .stat.accent .v { color: #fff; } .stat.accent .sub { color: var(--gold-soft); }

.pipe { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pipe .seg { flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.pipe .seg .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pipe .seg .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.subhead { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .02em; margin: 24px 0 12px; }

/* file chip */
.file-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--navy); text-decoration: none; }
.file-chip:hover { border-color: var(--gold); }

.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none; }
.assignee { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }

.tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-row button { background: transparent; border: 0; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-row button.on { color: var(--navy); border-bottom-color: var(--gold); }

@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* clickable quotation number -> opens the saved file */
.qlink { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qlink:hover { color: var(--gold); text-decoration: underline; }
.qlink svg { opacity: .7; }

/* dashboard two-column layout: tracker left, quotations right */
.dash-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.dash-cols .subhead:first-child { margin-top: 0; }
@media (max-width: 1024px) { .dash-cols { grid-template-columns: 1fr; } }

/* In Progress status (renamed from Open) */
.pill.InProgress { color: var(--sent); background: var(--sent-bg); }
.pillbar button.on.InProgress { background: var(--sent-bg); color: var(--sent); border-color: transparent; }

/* enquiry detail meta rows (was unstyled -> label and value ran together) */
.meta2 .row { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.meta2 .row:last-child { border-bottom: 0; }
.meta2 .row .k { color: var(--muted); flex: none; width: 118px; font-size: 12px; }
.meta2 .row .v { color: var(--ink); font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Logo on login page */
.login-logo { display: block; margin: 0 auto 12px; max-width: 200px; height: auto; }

/* Logo in sidebar */
.sidebar-logo { display: block; width: 130px; height: auto; margin: 0 auto 6px; }
.brand .tag { text-align: center; }

/* department grouping rows in HR + payroll tables */
tr.dept-row td { background: var(--paper); font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--navy); padding: 7px 14px; border-top: 1px solid var(--line); }

/* global search bar */
.topbar { padding: 10px 24px 0; }
.global-search { position: relative; max-width: 520px; }
.global-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.global-search input { width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--card); }
.global-search input:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(198,151,47,.15); }
.gs-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,.12); z-index: 800; max-height: 400px; overflow-y: auto; }
.gs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.gs-row:last-child { border-bottom: 0; }
.gs-row:hover { background: var(--paper); }
.gs-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.gs-main .qno { flex: none; }
.gs-meta { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12px; white-space: nowrap; }
.gs-dl { text-decoration: none; font-size: 15px; }
.gs-empty { padding: 18px 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* main content wrap for topbar + main */
.main-wrap { display: flex; flex-direction: column; min-height: 100vh; overflow-y: auto; flex: 1; }

/* ============ Cheques issued — teal theme ============ */
.pill.chq-pending  { background:#E1F5EE; color:#0F6E56; }
.pill.chq-cleared  { background:#EAF3DE; color:#3B6D11; }
.pill.chq-returned { background:#FAECE7; color:#993C1D; }
.pill.chq-cancelled{ background:#F3F4F6; color:#5F5E5A; }

.stat.chq-stat-pending  { border-left:3px solid #1D9E75; }
.stat.chq-stat-cleared  { border-left:3px solid #639922; }
.stat.chq-stat-returned { border-left:3px solid #D85A30; }
.stat.chq-stat-pending .v  { color:#0F6E56; }
.stat.chq-stat-cleared .v  { color:#3B6D11; }
.stat.chq-stat-returned .v { color:#993C1D; }

/* delivery status badge on enquiries list */
.delivery-pending { color:var(--gold); font-size:10.5px; font-weight:600; margin-top:3px; }
.delivery-done    { color:var(--ok);   font-size:10.5px; font-weight:600; margin-top:3px; }

/* pending cheque row highlight */
#chqlist tr[style*="background:#E8F8F3"]:hover td { background: #D4F2E8; }
