/* ═══════════════════════════════════════════════════════════════════
   Tempcontrolled Quick Quote — Consolidated Styles
   Source: web_form_handler.py (3 CSS blocks merged)

   Structure:
     1. CSS Variables & Reset
     2. Base Layout (Internal Tool — primary theme)
     3. Form Styles
     4. Button System
     5. Results Display
     6. Toast Notifications
     7. History Table
     8. Tab Navigation
     9. Manual Quote: Line Items
    10. Packaging Configurator
    11. Project Quote: Location Matrix
    12. Customer Quote Modal & Brand Styles
    13. SOP Sections
    14. Unit Toggle
    15. Print Styles (Internal Tool)
    16. body.login-page overrides
    17. body.quote-page overrides
   ═══════════════════════════════════════════════════════════════════ */


/* ── 1. CSS Variables & Reset ──────────────────────────────────── */

:root {
  --blue: #5d9cc8;
  --blue-light: #e8f1f8;
  --green: #16a34a;
  --green-light: #dcfce7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --red: #dc2626;
  --dark-blue: #253462;
}
* { box-sizing: border-box; margin: 0; padding: 0; }


/* ── 2. Base Layout ────────────────────────────────────────────── */

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
}
.header {
  background: var(--blue);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 { font-size: 20px; font-weight: 600; }
.header .subtitle { font-size: 13px; opacity: 0.8; }
.header .logout-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.header .logout-btn:hover { background: rgba(255,255,255,0.25); }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }


/* ── 3. Form Styles ────────────────────────────────────────────── */

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(93,156,200,0.15);
}
.form-group textarea { resize: vertical; min-height: 60px; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-weight: 600;
  grid-column: 1 / -1;
  margin-top: 8px;
}


/* ── 4. Button System ──────────────────────────────────────────── */

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: white;
  width: 100%;
  margin-top: 16px;
  font-size: 16px;
  padding: 12px;
}
.btn-primary:hover { background: #4a89b5; }
.btn-primary:disabled { background: var(--gray-300); cursor: not-allowed; }
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-green {
  background: var(--green);
  color: white;
}
.btn-green:hover { background: #15803d; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn-row .btn { flex: 1; min-width: 140px; text-align: center; padding: 12px 24px; font-size: 14px; margin-top: 0; }


/* ── 5. Results Display ────────────────────────────────────────── */

#results { display: none; }
#results.visible { display: block; }

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.result-header .total {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
}
.result-header .markup {
  font-size: 14px;
  color: var(--gray-500);
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.line-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.line-items-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--gray-100);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.line-items-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.line-items-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.line-items-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--gray-300);
  padding-top: 10px;
}

.assumptions-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.assumptions-list li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--gray-500);
}
.assumptions-list li::before {
  content: "\2022";
  color: var(--gray-300);
  margin-right: 8px;
}


/* ── 6. Toast Notifications ────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-900);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; }


/* ── 7. History Table ──────────────────────────────────────────── */

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.history-table th {
  text-align: left;
  padding: 8px;
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-500);
  font-size: 11px;
  text-transform: uppercase;
}
.history-table td {
  padding: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--gray-500);
  font-size: 14px;
}

/* Expandable history rows */
.history-table tr.clickable { cursor: pointer; }
.history-table tr.clickable:hover { background: var(--gray-50); }
.history-table tr.clickable td:first-child::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.15s;
}
.history-table tr.clickable.open td:first-child::before {
  transform: rotate(90deg);
}
.detail-row { display: none; }
.detail-row.open { display: table-row; }
.detail-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--gray-200) !important;
}
.detail-inner {
  padding: 12px 16px;
  background: var(--gray-50);
  font-size: 13px;
}
.detail-inner .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .detail-inner .detail-grid { grid-template-columns: 1fr; }
}
.detail-inner .detail-section { margin-bottom: 8px; }
.detail-inner .detail-section-title {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.detail-inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.detail-inner table th {
  text-align: left;
  padding: 4px 8px;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 11px;
  border-bottom: 1px solid var(--gray-200);
}
.detail-inner table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.detail-inner .number { text-align: right; font-variant-numeric: tabular-nums; }
.detail-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.detail-actions .btn {
  padding: 6px 14px;
  font-size: 13px;
  width: auto;
  margin-top: 0;
}


/* ── 8. Tab Navigation ─────────────────────────────────────────── */

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 24px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--gray-700); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tab-content { display: none; }
.tab-content.active { display: block; }


