.backdrop-km-alerte {
  --km-backdrop-z: 1080;
  z-index: var(--km-backdrop-z);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-km-alerte {
  --km-z: 1085;
  z-index: var(--km-z);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

.modal-km-alerte .modal-dialog {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  pointer-events: auto;
}

.modal-km-alerte .modal-content {
  background-color: #ffffff !important;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.75rem;
  outline: 0;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  position: relative;
}

.modal-km-alerte .modal-header.bg-warning {
  background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
  padding: 1.25rem 1.5rem;
}

.modal-km-alerte .modal-body {
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
}

.modal-km-alerte .modal-footer {
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.card-km-detail {
  background: #ffffff;
  border-color: #e9ecef;
}

.card-km-detail .card-body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.25rem;
}

@media (max-width: 575.98px) {
  .modal-km-alerte .modal-dialog {
    margin: 0.5rem;
    max-width: 100%;
  }

  .modal-km-alerte .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-km-alerte .modal-footer > * {
    width: 100%;
    margin: 0 !important;
  }
}
