/*
 * mksf_order – dark, touch-first POS look.
 * Everything is scoped below .mksf-order so the site's own styles stay untouched.
 */

.mksf-order {
  --om-bg: #0d1117;
  --om-bg-soft: #131a23;
  --om-surface: #18212c;
  --om-surface-2: #1f2a37;
  --om-surface-3: #283646;
  --om-line: rgba(255, 255, 255, 0.08);
  --om-line-strong: rgba(255, 255, 255, 0.16);
  --om-text: #eef2f7;
  --om-muted: #93a1b3;
  --om-accent: #ffb547;
  --om-accent-strong: #ff9f1c;
  --om-accent-ink: #1d1200;
  --om-accent-soft: rgba(255, 181, 71, 0.14);
  --om-success: #34d399;
  --om-success-soft: rgba(52, 211, 153, 0.14);
  --om-warning: #fbbf24;
  --om-warning-soft: rgba(251, 191, 36, 0.14);
  --om-danger: #f87171;
  --om-danger-soft: rgba(248, 113, 113, 0.14);
  --om-info: #60a5fa;
  --om-drinks: #38bdf8;
  --om-food: #fb923c;
  --om-other: #a78bfa;
  --om-radius: 16px;
  --om-radius-sm: 10px;
  --om-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --om-nav-h: 70px;
  --om-header-h: 60px;
  --om-font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: var(--om-header-h) auto 1fr;
  grid-template-areas: "header" "nav" "main";
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(255, 181, 71, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--om-bg);
  color: var(--om-text);
  font-family: var(--om-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}

.mksf-order *,
.mksf-order *::before,
.mksf-order *::after {
  box-sizing: border-box;
}

.mksf-order :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}

.mksf-order :where(ul) {
  padding: 0;
  list-style: none;
}

.mksf-order :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

.mksf-order :where(button) {
  cursor: pointer;
}

.mksf-order :focus-visible {
  outline: 2px solid var(--om-accent);
  outline-offset: 2px;
}

.om-icon {
  display: inline-flex;
  flex: none;
}

.om-muted {
  color: var(--om-muted);
}

/* ---------------------------------------------------------------- Boot / notice */

.om-boot,
.om-loading {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 48px 16px;
  color: var(--om-muted);
}

.om-boot {
  grid-row: 1 / -1;
}

.om-boot__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--om-surface-3);
  border-top-color: var(--om-accent);
  border-radius: 50%;
  animation: om-spin 0.8s linear infinite;
}

@keyframes om-spin {
  to { transform: rotate(360deg); }
}

/* Login and notices: centred, but never cut off at the top (small phones, keyboard open, status bar) */
.mksf-order--notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mksf-order--notice > .om-notice {
  flex: none;
  margin-top: auto;
}

.om-poweredby {
  flex: none;
  margin-bottom: auto;
  color: var(--om-muted);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.om-poweredby strong {
  color: var(--om-text);
  font-weight: 700;
}

.om-notice {
  width: min(420px, 100%);
  padding: 32px 24px;
  border: 1px solid var(--om-line);
  border-radius: 24px;
  background: var(--om-surface);
  box-shadow: var(--om-shadow);
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.om-notice__logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--om-accent), var(--om-accent-strong));
  color: var(--om-accent-ink);
}

.om-notice__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.om-notice > form {
  width: 100%;
}

.om-login {
  display: grid;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.om-login .om-btn {
  margin-top: 4px;
}

.om-login__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
  background: var(--om-danger-soft);
  color: var(--om-danger);
  font-weight: 600;
  font-size: 0.9rem;
}

.om-login__hint {
  color: var(--om-muted);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- Header */

.om-header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--om-line);
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(14px);
}

.om-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.om-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--om-accent), var(--om-accent-strong));
  color: var(--om-accent-ink);
  box-shadow: 0 4px 14px rgba(255, 159, 28, 0.35);
}

.om-brand__title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.om-header__user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.om-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.om-status.is-online {
  background: var(--om-success);
  box-shadow: 0 0 0 4px var(--om-success-soft);
}

.om-status.is-offline {
  background: var(--om-danger);
  box-shadow: 0 0 0 4px var(--om-danger-soft);
  animation: om-pulse 1.2s ease-in-out infinite;
}

@keyframes om-pulse {
  50% { opacity: 0.4; }
}

.om-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--om-surface-2);
  border: 1px solid var(--om-line);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 0;
}

/* As high as the icon buttons beside it (sound, logout) */
.om-chip--role {
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border-color: rgba(255, 181, 71, 0.35);
  background: var(--om-accent-soft);
  color: var(--om-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.om-chip span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ---------------------------------------------------------------- Navigation */

.om-nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--om-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.om-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--om-muted);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.om-nav__item:hover {
  background: var(--om-surface);
  color: var(--om-text);
}

.om-nav__item.is-active {
  background: var(--om-accent-soft);
  color: var(--om-accent);
}

.om-nav__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--om-danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.om-nav__badge[hidden] {
  display: none;
}

.has-single-tab .om-nav {
  display: none;
}

/* ---------------------------------------------------------------- Main / pages */

.om-main {
  grid-area: main;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.om-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.om-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.om-page__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.om-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  background: var(--om-surface);
}

.om-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.om-card__title .om-icon {
  color: var(--om-accent);
}

.om-stack {
  display: grid;
  gap: 14px;
}

/* ---------------------------------------------------------------- Buttons */

.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.08s, background 0.15s, border-color 0.15s, opacity 0.15s;
  user-select: none;
}

.om-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.om-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.om-btn--primary {
  background: linear-gradient(135deg, var(--om-accent), var(--om-accent-strong));
  color: var(--om-accent-ink);
  box-shadow: 0 6px 18px rgba(255, 159, 28, 0.28);
}

.om-btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.om-btn--secondary {
  background: var(--om-surface-3);
  color: var(--om-text);
}

.om-btn--ghost {
  background: transparent;
  border-color: var(--om-line-strong);
  color: var(--om-text);
}

.om-btn--ghost:hover:not(:disabled),
.om-btn--secondary:hover:not(:disabled) {
  background: var(--om-surface-2);
}