/* ── 9. Manual Quote: Line Items Table ─────────────────────────── */

.manual-line-items {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.manual-line-items th {
  text-align: left;
  padding: 8px 10px;
  background: var(--gray-100);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.manual-line-items th.number,
.manual-line-items td.number { text-align: right; }
.manual-line-items td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.manual-line-items input[type="number"],
.manual-line-items input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.manual-line-items input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
.manual-line-items input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(93,156,200,0.15);
}
.manual-line-items .calc-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--gray-700);
  font-weight: 500;
}
.manual-line-items tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--gray-300);
  padding-top: 10px;
  font-variant-numeric: tabular-nums;
}

.markup-display {
  display: inline-block;
  padding: 4px 10px;
  background: var(--blue-light);
  border-radius: 4px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}


/* ── 10. Packaging Configurator ────────────────────────────────── */

.pkg-bom { width: 100%; border-collapse: collapse; font-size: 14px; font-family: inherit; }
.pkg-bom th { text-align: left; padding: 6px 8px; border-bottom: 2px solid var(--gray-200); font-size: 12px; color: var(--gray-500); text-transform: uppercase; font-weight: 600; }
.pkg-bom td { padding: 6px 8px; border-bottom: 1px solid var(--gray-100); }
.pkg-bom .number { text-align: right; font-variant-numeric: tabular-nums; }
.pkg-bom tfoot td { font-weight: 700; border-top: 2px solid var(--gray-300); }
.pkg-summary { background: var(--blue-light); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--dark-blue); }
.pkg-summary strong { font-weight: 700; }
#pkg_results { display: none; }

.suggest-btn {
  padding: 4px 12px;
  font-size: 12px;
  background: var(--gray-100);
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.15s;
}
.suggest-btn:hover { background: var(--blue-light); }


/* ── 11. Project Quote: Location Matrix ────────────────────────── */

.matrix-wrapper {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}
.matrix-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 100%;
}
.matrix-table th,
.matrix-table td {
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
  vertical-align: middle;
}
.matrix-table thead th {
  background: var(--gray-100);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-500);
  position: sticky;
  top: 0;
  z-index: 2;
}
.matrix-table .label-col {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-700);
  min-width: 160px;
  border-right: 2px solid var(--gray-300);
}
.matrix-table thead .label-col {
  z-index: 3;
  background: var(--gray-100);
}
.matrix-table input {
  width: 100px;
  padding: 4px 6px;
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.matrix-table input[type="number"] { text-align: right; width: 90px; }
.matrix-table input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(93,156,200,0.15);
}
.matrix-table select {
  padding: 4px 6px;
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  width: 100px;
}
.matrix-table .section-row td {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 4px 10px;
}
.matrix-table .total-row td {
  font-weight: 700;
  border-top: 2px solid var(--gray-300);
  background: var(--gray-50);
  font-variant-numeric: tabular-nums;
}
.matrix-table .remove-loc-btn {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 3px;
}
.matrix-table .remove-loc-btn:hover { background: #fef2f2; }

.grand-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}
.grand-total-item {
  text-align: center;
}
.grand-total-item .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.grand-total-item .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}
.grand-total-item .value.green { color: var(--green); }


/* ── 12. Customer Quote Modal & Brand Styles ───────────────────── */

