/* ============================================================
   KABIN DEALER ESTIMATOR — BASE STYLES
   ------------------------------------------------------------
   Brand: white background, Navy/Coral accents, Haffer (headings)
   + Apercu Mono Pro (labels/data). Typefaces loaded via fonts.css.
   Mobile-specific overrides live in mobile.css, loaded after this
   file so they can override at narrow widths.
   ============================================================ */

:root {
  --navy: #243646;
  --coral: #FFA28C;
  --tan: #987B5D;
  --greige: #9D9988;
  --ink: #1a1a18;
  --ink-soft: #4a4a46;
  --ink-faint: #8a8a84;
  --paper: #ffffff;
  --paper-warm: #f7f5f0;
  --border: #e2ded3;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Apercu Mono Pro", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.frame {
  width: 100%;
  max-width: 820px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px 40px 32px;
  position: relative;
}

.hdr { margin-bottom: 28px; }

.logo {
  height: 66px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.eyebrow {
  font-family: "Apercu Mono Pro", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

h1 {
  font-family: "Haffer", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--navy);
}

.controls {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 28px 0 25px;
}

.control-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-family: "Apercu Mono Pro", monospace;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover:not(:disabled) { border-color: var(--navy); }

.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kabin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.kabin-badge-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.table { margin-bottom: 10px; overflow-x: auto; }

.row {
  display: grid;
  grid-template-columns: 1fr 50px 85px 90px 90px 100px 24px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-width: 540px;
}

.row-head {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px;
}

.row-head-center { text-align: center; }
.row-head-right { text-align: right; }

.row-product, .row-qty {
  font-family: "Apercu Mono Pro", monospace;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.row-qty-wrap { display: contents; }
.row-product-wrap { display: contents; }
.row-mobile-label { display: none; }

.row-qty { text-align: center; }

.row-cell {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  text-align: right;
  color: var(--ink-soft);
}

.row-cell::before {
  content: attr(data-label);
  display: none;
}

.row-cell-strong {
  font-weight: 700;
  color: var(--ink);
}

.row-remove {
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.row-remove:hover { color: var(--coral); }

.add-row {
  font-family: "Apercu Mono Pro", monospace;
  font-size: 13px;
  color: var(--navy);
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  margin: 14px 0 28px;
}
.add-row:hover { border-color: var(--navy); }

.totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.total-card {
  background: #F7F6F6;
  border: 1px solid #B3B3B3;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.total-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.total-card.highlight .total-label { color: rgba(255,255,255,0.72); }
.total-card.highlight .total-value { color: #fff; }

.total-label {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.total-subtext {
  font-size: 10px;
  font-weight: 600;
  color: var(--coral);
  margin: -2px 0 4px;
}

.total-value {
  font-family: "Haffer", sans-serif;
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  margin-top: auto;
}

.notes-panel {
  background: #ffffff;
  border: 1px solid #B3B3B3;
  border-radius: var(--radius);
  padding: 14px 18px 16px;
  margin-bottom: 20px;
}

.notes-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.notes-list li {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 4px;
}
.notes-list li:last-child { margin-bottom: 0; }

.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.footer-col {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}