.om-btn--danger {
  background: var(--om-danger);
  color: #2a0505;
}

.om-btn--warning {
  background: var(--om-warning-soft);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--om-warning);
}

.om-btn--success {
  background: var(--om-success-soft);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--om-success);
}

.om-btn--sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.om-btn--lg {
  min-height: 56px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.om-btn--block {
  width: 100%;
}

.om-btn.is-loading .om-icon {
  animation: om-spin 0.8s linear infinite;
}

.om-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--om-line);
  border-radius: 12px;
  background: var(--om-surface-2);
  color: var(--om-text);
  transition: background 0.15s, color 0.15s;
}

.om-iconbtn:hover:not(:disabled) {
  background: var(--om-surface-3);
}

.om-iconbtn:disabled {
  opacity: 0.3;
  cursor: default;
}

.om-iconbtn.is-active {
  color: var(--om-accent);
  border-color: rgba(255, 181, 71, 0.4);
}

.om-iconbtn--danger:hover:not(:disabled) {
  background: var(--om-danger-soft);
  color: var(--om-danger);
}

.om-iconbtn--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.om-iconbtn--xs {
  width: 28px;
  height: 22px;
  border-radius: 6px;
  border: 0;
  background: transparent;
}

.om-chipbtn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--om-line-strong);
  border-radius: 999px;
  background: var(--om-surface-2);
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.om-chipbtn:hover {
  border-color: var(--om-accent);
  background: var(--om-accent-soft);
}

/* ---------------------------------------------------------------- Inputs */

.om-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.om-field__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--om-muted);
}

.om-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--om-line-strong);
  border-radius: 12px;
  background: var(--om-bg-soft);
  color: var(--om-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.om-input::placeholder {
  color: #5f6e80;
}

/* Input fields show no focus frame */
.om-input:focus {
  outline: none;
}

.om-input--sm {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.om-input--xl {
  min-height: 60px;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
}

.om-textarea {
  resize: vertical;
  min-height: 64px;
}

.om-select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a1b3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.om-segment {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--om-line);
  border-radius: 14px;
  background: var(--om-bg-soft);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.om-segment--wide {
  display: flex;
}

.om-segment__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--om-muted);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.om-segment--wide .om-segment__item {
  flex: 1;
  justify-content: center;
}

.om-segment__item.is-active {
  background: var(--om-surface-3);
  color: var(--om-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.om-segment__count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--om-surface-2);
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

.om-segment__item.is-active .om-segment__count {
  background: var(--om-accent);
  color: var(--om-accent-ink);
}

.om-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--om-line);
  border-radius: 14px;
  background: var(--om-bg-soft);
  color: var(--om-muted);
}

.om-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
}

.om-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--om-line-strong);
  border-radius: 999px;
  background: var(--om-surface);
  font-weight: 600;
  font-size: 0.9rem;
}

.om-toggle__track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--om-surface-3);
  transition: background 0.2s;
}

.om-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.om-toggle.is-on {
  border-color: rgba(52, 211, 153, 0.45);
}

.om-toggle.is-on .om-toggle__track {
  background: var(--om-success);
}

.om-toggle.is-on .om-toggle__thumb {
  transform: translateX(16px);
}

.om-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--om-muted);
  font-size: 0.875rem;
}

.om-hint--warning {
  color: var(--om-warning);
}

/* ---------------------------------------------------------------- Badges / pills */

.om-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--om-accent);
  color: var(--om-accent-ink);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.om-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.om-pill--new {
  background: var(--om-accent-soft);
  color: var(--om-accent);
}

.om-pill--printed {
  background: var(--om-success-soft);
  color: var(--om-success);
}

.om-pill--cancelled {
  background: var(--om-danger-soft);
  color: var(--om-danger);
}

.om-banner {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid;
}

.om-banner--warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: var(--om-warning-soft);
  color: var(--om-warning);
}

.om-banner strong {
  display: block;
  margin-bottom: 2px;
}

.om-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.om-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--om-surface-2);
  color: var(--om-muted);
}

.om-empty__title {
  font-weight: 700;
}

/* ---------------------------------------------------------------- Order view */

.om-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  min-height: 100%;
}

.om-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  padding: 20px 16px 32px;
  min-width: 0;
}

.om-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.om-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.om-tile {
  --om-cat: var(--om-other);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--om-cat) 14%, transparent), transparent 60%),
    var(--om-surface);
  text-align: left;
  overflow: hidden;
  transition: transform 0.08s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.om-tile--drinks { --om-cat: var(--om-drinks); }
.om-tile--food { --om-cat: var(--om-food); }
.om-tile--other { --om-cat: var(--om-other); }

.om-tile:hover {
  border-color: color-mix(in srgb, var(--om-cat) 55%, transparent);
}

.om-tile:active {
  transform: scale(0.96);
}

.om-tile.is-selected {
  border-color: var(--om-accent);
  box-shadow: 0 0 0 1px var(--om-accent), 0 8px 24px rgba(255, 159, 28, 0.18);
}

.om-tile__cat {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--om-cat) 20%, transparent);
  color: var(--om-cat);
}

.om-tile__qty {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--om-accent);
  color: var(--om-accent-ink);
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  animation: om-pop 0.2s ease-out;
}

@keyframes om-pop {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}

.om-tile__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  word-break: break-word;
}

.om-tile__price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--om-accent);
  font-variant-numeric: tabular-nums;
}

/* Head row: category icon, and the status of a blocked article next to it */
.om-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

/* Blocked article: only marked – greyed out completely, its state instead of the category icon.
   The pause reason is shown as a message when the tile is tapped. */
.om-tile.is-paused {
  cursor: not-allowed;
  border-style: dashed;
  border-color: var(--om-line-strong);
  background: var(--om-bg-soft);
  box-shadow: none;
}

.om-tile.is-paused:hover {
  border-color: var(--om-line-strong);
}

.om-tile.is-paused:active {
  transform: none;
}

.om-tile.is-paused .om-tile__cat {
  display: none;
}

