/* Bezoek de Baby — basisstijl
   Neutrale basis; per gezin worden --main en --soft ingesteld (zie js/common.js). */
:root {
  --bg: #FAF6F0;          /* licht warm beige */
  --surface: #FFFDFA;
  --text: #3B342E;
  --muted: #7A7067;
  --border: #EEE6DB;
  --main: #C9AD80;        /* hoofdkleur (instelbaar): brons uit het logo */
  --main-strong: #8D6F3F; /* automatisch berekend voor contrast */
  --on-strong: #FFFFFF;
  --soft: #F7F1EA;        /* zachte achtergrondkleur (instelbaar) */
  --pink: #F1E7D8;        /* licht zand */
  --blue: #E9DCC7;        /* licht brons (logo-vlak) */
  --yellow: #F6EFE3;      /* crème */
  --green: #D9C4A0;       /* zandbrons */
  --lavender: #DDD5EA;
  --danger: #A6413A;
  --danger-soft: #FBEAE8;
  --ok: #3F7A3B;
  --ok-soft: #E6F2E5;
  --warn: #8A6A12;
  --warn-soft: #FFF6D6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(80, 60, 40, .04), 0 8px 24px rgba(80, 60, 40, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--main-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.2rem; }
.brand-mark { width: 50px; height: 50px; }
.brand-accent { color: #8A6A3E; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 10px 18px; min-height: 44px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--main-strong); color: var(--on-strong);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .15s, background .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #F6F0E8; filter: none; }
.btn-ghost { background: transparent; color: var(--main-strong); padding-inline: 10px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--main) 25%, transparent); filter: none; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #EBC9C5; }
.btn-danger:hover { background: var(--danger-soft); filter: none; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--main-strong) 55%, transparent); outline-offset: 2px; }

