/* The receipt at the bottom of the window (release 1.1 job KV, ADR-0050; shared/receipt.ts). One at a time, centred at
   the bottom, dark like the Bar (status in the clinical apps lives there, design guidelines 3.5), with «Angre» and ✕.
   It floats over the page and never scrolls; in the app it stays above the session's bottom line, so it never covers
   «Send til EPJ» (--om-receipt-lift is set by shared/receipt.ts). Works from 380 px; the text wraps, it is never cut. */
.om-receipts {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: calc(var(--om-space-4) + var(--om-receipt-lift, 0px));
  display: flex;
  justify-content: center;
  padding: 0 var(--om-space-4);
  pointer-events: none;
}
.om-receipts:empty { display: none; }
.om-receipts, .om-receipts * { box-sizing: border-box; }
.om-receipt {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--om-space-1);
  min-width: 0;
  max-width: min(36rem, 100%);
  padding: var(--om-space-1) var(--om-space-1) var(--om-space-1) var(--om-space-4);
  border: 1px solid var(--om-chrome-sep);
  border-radius: var(--om-radius);
  background: var(--om-chrome);
  color: var(--om-on-chrome);
  box-shadow: var(--om-shadow-raised);
  font-family: var(--om-font);
  font-size: var(--om-text-md);
  line-height: var(--om-leading);
  animation: om-receipt-in var(--om-dur) var(--om-ease);
}
.om-receipt-text { flex: 1 1 auto; min-width: 0; padding: var(--om-space-2) var(--om-space-2) var(--om-space-2) 0; overflow-wrap: anywhere; }
.om-receipt button {
  flex: 0 0 auto;
  min-height: var(--om-touch);
  min-width: var(--om-touch);
  margin: 0;
  border: 0;
  border-radius: var(--om-radius-control);
  background: transparent;
  color: var(--om-on-chrome);
  font: inherit;
  cursor: pointer;
}
/* «Angre» is a word, not only a colour: semibold, as the Bar says «Utkastet er forkastet · Angre». */
.om-receipt-undo { padding: 0 var(--om-space-3); font-weight: var(--om-weight-semibold); }
.om-receipt-close { display: inline-grid; place-items: center; padding: 0; }
/* Only with a real pointer: on a touch screen a tap would leave the button looking pressed. */
@media (hover: hover) { .om-receipt button:hover { background: var(--om-chrome-hover); } }
.om-receipt :focus-visible { outline-color: var(--om-focus-on-chrome); }
@keyframes om-receipt-in {
  from { opacity: 0; transform: translateY(var(--om-space-2)); }
  to { opacity: 1; transform: none; }
}
@media print { .om-receipts { display: none; } }
