:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #2c3844;
  --muted: #7d8b99;
  --line: #e7ebf0;
  --line-strong: #dbe1e8;
  --sidebar: #1c2330;
  --gold: #8d7040;
  --gold-deep: #74592e;
  --gold-soft: #f7f3eb;
  --blue-soft: #eef3f8;
  --green: #2f7d57;
  --green-soft: #e8f6ef;
  --amber: #8a6232;
  --amber-soft: #fbf3e6;
  --red: #9a4a4a;
  --red-soft: #fdeeee;
  --violet: #5d5678;
  --violet-soft: #f3f1f7;
  --shadow: 0 8px 24px rgba(36, 49, 64, 0.04);
  --radius: 12px;
  --sidebar-w: 228px;
  --topbar-h: 58px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --table-head: #f3ead8;
  --table-head-text: #5c4a2e;
  --table-head-line: #e0cda8;
  --table-row: #ffffff;
  --table-row-alt: #fcfaf6;
  --table-hover: #f7f1e6;
  --table-foot: #f3eadc;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
button { cursor: pointer; }

.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid #151b26;
  color: #e7ebf0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  transition: transform .25s ease;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 16px 14px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand b { display: block; font-size: 13.5px; font-weight: 650; letter-spacing: .01em; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.sidebar .brand b { color: #f4f6f8; }
