/* iOS-style toggle switches */
.sync-toggle-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.sync-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.sync-toggle-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text, #1a1d21);
}

.sync-toggle-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
  font-weight: 400;
  margin-top: 0.15rem;
}

.ios-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ios-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c7ccd1;
  border-radius: 31px;
  transition: background 0.2s ease;
}

.ios-switch-slider::before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.ios-switch input:checked + .ios-switch-slider {
  background: #34c759;
}

.ios-switch input:focus-visible + .ios-switch-slider {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
}

.ios-switch input:checked + .ios-switch-slider::before {
  transform: translateX(20px);
}

[data-theme="dark"] .ios-switch-slider {
  background: #3a424c;
}

[data-theme="dark"] .ios-switch input:checked + .ios-switch-slider {
  background: #30d158;
}

.sync-toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.user-role-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.user-role-form select {
  min-width: 140px;
  padding: 0.4rem 0.5rem;
}

.sync-toggle-group.filter-toggles {
  margin: 0 0 0.85rem;
}

.workdays-picker {
  grid-column: 1 / -1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  background: var(--surface, #fff);
  margin-top: 0.15rem;
}

.workday-picker-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text, #1a1d21);
}

.workdays-picker .sync-toggle-hint {
  margin-top: 0.1rem;
}

.workdays-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.workday-pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.workday-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.workday-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  height: 2.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--line, #e2e6ea);
  background: var(--bg, #f6f7f9);
  color: var(--text, #1a1d21);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.workday-pill input:checked + span {
  background: #34c759;
  border-color: #34c759;
  color: #fff;
  box-shadow: 0 1px 4px rgba(52, 199, 89, 0.35);
}

.workday-pill input:focus-visible + span {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
}

.workday-pill:active span {
  transform: scale(0.96);
}

[data-theme="dark"] .workday-pill span {
  background: var(--surface, #1a1e24);
}

[data-theme="dark"] .workday-pill input:checked + span {
  background: #30d158;
  border-color: #30d158;
}

.brand-text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.2;
}

.brand-emblem {
  flex: 0 0 auto;
  height: 30px;
  width: auto;
  display: block;
}

.brand-slogan {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Segoe UI", Arial, sans-serif;
  font-stretch: condensed;
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

.brand-slogan-my,
.brand-slogan-point {
  font-size: 0.5rem;
  font-weight: 700;
  font-style: italic;
  color: #5a8ec4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-slogan-energy {
  font-size: 0.84rem;
  font-weight: 800;
  font-style: italic;
  color: #205098;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.brand-title {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Segoe UI", Arial, sans-serif;
  font-stretch: condensed;
  font-size: 0.84rem;
  font-weight: 800;
  font-style: italic;
  color: #205098;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .brand-slogan-my,
[data-theme="dark"] .brand-slogan-point {
  color: #7eb0dc;
}

[data-theme="dark"] .brand-slogan-energy,
[data-theme="dark"] .brand-title {
  color: #8eb8e8;
}

.brand-text .app-version {
  font-size: 0.72rem;
  color: var(--muted, #5c6570);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-weight: 500;
  opacity: 0.85;
}

/* Gebruikersbeheer — iOS-achtig */
.users-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.users-add-card {
  margin-bottom: 0;
}

.users-list-title {
  margin: 0.25rem 0 0;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.user-card {
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 12px;
  background: var(--surface, #fff);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.user-card-details {
  margin: 0;
}

.user-card-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.15rem 0.1rem;
  user-select: none;
}

.user-card-summary::-webkit-details-marker {
  display: none;
}

.user-card-summary::marker {
  content: "";
}

.user-card-summary:hover {
  background: rgba(0, 122, 255, 0.05);
}

.user-card-summary:focus-visible {
  outline: 2px solid var(--accent, #007aff);
  outline-offset: 2px;
}

.user-card-summary .user-card-header {
  flex: 1;
  min-width: 0;
}

.user-card-expand-hint {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #5c6570);
}

.user-card-caret {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted, #5c6570);
  border-bottom: 2px solid var(--muted, #5c6570);
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.15s ease;
}

.user-card-details[open] .user-card-caret {
  transform: rotate(225deg);
  margin-top: 0.1rem;
}

.user-card-details[open] .user-card-expand-hint {
  color: var(--accent, #007aff);
}

.user-card-inactive {
  opacity: 0.82;
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Account menu (topbar) */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: none;
}

.user-menu-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-menu-avatar-wrap--vacation .avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f97316;
}

.user-menu-vacation-badge {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 2px solid #fff;
  font-size: 0.58rem;
  line-height: 0.9rem;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.user-menu-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--danger, #ff3b30);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  border: 2px solid var(--surface, #fff);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.user-menu-trigger:focus-visible {
  outline: 2px solid var(--accent, #007aff);
  outline-offset: 2px;
}

.user-menu-trigger .avatar {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.user-menu-trigger .avatar-photo {
  object-fit: cover;
  display: block;
}

.user-menu-trigger .avatar-fallback[hidden] {
  display: none;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 280px;
  max-width: min(320px, calc(100vw - 1.5rem));
  background: var(--surface, #fff);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
  padding: 0;
  z-index: 50;
  border: 1px solid var(--line, #e2e6ea);
  overflow: hidden;
}

[data-theme="dark"] .user-menu-panel {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
}

.user-menu-header {
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line, #e2e6ea);
  background: var(--surface, #fff);
}

.user-menu-name {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.25;
}

.user-menu-role {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
  text-transform: capitalize;
  margin-top: 0.15rem;
}

.user-menu-body {
  padding: 0.65rem 0.75rem 0.75rem;
  background: var(--bg, #f2f2f7);
}

.user-menu-disclosure {
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e6ea);
  overflow: hidden;
}

.user-menu-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.user-menu-disclosure-summary::-webkit-details-marker,
.user-menu-disclosure-summary::marker {
  display: none;
}

.user-menu-disclosure-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #1a1d21);
}

.user-menu-disclosure-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted, #6c6c70);
  border-bottom: 2px solid var(--muted, #6c6c70);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.user-menu-disclosure[open] > .user-menu-disclosure-summary .user-menu-disclosure-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.user-menu-disclosure-body {
  padding: 0 0.55rem 0.55rem;
}

.user-menu-disclosure-body .user-menu-inset.ios-inset-group {
  margin: 0;
}

.user-menu-group-status {
  margin-top: 0.15rem;
  margin-bottom: 0.55rem;
}

.user-menu-group {
  margin-bottom: 0.85rem;
}

.user-menu-group:last-child {
  margin-bottom: 0;
}

.user-menu-group-label {
  margin: 0 0 0.35rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6c6c70);
}

.user-menu-inset.ios-inset-group {
  border: none;
  background: var(--surface, #fff);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.user-menu-inset .ios-inset-row {
  background: var(--surface, #fff);
}

.user-menu-form {
  margin: 0;
}

.user-menu-vacation-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.95rem;
}

.user-menu-vacation-toggle-text {
  flex: 1;
  min-width: 0;
}

.user-menu-vacation-toggle-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text, #1a1d21);
  line-height: 1.25;
}

.user-menu-vacation-toggle-hint {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: var(--muted, #6c6c70);
  line-height: 1.3;
}

.user-menu-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  margin: 0;
}

.user-menu-date-label {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text, #1a1d21);
}

.user-menu-date-input {
  flex: 1;
  min-width: 0;
  max-width: 11rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #1a1d21);
  font: inherit;
  font-size: 0.86rem;
}

[data-theme="dark"] .user-menu-date-input {
  background: #2c2c2e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f2f2f7;
}

.user-menu-picker-row {
  display: block;
  margin: 0;
  padding: 0;
}

.user-menu-picker {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.72rem 2rem 0.72rem 0.95rem;
  border: none;
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238e8e93' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center;
  color: var(--text, #1a1d21);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.user-menu-picker:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 122, 255, 0.35);
}

.user-menu-submit-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.95rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent, #007aff);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.user-menu-submit-row:hover {
  background: rgba(0, 122, 255, 0.06);
}

.user-menu-choice-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.95rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text, #1a1d21);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.user-menu-choice-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.user-menu-choice-row.is-active {
  color: var(--accent, #007aff);
}

.user-menu-choice-icon {
  width: 1.35rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

.user-menu-choice-label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.user-menu-choice-check {
  width: 1rem;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #007aff);
  opacity: 0;
}

.user-menu-choice-row.is-active .user-menu-choice-check {
  opacity: 1;
}

.user-menu-choice-row.is-active .user-menu-choice-check::before {
  content: "✓";
}

.user-menu-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.95rem;
  font-size: 0.84rem;
  color: var(--muted, #6c6c70);
  background: transparent;
}

.user-menu-logout-form {
  margin: 0;
}

.user-menu-logout-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.95rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ff3b30;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.user-menu-logout-row:hover {
  background: rgba(255, 59, 48, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legacy account-menu classes kept for compatibility */
.user-menu-section {
  padding: 0.25rem 0;
}

.user-menu-section-danger {
  border-top: 1px solid var(--line, #e2e6ea);
  margin-top: 0.15rem;
  padding-top: 0.15rem;
}

.user-menu-label {
  display: block;
  padding: 0.35rem 0.85rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text, #1a1d21);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: none;
}

.user-menu-item:hover {
  background: rgba(0, 122, 255, 0.08);
}

.user-menu-item.is-active {
  font-weight: 600;
  color: var(--accent, #007aff);
}

.user-menu-item-danger {
  color: #ff3b30;
}

.user-menu-item-danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.user-menu-icon {
  width: 1.25rem;
  text-align: center;
}

.user-menu-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ff3b30;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.18);
}

.user-menu-sync-dot.online {
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.18);
}

.user-menu-sync-text {
  line-height: 1.3;
}

[data-theme="dark"] .user-menu-header {
  background: #1c1c1e;
}

[data-theme="dark"] .user-menu-body {
  background: #000;
}

[data-theme="dark"] .user-menu-inset.ios-inset-group,
[data-theme="dark"] .user-menu-inset .ios-inset-row {
  background: #1c1c1e;
}

[data-theme="dark"] .user-menu-picker {
  color: #f2f2f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aeaeb2' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
}

[data-theme="dark"] .user-menu-choice-row:hover,
[data-theme="dark"] .user-menu-submit-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .topbar {
    padding-top: max(0.55rem, env(safe-area-inset-top));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-link {
    gap: 0.45rem;
  }

  .brand-emblem {
    height: 24px;
  }

  .brand-slogan-energy {
    font-size: 0.72rem;
  }

  .brand-slogan-my,
  .brand-slogan-point {
    font-size: 0.44rem;
  }

  .brand img {
    height: 24px;
  }

  .brand-title {
    font-size: 0.72rem;
  }

  .brand-text .app-version {
    display: none;
  }

  .user-menu-trigger .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .user-menu-badge {
    top: -1px;
    right: -1px;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.58rem;
    line-height: 1rem;
  }
}

.user-menu-start-form {
  padding: 0 0.65rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-menu-select {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--surface, #fff);
  color: var(--text, #111);
}

.user-menu-item-compact {
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
}

[data-theme="dark"] .user-menu-select {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f2f2f7;
}

.avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

.user-card-ident {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  display: block;
  font-size: 1rem;
  font-weight: 650;
}

.user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  align-items: center;
}

.role-pill,
.status-pill,
.beta-pill,
.you-pill {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line, #e2e6ea);
}

.role-pill-editor {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.role-pill-beheerder {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.role-pill-admin {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.role-pill-supervisor {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

.role-pill-wifi {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.wifi-pill {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.status-on {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.status-off {
  background: #f3f4f6;
  color: #6b7280;
}

.beta-pill {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.beta-pill.vacation-pill {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.user-vacation-form {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line, #eceff3);
}

.user-vacation-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.35rem;
}

.user-vacation-dates .ios-field {
  margin: 0;
}

.user-vacation-dates .ios-inline-input {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.user-vacation-save {
  margin-left: 0.15rem;
}

.pwd-expiry-pill-ok {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.pwd-expiry-pill-warn {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pwd-expiry-pill-muted,
.pwd-expiry-pill-neutral {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.you-pill {
  background: var(--accent-soft, #dbeafe);
  color: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
}

.user-card-settings {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line, #e2e6ea);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-card-details .user-card-settings {
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

.user-card-settings .sync-toggle-row {
  margin: 0;
}

.user-card-note {
  margin: 0.65rem 0 0;
}

.ios-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ios-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ios-field-label {
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ios-field input,
.ios-select,
.ios-inline-input {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg, #f6f7f9);
  color: var(--text, #1a1d21);
  box-sizing: border-box;
}

.ios-select {
  width: 100%;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted, #5c6570) 50%),
    linear-gradient(135deg, var(--muted, #5c6570) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.btn-primary {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.ios-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.ios-settings-row-stack .ios-settings-value {
  flex: 1 1 100%;
}

.ios-settings-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, #1a1d21);
  flex-shrink: 0;
}

.ios-settings-value {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.ios-inset-group {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e6ea);
}

.ios-inset-group .ios-inset-row {
  margin: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line, #eceff3);
  background: var(--surface, #fff);
}

.ios-inset-group .ios-inset-row:last-child {
  border-bottom: none;
}

.ios-inset-row.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.ios-inline-input {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
}

.ios-text-btn {
  border: none;
  background: transparent;
  color: var(--accent, #2563eb);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.ios-text-btn:hover {
  text-decoration: underline;
}

.ios-destructive-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #dc2626;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.ios-destructive-btn:hover {
  background: #fef2f2;
}

.user-delete-form {
  margin: 0;
}

/* CSV import/export (admin) */
.csv-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-primary-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  width: fit-content;
  min-width: 200px;
}

.ios-file-input {
  padding: 0.5rem 0;
  font: inherit;
  font-size: 0.9rem;
}

.csv-columns-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.csv-columns-list {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.changelog-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.changelog-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.changelog-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.changelog-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.changelog-compose-block > .ios-group-label,
.changelog-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.changelog-entries-inset .changelog-entry-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.changelog-entries-inset .changelog-entry-row:last-child {
  border-bottom: none;
}

.changelog-entry-row-latest {
  background: rgba(0, 122, 255, 0.04);
}

.changelog-entry-row-main {
  flex: 1;
  min-width: 0;
}

.changelog-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.4rem;
}

.changelog-entry-version {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

.changelog-entry-badge {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.14);
  color: var(--accent, #007aff);
}

.changelog-entry-meta {
  font-size: 0.78rem;
  color: var(--muted, #6c6c70);
}

.changelog-entry-body {
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
}

.changelog-delete-form {
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .changelog-entry-row {
    flex-direction: column;
  }
}

.help-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.help-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft, #e8f2ff);
  color: var(--accent, #2563eb);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.help-hero-actions,
.help-inline-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.help-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  background: var(--accent, #2563eb);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.help-mail-btn.help-mail-btn-secondary {
  background: var(--bg, #f6f7f9);
  color: var(--text, #1a1d21);
}

.help-guide {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.help-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1rem;
}

.help-quick .ios-group-label,
.help-index .ios-group-label,
.help-category > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.help-quick-list .help-quick-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.help-quick-list .help-quick-row:last-child {
  border-bottom: none;
}

.help-quick-row p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.help-quick-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--accent-soft, #e8f2ff);
  color: var(--accent, #2563eb);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.help-index-list {
  overflow: hidden;
}

.help-index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.help-index-row:last-child {
  border-bottom: none;
}

.help-index-row:hover,
.help-index-row:focus-visible {
  background: rgba(10, 132, 255, 0.06);
  outline: none;
}

.help-index-row-featured {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.07), transparent);
}

.help-index-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.help-index-copy strong {
  font-size: 0.96rem;
  font-weight: 650;
  color: var(--text, #1a1d21);
}

.help-index-copy small {
  font-size: 0.8rem;
  color: var(--muted, #5c6570);
  line-height: 1.35;
}

.help-index-chevron {
  color: var(--muted, #9aa3ad);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 300;
}

.help-category {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.help-topic {
  scroll-margin-top: calc(var(--portal-sticky-offset, 4.75rem) + 0.65rem);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #e2e6ea);
  background: var(--surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-topic-featured {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

.help-topic-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.help-topic-head-text {
  min-width: 0;
  flex: 1;
}

.help-topic-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.help-topic-lead {
  margin: 0.28rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted, #5c6570);
}

.help-topic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.help-tone-blue .help-topic-badge,
.help-topic-badge.help-tone-blue {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.help-tone-indigo .help-topic-badge,
.help-topic-badge.help-tone-indigo {
  background: linear-gradient(145deg, #6366f1, #4f46e5);
}

.help-tone-orange .help-topic-badge,
.help-topic-badge.help-tone-orange {
  background: linear-gradient(145deg, #f97316, #ea580c);
}

.help-tone-green .help-topic-badge,
.help-topic-badge.help-tone-green {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.help-tone-teal .help-topic-badge,
.help-topic-badge.help-tone-teal {
  background: linear-gradient(145deg, #14b8a6, #0d9488);
}

.help-tone-amber .help-topic-badge,
.help-topic-badge.help-tone-amber {
  background: linear-gradient(145deg, #f59e0b, #d97706);
}

.help-tone-slate .help-topic-badge,
.help-topic-badge.help-tone-slate {
  background: linear-gradient(145deg, #64748b, #475569);
}

.help-tone-blue.help-topic-head {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02));
}

.help-tone-indigo.help-topic-head {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.03));
}

.help-tone-orange.help-topic-head {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.02));
}

.help-tone-green.help-topic-head {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.02));
}

.help-tone-teal.help-topic-head {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.02));
}

.help-tone-amber.help-topic-head {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.03));
}

.help-tone-slate.help-topic-head {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.02));
}

.help-topic-panel {
  padding: 0.95rem 1rem 1.05rem;
}

.help-topic-panel > :first-child {
  margin-top: 0;
}

.help-panel-label {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}

.help-steps,
.help-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.6;
  font-size: 0.94rem;
}

.help-steps li,
.help-bullets li {
  margin-bottom: 0.35rem;
}

.help-callout-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.help-callout {
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  background: var(--bg, #f6f7f9);
  border: 1px solid var(--line, #e2e6ea);
}

.help-callout strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.help-callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #5c6570);
}

.help-callout-info {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.18);
}

.help-guide p {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.help-guide ol,
.help-guide ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  font-size: 0.94rem;
}

.help-guide li {
  margin-bottom: 0.3rem;
}

.help-screenshot-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1rem;
  align-items: start;
}

.help-screenshot-card {
  margin: 0;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line, #e2e6ea);
  background: var(--bg, #f6f7f9);
}

.help-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.help-screenshot-card figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted, #5c6570);
  line-height: 1.5;
}

.help-side-copy {
  min-width: 0;
}

.help-legend-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.help-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg, #f6f7f9);
  border: 1px solid var(--line, #e2e6ea);
}

.help-note {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--text, #1a1d21);
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-support-card {
  padding: 0;
  border: none;
  background: transparent;
}

@media (max-width: 900px) {
  .help-screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .help-hero-actions,
  .help-inline-actions {
    width: 100%;
  }

  .help-mail-btn {
    width: 100%;
  }

  .help-topic-head {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .help-topic-panel {
    padding: 0.85rem 0.85rem 0.95rem;
  }

  .tickets-overview-panel,
  .hr-assets-overview-panel {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .help-topic-title {
    font-size: 1.05rem;
  }
}

.ios-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.ios-field-label {
  font-size: 0.72rem;
  color: var(--muted, #5c6570);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ios-field input,
.ios-field select {
  width: 100%;
}

/* Synchroniseren — iOS service cards */
.sync-page {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sync-page > .card,
.sync-page > .ios-group-card {
  margin-bottom: 0;
}

.ios-group-card {
  padding: 1rem 1.05rem;
}

.ios-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line, #e2e6ea);
}

.ios-settings-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ios-group-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}

.ios-field-inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ios-field-inline input {
  max-width: 120px;
  text-align: right;
}

.ios-service-card {
  background: var(--surface, #fff);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .ios-service-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ios-service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.ios-service-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.ios-service-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #5c6570);
}

.ios-service-detail {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted, #5c6570);
  line-height: 1.4;
  padding: 0 0 0.35rem;
}

.status-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.status-pill.status-on {
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.status-pill.status-off {
  background: rgba(255, 59, 48, 0.12);
  color: #c41e14;
}

.status-pill.status-neutral {
  background: rgba(118, 118, 128, 0.15);
  color: var(--muted, #5c6570);
}

.status-pill.status-busy {
  background: rgba(255, 149, 0, 0.15);
  color: #c93400;
}

[data-theme="dark"] .status-pill.status-on {
  color: #30d158;
}

.ios-action-stack {
  display: flex;
  flex-direction: column;
  margin: 0 -1rem;
  border-top: 1px solid var(--line, #e2e6ea);
}

.ios-action-stack form {
  margin: 0;
}

.ios-action-row {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.78rem 1rem;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line, #e2e6ea);
  background: transparent;
  color: var(--accent, #007aff);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}

.ios-action-stack form:last-child .ios-action-row {
  border-bottom: none;
}

.ios-action-row:hover {
  background: rgba(0, 122, 255, 0.06);
}

.ios-action-row.ios-action-primary {
  font-weight: 600;
}

.ios-action-row:active {
  background: rgba(0, 122, 255, 0.1);
}

/* Audit log — iOS list */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audit-entry {
  border-radius: 12px;
  background: var(--bg, #f2f2f7);
  padding: 0.65rem 0.75rem;
}

.audit-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.audit-entry-time {
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
  font-variant-numeric: tabular-nums;
}

.audit-entry-action {
  font-weight: 650;
  font-size: 0.9rem;
}

.audit-entry-actor {
  font-size: 0.82rem;
  color: var(--accent, #007aff);
}

.audit-entry-body {
  font-size: 0.85rem;
  color: var(--text, #1a1d21);
  line-height: 1.4;
  word-break: break-word;
}

.audit-entry-meta {
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
}

.settings-divider {
  border: none;
  border-top: 1px solid var(--border, #e5e7eb);
  margin: 1.25rem 0;
}

.subsection-title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.wifi-unifi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.wifi-unifi-actions .inline-form {
  display: inline;
  margin: 0;
}

.wifi-unifi-sites-wrap {
  margin-top: 1rem;
}

.wifi-unifi-sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.wifi-unifi-sites-table th,
.wifi-unifi-sites-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
}

.wifi-unifi-site-status {
  font-size: 0.82rem;
  color: var(--muted, #5c6570);
}

.wifi-cron-details {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.wifi-cron-cmd {
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface-2, #f3f4f6);
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* M365 security — admin dashboard */
.m365-sec-admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.m365-sec-scan-form {
  margin: 0;
}

.portal-tab-page,
.m365-sec-tab-page,
.m365-sec-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
}

.portal-tab-intro {
  margin-bottom: 0;
}

.portal-tab-intro .section-title {
  margin-bottom: 0.35rem;
}

.portal-tab-intro .hint {
  margin: 0;
}

.m365-sec-tab-scan {
  margin-top: 0.5rem;
}

.m365-sec-tab-body {
  padding-top: 0.25rem;
}

.beta-pill.m365-sec-pill {
  background: #e8f2ff;
  color: #0056b3;
}

.m365-sec-dashboard {
  margin-top: 0.5rem;
}

.m365-sec-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--m365-hero-bg);
  border: 1px solid var(--border, #e5e7eb);
  margin-bottom: 1.25rem;
  color: var(--text);
}

.m365-sec-ring {
  --sec-pct: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(
    #22c55e calc(var(--sec-pct) * 1%),
    var(--m365-ring-track) calc(var(--sec-pct) * 1%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m365-sec-ring-inner {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.m365-sec-ring-value {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text, #1a1d21);
}

.m365-sec-ring-label {
  font-size: 0.72rem;
  color: var(--muted, #5c6570);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m365-sec-hero-meta {
  flex: 1;
  min-width: 200px;
  color: var(--text);
}

.m365-sec-hero-score {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.m365-sec-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.m365-sec-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.m365-sec-chip-ok {
  background: var(--chip-ok-bg);
  color: var(--chip-ok-fg);
  border-color: var(--chip-ok-border);
}

.m365-sec-chip-warn {
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
  border-color: var(--chip-warn-border);
}

.m365-sec-chip-fail {
  background: var(--chip-fail-bg);
  color: var(--chip-fail-fg);
  border-color: var(--chip-fail-border);
}

.m365-sec-chip-skip {
  background: var(--chip-skip-bg);
  color: var(--chip-skip-fg);
  border-color: var(--line);
}

.m365-sec-mfa-line {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.m365-sec-group {
  margin-bottom: 1.35rem;
}

.m365-sec-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
}

.m365-sec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

/* Inklapbare M365-beveiliging */
.m365-sec-fold {
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.m365-sec-fold > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.m365-sec-fold > summary::-webkit-details-marker {
  display: none;
}

.m365-sec-fold > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted, #5c6570);
  transition: transform 0.15s ease;
}

.m365-sec-fold[open] > summary::before {
  transform: rotate(90deg);
}

.m365-sec-fold-summary {
  font-weight: 600;
}

.m365-sec-group.m365-sec-fold {
  margin-bottom: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
}

.m365-sec-group.m365-sec-fold > .m365-sec-fold-summary {
  padding: 0.5rem 0.15rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line, #e2e6ea);
  margin-bottom: 0.5rem;
}

.m365-sec-check-fold {
  margin-bottom: 0.5rem;
  border-left-width: 4px;
  border-left-style: solid;
}

.m365-sec-check-fold > .m365-sec-fold-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 0.65rem;
}

.m365-sec-card-body {
  padding: 0 0.75rem 0.75rem;
}

.m365-sec-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  flex: 1 1 140px;
}

.m365-sec-card-oneline {
  flex: 1 1 100%;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted, #5c6570);
  line-height: 1.35;
}

.m365-sec-ack-mini {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f766e;
  white-space: nowrap;
}

.m365-sec-ack-mini-count {
  color: var(--muted, #5c6570);
}

.m365-sec-entries-fold,
.m365-sec-ack-fold,
.m365-sec-ack-subfold {
  margin-top: 0.5rem;
}

.m365-sec-entries-fold > .m365-sec-fold-summary,
.m365-sec-ack-fold > .m365-sec-fold-summary,
.m365-sec-ack-subfold > .m365-sec-fold-summary {
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.m365-sec-ack-panel-inner {
  padding: 0 0.55rem 0.55rem;
}

.m365-sec-ack-form-stack {
  flex-direction: column;
  align-items: stretch;
}

.m365-sec-policy-fold {
  margin-top: 0.35rem;
  padding: 0.35rem 0.5rem;
}

.m365-sec-policy-fold > .m365-sec-fold-summary {
  font-weight: 500;
}

.m365-sec-ack-policy-form.m365-sec-fold {
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.m365-sec-ack-policy-form > .m365-sec-fold-summary {
  padding: 0.65rem 0.85rem;
}

.m365-sec-ack-policy-inner {
  padding: 0 0.85rem 0.85rem;
}

.m365-sec-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 0;
  background: var(--surface, #fff);
  border-left-width: 4px;
}

.m365-sec-status-ok {
  border-left-color: #22c55e;
}

.m365-sec-status-warn {
  border-left-color: #f59e0b;
}

.m365-sec-status-fail {
  border-left-color: #ef4444;
}

.m365-sec-status-skip {
  border-left-color: #9ca3af;
}

.m365-sec-status-accepted {
  border-left-color: #0d9488;
  background: var(--m365-accepted-row-bg);
}

.m365-sec-chip-accepted {
  background: var(--chip-accepted-bg);
  color: var(--chip-accepted-fg);
}

.m365-sec-status-accepted .m365-sec-status-pill {
  background: var(--chip-accepted-bg);
  color: var(--chip-accepted-fg);
}

.m365-sec-ack-banner {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.m365-sec-ack-active {
  background: var(--m365-ack-active-bg);
  border: 1px solid var(--m365-ack-active-border);
  color: var(--m365-ack-active-fg);
}

.m365-sec-ack-expired {
  background: var(--m365-ack-expired-bg);
  border: 1px solid var(--m365-ack-expired-border);
  color: var(--m365-ack-expired-fg);
}

.m365-sec-ack-actions {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line, #e2e6ea);
}

.m365-sec-ack-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.35rem;
}

.m365-sec-ack-field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.m365-sec-ack-field-narrow {
  flex: 0 1 110px;
}

.m365-sec-ack-form-inline {
  align-items: center;
  margin-top: 0.35rem;
}

.m365-sec-ack-entry-label {
  flex: 0 1 auto;
  max-width: 100%;
}

.m365-sec-ack-note-input {
  flex: 1 1 160px;
  min-width: 120px;
}

.m365-sec-ack-days-input {
  width: 4.5rem;
}

.m365-sec-ack-entries {
  margin-top: 0.5rem;
}

.m365-sec-ack-revoke-form {
  margin-top: 0.45rem;
}

.m365-sec-ack-revoke {
  color: #c2410c;
}

.m365-sec-ack-policy {
  margin-top: 0.35rem;
}

.m365-sec-ack-policy-form {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  background: var(--m365-policy-bg);
  color: var(--text);
}

.m365-sec-subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.m365-sec-entry-ack-ok {
  color: #0f766e;
}

.m365-sec-entry-ack-expired {
  color: #c2410c;
}

.m365-sec-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.m365-sec-card-head h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.m365-sec-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: var(--chip-skip-bg);
  color: var(--chip-skip-fg);
  flex-shrink: 0;
}

.m365-sec-status-ok .m365-sec-status-pill {
  background: var(--chip-ok-bg);
  color: var(--chip-ok-fg);
}

.m365-sec-status-warn .m365-sec-status-pill {
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
}

.m365-sec-status-fail .m365-sec-status-pill {
  background: var(--chip-fail-bg);
  color: var(--chip-fail-fg);
}

.m365-sec-card-summary {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

.m365-sec-card-detail,
.m365-sec-card-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #5c6570);
  line-height: 1.35;
}

.m365-sec-card-items {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  max-height: 120px;
  overflow-y: auto;
}

.m365-sec-card-items code {
  font-size: 0.78rem;
  word-break: break-all;
}

.m365-sec-card-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.m365-sec-empty {
  padding: 1.5rem;
  text-align: center;
  background: var(--surface-2, #f9fafb);
  border-radius: 12px;
  border: 1px dashed var(--border, #e5e7eb);
}

.m365-security-permissions {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.m365-security-perm-list {
  margin: 0.35rem 0 0.5rem 1.1rem;
}

.m365-sec-license {
  margin-top: 0.75rem;
}

/* Werkplek-tab */
.werkplek-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.werkplek-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.werkplek-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.werkplek-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.werkplek-topic {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.werkplek-topic .help-topic-panel {
  flex: 1;
}

.werkplek-topic-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.werkplek-sub-label {
  margin: 0.35rem 0 0.4rem 0.35rem;
}

.werkplek-security-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.werkplek-tips-inset .werkplek-tip-line {
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
  font-size: 0.9rem;
  line-height: 1.45;
}

.werkplek-tips-inset .werkplek-tip-line:last-child {
  border-bottom: none;
}

.werkplek-wifi-panel {
  align-items: stretch;
}

.werkplek-wifi-qr {
  display: flex;
  justify-content: center;
}

.werkplek-wifi-inset .werkplek-wifi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.werkplek-wifi-inset .werkplek-wifi-row:last-child {
  border-bottom: none;
}

.werkplek-wifi-label {
  font-size: 0.9rem;
  color: var(--text, #1c1c1e);
}

.werkplek-wifi-value {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.werkplek-wifi-toggle {
  align-self: center;
  margin-top: 0.1rem;
}

.werkplek-action-inset .werkplek-action-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.werkplek-action-inset .werkplek-action-row:last-child {
  border-bottom: none;
}

.werkplek-action-inset .werkplek-action-row:hover,
.werkplek-action-inset .werkplek-action-row:focus-visible {
  background: rgba(0, 122, 255, 0.06);
  outline: none;
}

.werkplek-action-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.werkplek-action-copy strong {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--text, #1c1c1e);
}

.werkplek-action-copy small {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #6c6c70);
}

.werkplek-action-chevron {
  color: var(--muted, #9aa3ad);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 300;
}

.werkplek-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.werkplek-channel-tile {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 12px;
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.werkplek-channel-tile:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: color-mix(in srgb, var(--accent, #007aff) 28%, var(--line, #e2e6ea));
}

.werkplek-channel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.werkplek-channel-copy strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.werkplek-channel-copy small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted, #6c6c70);
}

.werkplek-page-intro {
  margin-bottom: 0.85rem;
}

.werkplek-page-intro .section-title {
  margin-bottom: 0.25rem;
}

/* Dienststatus (tab24) — iOS-stijl */
.service-status-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.service-status-intro-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.service-status-intro-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-status-intro-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.service-status-overview-block > .ios-group-label,
.service-status-services-block > .ios-group-label,
.service-status-it-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.service-status-overview-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-status-overview-panel .service-status-hero-ios {
  margin: 0;
}

.service-status-group-topic + .service-status-group-topic {
  margin-top: 0.65rem;
}

.service-status-group-panel-flat {
  padding-top: 0.35rem;
}

.service-status-it-btn {
  margin-top: 0.65rem;
  align-self: flex-start;
}

.service-status-it-hint {
  margin: 0;
}

.service-status-error-text {
  margin: 0;
  color: #c41e14;
}

.service-status-hero-ios {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.14), rgba(52, 199, 89, 0.04));
  border: 1px solid rgba(52, 199, 89, 0.22);
}

.service-status-hero-down {
  background: linear-gradient(145deg, rgba(255, 59, 48, 0.14), rgba(255, 59, 48, 0.04));
  border-color: rgba(255, 59, 48, 0.25);
}

.service-status-hero-degraded {
  background: linear-gradient(145deg, rgba(255, 149, 0, 0.14), rgba(255, 149, 0, 0.04));
  border-color: rgba(255, 149, 0, 0.25);
}

.service-status-hero-maintenance {
  background: linear-gradient(145deg, rgba(0, 122, 255, 0.14), rgba(0, 122, 255, 0.04));
  border-color: rgba(0, 122, 255, 0.22);
}

.service-status-hero-unknown,
.service-status-hero-disabled {
  background: rgba(120, 120, 128, 0.08);
  border-color: rgba(120, 120, 128, 0.18);
}

.service-status-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  color: #34c759;
  flex-shrink: 0;
}

.service-status-hero-down .service-status-hero-icon { color: #ff3b30; }
.service-status-hero-degraded .service-status-hero-icon { color: #ff9500; }
.service-status-hero-maintenance .service-status-hero-icon { color: #007aff; }
.service-status-hero-unknown .service-status-hero-icon,
.service-status-hero-disabled .service-status-hero-icon { color: #8e8e93; }

.service-status-hero-icon svg {
  width: 24px;
  height: 24px;
}

.service-status-hero-copy {
  flex: 1;
  min-width: 0;
}

.service-status-hero-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-status-hero-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #6c6c70);
}

.service-status-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.2rem;
}

.service-status-refresh-btn {
  flex-shrink: 0;
}

.service-status-issues-ios {
  margin-bottom: 0;
}

.service-status-issues-inner {
  padding: 0.85rem 1rem;
}

.service-status-issues-inner strong {
  display: block;
  margin-bottom: 0.55rem;
}

.service-status-issues-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.service-status-issues-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.service-status-issues-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.service-status-issues-name {
  font-weight: 600;
}

.service-status-issues-desc,
.service-status-issues-msg {
  display: block;
  line-height: 1.35;
}

.service-status-hero-link {
  flex-shrink: 0;
  align-self: center;
}

.service-status-group-title {
  margin: 0 0 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6c6c70);
}

.service-status-rows .service-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
}

.service-status-rows .service-status-row:last-child {
  border-bottom: none;
}

.service-status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #8e8e93;
}

.service-status-led-up { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); }
.service-status-led-down { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18); }
.service-status-led-maintenance { background: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18); }
.service-status-led-pending,
.service-status-led-unknown { background: #ff9500; }

.service-status-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.service-status-row-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.service-status-row-desc {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted, #6c6c70);
}

.service-status-row-sub {
  font-size: 0.78rem;
  color: var(--muted, #6c6c70);
  margin-top: 0.05rem;
}

.service-status-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.service-status-pill-up {
  color: #248a3d;
  background: rgba(52, 199, 89, 0.16);
}

.service-status-pill-down {
  color: #c41e16;
  background: rgba(255, 59, 48, 0.14);
}

.service-status-pill-maintenance {
  color: #005ecb;
  background: rgba(0, 122, 255, 0.14);
}

.service-status-pill-pending,
.service-status-pill-unknown {
  color: #9a6700;
  background: rgba(255, 149, 0, 0.14);
}

.service-status-incident-ios {
  padding: 0.75rem 0.9rem;
}

.service-status-incident-inner p {
  margin: 0.35rem 0 0;
}

.service-status-it-ios {
  padding: 0.85rem 0.95rem;
}

.service-status-it-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.service-status-it-inner p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.service-status-empty,
.service-status-error-card {
  padding: 1rem;
}

.service-status-error-text {
  margin: 0;
  color: #ff3b30;
}

.beta-pill.service-status-pill {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.werkplek-tiles,
.werkplek-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

.werkplek-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.werkplek-tile .werkplek-security-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.werkplek-security-rings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.werkplek-sec-ring {
  width: 88px;
  height: 88px;
}

.werkplek-sec-ring .m365-sec-ring-inner {
  width: 68px;
  height: 68px;
}

.werkplek-sec-ring .m365-sec-ring-value {
  font-size: 1.1rem;
}

.werkplek-mfa-ring {
  background: conic-gradient(
    #007aff calc(var(--sec-pct) * 1%),
    #e5e7eb calc(var(--sec-pct) * 1%)
  );
}

.werkplek-pwd-ring {
  background: conic-gradient(
    #22c55e calc(var(--sec-pct) * 1%),
    #e5e7eb calc(var(--sec-pct) * 1%)
  );
}

.werkplek-pwd-ring-warn {
  background: conic-gradient(
    #ef4444 calc(var(--sec-pct) * 1%),
    #fee2e2 calc(var(--sec-pct) * 1%)
  );
}

.werkplek-pwd-ring-warn .m365-sec-ring-value {
  color: #b91c1c;
}

.werkplek-mailbox-ring {
  background: conic-gradient(
    #22c55e calc(var(--sec-pct) * 1%),
    #e5e7eb calc(var(--sec-pct) * 1%)
  );
}

.werkplek-mailbox-ring-warn {
  background: conic-gradient(
    #ef4444 calc(var(--sec-pct) * 1%),
    #fee2e2 calc(var(--sec-pct) * 1%)
  );
}

.werkplek-mailbox-ring-warn .m365-sec-ring-value {
  color: #b91c1c;
}

.werkplek-password-expiry-row {
  align-items: flex-start;
}

.werkplek-password-expiry-row .sync-toggle-label,
.werkplek-password-expiry-row span {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
}
}

.werkplek-password-expiry-row.werkplek-password-expiry-warn {
  border-color: #fecaca;
  background: #fef2f2;
}

.werkplek-password-expiry-row.werkplek-password-expiry-warn .sync-toggle-label {
  color: #b91c1c;
}

.werkplek-password-expiry-row.werkplek-password-expiry-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.werkplek-password-expiry-row.werkplek-password-expiry-ok .sync-toggle-label {
  color: #15803d;
}

.werkplek-password-expiry-row.werkplek-password-expiry-neutral,
.werkplek-password-expiry-row.werkplek-password-expiry-muted {
  border-color: var(--line, #e2e6ea);
  background: var(--surface, #fff);
}

.werkplek-password-expiry-row.werkplek-password-expiry-neutral .sync-toggle-label,
.werkplek-password-expiry-row.werkplek-password-expiry-muted .sync-toggle-label {
  color: var(--muted, #5c6570);
  font-weight: 500;
}

.werkplek-tile .werkplek-security-rings {
  justify-content: flex-start;
}

.werkplek-wifi-tile-card {
  text-align: center;
}

.wifi-qr-wrap-tile {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.65rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e6ea);
}

/* Groot genoeg om met de telefooncamera te scannen (kleiner dan 108px faalde vaak). */
.wifi-qr-wrap-tile svg {
  display: block;
  width: min(100%, 240px);
  height: auto;
}

.werkplek-wifi-fields {
  margin-top: 0;
  text-align: left;
}

.werkplek-wifi-field-row .sync-toggle-hint {
  word-break: break-word;
}

.werkplek-wifi-value {
  font-weight: 600;
  color: var(--text, #1a1d21);
}

.werkplek-wifi-secret {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
}

.werkplek-wifi-tile-toggle {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
}

.werkplek-wifi-mini-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, #007aff);
  cursor: pointer;
}

.werkplek-wifi-mini-link:hover {
  text-decoration: underline;
}

.werkplek-help-tile-card {
  border: none;
  box-shadow: none;
  padding: 0;
}

.werkplek-action-list {
  gap: 0.5rem;
}

.werkplek-action-link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.werkplek-action-link:hover {
  background: rgba(0, 122, 255, 0.06);
}

.werkplek-action-link:focus-visible {
  outline: 2px solid var(--accent, #007aff);
  outline-offset: 1px;
}

.werkplek-action-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.werkplek-action-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.werkplek-action-icon-mfa {
  background: #e8f2ff;
  color: #007aff;
}

.werkplek-action-icon-password {
  background: #f3e8ff;
  color: #7c3aed;
}

.werkplek-action-icon-alert {
  background: #fff4e5;
  color: #c2410c;
}

.werkplek-action-icon-ticket {
  background: #e8f7ef;
  color: #15803d;
}

.werkplek-action-icon-techniek {
  background: #eef2ff;
  color: #4338ca;
}

.werkplek-action-icon-websites {
  background: #e0f2fe;
  color: #0369a1;
}

.werkplek-action-icon-help {
  background: #ede9fe;
  color: #6d28d9;
}

.werkplek-action-icon-email {
  background: #e8f2ff;
  color: #1d4ed8;
}

.werkplek-action-icon-whatsapp {
  background: #e8f7ef;
  color: #15803d;
}

.werkplek-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.werkplek-service-tile {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--surface, #fff);
}

.werkplek-service-tile:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: color-mix(in srgb, var(--accent, #007aff) 30%, var(--line, #e2e6ea));
}

.werkplek-service-tile-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.werkplek-service-tile-disabled:hover {
  background: var(--surface, #fff);
  border-color: var(--line, #e2e6ea);
}

.werkplek-soon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  vertical-align: middle;
}

.werkplek-service-copy {
  min-width: 0;
}

.werkplek-service-copy .sync-toggle-label {
  color: var(--accent, #007aff);
  font-weight: 600;
}

@media (max-width: 560px) {
  .werkplek-service-grid {
    grid-template-columns: 1fr;
  }
}

.portal-links-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.portal-links-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.portal-links-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portal-links-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.portal-links-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.sonos-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.sonos-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.sonos-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sonos-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.sonos-control-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.sonos-control-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sonos-location-inset .sonos-location-row {
  margin: 0;
}

.sonos-location-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sonos-sub-label {
  margin: 0 0 0.35rem 0.35rem;
}

.sonos-transport-inset .sonos-transport-actions {
  padding: 0.72rem 0.95rem;
}

.sonos-announcements-hint {
  margin: 0 0 0.65rem;
}

.tickets-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.tickets-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.tickets-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tickets-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.tickets-overview-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.tickets-overview-panel {
  padding-top: 0.35rem;
}

.tickets-overview-panel > .tickets-page {
  margin-top: 0;
}

/* Locaties (tab25) */
.location-docs-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.location-docs-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.location-docs-board > .otrs-detail-panel {
  border-radius: 12px;
}

.location-docs-detail-hero {
  margin-bottom: 0.75rem;
}

.location-docs-row .hr-cell-name {
  display: block;
}

.location-docs-row .location-docs-badge {
  margin-left: 0.35rem;
}

.location-docs-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.location-docs-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.location-docs-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.location-docs-create-block > .ios-group-label,
.location-docs-browse-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.location-docs-browse-panel {
  padding-top: 0.35rem;
}

.location-docs-create-panel-wrap {
  padding: 0.1rem 0;
}

/* Bedrijfseigendommen (tab22) */
.hr-assets-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.hr-assets-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.hr-assets-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hr-assets-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.hr-assets-overview-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.hr-assets-overview-panel {
  padding-top: 0.35rem;
}

.hr-assets-overview-panel > .hr-board {
  margin-top: 0;
}

/* HR Onboarding / Offboarding (tab20–tab21) */
.hr-onboarding-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.hr-onboarding-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.hr-onboarding-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hr-onboarding-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.hr-onboarding-overview-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.hr-onboarding-overview-panel {
  padding-top: 0.35rem;
}

.hr-onboarding-overview-panel > .hr-board {
  margin-top: 0;
}

/* M365-beveiliging (tab15) */
.m365-sec-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.m365-sec-intro-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.m365-sec-intro-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.m365-sec-intro-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.m365-sec-overview-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.m365-sec-overview-panel {
  padding-top: 0.35rem;
}

.m365-sec-overview-panel .m365-sec-tab-scan {
  margin-bottom: 0.65rem;
}

/* NIS2 / DORA (tab23) */
.compliance-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.compliance-intro-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.compliance-intro-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.compliance-intro-hero .compliance-intro-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 52rem;
}

.compliance-program-block > .ios-group-label,
.compliance-governance-block > .ios-group-label,
.compliance-phases-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.compliance-program-panel {
  padding-top: 0.35rem;
}

.compliance-program-panel .compliance-intro-actions {
  margin-bottom: 0.75rem;
}

.compliance-sp-block {
  margin: 0.85rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line, rgba(60, 60, 67, 0.12));
}

.compliance-program-panel .compliance-hero {
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compliance-governance-panel {
  padding: 0.15rem 0;
}

.compliance-governance-disclosure {
  margin: 0;
}

.compliance-phase-topic + .compliance-phase-topic {
  margin-top: 0.65rem;
}

.compliance-phase-panel .compliance-phase-progress {
  margin-bottom: 0.75rem;
}

.compliance-phases-block .compliance-checklist.ios-inset-group {
  margin-top: 0;
}

.phone-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.phone-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.phone-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.phone-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.phone-lines-block > .ios-group-label,
.phone-redirection-block > .ios-group-label,
.phone-editor-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.phone-status-line {
  margin: 0;
  min-height: 1.2em;
}

.phone-status-line.beta-status-error {
  color: #c41e14;
}

.phone-lines-toolbar {
  margin-bottom: 0.65rem;
}

.phone-lines-panel .xl-line-pick-inset {
  margin: 0;
}

.phone-lines-panel .xl-line-pick-list {
  margin: 0;
  list-style: none;
  padding: 0;
}

.phone-lines-panel .xl-line-pick-list .ios-action-row {
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line, #eceff3);
  border-radius: 0;
  margin: 0;
}

.phone-lines-panel .xl-line-pick-list .ios-action-row:last-child {
  border-bottom: none;
}

.phone-active-line-inset .phone-active-line-row {
  margin: 0;
}

.phone-redirection-panel .xl-redirection-panel {
  margin-top: 0.75rem;
}

.phone-editor-panel .xl-editor {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.phone-editor-panel .phone-status-card {
  background: var(--surface-2, #f2f2f7);
  border-color: var(--line, #eceff3);
}

.phone-toggle-row {
  padding: 0.15rem 0;
}

.portal-links-inset .portal-link-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.portal-links-inset .portal-link-row:last-child {
  border-bottom: none;
}

.portal-links-inset .portal-link-row:hover {
  background: rgba(0, 122, 255, 0.04);
}

.portal-link-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.portal-link-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.portal-link-title-hit {
  text-decoration: none;
  color: inherit;
}

.portal-link-title-hit strong {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--accent, #007aff);
}

.portal-link-title-hit:hover strong {
  text-decoration: underline;
}

.portal-link-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #6c6c70);
}

.portal-link-title-hit,
.portal-link-site-hit,
.portal-link-external-hit {
  text-decoration: none;
  color: inherit;
}

.portal-link-site-hit:hover {
  text-decoration: underline;
}

.portal-link-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 0.05rem;
}

.portal-link-meta-sep {
  color: var(--muted, #8e8e93);
  font-size: 0.82rem;
  line-height: 1;
}

.portal-link-phone-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8f7ef;
  color: #15803d;
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.portal-link-phone-inline:hover {
  background: #d1fae5;
}

.portal-link-phone-inline svg {
  flex-shrink: 0;
  display: block;
}

.portal-link-phone-label {
  font-weight: 600;
  color: #166534;
}

.portal-link-phone-number {
  font-weight: 600;
  color: var(--accent, #007aff);
}

.portal-link-phone-inline:hover .portal-link-phone-number {
  text-decoration: underline;
}

.portal-link-external-hit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.15rem;
  border-radius: 6px;
}

.portal-link-external-hit:hover {
  background: rgba(0, 122, 255, 0.08);
}

.portal-link-host {
  font-size: 0.78rem;
  color: var(--muted, #6c6c70);
}

.portal-link-external {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted, #8e8e93);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-link-external svg {
  display: block;
  width: 14px;
  height: 14px;
}

.portal-link-icon-benzinestation {
  background: #fff7ed;
  color: #c2410c;
}

.portal-link-icon-orders {
  background: #fff7ed;
  color: #c2410c;
}

.portal-link-icon-finance {
  background: #ecfdf5;
  color: #047857;
}

.portal-link-icon-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.portal-link-icon-link {
  background: #e0f2fe;
  color: #0369a1;
}

.portal-links-admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-links-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-links-admin-item-off {
  opacity: 0.65;
}

.portal-links-admin-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
  align-items: center;
}

.werkplek-action-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.werkplek-action-copy .sync-toggle-label {
  color: var(--accent, #007aff);
  font-weight: 600;
}

.werkplek-action-link:hover .sync-toggle-label {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .werkplek-tiles,
  .werkplek-sections {
    grid-template-columns: 1fr;
  }
}

.werkplek-news-section {
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: none;
}

.werkplek-news-compact {
  width: 100%;
}

.news-feed-compact-inset .news-feed-compact-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.news-feed-compact-inset .news-feed-compact-row:last-child {
  border-bottom: none;
}

.news-feed-compact-inset .news-feed-compact-row:hover,
.news-feed-compact-inset .news-feed-compact-row:focus-visible {
  background: rgba(0, 122, 255, 0.06);
  outline: none;
}

.news-feed-compact-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-feed-compact-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.news-feed-compact-icon-news {
  background: rgba(52, 199, 89, 0.14);
  color: #16a34a;
}

.news-feed-compact-icon-work {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.news-feed-compact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.news-feed-compact-copy strong {
  font-size: 0.94rem;
  font-weight: 650;
}

.news-feed-compact-copy small {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #6c6c70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feed-compact-unread {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent, #007aff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-feed-compact-chevron {
  color: var(--muted, #9aa3ad);
  font-size: 1.15rem;
  line-height: 1;
}

.news-feed-compact-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.news-feed-compact-all {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Nieuws & meldingen tab */
.news-feed-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-feed-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.news-feed-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.news-feed-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 44rem;
}

.news-feed-compose-block > .ios-group-label,
.news-feed-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.news-feed-compose-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-feed-compose-inset .news-feed-compose-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.news-feed-compose-inset .news-feed-compose-row:last-child {
  border-bottom: none;
}

.news-feed-compose-row-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.news-feed-compose-label {
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.news-feed-optional {
  font-style: normal;
  font-weight: 400;
  color: var(--muted, #6c6c70);
}

.news-feed-compose-input,
.news-feed-compose-textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 0.9rem;
}

.news-feed-compose-row:not(.news-feed-compose-row-stack) .news-feed-compose-input,
.news-feed-compose-row:not(.news-feed-compose-row-stack) .ios-select {
  width: 100%;
  max-width: 100%;
  text-align: left;
  justify-self: stretch;
}

.news-feed-compose-textarea {
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  resize: vertical;
  min-height: 4.5rem;
}

.news-feed-compose-hint {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted, #6c6c70);
}

.news-feed-submit {
  align-self: flex-start;
}

.news-feed-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.news-feed-topic .help-topic-head {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-feed-clear-form {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}

.news-feed-items-inset .news-feed-item-row {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.news-feed-items-inset .news-feed-item-row:last-child {
  border-bottom: none;
}

.news-feed-item-row-unread {
  background: rgba(0, 122, 255, 0.04);
}

.news-feed-item-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.news-feed-item-row-main {
  flex: 1;
  min-width: 0;
}

.news-feed-item-row-head {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.news-feed-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.werkplek-news-section > .ios-group-label {
  margin: 0 0 0.45rem 0.35rem;
}

.werkplek-news-intro {
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .werkplek-channel-tile {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .werkplek-news-section {
  border-top-color: transparent;
}

.werkplek-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.werkplek-block-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0.15rem;
  text-align: center;
}

.werkplek-block-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5c6570);
}

.werkplek-separator {
  display: flex;
  align-items: center;
  margin: 1.35rem 0;
  padding: 0 0.25rem;
}

.werkplek-separator-line {
  flex: 1;
  height: 1px;
  background: var(--line, #e2e6ea);
}

.werkplek-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}

.werkplek-security-card {
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: var(--line, #e2e6ea);
}

.werkplek-pulse-good {
  border-left-color: #22c55e;
}

.werkplek-pulse-attention {
  border-left-color: #f59e0b;
}

.werkplek-pulse-unknown {
  border-left-color: var(--line, #e2e6ea);
}

.werkplek-security-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.werkplek-security-copy {
  flex: 1;
  min-width: 0;
}

.werkplek-security-headline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text, #1a1d21);
}

.werkplek-mfa-stat {
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e6ea);
  background: var(--surface-2, #f8f9fa);
  min-width: 64px;
}

.werkplek-mfa-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--accent, #007aff);
  line-height: 1.1;
}

.werkplek-mfa-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}

.werkplek-tips-group {
  margin-top: 0;
}

.werkplek-tip-row {
  align-items: flex-start;
}

.werkplek-tip-row .sync-toggle-label {
  font-weight: 450;
  font-size: 0.88rem;
  line-height: 1.4;
}

.werkplek-action-stack {
  margin-top: 0.65rem;
}

.wifi-portal-card {
  text-align: center;
}

.wifi-cred-stack {
  margin-top: 0.75rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2, #f8f9fa);
}

.wifi-cred-block {
  padding: 1rem 1.1rem;
  text-align: center;
}

.wifi-cred-heading {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5c6570);
}

.wifi-cred-display {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text, #1a1d21);
  word-break: break-word;
}

.wifi-cred-display-secret {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.wifi-cred-show-btn {
  display: inline-flex;
  margin: 0.65rem auto 0;
  min-width: 11rem;
  justify-content: center;
}

.wifi-cred-divider {
  height: 1px;
  background: var(--line, #e2e6ea);
}

/* Nieuws & Meldingen — zelfde iOS/Werkplek-stijl */
.news-feed-panel {
  gap: 0.85rem;
}

.news-feed-meta {
  margin: 0.15rem 0 0;
}

.news-feed-compose-section {
  margin-bottom: 0.25rem;
}

.news-feed-compose-card {
  border-left-width: 3px;
  border-left-color: var(--accent, #007aff);
}

.news-feed-compose-form {
  gap: 0.65rem;
}

.news-feed-field-row {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-feed-field-copy {
  flex: 1;
  min-width: 0;
}

.news-feed-inline-select,
.news-feed-inline-input {
  max-width: 14rem;
  width: 100%;
}

.news-feed-textarea-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line, #e8eaed);
}

.news-feed-textarea-row:last-child {
  border-bottom: none;
}

.news-feed-textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
  background: var(--surface, #fff);
}

.news-feed-submit {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.news-feed-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .news-feed-tiles {
    grid-template-columns: 1fr;
  }
}

.news-feed-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.news-feed-clear-form {
  margin: 0;
}

.news-feed-tile-card {
  border-left-width: 3px;
}

.news-feed-tile-news {
  border-left-color: var(--brand, #e40032);
}

.news-feed-tile-work {
  border-left-color: #f59e0b;
}

.news-feed-empty {
  margin: 0;
  padding: 0.25rem 0;
}

.news-feed-items {
  margin-top: 0;
}

.news-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
}

.news-feed-item-main {
  flex: 1;
  min-width: 0;
}

.news-feed-item-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.news-feed-source-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
}

.news-feed-source-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.news-feed-source-whatsapp {
  background: #dcfce7;
  color: #15803d;
}

.news-feed-source-portal {
  background: #dbeafe;
  color: #1d4ed8;
}

.news-feed-item-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.65rem;
}

.news-feed-item-from {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted, #5c6570);
  letter-spacing: 0.01em;
}

.news-feed-item-time {
  font-size: 0.72rem;
  color: var(--muted, #8b939c);
  white-space: nowrap;
}

.news-feed-item-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, #1a1d21);
}

.news-feed-thumb {
  display: block;
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--line, #e8eaed);
}

.news-feed-item-divider {
  height: 1px;
  background: var(--line, #e8eaed);
  margin: 0;
}

.news-feed-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.tv-slides-block {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tv-slides-compose-block > .ios-group-label,
.tv-slides-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.tv-slides-compose-topic .help-topic-lead {
  max-width: none;
}

.tv-slides-schedule-inset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line, #eceff3);
}

.tv-slides-schedule-inset .tv-slides-schedule-field {
  border-bottom: none;
  margin: 0;
}

.tv-slides-schedule-inset .tv-slides-schedule-field + .tv-slides-schedule-field {
  border-left: 1px solid var(--line, #eceff3);
}

.tv-slides-file-row .tv-slides-file-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.tv-slides-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tv-slides-datetime-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--surface-2, #f2f2f7);
  color: var(--text);
}

.tv-slides-list-topic .help-topic-head {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tv-slides-meta {
  margin: 0;
}

.tv-slides-items-inset .tv-slide-item-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line, #eceff3);
}

.tv-slides-items-inset .tv-slide-item-row:last-child {
  border-bottom: none;
}

.tv-slide-item-row-main {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.tv-slide-status-pill {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.tv-slide-status-scheduled {
  background: rgba(10, 132, 255, 0.14);
  color: var(--accent, #007aff);
}

.tv-slide-status-active {
  background: rgba(48, 209, 88, 0.14);
  color: #248a3d;
}

.tv-slide-status-expired {
  background: rgba(142, 142, 147, 0.18);
  color: var(--muted);
}

.tv-slide-schedule-label {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.tv-slide-thumb-link {
  flex-shrink: 0;
}

.tv-slide-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.tv-slide-copy {
  min-width: 0;
  flex: 1;
}

.tv-slide-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.tv-slide-title {
  font-size: 0.95rem;
}

.tv-slide-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tv-slide-cta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.tv-slide-id-label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.tv-slide-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .tv-slides-schedule-inset {
    grid-template-columns: 1fr;
  }

  .tv-slides-schedule-inset .tv-slides-schedule-field + .tv-slides-schedule-field {
    border-left: none;
    border-top: 1px solid var(--line, #eceff3);
  }

  .tv-slide-item-row {
    flex-direction: column;
  }

  .tv-slide-actions {
    flex-direction: row;
    align-items: center;
  }
}

.beta-pill.news-display-pill {
  background: #fce7f3;
  color: #9d174d;
}

.ios-destructive-text {
  color: #b91c1c;
}

.news-feed-item-unread {
  background: rgba(0, 122, 255, 0.06);
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: 10px;
}

.news-feed-item-unread .news-feed-item-from {
  color: var(--accent, #007aff);
}

.news-feed-toast-stack {
  position: fixed;
  top: calc(3.5rem + env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.news-feed-toast {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line, #e2e6ea);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  text-align: left;
  cursor: pointer;
  animation: news-feed-toast-in 0.28s ease;
}

.news-feed-toast-news {
  border-left: 4px solid var(--brand, #e40032);
}

.news-feed-toast-work {
  border-left: 4px solid #f59e0b;
}

.news-feed-toast-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6c6c70);
}

.news-feed-toast-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text, #1c1c1e);
}

.news-feed-toast-from {
  font-size: 0.76rem;
  color: var(--muted, #8b939c);
}

@keyframes news-feed-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* NIS2 / DORA compliance checklist (tab23) */
.compliance-page,
.compliance-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compliance-intro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.compliance-intro-lead {
  margin: 0.35rem 0 0;
  max-width: 52rem;
}

.compliance-intro-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.compliance-export-btn {
  white-space: nowrap;
}

.compliance-start-form {
  margin-top: 0.85rem;
  max-width: 320px;
}

.compliance-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .compliance-hero-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6c6c70);
}

.compliance-hero-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0.2rem 0 0.6rem;
}

.compliance-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
  overflow: hidden;
}

.compliance-progress-lg {
  height: 14px;
}

.compliance-progress-sm {
  height: 8px;
  min-width: 120px;
}

.compliance-progress-timeline {
  margin-top: 1rem;
  height: 6px;
}

.compliance-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34c759, #30b0c7);
  transition: width 0.35s ease;
}

.compliance-progress-fill-muted {
  background: rgba(120, 120, 128, 0.45);
}

.compliance-progress-fill-nis2 {
  background: linear-gradient(90deg, #007aff, #5856d6);
}

.compliance-progress-fill-dora {
  background: linear-gradient(90deg, #ff9500, #ff3b30);
}

.compliance-kpis {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.compliance-kpis dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #6c6c70);
}

.compliance-kpis dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.compliance-framework-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .compliance-framework-bars {
    grid-template-columns: 1fr;
  }
}

.compliance-fw-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(60, 60, 67, 0.12);
}

.compliance-fw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.compliance-fw-title {
  font-weight: 700;
}

.compliance-phase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.compliance-phase-title {
  margin: 0.35rem 0 0.15rem;
}

.compliance-fw-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.compliance-fw-badge-nis2 {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.compliance-fw-badge-dora {
  background: rgba(255, 149, 0, 0.15);
  color: #c93400;
}

.compliance-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compliance-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
}

.compliance-item:first-child {
  border-top: none;
  padding-top: 0;
}

.compliance-item-body {
  min-width: 0;
}

.compliance-item-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.compliance-item-form-group {
  width: 100%;
}

.compliance-form-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.75rem;
}

@media (max-width: 640px) {
  .compliance-form-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-form-field {
  margin: 0;
}

.compliance-form-field-notes .ios-textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
}

.compliance-form-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid var(--line, #eceff3);
}

.compliance-governance-card {
  padding: 0;
  overflow: hidden;
}

.compliance-governance-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.compliance-governance-summary::-webkit-details-marker {
  display: none;
}

.compliance-governance-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted, #6c6c70);
  border-bottom: 2px solid var(--muted, #6c6c70);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.compliance-governance-card[open] .compliance-governance-chevron {
  transform: rotate(225deg);
}

.compliance-governance-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
}

.compliance-disclaimer {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.compliance-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .compliance-scope-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-scope-box {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.06);
  border: 1px solid rgba(60, 60, 67, 0.08);
}

.compliance-scope-heading {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.compliance-deliverables-intro {
  margin-bottom: 0.75rem;
}

.compliance-deliverable-group {
  margin-top: 0.85rem;
}

.compliance-deliverable-group-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.compliance-deliverable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compliance-deliverable-item {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid rgba(60, 60, 67, 0.1);
}

.compliance-deliverable-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.compliance-deliverable-freq {
  flex-shrink: 0;
  font-size: 0.72rem;
}

.compliance-deliverable-owner {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.compliance-item-overdue {
  background: rgba(255, 59, 48, 0.04);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 10px;
}

.compliance-item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.compliance-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 2px solid rgba(60, 60, 67, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.compliance-check-done {
  background: #34c759;
  border-color: #34c759;
  color: #fff;
}

.compliance-check-na {
  background: rgba(120, 120, 128, 0.25);
  border-color: transparent;
  color: var(--muted, #6c6c70);
}

.compliance-check-progress {
  border-color: #007aff;
  color: #007aff;
}

.compliance-due {
  font-size: 0.78rem;
  color: var(--muted, #6c6c70);
  margin-left: auto;
}

.compliance-overdue {
  color: #ff3b30;
}

.compliance-item-desc {
  margin: 0.35rem 0 0;
}

.compliance-item-notes {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.compliance-item-meta {
  margin: 0.25rem 0 0;
}

.compliance-item-form .ios-inset-group {
  background: rgba(120, 120, 128, 0.04);
}

.compliance-status-pill.compliance-status-done {
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.compliance-status-pill.compliance-status-in_progress {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.compliance-timeline-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.compliance-sp-sync-form {
  margin: 0;
}

.compliance-sp-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compliance-sp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.compliance-sp-structure {
  margin: 0;
  font-size: 0.85rem;
}

.compliance-audit-upload {
  max-width: 36rem;
}

.compliance-evidence-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.compliance-evidence-list-read {
  margin-top: 0.35rem;
}

.compliance-evidence-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}

.compliance-evidence-label {
  flex: 1 1 200px;
  min-width: 0;
}

.compliance-sp-settings-link {
  margin-top: 0.75rem;
}

/* Contacten (tab1) */
.contacts-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.contacts-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.contacts-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contacts-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.contacts-add-block > .ios-group-label,
.contacts-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.contacts-add-panel .grid {
  margin-bottom: 0.75rem;
}

.contacts-list-panel {
  padding-top: 0.35rem;
}

.contacts-list-quality {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.contacts-search-wrap {
  margin: 0 0 0.75rem;
}

.contacts-table-inset.table-wrap {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.contacts-table-inset .contacts-table th:first-child,
.contacts-table-inset .contacts-table td:first-child {
  padding-left: 1rem;
}

.contacts-table-inset .contacts-table th:last-child,
.contacts-table-inset .contacts-table td:last-child {
  padding-right: 1rem;
}

/* Synchroniseren (tab3) */
.sync-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.sync-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.sync-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sync-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 48rem;
}

.sync-auto-block > .ios-group-label,
.sync-services-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.sync-auto-panel .ios-settings-group:first-child {
  padding-top: 0;
}

.sync-service-topic .help-topic-head {
  align-items: center;
}

.sync-service-topic .status-pill {
  flex-shrink: 0;
  margin-left: auto;
}

.sync-service-panel {
  padding-top: 0.35rem;
}

.sync-service-panel .ios-service-detail {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #6c6c70);
}

/* CSV export/import (tab10) */
.csv-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.csv-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.csv-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.csv-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.csv-export-block > .ios-group-label,
.csv-import-block > .ios-group-label,
.csv-columns-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.csv-export-panel,
.csv-import-panel {
  padding-top: 0.35rem;
}

.csv-import-form {
  max-width: 28rem;
}

.csv-columns-panel {
  padding: 0.85rem 1rem;
}

.csv-columns-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.csv-columns-list {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

/* Instellingen (tab13) */
.settings-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.settings-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.settings-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.settings-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 48rem;
}

.settings-nav-block > .ios-group-label,
.settings-config-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.settings-nav-panel {
  padding-top: 0.35rem;
}

.settings-page-wrap .settings-nav-catalog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

.settings-page-wrap .settings-nav-group-title {
  margin: 0 0 0.35rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #6c6c70);
}

.settings-nav-inset {
  margin: 0;
}

.settings-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  color: var(--text, inherit);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.settings-nav-row::after {
  content: "›";
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted, #8e8e93);
  font-weight: 400;
}

.settings-nav-row:hover,
.settings-nav-row:focus-visible {
  background: rgba(120, 120, 128, 0.08);
  color: var(--accent, #007aff);
  outline: none;
}

.settings-config-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.settings-page-wrap .settings-section {
  scroll-margin-top: 1rem;
}

/* Gebruikersbeheer (tab5) */
.users-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.users-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.users-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.users-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 42rem;
}

.users-add-block > .ios-group-label,
.users-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.users-add-panel {
  padding-top: 0.35rem;
}

.users-add-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.users-list-panel {
  padding-top: 0.35rem;
}

.users-page-wrap .users-list-title {
  margin: 0;
}

.users-page-wrap .users-list {
  margin-top: 0;
}

.users-page-wrap .user-card {
  border: none;
  box-shadow: none;
  background: var(--surface-elevated, rgba(120, 120, 128, 0.06));
}

[data-theme="dark"] .users-page-wrap .user-card {
  background: rgba(120, 120, 128, 0.12);
}

/* Auditlog (tab6) */
.audit-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.audit-hero {
  padding: 0.15rem 0.35rem 0.25rem;
}

.audit-hero-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.audit-hero-lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #6c6c70);
  max-width: 48rem;
}

.audit-export-block > .ios-group-label,
.audit-list-block > .ios-group-label {
  margin: 0 0 0.4rem 0.35rem;
}

.audit-export-panel,
.audit-list-panel {
  padding-top: 0.35rem;
}

.audit-page-wrap .audit-list {
  gap: 0;
  margin: 0;
}

.audit-entries-inset .audit-entry-row {
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.audit-entries-inset .audit-entry-row:last-child {
  border-bottom: none;
}

.audit-entry-head {
  margin-bottom: 0.35rem;
}

.audit-entry-meta {
  margin-top: 0.35rem;
}