.om-tile.is-paused :is(.om-tile__title, .om-tile__price) {
  color: var(--om-muted);
  opacity: 0.6;
}

/* Small state label: "Pausiert" / "Ausverkauft" */
.om-blocked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--om-surface-3);
  color: var(--om-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* "Zurzeit nicht bestellbar": one closed line, the list opens on tap */
.om-unavailable {
  border: 1px solid var(--om-line-strong);
  border-radius: 14px;
  background: var(--om-surface);
}

.om-unavailable__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--om-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.om-unavailable__summary::-webkit-details-marker {
  display: none;
}

.om-unavailable__summary > .om-icon:first-child {
  flex: none;
  color: var(--om-warning);
}

.om-unavailable__summary > strong {
  flex: none;
  font-size: 0.9rem;
}

.om-unavailable__count {
  flex: none;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--om-surface-3);
  color: var(--om-text);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.om-unavailable__names {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--om-muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-unavailable__summary > .om-icon:last-child {
  flex: none;
  margin-left: auto;
  color: var(--om-muted);
  transition: transform 0.15s;
}

.om-unavailable[open] .om-unavailable__summary > .om-icon:last-child {
  transform: rotate(180deg);
}

/* Opened, the names move into the groups below */
.om-unavailable[open] .om-unavailable__names {
  visibility: hidden;
}

.om-unavailable__groups {
  display: grid;
  gap: 10px;
  padding: 2px 12px 12px;
}

.om-unavailable__group {
  display: grid;
  gap: 6px;
}

.om-unavailable__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--om-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.om-unavailable__group.is-soldout .om-unavailable__label .om-icon {
  color: var(--om-danger);
}

.om-unavailable__group.is-paused .om-unavailable__label .om-icon {
  color: var(--om-warning);
}

.om-unavailable__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tap for the reason */
.om-unavailable__chip {
  padding: 5px 12px;
  border: 1px solid var(--om-line-strong);
  border-radius: 999px;
  background: var(--om-bg-soft);
  color: var(--om-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.om-unavailable__chip:hover {
  color: var(--om-text);
  border-color: var(--om-muted);
}

/* ---------------------------------------------------------------- Cart */

.om-cart {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100dvh - var(--om-header-h) - 58px);
  border-left: 1px solid var(--om-line);
  background: var(--om-bg-soft);
}

.has-single-tab .om-cart {
  height: calc(100dvh - var(--om-header-h));
}

.om-cart__bar {
  display: none;
}

.om-cart__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px 16px;
  overflow-y: auto;
}

.om-cart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.om-cart__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.om-lines {
  display: grid;
  gap: 8px;
}

.om-line {
  display: grid;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--om-line);
  border-radius: 14px;
  background: var(--om-surface);
  animation: om-slide 0.18s ease-out;
}

@keyframes om-slide {
  from { opacity: 0; transform: translateY(-4px); }
}

.om-line.is-paused {
  border-color: rgba(251, 191, 36, 0.5);
  background: var(--om-warning-soft);
}

.om-line__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.om-line__info {
  display: grid;
  flex: 1;
  min-width: 0;
}

.om-line__title {
  font-weight: 700;
}

.om-line__price {
  color: var(--om-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.om-line__comment,
.om-line__warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 0.82rem;
}

.om-line__comment {
  color: var(--om-info);
}

.om-line__warning {
  color: var(--om-warning);
  font-weight: 700;
}

.om-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--om-bg-soft);
  border: 1px solid var(--om-line);
}

.om-stepper__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.om-stepper__btn:hover:not(:disabled) {
  background: var(--om-surface-3);
}

.om-stepper__btn:disabled {
  opacity: 0.3;
}

.om-stepper__value {
  min-width: 28px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.om-cart__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--om-line-strong);
}

.om-cart__sum span {
  color: var(--om-muted);
  font-weight: 600;
}

.om-cart__sum strong {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Payment dialog */

.om-pay {
  display: grid;
  gap: 16px;
}

.om-pay__hero {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--om-accent), var(--om-accent-strong));
  color: var(--om-accent-ink);
  text-align: center;
}

.om-pay__label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.om-pay__total {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.om-pay__meta {
  font-weight: 600;
  opacity: 0.8;
}

.om-pay__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-pay__change {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--om-success-soft);
  color: var(--om-success);
  font-weight: 700;
}

.om-pay__change-value {
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.om-pay__change-value.is-negative {
  color: var(--om-danger);
}

.om-pay__printed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--om-muted);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- Dialog */

.om-dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--om-line-strong);
  border-radius: 22px;
  background: var(--om-surface);
  color: var(--om-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-family: var(--om-font);
}

.om-dialog[open] {
  animation: om-dialog-in 0.2s ease-out;
}

@keyframes om-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.om-dialog::backdrop {
  background: rgba(3, 6, 10, 0.7);
  backdrop-filter: blur(4px);
}

.om-dialog__inner {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.om-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.om-dialog__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.om-dialog__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------------------------------------------------------------- Toasts */

.om-toasts {
  position: fixed;
  top: calc(var(--om-header-h) + 12px);
  right: 16px;
  z-index: 9500;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.om-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--om-line-strong);
  border-left: 4px solid var(--om-info);
  border-radius: 14px;
  background: var(--om-surface-2);
  box-shadow: var(--om-shadow);
  pointer-events: auto;
  animation: om-toast-in 0.25s ease-out;
}

.om-toast.is-leaving {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes om-toast-in {
  from { opacity: 0; transform: translateX(16px); }
}

.om-toast--success { border-left-color: var(--om-success); }
.om-toast--success > .om-icon { color: var(--om-success); }
.om-toast--warning { border-left-color: var(--om-warning); }
.om-toast--warning > .om-icon { color: var(--om-warning); }
.om-toast--error { border-left-color: var(--om-danger); }
.om-toast--error > .om-icon { color: var(--om-danger); }
.om-toast--info > .om-icon { color: var(--om-info); }

.om-toast__text {
  flex: 1;
  font-weight: 600;
}

.om-toast__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--om-muted);
}

/* ---------------------------------------------------------------- Cash desk */

