:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e6ee;
  --border2: #d7d7e3;
  --soft: #f1f5f9;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow2: 0 6px 16px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: radial-gradient(
      1200px 700px at 10% -10%,
      rgba(79, 70, 229, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 95% 0%,
      rgba(14, 165, 233, 0.08),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}

/* Layout */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100dvh;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(99, 102, 241, 1));
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}
.brand h1 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.brand .sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}
.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
}
.chip-badge strong {
  color: var(--text);
}

/* Sidebar */
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.sidecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow2);
}
.nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin: 6px 8px 10px;
  text-transform: uppercase;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  transition: background 0.15s ease, transform 0.05s ease;
  text-align: left;
  font-size: 14px;
}
nav button:hover {
  background: #f8fafc;
}
nav button:active {
  transform: scale(0.99);
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}
nav button.active {
  background: var(--primary-soft);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.15);
}
nav button.active .nav-dot {
  background: var(--primary);
}

.side-footer {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.55);
  color: var(--muted);
  background: rgba(248, 250, 252, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

/* Main */
main {
  padding: 18px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  flex-wrap: wrap;
}
.page-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
textarea {
  min-height: 96px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  background: #f8fafc;
}
.btn:active {
  transform: scale(0.99);
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}
.btn.primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}
.btn.small {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 999px;
}

hr {
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin: 16px 0;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
}

/* Tables */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow2);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  position: sticky;
  top: 0;
  background: #fbfcff;
  z-index: 1;
  text-align: left;
  padding: 11px 12px;
  font-size: 12px;
  color: #475569;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 11px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 14px;
  vertical-align: top;
}
tbody tr:hover {
  background: #fbfdff;
}

/* Chips picker UI */
.picker {
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}
.picker-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.picker-top input[type="search"] {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.9);
  flex: 1;
}
.picker-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  padding-right: 4px;
}
.chip {
  user-select: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.05s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.chip:active {
  transform: scale(0.98);
}
.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 2px solid #cbd5e1;
  background: transparent;
}
.chip.selected {
  border-color: rgba(79, 70, 229, 0.25);
  background: var(--primary-soft);
  font-weight: 700;
}
.chip.selected .dot {
  border-color: var(--primary);
  background: var(--primary);
}
.chip-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}

/* Media carousel (foto/video slider) */
.media-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.media-stage {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
}
.media-dot.active {
  border-color: var(--primary);
  background: var(--primary);
}

