:root {
  --wc-primary: #8b5a2b;
  --wc-primary-dark: #6b4220;
  --wc-bg: #f7f4ef;
  --wc-cream: #f0e6d2;
}

body { background: var(--wc-bg); }

/* Brand mark — mirrors the iOS app icon: cream "DP" on a walnut square. */
.brand-mark {
  display: inline-block;
  background: linear-gradient(135deg, var(--wc-primary) 0%, var(--wc-primary-dark) 100%);
  color: var(--wc-cream);
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  vertical-align: baseline;
}

.navbar-dark { background: #2a1f17 !important; }

.btn-primary, .btn-primary:focus {
  background: var(--wc-primary);
  border-color: var(--wc-primary);
}
.btn-primary:hover { background: var(--wc-primary-dark); border-color: var(--wc-primary-dark); }
.btn-outline-primary { color: var(--wc-primary); border-color: var(--wc-primary); }
.btn-outline-primary:hover { background: var(--wc-primary); border-color: var(--wc-primary); }

a { color: var(--wc-primary); }
a:hover { color: var(--wc-primary-dark); }

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wc-primary-dark);
}

.line-row { vertical-align: middle; }
.line-row input.form-control-sm { font-size: 0.875rem; }
.line-totals { font-variant-numeric: tabular-nums; }

.uplift-btn-group .btn { font-size: 0.75rem; }
.uplift-btn-group .btn.active {
  background: var(--wc-primary);
  color: #fff;
  border-color: var(--wc-primary);
}

.quote-summary {
  position: sticky;
  top: 1rem;
}

.quote-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}
.quote-summary .line.total {
  border-top: 2px solid #333;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.kind-section {
  border-left: 4px solid transparent;
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}
.kind-section.labour { border-left-color: #2c7be5; }
.kind-section.material { border-left-color: var(--wc-primary); }
.kind-section.extra { border-left-color: #6c757d; }

/* Client-facing print view */
.client-quote {
  background: #fff;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.client-quote .header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #2a1f17;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.client-quote h1 { font-size: 1.5rem; }
.client-quote .biz-name { font-size: 1.25rem; font-weight: 700; color: var(--wc-primary-dark); }
.client-quote table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.client-quote td, .client-quote th { padding: 0.5rem; border-bottom: 1px solid #eee; }
.client-quote .totals-table { margin-left: auto; width: 50%; }
.client-quote .totals-table .grand td { border-top: 2px solid #2a1f17; font-weight: 700; font-size: 1.1rem; }

@media print {
  body { background: #fff; }
  .navbar, footer, .no-print, .btn { display: none !important; }
  .client-quote { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .container { max-width: none; }
}