/* ---------- formulieren ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .825rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url],
input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--main-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--main) 55%, transparent); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.checkbox { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--main-strong); }

/* ---------- kaarten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-soft { background: var(--soft); border-color: color-mix(in srgb, var(--soft) 70%, var(--border)); box-shadow: none; }
.stack > * + * { margin-top: 16px; }

/* ---------- meldingen ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .925rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--blue); color: #5C4826; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: .925rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: .75rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: #F1EEE9; color: var(--muted); }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-declined, .badge-cancelled { background: #F1EEE9; color: var(--muted); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--main-strong); color: var(--on-strong); font-size: .75rem; font-weight: 700; }

/* ---------- landingspagina ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.deco { position: absolute; width: 46px; height: 46px; color: #C8B7A6; opacity: .55; transform: rotate(var(--r, 0deg)); z-index: 0; pointer-events: none; }
.deco svg { width: 100%; height: 100%; }
.hero-art { width: 100%; max-width: 380px; margin-inline: auto; }
.choice-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: stretch; margin: 8px 0 48px; }
.choice-grid > .card + .card { margin-top: 0; }
.choice-card { display: flex; flex-direction: column; }
.choice-card > :last-child { margin-top: auto; }
.choice-card h2 { display: flex; align-items: center; gap: 10px; }
.icon-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.icon-dot svg { width: 22px; height: 22px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
.step { padding: 20px; border-radius: var(--radius); }
.step-num { font-weight: 700; font-size: .85rem; color: var(--muted); }
.code-input { font-size: 1.3rem !important; letter-spacing: .15em; text-transform: uppercase; text-align: center; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 32px; color: var(--muted); font-size: .875rem; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 65px); display: grid; place-items: center; padding: 32px 0; }
.auth-wrap .card { width: 100%; }
.pw-wrap { position: relative; }
.pw-wrap .btn-ghost { position: absolute; right: 4px; top: 4px; min-height: 36px; font-size: .8rem; }

/* ---------- dashboard ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 24px 0; scrollbar-width: none; }
.tab {
  font: inherit; font-weight: 600; color: var(--muted); background: none; border: none;
  padding: 12px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab[aria-selected=true] { color: var(--text); border-bottom-color: var(--main-strong); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2 > .card + .card { margin-top: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 16px; }
.section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }

.booking { display: grid; gap: 12px; grid-template-columns: auto 1fr auto; align-items: start; padding: 16px 0; border-top: 1px solid var(--border); }
.booking:first-child { border-top: none; padding-top: 0; }
.date-chip { width: 58px; text-align: center; border-radius: 12px; background: var(--soft); padding: 6px 0; line-height: 1.15; }
.date-chip .d { font-size: 1.35rem; font-weight: 700; }
.date-chip .m, .date-chip .w { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.booking .who { font-weight: 650; }
.booking .meta { color: var(--muted); font-size: .9rem; }
.booking .msg { margin-top: 6px; font-size: .925rem; background: #F7F5F1; border-radius: 10px; padding: 8px 10px; }
.booking .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.note-box { grid-column: 1 / -1; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 8px; opacity: .8; }

/* mini-kalender voor dagen kiezen */
.cal { user-select: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: #F6F3EE;
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); position: relative;
}
.cal-day:hover { border-color: var(--main-strong); }
.cal-day.sel { background: var(--main-strong); color: var(--on-strong); font-weight: 700; }
.cal-day.has::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--main-strong); }
.cal-day.sel.has::after { background: var(--on-strong); }
.cal-day:disabled { background: transparent; color: #C9C3BA; cursor: default; border-color: transparent; }
.cal-day.empty-cell { visibility: hidden; }

/* dagoverzicht planning */
.day { padding: 16px 0; border-top: 1px solid var(--border); }
.day:first-child { border-top: none; padding-top: 0; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.day-title { font-weight: 650; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { font-size: .825rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.slot b { font-weight: 650; }
.slot.free { background: color-mix(in srgb, var(--main) 22%, #fff); border-color: color-mix(in srgb, var(--main) 60%, var(--border)); }
.slot.full { background: var(--ok-soft); border-color: #CFE3CD; }
.slot.pending { background: var(--warn-soft); border-color: #F0E1A8; }
.slot.blocked { background: repeating-linear-gradient(-45deg, #F1EEE9, #F1EEE9 6px, #E9E5DF 6px, #E9E5DF 12px); color: var(--muted); }
.slot.past { opacity: .5; }
.day-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 4px 4px 4px 10px; border-radius: 999px; background: #F4F1EC; }
.pill button { border: none; background: transparent; color: var(--muted); cursor: pointer; width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; line-height: 1; }
.pill button:hover { background: var(--danger-soft); color: var(--danger); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--border); }

/* delen */
.share-code { font-size: 2rem; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 18px; border-radius: var(--radius); background: var(--soft); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: .875rem; }

/* kleuren */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px var(--border);
}
.swatch[aria-pressed=true] { box-shadow: 0 0 0 3px var(--text); }
input[type=color] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: none; border-radius: 50%; }
.preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.preview-top { padding: 18px; }
.preview-body { padding: 16px 18px; background: var(--surface); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- bezoekerspagina ---------- */
.visit-hero { background: var(--soft); padding: 40px 0 72px; position: relative; overflow: hidden; }
.visit-hero .deco { color: var(--main-strong); opacity: .22; }
.visit-hero .container { position: relative; z-index: 1; }
.visit-hero .eyebrow { font-weight: 650; color: var(--main-strong); font-size: .9rem; }
.visit-main { margin-top: -44px; position: relative; z-index: 2; padding-bottom: 48px; }
.daylist { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.daybtn {
  flex: none; scroll-snap-align: start; min-width: 78px; padding: 10px 8px; text-align: center;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text);
}
.daybtn .w { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.daybtn .d { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.daybtn .m { font-size: .8rem; color: var(--muted); }
.daybtn[aria-pressed=true] { background: var(--main-strong); border-color: var(--main-strong); color: var(--on-strong); }
.daybtn[aria-pressed=true] .w, .daybtn[aria-pressed=true] .m { color: var(--on-strong); opacity: .85; }
.timegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.timebtn {
  font: inherit; font-weight: 600; padding: 12px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--main) 70%, var(--border)); background: color-mix(in srgb, var(--main) 18%, #fff); color: var(--text);
}
.timebtn:hover { border-color: var(--main-strong); }
.timebtn[aria-pressed=true] { background: var(--main-strong); color: var(--on-strong); border-color: var(--main-strong); }
.summary { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--soft); margin-bottom: 16px; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; }
.status-icon svg { width: 32px; height: 32px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 550; }

@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero .container, .choice-grid, .steps, .grid-2 { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; order: -1; }
  .card { padding: 18px; }
  .booking { grid-template-columns: auto 1fr; }
  .booking .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .header-actions .btn-secondary.hide-sm { display: none; }
  .share-code { font-size: 1.6rem; }
}

/* ---------- babystijl: illustraties ---------- */
.site-header, .site-footer { background: var(--surface); }
.ill { width: 100%; height: auto; overflow: visible; }
.ill-main { fill: var(--main); }
.ill-soft { fill: var(--soft); }

.hero-visual { position: relative; width: 100%; max-width: 400px; margin-inline: auto; }
.hero-visual .hero-art { max-width: none; }
.hero-teddy { position: absolute; width: 30%; left: -8%; bottom: -6%; filter: drop-shadow(0 6px 10px rgba(54,51,46,.10)); }
.hero-stork { position: absolute; width: 46%; left: -30%; top: -12%; z-index: 2; }
.hero-text { position: relative; }

.visit-stork { position: absolute; right: 0; top: 4px; width: min(300px, 42vw); z-index: 1; }
.visit-hero h1, .visit-hero .eyebrow, .visit-hero p { max-width: 60%; }
.auth-teddy { width: 80px; margin: 0 auto -14px; position: relative; z-index: 1; }
.empty .ill-wrap { width: 84px; margin: 0 auto 10px; }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  .float-slow { animation: float 8s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
}
@media (max-width: 760px) {
  .hero-teddy { width: 28%; left: -2%; }
  .hero-visual { max-width: 300px; }
  .hero-stork { width: 40%; left: 0; top: -14%; }
  .visit-stork { width: 150px; top: 8px; right: 12px; }
}
.auth-wrap > div { width: 100%; }
.auth-teddy + .card { padding-top: 32px; }

@media (max-width: 760px) { .deco { width: 34px; height: 34px; } .deco.hide-sm { display: none; } }

/* QR-code */
.qr-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.qr-wrap img { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 6px; }
.qr-side { flex: 1; min-width: 180px; }

/* Taalkeuze */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch button { font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border: 0; background: none; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.lang-switch button[aria-pressed=true] { background: var(--main-strong); color: var(--on-strong); }
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 8px; white-space: nowrap; }
  .brand-mark { width: 40px; height: 40px; }
  .site-header .container { min-height: 64px; gap: 8px; }
  .header-actions { gap: 6px; }
  .lang-switch button { padding: 5px 8px; }
}

/* Wensenlijst */
.gift { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.gift:first-child { border-top: none; padding-top: 4px; }
.gift-title { font-weight: 650; }
.gift-meta { font-size: .875rem; color: var(--muted); }
.gift-meta a { color: var(--main-strong); }
.gift-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.gift-claims { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.gift.taken .gift-title, .gift.taken .gift-meta { opacity: .55; }
.gift.mine { background: color-mix(in srgb, var(--main) 14%, transparent); margin: 0 -12px; padding-inline: 12px; border-radius: 12px; }
.gift-claim-form { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.gift-claim-form input { flex: 1; min-width: 160px; }
.badge-gift { background: var(--blue); color: #5C4826; }

/* Beheer: tegels en staafdiagram */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.tile-label { font-size: .825rem; color: var(--muted); font-weight: 600; }
.tile-value { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.chart-card { margin: 0; }
.chart { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 180px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; transform: translateY(-.5em); }
.chart-y span { line-height: 1; }
.chart-plot { position: relative; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid i { display: block; border-top: 1px solid var(--border); }
.chart-grid i:last-child { border-top-color: #CDBFAE; }
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; outline: none; cursor: default; }
.bar { width: 70%; max-width: 28px; min-height: 0; background: #A06C28; border-radius: 4px 4px 0 0; }
.bar-col:hover .bar, .bar-col:focus .bar { background: #85571C; }
.bar-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 2; }
.bar-col:hover .bar-tip, .bar-col:focus .bar-tip { opacity: 1; }
.bar-col:first-child .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }
.chart-x { display: flex; gap: 2px; margin-left: 28px; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.chart-x span { flex: 1; white-space: nowrap; overflow: visible; }
.data-table { border-collapse: collapse; margin-top: 8px; }
.data-table th, .data-table td { text-align: left; padding: 4px 16px 4px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