.om-orders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}

.om-orders--compact {
  grid-template-columns: 1fr;
}

.om-ordercard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  background: var(--om-surface);
  animation: om-slide 0.2s ease-out;
}

.om-ordercard.is-new {
  border-color: rgba(255, 181, 71, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.2), 0 10px 30px rgba(255, 159, 28, 0.08);
}

.om-ordercard.is-cancelled {
  opacity: 0.6;
}

.om-ordercard.is-cancelled .om-ordercard__items {
  text-decoration: line-through;
}

.om-ordercard__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.om-ordercard__id {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.om-ordercard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  flex: 1;
  color: var(--om-muted);
  font-size: 0.85rem;
}

.om-ordercard__table {
  color: var(--om-text);
  font-weight: 700;
}

.om-ordercard__items {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-block: 1px dashed var(--om-line-strong);
}

.om-ordercard__items li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: baseline;
}

.om-ordercard__qty {
  font-weight: 800;
  color: var(--om-accent);
}

/* Open order, partly printed: positions already out are struck through */
.om-ordercard__items li.is-done {
  color: var(--om-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--om-success) 80%, transparent);
  text-decoration-thickness: 2px;
  opacity: 0.75;
}

.om-ordercard__items li.is-done .om-ordercard__qty {
  color: var(--om-muted);
}

.om-ordercard__name small {
  display: block;
  color: var(--om-info);
  font-size: 0.8rem;
}

.om-ordercard__amount {
  color: var(--om-muted);
  font-variant-numeric: tabular-nums;
}

.om-ordercard__comment {
  display: flex;
  gap: 6px;
  color: var(--om-info);
  font-size: 0.9rem;
}

.om-ordercard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.om-ordercard__total {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* Up to three actions: they wrap instead of running out of a narrow card */
.om-ordercard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.om-ordercard__actions .om-btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Articles */

.om-articleform {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.om-articleform__actions {
  display: flex;
  gap: 8px;
}

.om-articleform__actions .om-btn {
  min-height: 46px;
}

.om-articlelist {
  display: grid;
}

.om-articlerow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--om-line);
}

.om-articlerow:first-child {
  border-top: 0;
}

.om-articlerow.is-editing {
  display: block;
  padding: 14px;
  margin: 4px -14px;
  border-radius: 14px;
  background: var(--om-surface-2);
}

.om-articlerow__sort {
  display: grid;
}

.om-articlerow__info {
  display: grid;
  flex: 1;
  min-width: 0;
}

.om-articlerow__title {
  font-weight: 700;
}

.om-articlerow__available {
  color: var(--om-success);
  font-size: 0.82rem;
}

.om-articlerow__paused {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--om-warning);
  font-size: 0.82rem;
  font-weight: 600;
}

.om-articlerow.is-paused .om-articlerow__title {
  color: var(--om-muted);
}

.om-articlerow__price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.om-articlerow__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------------- Statistics */

.om-periodbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.om-periodbar__range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.om-kpi {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  background: var(--om-surface);
}

.om-kpi__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--om-surface-3);
  color: var(--om-muted);
}

.om-kpi__label {
  color: var(--om-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.om-kpi__value {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.om-kpi--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--om-accent), var(--om-accent-strong));
  color: var(--om-accent-ink);
}

.om-kpi--accent .om-kpi__label {
  color: inherit;
  opacity: 0.75;
}

.om-kpi--accent .om-kpi__icon {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
}

.om-statgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.om-card--span {
  grid-column: 1 / -1;
}

.om-bars {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 220px;
  padding-top: 8px;
  overflow-x: auto;
}

.om-bars__col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  flex: 1 0 44px;
  max-width: 80px;
  gap: 6px;
}

.om-bars__value {
  font-size: 0.72rem;
  color: var(--om-muted);
  white-space: nowrap;
}

.om-bars__bar {
  align-self: end;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--om-accent), color-mix(in srgb, var(--om-accent-strong) 55%, transparent));
  transition: height 0.4s ease-out;
}

.om-bars__col:hover .om-bars__bar {
  filter: brightness(1.15);
}

.om-bars__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--om-muted);
  white-space: nowrap;
}

.om-catstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.om-catstat {
  --om-cat: var(--om-other);

  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--om-cat) 10%, var(--om-surface-2));
}

.om-catstat--drinks { --om-cat: var(--om-drinks); }
.om-catstat--food { --om-cat: var(--om-food); }

.om-catstat__head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--om-cat);
  font-weight: 700;
}

.om-catstat__value {
  font-size: 1.4rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.om-catstat .om-meter__bar {
  background: var(--om-cat);
}

.om-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.om-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.om-table th {
  padding: 8px 6px;
  color: var(--om-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--om-line-strong);
}

.om-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--om-line);
  vertical-align: middle;
}

.om-table tr:last-child td {
  border-bottom: 0;
}

.om-table__num {
  text-align: right !important;
  white-space: nowrap;
}

.om-table__rank {
  width: 32px;
  color: var(--om-muted);
  font-weight: 700;
}

.om-table__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.om-table__name .om-icon {
  color: var(--om-muted);
}

.om-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--om-accent-soft);
  color: var(--om-accent);
  font-size: 0.8rem;
  font-weight: 800;
  flex: none;
}

.om-meter {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--om-surface-3);
  overflow: hidden;
}

.om-meter__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--om-accent);
}

/* ---------------------------------------------------------------- Cart tools (undo, clear) */

.om-cart__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.om-cart__tools .om-btn {
  flex: 1;
}

.om-btn--danger-text {
  color: var(--om-danger);
}

.om-btn--danger-text:hover:not(:disabled) {
  background: var(--om-danger-soft);
}

/* ---------------------------------------------------------------- Checkboxes */

.om-checks {
  display: grid;
  gap: 8px;
}

.om-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--om-line);
  border-radius: 12px;
  background: var(--om-bg-soft);
  cursor: pointer;
}

.om-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--om-accent);
}

.om-check__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Banner (info) */

.om-banner--info {
  align-items: center;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
  color: var(--om-info);
}