.quote-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow-y: auto;
  padding: 24px;
}
.quote-modal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }
.quote-modal {
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.quote-modal-actions {
  display: flex;
  gap: 8px;
  padding: 16px 40px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  justify-content: flex-end;
}

/* Brand-styled customer quote content */
.cq-header {
  background: #253462;
  color: white;
  padding: 32px 40px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.cq-header .brand-name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cq-header .tagline {
  font-size: 13px;
  color: #b4d7f5;
  margin-top: 4px;
  font-weight: 400;
}
.cq-body {
  padding: 32px 40px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #949698;
  line-height: 1.6;
}
.cq-body .quote-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #253462;
  margin-bottom: 16px;
}
.cq-body .meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 14px;
}
.cq-body .meta-label { font-weight: 600; color: #253462; }
.cq-body .section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #253462;
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #5d9cc8;
}
.cq-body .cq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.cq-body .cq-table th {
  text-align: left;
  padding: 8px 12px;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: #253462;
  border-bottom: 2px solid #e3e3e3;
}
.cq-body .cq-table th.amount { text-align: right; }
.cq-body .cq-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 14px;
  color: #949698;
}
.cq-body .cq-table td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: #253462;
}
.cq-body .cq-table tfoot td {
  font-weight: 700;
  font-size: 16px;
  color: #253462;
  border-top: 2px solid #253462;
  padding-top: 12px;
}
.cq-body .assumptions-text {
  margin-top: 20px;
  font-size: 12px;
  color: #949698;
}
.cq-body .assumptions-text li {
  margin-bottom: 2px;
}
.cq-footer {
  padding: 16px 40px;
  background: #253462;
  color: #b4d7f5;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  text-align: center;
}
.cq-footer a { color: #b4d7f5; }

/* Project customer view: location cards */
.cq-body .loc-card {
  margin-bottom: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  overflow: hidden;
}
.cq-body .loc-card-header {
  background: #f8f9fa;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  color: #253462;
  border-bottom: 1px solid #e3e3e3;
  display: flex;
  justify-content: space-between;
}


/* ── 13. SOP Sections ──────────────────────────────────────────── */

.sop-wrapper { margin-top: 8px; }
.sop-section { margin-top: 20px; page-break-inside: avoid; padding: 0 40px; }
.sop-section-title { font-size: 14px; font-weight: 700; color: #253462; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #5d9cc8; padding-bottom: 4px; margin-bottom: 10px; }
.sop-detail { font-size: 13px; color: #333; line-height: 1.6; margin-bottom: 6px; }
.sop-detail .sop-label { font-weight: 600; color: #253462; }
.sop-steps { list-style: none; padding-left: 0; margin: 8px 0; counter-reset: sopstep; }
.sop-steps li { counter-increment: sopstep; font-size: 13px; line-height: 1.6; padding: 3px 0; }
.sop-steps li::before { content: counter(sopstep) '. '; font-weight: 600; color: #5d9cc8; }
.sop-checklist { list-style: none; padding-left: 0; margin: 8px 0; }
.sop-checklist li { font-size: 13px; line-height: 1.8; }
.sop-checklist li::before { content: '\2610  '; font-size: 15px; }
.sop-checklist li.required::before { content: '\2610  '; font-weight: 700; }
.sop-dg-note { background: #fff3cd; border-left: 4px solid #ffc107; padding: 8px 12px; font-size: 12px; color: #856404; margin-top: 8px; border-radius: 0 4px 4px 0; }
.sop-lane-loading { color: #888; font-style: italic; font-size: 13px; padding: 10px 0; }
.sop-lane-result { font-size: 13px; }
.sop-toggle-btn { background: none; border: 1px solid #5d9cc8; color: #5d9cc8; border-radius: 4px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-weight: 600; margin-left: 8px; }
.sop-toggle-btn:hover { background: #5d9cc8; color: white; }
.sop-divider { border: none; border-top: 2px solid #253462; margin: 24px 40px 0 40px; }


/* ── 14. Unit Toggle ───────────────────────────────────────────── */

.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.unit-toggle button {
  padding: 2px 10px;
  border: none;
  background: white;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.unit-toggle button.active {
  background: var(--blue);
  color: white;
}
.unit-toggle button:hover:not(.active) {
  background: var(--gray-100);
}


/* ── 15. Print Styles (Internal Tool) ──────────────────────────── */

@media print {
  body > *:not(.quote-modal-overlay) { display: none !important; }
  .quote-modal-overlay { position: static; padding: 0; background: none; display: block !important; }
  .quote-modal { box-shadow: none; max-width: 100%; }
  .quote-modal-actions { display: none !important; }
  .cq-header, .cq-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sop-section { page-break-inside: avoid; }
  .sop-dg-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* ═══════════════════════════════════════════════════════════════════
   16. body.login-page — Dark theme login overrides
   ═══════════════════════════════════════════════════════════════════ */

body.login-page {
  background: #0a0e17;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.login-page .login-card {
  background: #141925;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
body.login-page .login-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f1f5f9;
}
body.login-page .login-card .subtitle {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 32px;
}
body.login-page .login-card input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: #0f1219;
  border: 1px solid #2d3748;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
body.login-page .login-card input[type="password"]:focus {
  border-color: #3b82f6;
}
body.login-page .login-card button {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
body.login-page .login-card button:hover { background: #2563eb; }


/* ═══════════════════════════════════════════════════════════════════
   17. body.quote-page — Light theme quote display overrides
   ═══════════════════════════════════════════════════════════════════ */

body.quote-page {
  background: #f0f2f5;
  padding: 24px;
  color: #1f2937;
}

body.quote-page .page-actions {
  max-width: 800px;
  margin: 0 auto 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Quote page buttons — smaller, simpler than internal tool */
body.quote-page .btn {
  padding: 8px 16px;
  font-size: 13px;
  width: auto;
  margin-top: 0;
}
body.quote-page .btn-secondary {
  background: var(--gray-100);
  color: var(--gray-500);
}
body.quote-page .btn-green:hover { background: #1ea34e; }

body.quote-page .quote-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.quote-page .extra-container {
  max-width: 800px;
  margin: 16px auto 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: none;
}

/* Quote page uses slightly different header/body/footer (no font-family override) */
body.quote-page .cq-header { font-family: inherit; }
body.quote-page .cq-body {
  font-family: inherit;
  color: #374151;
}
body.quote-page .cq-footer { font-family: inherit; }

body.quote-page .quote-title {
  font-size: 20px;
  font-weight: 700;
  color: #253462;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
body.quote-page .meta-row {
  display: flex;
  gap: 24px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #374151;
}
body.quote-page .meta-label { font-weight: 600; color: #253462; }
body.quote-page .section-title {
  font-size: 13px;
  font-weight: 700;
  color: #253462;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 8px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
}

body.quote-page .cq-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: #6b7280;
  padding: 6px 0;
  border-bottom: 2px solid #e5e7eb;
  background: transparent;
}
body.quote-page .cq-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: inherit;
}
body.quote-page .cq-table .amount { text-align: right; font-variant-numeric: tabular-nums; }
body.quote-page .cq-table tfoot td {
  border-top: 2px solid #253462;
  font-weight: 700;
  color: #253462;
  font-size: 16px;
  padding-top: 10px;
}
body.quote-page .assumptions-text {
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
body.quote-page .assumptions-text ul { padding-left: 20px; }

body.quote-page .loc-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
body.quote-page .loc-card-header {
  background: #f9fafb;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  color: #253462;
}

/* Quote page toast — centered variant */
body.quote-page .toast {
  bottom: 20px;
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #253462;
  font-weight: 600;
}
body.quote-page .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Quote page print overrides */
@media print {
  body.quote-page .page-actions { display: none !important; }
  body.quote-page { padding: 0; background: white; }
  body.quote-page .quote-container,
  body.quote-page .extra-container { box-shadow: none; max-width: 100%; margin: 0; }
  body.quote-page .extra-container { display: block !important; }
}