.sidebar .brand span { color: #9aa6b4; }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #c5ced8;
  transition: background .2s ease, color .2s ease;
}
.nav a svg { opacity: .8; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(184, 148, 90, .18); color: #e6d3b0; }
.nav a.active svg { opacity: 1; }
.nav-label {
  margin: 14px 12px 6px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7e8b9a;
}
.sidebar-foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  gap: 8px;
  align-items: center;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #e7ebf0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.sidebar-foot b { display: block; font-size: 12.5px; font-weight: 650; color: #f4f6f8; }
.sidebar-foot span { color: #9aa6b4; font-size: 11px; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.topbar h1 { margin: 0; font-size: 15px; font-weight: 650; }
.topbar p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search {
  background: #f3f5f7;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 10px;
  min-width: 220px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.search:focus { background: #fff; border-color: #e0d3bb; }
.icon-btn, .btn, .btn-ghost, .btn-gold {
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 7px 12px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.icon-btn { width: 32px; height: 32px; padding: 0; color: #617180; display: inline-grid; place-items: center; vertical-align: middle; }
.file-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: #fff; }
.vendor-head { margin: 18px 0 8px; font-size: 15px; }
.vendor-lines { table-layout: fixed; }
.vendor-lines th, .vendor-lines td { vertical-align: middle; }
.vendor-lines input:not([type="checkbox"]):not([type="hidden"]), .vendor-lines select { width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.vendor-lines input[type="checkbox"] { width: auto; min-width: 0; margin: 0; }
.vendor-lines td.num, .vendor-lines th.num { text-align: right; white-space: nowrap; }
.vendor-lines td.num input { text-align: right; }
.vendor-lines col.pick { width: 44px; }
.vendor-lines col.act { width: 88px; }
.vendor-lines col.qty { width: 88px; }
.vendor-lines col.rate { width: 120px; }
.vendor-lines col.gst { width: 88px; }
.vendor-lines col.money { width: 130px; }
.quote-list { table-layout: fixed; width: 100%; }
.quote-list col.q-no { width: 88px; }
.quote-list col.q-date { width: 120px; }
.quote-list col.money { width: 120px; }
.quote-list col.q-client { width: 110px; }
.quote-list col.q-decide { width: 220px; }
.quote-list col.q-actions { width: 140px; }
.quote-list col.act { width: 72px; }
.quote-list td,
.quote-list th { vertical-align: middle; }
.quote-list td.num, .quote-list th.num { text-align: right; white-space: nowrap; }
.quote-list .quote-no { font-weight: 650; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.master-status-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  color: #3d6a45;
  background: #e8f3ea;
  border-color: #cfe3d3;
}
.master-status-btn:hover { background: #dcecde; color: #2f5537; }
.master-status-btn.is-off {
  color: #7a4a2e;
  background: #f6ebe2;
  border-color: #e6d3c4;
}
.master-status-btn.is-off:hover { background: #f0e1d4; color: #643c24; }
.status-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.status-pill.is-on { color: #2f5537; background: #e8f3ea; }
.status-pill.is-off { color: #7a4a2e; background: #f6ebe2; }
.icon-btn.view { color: #3d6f99; background: #e8f1f8; border-color: #d3e3ef; }
.icon-btn.view:hover { color: #2a5678; background: #dceaf4; border-color: #c5d9e8; }
.icon-btn.edit { color: #3d6f99; background: #e8f1f8; border-color: #d3e3ef; }
.icon-btn.edit:hover { color: #2a5678; background: #dceaf4; border-color: #c5d9e8; }
.icon-btn.danger { color: var(--red); background: var(--red-soft); border-color: #f3d6d6; }
.icon-btn.danger:hover { color: #7d3333; background: #f8e0e0; border-color: #e8c4c4; }
.icon-btn.key { color: var(--gold-deep); background: var(--gold-soft); border-color: #e6d7bc; }
.icon-btn.key:hover { color: #5c4624; background: #f3eadb; border-color: #d9c6a4; }
.icon-btn.warn { color: var(--amber); background: var(--amber-soft); border-color: #ead9bf; }
.icon-btn.warn:hover { color: #6d4a22; background: #f6ead6; border-color: #e0c9a4; }
.field.half { grid-column: span 6; }
.field.span2 { grid-column: span 2; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perm-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.perm-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 650; }
.perm-title span { color: var(--gold-deep); }
.perm-flags { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.perm-flags label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12.5px; }
.btn:hover, .icon-btn:hover, .btn-ghost:hover { background: #f7f8fa; }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-deep); }
.menu-toggle { display: none; }

.content { padding: 18px 22px 32px; }
.grid-8, .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { padding: 14px 14px 12px; display: block; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.stat:hover { border-color: #ddd4c4; transform: translateY(-1px); }
.stat em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.stat strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 2px; font-size: 11.5px; color: #8b97a3; }
.stat.gold { background: linear-gradient(160deg, #fffdf8 0%, var(--gold-soft) 100%); border-color: #e4d5b8; }
.stat.gold strong { color: var(--gold-deep); }
.stat.green { background: linear-gradient(160deg, #f7fcf9 0%, var(--green-soft) 100%); border-color: #c5e4d3; }
.stat.green strong { color: var(--green); }
.stat.red { background: linear-gradient(160deg, #fff8f8 0%, var(--red-soft) 100%); border-color: #efcfcf; }
.stat.red strong { color: var(--red); }
.stat.amber { background: linear-gradient(160deg, #fffbf4 0%, var(--amber-soft) 100%); border-color: #eed9b8; }
.stat.amber strong { color: var(--amber); }
.stat.blue { background: linear-gradient(160deg, #f8fbfe 0%, var(--blue-soft) 100%); border-color: #cfdceb; }
.stat.blue strong { color: #3d5f7a; }
.stat.violet { background: linear-gradient(160deg, #fbfafd 0%, var(--violet-soft) 100%); border-color: #ddd7e8; }
.stat.violet strong { color: var(--violet); }
.stat.teal { background: linear-gradient(160deg, #f5fbfb 0%, #e6f4f3 100%); border-color: #c5e0dd; }
.stat.teal strong { color: #2f6f6a; }
.client-feedback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f3f0ea;
  border: 1px solid #e4d5b8;
}
.client-feedback label { color: #6d572e; font-weight: 650; }
.quote-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e4d5b8;
  border-radius: 12px;
  background: #fffdf8;
}
.boq-stage-row,
.quote-issue-row,
.quote-follow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.boq-stage-row {
  margin-bottom: 8px;
}
.boq-stage-row .quote-mini {
  min-width: 180px;
}
.quote-follow-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee3d0; }
.quote-status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.2;
  border: 1px solid transparent;
}
.quote-status-pill.is-waiting {
  color: #6d4a22;
  background: var(--amber-soft);
  border-color: #ead9bf;
}
.quote-status-pill.is-approved {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c5e4d3;
}
.quote-status-pill.is-repricing {
  color: #3d5f7a;
  background: var(--blue-soft);
  border-color: #cfdceb;
}
.quote-inline-client {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.quote-inline-client select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  height: 32px;
  width: 112px;
  font-size: 12.5px;
  box-sizing: border-box;
}
.quote-inline-client .btn-gold,
.quote-view-btn,
.quote-action-btn {
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}
.quote-action-del {
  color: var(--red);
  border-color: #f3d6d6;
  background: var(--red-soft);
}
.quote-action-del:hover {
  color: #7d3333;
  background: #f8e0e0;
  border-color: #e8c4c4;
}
.quote-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.quote-row-actions form { margin: 0; }
.quote-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  min-width: 110px;
}
.quote-mini input,
.quote-mini select,
.quote-follow-row select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  min-height: 34px;
}
.quote-status {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #6d572e;
  align-self: center;
}
.quote-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.report-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.report-split.three { grid-template-columns: repeat(3, 1fr); }
.report-split.four,
.report-split.four.mis-track-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.mis-track-cards .card.pad { padding: 10px 12px; }
.mis-track-cards h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
}
.mis-track-cards .mis-sub {
  margin: 8px 0 4px;
  font-size: 11px;
}
.mis-track-cards .table-scroll {
  margin-bottom: 0;
  overflow: visible;
}
.mis-track-cards .report-table { font-size: 12px; background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.06); }
.mis-track-cards .report-table th,
.mis-track-cards .report-table td {
  padding: 5px 6px;
}
.mis-track-cards .report-table thead th {
  background: rgba(255,255,255,.55);
  color: inherit;
  border-bottom-color: rgba(0,0,0,.08);
}
.mis-track-cards .tone-boq .report-table thead th { color: var(--gold-deep); }
.mis-track-cards .tone-drawing .report-table thead th { color: #3d5f7a; }
.mis-track-cards .tone-sample .report-table thead th { color: var(--green); }
.mis-track-cards .tone-cutout .report-table thead th { color: var(--violet); }
.mis-track-cards .report-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.35); }
.mis-track-cards .report-table tbody tr:hover td { background: rgba(255,255,255,.7); }
.tone-boq {
  background: linear-gradient(165deg, #fffdf8 0%, #f3ead8 100%);
  border-color: #e0cda8;
}
.tone-boq h2 { color: var(--gold-deep); }
.tone-drawing {
  background: linear-gradient(165deg, #f8fbfe 0%, #e4eef7 100%);
  border-color: #bfd0e2;
}
.tone-drawing h2 { color: #3d5f7a; }
.tone-sample {
  background: linear-gradient(165deg, #f7fcf9 0%, #dcefe6 100%);
  border-color: #b5d9c6;
}
.tone-sample h2 { color: var(--green); }
.tone-cutout {
  background: linear-gradient(165deg, #fbfafd 0%, #ebe6f4 100%);
  border-color: #cfc6e0;
}
.tone-cutout h2 { color: var(--violet); }
.tone-status {
  background: linear-gradient(165deg, #f8fbfe 0%, #e8f0f7 100%);
  border-color: #c5d6e6;
}
.tone-status h2 { color: #3d5f7a; }
.tone-source {
  background: linear-gradient(165deg, #fffdf8 0%, #f3ead8 100%);
  border-color: #e0cda8;
}
.tone-source h2 { color: var(--gold-deep); }
.tone-temp {
  background: linear-gradient(165deg, #fff8f8 0%, #f8e4e4 100%);
  border-color: #e8c4c4;
}
.tone-temp h2 { color: var(--red); }
.sample-lines-edit td.sample-line-action {
  white-space: nowrap;
  vertical-align: middle;
}
.sample-lines-edit td.sample-line-action .icon-btn {
  margin: 0 2px 0 0;
  display: inline-grid;
  vertical-align: middle;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.sample-lines-edit td.sample-line-action .sample-add-row,
.sample-add-action .sample-add-row {
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-color: #e6d7bc;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.sample-lines-edit td.sample-line-action .sample-add-row:hover,
.sample-add-action .sample-add-row:hover {
  color: #5c4624;
  background: #f3eadb;
  border-color: #d9c6a4;
}
.sample-add-line-fields .sample-add-action {
  justify-content: flex-end;
  max-width: 56px;
}
.sample-add-line-fields .sample-add-action label {
  visibility: hidden;
}
.sample-lines-edit select,
.sample-lines-edit input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}
.sample-lines-edit td.num input { text-align: right; }
.mis-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.mis-kpi-grid .stat { padding: 10px 10px 8px; }
.mis-kpi-grid .stat strong { font-size: 18px; margin-top: 2px; }
.mis-kpi-grid .stat em { font-size: 11px; line-height: 1.3; }
@media (max-width: 1100px) {
  .mis-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .mis-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.report-tabs { flex-wrap: wrap; gap: 4px; }
.report-tabs a { white-space: nowrap; }
@media (max-width: 1100px) {
  .report-split.four,
  .report-split.four.mis-track-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .report-split.four,
  .report-split.four.mis-track-cards { grid-template-columns: 1fr; }
}
.report-table th.num, .report-table td.num { text-align: right; white-space: nowrap; }
.report-table { border: 1px solid var(--table-head-line); border-radius: 10px; overflow: hidden; }
.report-table thead th {
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  color: var(--table-head-text);
  border-bottom: 1px solid var(--table-head-line);
}
.report-table tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.report-table tbody tr:hover td { background: var(--table-hover); }
.report-table tfoot td {
  font-weight: 650;
  background: var(--table-foot);
  color: var(--gold-deep);
  border-top: 1px solid var(--table-head-line);
}

.section { margin-top: 14px; }
.section > .section-head {
  padding: 0 0 8px;
  border-bottom: 0;
  margin-bottom: 8px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; font-size: 13.5px; font-weight: 650; }
.section-head span, .muted { color: var(--muted); }
.card.pad { padding: 14px 16px; }
.dash-kpi { margin-bottom: 4px; }
.dash-mini { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-grid.two { grid-template-columns: 1fr 2fr; }
.dash-workflow { font-size: 12px; }
.dash-workflow th, .dash-workflow td { padding: 8px 10px; }
th.num, td.num { text-align: right; white-space: nowrap; }
@media (max-width: 1100px) {
  .dash-grid, .dash-grid.two { grid-template-columns: 1fr; }
}
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.chip {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: #526170;
  font-size: 12px;
}
.chip b { color: var(--ink); font-weight: 650; }
button.chip { font: inherit; cursor: pointer; }

table { width: 100%; border-collapse: collapse; background: var(--table-row); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eadfce; vertical-align: middle; }
th {
  font-size: 11px;
  font-weight: 650;
  color: var(--table-head-text);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  border-bottom: 1px solid var(--table-head-line);
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:nth-child(even) td { background: var(--table-row-alt); }
tbody tr:hover,
tbody tr:hover td { background: var(--table-hover); }
tbody td { background: var(--table-row); }
.card > table,
.card .table-scroll > table,
.pad > table {
  border: 1px solid var(--table-head-line);
  border-radius: 10px;
  overflow: hidden;
}
.who { display: flex; flex-direction: column; }
.who b { font-weight: 650; }
.who span, .sub { color: var(--muted); font-size: 11.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11.5px;
  background: var(--blue-soft);
  color: #4c6172;
  white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: var(--gold-deep); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.plain { background: #f3f5f7; color: #667584; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select, .field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filters select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: #ddcfb4;
  box-shadow: 0 0 0 3px rgba(141, 112, 64, .08);
}
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }

.lead-head { padding: 14px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.kicker { color: var(--gold-deep); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.lead-head h2 { margin: 2px 0 4px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 14px; }
.step {
  font-size: 11.5px;
  color: #8b97a3;
  background: #f6f7f9;
  border-radius: 999px;
  padding: 4px 8px;
}
.step.done { background: var(--green-soft); color: var(--green); }
.step.now { background: var(--gold-soft); color: var(--gold-deep); }

.tabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  border: 0;
  background: transparent;
  color: #70808e;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}
.tabs button.active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.tabs.portal a {
  color: #70808e;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs.portal a.active { color: #1d5f99; border-bottom-color: #1d5f99; }
.panel h3 { margin: 16px 0 8px; font-size: 13px; font-weight: 650; }
.dt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dt-search { width: 220px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; background: #fff; }
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: var(--muted); font-size: 12px; }
.dt-length { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-left: 12px; }
.dt-length select { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--ink); }
.dt-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.dt-page { border: 1px solid var(--table-head-line); background: #fff; border-radius: 8px; min-width: 32px; height: 28px; padding: 0 8px; color: var(--gold-deep); }
.dt-page.on { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.dt-page:disabled { opacity: .45; }
.lead-list .dt-bar,
.lead-list .dt-foot {
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  color: var(--table-head-text);
  border-color: var(--table-head-line);
}
.lead-list thead th {
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  color: var(--table-head-text);
  border-bottom-color: var(--table-head-line);
}
.lead-list tbody td { background: var(--table-row); }
.lead-list tbody tr.alt td { background: var(--table-row-alt); }
.lead-list tbody tr:hover td { background: var(--table-hover); }
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pay-sum div { background: linear-gradient(160deg, #fffdf8 0%, var(--gold-soft) 100%); border: 1px solid #e4d5b8; border-radius: 10px; padding: 10px 12px; }
.pay-sum em { display: block; color: var(--muted); font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pay-sum b { font-size: 16px; }
.action-tiles { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px 4px; }
.action-tile {
  min-width: 148px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 650;
  border: 1px solid transparent;
}
.action-tile.wa { background: #e7f6ec; color: #1e7a45; border-color: #b7e0c6; }
.action-tile.mail { background: #e7f1fb; color: #1d5f99; border-color: #c5daf0; }
.action-tile.confirm { background: #fff6df; color: #8a6232; border-color: #f0ddb0; }
.action-tile.convert { background: #f7f3eb; color: #74592e; border-color: #e6d7bf; }
.qa { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; font-weight: 650; text-align: center; }
.qa.assign { background: #3b6fd8; }
.qa.follow { background: #2f7d57; }
.qa.boq { background: #3aa0b8; }
.qa.quote { background: #c4a15a; color: #3d3424; }
.panel { display: none; padding: 14px; }
.panel.active { display: block; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.pad { padding: 14px; }
.pad h3 { margin: 0 0 10px; font-size: 13px; font-weight: 650; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; }
.kv span { color: var(--muted); }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.track { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.track em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.track b { display: block; margin: 4px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding-bottom: 12px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 5px;
  background: #d5dbe2; box-shadow: 0 0 0 4px #f4f6f8;
}
.dot.on { background: var(--gold); }
.dot.ok { background: var(--green); }
.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; grid-column: span 4; min-width: 0; }
.field.full { grid-column: span 12; }
.boq-spec-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}
.boq-spec-row .field { grid-column: auto; }
.boq-add-action {
  justify-content: flex-end;
  min-width: 36px;
}
.boq-add-btn {
  width: 34px;
  height: 34px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
#boq-line-form {
  margin-bottom: 22px;
}
#boq-line-form .fields {
  gap: 14px;
}
.fields-3 .field { grid-column: span 4; }
.fields-3 .field.full { grid-column: span 12; }
.fields-4 .field { grid-column: span 3; }
.fields-4 .field.full { grid-column: span 12; }
.fields-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fields-5 .field { grid-column: span 1; }
.fields-5 .field.full { grid-column: 1 / -1; }
.cutout-page { display: flex; flex-direction: column; gap: 14px; }
.cutout-intro { margin: 0 0 2px; }
.cutout-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid #d9c49a;
  border-radius: 10px;
  background: #f7efdf;
  color: var(--ink);
  font-size: 13px;
}
.cutout-edit-banner .btn { flex-shrink: 0; }
.master-table tr.is-editing td { background: #f7efdf; }
.cutout-card {
  border: 1px solid #e4d5b8;
  border-radius: 12px;
  background: #fffdf8;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 0 rgba(92, 70, 36, .04);
}
.cutout-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efe4d0;
}
.cutout-card-head h3 {
  margin: 0 !important;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.cutout-card-hint { color: var(--muted); font-size: 11.5px; }
.cutout-header-row2 { margin-top: 10px; }
.cutout-line-fields { align-items: start; margin-top: 0; }
.cutout-add-actions { justify-content: flex-start; padding-top: 18px; }
.cutout-add-actions .btn-row { align-items: center; margin: 0; }
.cutout-lines-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cutout-lines-table .master-table { margin: 0; }
.cutout-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #efe4d0;
}
.cutout-saved-card { margin-top: 4px; }
.fields.stack { grid-template-columns: 1fr; }
.fields.stack .field { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 11.5px; }
.field .hint { margin: 0; color: var(--muted); font-size: 11.5px; }
.more-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; background: #fafbfc; }
.more-box summary { cursor: pointer; font-weight: 650; list-style: none; }
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary::before { content: '▸ '; color: var(--gold-deep); }
.more-box[open] summary::before { content: '▾ '; }
.more-box:not([open]) .fields,
.more-box:not([open]) .fold-body { display: none; }
.more-box .fields,
.more-box .fold-body { margin-top: 10px; }
.more-box.gold-fold { background: #fffdf8; border-color: #e4d5b8; }
.table-scroll { overflow-x: auto; }
.dt-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.master-table thead th {
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  color: var(--table-head-text);
  border-bottom-color: var(--table-head-line);
}
.master-table tbody td { background: var(--table-row); }
.master-table tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.master-table tbody tr:hover td { background: var(--table-hover); }
.vendor-lines thead th,
.quote-list thead th,
.boq-sheet thead th,
.dash-workflow thead th {
  background: linear-gradient(180deg, #f7f0e4 0%, var(--table-head) 100%);
  color: var(--table-head-text);
  border-bottom-color: var(--table-head-line);
}
.vendor-lines tbody tr:nth-child(even) td,
.quote-list tbody tr:nth-child(even) td,
.boq-sheet tbody tr:nth-child(even) td,
.dash-workflow tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.vendor-lines tbody tr:hover td,
.quote-list tbody tr:hover td,
.boq-sheet tbody tr:hover td,
.dash-workflow tbody tr:hover td { background: var(--table-hover); }
.boq-sheet { min-width: 1560px; }
.boq-sheet th, .boq-sheet td { font-size: 12px; vertical-align: top; }
.boq-sheet td.wrap { white-space: normal; min-width: 220px; max-width: 340px; }
.boq-sheet img { height: 40px; width: 40px; object-fit: cover; border-radius: 4px; display: block; }
.boq-foot { max-width: 360px; margin: 12px 0 12px auto; }
.boq-foot td:last-child { text-align: right; }
.boq-print { display: none; }
.boq-print-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.boq-print-bar h3 { margin: 0; font-size: 13px; font-weight: 650; }
.field textarea { min-height: 78px; resize: vertical; }
.note {
  background: var(--gold-soft);
  color: #6d572e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
}
.file {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.file:last-child { border-bottom: 0; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 400px at 10% -10%, #f7f1e6 0%, transparent 55%),
    var(--bg);
}
.login-card { width: min(420px, 100%); padding: 28px 26px 22px; }
.login-card h1 { margin: 12px 0 4px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.login-card .lead { color: var(--muted); margin: 0 0 18px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card button { margin-top: 6px; padding: 9px 12px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 12px; }
.fine a { color: var(--gold-deep); }
.errors { background: #fdecec; color: #8a2b2b; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 0 0 10px; }
.errors ul { margin: 0; padding-left: 16px; }
select, textarea, input { font: inherit; }

.doc { max-width: 860px; margin: 0 auto; padding: 28px 18px 48px; }
.doc-sheet { padding: 32px 36px; }
.doc h1 { font-size: 26px; letter-spacing: -.03em; margin: 8px 0 6px; font-weight: 650; }
.doc h2 { font-size: 15px; margin: 22px 0 8px; font-weight: 650; }
.doc p, .doc li { color: #465564; }
.doc ul, .doc ol { margin: 6px 0 0; padding-left: 18px; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flow i {
  font-style: normal;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: #526170;
}
.doc table { margin-top: 8px; }
.doc td, .doc th { font-size: 12.5px; }
.cover-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pill { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 64, .28);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 30;
}
.modal[hidden] { display: none !important; }
.modal.open { display: flex; }
.modal .card { width: min(760px, 100%); padding: 16px; }
.modal h2 { margin: 0; font-size: 15px; }
.modal.master-modal { overflow: auto; align-items: flex-start; }
.modal.master-modal .card { width: min(980px, 100%); max-height: calc(100vh - 36px); overflow: auto; margin: 18px auto; }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head { margin-bottom: 12px; }
.modal-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.modal-head-actions .quote-mail-form {
  margin: 0;
  display: inline-flex;
}
.modal-actions { justify-content: flex-end; margin-top: 12px; }
.row-done { opacity: .45; }
.row-done .btn { pointer-events: none; }

@media (max-width: 1100px) {
  .grid-8, .cards, .track-grid { grid-template-columns: 1fr 1fr; }
  .split, .report-split { grid-template-columns: 1fr; }
  .field { grid-column: span 6; }
  .field.full { grid-column: span 12; }
  .fields-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields-5 .field { grid-column: span 1; }
  .boq-spec-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .main { margin-left: 0; }
  .search { display: none; }
  .cards, .grid-8, .fields, .track-grid { grid-template-columns: 1fr; }
  .boq-spec-row { grid-template-columns: 1fr; }
  .fields-5 { grid-template-columns: 1fr; }
  .field, .field.full, .field.half, .field.span2 { grid-column: 1 / -1; }
  .perm-grid { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .doc-sheet { padding: 22px 16px; }
}
@media print {
  body { background: #fff; }
  .doc { max-width: none; padding: 0; }
  .doc-sheet { box-shadow: none; border: 0; }
  .no-print { display: none; }
  a { color: inherit; }
  body.print-boq .sidebar,
  body.print-boq .topbar,
  body.print-boq .lead-head,
  body.print-boq .action-tiles,
  body.print-boq .tabs,
  body.print-boq .callout { display: none !important; }
  body.print-boq .main { margin-left: 0 !important; }
  body.print-boq .content,
  body.print-boq .panel.active { padding: 0 !important; }
  body.print-boq .card { border: 0; box-shadow: none; background: #fff; }
  body.print-boq .boq-print { display: block; color: #1c2330; }
  body.print-boq .boq-print-cover {
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-boq .boq-print-cover img {
    width: 100%;
    height: auto;
    max-height: 175mm;
    object-fit: contain;
    object-position: center top;
    display: block;
  }
  body.print-boq .boq-print-body { background: #fff; }
  body.print-boq .boq-print-end { break-inside: avoid; page-break-inside: avoid; }
  body.print-boq .boq-print-foot {
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }
  body.print-boq .boq-print-foot img {
    width: 100%;
    height: auto;
    max-height: 175mm;
    object-fit: contain;
    object-position: center center;
    display: block;
  }
  body.print-boq .boq-print h2 { margin: 0 0 4px; font-size: 16px; }
  body.print-boq .boq-print-meta { margin: 0 0 8px; font-size: 11px; }
  body.print-boq .boq-print table { width: 100%; border-collapse: collapse; }
  body.print-boq .boq-print th,
  body.print-boq .boq-print td { border: 1px solid #c5ced6; padding: 3px 4px; font-size: 8px; vertical-align: top; word-wrap: break-word; }
  body.print-boq .boq-print th { background: #e7edf3; text-align: left; }
  body.print-boq .boq-print thead { display: table-header-group; }
  body.print-boq .boq-print tbody tr,
  body.print-boq .boq-print .totals,
  body.print-boq .boq-print .notes { break-inside: avoid; page-break-inside: avoid; }
  body.print-boq .boq-print td.num { text-align: right; white-space: nowrap; }
  body.print-boq.print-norate .boq-rate { display: none !important; }
  body.print-boq.print-working .issued-sheet-print,
  body.print-boq.print-working #quote-view-modal { display: none !important; }
  body.print-boq.print-issued .working-sheet-print { display: none !important; }
  body.print-boq.print-issued #quote-view-modal {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.print-boq.print-issued #quote-view-modal .card {
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.print-boq.print-issued #quote-view-modal .modal-head,
  body.print-boq.print-issued #quote-view-modal .no-print { display: none !important; }
  body.print-boq.print-issued #quote-view-modal .issued-sheet-print,
  body.print-boq.print-issued #quote-view-modal .boq-print { display: block !important; }
  body.print-boq .boq-print img.line { width: 28px; height: 28px; object-fit: cover; }
  body.print-boq .boq-print .totals { width: 220px; margin: 8px 0 0 auto; }
  body.print-boq .boq-print .notes { margin: 8px 0 0; font-size: 11px; white-space: pre-wrap; }
  body.print-boq { page: boq-sheet; }
}
@page boq-sheet { size: A4 landscape; margin: 8mm; }

.stage-settings td { vertical-align: top; }
.stage-settings select[multiple] { min-width: 150px; max-width: 200px; font-size: 12px; }
.stage-settings input[type=text], .stage-settings textarea { width: 200px; font-size: 12px; }
button:disabled { opacity: .55; cursor: default; }
.topbar select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 10px;
}
.callout {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #6d572e;
  font-size: 12.5px;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.step-card.now { border-color: #e4d5b8; background: #fffdf8; }
.step-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.step-top b { font-size: 13px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
fieldset.fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.toast {
  position: fixed;
  left: 50%;
  top: 70px;
  background: #1c2330;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  max-width: 320px;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.linkish { color: var(--gold-deep); }
.content .search { display: inline-block; width: min(220px, 100%); min-width: 0; }

.challan-page { margin: 0; background: #efe6c8; color: #111; font-family: Arial, Helvetica, sans-serif; }
.challan-toolbar { max-width: 920px; margin: 16px auto; display: flex; gap: 8px; }
.challan-page .challan-sheet {
  display: block;
  max-width: 920px;
  margin: 0 auto 28px;
  background: #fff;
  border: 10px solid #e0b43a;
  box-sizing: border-box;
}
.challan-page .challan-banner {
  position: relative;
  background: #111;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.challan-page .challan-logo {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 132px;
}
.challan-page .challan-logo img { width: 132px; height: auto; display: block; }
.challan-page .challan-co {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 150px 10px;
  text-align: center;
}
.challan-page .challan-name { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.challan-page .challan-addr,
.challan-page .challan-gst { color: #f3c94b; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.challan-page .challan-title {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 2px solid #e0b43a;
  color: #f3c94b;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
}
.challan-page .challan-meta,
.challan-page .challan-lines { width: 100%; border-collapse: collapse; background: #fff; }
.challan-page .challan-meta th,
.challan-page .challan-meta td,
.challan-page .challan-lines th,
.challan-page .challan-lines td {
  border: 1px solid #d9d0bc;
  padding: 7px 10px;
  font-size: 13px;
  vertical-align: middle;
}
.challan-page .challan-meta th {
  width: 18%;
  text-align: left;
  font-weight: 700;
  background: #f6efe2;
  white-space: nowrap;
}
.challan-page .challan-lines th {
  background: #f6efe2;
  text-align: center;
  font-weight: 700;
}
.challan-page .challan-lines td:nth-child(1),
.challan-page .challan-lines td:nth-child(3),
.challan-page .challan-lines td:nth-child(4),
.challan-page .challan-lines td:nth-child(5) { text-align: center; }
.challan-page .challan-signs { padding: 28px 16px 16px; font-size: 13px; line-height: 1.8; }
.challan-page .challan-signs p { margin: 0; }
@media print {
  .challan-page { background: #fff; }
  .challan-toolbar { display: none !important; }
  .challan-page .challan-banner,
  .challan-page .challan-title {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
