/* Herning Musikskoles fælles prompt for ikke-gemte ændringer. */
.hm-unsaved-dialog {
  box-sizing: border-box;
  width: min(510px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #dce7e2;
  border-radius: 17px;
  background: #fff;
  color: #23372e;
  box-shadow: 0 28px 90px rgba(18, 42, 32, .26);
  font-family: inherit;
}
.hm-unsaved-dialog::backdrop {
  background: rgba(22, 36, 28, .54);
  backdrop-filter: blur(3px);
}
.hm-unsaved-inner { padding: 25px; }
.hm-unsaved-heading-row { display: flex; gap: 11px; align-items: center; }
.hm-unsaved-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7F1513;
  box-shadow: 0 0 0 5px #f6eae8;
}
.hm-unsaved-heading-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.hm-unsaved-description {
  margin: 15px 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5e54;
}
.hm-unsaved-multiple {
  margin: 10px 0 13px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 10px;
  background: #f8f2ec;
  color: #704d2a;
}
.hm-unsaved-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.hm-unsaved-buttons button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.hm-unsaved-cancel {
  background: transparent;
  border: 1px solid #d2dfd8;
  color: #385b4c;
}
.hm-unsaved-discard {
  background: white;
  border: 1px solid #d8b1af;
  color: #7F1513;
}
.hm-unsaved-save {
  border: 1px solid #55897e;
  background: #6DA69B;
  color: #102d24;
}
.hm-unsaved-save:disabled { opacity: .45; cursor: not-allowed; }
.hm-unsaved-buttons button:focus-visible {
  outline: 2px solid #7F1513;
  outline-offset: 2px;
}
@media(max-width:520px) {
  .hm-unsaved-inner { padding: 20px 17px; }
  .hm-unsaved-buttons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hm-unsaved-buttons button { padding: 10px 8px; }
  .hm-unsaved-cancel { grid-column: 1 / -1; }
  .hm-unsaved-save { order: 1; }
  .hm-unsaved-discard { order: 2; }
}