/* ===== Week rooster grid ===== */
.rooster-week {
  margin-top: 10px;
}
.rooster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rooster-actions {
  display: flex;
  gap: 8px;
}
.rooster-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.rooster-day {
  background: #fafafe;
  border: 1px solid var(--border, #e6e6ee);
  border-radius: 14px;
  padding: 10px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.rooster-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rooster-day-name {
  font-weight: 800;
  font-size: 13px;
}

.rooster-day-date {
  font-size: 12px;
  opacity: 0.65;
}

.shift {
  border-radius: 12px;
  padding: 10px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.2;
}

.shift-time {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
}

.shift-time .shift-name {
  text-align: right;
  max-width: 55%;
  word-break: break-word;
}

.shift-meta {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.shift.green {
  background: #4ade80;
}
.shift.teal {
  background: #2dd4bf;
}
.shift.yellow {
  background: #fde68a;
}
.shift.orange {
  background: #fdba74;
}
.shift.blue {
  background: #93c5fd;
}

.rooster-empty {
  margin-top: auto;
  font-size: 12px;
  opacity: 0.55;
  padding-top: 8px;
}

/* Niet ingepland */
.shift.not-planned {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.shift.not-planned .np-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shift.not-planned .np-title {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
}

.shift.not-planned .np-name {
  font-weight: 800;
  font-size: 13px;
  text-align: right;
  max-width: 55%;
  word-break: break-word;
  line-height: 1.15;
}

.shift.not-planned .np-sub {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.2;
}

.shift.not-planned .shift-time,
.shift.not-planned .shift-meta {
  display: none !important;
}

/* ===== Toast notificaties: altijd rechts onder in viewport ===== */
.toast-container {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  top: auto !important;
  left: auto !important;
  z-index: 99999 !important;

  display: flex;
  flex-direction: column;
  gap: 12px;

  pointer-events: none;
}

.toast {
  min-width: 340px;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 16px 16px;
  pointer-events: auto;
  backdrop-filter: blur(12px);

  display: flex;
  align-items: flex-start;
  gap: 14px;

  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: toastIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;

  position: relative;
}

.toast.is-hiding {
  animation: toastOut 220ms ease forwards;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: var(--primary);
}

.toast-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  margin-top: 1px;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 4px;
  line-height: 1.2;
  color: var(--text);
}

.toast-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.toast-close {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  margin: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.toast-close:hover {
  background: #f8fafc;
  color: var(--text);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 640px) {
  .toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 14px 14px;
  }

  .toast-title {
    font-size: 15px;
  }

  .toast-text {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-hiding {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================
   UIT HTML GEHAALDE CSS
   ========================= */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Extra animaties uit HTML */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes flash {
  0% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  30% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
  }
  100% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bodyFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: bodyFade 420ms ease both;
}

.btn,
button.tab {
  transition: transform 140ms ease, filter 140ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.btn:hover,
button.tab:hover {
  transform: translateY(-1px);
}

.btn:active,
button.tab:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn.primary:focus-visible,
button.tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

button.tab.active {
  transform: translateY(-1px);
}

.panel.is-animating-in {
  animation: panelIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chip-badge.is-popping {
  animation: pop 260ms ease both;
}

.card.is-flashing {
  animation: flash 520ms ease both;
  border-radius: 16px;
}

tr.is-new-row {
  animation: rowIn 220ms ease both;
}

.media-stage.is-fading {
  transition: opacity 160ms ease;
  opacity: 0.6;
}

/* =========================
   INLINE STYLES UIT HTML
   ========================= */

/* Algemene helpers via bestaande structuur */
#bedrijf .grid:has(#companyLogo),
#bedrijfhome .grid:has(#homeHeaderLogoUrl),
#bedrijfhome .grid:has(#homeBannerUrl),
#services .grid:has(#servicePhoto) {
  grid-template-columns: 1fr auto;
  align-items: end;
}

#bedrijf .row:has(#clearCompanyLogo),
#bedrijfhome .row:has(#clearHomeHeaderLogo),
#bedrijfhome .row:has(#clearHomeBanner),
#services .row:has(#clearServicePhoto),
#services .row:has(#clearServiceMedia) {
  margin-top: 8px;
}

#bedrijf .grid:has(#companyEmail),
#bedrijf .grid:has(#companyWebsite),
#bedrijfhome .grid:has(#homeHeaderLogoUrl),
#bedrijfhome .grid:has(#homeHeroTitle),
#bedrijfhome .grid:has(#homeHeroHighlightText),
#bedrijfhome .grid:has(#homeBannerUrl),
#bedrijfhome .grid:has(#homeDealsTitle),
#bedrijfhome .grid:has(#homeCardButtonText),
#services .grid:has(#serviceShortDesc),
#services .grid:has(#serviceBufferBefore) {
  margin-top: 12px;
}

#bedrijf .btn.small,
#bedrijfhome .btn.small,
#services .btn.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#bedrijf hr,
#bedrijfhome hr,
#services hr {
  margin: 14px 0;
}

#bedrijfhome hr {
  margin: 16px 0;
}

/* Bedrijf */
#companyLogoPreviewWrap {
  margin-top: 10px;
  display: none;
}

#companyLogoPreview {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border, #e6e6ee);
  background: #fff;
  padding: 8px;
}

/* Bedrijf home */
#bedrijfhome .card h3 {
  margin: 0 0 10px;
}

#bedrijfhome .grid:has(#homePrimaryColor) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#homeHeaderLogoPreviewWrap,
#homeBannerPreviewWrap {
  margin-top: 10px;
  display: none;
}

