:root {
  --ink: #15110d;
  --muted: #6f675f;
  --gold: #c69c51;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --line: #e8dfd2;
  --brand: #3d2418;
}

html {
  font-size: 15px;
}

body {
  background: var(--cream);
  color: var(--ink);
}

.salon-nav {
  background: var(--brand);
  box-shadow: 0 8px 24px rgba(61, 36, 24, .16);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.salon-hero {
  min-height: 440px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(32, 19, 12, .92), rgba(32, 19, 12, .60)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  color: white;
}

.salon-hero-content {
  max-width: 760px;
}

.salon-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
}

.text-gold {
  color: var(--gold);
}

.summary-card,
.metric,
.panel,
.catalog-card,
.form-shell,
.receipt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(61, 36, 24, .07);
}

.summary-card {
  padding: 20px;
  min-height: 120px;
}

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card span {
  color: var(--muted);
  margin-top: 8px;
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 6px;
}

.panel {
  padding: 18px;
}

.catalog-card {
  padding: 18px;
  height: 100%;
}

.catalog-card h6 {
  font-weight: 800;
}

.catalog-card p {
  color: var(--muted);
  min-height: 48px;
}

.form-shell,
.receipt {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
}

.form-shell.wide {
  max-width: 760px;
}

.payment-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.page-title {
  font-weight: 800;
  margin-bottom: 18px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: #2b180f;
  border-color: #2b180f;
}

.btn-success {
  background: #24734d;
  border-color: #24734d;
}

.table {
  margin-bottom: 0;
}

.panel {
  overflow-x: auto;
}

.table th {
  color: #62584e;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.form-control,
.form-select {
  border-color: #d7cbbb;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  main.container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .navbar .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .salon-hero {
    min-height: 360px;
    border-radius: 8px;
    padding: 28px 18px;
  }

  .salon-hero h1 {
    font-size: 2.2rem;
  }

  .summary-card,
  .metric,
  .panel,
  .catalog-card,
  .form-shell,
  .receipt {
    border-radius: 8px;
  }

  .form-shell,
  .form-shell.wide,
  .receipt {
    max-width: 100%;
    padding: 18px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  .btn-group > .btn {
    flex: 1 0 auto;
  }

  .table {
    min-width: 680px;
    font-size: .92rem;
  }

  .receipt .table {
    min-width: 0;
  }

  .d-flex.justify-content-between {
    gap: 10px;
    flex-wrap: wrap;
  }

  .payment-option {
    padding: 14px;
  }

  .display-6 {
    font-size: 1.7rem;
  }
}

@media print {
  .navbar,
  .btn,
  main > .alert {
    display: none !important;
  }

  @page {
    size: 56mm auto;
    margin: 3mm;
  }

  html {
    font-size: 10px;
  }

  body {
    background: white;
  }

  main.container-fluid {
    padding: 0 !important;
  }

  .receipt {
    width: 50mm;
    max-width: 50mm;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    font-family: Arial, sans-serif;
  }

  .receipt h2 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 3px;
  }

  .receipt h5,
  .receipt p {
    font-size: 10px;
    text-align: center;
    margin-bottom: 5px;
  }

  .receipt .table {
    width: 100%;
    font-size: 9px;
  }

  .receipt .table th,
  .receipt .table td {
    padding: 2px 0;
    border-color: #000;
    letter-spacing: 0;
    text-transform: none;
  }
}


