/* Salon Booking Manager — a single stylesheet. No build step. */

:root {
  --purple: #7c5cff;
  --purple-dark: #5b3fd6;
  /* Text that sits on the brand colour; a light brand colour swaps these to dark. */
  --on-purple: #ffffff;
  --on-purple-dark: #ffffff;
  --text: #1b2137;
  --muted: #667085;
  --line: #e4e7ef;
  --bg: #f5f6fb;
  --card: #ffffff;
  --good: #16a34a;
  --bad: #dc2626;
  --warn: #f59e0b;
  --shadow: 0 2px 10px rgba(20, 26, 60, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

a { color: var(--purple-dark); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #171a35;
  color: #fff;
}
.topbar .brand { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar .user-name { color: #c9cdf5; font-size: 14px; }
.topbar .sign-out { color: #fff; font-size: 14px; }
.menu-button {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Shell and sidebar menu */
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 56px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.sidebar a:hover { background: #f1f2fb; }
.sidebar a.active { background: var(--purple); color: var(--on-purple); }
.content { padding: 20px 22px 60px; max-width: 1400px; min-width: 0; overflow-x: clip; }

h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 22px 0 10px; }
.muted { color: var(--muted); margin: 0; }

/* Page heading and navigation */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-form { display: inline-flex; gap: 6px; }

/* Buttons */
.button, button.button {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--purple);
  color: var(--on-purple);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--purple-dark); color: var(--on-purple-dark); }
.button.slim, button.slim, a.slim {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
button.slim.good { border-color: #bbf7d0; background: #f0fdf4; color: var(--good); }
a.slim.whatsapp { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }

/* Cards and summary */
.summary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.summary-card span { display: block; color: var(--muted); font-size: 13px; }
.summary-card strong { font-size: 20px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.panel > summary { cursor: pointer; font-weight: 600; }

/* Forms */
.form { display: grid; gap: 12px; margin-top: 12px; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.form .wide { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.form label.checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--text); }
/* The box keeps its size; the sentence beside it wraps. It used to give way instead:
   7 pixels wide on a phone, on the booking page's consent box. */
.form label.checkbox input { flex: none; }
.form input, .form select, .form textarea {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form input:focus, .form select:focus { outline: 2px solid #ddd6fe; border-color: var(--purple); }

/* Notices */
.notice { padding: 10px 14px; border-radius: 9px; background: #fff7ed; border: 1px solid #fed7aa; margin: 12px 0; }
.notice.bad, .notice.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice.good, .notice.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* Sign-in details on the demo login page. Drawn only when config.php says demo. */
.demo-box { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.demo-box-title { margin: 0 0 8px; font-weight: 700; color: #3730a3; }
.demo-accounts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.demo-accounts dt { color: var(--muted); }
.demo-accounts dd { margin: 0; overflow-wrap: anywhere; }
.demo-accounts code { background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid #e0e7ff; }
.demo-box .demo-fill { width: 100%; }
.demo-box-note { margin: 10px 0 0; font-size: 13px; color: #4338ca; }

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(var(--sutun, 3), minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.calendar .column { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.calendar .column > header {
  font-weight: 700;
  padding: 6px 8px 8px;
  border-bottom: 3px solid var(--purple);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calendar .column > header small { color: var(--muted); font-weight: 500; }
.calendar .bos { color: var(--muted); font-size: 13px; padding: 10px 8px; }

.appointment { border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 10px; padding: 9px 11px; margin-bottom: 9px; }
.appointment .time { font-weight: 700; font-size: 13px; }
.appointment .kim { margin-top: 2px; font-weight: 600; }
.appointment .service { color: var(--muted); font-size: 13px; }
.appointment .not { margin-top: 4px; font-size: 12px; color: var(--warn); }
.appointment .islemler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.appointment .islemler form { display: inline; }
.appointment.status-arrived { border-left-color: var(--good); background: #f8fffb; }
.appointment.status-no_show { border-left-color: var(--bad); background: #fffafa; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.package { background: #ede9fe; color: #5b21b6; }
.badge.closed { background: #fee2e2; color: #991b1b; }

/* Tables */
table.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.table th, table.table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.table th { background: #fafbff; font-size: 13px; color: var(--muted); }
table.table tr:last-child td { border-bottom: 0; }
td.good, .good { color: var(--good); }
td.bad, .bad { color: var(--bad); }
.right { text-align: right; }

/* Login and setup pages */
.login-page, body.setup { background: linear-gradient(140deg, #171a35, #3a2f86); min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box, .setup-box { background: #fff; border-radius: 16px; padding: 28px; width: min(560px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.login-box h1, .setup-box h1 { margin-top: 0; }
.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.steps li.active { color: var(--purple); font-weight: 700; }

/* Phones */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  body.menu-open .sidebar { display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-button { display: block; }
  .content { padding: 16px 14px 60px; }
  .calendar { grid-template-columns: 1fr; }

  /*
   * On a phone a row becomes a card instead of scrolling sideways.
   *
   * Scrolling put the two things people open these screens for - the amount and
   * the action button - off the right-hand edge, behind a gesture nobody makes.
   * Each cell carries its own heading in data-label, so stacking them keeps the
   * meaning: "Balance due  120.00 USD" on its own line.
   */
  table.table { display: block; width: 100%; border: 0; background: none; overflow: visible; }
  table.table thead { display: none; }
  table.table tbody, table.table tfoot { display: block; width: 100%; }
  table.table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
  }
  table.table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: left;
  }
  table.table td.right { text-align: right; }
  table.table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    flex: 0 0 auto;
  }
  /* The cell that holds the buttons: no heading, full width, easy to hit. */
  table.table td:not([data-label]) { justify-content: flex-start; flex-wrap: wrap; }
  table.table td:not([data-label]):empty { display: none; }
  table.table td .button, table.table td .slim { min-height: 34px; display: inline-flex; align-items: center; }
  /* Totals rows use colspan and have no labels; keep them readable. */
  table.table td[colspan] { justify-content: space-between; font-weight: 600; }

  /* Long words and e-mail addresses wrap instead of pushing the layout out. */
  h1, h2, p, td, th, code { overflow-wrap: anywhere; }
  code { word-break: break-all; }

  /* Date pickers and number fields have a wide intrinsic size on phones. */
  .form input, .form select, .form textarea, .row-form input, .row-form select { max-width: 100%; min-width: 0; }
  .row-form { flex-wrap: wrap; }
  .summary-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .new-customer { grid-template-columns: 1fr; padding: 10px; }
}

/* Report chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.columns { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.columns .cubuk { width: 100%; background: linear-gradient(180deg, #8f7cff, #6d4dff); border-radius: 6px 6px 0 0; }
.columns small { color: var(--muted); font-size: 11px; margin-top: 4px; }
tr.kritik-satir { background: #fff8f8; }


/* Online booking: time picker */
.hour-picker { display: grid; gap: 6px; }
.hour-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.hour-box input { position: absolute; opacity: 0; width: 0; height: 0; }
.hour-box span { display: block; text-align: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 600; cursor: pointer; }
.hour-box input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.hour-box input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.button[disabled] { opacity: .5; cursor: not-allowed; }


/* Online requests awaiting approval */
.badge.online { background: #dbeafe; color: #1d4ed8; }
.pending { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; }
.pending h2 { margin: 0 0 2px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pending .muted { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.request-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.request-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.request-info strong { font-size: 14px; }
.request-actions { display: flex; align-items: center; gap: 6px; }
.request-actions form { margin: 0; }

/* Free-time picker and rescheduling in the panel */
.free-hours { display: grid; gap: 6px; }
.hour-box.selectable { display: block; width: 100%; text-align: center; padding: 9px 4px; border: 1px solid var(--line);
    border-radius: 9px; background: #fff; font-weight: 600; cursor: pointer; font: inherit; }
.hour-box.selectable:hover { border-color: var(--purple); }
.hour-box.selectable.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
details.ertele { margin-top: 8px; }
details.ertele > summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.move-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.move-form input, .move-form select { padding: 5px 7px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; }
.appointment.time-off { border-left-color: var(--muted); background: #f8fafc; }

/* Week view */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.week-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 150px; }
.week-day.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.week-day.closed-day { background: #f8fafc; }
.week-day > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.week-day > header a { font-weight: 700; text-decoration: none; color: inherit; display: block; }
.week-day > header small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.week-count { background: var(--purple); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.week-appointment { display: block; padding: 6px 8px; border-radius: 8px; border-left: 3px solid var(--purple);
    background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line); margin-bottom: 6px; text-decoration: none; color: inherit; font-size: 12px; }
.week-appointment strong { margin-right: 4px; }
.week-appointment small { display: block; color: var(--muted); font-size: 11px; }
.week-appointment.status-arrived { border-left-color: var(--good); }
.week-appointment.status-no_show { border-left-color: var(--bad); }
.week-appointment.time-off { border-left-color: var(--muted); background: #f8fafc; }
.week-revenue { margin: 6px 0 0; font-size: 12px; font-weight: 700; text-align: right; }

/* Printing: only the calendar is printed */
@media print {
    .topbar, .sidebar, .panel, .day-nav, .islemler, .pending, .ertele, script { display: none !important; }
    body, .shell, .content { background: #fff; margin: 0; padding: 0; display: block; }
    .calendar { display: block; }
    .column { break-inside: avoid; page-break-inside: avoid; margin-bottom: 10px; }
    .appointment { border: 1px solid #ddd; }
}
.badge.good { background: #dcfce7; color: #166534; }
tr.soluk-satir { opacity: .6; }
.action-cell { display: flex; gap: 6px; align-items: center; }
.action-cell form { margin: 0; }
.customer-note { padding: 10px 14px; border-radius: 9px; background: #f8fafc; border: 1px solid var(--line); margin: 12px 0; }
.demo-bar { padding: 10px 14px; border-radius: 9px; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; margin: 0 0 12px; font-size: 13px; }
.demo-bar a { font-weight: 700; }

/* Showcase page */
body.tanitim-sayfa { background: #fff; color: var(--text); margin: 0; }
.showcase-inner { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.showcase-top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); z-index: 5; }
.showcase-top .showcase-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.showcase-brand { font-weight: 800; font-size: 19px; }
.showcase-nav { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14px; }
.showcase-nav a { text-decoration: none; color: var(--text); }
.showcase-nav a:hover { color: var(--purple-dark); }

/*
 * The "Book" button in the header.
 *
 * It used to be a .slim button, which paints a white background, with a rule
 * here forcing white text on top: an empty white box on every showcase page.
 * Both colours are written together now, so one can never be changed without
 * the other.
 */
.showcase-cta,
.showcase-nav a.showcase-cta {
  /* The darker shade: white on it measures 6.7:1, against 4.35:1 on the
     lighter brand colour, which falls just short of WCAG AA for text this size. */
  background: var(--purple-dark);
  color: var(--on-purple-dark);
  border: 1px solid var(--purple-dark);
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.showcase-cta:hover,
.showcase-nav a.showcase-cta:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--on-purple-dark); filter: brightness(.9); }
.showcase-cta:focus-visible,
.showcase-nav a.showcase-cta:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  color: var(--on-purple-dark);
}
/* The staff sign-in beside it: always there, and plainly the second choice. */
.showcase-nav a.showcase-staff { border: 1px solid var(--line); padding: 8px 12px; border-radius: 9px; font-size: 13px; white-space: nowrap; }
.showcase-hero { background: linear-gradient(135deg, #4c1d95, #7c3aed); color: #fff; padding: 64px 0 72px; text-align: center; }
.showcase-hero h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -.5px; }
.showcase-text { font-size: 17px; opacity: .92; max-width: 620px; margin: 0 auto 22px; line-height: 1.6; }
.button.buyuk { padding: 13px 26px; font-size: 16px; background: #fff; color: #5b21b6; }
.button.buyuk:hover { background: #f3f0ff; color: #4c1d95; }

/* Hero: one clear action, one quiet one, then the facts a visitor checks. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: center; margin: 0 0 14px; }
.hero-secondary { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 15px; }
.hero-secondary:hover { color: #ede9fe; }
.hero-facts { margin: 0; font-size: 14px; opacity: .85; }

/* The team, as cards with an initials avatar - no stock photography needed. */
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
/* Today stands out in the opening hours, so "are they open now?" is answered at a glance. */
.showcase-section table.table tr.today td { font-weight: 700; background: #f5f3ff; }
.team-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px; letter-spacing: .5px;
}
.team-name { font-weight: 600; }

/* The per-service and per-person booking link: readable, and clearly a control. */
.showcase-card-book {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 14px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  color: var(--purple-dark);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.showcase-card-book:hover { background: var(--purple); color: var(--on-purple); }
.showcase-card-book:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 2px; }
.team-card .showcase-card-book { align-self: center; }
.showcase-section { padding: 40px 0 8px; }
.showcase-section h2 { font-size: 24px; margin: 0 0 6px; }
.showcase-category { font-size: 15px; color: var(--muted); margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .6px; }
.showcase-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.showcase-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.showcase-card img { width: 100%; height: 148px; object-fit: cover; display: block; }
.showcase-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.showcase-card h4 { margin: 0; font-size: 16px; }
.showcase-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.showcase-price strong { font-size: 17px; }
.showcase-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.showcase-contact { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 15px; }
.showcase-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; color: var(--muted); font-size: 14px; }
.showcase-footer .showcase-inner { display: flex; justify-content: space-between; gap: 12px; }
.thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
@media (max-width: 760px) {
    .showcase-hero h1 { font-size: 30px; }
    .showcase-split { grid-template-columns: 1fr; }
    .showcase-nav { gap: 10px; font-size: 13px; }
    /* On a phone the brand, two links and the button do not fit on one line.
       The links give way; the button is what the page is for, and the staff
       sign-in stays beside it, small. */
    .showcase-top .showcase-inner { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
    .showcase-brand { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .showcase-nav a:not(.showcase-cta):not(.showcase-staff) { display: none; }
    .showcase-nav a.showcase-staff { padding: 9px 10px; font-size: 12px; }
    .showcase-cta, .showcase-nav a.showcase-cta { padding: 10px 16px; }
    .showcase-hero { padding: 44px 0 50px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .team-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* The price list is the only wide element here; it scrolls on its own. */
    .showcase-section { min-width: 0; overflow-x: hidden; }
    .showcase-section table.table { display: block; width: 100%; overflow-x: auto; }
    .showcase-section h2, .showcase-section p { overflow-wrap: anywhere; }
}

/* "+ New customer" fields inside the New appointment form. */
.new-customer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfbff;
}
.new-customer[hidden] { display: none; }
.new-customer label { margin: 0; }

/* A hint line under a form control: the consequence, in a quieter voice. */
.form .hint { font-size: 12.5px; margin: -6px 0 0; }

/* The "is this the same person?" question, before anything is written. */
.match-check { border-color: #fed7aa; background: #fff7ed; }
.match-check h2 { margin-top: 0; }
.match-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.match-actions form { margin: 0; }

/* Small helpers */
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }

/* Month view */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-head { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.month-day { display: block; min-height: 92px; padding: 8px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: inherit; }
.month-day:hover { border-color: var(--purple); }
.month-day.other-month { opacity: 0.45; }
.month-day.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.month-day.closed-day { background: #f8fafc; }
.month-day .day-number { font-weight: 700; }
.month-day .day-note { display: block; font-size: 11px; color: var(--muted); }
.month-day .day-count { display: inline-block; margin-top: 6px; background: var(--purple); color: #fff;
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.month-day .day-pending { display: inline-block; margin-top: 6px; background: #dbeafe; color: #1d4ed8;
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.month-day .day-revenue { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--good); }
.month-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.month-bar > span { display: block; height: 4px; background: var(--purple); }
@media (max-width: 700px) {
  .month-day { min-height: 64px; padding: 5px; }
  .month-day .day-revenue, .month-day .day-note { display: none; }
}

/* Brand logo */
.brand-logo { height: 28px; width: auto; vertical-align: middle; margin-right: 8px; border-radius: 6px; background: #fff; }
.page-logo { display: block; max-height: 72px; max-width: 220px; margin: 0 auto 12px; }

/* Touch targets: at least 44 px on a phone (measured on the online booking form). */
@media (max-width: 760px) {
    .form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea,
    .button, button.button, button.slim.show-times, .hour-box.selectable { min-height: 44px; }
    .hour-box span { min-height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
    .form label.checkbox { min-height: 44px; align-items: center; }
    .form input[type=checkbox], .form input[type=radio] { width: 22px; height: 22px; }
}
