/* 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: 44px; 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; }
/* Demo only: the way into the management panel, plain enough to find without hunting. */
.hero-demo-panel-line { margin: 0 0 14px; }
.hero-demo-panel { display: inline-block; min-height: 44px; box-sizing: border-box; padding: 11px 20px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid #fff; border-radius: 10px; }
.hero-demo-panel:hover { background: #fff; color: #4c1d95; }
.hero-demo-panel:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* 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; }
}

/* ------------------------------------------------------------------------------------------
 * Shared helpers of the clinic pages: lists, filters, chips, the sheet to print
 * ---------------------------------------------------------------------------------------- */

.badge.state-full, .badge.state-almost { background: #ffedd5; color: #9a3412; }
.badge.state-open { background: #dcfce7; color: #166534; }
.badge.state-past, .badge.state-cancelled { background: #e5e7eb; color: #374151; }
.plain-list { list-style: none; margin: 8px 0 0; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.inline-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 14px; }
.filter-form { margin-bottom: 12px; }
.small-strong { font-size: 14px !important; }

.kind-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; box-sizing: border-box; }
.chip.on { background: var(--purple); border-color: var(--purple); color: var(--on-purple); }

/* A sheet to print. */
body.print-sheet { background: #fff; margin: 0; padding: 18px 24px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.print-head h1 { margin: 0; }
.print-day h2 { margin: 16px 0 6px; font-size: 17px; }
.print-day h2 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.print-foot { margin-top: 18px; font-weight: 700; }
@media print {
  body.print-sheet { padding: 0; }
  .print-actions { display: none !important; }
  .print-day { break-inside: avoid; page-break-inside: avoid; }
  table.table { border: 1px solid #999; }
}

@media (max-width: 760px) {
  .request-actions .slim, .request-actions button, .action-cell .slim,
  .ertele summary, .inline-action .button, .kind-filter .chip { min-height: 44px; box-sizing: border-box; }
  .ertele summary { display: inline-flex; align-items: center; padding: 0 6px; }
}

/* Touch targets on a phone: every button, link-button and summary is at least 44 px tall (measured at 360, 375 and 393 px). */
@media (max-width: 760px) {
  .menu-button, .topbar .sign-out, a.slim, button.slim, .button, button.button, .showcase-card-book, .showcase-nav a,
  .hero-secondary, .hero-demo-panel, a.slim.whatsapp, .team-card .showcase-card-book {
    min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  }
  .topbar .sign-out { padding: 0 10px; }
  .menu-button { min-width: 44px; }
  details > summary, .panel > summary { min-height: 44px; box-sizing: border-box; padding-top: 11px; padding-bottom: 11px; }
  .sidebar a { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
  .action-cell { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .move-form input, .move-form select { min-height: 44px; box-sizing: border-box; font-size: 14px; }
}

/* clinic: patient file frame */
.patient-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0 16px; padding-bottom: 2px; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.patient-tabs a { flex: 0 0 auto; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 9px 9px 0 0; color: var(--text); text-decoration: none; font-weight: 600; border: 1px solid transparent; border-bottom: 0; }
.patient-tabs a:hover { background: #f1f2fb; }
.patient-tabs a.active { background: var(--card); border-color: var(--line); color: var(--purple-dark); box-shadow: 0 1px 0 var(--card); }
.patient-flags { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge.patient-flag { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: 12px; padding: 2px 9px; }
.notice.patient-alert { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.anamnesis .facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.anamnesis .facts dt { font-weight: 700; color: var(--muted); }
.anamnesis .facts dd { margin: 0; }
.flag-set { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.flag-set legend { padding: 0 6px; font-weight: 600; }
.flag-set .checkbox { min-height: 32px; }
.recall-table .action-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.recall-table .note-field { min-width: 120px; max-width: 170px; }
.form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
@media (max-width: 760px) {
  .anamnesis .facts { grid-template-columns: 1fr; }
  .patient-tabs a { padding: 10px 12px; }
}

/* clinic: tooth chart */
.odontogram-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.odontogram-modes { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.odontogram-modes .button.active { background: var(--purple); color: var(--on-purple); }
.odontogram { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; display: grid; gap: 14px; }
.odontogram .arch { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.odontogram .arch.upper { padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.odontogram .quad { display: flex; gap: 4px; }
.odontogram .arch .quad:first-child { padding-right: 12px; border-right: 2px dashed var(--line); }
.tooth { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 58px; border: 2px solid #cfd4e6; border-radius: 12px 12px 18px 18px; background: #fff; color: var(--text); text-decoration: none; font-weight: 700; }
.tooth:hover { border-color: var(--purple); }
.tooth.selected { outline: 3px solid var(--purple); outline-offset: 1px; }
.tooth .tooth-no { font-size: 12px; color: var(--muted); }
.tooth .tooth-state { font-size: 18px; line-height: 1.1; min-height: 20px; }
.tooth.has-plan::after, .tooth-key.has-plan::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--warn); border: 2px solid #fff; }
.tooth-key.has-plan { position: relative; background: #fff; border-color: #cfd4e6; }
.state-caries { background: #fee2e2; border-color: #ef4444; }
.state-filling { background: #dbeafe; border-color: #3b82f6; }
.state-crown { background: #fef3c7; border-color: #d97706; }
.state-root_canal { background: #fce7f3; border-color: #db2777; }
.state-implant { background: #e0e7ff; border-color: #4f46e5; }
.state-bridge { background: #ede9fe; border-color: #7c3aed; }
.state-veneer { background: #cffafe; border-color: #0891b2; }
.state-sealant { background: #dcfce7; border-color: #16a34a; }
.state-denture { background: #f5f5f4; border-color: #78716c; }
.state-impacted { background: #ffedd5; border-color: #ea580c; }
.state-fracture { background: #fecaca; border-color: #b91c1c; }
.state-to_extract { background: #fde68a; border-color: #b45309; }
.state-missing { background: #e5e7eb; border-color: #9ca3af; color: #6b7280; border-style: dashed; }
.odontogram-legend { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.odontogram-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tooth-key { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #cfd4e6; font-size: 12px; font-weight: 700; }
.tooth-panel h3 { margin: 16px 0 6px; font-size: 15px; }
@media (max-width: 760px) {
  /* Eight teeth do not fit a phone at a size a finger can hit: a quadrant becomes two rows of four. */
  .odontogram .arch .quad:first-child { padding-right: 0; border-right: 0; }
  .odontogram .arch { gap: 10px; }
  .odontogram .quad { gap: 6px; flex-wrap: wrap; justify-content: center; width: 100%; }
  .odontogram .quad .tooth { width: calc(25% - 6px); max-width: 76px; height: 58px; }
}

/* clinic: treatment plans */
.plan-table tr.is-cancelled td { color: #888; text-decoration: line-through; }
.plan-table .action-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* clinic: visit notes */
.record-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.record-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.record .facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.record .facts dt { font-weight: 700; color: var(--muted); }
.record .facts dd { margin: 0; }
.rx-set { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; }
.rx-line { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 6px; margin-top: 6px; }
.weight-chart { width: 100%; max-width: 640px; height: auto; color: var(--purple-dark); }
@media (max-width: 760px) {
  .record .facts { grid-template-columns: 1fr; }
  .rx-line { grid-template-columns: 1fr 1fr; }
}

/* clinic: files and consent forms */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.file-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-card a { display: block; background: #0f1226; text-align: center; }
.file-card img { display: block; width: 100%; height: 150px; object-fit: contain; }
.file-card .file-pdf { display: flex; align-items: center; justify-content: center; height: 150px; color: #fff; font-weight: 700; font-size: 28px; background: #b91c1c; }
.file-card figcaption { padding: 8px 10px 10px; font-size: 13px; }
.consent-text { background: #fafbff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.consent-text h4 { margin: 6px 0; }
.signature-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 2px dashed #9aa3c4; border-radius: 10px; margin: 6px 0; touch-action: none; }

/* clinic: booking and patients */
.appt-alert { display: inline-block; color: #b45309; font-size: 14px; line-height: 1; cursor: help; }
#patient-choice[hidden] { display: none; }
.emergency-note { border-left: 4px solid #dc2626; background: #fef2f2; color: #7f1d1d; font-weight: 600; }
.emergency-note[hidden] { display: none; }
.patient-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.patient-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.patient-list .patient-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.appointment .kim > a { display: inline-flex; align-items: center; min-height: 44px; }

/* clinic: stock expiry and settings */
.badge.expiring { background: #ffedd5; color: #9a3412; }
.expiring-text { color: #c2410c; font-weight: 600; }
.stock-expiry ul { margin: 6px 0 0; padding-left: 20px; }
.stock-expiry li { margin: 4px 0; }
.panel details.panel { margin: 8px 0; }

/* clinic: patient list import */
.badge.import-ok { background: #dcfce7; color: #166534; }
.badge.import-warning { background: #ffedd5; color: #9a3412; }
.badge.import-error { background: #fee2e2; color: #991b1b; }
.badge.import-skip { background: #e5e7eb; color: #374151; }
/* clinic: settings and stock on phones */
@media (max-width: 760px) {
  form[action*="page=settings-save"] label.checkbox { min-height: 44px; display: flex; align-items: center; gap: 8px; }
  form[action*="page=stock-save"] input, form[action*="page=stock-save"] select, .day-nav input[type=date] { min-height: 44px; box-sizing: border-box; }
}

/* clinic: review, touch targets on phones */
@media (max-width: 760px) {
  .topbar .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .inline-action select, .inline-action input:not([type=hidden]), .row-form select, .row-form input:not([type=hidden]), .filter-form select,
  .action-cell select, .action-cell input:not([type=hidden]), .recall-table .note-field { min-height: 44px; box-sizing: border-box; }
  .flag-set .checkbox { min-height: 44px; }
}

/* clinic: touch targets found by the phone screenshots check (week header links, opening-hours checkboxes) */
@media (max-width: 760px) {
  .week-day > header a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
  form[action*="page=settings-save"] td input[type=checkbox] { width: 44px; height: 44px; }
}

/* clinic: stock movement form wraps instead of running off the table (batch and expiry fields made it wider than the screen) */
.table .row-form { flex-wrap: wrap; width: 340px; max-width: 100%; }
.demo-box-warning { margin: 0 0 8px; font-weight: 600; color: #7c2d12; background: #ffedd5; border-radius: 8px; padding: 8px 10px; }
.demo-box-lead { margin: 8px 0; }
.demo-role-form { margin: 8px 0; }
.demo-role-form .button { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 48px; font-size: 16px; }
.demo-box-customer { margin: 10px 0 0; font-weight: 600; }

/* Guidance package (1.1.0): setup bar, help boxes, step-by-step setup, sharing page, poster, big print for the customer pages. */
.setup-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef2ff; border: 1px solid #c7d2fe; }
.setup-bar-text { flex: 1 1 200px; }
.meter { flex: 1 1 120px; height: 8px; border-radius: 99px; background: #dbe2fb; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--purple, #7c5cff); }
.help-box { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: #f6f7fb; border: 1px dashed #c9cde0; }
.help-box summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.help-box > div { margin-top: 8px; }
.help-mark { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--purple, #7c5cff); color: var(--on-purple, #fff); font-weight: 700; font-size: 13px; margin-right: 4px; }
.setup-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; }
.setup-steps li { border: 1px solid #d5d9ea; border-radius: 99px; background: #fff; }
.setup-steps li a { display: block; padding: 8px 14px; text-decoration: none; color: inherit; }
.setup-steps li.current { background: var(--purple, #7c5cff); border-color: var(--purple, #7c5cff); }
.setup-steps li.current a { color: var(--on-purple, #fff); font-weight: 700; }
.setup-steps li.done:not(.current) { border-color: #86d6a4; }
.setup-list { margin: 0 0 12px 18px; padding: 0; }
.setup-skip { margin-top: 16px; }
.button-link { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.error-ways { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
fieldset.wide { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.qr-box { width: 160px; height: 160px; margin: 8px 0; }
.qr-box svg, .poster-qr svg { width: 100%; height: 100%; display: block; }
.poster-page { background: #fff; }
.poster-tools { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.poster { max-width: 560px; margin: 0 auto; padding: 24px 20px; text-align: center; }
.poster h1 { font-size: 34px; margin: 0 0 6px; }
.poster-lead { font-size: 20px; margin: 0 0 14px; }
.poster-qr { width: 300px; height: 300px; margin: 0 auto 16px; }
.poster-steps { text-align: left; display: inline-block; font-size: 17px; margin: 0 0 14px; }
.poster-url { word-break: break-all; font-size: 14px; color: #444; }
@media print { .no-print { display: none !important; } .poster-page { background: #fff; } }

/* The customer pages (online booking, my appointment, the install page): big and plain. */
/* Patient pages: fixed "Write on WhatsApp" button, bottom right; the page keeps room below so it never covers the content. */
.wa-fab { position: fixed; right: 14px; bottom: 14px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: #0e7a4c; color: #fff; font: 700 16px/1 system-ui, sans-serif; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.wa-fab:hover, .wa-fab:focus-visible { background: #0b6a41; color: #fff; outline: 3px solid #fff; outline-offset: 2px; }
.wa-fab svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
body.has-wa-fab { padding-bottom: 86px; }
@media print { .wa-fab { display: none; } }
.login-box.big-print { font-size: 19px; line-height: 1.5; }
.login-box.big-print h1 { font-size: 30px; }
.login-box.big-print label { font-size: 19px; }
.login-box.big-print input, .login-box.big-print select { font-size: 20px; min-height: 56px; }
.login-box.big-print .button, .login-box.big-print button[type="submit"] { font-size: 20px; min-height: 56px; }
.login-box.big-print .hour-box span { font-size: 20px; min-height: 52px; padding: 12px 6px; }
.login-box.big-print .notice { font-size: 19px; }

/* The "add to the phone" window: opens by itself over the page, from the bottom edge. */
.add-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55); }
.add-overlay[hidden] { display: none; }
.add-overlay > .panel { width: min(560px, 100%); margin: 0; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 22px; }
.add-overlay .button { font-size: 19px; min-height: 52px; }
.add-open { display: block; width: 100%; margin: 0 0 14px; font-size: 20px; min-height: 56px; }
.add-open[hidden] { display: none; }
.menu-more { margin-top: 6px; }
.menu-more > summary { cursor: pointer; padding: 8px 12px; color: inherit; opacity: .8; }
.menu-more > a { display: block; }

/* Touching a row opens its record. */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(124, 92, 255, 0.06); }

/* Time off over several days. */
#timeoff-hours[hidden] { display: none; }
.timeoff-list { list-style: none; margin: 8px 0; padding: 0; }
.timeoff-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeoff-list li:last-child { border-bottom: 0; }
.timeoff-line { font-size: 17px; font-weight: 600; }
.timeoff-list form { margin: 0; }
.timeoff-list button { min-height: 44px; font-size: 16px; }

/* Veterinary demo: the example animals show a photograph (header of the file and the list). Demo only; see Patient::demoPhoto. */
.page-head.has-pet-photo { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.page-head.has-pet-photo > div:not(.day-nav) { flex: 1 1 260px; }
.pet-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.pet-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; }
