:root {
  --pos-bg: #fbfcfa;
  --pos-card: #ffffff;
  --pos-border: #e7e5e1;
  --pos-text: #111612;
  --pos-muted: #666b68;
  --pos-soft: #f6f7f4;
  --pos-primary: #165733;
  --pos-primary-dark: #0e3d24;
  --pos-primary-soft: #edf6ef;
  --pos-danger: #e3312b;
  --pos-navy: #001a3d;
  --pos-blue: #063f9e;
  --pos-blue-soft: #bff2ff;
  --pos-tile: #dcfad7;
  --pos-radius: 22px;
  --pos-shadow: 0 18px 44px rgba(18, 30, 22, 0.08);
  --pos-control: 50px;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--pos-bg);
  color: var(--pos-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  min-height: var(--pos-control);
  border-radius: 14px;
  font: inherit;
  letter-spacing: 0;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-card);
  color: var(--pos-text);
  cursor: pointer;
  font-weight: 700;
  max-width: 100%;
  padding: 10px 16px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

button[aria-pressed="true"],
.pos-button-primary {
  border-color: var(--pos-primary);
  background: linear-gradient(135deg, var(--pos-primary), var(--pos-primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 87, 51, 0.2);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--pos-border);
  background: #fff;
  color: var(--pos-text);
  padding: 11px 14px;
}

textarea { resize: vertical; }

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.42rem;
  line-height: 1.15;
}

.muted,
.empty,
small {
  color: var(--pos-muted);
}

.pos-shell {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  border-inline: 1px solid #eef0ed;
  overflow-x: hidden;
}

.pos-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px;
  align-items: center;
  min-height: 82px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  max-width: 100%;
}

.pos-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 820;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #746752;
  font-size: 32px;
  transform: rotate(-14deg);
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar-status #auth-status,
.ghost-button { display: none; }

.topbar-cart-button,
.topbar-more-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-navy);
  box-shadow: none;
}

.topbar-cart-button {
  position: relative;
  font-size: 1.55rem;
}

.topbar-cart-button b {
  position: absolute;
  right: -1px;
  top: 3px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--pos-blue);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}

.topbar-more-button {
  font-size: 1.8rem;
}
.topbar-more-button[hidden] { display: none; }

/* Kontekstafhængig overflow-menu (3-prik i topbaren) */
.topbar-more-wrap { position: relative; display: inline-flex; }
.overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 232px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 40, 28, 0.18);
}
.overflow-menu[hidden] { display: none; }
.overflow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pos-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.overflow-item:hover,
.overflow-item:focus-visible { background: rgba(22, 87, 51, 0.08); }
.overflow-item[disabled] { opacity: 0.45; cursor: default; }
.overflow-item .nav-ico { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }

/* Kasse-hardware-kort (Terminaler) */
.hw-card { margin-top: 16px; }
.hw-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; font-weight: 600; font-size: 0.9rem; }
.hw-field input {
  min-height: var(--pos-control);
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 400;
}
.hw-note { color: var(--pos-muted); font-size: 0.82rem; line-height: 1.4; margin: 6px 0 0; }
.hw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.hw-actions .pos-button {
  flex: 1 1 auto;
  min-width: 140px;
  min-height: var(--pos-control);
}

.notify-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0;
}

.notify-bell::before {
  width: 22px;
  height: 22px;
  border: 2px solid #111;
  border-radius: 11px 11px 8px 8px;
  content: "";
}

.notify-bell::after {
  position: absolute;
  top: -7px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ed2b25;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  content: "2";
}

.profile-dot {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, #f6d0b6 0 21%, transparent 22%),
    radial-gradient(circle at 50% 78%, #e7b38e 0 25%, transparent 26%),
    linear-gradient(135deg, #2c2018, #b88b62);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.13);
}

.profile-dot::after {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #23aa42;
  content: "";
}

.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  border-radius: 999px;
  font-size: 24px;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  display: block;
  width: 30px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  position: absolute;
  left: 0;
}

.hamburger-lines::before { top: -9px; }
.hamburger-lines::after { top: 9px; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.52);
}

.drawer-overlay[hidden] { display: none; }

.pos-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(86vw, 360px);
  max-width: 100%;
  min-width: 0;
  padding: 34px 26px 24px;
  border: 1px solid #d8e6ff;
  border-radius: 0 28px 28px 0;
  background: #f3f7ff;
  box-shadow: 26px 0 80px rgba(0, 0, 0, 0.22);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  overflow-x: hidden;
}

.pos-drawer.is-open { transform: translateX(0); }

.drawer-brand {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 0 34px;
  text-align: center;
}

.drawer-brand strong {
  font-size: 1.9rem;
  line-height: 1;
}

.drawer-brand span:last-child {
  color: var(--pos-muted);
  font-size: 1rem;
}

.drawer-content {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
}

.drawer-link {
  position: relative;
  justify-content: flex-start;
  min-height: 62px;
  border-color: transparent;
  background: transparent;
  border-radius: 16px;
  padding-left: 64px;
  font-size: 1.18rem;
  font-weight: 760;
}

.drawer-link::before {
  position: absolute;
  left: 22px;
  width: 24px;
  text-align: center;
  color: currentColor;
}

.drawer-link:nth-child(1)::before { content: "▣"; }
.drawer-link:nth-child(2)::before { content: "▤"; }
.drawer-link:nth-child(3)::before { content: "▭"; }
.drawer-link:nth-child(4)::before { content: "▦"; }
.drawer-link:nth-child(5)::before { content: "▧"; }
.drawer-link:nth-child(6)::before { content: "▱"; }
.drawer-link:nth-child(7)::before { content: "◌"; }
.drawer-link:nth-child(8)::before { content: "⚙"; }
.drawer-link:nth-child(9)::before { content: "ⓘ"; }
.drawer-link:nth-child(10)::before { content: "↪"; }

.drawer-link[aria-pressed="true"] {
  background: var(--pos-primary-soft);
  color: var(--pos-primary);
  box-shadow: none;
}

.drawer-link.danger {
  margin-top: 14px;
  color: var(--pos-danger);
}

.drawer-footer {
  display: grid;
  gap: 9px;
  color: var(--pos-muted);
  font-size: 0.82rem;
}

.drawer-footer i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: #188344;
}

body.drawer-open {
  overflow: hidden;
}

.pos-main {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 26px 30px max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.pos-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--pos-shadow);
  padding: 24px;
}

.pos-login-card {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 20px;
  border-radius: 24px;
}

.auth-form,
.product-editor-form label {
  display: grid;
  gap: 8px;
  font-weight: 720;
}

.auth-form { gap: 16px; }

.form-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.form-actions > *,
.inline-actions > * {
  flex: 1 1 auto;
  min-width: min(100%, 124px);
  max-width: 100%;
}

.view {
  display: none;
  min-width: 0;
  max-width: 100%;
}

.view.active { display: block; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.catalog-panel,
.checkout-layout > *,
.pos-cart-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.toolbar-row,
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--pos-border);
  border-radius: 16px;
  background: #fff;
  padding: 0 18px;
}

.search-control span {
  color: #111;
  font-size: 1.7rem;
}

.search-control input {
  min-height: 64px;
  border: 0;
  padding-inline: 0;
  font-size: 1rem;
}

.icon-filter {
  min-width: 64px;
  min-height: 64px;
  font-size: 1.5rem;
}

.chip-row {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.pos-chip {
  white-space: nowrap;
}

.pos-chip {
  flex: 0 0 auto;
  min-height: 52px;
  border-radius: 16px;
  font-size: 0.98rem;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pos-product-card {
  display: grid;
  grid-template-rows: 150px auto auto;
  align-items: stretch;
  justify-content: stretch;
  gap: 9px;
  min-height: 250px;
  overflow: hidden;
  padding: 0 0 14px;
  border-radius: 17px;
  text-align: left;
  white-space: normal;
}

.product-thumb,
.cart-thumb,
.product-row-thumb,
.image-preview-thumb,
.ai-thumb,
.category-thumb {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.25), transparent 35%),
    linear-gradient(135deg, #e9f0e7, #fff);
  color: var(--pos-primary);
  font-weight: 900;
}

.product-thumb {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 17px 17px 0 0;
  font-size: 2.7rem;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 13px;
}

.product-row-thumb {
  width: 104px;
  height: 104px;
  border-radius: 14px;
}

.image-preview-thumb {
  width: 100%;
  height: 210px;
  border-radius: 18px;
  font-size: 4rem;
}

.ai-thumb {
  width: 156px;
  height: 126px;
  border-radius: 16px;
}

.category-thumb {
  width: 134px;
  height: 94px;
  border-radius: 16px;
}

.product-thumb img,
.cart-thumb img,
.product-row-thumb img,
.image-preview-thumb img,
.ai-thumb img,
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-product-card strong,
.pos-product-card span {
  display: block;
  padding-inline: 16px;
  font-size: 1rem;
}

.pos-product-card strong { font-weight: 720; }
.pos-product-card span { color: var(--pos-text); }

.pos-cart-panel {
  position: sticky;
  top: 102px;
  padding: 22px;
}

.cart-head,
.payment-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pos-primary);
  color: #fff;
  font-size: 0.88rem;
}

