/* Booking screens. Colours follow the pharmacy site's design. No outside fonts or images. */
:root {
  --navy: #004070; --navy-dark: #002f54; --navy-tint: #e9f0f6;
  --ink: #1c2730; --muted: #55636f; --line: #d8e0e6; --wash: #f5f7f9;
  --ok: #17693c; --ok-bg: #e4f3ea; --bad: #a32020; --bad-bg: #fbeaea; --warn-bg: #fff6dd;
  --radius: 10px; --tint: #f5f7f9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ink); background: var(--wash); line-height: 1.5; font-size: 18px;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.site-head {
  background: #fff; color: var(--ink); padding: 12px 20px; border-bottom: 4px solid var(--navy);
  display: flex; gap: 16px; align-items: center;
}
.site-head .logo { height: 64px; width: auto; max-width: 180px; flex: none; }
.site-head h1 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy-dark); }
.site-head p { margin: 2px 0 0; font-size: .95rem; }
.site-head .tagline { color: var(--muted); }
.site-head a { color: var(--navy); }
.look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--wash); }
.preview-body { padding: 14px; }
.preview[data-skin="soft"] { --radius: 16px; background: var(--navy-tint); }
.preview[data-skin="soft"] .site-head { border-bottom: 0; }
.preview[data-skin="soft"] button { border-radius: 16px; }
.preview[data-skin="bold"] .site-head { background: var(--navy); border-bottom: 0; }
.preview[data-skin="bold"] .site-head h1, .preview[data-skin="bold"] .site-head p { color: #fff; }
.preview[data-skin="bold"] .logo { background: #fff; border-radius: 6px; padding: 4px; }
input[type=color] { width: 72px; height: 44px; padding: 2px; border: 1px solid #93a3b0; border-radius: 6px; background: #fff; }
input[type=file] { display: block; width: 100%; padding: 8px 0; font: inherit; }
.demo-banner { background: var(--warn-bg); padding: 8px 20px; font-size: .95rem; text-align: center; }
main { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
main.wide { max-width: 1120px; }
h2 { color: var(--navy-dark); margin: 0 0 12px; font-size: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; padding: 0; font-size: 1.1rem; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid #93a3b0; border-radius: 6px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px;
}
.hint { color: var(--muted); font-size: .92rem; margin: 2px 0 0; font-weight: 400; }
.choice {
  display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 6px 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff;
}
.choice input { width: 22px; height: 22px; flex: none; margin: 0; }
.choice.plain { border: 0; padding: 4px 0; background: none; align-items: flex-start; }
.choice.disabled { color: var(--muted); background: var(--wash); cursor: default; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; margin-top: 8px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 11px 18px; border-radius: 6px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
}
button:hover { background: var(--navy-dark); }
button.ghost { background: #fff; color: var(--navy); }
button.ghost:hover { background: var(--navy-tint); }
button.danger { background: var(--bad); border-color: var(--bad); }
button.slot { background: #fff; color: var(--navy); padding: 12px 4px; }
button.slot:hover { background: var(--navy-tint); }
button.slot[aria-pressed=true] { background: var(--navy); color: #fff; }
button:disabled { opacity: .55; cursor: default; }
.notice { background: var(--navy-tint); border-radius: 6px; padding: 10px 12px; margin: 10px 0; white-space: pre-wrap; }
.message { border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.message.bad { background: var(--bad-bg); color: var(--bad); }
.message.ok { background: var(--ok-bg); color: var(--ok); }
.field-error { color: var(--bad); font-size: .95rem; margin: 3px 0 0; }
.summary { margin: 0; }
.summary dt { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary dd.text { font-weight: 400; white-space: pre-wrap; }
.code { font-size: 1.3rem; letter-spacing: .08em; }
.honey { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1 1 150px; }
.row > .tight { flex: 0 0 auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
nav.tabs button { background: #fff; color: var(--navy); }
nav.tabs button[aria-current=page] { background: var(--navy); color: #fff; }
body.staff { font-size: 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td { overflow-wrap: anywhere; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: var(--navy-tint); }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
.tag { display: inline-block; border-radius: 4px; padding: 0 6px; font-size: .85rem; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month .head { font-weight: 600; color: var(--muted); text-align: center; font-size: .9rem; }
.month button.day {
  background: #fff; color: var(--ink); border: 1px solid var(--line); min-height: 76px; padding: 6px;
  text-align: left; font-weight: 400; display: block; width: 100%;
}
.month button.day:hover { background: var(--navy-tint); }
.month button.day.today { border: 2px solid var(--navy); }
.month .num { font-weight: 700; display: block; }
.month .count {
  display: block; font-size: .82rem; color: var(--ink); overflow-wrap: anywhere;
  border-left: 4px solid var(--muted); padding-left: 4px; margin-top: 2px;
}
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 20px; max-width: 560px; width: 94vw; }
dialog::backdrop { background: rgba(0, 47, 84, .4); }
.hours-grid { display: grid; grid-template-columns: 60px 80px 1fr 1fr; gap: 6px; align-items: center; }
.hours-grid label { margin: 0; font-weight: 500; }
.hours-grid input[type=checkbox] { width: 20px; height: 20px; }
.mail-item { white-space: pre-wrap; overflow-wrap: anywhere; }
td.nowrap { white-space: nowrap; overflow-wrap: normal; }
td button.ghost { padding: 3px 8px; font-weight: 500; text-align: left; }
.month button.day { display: flex; flex-direction: column; justify-content: flex-start; }
.site-head { flex-wrap: wrap; }
.head-text { flex: 1 1 220px; min-width: 0; }
.languages a { white-space: nowrap; }
h3 { color: var(--navy-dark); margin: 16px 0 8px; font-size: 1.05rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.button-link {
  display: inline-block; font-weight: 600; padding: 11px 18px; border-radius: 6px; text-decoration: none;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
}
.button-link.ghost { background: #fff; color: var(--navy); }
.signature {
  display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff;
  border: 1px solid #93a3b0; border-radius: 6px; touch-action: none; cursor: crosshair;
}
select.mark { padding: 6px 8px; min-width: 120px; }
.weekdays { margin-top: 12px; }
#b-days { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.row > .choice.tight { flex: 0 0 auto; }
.choice.tight { padding: 4px 0; margin: 0; }

/* Numbers. One colour, thin bars, rounded at the data end, with a small gap between them. */
.stat-row { display: flex; gap: 14px; margin: 16px 0; flex-wrap: wrap; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 120px; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.chart h3 { margin-top: 0; }
.bars-up { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.bars-up .bar-slot { flex: 1 1 0; min-width: 2px; max-width: 28px; height: 100%; display: flex; align-items: flex-end; }
.bars-up .bar { width: 100%; background: var(--navy); border-radius: 4px 4px 0 0; }
.bars-up .bar-slot:hover .bar, .bars-up .bar-slot:focus .bar { background: var(--navy-dark); }
.bar-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.bar-line { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.bar-name { font-size: .92rem; overflow-wrap: anywhere; }
.bar-count { font-size: .92rem; text-align: right; font-variant-numeric: tabular-nums; }
.bars-side .bar-slot { height: 14px; }
.bars-side .bar { height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.chart details { margin-top: 8px; font-size: .92rem; }
.chart summary { cursor: pointer; color: var(--muted); }
.chart-tip {
  position: absolute; background: var(--ink); color: #fff; font-size: .85rem; padding: 3px 8px; border-radius: 4px;
  pointer-events: none; z-index: 10;
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .demo-banner, nav.tabs, #filter-form, #page-message, .hint, select.mark, .site-head a { display: none !important; }
  .card { border: 0; padding: 0; }
  main, main.wide { max-width: none; padding: 0; }
  td button.ghost { border: 0; padding: 0; background: none; color: inherit; font-weight: 400; }
  tr { break-inside: avoid; }
}
