/* Udvidelser til dashboard, administration og den offentlige bookingside. Bruger tokens fra styles.css. */
.muted { color: var(--muted); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.cols { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 1.25rem; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.card-head h3 { margin: 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
a.stat { color: inherit; display: block; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 500; margin-top: 0.2rem; }
.stat-hint { font-size: 0.82rem; color: var(--blue); margin-top: 0.5rem; font-weight: 600; }
.mini-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.mini-row:first-child { border-top: 0; }
.mini-when { text-align: right; font-size: 0.9rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.linkbox { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; overflow-x: auto; }
.linkbox code { font-size: 0.88rem; white-space: nowrap; }
.checklist-title { margin: 1.2rem 0 0.4rem; font-size: 0.95rem; }
.check { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; color: var(--navy); font-size: 0.93rem; }
.check.done { color: var(--muted); }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 0.7rem; color: #fff; flex: none; }
.check.done .tick { background: var(--blue); border-color: var(--blue); }
.side-foot { display: flex; flex-direction: column; gap: 0.6rem; }
.side-user { font-size: 0.8rem; padding: 0 0.6rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) { .side-foot { flex-direction: row; align-items: center; } }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #bd2236; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: #fdecef; }
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty p { margin: 0 auto 1.2rem; max-width: 380px; }

/* Ydelser */
.service { display: flex; justify-content: space-between; gap: 1.2rem; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; }
.service.inactive, .booking.inactive { opacity: 0.6; }
.service-main { flex: 1; min-width: 220px; }
.service-main h3 { margin: 0 0 0.2rem; }
.service-main p { margin: 0 0 0.4rem; }
.service-meta { display: flex; gap: 1rem; color: var(--muted); }
.service-meta strong { color: var(--navy); }
.service-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.slider { position: absolute; inset: 0; border-radius: 99px; background: #cdd5e4; transition: background 0.2s; }
.slider::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease); }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 3px solid rgba(33, 98, 231, 0.35); outline-offset: 2px; }
.check-inline { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.2rem; cursor: pointer; }

/* Formularer */
.field select, .field input[type=time], .field input[type=date], .field input[type=search], .field input[type=number] {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--navy);
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 98, 231, 0.14); }
.form-card { max-width: 720px; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.slug-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 98, 231, 0.14); }
.slug-input span { color: var(--muted); background: var(--bg-soft); padding: 0.75rem 0.2rem 0.75rem 0.9rem; white-space: nowrap; font-size: 0.92rem; display: flex; align-items: center; }
.slug-input input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(16, 26, 50, 0.5); display: grid; place-items: center; padding: 1rem; overflow-y: auto; animation: fade 0.2s; }
.modal { background: #fff; border-radius: 18px; padding: 1.6rem; width: min(520px, 100%); box-shadow: var(--shadow-md); animation: rise 0.3s var(--ease); }
.modal h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-head h3 { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.icon-btn { border: 0; background: var(--bg-soft); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; padding: 0.8rem 1.3rem; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 500; box-shadow: var(--shadow-md); transition: opacity 0.25s, transform 0.25s var(--ease); max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--danger); }

/* Åbningstider */
.hours-row { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hours-row .day { width: 90px; }
.hours-row .times { display: flex; align-items: center; gap: 0.5rem; }
.hours-row input[type=time] { padding: 0.55rem 0.7rem; font: inherit; border: 1px solid var(--border); border-radius: 10px; }
.special-form { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.special-form .field { margin: 0; }
.special-form .field input, .special-form .field select { width: auto; }
.special { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--border); }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 0.9rem 0; background: linear-gradient(transparent, var(--bg-soft) 30%); flex-wrap: wrap; }

/* Bookinger */
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: #e8ecf4; border-radius: 12px; margin-bottom: 1rem; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--muted); padding: 0.5rem 1.1rem; border-radius: 9px; cursor: pointer; }
.tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.filters { display: grid; gap: 0.8rem; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; margin-bottom: 1rem; }
.filters .field { margin: 0; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
.booking { display: grid; grid-template-columns: 150px 1fr auto; gap: 1.2rem; align-items: center; margin-bottom: 0.8rem; }
.booking-date { font-weight: 600; font-size: 0.92rem; text-transform: capitalize; }
.booking-time { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); }
.booking-contact { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; margin-top: 0.2rem; }
.booking-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .booking { grid-template-columns: 1fr; gap: 0.7rem; } .booking-actions { justify-content: flex-start; } }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.65rem; border-radius: 99px; vertical-align: middle; }
.status-pending { background: #fff3d6; color: #8a5a00; }
.status-confirmed { background: #e0ecff; color: #1b4fc0; }
.status-completed { background: #dff5e8; color: #14663a; }
.status-cancelled { background: #fde4e8; color: #9d1c2d; }

/* Offentlig bookingside */
.public-page { background: var(--bg-soft); min-height: 100vh; }
.pub-wrap { width: min(760px, 100% - 2rem); margin-inline: auto; }
.pub-hero { color: #fff; padding: 2.2rem 0 4.5rem; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 55%, #4a93f6 100%); }
.pub-hero .pub-wrap { display: flex; gap: 1.2rem; align-items: center; }
.pub-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.3rem; }
.pub-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: #fff; flex: none; }
.pub-desc { color: #e3efff; margin: 0 0 0.6rem; }
.pub-meta { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; color: #d3e6ff; font-size: 0.92rem; }
.pub-main { margin-top: -2.8rem; padding-bottom: 2rem; position: relative; }
.step { margin-bottom: 1rem; animation: rise 0.4s var(--ease); }
.step h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 0.85rem; flex: none; }
.options { display: grid; gap: 0.6rem; }
.option { display: flex; justify-content: space-between; gap: 1rem; text-align: left; width: 100%; padding: 1rem 1.1rem; font: inherit; color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.option:hover { border-color: var(--blue-light); transform: translateY(-1px); }
.option.selected { border-color: var(--blue); background: #f2f7ff; }
.option-main, .option-side { display: flex; flex-direction: column; gap: 0.15rem; }
.option-side { text-align: right; white-space: nowrap; }
.days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity; }
.day-btn { flex: none; width: 66px; padding: 0.6rem 0; display: flex; flex-direction: column; align-items: center; font: inherit; color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; scroll-snap-align: start; transition: border-color 0.2s, background 0.2s; }
.day-btn:hover { border-color: var(--blue-light); }
.day-btn.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.day-btn .dow, .day-btn .mon { font-size: 0.78rem; text-transform: capitalize; opacity: 0.75; }
.day-btn .dom { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.other-date { margin: 0.8rem 0 0; max-width: 260px; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; min-height: 40px; }
.time-btn { padding: 0.7rem 0; font: inherit; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.time-btn:hover { border-color: var(--blue-light); }
.time-btn.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.summary { display: grid; gap: 0.4rem; background: var(--bg-soft); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; }
.done { text-align: center; animation: rise 0.4s var(--ease); }
.done .summary { text-align: left; margin: 1.2rem 0; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #dff5e8; color: #14663a; font-size: 2rem; display: grid; place-items: center; }
.pub-foot .logo img { height: 20px; display: inline-block; vertical-align: middle; margin-left: 0.3rem; }
.pub-foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1rem 0 2rem; }
.side-foot .btn { white-space: nowrap; }
@media (max-width: 820px) { .side-user { display: none; } .sidebar .logo { flex: 1; } }

/* Kategorier */
.cat { margin-bottom: 1.8rem; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.cat-head h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.cat-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.cat-empty { padding: 0.8rem 1rem; border: 1px dashed var(--border); border-radius: 12px; margin: 0; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn:not(:disabled):hover { background: #e3e8f1; }
.opt-group { margin-bottom: 1.2rem; }
.opt-group:last-child { margin-bottom: 0; }
.opt-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.5rem; }

/* Medarbejdere */
.modal.wide { width: min(760px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: #e6efff; color: var(--blue); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.staff-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.chip { background: #e6efff; color: var(--blue); border-radius: 99px; padding: 0.15rem 0.7rem; font-size: 0.8rem; font-weight: 600; }
.chip.warn { background: #fff3d6; color: #8a5a00; }
.checks { display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.checks label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--blue); background: #f2f7ff; }
.filters { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.filters .field:first-child { grid-column: span 2; }
.hours-editor .card h3 { margin-bottom: 0.6rem; }
.special-form input, .special-form select { padding: 0.65rem 0.8rem; font: inherit; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.option .opt-left { display: flex; align-items: center; gap: 0.8rem; }
.option .avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }

/* Select-felter (fx fristen under Indstillinger) i samme stil som øvrige inputs */
.staff-toggle select, .an-controls select, .field select, .filters select {
  appearance: none; -webkit-appearance: none;
  padding: 0.7rem 2.4rem 0.7rem 1rem; font: inherit; font-weight: 600; color: var(--navy);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232162E7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.staff-toggle select:hover, .an-controls select:hover, .field select:hover, .filters select:hover { border-color: var(--blue-light); background-color: #f8fbff; }
.staff-toggle select:focus, .an-controls select:focus, .field select:focus, .filters select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 98, 231, 0.14); }
.staff-toggle select option { font-weight: 500; }
@media (max-width: 640px) { .staff-toggle { flex-wrap: wrap; } .staff-toggle select { width: 100%; } }

/* Indstillinger i to kolonner (på brede skærme) */
.settings-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.settings-cols .form-card { max-width: none; }
@media (max-width: 1100px) { .settings-cols { grid-template-columns: minmax(0, 1fr); } }

/* Hjemmeside-siden */
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.soft-hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
.copy-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 0.25rem 0.7rem; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--blue); cursor: pointer; flex: none; transition: background 0.2s; }
.copy-btn:hover { background: #eef4ff; }
.domain-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.domain-form input { flex: 1; min-width: 200px; padding: 0.7rem 0.9rem; font: inherit; border: 1px solid var(--border); border-radius: 10px; }
.domain-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 98, 231, 0.14); }
.domain-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.domain-name { font-size: 1.15rem; word-break: break-all; }
.steps-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; display: grid; gap: 0.4rem; }
.dns-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.dns-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
.dns-table th { text-align: left; padding: 0.55rem 0.8rem; background: var(--bg-soft); color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dns-table td { padding: 0.7rem 0.8rem; border-top: 1px solid var(--border); vertical-align: top; }
.dns-table small { display: block; font-size: 0.75rem; word-break: break-all; }
.dns-table .val { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.84rem; word-break: break-all; }
.dns-table td.ok { text-align: center; width: 36px; }
.dns-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.78rem; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.dns-ok.yes { background: #dff5e8; color: #14663a; }
.checks-list { display: grid; gap: 0.4rem; }
.checks-list > div { display: flex; align-items: center; gap: 0.5rem; }

.field label.check-inline { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; margin: 0.45rem 0; cursor: pointer; }
.field .check-inline input[type=checkbox] { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--blue); }

/* Medarbejder-adgang (Indstillinger) */
.team-list { margin-top: 1rem; }
.team-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.team-main { flex: 1; min-width: 220px; }
.team-mail { font-size: 0.88rem; overflow-wrap: anywhere; }
.team-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.perm-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.perm-grid label.perm { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 500; margin: 0; }
.perm-grid label.perm:has(input:checked) { border-color: var(--blue); background: #f2f7ff; }
.perm-grid label.perm input { width: 18px; height: 18px; padding: 0; flex: none; margin-top: 0.15rem; accent-color: var(--blue); }
.perm-grid label.perm span { display: flex; flex-direction: column; gap: 0.1rem; }

/* Hjemmeside: egne tekstafsnit med billeder */
.sec-list { display: grid; gap: 1rem; }
.sec-card { border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem 0.4rem; background: #fbfcff; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.sec-tools { display: flex; gap: 0.3rem; }
.sec-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sec-thumb { position: relative; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); display: grid; place-items: center; }
.sec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sec-thumb .bg-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(16, 26, 50, 0.75); color: #fff; cursor: pointer; line-height: 1; font-size: 1rem; }
.sec-add { width: 96px; height: 72px; border: 2px dashed var(--border); border-radius: 12px; background: #fff; color: var(--blue); font-size: 1.6rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.sec-add:hover { border-color: var(--blue); background: #f2f7ff; }