.cart-lines {
  min-height: 240px;
  border-bottom: 1px solid var(--pos-border);
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.cart-line,
.payment-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #ecefed;
}

.cart-line strong,
.cart-line small,
.payment-line span {
  display: block;
  min-width: 0;
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  border-radius: 11px;
}

.qty-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 1.25rem;
}

.qty-controls b { text-align: center; }

.discount-row,
.vat-card {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  min-height: 58px;
  border-color: transparent;
  background: transparent;
  font-size: 1rem;
}

.discount-input {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.totals {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.total-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #424943;
  font-size: 1rem;
}

.total-line.total {
  margin-top: 10px;
  color: var(--pos-text);
  font-size: 1.45rem;
  font-weight: 860;
}

.vat-card {
  border: 1px solid var(--pos-border);
  background: #fff;
}

.vat-card span { color: var(--pos-muted); }

.pay-main,
.confirm-pay {
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  margin-top: 16px;
  border-radius: 14px;
  font-size: 1.24rem;
}

.access-notice {
  display: grid;
  gap: 10px;
  max-width: 100%;
  margin-top: 12px;
}

.drawer-cta {
  width: fit-content;
  min-height: 42px;
  border-color: #b9d7c5;
  border-radius: 14px;
  background: var(--pos-primary-soft);
  color: var(--pos-primary);
  box-shadow: none;
}

.access-notice .drawer-cta {
  width: 100%;
}

.access-notice .message {
  min-height: 0;
  margin: 0;
}

.access-notice .message.error {
  padding: 10px 12px;
  border: 1px solid #f2b9a8;
  border-radius: 14px;
  background: #fff4ef;
  color: #a53417;
  font-size: 0.9rem;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--pos-muted);
  font-weight: 700;
  line-height: 1.35;
}

.message.error,
.danger { color: var(--pos-danger); }

.pos-bottom-bar {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
  border: 1px solid var(--pos-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--pos-shadow);
  padding: 8px;
  overflow-x: hidden;
}

.pos-bottom-bar button {
  flex: 1 1 auto;
  min-width: max-content;
  max-width: 100%;
  min-height: 62px;
  border-radius: 12px;
  background: transparent;
  font-size: 0.95rem;
  white-space: normal;
}

.screen-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.screen-head p {
  margin-bottom: 0;
  color: var(--pos-muted);
  font-size: 1.05rem;
  line-height: 1.35;
}

.admin-toolbar {
  grid-template-columns: minmax(0, 1.5fr) auto minmax(170px, 0.8fr) minmax(150px, 0.7fr) auto;
  margin-bottom: 24px;
  padding: 14px;
  max-width: 100%;
  overflow-x: hidden;
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--pos-soft);
}

.view-toggle button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.admin-product-grid.is-list { grid-template-columns: 1fr; }

.admin-product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--pos-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(18, 30, 22, 0.05);
  padding: 18px;
}

.admin-product-card strong,
.admin-product-card span { display: block; }

.admin-product-card strong { font-size: 1.06rem; }
.admin-product-card span { color: var(--pos-muted); }

/* Toggle + rediger samlet i én smal kolonne, så produktnavnet får plads. */
.admin-card-actions { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; }
/* Toggle-label SKAL være positioneret, ellers undslipper den skjulte checkbox
   til <body> og bliver fuld skærmbredde → vandret overflow på Produkter. */
.switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  display: block;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: #e9ece9;
  box-shadow: inset 0 0 0 1px #d8ddd8;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span { background: var(--pos-primary); }
.switch input:checked + span::after { transform: translateX(22px); }

.back-button {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
  font-size: 1.05rem;
}

.product-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 30px;
}

.product-editor-form .span-all { grid-column: 1 / -1; }

.price-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
}

.price-input input { border-radius: 14px 0 0 14px; }

.price-input b {
  display: grid;
  place-items: center;
  min-height: var(--pos-control);
  border: 1px solid var(--pos-border);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: #fff;
}

.product-image-box {
  position: relative;
  display: grid;
  gap: 10px;
}

.floating-edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
}

.ai-image-box {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--pos-border);
  padding-top: 22px;
}

.ai-image-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-suggestions {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ai-suggestion {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}

.ai-suggestion.selected {
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(22, 87, 51, 0.22);
}

.ai-suggestion span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--pos-primary);
  color: #fff;
}

.editor-actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
}

.category-list {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.category-row {
  display: grid;
  grid-template-columns: 134px 34px minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  min-height: 130px;
  padding: 20px 34px;
  border-bottom: 1px solid var(--pos-border);
}

.category-row:last-child { border-bottom: 0; }
.category-row strong,
.category-row small { display: block; }
.category-row strong { font-size: 1.32rem; }

.drag-handle {
  color: #a7aca7;
  font-size: 1.6rem;
}

.info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.payment-summary,
.tap-card {
  max-width: 100%;
  margin: 0 auto 28px;
}

.payment-line {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.vat-badge {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--pos-border);
  border-radius: 13px;
  color: #343b36;
}

.section-title { margin-top: 8px; }

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.payment-method-card {
  justify-content: flex-start;
  min-height: 142px;
  padding: 24px;
  text-align: left;
  white-space: normal;
}

.payment-method-card b,
.payment-method-card span { display: block; }
.payment-method-card b { font-size: 1.48rem; }
.payment-method-card span { color: var(--pos-muted); }

.secure-text {
  text-align: center;
  color: var(--pos-muted);
}

.tap-card {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.tap-card > strong {
  font-size: clamp(3.3rem, 12vw, 5.2rem);
  line-height: 1;
}

.tap-card p {
  margin-bottom: 0;
  color: var(--pos-muted);
  font-size: 1.38rem;
}

.nfc-target {
  display: grid;
  place-items: center;
  width: min(390px, 78vw);
  aspect-ratio: 1;
  margin: 26px 0;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--pos-primary) 0 34%, rgba(22,87,51,0.09) 35% 58%, rgba(22,87,51,0.045) 59% 74%, transparent 75%);
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
}

.tap-status {
  display: grid;
  gap: 8px;
  color: var(--pos-muted);
  font-size: 1.08rem;
}

.tap-status i {
  justify-self: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #2c8750;
  box-shadow: 0 0 0 6px rgba(44, 135, 80, 0.16);
}

.tap-status b { color: var(--pos-text); }

.cancel-payment {
  width: min(680px, 100%);
  min-height: 70px;
  margin-top: 30px;
  border-color: #d7d7d7;
  color: var(--pos-danger);
  font-size: 1.16rem;
}

.reader-card {
  display: grid;
  gap: 26px;
  margin-inline: auto;
}

.reader-illustration {
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 18px;
  width: 250px;
  min-height: 350px;
  border-radius: 38px;
  background: linear-gradient(160deg, #111, #343434);
  color: #fff;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-size: 2.8rem;
}

.reader-illustration b {
  font-size: 1.55rem;
  line-height: 1.75;
}

.reader-status h2 { font-size: 1.65rem; }

.reader-rows {
  display: grid;
  border: 1px solid var(--pos-border);
  border-radius: 18px;
  overflow: hidden;
}

.reader-rows span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--pos-border);
}

.reader-rows span:last-child { border-bottom: 0; }
.reader-rows b { color: var(--pos-primary); }

.reader-callout {
  justify-content: flex-start;
  min-height: 108px;
  border-color: #b9d7c5;
  background: #f2faf4;
  color: var(--pos-primary);
  font-size: 1.22rem;
  text-align: left;
  white-space: normal;
}

.reader-callout span {
  display: block;
  color: #4d5b52;
  font-size: 0.95rem;
}

.daily-report {
  display: grid;
  gap: 22px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
}

.report-hero strong {
  display: block;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
}

.mini-chart {
  min-height: 170px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, transparent 58%, rgba(22,87,51,0.12) 59%),
    linear-gradient(12deg, transparent 47%, var(--pos-primary) 48% 50%, transparent 51%);
}

.metric-grid,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.9rem;
}

.method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 0;
}

.method-row small { grid-column: 1 / -1; }

.bar-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 190px;
  border-bottom: 1px solid var(--pos-border);
}

.bar-chart i {
  flex: 1;
  min-width: 8px;
  border-radius: 8px 8px 0 0;
  background: var(--pos-primary);
}

.receipt-list {
  display: grid;
  gap: 0;
}

