:root {
  --ink: #20202a;
  --muted: #62626c;
  --blue-950: #050556;
  --blue-800: #000080;
  --blue-700: #0000aa;
  --blue-500: #4646d5;
  --blue-100: #e1e1ff;
  --blue-50: #f4f4ff;
  --red: #e30613;
  --paper: #ffffff;
  --surface: #f5f5f5;
  --line: #dedee7;
  --success: #087a52;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(5, 5, 86, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Poppins, Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-700); }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: #fff; color: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 14px max(24px, calc((100vw - 1160px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(222,222,231,.9); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand img { width: clamp(190px, 24vw, 270px); height: auto; display: block; }
.brand-context { padding-left: .9rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.25; }
.header-link, .header-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue-700); background: #fff; border: 2px solid var(--blue-700); border-radius: 6px; font-weight: 700; text-decoration: none; }
.header-link:hover, .header-button:hover { color: #fff; background: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { min-height: 44px; padding: 0 8px 0 11px; display: flex; align-items: center; gap: 4px; color: var(--blue-700); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.language-picker select { width: auto; min-height: 42px; margin: 0; padding: 0 28px 0 6px; border: 0; box-shadow: none; color: var(--blue-800); background-color: transparent; font-weight: 800; }
.intro { min-height: 620px; padding-block: 72px 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); align-items: center; gap: clamp(40px, 7vw, 88px); }
.eyebrow { margin: 0 0 .8rem; color: var(--blue-700); font-size: .76rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
.intro h1 { margin-bottom: 1.35rem; font-size: clamp(2.7rem, 5.8vw, 5.2rem); max-width: 720px; }
.intro h1 span { color: var(--blue-700); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 650px; }
.hero-button { width: auto; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hero-facts { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hero-facts div { padding-left: 14px; display: grid; border-left: 3px solid var(--red); }
.hero-facts strong { font-size: .88rem; }
.hero-facts span { color: var(--muted); font-size: .78rem; }
.campaign-visual { width: 100%; margin: 0; }
.campaign-image-wrap { height: 510px; overflow: hidden; background: var(--blue-950); border: 6px solid #fff; border-radius: 34px 34px 34px 10px; box-shadow: 0 30px 80px rgba(5,5,86,.2); animation: mascot-float 5s ease-in-out infinite; }
.campaign-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 23%; }
.campaign-visual figcaption { width: calc(100% - 34px); margin: -28px 0 0 34px; padding: 16px 18px; position: relative; color: #fff; background: var(--blue-700); border-radius: 12px 12px 12px 3px; box-shadow: 0 16px 36px rgba(5,5,86,.18); font-size: .82rem; }
.campaign-visual figcaption strong { display: block; }
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-9px) rotate(.4deg); } }
.schedule-overview { margin-bottom: 34px; padding: 30px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr); gap: 30px; color: #fff; background: linear-gradient(120deg, var(--blue-950), var(--blue-700)); border-radius: var(--radius); box-shadow: var(--shadow); }
.schedule-overview .eyebrow { color: #bfbfff; }
.schedule-overview h2 { margin-bottom: .65rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.schedule-overview-heading > p:last-child { margin: 0; color: #e1e1ff; font-size: .88rem; }
.schedule-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.schedule-cards article { padding: 20px; display: grid; align-content: center; gap: 7px; color: var(--ink); background: #fff; border-radius: 14px; }
.schedule-cards span { margin-bottom: 4px; color: var(--blue-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.schedule-cards strong { font-size: .9rem; }
.booking-shell { margin-bottom: 88px; padding: 42px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--blue-700); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 122px; }
.section-heading, .slot-heading, .dashboard-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.section-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.step-indicator { display: flex; gap: 1rem; padding: 0; margin: 0; list-style: none; color: #8798a8; font-size: .82rem; font-weight: 700; }
.step-indicator li { display: flex; align-items: center; gap: .45rem; }
.step-indicator b { font-weight: 700; }
.step-indicator span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.step-indicator li.active { color: var(--blue-800); }
.step-indicator li.active span { color: #fff; background: var(--blue-800); border-color: var(--blue-800); }
.status-message { margin-top: 28px; padding: 16px 18px; color: var(--muted); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; }
.language-help { margin-top: 28px; padding: 18px 20px; color: #563b00; background: #fff8e6; border: 1px solid #e7c974; border-radius: 12px; }
.language-help strong { display: block; margin-bottom: 5px; }
.language-help p { margin: 0; font-size: .9rem; }
.status-message.error, .form-error { color: #8a1c13; background: #fff1f0; border-color: #fecaca; }
.scheduler { padding-top: 32px; display: grid; gap: 32px; }
.scheduler h3 { margin-bottom: 14px; font-size: 1.05rem; }
.date-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.date-button { min-height: 132px; padding: 15px 8px; display: grid; justify-items: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .18s ease; }
.date-button:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.date-button span { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.date-button strong { font-size: 1.65rem; line-height: 1; }
.date-button small { color: var(--muted); }
.date-button em { padding: .2rem .5rem; color: var(--success); background: #e8f8f2; border-radius: 999px; font-size: .7rem; font-style: normal; font-weight: 800; }
.date-button.selected { color: #fff; background: var(--blue-700); border-color: var(--blue-700); box-shadow: 0 12px 24px rgba(0,0,170,.2); }
.date-button.selected span, .date-button.selected small { color: #e4e4ff; }
.date-button.selected em { color: #fff; background: rgba(255,255,255,.15); }
.slot-heading span { color: var(--muted); font-size: .9rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.slot-button { min-height: 48px; color: var(--blue-800); background: #fff; border: 1px solid #b9d8e9; border-radius: 11px; font-weight: 800; }
.slot-button:hover, .slot-button.selected { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.booking-form { padding-top: 32px; }
.selection-summary { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: white; background: var(--blue-950); border-radius: 14px; }
.selection-summary div { display: grid; }
.selection-summary span { color: #d8d8ff; font-size: .78rem; }
.selection-summary strong { font-size: 1.07rem; }
.text-button { padding: .45rem; color: #fff; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.form-heading { margin: 34px 0 22px; }
.form-heading h3 { margin-bottom: .45rem; font-size: 1.55rem; }
.form-heading p:last-child { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { color: #263f55; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; margin-top: 7px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid #b9c9d6; border-radius: 10px; outline: none; }
textarea { padding-block: 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(70,70,213,.14); }
.wide { grid-column: 1 / -1; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.checkbox-row { margin: 24px 0; display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-weight: 500; }
.checkbox-row input { width: 20px; min-height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.primary-button, .secondary-button { min-height: 50px; padding: 0 22px; border-radius: 11px; font-weight: 800; border: 1px solid transparent; }
.primary-button { color: #fff; background: var(--blue-700); box-shadow: 0 10px 22px rgba(0,0,170,.18); }
.primary-button:hover { background: var(--blue-950); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { color: var(--blue-700); background: #fff; border-color: #b8b8e4; }
.secondary-button.compact, .primary-button.compact { min-height: 44px; }
.form-note, .dialog-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.form-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: .88rem; }
.form-success { margin: 16px 0 0; padding: 12px 14px; color: #176b3a; background: #eefbf3; border: 1px solid #b7e4c7; border-radius: 10px; font-size: .88rem; }
.success-panel { max-width: 620px; margin: 34px auto 0; padding: 48px 24px 24px; text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 2rem; }
.success-panel h2 { font-size: 2.2rem; }
.success-date { color: var(--blue-800); font-size: 1.15rem; font-weight: 800; }
.reference-box { width: min(340px, 100%); margin: 24px auto; padding: 16px; display: grid; background: var(--blue-50); border: 1px dashed var(--blue-500); border-radius: 12px; }
.reference-box span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.reference-box strong { font-size: 1.8rem; letter-spacing: .08em; }
.help-band { padding: 70px 0; color: #fff; background: linear-gradient(120deg, var(--blue-950), var(--blue-700)); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 60px; }
.help-band .eyebrow { color: #bfbfff; }
.help-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.help-band p:last-child { margin: 0; color: #e1e1ff; font-size: 1.08rem; }
.site-footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .86rem; }
.site-footer nav { display: flex; gap: 1.2rem; }
.pharmazento-credit {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 20;
  margin: 0;
  padding: 4px 7px;
  color: #66737d;
  background: rgba(255,255,255,.86);
  border-radius: 6px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .72;
  pointer-events: none;
}
.legal-page { max-width: 820px; padding-block: 72px; }
.legal-page h1 { margin-bottom: 2rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.legal-page section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal-page h2 { font-size: 1.3rem; }
.legal-page p { color: var(--muted); }
.legal-warning { margin: 0 0 24px; padding: 20px; color: #7a4b00; background: #fff7df; border: 1px solid #efd392; border-radius: 14px; }
.legal-warning p { margin: .4rem 0 0; color: #7a4b00; }
.admin-body { min-height: 100vh; }
.admin-main { padding-block: 54px 90px; }
.login-card { width: min(460px, 100%); margin: 4vh auto; padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.4rem; }
.login-card > p:not(.eyebrow) { color: var(--muted); }
.stack-form { display: grid; gap: 18px; margin-top: 28px; }
.dashboard-heading { margin-bottom: 34px; }
.dashboard-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dashboard-heading h1 { margin-bottom: .4rem; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.dashboard-heading p:last-child { margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats-grid article { padding: 24px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.stats-grid span, .stats-grid small { color: var(--muted); }
.stats-grid strong { margin: 8px 0; font-size: 2.4rem; line-height: 1; }
.toolbar { margin: 28px 0 18px; padding: 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; }
.toolbar label { min-width: 220px; }
.toolbar select { min-height: 44px; }
.toolbar-fields, .toolbar-actions { display: flex; align-items: end; gap: 12px; }
.email-settings-card { margin: 18px 0 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.email-settings-card summary { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.email-settings-card summary::-webkit-details-marker { display: none; }
.email-settings-card summary span:first-child { display: grid; gap: 3px; }
.email-settings-card summary small { color: var(--muted); font-weight: 500; }
.email-settings-card summary > span:last-child { color: var(--blue-700); font-size: 1.8rem; line-height: 1; transform: rotate(90deg); transition: transform .18s ease; }
.email-settings-card[open] summary > span:last-child { transform: rotate(-90deg); }
.email-settings-form { padding: 22px 20px 20px; border-top: 1px solid var(--line); }
.email-settings-form .form-note { margin: -8px 0 2px; }
.email-settings-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.appointments-list { display: grid; gap: 26px; margin-top: 24px; }
.appointment-day { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.appointment-day-heading { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; background: var(--blue-950); color: #fff; }
.appointment-day-heading h2 { margin: 0; font-size: 1.15rem; }
.appointment-day-heading span { color: #d8d8ff; font-size: .8rem; }
details.appointment-day > summary { cursor: pointer; list-style: none; }
details.appointment-day > summary::-webkit-details-marker { display: none; }
.appointment-day-chevron { display: inline-block; margin-left: .4rem; color: #fff; font-size: 1.25rem; line-height: .7; transform: rotate(0deg); transition: transform .18s ease; }
details.appointment-day[open] .appointment-day-chevron { transform: rotate(90deg); }
.closed-day-tools { padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.closed-day-tools p { margin: 0; color: #9a3412; font-size: .82rem; font-weight: 700; }
.appointment-table-wrap { overflow-x: auto; }
.appointment-table { width: 100%; border-collapse: collapse; text-align: left; }
.appointment-table th { padding: 12px 16px; color: var(--muted); background: #f6f9fb; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.appointment-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: .88rem; }
.appointment-table td strong, .appointment-table td small { display: block; }
.appointment-table td small { margin-top: 3px; color: var(--muted); }
.language-badge { width: fit-content; margin-top: 6px; padding: 2px 7px; display: block; color: #4c3400; background: #fff0b8; border: 1px solid #d6b649; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.appointment-table td a { color: var(--ink); text-decoration: none; }
.corona-special-list { margin-top: 10px; border-color: #e4b4b0; }
.corona-special-list .appointment-day-heading { background: #7f1d1d; }
.corona-heading-copy { display: grid; gap: 2px; }
.corona-heading-copy > span { color: #fecaca; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.corona-badge { display: inline-block; padding: .28rem .55rem; color: #fff; background: #b42318; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.status-pill { display: inline-block; padding: .3rem .55rem; border-radius: 999px; color: var(--blue-800); background: var(--blue-100); font-size: .72rem; font-weight: 800; }
.status-pill.cancelled { color: var(--danger); background: #feeceb; }
.status-pill.completed { color: var(--success); background: #e8f8f2; }
.status-pill.no_show { color: #7a4b00; background: #fff3d7; }
.actions-cell { white-space: nowrap; }
.row-action { padding: .35rem .5rem; color: var(--blue-800); background: transparent; border: 0; font-weight: 700; font-size: .78rem; }
.row-action.danger { color: var(--danger); }
.empty-card { padding: 44px; text-align: center; background: #fff; border: 1px dashed #b9c9d6; border-radius: 16px; }
.empty-card p { margin: .4rem 0 0; color: var(--muted); }
.appointment-dialog { width: min(700px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 100px rgba(6,47,75,.32); }
.appointment-dialog::backdrop { background: rgba(6,47,75,.55); backdrop-filter: blur(4px); }
.feedback-dialog textarea { min-height: 165px; }
.feedback-intro { margin: -8px 0 22px; color: var(--muted); }
.feedback-warning { margin: 18px 0 0; padding: 12px 14px; color: #7a4b00; background: #fff7df; border: 1px solid #efd392; border-radius: 10px; font-size: .82rem; font-weight: 700; }
.feedback-dialog .checkbox-row { margin-bottom: 0; }
.feedback-dialog .form-success { margin-top: 8px; padding: 18px; text-align: center; font-weight: 700; }
.feedback-header-button { white-space: nowrap; }
.dialog-card { padding: 30px; }
.dialog-heading { margin-bottom: 24px; }
.dialog-heading h2 { margin: 0; font-size: 1.8rem; }
.icon-button { width: 42px; height: 42px; color: var(--muted); background: #edf3f7; border: 0; border-radius: 50%; font-size: 1.6rem; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.print-only { display: none; }

@media (max-width: 780px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-header { min-height: 82px; padding: 12px 16px; }
  .brand img { width: 142px; }
  .feedback-header-button { min-height: 40px; padding-inline: 10px; font-size: .76rem; }
  .brand-context { display: none; }
  .header-actions { gap: 5px; }
  .header-link { display: none; }
  .language-picker { min-height: 40px; padding-inline: 7px; }
  .language-picker select { max-width: 108px; min-height: 38px; font-size: .78rem; }
  .intro { padding-block: 52px 34px; grid-template-columns: 1fr; gap: 28px; }
  .intro h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .campaign-visual { width: min(370px, 100%); margin-inline: auto; }
  .campaign-image-wrap { height: 450px; }
  .schedule-overview, .schedule-cards { grid-template-columns: 1fr; }
  .schedule-overview { padding: 24px 18px; }
  .booking-shell { padding: 24px 16px; margin-bottom: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .step-indicator { width: 100%; justify-content: space-between; gap: .3rem; }
  .step-indicator li { font-size: .72rem; }
  .date-list { grid-template-columns: repeat(4, minmax(88px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .date-button { min-width: 88px; }
  .slot-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .form-grid, .help-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .primary-button { width: 100%; }
  .help-band { padding: 52px 0; }
  .site-footer { padding-block: 28px; align-items: flex-start; flex-direction: column; }
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar, .toolbar-fields, .toolbar-actions { align-items: stretch; flex-direction: column; }
  .toolbar label { min-width: 0; }
  .toolbar-actions button { width: 100%; }
  .email-settings-actions button { width: 100%; }
  .appointment-table thead { display: none; }
  .appointment-table, .appointment-table tbody, .appointment-table tr, .appointment-table td { display: block; width: 100%; }
  .appointment-table .print-only { display: none; }
  .appointment-table tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .appointment-table td { padding: 7px 0 7px 110px; border: 0; position: relative; }
  .appointment-table td::before { content: attr(data-label); position: absolute; left: 0; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
  .appointment-table .actions-cell { padding-left: 0; }
  .dialog-card { padding: 24px 18px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

html[dir="rtl"] body { font-family: Arial, Tahoma, sans-serif; }
html[dir="rtl"] .brand-context, html[dir="rtl"] .hero-facts div { padding-left: 0; padding-right: .9rem; border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .hero-facts div { border-right: 3px solid var(--red); }
html[dir="rtl"] .campaign-visual figcaption { margin-left: 0; margin-right: 34px; }
html[dir="rtl"] input { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  * { box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html, body { width: auto; min-width: 0; }
  body { color: #111; background: #fff; font-size: 9pt; }
  .site-header, .dashboard-heading, .stats-grid, .toolbar, #admin-message, .appointment-dialog, .screen-only, .pharmazento-credit { display: none !important; }
  .admin-main, .shell { width: 100%; margin: 0; padding: 0; }
  #admin-panel { display: block !important; }
  .print-header { margin-bottom: 4mm; display: flex !important; align-items: center; justify-content: space-between; gap: 8mm; border-bottom: 1.5px solid var(--blue-700); padding-bottom: 3mm; }
  .print-header img { width: 54mm; height: auto; flex: 0 0 auto; }
  .print-header div { min-width: 0; text-align: right; }
  .print-header p, .print-header h1, .print-header span { margin: 0; }
  .print-header p { color: var(--blue-700); font-size: 8pt; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  .print-header h1 { margin-block: 1mm; font-size: 14pt; line-height: 1.15; white-space: nowrap; }
  .appointments-list { display: block; margin: 0; }
  .appointment-day { display: none; border: 0; border-radius: 0; }
  .appointment-day.print-target { display: block; }
  .appointment-day-heading { display: none; }
  .appointment-table-wrap { overflow: visible; }
  .appointment-table { display: table !important; width: 100% !important; table-layout: fixed; border-collapse: collapse; }
  .appointment-table thead { display: table-header-group !important; }
  .appointment-table tbody { display: table-row-group !important; }
  .appointment-table tr { display: table-row !important; width: auto !important; padding: 0 !important; border: 0 !important; break-inside: avoid; page-break-inside: avoid; }
  .appointment-table th, .appointment-table td { display: table-cell !important; width: auto; position: static !important; vertical-align: top; overflow-wrap: anywhere; }
  .appointment-table th.screen-only, .appointment-table td.screen-only { display: none !important; }
  .appointment-table td::before { display: none !important; content: none !important; }
  .appointment-table th { padding: 1.8mm 1.4mm; color: #222; background: #eeeeff; border-bottom: 1px solid #999; font-size: 7pt; }
  .appointment-table td { padding: 1.8mm 1.4mm; border-top: 1px solid #bbb; font-size: 8pt; line-height: 1.2; }
  .appointment-table th:first-child, .appointment-table td:first-child { width: 20mm; }
  .appointment-table th:nth-child(2), .appointment-table td:nth-child(2) { width: 41mm; }
  .appointment-table th:nth-child(3), .appointment-table td:nth-child(3) { width: 34mm; }
  .appointment-table th:nth-child(4), .appointment-table td:nth-child(4) { width: 20mm; }
  .appointment-table th:nth-child(5), .appointment-table td:nth-child(5) { width: 22mm; }
  .appointment-table td a { color: #111; }
  .appointment-table td.print-only, .appointment-table th.print-only { display: table-cell !important; width: auto; }
  .appointment-table .status-pill { padding: 0; color: #111; background: transparent; border-radius: 0; font-size: 8pt; font-weight: 700; }
  .language-badge { margin-top: 1mm; padding: 0; color: #111; background: transparent; border: 0; border-radius: 0; font-size: 7pt; white-space: normal; }
  .print-note-cell::after { content: ""; display: block; min-height: 3mm; border-bottom: 1px solid #777; }
  .corona-special-list.print-target { display: block !important; margin-top: 5mm; border-top: 1.5px solid #7f1d1d; }
  .corona-special-list .appointment-day-heading { display: flex !important; padding: 2.5mm 1.4mm; color: #111; background: #fce8e6; border-bottom: 1px solid #b42318; }
  .corona-special-list .appointment-day-heading span { color: #7f1d1d; }
  .corona-special-list .appointment-table tbody tr { display: none !important; }
  .corona-special-list .appointment-table tbody tr.print-target { display: table-row !important; }
  .corona-special-list .corona-badge { padding: 0; color: #7f1d1d; background: transparent; border-radius: 0; font-size: 8pt; }
  .print-footer { display: block !important; margin: 4mm 0 0; padding-top: 2mm; border-top: 1px solid #999; color: #555; font-size: 7pt; }
}