.om-banner__body {
  display: grid;
  flex: 1;
  color: var(--om-text);
}

.om-banner__body strong {
  color: var(--om-info);
}

/* ---------------------------------------------------------------- Printer status and setup */

.om-printerstatusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-printerstatusbar:empty {
  display: none;
}

.om-printerstatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--om-line-strong);
  border-radius: 999px;
  background: var(--om-surface);
  font-size: 0.875rem;
}

.om-printerstatus span:last-child {
  color: var(--om-muted);
}

.om-printerstatus__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--om-muted);
}

.om-printerstatus.is-online {
  border-color: rgba(52, 211, 153, 0.4);
}

.om-printerstatus.is-online .om-printerstatus__dot {
  background: var(--om-success);
  box-shadow: 0 0 0 4px var(--om-success-soft);
}

.om-printerstatus.is-offline {
  border-color: rgba(248, 113, 113, 0.5);
  background: var(--om-danger-soft);
}

.om-printerstatus.is-offline .om-printerstatus__dot {
  background: var(--om-danger);
  animation: om-pulse 1.2s ease-in-out infinite;
}

.om-printerstatus.is-offline span:last-child {
  color: var(--om-danger);
  font-weight: 700;
}

.om-printing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  background: var(--om-surface);
}

.om-printing__info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.om-printing__info > .om-icon {
  margin-top: 2px;
  color: var(--om-accent);
}


.om-check {
  margin-left: calc(var(--depth, 0) * 20px);
}

.om-field__help {
  font-size: 0.8rem;
}

.om-printing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.om-printerstatus.is-mine {
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.45);
}


/* ---------------------------------------------------------------- Sold out */

.om-btn--soldout {
  background: var(--om-danger-soft);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--om-danger);
}

.om-articlerow__soldout {
  color: var(--om-danger);
}

.om-articlerow__soldout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}



/* ---------------------------------------------------------------- Print or not */

/* One button "Abschließen" across the whole width */
.om-dialog--pay .om-dialog__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.om-dialog--pay .om-pay__choice {
  width: 100%;
}

.om-pill--noprint {
  background: var(--om-surface-3);
  color: var(--om-muted);
}

.om-ticket.is-hold {
  border-style: dashed;
  color: var(--om-muted);
}

.om-ticket.is-skipped {
  color: var(--om-muted);
  text-decoration: line-through;
}

/* ---------------------------------------------------------------- Tickets on an order card */