#homeHeaderLogoPreview {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border, #e6e6ee);
  background: #fff;
  padding: 8px;
}

#homeBannerPreview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border, #e6e6ee);
  background: #fff;
}

#homePageLivePreview {
  margin-top: 10px;
  border: 1px solid var(--border, #e6e6ee);
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
}

#homePreviewHeader {
  background: #ffffff;
  padding: 14px 22px;
  width: 1200px;
  max-width: 1200px;
  min-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  box-sizing: border-box;
}

#homePreviewHeader > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#homePreviewHeaderNameWrap,
#homePreviewHeader > div > div {
  min-width: 0;
}

#homePreviewHeaderLogo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  display: none;
}

#homePreviewHeaderName {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

#homePreviewHeaderTaglineText {
  font-size: 13px;
  opacity: 0.7;
}

#homePreviewHero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0b6f99, #2563eb);
}

#homePreviewHeroBg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

#homePreviewHeroOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#homePreviewHeroContent,
#homePreviewHero > div:last-child {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 900px;
}

#homePreviewHeroTitle {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

#homePreviewHeroSubtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}

#homePageLivePreview > div:last-child {
  padding: 28px;
  background: #ececec;
}

#homePreviewDealsSection {
  max-width: 1180px;
  margin: 0 auto;
  background: #0b6f99;
  border-radius: 22px;
  padding: 26px;
}

#homePreviewDealsSection > div:first-child {
  text-align: center;
  margin-bottom: 22px;
}

#homePreviewDealsTitle {
  margin: 0 0 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

#homePreviewDealsSubtitle {
  margin: 0;
  color: #fff;
  opacity: 0.9;
}

#homePreviewCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#saveHomeSettings {
  margin-top: 14px;
}

/* Services */
#servicePhotoPreviewWrap,
#serviceMediaPreviewWrap {
  margin-top: 10px;
  display: none;
}

#servicePhotoPreview {
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border, #e6e6ee);
}

#variantsSimpleWrap {
  display: none;
  margin-top: 10px;
}

#variantsLivePreview {
  margin-top: 10px;
}

#services .card:has(#variantsEnabled) {
  padding: 12px;
  margin-top: 12px;
  border: 1px dashed var(--border, #e6e6ee);
}

#services .card:has(#variantsEnabled) .row {
  justify-content: space-between;
  align-items: center;
}

#services .card:has(#variantsEnabled) label:has(#variantsEnabled) {
  display: flex;
  align-items: center;
  gap: 8px;
}

#services .grid:has(#sPriceDelta),
#services .grid:has(#lPriceDelta) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#services .grid:has(#lPriceDelta) {
  margin-top: 10px;
}

#staffPicker .picker-top,
#resourcePicker .picker-top {
  margin-bottom: 10px;
}

/* Portal */
#portal .grid:has(#portalDay) {
  grid-template-columns: 1fr 1fr 1fr auto;
}

#portal .grid:has(#portalDay) > div:last-child {
  display: flex;
  align-items: end;
}

#portal .row:has(#portalCopyDefault) {
  margin-top: 10px;
}

#portal .row:has(#leaveRequestBtn) {
  margin-top: 10px;
}

#portal h3 {
  margin: 0 0 8px;
}

#portal h4 {
  margin: 0 0 8px;
}

.rooster-head h3 {
  margin: 0 0 2px;
}

#portal .grid:has(#leaveFrom) {
  grid-template-columns: 1fr 1fr;
}

#portal div:has(> #leaveReason) {
  margin-top: 10px;
}

/* Kleine specifieke marges */
#bedrijfhome .row:has(#saveHomeSettings) {
  margin-top: 14px;
}
/* ===== Bundle modal ===== */
.bundle-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.bundle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.bundle-modal-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dfe3ea;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.bundle-modal-header,
.bundle-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bundle-modal-header {
  margin-bottom: 14px;
}

.bundle-modal-body {
  margin-bottom: 14px;
}

.bundle-service-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e6e6ee);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}

.bundle-service-option small {
  display: block;
  opacity: 0.7;
  margin-top: 2px;
}
