/* Meldingen en bevestigingsvensters, gedeeld door het dashboard en de inlogschermen */
.alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.alerts:empty { display: none; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid; border-left-width: 4px; border-radius: 10px; color: #1d252b; background: #fff; box-shadow: 0 8px 24px rgba(16, 38, 47, .08); font-size: .93rem; line-height: 1.5; animation: alert-in .25s ease-out; }
.alert__icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert__message { flex: 1; padding-top: 1px; overflow-wrap: anywhere; }
.alert__close { display: grid; flex-shrink: 0; width: 28px; height: 28px; margin: -3px -4px 0 0; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #78848b; background: transparent; cursor: pointer; }
.alert__close:hover { color: #1d252b; background: #f5f8f9; }
.alert__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.alert--success { border-color: #bfe8d3; border-left-color: #1f9d63; }
.alert--success .alert__icon { color: #1f9d63; }
.alert--warning { border-color: #f5dfae; border-left-color: #d98c00; }
.alert--warning .alert__icon { color: #d98c00; }
.alert--error { border-color: #f3c7c3; border-left-color: #c03830; }
.alert--error .alert__icon { color: #c03830; }
.alert--info { border-color: #bfe6f5; border-left-color: #00a8e0; }
.alert--info .alert__icon { color: #00a8e0; }
.alert.is-closing { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.confirm-dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: 16px; color: #1d252b; background: #fff; box-shadow: 0 24px 60px rgba(16, 38, 47, .28); }
.confirm-dialog::backdrop { background: rgba(23, 37, 44, .55); backdrop-filter: blur(2px); }
.confirm-dialog[open] { animation: dialog-in .2s ease-out; }
.confirm-dialog__body { margin: 0; padding: 28px 26px 22px; text-align: center; }
.confirm-dialog__icon { display: inline-grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; border-radius: 50%; color: #00a8e0; background: #e6f6fc; }
.confirm-dialog.is-danger .confirm-dialog__icon { color: #c03830; background: #fcecea; }
.confirm-dialog__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.confirm-dialog__title { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 1.25rem; letter-spacing: -.02em; }
.confirm-dialog__message { margin: 0 0 22px; color: #56626a; font-size: .95rem; line-height: 1.55; }
.confirm-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.confirm-dialog__actions .button { min-width: 130px; height: 44px; padding: 0 18px; border-radius: 7px; font: 700 .92rem "DM Sans", sans-serif; cursor: pointer; }
.confirm-dialog.is-danger [data-confirm-accept] { background: #c03830; }
.confirm-dialog.is-danger [data-confirm-accept]:hover { background: #a52f28; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .alert, .confirm-dialog[open] { animation: none; } }

/* iOS zoomt in op elk invoerveld kleiner dan 16px; op aanraakschermen daarom 16px. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
}

/* Melding "Installeer de app" op mobiel */
.install-banner:not([hidden]) { position: fixed; z-index: 80; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px 14px 14px; border: 1px solid #ebf0f2; border-left: 4px solid #00a8e0; border-radius: 14px; color: #1d252b; background: #fff; box-shadow: 0 16px 40px rgba(16, 38, 47, .25); animation: install-in .3s ease-out; }
.install-banner__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 11px; }
.install-banner__text { flex: 1; min-width: 0; }
.install-banner__title { margin: 0 0 2px; font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.install-banner__body { margin: 0; color: #56626a; font-size: .86rem; line-height: 1.45; }
.install-banner__share { width: 18px; height: 18px; margin: 0 1px -3px; fill: none; stroke: #00a8e0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-banner__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.install-banner__actions .button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; color: #fff; background: #00a8e0; font: 700 .85rem "DM Sans", sans-serif; cursor: pointer; }
.install-banner__actions .link-button { padding: 0; border: 0; color: #007eae; background: none; font: 600 .85rem "DM Sans", sans-serif; cursor: pointer; }
.install-banner__close { display: grid; flex-shrink: 0; width: 28px; height: 28px; margin: -4px -2px 0 0; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #78848b; background: transparent; cursor: pointer; }
.install-banner__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.install-banner.is-ios .install-banner__actions [data-install-accept] { display: none; }
body.install-banner-open .filters-fab:not([hidden]) { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
@keyframes install-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-banner:not([hidden]) { animation: none; } }
@media (min-width: 768px) { .install-banner { display: none !important; } }

.impersonation-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #fff3cd;
  color: #664d03;
  font-weight: 600;
}
.impersonation-banner .link-button { color: inherit; text-decoration: underline; }