.om-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.om-ticket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--om-line-strong);
  border-radius: 999px;
  background: var(--om-bg-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.om-ticket.is-new {
  border-color: rgba(255, 181, 71, 0.45);
  color: var(--om-accent);
}

.om-ticket.is-printed {
  color: var(--om-success);
}

/* Positions no printer covers: waiting for the cash desk (print by hand or "set as printed") */
.om-ticket.is-unassigned.is-new {
  border-style: dashed;
  border-color: rgba(251, 191, 36, 0.55);
  background: var(--om-warning-soft);
  color: var(--om-warning);
}

.om-ticket:disabled {
  cursor: default;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1100px) {
  .om-order {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .om-statgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mksf-order {
    grid-template-rows: var(--om-header-h) 1fr auto;
    grid-template-areas: "header" "main" "nav";
  }

  .om-nav {
    justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--om-line);
    border-bottom: 0;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(14px);
  }

  .om-nav__item {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 8px 4px;
    font-size: 0.72rem;
  }

  .om-nav__badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
  }

  .om-order {
    display: block;
    padding-bottom: 88px;
  }

  .om-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .om-cart {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: var(--om-nav-h);
    z-index: 20;
    height: auto;
    max-height: calc(100dvh - var(--om-header-h) - var(--om-nav-h) - 12px);
    display: flex;
    flex-direction: column;
    border: 0;
    border-top: 1px solid var(--om-line-strong);
    border-radius: 22px 22px 0 0;
    background: var(--om-bg-soft);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  }

  .has-single-tab .om-cart {
    bottom: 0;
    height: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .om-cart__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    text-align: left;
  }

  .om-cart__bar::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 999px;
    background: var(--om-line-strong);
  }

  .om-cart__count {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--om-surface-3);
  }

  .om-cart__count .om-badge {
    position: absolute;
    top: -6px;
    right: -6px;
  }

  .om-cart__bar-label {
    flex: 1;
    color: var(--om-muted);
    font-weight: 600;
  }

  .om-cart__bar-total {
    font-size: 1.35rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .om-cart__panel {
    display: none;
    height: auto;
    padding-top: 4px;
  }

  .is-cart-open .om-cart__panel {
    display: flex;
  }

  .is-cart-open .om-cart__bar-total {
    color: var(--om-accent);
  }

  .om-articleform {
    grid-template-columns: 1fr 1fr;
  }

  .om-articleform .om-field--grow,
  .om-articleform__actions {
    grid-column: 1 / -1;
  }

  .om-articleform__actions .om-btn {
    flex: 1;
  }

  .om-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-toasts {
    top: calc(var(--om-header-h) + 8px);
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 560px) {
  .om-page,
  .om-catalog {
    padding: 16px 12px 24px;
  }

  .om-page__title {
    font-size: 1.35rem;
  }

  .om-chip span:last-child {
    max-width: 90px;
  }

  .om-chip--role {
    display: none;
  }

  .om-kpi {
    padding: 14px;
  }

  .om-kpi__value {
    font-size: 1.3rem;
  }

  .om-articlerow {
    flex-wrap: wrap;
  }

  .om-articlerow__info {
    flex-basis: calc(100% - 140px);
  }

  .om-articlerow__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .om-hide-sm {
    display: none;
  }

  .om-orders {
    grid-template-columns: 1fr;
  }

  .om-toggle {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mksf-order *,
  .mksf-order *::before,
  .mksf-order *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- Receipt (print) */

.om-print {
  display: none;
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  body.om-is-printing > *:not(#om-print) {
    display: none !important;
  }

  body.om-is-printing {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.om-is-printing #om-print {
    display: block;
  }
}

.om-receipt {
  width: 72mm;
  padding: 2mm 3mm 6mm;
  color: #000;
  background: #fff;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.35;
}

.om-receipt__title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.om-receipt__no {
  margin-top: 2mm;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.om-receipt__table {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.om-receipt__meta {
  margin-bottom: 2mm;
  padding-bottom: 2mm;
  border-bottom: 1px dashed #000;
  text-align: center;
}

.om-receipt__cancelled {
  margin-bottom: 2mm;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.om-receipt__items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2mm;
}

.om-receipt__items td {
  padding: 0.6mm 0;
  vertical-align: top;
}

.om-receipt__qty {
  width: 9mm;
  font-weight: 700;
  font-size: 14px;
}

.om-receipt__name {
  font-weight: 700;
  font-size: 14px;
}

.om-receipt__amount {
  text-align: right;
  white-space: nowrap;
}

.om-receipt__comment-row td {
  padding-top: 0;
  font-style: italic;
}

.om-receipt__comment {
  padding: 1.5mm 0;
  border-top: 1px dashed #000;
}

.om-receipt__total {
  display: flex;
  justify-content: space-between;
  padding-top: 2mm;
  border-top: 2px solid #000;
  font-size: 18px;
  font-weight: 700;
}

.om-receipt__station {
  margin: 1mm 0;
  padding: 1mm 0;
  border-block: 2px solid #000;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.om-receipt__subtotal {
  display: flex;
  justify-content: space-between;
  padding-top: 2mm;
  border-top: 2px solid #000;
  font-size: 16px;
  font-weight: 700;
}

.om-receipt__footer {
  margin-top: 3mm;
  text-align: center;
}

/* ---------------------------------------------------------------- Responsive refinements (phone/tablet) */

@media (max-width: 860px) {
  .om-nav__item {
    min-width: 0;
  }

  .om-nav__label {
    font-size: 0.66rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Category, period and filter bars wrap instead of being cut off */
  .om-segment {
    flex-wrap: wrap;
  }

  .om-segment__item {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
  }

  .om-toolbar {
    gap: 10px;
  }

  .om-toolbar .om-segment,
  .om-periodbar .om-segment {
    width: 100%;
  }

  .om-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .om-banner > .om-btn {
    width: 100%;
  }

  .om-printerstatus {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .om-printing {
    padding: 12px;
  }

  .om-printing__actions {
    width: 100%;
  }

  .om-printing__actions .om-btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .om-page__head .om-page__actions {
    width: 100%;
  }

  .om-page__actions .om-toggle {
    flex: 1;
    justify-content: center;
  }

  /* Three compact tiles per row on a phone */
  .om-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .om-tile {
    min-height: 96px;
    padding: 10px;
    gap: 6px;
    border-radius: 14px;
  }

  .om-tile__cat {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .om-tile__title {
    font-size: 0.86rem;
  }

  .om-tile__price {
    font-size: 0.92rem;
  }

  .om-tile__qty {
    top: 6px;
    right: 6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 0.8rem;
    line-height: 24px;
  }

  .om-tile .om-blocked {
    padding: 1px 6px;
    font-size: 0.66rem;
  }

  /* Article rows: sort | name | price, actions below */
  .om-articlerow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
  }

  .om-articlerow__actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .om-articlerow > .om-avatar + .om-articlerow__info + .om-articlerow__actions {
    grid-column: auto;
  }

  .om-articleform {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .om-kpis {
    gap: 8px;
  }

  .om-kpi__icon {
    display: none;
  }

  .om-ordercard__foot .om-ordercard__actions {
    width: 100%;
  }

  .om-ordercard__actions .om-btn {
    flex: 1;
  }

  .om-dialog {
    width: calc(100vw - 16px);
  }

  .om-dialog__inner {
    padding: 16px;
  }

  .om-cart__panel {
    padding: 12px;
  }

  .om-table th,
  .om-table td {
    padding-inline: 4px;
  }
}

@media (max-width: 340px) {
  .om-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .om-card {
    padding: 14px;
  }

  .om-articlerow__actions {
    gap: 6px;
  }

  .om-articlerow__actions .om-btn--sm {
    flex: 1;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .om-articlerow__actions .om-iconbtn {
    width: 36px;
    height: 36px;
  }
}

.om-pay__choice {
  white-space: nowrap;
}

@media (max-width: 400px) {
  .om-pay__choice {
    padding: 0 10px;
    font-size: 0.95rem;
  }
}

/* ---------------------------------------------------------------- Drag & drop sorting */

.om-categorycards {
  display: grid;
  gap: 16px;
}

.om-grip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 36px;
  border-radius: 8px;
  color: var(--om-muted);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.om-grip:hover {
  background: var(--om-surface-3);
  color: var(--om-text);
}

.om-card__title > .om-grip {
  margin-left: -8px;
}

.is-sorting {
  user-select: none;
}

.is-sorting .om-grip {
  cursor: grabbing;
}

.is-dragging {
  position: relative;
  z-index: 5;
  border-radius: 14px;
  background: var(--om-surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--om-accent);
}

.om-articlerow.is-dragging {
  padding-inline: 8px;
}

/* ---------------------------------------------------------------- Bluetooth printer */

.om-bluetooth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.om-check--all {
  border-color: rgba(255, 181, 71, 0.35);
}

/* ---------------------------------------------------------------- Printer management */

.om-printerlist > summary {
  cursor: pointer;
  list-style: none;
}

.om-printerlist > summary::-webkit-details-marker {
  display: none;
}

.om-printerlist > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--om-muted);
  transition: transform 0.2s;
}

.om-printerlist[open] > summary::after {
  transform: rotate(180deg);
}

.om-printerlist .om-articlerow {
  grid-template-columns: minmax(0, 1fr) auto;
}

.om-printerlist .om-articlerow__actions {
  grid-column: auto;
}

/* Printer reachable cannot be checked (system printer): neither green nor red */
.om-printerstatus.is-unknown .om-printerstatus__dot {
  background: var(--om-warning);
}

/* Cash desk before a printer is set up on the device */
.om-setupcard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding: 18px;
  border: 1px dashed var(--om-accent);
  background: var(--om-accent-soft);
}

.om-setupcard__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--om-accent);
  color: var(--om-accent-ink);
  flex: none;
}

.om-setupcard__body {
  flex: 1 1 220px;
  min-width: 0;
}

.om-setupcard__body p {
  margin: 4px 0 0;
}

/* Printing without the print dialog */
.om-silent {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.om-silent > strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-silent p {
  margin: 0;
}

.om-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.om-code {
  display: block;
  padding: 10px 12px;
  border-radius: var(--om-radius-sm);
  background: var(--om-bg);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  user-select: all;
}

/* Dragging a category: the cards shrink to their title so a short move passes a neighbour */
.om-categorycards.is-collapsed .om-categorycard > .om-articlelist {
  display: none;
}

.om-categorycards.is-collapsed .om-categorycard > .om-card__title {
  margin-bottom: 0;
}

/* Article hidden from ordering by the administrator */
.om-articlerow.is-hidden .om-articlerow__title,
.om-articlerow.is-hidden .om-articlerow__price,
.om-articlerow.is-hidden .om-articlerow__info > span:not(.om-articlerow__title) {
  opacity: 0.55;
}

.om-articlerow__title .om-badge--hidden {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--om-surface-3);
  color: var(--om-muted);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  opacity: 1;
}

.om-iconbtn--active {
  background: var(--om-accent-soft);
  color: var(--om-accent);
}

.om-code--inline {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
}

/* Installed app (full screen): keep the header clear of the phone's status bar / notch */
@media (display-mode: standalone) {
  .mksf-order {
    --om-header-h: calc(60px + env(safe-area-inset-top));
  }

  .om-header {
    padding-top: env(safe-area-inset-top);
  }
}

/* "Install app" offer above the current view */
.om-install {
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
}

.om-install .om-banner__body {
  min-width: 0;
}

.om-install {
  position: relative;
  padding-right: 52px;
}

.om-install > .om-iconbtn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ---------------------------------------------------------------- Cart: head / scrolling body / fixed foot */

/* Only the middle scrolls; head and the send button stay put */
.om-cart__panel {
  overflow: hidden;
}

.om-cart__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  margin: 0 -4px;
  padding: 0 4px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.om-cart__foot {
  display: grid;
  flex: none;
  gap: 10px;
}

.om-cart__foot .om-cart__sum {
  margin-top: 0;
}

@media (max-width: 860px) {
  /* The open sheet fills the screen between header and navigation – the send button is always visible */
  .is-cart-open .om-cart {
    height: calc(100dvh - var(--om-header-h) - var(--om-nav-h) - 12px);
    will-change: transform;
  }

  .has-single-tab .is-cart-open .om-cart {
    height: calc(100dvh - var(--om-header-h) - 12px);
  }

  .is-cart-open .om-cart__panel {
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
    padding: 0 12px 12px;
  }

  /* The bar above already says "order" and shows the total */
  .om-cart__title,
  .om-cart__foot .om-cart__sum {
    display: none;
  }

  .om-cart__head {
    flex-wrap: nowrap;
  }

  .om-cart__tools {
    width: 100%;
  }

  .om-cart__body {
    gap: 10px;
  }

  .om-cart__foot {
    padding-top: 10px;
    border-top: 1px solid var(--om-line);
  }

  /* Compact order lines: more of them fit on one screen */
  .om-lines {
    gap: 6px;
  }

  .om-line {
    gap: 6px;
    padding: 6px 6px 6px 12px;
    border-radius: 12px;
  }

  .om-line__main {
    gap: 6px;
  }

  .om-stepper__btn {
    width: 34px;
    height: 34px;
  }

  .om-stepper__value {
    min-width: 22px;
  }

  .om-cart__body .om-textarea {
    min-height: 0;
  }

  /* Swiping the sheet: no text selection while dragging */
  .om-cart__bar {
    touch-action: none;
  }
}

/* The dragged item follows the pointer directly (no easing), above its neighbours */
.is-sorting .is-dragging {
  transition: none;
  will-change: transform;
  cursor: grabbing;
}

/* Required field (table / name) */
.om-required {
  color: var(--om-accent);
}

.om-field.is-invalid .om-input {
  border-color: var(--om-danger);
  box-shadow: 0 0 0 3px var(--om-danger-soft);
}

.om-field__error {
  color: var(--om-danger);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Administrator: with or without printers */
.om-modeswitch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
}

.om-modeswitch__text {
  display: grid;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 0;
}

/* Order being taken: a position paused or sold out meanwhile is struck through, only "remove" is left */
.om-line.is-paused .om-line__title {
  color: var(--om-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--om-warning);
}

.om-line.is-soldout {
  border-color: rgba(248, 113, 113, 0.5);
  background: var(--om-danger-soft);
}

.om-line.is-soldout .om-line__title {
  text-decoration-color: var(--om-danger);
}

.om-line.is-soldout .om-line__warning {
  color: var(--om-danger);
}

/* Icon and text side by side, the button below */
.om-cart__blocked {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.om-cart__blocked > button {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Stays until closed with X (e.g. "order cancelled"): stronger, with a big close button */
.om-toast--sticky {
  border-width: 1px 1px 1px 5px;
  background: color-mix(in srgb, var(--om-danger) 14%, var(--om-surface-2));
}

.om-toast--sticky .om-toast__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--om-line-strong);
  background: var(--om-surface-3);
  color: var(--om-text);
}

/* Many messages at once (several cancellations): the stack scrolls instead of running off the screen */
.om-toasts {
  max-height: calc(100dvh - var(--om-header-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* No focus frame on input fields; the dialog itself takes the focus when it opens */
.mksf-order :is(input, textarea, select):focus-visible,
.om-dialog:focus,
.om-dialog:focus-visible {
  outline: none;
}

/* Not zoomable: pinching and double-tap zoom are switched off */
html {
  touch-action: pan-x pan-y;
}

/* Sound switch in the header (waiters and cash desk) */
.om-soundbtn {
  color: var(--om-muted);
}

.om-soundbtn.is-on {
  border-color: color-mix(in srgb, var(--om-accent) 45%, var(--om-line));
  color: var(--om-accent);
}

.om-soundbtn[hidden] {
  display: none;
}

/* Statistics and sales: refresh at the top right, next to the title */
.om-page__actions--stats {
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 560px) {
  .om-page__head:has(> .om-page__actions--stats) {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .om-page__head:has(> .om-page__actions--stats) > :first-child {
    min-width: 0;
  }

  .om-page__head .om-page__actions--stats {
    width: auto;
  }

  .om-page__actions--stats .om-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .om-page__actions--stats .om-btn__label {
    display: none;
  }

  /* "Zeitraum" and the cash desk's "Alle" wrap to a row of their own: coloured like the active bottom
     navigation item they show they are buttons; hovered, focused or selected they look like the other buttons */
  .om-segment__item--extra {
    /* Same as the active item of the bottom navigation */
    background: var(--om-accent-soft);
    color: var(--om-accent);
  }

  .om-segment__item--extra:is(:hover, :focus-visible, .is-active) {
    background: var(--om-surface-3);
    color: var(--om-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .om-segment__item--extra:not(:hover, :focus-visible, .is-active) .om-segment__count {
    background: var(--om-accent-soft);
    color: inherit;
  }
}

/* Payment dialog: no printer reachable – "Abschließen" waits */
.om-pay__printer {
  align-items: flex-start;
  text-align: left;
}

.om-pay__printer .om-icon {
  flex: none;
  margin-top: 2px;
}

/* Login on small phones: more compact, so everything fits without scrolling */
@media (max-height: 720px), (max-width: 400px) {
  .om-notice {
    gap: 12px;
    padding: 24px 18px;
  }

  .om-notice__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .om-notice__logo svg {
    width: 30px;
    height: 30px;
  }

  .om-login {
    gap: 10px;
  }
}

/* Header: app name, below it the user with the online dot */
.om-brand__text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.om-brand__user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--om-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.om-brand__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-brand__user .om-status {
  width: 8px;
  height: 8px;
}

.om-brand__user .om-status.is-online {
  box-shadow: 0 0 0 3px var(--om-success-soft);
}

.om-brand__user .om-status.is-offline {
  box-shadow: 0 0 0 3px var(--om-danger-soft);
}

/* Statistics: cancellations – fifth tile and list */
.om-kpis:has(> .om-kpi--cancelled) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.om-kpi--cancelled {
  border-color: color-mix(in srgb, var(--om-danger) 35%, transparent);
}

.om-kpi--cancelled .om-kpi__icon {
  background: var(--om-danger-soft);
  color: var(--om-danger);
}

.om-kpi--cancelled .om-kpi__value {
  color: var(--om-danger);
}

.om-table--cancelled td.om-table__num {
  color: var(--om-danger);
}

@media (max-width: 860px) {
  .om-kpis:has(> .om-kpi--cancelled) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-kpi--cancelled {
    grid-column: 1 / -1;
  }
}

/* Second print: the whole statistics with charts on A4 (light, as on paper) */
.om-report {
  --om-bg: #fff;
  --om-bg-soft: #f5f6f8;
  --om-surface: #fff;
  --om-surface-2: #f5f6f8;
  --om-surface-3: #e7e9ee;
  --om-line: #d5d9e0;
  --om-line-strong: #b9bfc9;
  --om-text: #111418;
  --om-muted: #5b6573;
  --om-accent: #f59e0b;
  --om-accent-strong: #ea8a00;
  --om-accent-ink: #1d1200;
  --om-accent-soft: rgba(245, 158, 11, 0.16);
  --om-danger: #c62828;
  --om-danger-soft: rgba(198, 40, 40, 0.1);
  --om-radius: 10px;
  --om-shadow: none;

  page: om-report;
  display: grid;
  gap: 5mm;
  width: 100%;
  color: var(--om-text);
  background: #fff;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.om-report * {
  box-sizing: border-box;
}

.om-report :where(h1, h2, p, ul) {
  margin: 0;
}

.om-report__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8mm;
  padding-bottom: 3mm;
  border-bottom: 2px solid var(--om-accent);
}

.om-report__brand {
  color: var(--om-accent-strong);
  font-weight: 800;
}

.om-report__title {
  font-size: 20pt;
  font-weight: 800;
}

.om-report__meta {
  display: grid;
  justify-items: end;
  color: var(--om-muted);
}

.om-report__meta strong {
  color: var(--om-text);
}

.om-report .om-kpis {
  gap: 3mm;
}

.om-report .om-kpi {
  padding: 3mm;
}

.om-report .om-kpi__value {
  font-size: 15pt;
}

.om-report .om-kpi__icon {
  display: none;
}

.om-report .om-statgrid {
  grid-template-columns: minmax(0, 1fr);
  gap: 5mm;
}

.om-report .om-card {
  padding: 4mm;
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  break-inside: avoid;
}

/* Long tables may continue on the next page */
.om-report .om-card:has(.om-table) {
  break-inside: auto;
}

.om-report .om-table tr {
  break-inside: avoid;
}

.om-report .om-bars {
  height: 55mm;
  overflow: visible;
}

.om-report .om-hide-sm {
  display: table-cell;
}

@media print {
  @page om-report {
    size: A4 portrait;
    margin: 12mm;
  }
}

/* Desktop: ordering is indented like every other view (at most 1280px, centred); the order is a card beside the
   articles that stays in view while scrolling */
@media (min-width: 861px) {
  .om-order {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 30%, 380px);
    align-items: start;
    gap: 20px;
    width: min(1280px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding: 20px 16px;
  }

  .om-catalog {
    padding: 0;
  }

  .om-cart {
    top: 20px;
    height: calc(100dvh - var(--om-header-h) - 58px - 40px);
    overflow: hidden;
    border: 1px solid var(--om-line);
    border-radius: var(--om-radius);
    background: var(--om-surface);
    box-shadow: var(--om-shadow);
  }

  .has-single-tab .om-cart {
    height: calc(100dvh - var(--om-header-h) - 40px);
  }

  .om-cart__panel {
    padding: 18px;
  }
}