.receipt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--pos-border);
}

.receipt-row:last-child { border-bottom: 0; }

.settings-card {
  max-width: 760px;
  margin-inline: auto;
}

.settings-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 24px 0;
  min-width: 0;
}
/* Lang overskrift må aldrig skubbe sektionen ud over skærmkanten. */
.settings-group h2 { overflow-wrap: anywhere; }

.settings-group h2 {
  margin: 0 0 8px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--pos-border);
  color: var(--pos-text);
}

.settings-row span {
  min-width: 0;
}

.settings-row b {
  color: var(--pos-muted);
}

.settings-switch {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 0;
}

.settings-switch.on {
  background: #0982e3;
}

.settings-switch.off {
  background: #c9c9c9;
}

.settings-switch::after {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #606873;
  font-size: 1.3rem;
  line-height: 1;
  content: "×";
}

.settings-switch.on::after {
  margin-left: 26px;
  color: #0982e3;
  content: "✓";
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.technical-card {
  display: grid;
  gap: 9px;
}

.tech-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #eef0ee;
}

.tech-row b {
  overflow-wrap: anywhere;
  text-align: right;
}

.pos-status-chip {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: #e8f5ea;
  color: var(--pos-primary);
  font-size: 0.92rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .pos-shell { border-inline: 0; }
  .pos-main { padding-inline: 22px; }
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-cart { display: none; }
  .cart-cta-bar { display: flex; }
  .pos-cart-panel { position: static; }
  .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-toolbar,
  .admin-product-grid,
  .metric-grid,
  .chart-grid,
  .report-hero,
  .technical-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root {
    --pos-control: 46px;
    --pos-radius: 18px;
  }

  html,
  body,
  .pos-shell,
  .pos-main,
  .view,
  .checkout-layout,
  .catalog-panel,
  .pos-cart-panel,
  .payment-summary,
  .settings-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .pos-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar-status {
    gap: 6px;
  }

  .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .hamburger-lines,
  .hamburger-lines::before,
  .hamburger-lines::after {
    width: 27px;
    height: 2px;
  }

  .pos-brand {
    gap: 7px;
    justify-content: flex-start;
    font-size: clamp(1.05rem, 5.8vw, 1.45rem);
  }

  .pos-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }

  .notify-bell {
    width: 24px;
    height: 24px;
  }

  .profile-dot {
    width: 38px;
    height: 38px;
  }

  .pos-drawer {
    width: min(86vw, 360px);
    padding: 24px 16px 18px;
    border-radius: 0 22px 22px 0;
  }

  .drawer-brand {
    padding: 20px 0 22px;
  }

  .drawer-brand strong {
    font-size: 1.45rem;
  }

  .drawer-link {
    min-height: 50px;
    padding-left: 48px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .drawer-link::before {
    left: 15px;
  }

  .pos-main {
    gap: 18px;
    padding: 16px 12px max(118px, env(safe-area-inset-bottom));
  }

  .pos-card {
    padding: 16px;
    border-radius: 18px;
  }

  .pos-login-card {
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 20px;
  }

  h1 { font-size: clamp(2rem, 10vw, 3.4rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2.3rem); }

  .pos-login-card h1,
  .screen-head h1,
  .settings-card h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .cart-head h2,
  .payment-summary h2,
  .section-title,
  .ai-image-box h2 {
    font-size: clamp(1.2rem, 5.5vw, 1.45rem);
  }

  .screen-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .screen-head .pos-button-primary {
    width: 100%;
  }

  .checkout-layout {
    gap: 14px;
  }

  .toolbar-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
  }

  .search-control {
    grid-template-columns: 24px minmax(0, 1fr);
    border-radius: 14px;
    padding: 0 12px;
  }

  .search-control input {
    min-height: 54px;
    font-size: 0.92rem;
  }

  .search-control span {
    font-size: 1.35rem;
  }

  .icon-filter {
    min-width: 54px;
    min-height: 54px;
    padding: 0;
  }

  .chip-row {
    gap: 8px;
    margin: 14px 0;
  }

  .pos-chip {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pos-product-card {
    grid-template-rows: 118px auto auto;
    min-height: 204px;
    border-radius: 14px;
    gap: 7px;
    padding-bottom: 10px;
  }

  .product-thumb {
    height: 118px;
    border-radius: 14px 14px 0 0;
    font-size: 2rem;
  }

  .pos-product-card strong,
  .pos-product-card span {
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .pos-cart-panel {
    padding: 14px;
  }

  .cart-lines {
    min-height: 0;
    max-height: 42vh;
    overflow-y: auto;
    margin-bottom: 10px;
  }

  .cart-line {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 0;
  }

  .cart-line strong,
  .cart-line small {
    overflow-wrap: anywhere;
  }

  .cart-line .danger {
    grid-column: 3;
    grid-row: 1;
  }

  .cart-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .qty-controls {
    grid-template-columns: 30px 28px 30px;
  }

  .qty-controls button {
    min-width: 30px;
    min-height: 30px;
  }

  .discount-row,
  .vat-card {
    min-height: 40px;
    padding: 7px 0;
    font-size: 0.88rem;
  }

  .vat-card {
    padding-inline: 10px;
  }

  .vat-card span {
    font-size: 0.78rem;
    text-align: right;
  }

  .totals {
    gap: 4px;
    padding: 8px 0;
  }

  .total-line {
    font-size: 0.9rem;
  }

  .total-line.total {
    margin-top: 4px;
    font-size: 1.18rem;
  }

  .pay-main,
  .confirm-pay {
    min-height: 52px;
    margin-top: 10px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .pos-bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 6px;
    border-radius: 16px;
    overflow-x: auto;
  }

  .pos-bottom-bar button {
    flex: 1 1 calc(33.333% - 8px);
    min-width: max-content;
    min-height: 48px;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .admin-product-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
  }
  /* Navn på én linje, kategori · pris på én linje — ingen grim midt-i-ordet wrap. */
  .admin-product-card strong,
  .admin-product-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Rediger-knappen (3 prikker) skal være synlig og trykbar på mobil/APK. */
  .admin-product-card .icon-button {
    width: 38px; min-width: 38px; height: 38px;
  }

  .product-row-thumb {
    width: 56px;
    height: 56px;
  }

  .product-editor-form,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .product-editor-form .span-all {
    grid-column: auto;
  }

  .image-preview-thumb {
    height: 176px;
  }

  .ai-thumb {
    width: 132px;
    height: 106px;
  }

  .editor-actions {
    grid-template-columns: 1fr;
  }

  .category-row {
    grid-template-columns: 70px 22px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 88px;
    padding: 13px;
  }

  .category-thumb {
    width: 70px;
    height: 58px;
    border-radius: 12px;
  }

  .category-row .icon-button {
    display: none;
  }

  .payment-summary {
    padding: 14px;
    margin-bottom: 18px;
  }

  .payment-line {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .payment-line .cart-thumb {
    width: 42px;
    height: 42px;
  }

  .payment-line small {
    grid-column: 3;
  }

  .payment-method-card {
    min-height: 96px;
    padding: 16px;
  }

  .payment-method-card b {
    font-size: 1.15rem;
  }

  .payment-method-card span {
    font-size: 0.9rem;
  }

  .tap-card {
    min-height: calc(100vh - 112px);
    padding: 16px;
  }

  .tap-card p {
    font-size: 1.02rem;
  }

  .tap-card > strong {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .nfc-target {
    width: min(300px, 82vw);
    margin: 18px 0;
  }

  .cancel-payment {
    min-height: 56px;
    font-size: 1rem;
  }

  .reader-illustration {
    width: 190px;
    min-height: 260px;
    border-radius: 28px;
    font-size: 2rem;
  }

  .reader-rows span {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 15px;
  }

  .report-hero,
  .metric-grid,
  .chart-grid,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .receipt-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tech-row {
    grid-template-columns: 1fr;
  }

  .tech-row b {
    text-align: left;
  }

  body {
    background: #fff;
    color: var(--pos-navy);
  }

  .pos-shell {
    max-width: 100%;
    background: #fff;
  }

  .pos-topbar {
    min-height: 76px;
    border-bottom: 0;
    background: #fff;
    color: var(--pos-navy);
    box-shadow: none;
  }

  .menu-toggle {
    color: var(--pos-navy);
  }

  .brand-mark {
    display: none;
  }

  .pos-brand {
    justify-content: flex-start;
    padding-left: 8px;
    color: var(--pos-navy);
    font-weight: 820;
  }

  .topbar-status {
    justify-content: flex-end;
  }

  .notify-bell,
  .profile-dot {
    display: none;
  }

  .topbar-cart-button,
  .topbar-more-button {
    display: inline-flex;
  }

  .pos-main {
    padding: 8px 18px max(132px, env(safe-area-inset-bottom));
  }

  .pos-card {
    border-color: #eeeeee;
    box-shadow: none;
  }

  .pos-login-card {
    margin-top: 18px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0, 26, 61, 0.08);
  }

  .toolbar-row,
  .chip-row {
    display: none;
  }

  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .pos-product-card {
    display: grid;
    grid-template-rows: minmax(104px, 1fr) 58px;
    min-height: 152px;
    gap: 0;
    padding: 0;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    background: #fff;
    color: var(--pos-navy);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }

  .pos-product-card .product-thumb {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    border-radius: 0;
    background: var(--pos-tile);
    color: transparent;
  }

  .pos-product-card strong {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    padding: 12px 10px;
    color: #577957;
    font-size: clamp(1.25rem, 6vw, 1.8rem);
    font-weight: 760;
    line-height: 1.08;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .pos-product-card span:not(.product-thumb) {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    place-items: center;
    padding: 0 8px;
    color: #555b66;
    font-size: clamp(1rem, 5vw, 1.34rem);
    font-weight: 520;
    text-align: center;
  }

  .pos-product-card:has(.product-thumb img) strong {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  .pos-cart-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .cart-head,
  .cart-lines,
  .discount-row,
  .discount-input,
  .totals,
  .vat-card {
    display: none;
  }

  .pay-main {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: max(26px, env(safe-area-inset-bottom));
    z-index: 35;
    width: auto;
    min-height: 68px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--pos-blue);
    color: #fff;
    font-size: clamp(1.7rem, 8vw, 2.05rem);
    font-weight: 820;
    box-shadow: 0 10px 20px rgba(6, 63, 158, 0.18);
    white-space: normal;
  }

  .access-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: max(102px, calc(env(safe-area-inset-bottom) + 94px));
    z-index: 34;
  }

  .access-notice .drawer-cta[hidden],
  .access-notice .message:empty {
    display: none;
  }

  .pos-bottom-bar {
    bottom: max(102px, calc(env(safe-area-inset-bottom) + 94px));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
  }

  .pos-bottom-bar button {
    color: var(--pos-navy);
    font-size: 0.78rem;
  }

  .pos-drawer {
    width: min(80vw, 330px);
    border: 0;
    border-radius: 0;
    background: #00247f;
    color: #fff;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.28);
  }

  .drawer-brand {
    place-items: start;
    color: #fff;
    text-align: left;
  }

  .drawer-brand .brand-mark {
    display: inline-grid;
  }

  .drawer-brand span:last-child,
  .drawer-footer,
  .drawer-link {
    color: rgba(255, 255, 255, 0.68);
  }

  .drawer-link {
    min-height: 58px;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 620;
  }

  .drawer-link[aria-pressed="true"] {
    background: transparent;
    color: #fff;
  }

  .drawer-overlay {
    background: rgba(0, 0, 0, 0.58);
  }

  .settings-card,
  .reader-card,
  .payment-summary,
  .receipt-list,
  .category-list {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding-inline: 0;
  }

  .settings-card {
    margin-inline: 0;
  }

  .settings-card h1,
  .screen-head h1 {
    color: var(--pos-navy);
    font-size: clamp(2.2rem, 9vw, 2.9rem);
    font-weight: 780;
  }

  .settings-card > p {
    color: #606873;
    font-size: 1.02rem;
  }

  .settings-group {
    gap: 0;
    margin: 28px 0;
  }

  .settings-group h2 {
    margin: 0 0 10px;
    color: var(--pos-navy);
    font-size: clamp(1.8rem, 8vw, 2.25rem);
    font-weight: 780;
  }

  .settings-row {
    min-height: 78px;
    border-bottom-color: #eeeeee;
    color: var(--pos-navy);
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-weight: 540;
  }

  .settings-row b:not(.settings-switch) {
    color: var(--pos-navy);
    font-size: 1.15rem;
    font-weight: 520;
  }

  .payment-method-card,
  .reader-callout,
  .receipt-row,
  .category-row,
  .tech-row {
    border: 0;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .payment-method-card {
    min-height: 82px;
    padding: 14px 0;
    color: var(--pos-navy);
  }

  .payment-method-card b {
    font-size: 1.45rem;
    font-weight: 620;
  }

  .payment-method-card[aria-pressed="true"] {
    background: #fff;
    color: var(--pos-navy);
    box-shadow: none;
  }

  .switch span {
    width: 44px;
    height: 26px;
    background: #c9c9c9;
  }

  .switch span::after {
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
  }

  .switch input:checked + span {
    background: #0982e3;
  }

  .switch input:checked + span::after {
    transform: translateX(18px);
  }

  .report-hero {
    min-height: 184px;
    border-radius: 10px;
    background: #e1f9c6;
    color: var(--pos-navy);
    box-shadow: none;
    padding: 22px;
  }

  .report-hero strong {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    line-height: 1.05;
  }

  .metric-card,
  .donut-card,
  .bars-card {
    border: 0;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
    box-shadow: none;
  }

  .receipt-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 88px;
    padding: 16px 0;
    color: var(--pos-navy);
  }

  .receipt-row span,
  .receipt-row strong {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
    font-weight: 520;
  }

  .receipt-row span:nth-child(2),
  .receipt-row span:nth-child(3),
  .receipt-row span:nth-child(5) {
    color: #606873;
    font-size: 1rem;
  }

  .tap-card {
    min-height: calc(100vh - 120px);
    border: 0;
    box-shadow: none;
    background: #fff;
    color: var(--pos-navy);
  }

  .tap-card > strong {
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  .nfc-target {
    background: #c2f1ff;
    color: var(--pos-blue);
  }
}

/* ===== POS access gating (FASE 1) ===== */
/* Skjul al activation/abonnement-UI når POS må sælge (canSell). */
body.pos-can-sell #activate-pos,
body.pos-can-sell #drawer-activate-pos,
body.pos-can-sell #drawer-activate-pos-secondary {
  display: none !important;
}
.payment-method-card[disabled],
#go-payment[disabled],
#confirm-payment[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Kontant bon / kvittering (FASE 2) ===== */
.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 32, 0.55);
}
.receipt-modal[hidden] { display: none !important; }
.receipt-modal-backdrop { position: absolute; inset: 0; }
.receipt-modal-card {
  position: relative;
  width: min(360px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(16, 24, 16, 0.25);
  padding: 20px;
}
.receipt-doc { font-family: "Menlo", "Consolas", monospace; color: #16241a; }
.receipt-doc h2 { margin: 0 0 4px; font-size: 18px; text-align: center; }
.receipt-meta { margin: 2px 0; font-size: 12px; text-align: center; color: #4d604d; }
.receipt-doc hr { border: none; border-top: 1px dashed #c8dcc8; margin: 10px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin: 3px 0; }
.receipt-total { font-weight: 800; font-size: 15px; margin-top: 6px; }
.receipt-paid { margin-top: 12px; text-align: center; font-weight: 800; color: #1f5a23; }
.receipt-actions { display: flex; gap: 10px; margin-top: 16px; }
.receipt-actions .pos-button { flex: 1; }

@media print {
  body * { visibility: hidden !important; }
  #receipt-modal, #receipt-modal * { visibility: visible !important; }
  #receipt-modal { position: absolute; inset: 0; background: #fff; }
  .receipt-modal-card { box-shadow: none; }
  .receipt-actions { display: none !important; }
}

/* ===== Integration-log (Tap to Pay / Zettle) (FASE 4) ===== */
.integration-log {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f1720;
  color: #cfe9d4;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  max-height: 240px;
}
.integration-log[hidden] { display: none !important; }

/* ===== Kamera / media-capture modal ===== */
.media-card { width: min(440px, 100%); max-height: 90vh; overflow: auto; }
.media-type-section { margin-bottom: 14px; }
.media-type-section h3 { margin: 0 0 8px; font-size: 14px; color: #4d604d; }
.media-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-type-btn {
  min-height: 44px; border: 1px solid #c8dcc8; border-radius: 10px;
  background: #f6fbf6; color: #16241a; font-weight: 700; font-size: 13px; cursor: pointer; padding: 8px;
}
.media-type-btn:hover { background: #eaf6eb; border-color: #2e7d32; }
.media-field { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 700; color: #234123; }
.media-selected { font-weight: 800; color: #1f5a23; margin: 4px 0 12px; }
.media-actions { display: flex; gap: 10px; margin: 8px 0; }
.media-actions .pos-button { flex: 1; }

/* ===== Bogføring / bilag (Increment 1) ===== */
.acc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acc-tab { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid #c8dcc8; background: #f6fbf6; color: #234123; font-weight: 700; font-size: 13px; cursor: pointer; }
.acc-tab[aria-pressed="true"] { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.acc-body { display: grid; gap: 12px; }
.acc-doc { display: grid; gap: 10px; }
.acc-doc-head { display: flex; gap: 12px; align-items: flex-start; }
.acc-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #eef4ee; }
.acc-thumb.placeholder { display: grid; place-items: center; color: #8a9e8a; font-size: 24px; }
.acc-doc-meta { display: grid; gap: 2px; font-size: 13px; }
.acc-doc-meta strong { font-size: 15px; }
.acc-status { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-status .chip, .acc-day .chip { padding: 4px 10px; border-radius: 999px; background: #eaf6eb; border: 1px solid #cfe2cf; font-size: 12px; font-weight: 700; color: #1f5a23; }
.acc-lines { display: grid; gap: 4px; border-top: 1px dashed #d5e5d5; padding-top: 8px; }
.acc-line { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; gap: 8px; font-size: 12px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-actions button { min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid #c8dcc8; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.acc-actions button:hover { background: #eaf6eb; border-color: #2e7d32; }
.acc-dayclose { display: grid; gap: 8px; margin-bottom: 12px; }
.acc-dayclose label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #234123; }
.acc-day-list { display: grid; gap: 8px; }
.acc-day { display: grid; gap: 2px; font-size: 13px; }
.acc-day.has-diff { border: 1px solid #dc3545; background: #fff5f5; }

/* MobilePay customer-present QR */
.mobilepay-qr { display: grid; place-items: center; margin: 12px auto; max-width: 260px; }
.mobilepay-qr svg, .mobilepay-qr img { width: 240px; height: 240px; }

/* Manuel MobilePay modal */
.mobilepay-amount { font-size: 15px; margin: 4px 0 10px; }
.mobilepay-instructions { font-size: 14px; color: #4d604d; margin: 0 0 12px; line-height: 1.5; }
.mobilepay-qr-area { display: grid; place-items: center; gap: 8px; margin: 12px 0; }
.mobilepay-qr-img { width: 240px; height: 240px; object-fit: contain; background: #fff; border: 1px solid #cfe2cf; border-radius: 12px; }
.mobilepay-qr-caption { font-weight: 800; color: #1f5a23; font-size: 13px; margin: 0; }

/* ==========================================================================
   UI-forfining: mindre/strammere typografi + mere elegante knapper.
   Tilføjet additivt til sidst (vinder cascade). Bryder ikke eksisterende layout.
   ========================================================================== */
:root {
  --pos-radius: 16px;
  --pos-control: 46px;
  --pos-shadow: 0 10px 28px rgba(18, 30, 22, 0.07);
}
body { font-size: 15px; letter-spacing: 0.1px; }

/* Knapper: lettere, fladere, mere elegante */
.pos-button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pos-button:active { transform: translateY(1px); }
.pos-button-primary { box-shadow: 0 6px 16px rgba(22, 87, 51, 0.18); }

/* Overskrifter: skaler ned for et roligere udtryk */
h1 { font-size: clamp(1.5rem, 4.2vw, 2rem) !important; }
.section-title { font-size: 1.05rem !important; font-weight: 700; }

/* Betalingskort: mere kompakte og elegante */
.payment-method-grid { gap: 10px; }
.payment-method-card {
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.06s ease;
}
.payment-method-card:active { transform: translateY(1px); }
.payment-method-card b { font-size: 1.05rem !important; font-weight: 700; }
.payment-method-card span { font-size: 0.82rem; line-height: 1.35; }
.payment-method-card[hidden] { display: none !important; }

/* ---- Betalingsudbyder-vælger i Indstillinger ---- */
.settings-hint { font-size: 0.82rem; color: var(--pos-muted); margin: 2px 0 10px; line-height: 1.4; }
.settings-status { font-size: 0.85rem; color: var(--pos-primary); margin: 8px 0 0; min-height: 1.1em; }
.settings-status.error { color: var(--pos-danger); }
.settings-subgroup { margin: 6px 0 14px; }
.settings-subgroup h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; }
.settings-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.settings-check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border: 1px solid var(--pos-border); border-radius: 11px;
  background: var(--pos-soft); font-size: 0.9rem; cursor: pointer;
}
.settings-check input { width: 18px; height: 18px; accent-color: var(--pos-primary); }
.settings-field { display: grid; gap: 5px; margin: 10px 0; }
.settings-field label { font-size: 0.82rem; font-weight: 600; color: var(--pos-muted); }
.settings-field select {
  min-height: 44px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--pos-border); background: var(--pos-card);
  color: var(--pos-text); font-size: 0.95rem;
}
#save-payment-settings { margin-top: 6px; }

/* =====================================================================
   APK UI-POLISH PASS (samlet, additivt, vinder cascade)
   - System-font (ingen eksterne downloads/404)
   - Justerbar tekststørrelse + tæthed via CSS custom properties
   - Strammere, mere elegant sidepanel + knapper + layout
   Rør IKKE betalingslogik. Touch targets holdes >= ~40px.
   ===================================================================== */

:root {
  --pos-font-scale: 1;            /* sættes af data-ui-scale */
  --pos-density: 1;              /* sættes af data-ui-density */
  --pos-radius: 14px;
  --pos-control-height: 44px;
}

/* Tekststørrelse-niveauer (data-attr sat på <html> før render) */
html[data-ui-scale="compact"] { --pos-font-scale: 0.9; }
html[data-ui-scale="normal"]  { --pos-font-scale: 1; }
html[data-ui-scale="large"]   { --pos-font-scale: 1.18; }

/* Tæthed */
html[data-ui-density="comfortable"] { --pos-density: 1; }
html[data-ui-density="compact"]     { --pos-density: 0.82; }

/* Skalér al rem-baseret typografi via root font-size */
html { font-size: calc(16px * var(--pos-font-scale)); }

/* Elegant system-font (ingen Inter/eksterne fonts -> ingen 404) */
body, button, input, select, textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

/* Roligere overskrifter */
h1 { font-size: 1.5rem !important; font-weight: 700; letter-spacing: -0.2px; }
h2 { font-size: 1.12rem; font-weight: 700; }
.section-title { font-size: 1rem !important; font-weight: 700; }

/* ---- Knapper: minimale og elegante ---- */
.pos-button {
  min-height: var(--pos-control-height);
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  box-shadow: none;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.pos-button:active { transform: translateY(1px); }
.pos-button-primary { box-shadow: 0 4px 12px rgba(22, 87, 51, 0.16); }
.pos-button:disabled, .pos-button[disabled], .pos-button[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none;
}

/* ---- Sidepanel: moderne POS, ikke web-demo ---- */
.pos-drawer {
  width: min(82vw, 300px);
  padding: calc(18px * var(--pos-density)) calc(14px * var(--pos-density)) calc(16px * var(--pos-density));
  border-radius: 0 18px 18px 0;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.16);
}
.drawer-brand { padding: calc(14px * var(--pos-density)) 0 calc(16px * var(--pos-density)); gap: 4px; }
.drawer-brand strong { font-size: 1.15rem; }
.drawer-brand span:last-child { font-size: 0.72rem; }
.drawer-content { gap: 3px; }
.drawer-link {
  min-height: 42px;
  padding-left: 42px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.drawer-link::before { left: 14px; width: 18px; font-size: 0.95rem; opacity: 0.75; }
.drawer-link[aria-pressed="true"] {
  background: #e7f0ff;
  color: var(--pos-blue);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--pos-blue);
}
.drawer-link.danger { margin-top: 8px; }
.drawer-footer { font-size: 0.72rem; gap: 5px; }

/* ---- Layout: tættere og roligere ---- */
.pos-main {
  gap: calc(18px * var(--pos-density));
  padding: calc(18px * var(--pos-density)) calc(18px * var(--pos-density)) max(calc(16px * var(--pos-density)), env(safe-area-inset-bottom));
}
.pos-card {
  padding: calc(18px * var(--pos-density));
  border-radius: var(--pos-radius);
  box-shadow: 0 8px 22px rgba(18, 30, 22, 0.06);
}

/* Betalingskort: kompakte men tydelige nok til telefon (touch >= 40px) */
.payment-method-grid { gap: 10px; }
.payment-method-card {
  min-height: 56px;
  border-radius: 13px;
  padding: 13px 15px;
  box-shadow: none;
}
.payment-method-card b { font-size: 1.02rem !important; font-weight: 700; }
.payment-method-card span { font-size: 0.8rem; line-height: 1.35; }
.payment-method-card[hidden] { display: none !important; }
.payment-method-card[aria-pressed="true"] {
  border-color: var(--pos-primary);
  background: var(--pos-primary-soft);
}

/* ---- Segment-knapper (tekststørrelse/tæthed i Indstillinger) ---- */
.seg-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: var(--pos-card);
  color: var(--pos-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.seg-btn[aria-pressed="true"] {
  border-color: var(--pos-primary);
  background: var(--pos-primary-soft);
  color: var(--pos-primary);
}

/* Ingen vandret scroll på telefon */
html, body { max-width: 100%; overflow-x: hidden; }

/* =====================================================================
   ETAPE 1: sidebar inline-SVG ikoner, kurv-drawer, stub-views
   ===================================================================== */

/* Ensartede line-ikoner (følger currentColor + font-scale via em) */
.nav-ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kebab (3 prikker) — rediger-knap på produktkort. Fyldte prikker (ikke stroke),
   så den vises i WebView-fonten der ikke har ⋮-glyffen. */
.kebab-ico { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: currentColor; stroke: none; }

/* Drawer-links: flex med ikon + label; fjern gamle emoji-::before */
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
}
.drawer-link::before { content: none !important; }
.drawer-link span { font-size: 0.9rem; font-weight: 600; line-height: 1.1; }
.drawer-link .nav-ico { opacity: 0.8; }
.drawer-link[aria-pressed="true"] .nav-ico { opacity: 1; }

/* ---- Kurv som slide-over drawer (mobil/APK) ---- */
.cart-close { display: none; }
.cart-overlay { position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,0.35); display: none; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .pos-cart-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 80;
    width: min(88vw, 360px);
    max-width: 100%;
    border-radius: 18px 0 0 18px;
    transform: translateX(105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: -18px 0 60px rgba(0,0,0,0.18);
  }
  body.cart-open .pos-cart-panel { transform: translateX(0); }
  body.cart-open .cart-overlay { display: block; }
  .cart-close { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Stub / coming-soon views ---- */
.stub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stub-card h2 { margin: 0 0 6px; }
.stub-soon { color: var(--pos-muted); font-size: 0.85rem; line-height: 1.45; margin: 0 0 12px; }
.prov-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--pos-border);
  font-size: 0.92rem;
}
.prov-row:last-child { border-bottom: 0; }
.prov-row .prov-name { font-weight: 600; }
.prov-badge { font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.prov-badge.on  { background: var(--pos-primary-soft); color: var(--pos-primary); }
.prov-badge.off { background: #f0efed; color: var(--pos-muted); }

/* =====================================================================
   ETAPE 2: Salg + Rapporter — kompakt, mobil-first POS-analytics
   ===================================================================== */

/* Faner med blå underline (Per dag / Per måned) */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--pos-border); margin: 2px 0 12px; }
.tab-btn {
  flex: 0 0 auto; appearance: none; background: none; border: 0;
  padding: 10px 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase; color: var(--pos-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn[aria-selected="true"] { color: var(--pos-blue); border-bottom-color: var(--pos-blue); }

/* ---- Rapporter: segmented control [Dag][Måned][År] ---- */
.report-seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: #f1f4f9; border: 1px solid var(--pos-border);
  border-radius: 999px; padding: 4px; margin: 4px 0 14px; max-width: 100%;
}
.report-seg-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-height: 38px; border-radius: 999px; font-size: 0.92rem; font-weight: 700;
  color: var(--pos-muted); min-width: 0;
}
.report-seg-btn[aria-selected="true"] { background: #e7f0ff; color: var(--pos-blue); box-shadow: 0 1px 2px rgba(6,63,158,0.12); }

/* Kompakt periode-navigator: ◄ label ► (ingen kalender) */
.report-period-nav {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  background: var(--pos-card); border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius); padding: 8px 10px;
}
.rp-arrow {
  flex: 0 0 auto; appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
}
.rp-arrow:active { background: #eef3fb; }
.rp-chevron { width: 22px; height: 22px; fill: none; stroke: var(--pos-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rp-label { flex: 1 1 auto; min-width: 0; text-align: center; display: grid; gap: 1px; }
.rp-label strong { font-size: 1.02rem; font-weight: 800; color: var(--pos-text); line-height: 1.15; }
.rp-label small { font-size: 0.78rem; color: var(--pos-muted); }

/* KPI-kort (3 kompakte) */
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.report-kpi { display: grid; gap: 3px; padding: 12px 10px; min-width: 0; }
.report-kpi .rk-ico { width: 30px; height: 30px; border-radius: 9px; background: #eaf3ff; display: inline-flex; align-items: center; justify-content: center; }
.rk-svg { width: 17px; height: 17px; fill: none; stroke: var(--pos-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.report-kpi .rk-label { font-size: 0.72rem; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-kpi strong { font-size: 0.98rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Travleste tidspunkter (vanilla SVG bar chart) */
.busy-card .busy-peak { margin: -4px 0 8px; font-size: 0.84rem; font-weight: 700; color: var(--pos-blue); }
.busy-svg { width: 100%; height: 96px; display: block; }
.busy-bar { fill: var(--pos-blue-soft); }
.busy-bar.peak { fill: var(--pos-blue); }
.busy-axis { position: relative; height: 16px; margin-top: 4px; }
.busy-axis span { position: absolute; transform: translateX(-50%); font-size: 0.68rem; color: var(--pos-muted); white-space: nowrap; }

/* Lister i rapport */
.list-row.top-item .lr-rank { flex: 0 0 auto; min-width: 22px; height: 22px; border-radius: 999px; background: #eaf3ff; color: var(--pos-blue); font-weight: 800; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.report-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.92rem; }

/* Tom visning (kasseapparat) */
.report-empty { display: grid; justify-items: center; text-align: center; padding: 18px 8px 26px; }
.report-empty-art { width: min(62vw, 220px); margin: 4px auto 4px; }
.empty-art-svg { width: 100%; height: auto; display: block; }
.report-empty-title { font-size: 1.5rem; font-weight: 800; color: var(--pos-text); margin: 6px 0 4px; }
.report-empty-text { font-size: 0.95rem; color: var(--pos-muted); margin: 0; line-height: 1.4; }

/* Rapport: generér-knap, salgsrækker (link til kvittering), periode-rækker */
.report-generate { width: 100%; margin: 0 0 12px; }
.report-list .card-title { margin-bottom: 4px; }
.report-sale { align-items: center; }
.report-sale .lr-main { gap: 2px; }
.report-sale .rs-ref { font-variant-numeric: tabular-nums; color: var(--pos-muted); }
.report-sale .rs-items { color: var(--pos-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-sale .lr-right { display: flex; align-items: center; gap: 6px; }
.rs-flag { color: #b06a00; font-style: normal; font-weight: 600; }
.rs-go { display: inline-flex; align-items: center; flex: 0 0 auto; }
.rs-go .rp-chevron { width: 18px; height: 18px; stroke: var(--pos-muted); stroke-width: 2; }
.report-period-row .lr-right { display: grid; justify-items: end; gap: 4px; }
.report-open { white-space: nowrap; min-height: 30px; padding: 0 10px; font-size: 0.78rem; }
.report-print-body { display: grid; gap: 12px; padding-bottom: 8px; }

/* ---- Z-kasse: kort, modal, afstemning ---- */
.report-kasse .kasse-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--pos-border); }
.report-kasse .kasse-row:last-of-type { border-bottom: 0; }
.report-kasse .kasse-k { flex: 0 0 auto; font-size: 0.8rem; color: var(--pos-muted); min-width: 92px; }
.report-kasse .kasse-v { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; }
.report-kasse .kasse-v.warn { color: #b06a00; }
.report-kasse .report-generate { margin-top: 10px; }
.kasse-field { display: grid; gap: 4px; margin: 8px 0; }
.kasse-field span { font-size: 0.8rem; font-weight: 600; color: var(--pos-muted); }
.kasse-field input { min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--pos-border); background: var(--pos-card); font-size: 0.95rem; width: 100%; max-width: 100%; }
.kasse-note { font-size: 0.8rem; color: var(--pos-muted); margin: 6px 0; line-height: 1.4; }
.kasse-note.warn { color: #b06a00; font-weight: 600; }
.kasse-actions, .z-actions { display: flex; gap: 8px; margin-top: 12px; }
.z-actions .pos-button { flex: 1 1 auto; }

.kasse-modal-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.45); padding: 12px; }
/* hidden-attributtet SKAL skjule overlay (ellers blokerer den hele skærmen). */
.kasse-modal-overlay[hidden] { display: none; }
.kasse-modal-card { width: 100%; max-width: 460px; background: var(--pos-card); border-radius: 18px 18px 14px 14px; box-shadow: 0 -8px 40px rgba(0,0,0,0.25); padding: 16px 16px 20px; max-height: 88vh; overflow-y: auto; }
.kasse-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.kasse-modal-head h2 { font-size: 1.15rem; margin: 0; }
@media (min-width: 560px) { .kasse-modal-overlay { align-items: center; } .kasse-modal-card { border-radius: 16px; } }

/* Blå pille-tilbageknap med pil */
.back-pill {
  display: inline-flex; align-items: center; align-self: center; gap: 6px; flex: 0 0 auto;
  appearance: none; border: 0; cursor: pointer; white-space: nowrap; line-height: 1;
  background: var(--pos-blue); color: #fff;
  border-radius: 999px; height: 38px; padding: 0 16px 0 11px;
  font-size: 0.9rem; font-weight: 700;
}
.back-pill .nav-ico { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; }
.back-pill:active { filter: brightness(0.92); }
/* Plads til pillen i rapport-headeren (ellers klemmes den i 40px-kolonnen) */
[data-panel="report-print"] .page-head { grid-template-columns: auto 1fr; }

/* Betaling: provider-valg flyttet til modal. Inline-grid skjules. */
.payment-method-grid[hidden] { display: none; }
/* Brand-knapper i betalingsmodalen (én provider = betal med den) */
.pay-prov-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.pay-prov-brand {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 0;
  min-height: 64px; padding: 10px 12px; border: 1px solid var(--pos-border); border-radius: 14px; cursor: pointer;
  background: #fff;
}
.pay-prov-brand .prov-logo-img { max-width: 100%; max-height: 40px; object-fit: contain; display: block; }
.pay-prov-brand .prov-logo-fallback {
  display: none; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 12px; background: var(--brand, #444); color: var(--brandfg, #fff);
  font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pay-prov-brand.is-fallback { background: var(--brand, #444); border-color: transparent; padding: 0; }
.pay-prov-brand.is-fallback .prov-logo-img { display: none; }
.pay-prov-brand.is-fallback .prov-logo-fallback { display: flex; }
.pay-prov-brand:active { filter: brightness(0.95); }
/* Betalt + kvitterings-modal */
.pay-success { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 4px 0 8px; }
.pay-success-check { width: 56px; height: 56px; border-radius: 999px; background: var(--pos-primary-soft, #edf6ef); display: grid; place-items: center; }
.pay-success-check svg { width: 30px; height: 30px; fill: none; stroke: var(--pos-primary, #165733); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-success h3 { margin: 6px 0 0; font-size: 1.2rem; }
.pay-success .pay-success-amount { font-size: 1.6rem; font-weight: 800; }
.pay-success-meta { width: 100%; margin: 8px 0 2px; }
.receipt-options { display: grid; gap: 8px; margin-top: 12px; }
.receipt-options .pos-button { width: 100%; }

/* Udskriv bon: kun bon'en udskrives (resten skjules i print) */
#print-receipt-area { display: none; }
.rcpt-print table { width: 100%; border-collapse: collapse; }
.rcpt-print td.r { text-align: right; white-space: nowrap; }
@media print {
  body * { visibility: hidden !important; }
  #print-receipt-area, #print-receipt-area * { visibility: visible !important; }
  #print-receipt-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; padding: 10px; font-family: "Courier New", monospace; color: #000; font-size: 12px; }
  .rcpt-print h2 { font-size: 15px; text-align: center; margin: 0 0 6px; }
  .rcpt-print hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .rcpt-print .rcpt-thanks { margin-top: 10px; text-align: center; }
}

/* Redigerbar ordre i betalingsvinduet: thumb · navn · antal · pris · fjern */
.payment-line { grid-template-columns: 42px minmax(0, 1fr) auto auto auto !important; gap: 8px !important; }
.payment-line .pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.payment-line .qty-controls { flex: 0 0 auto; }
.payment-line .pl-remove { width: 36px; min-width: 36px; height: 36px; }
.payment-line .pl-remove .nav-ico, .payment-line .pl-remove { color: var(--pos-danger, #c0392b); }

/* Beløb: pæn, højrestillet, knækker ikke grimt */
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* KPI hero-kort (kompakt — beløb ~26-34px, ikke kæmpe) */
.kpi-hero { display: grid; gap: 6px; background: var(--pos-primary-soft); border-color: transparent; }
.kpi-label { font-size: 0.85rem; color: var(--pos-muted); font-weight: 600; }
.kpi-amount { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.1; color: var(--pos-primary-dark); font-weight: 800; }

.cmp { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 700; }
.cmp.up { color: var(--pos-primary); }
.cmp.down { color: var(--pos-danger); }
.cmp.neutral { color: var(--pos-muted); font-weight: 600; }
.cmp-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Mini-KPI-række */
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.kpi-mini { padding: 11px 12px; display: grid; gap: 2px; }
.kpi-mini span { font-size: 0.74rem; color: var(--pos-muted); }
.kpi-mini strong { font-size: 1.05rem; font-weight: 800; }

.card-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 10px; }

/* Trend (vanilla SVG) */
.trend-svg { width: 100%; height: 84px; display: block; }
.trend-bar { fill: var(--pos-blue-soft); }
.trend-line { stroke: var(--pos-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-axis { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--pos-muted); margin-top: 4px; }
.trend-empty { font-size: 0.85rem; color: var(--pos-muted); padding: 8px 0; }

/* Provider-breakdown bars */
.prov-line { margin: 9px 0; }
.prov-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.9rem; }
.prov-line-top .prov-name { font-weight: 600; }
.prov-line-sub { font-size: 0.74rem; color: var(--pos-muted); margin-top: 2px; }
.prov-bar { height: 6px; border-radius: 999px; background: #eef0ed; overflow: hidden; margin: 4px 0 0; }
.prov-bar i { display: block; height: 100%; background: var(--pos-blue); border-radius: 999px; }

/* Professionelle liste-rækker: ikon/tekst venstre, beløb/status højre */
.group-head { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--pos-muted); padding: 12px 2px 4px; }
.list-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 54px; padding: 9px 4px; border-bottom: 1px solid var(--pos-border);
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
  font: inherit; color: inherit;
}
button.list-row { cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row .lr-main { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.list-row .lr-main b { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-main small { font-size: 0.76rem; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-qty { flex: 0 0 auto; min-width: 30px; font-weight: 800; color: var(--pos-muted); font-variant-numeric: tabular-nums; }
.list-row .amount { font-weight: 700; }
.list-row .lr-right { display: grid; justify-items: end; gap: 3px; flex: 0 0 auto; }

/* Status-chips */
.chip { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--pos-primary-soft); color: var(--pos-primary); }
.chip.warn { background: #fff3d6; color: #8a5b00; }
.chip.bad { background: #fde3e1; color: var(--pos-danger); }
.chip.muted { background: #f0efed; color: var(--pos-muted); }

/* Periode- og filter-chips (wrap → ingen vandret scroll) */
.period-bar, .sales-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chip-period, .chip-filter {
  appearance: none; border: 1px solid var(--pos-border); background: var(--pos-card);
  color: var(--pos-text); border-radius: 999px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; min-height: 34px; cursor: pointer;
}
.chip-period[aria-pressed="true"], .chip-filter[aria-pressed="true"] {
  border-color: var(--pos-blue); background: #eaf1ff; color: var(--pos-blue);
}
.custom-range { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 10px; }
.custom-range label { display: grid; gap: 3px; font-size: 0.76rem; color: var(--pos-muted); }
.custom-range input { min-height: 40px; padding: 0 10px; border: 1px solid var(--pos-border); border-radius: 10px; }

.sales-summary { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; color: var(--pos-muted); margin: 4px 2px 8px; }
.sales-summary .amount { color: var(--pos-text); }

/* =====================================================================
   ETAPE 3: Kurv/Betaling-side, engangsbeløb, rabat, gemte kurve, kvittering
   Kompakt, mobil-first. Beløb nowrap. Respekterer font-scale/density.
   ===================================================================== */

/* Side-header (Betaling / Kvittering): [tilbage/X] [titel] [handling] */
.page-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin: 2px 0 12px; }
.page-head h1 { font-size: 1.3rem !important; margin: 0; display: flex; align-items: center; gap: 8px; }
.page-head-titles { min-width: 0; }
.page-head-sub { font-size: 0.78rem; color: var(--pos-muted); margin: 1px 0 0; }
.page-head .icon-button { width: 40px; height: 40px; }

/* CTA-bar i Kasse: "Kurv (n) ... Betal X kr." */
.cart-cta-bar {
  position: sticky; bottom: 8px; z-index: 5;
  width: 100%; margin-top: 14px; min-height: 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--pos-primary), var(--pos-primary-dark));
  color: #fff; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 87, 51, 0.22);
}
.cart-cta-bar .cta-left { display: inline-flex; align-items: center; gap: 8px; }
.cart-cta-bar .nav-ico { width: 1.1rem; height: 1.1rem; }
.cart-cta-bar .badge { background: rgba(255,255,255,0.25); color: #fff; }

/* Desktop-kurvpanel ved siden af produkter (salgssiden). Bruger den
   eksisterende tomme 350px-kolonne i .checkout-layout. Skjules ≤900px,
   hvor mobil/APK i stedet bruger CTA-bar + slide-over (data-panel="cart"). */
.checkout-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(22, 87, 51, 0.06);
}
.checkout-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkout-cart-head h2 { margin: 0; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.checkout-cart #checkout-cart-lines { max-height: 46vh; overflow-y: auto; overflow-x: hidden; }
.checkout-cart .pay-main { width: 100%; }

/* CTA-bar hører til mobil/smal skærm; på desktop er kurven altid synlig. */
.cart-cta-bar { display: none; }

/* Visuel "tilføjet"-feedback: kort highlight på den opdaterede kurvlinje. */
@keyframes cartLineFlash {
  0% { background: rgba(34, 153, 84, 0.22); }
  100% { background: transparent; }
}
.cart-line-flash { animation: cartLineFlash 0.7s ease-out; }

/* Tom kurv */
.cart-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--pos-muted); }
.cart-empty-ico { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.cart-empty-title { font-size: 1.05rem; font-weight: 700; color: var(--pos-text); margin: 0; }
.cart-empty-text { font-size: 0.86rem; margin: 0; max-width: 280px; line-height: 1.45; }

/* Hurtighandlinger: Beløb / Rabatter / Gem */
.cart-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.quick-btn {
  display: grid; justify-items: center; gap: 5px; padding: 11px 6px;
  border: 1px solid var(--pos-border); border-radius: 12px; background: var(--pos-card);
  color: var(--pos-text); font-size: 0.78rem; font-weight: 600; cursor: pointer; min-height: 56px;
}
.quick-btn .nav-ico { width: 1.3rem; height: 1.3rem; color: var(--pos-blue); }
.saved-carts-link { display: inline-block; margin: 2px 0 12px; font-size: 0.85rem; color: var(--pos-blue); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 4px 0; }

/* Bottom-sheet-modaller (engangsbeløb/rabat/gemte/refund/byt) */
.receipt-modal-card.sheet { width: min(100%, 460px); display: grid; gap: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 1.15rem; margin: 0; flex: 1 1 auto; }
.sheet-input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--pos-border); border-radius: 11px; font-size: 0.95rem; }
.sheet-body { display: grid; gap: 8px; }
.sheet-rows { display: grid; gap: 6px; }
.sheet-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid var(--pos-border); }
.sheet-line:last-child { border-bottom: 0; }
.sheet-hint { font-size: 0.84rem; color: var(--pos-muted); margin: 0 0 4px; }

/* Engangsbeløb */
.amount-display { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; }
.amount-display .amount { font-size: clamp(1.7rem, 8vw, 2.3rem); font-weight: 800; color: var(--pos-text); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button {
  min-height: 52px; border: 1px solid var(--pos-border); border-radius: 12px; background: var(--pos-soft);
  font-size: 1.2rem; font-weight: 700; color: var(--pos-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.keypad button:active { background: #e9ece7; }
.keypad .nav-ico { width: 1.4rem; height: 1.4rem; }

/* Rabat */
.disc-row { display: flex; gap: 8px; align-items: center; }
.disc-row .sheet-input { flex: 1 1 auto; }

/* Gemte kurve */
.saved-carts-list { display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.saved-cart-row .saved-actions { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.saved-cart-row .amount { font-weight: 700; }
.seg-btn.danger { color: var(--pos-danger); border-color: #f0c9c7; }

/* Kvitteringsdetalje */
.receipt-detail-body { display: grid; gap: 6px; }
.total-card { display: grid; gap: 8px; background: var(--pos-soft); border-color: transparent; }
.total-card.paid { background: var(--pos-primary-soft); }
.tc-label { font-size: 0.85rem; color: var(--pos-muted); font-weight: 600; }
.tc-amount { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.05; font-weight: 800; color: var(--pos-text); }
.section-list { padding: 4px 14px; }
.prov-ico { flex: 0 0 auto; display: inline-flex; }
.prov-ico .nav-ico { width: 1.3rem; height: 1.3rem; color: var(--pos-blue); }
.receipt-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.receipt-detail-actions .pos-button { border-color: var(--pos-blue); color: var(--pos-blue); }
.receipt-detail-actions .pos-button:disabled { color: var(--pos-muted); border-color: var(--pos-border); }

/* Refund / Byt */
.refund-note { font-size: 0.88rem; line-height: 1.45; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--pos-soft); }
.refund-note.warn { background: #fff3d6; color: #8a5b00; }
.exchange-line { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--pos-border); font-size: 0.9rem; }
.exchange-line input { width: 18px; height: 18px; accent-color: var(--pos-blue); }
.exchange-line .lr-main { flex: 1 1 auto; display: grid; }

/* Betalingsreference (kompakt teknisk sektion i kvitteringsdetalje) */
.ref-card { padding: 4px 14px; }
.ref-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--pos-border); font-size: 0.84rem; }
.ref-line:last-child { border-bottom: 0; }
.ref-line span:first-child { color: var(--pos-muted); }
.ref-val { font-variant-numeric: tabular-nums; word-break: break-all; text-align: right; max-width: 62%; }
#refund-execute { margin-top: 10px; }

/* =====================================================================
   Salg-kalender (bladr i måneder; dage med/uden salg; web-only moms)
   ===================================================================== */
.sales-cal { padding: 12px; }
.cal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 8px; }
.cal-head h2 { font-size: 1.05rem; text-align: center; margin: 0; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-weekdays span { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--pos-muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  display: grid; align-content: start; gap: 1px; min-height: 46px;
  padding: 4px 2px; border: 1px solid transparent; border-radius: 9px;
  background: var(--pos-soft); color: var(--pos-text); cursor: pointer; text-align: center;
}
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell .cal-num { font-size: 0.82rem; font-weight: 700; }
.cal-cell .cal-amt { font-size: 0.6rem; font-weight: 700; color: var(--pos-primary); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell .cal-none { font-size: 0.7rem; color: var(--pos-border); }
.cal-cell.has-sales { background: var(--pos-primary-soft); }
.cal-cell.today { border-color: var(--pos-blue); }
.cal-cell.selected { background: var(--pos-blue); color: #fff; }
.cal-cell.selected .cal-amt { color: #fff; }
.cal-cell.selected .cal-none { color: rgba(255,255,255,0.6); }

.vat-toggle { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-size: 0.85rem; color: var(--pos-muted); }
.sales-day-label { font-size: 0.95rem; font-weight: 700; margin: 12px 2px 6px; }

/* =====================================================================
   ETAPE 4: Branding (logo/firmanavn) + kompakte provider-chips
   ===================================================================== */
/* Sidebar-logo */
.drawer-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; margin: 0 auto 4px; background: #fff; border: 1px solid var(--pos-border); }
#drawer-store-name { font-size: 1.05rem; }

/* Branding-kort (kompakt) */
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo-preview { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--pos-border); background: var(--pos-soft); display: grid; place-items: center; font-size: 1.4rem; color: var(--pos-muted); overflow: hidden; }
.brand-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.brand-fields { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.brand-fields .settings-field { gap: 3px; }
.brand-fields .settings-field span { font-size: 0.74rem; font-weight: 600; color: var(--pos-muted); }
.brand-fields input { min-height: 40px; padding: 0 10px; border: 1px solid var(--pos-border); border-radius: 10px; font-size: 0.95rem; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.brand-actions .pos-button { min-height: 40px; padding: 0 18px; }

/* Provider-knapper: stablet under hinanden, fuld bredde, tydelig blå aktiv-state.
   Tap = vælg til/fra (ikke betaling). */
.prov-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 12px; max-width: 100%; }
.prov-chip {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 100%; min-width: 0; text-align: left;
  border: 1px solid var(--pos-border); background: var(--pos-card); color: var(--pos-text);
  border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; font-weight: 600;
  min-height: 46px; cursor: pointer;
}
.prov-chip .prov-ico { flex: 0 0 auto; display: inline-flex; align-items: center; }
.prov-chip .prov-ico .nav-ico { width: 1.15rem; height: 1.15rem; color: var(--pos-blue); }
.prov-chip-name { flex: 1 1 auto; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Aktiv = lysere blå med mørk, læsbar tekst (kun valgt til — ikke betaling). */
.prov-chip[aria-pressed="true"] { background: #e7f0ff; border-color: #9bc0ff; color: var(--pos-navy, #0b2a5b); }
.prov-chip[aria-pressed="true"] .prov-ico .nav-ico { color: var(--pos-blue); }
.prov-chip-badge { flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.prov-chip-badge.on { background: var(--pos-blue); color: #fff; }
.prov-chip-badge.off { background: #f0efed; color: var(--pos-muted); }
.prov-chip-badge.soon { background: #fff3d6; color: #8a5b00; }
