:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --topbar: #0f172a;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Customer-only iPhone Live Tab Mode (?tab=...) & Standalone Privat udlæg */
.customer-mode .topbar,
.customer-mode #side-nav,
.mobile-expense-standalone .topbar,
.mobile-expense-standalone #side-nav {
  display: none !important;
}

.customer-mode .workspace-main,
.mobile-expense-standalone .workspace-main {
  width: 100%;
  height: 100%;
}

.mobile-expense-standalone #view-mobile-expense,
.mobile-expense-standalone #view-mobile-expense .panel-view-scroller {
  background: linear-gradient(180deg, #0f172a 0%, #f1f5f9 175px);
}

.customer-tab-view {
  padding: 16px !important;
  align-items: center;
  background: linear-gradient(180deg, #0f172a 0%, #f1f5f9 180px);
}

.customer-tab-card {
  width: 100%;
  max-width: 480px;
  border-radius: 20px !important;
  padding: 20px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.ctab-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.ctab-club {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.ctab-club-logo {
  height: 28px;
  width: auto;
  max-width: 220px;
  display: block;
  margin-bottom: 4px;
}

.ctab-title {
  margin: 4px 0 2px;
  font-size: 22px;
  font-weight: 800;
}

.ctab-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.ctab-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ctab-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ctab-totals {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.ctab-grand {
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  font-weight: 800;
  color: var(--topbar);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.ctab-locked-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}

/* Compact Topbar (iPad Landscape Optimized) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--topbar);
  color: #fff;
  padding: 6px 14px;
  flex-shrink: 0;
  min-height: 46px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  font-size: 20px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: #000;
  flex-shrink: 0;
}
.brand-logo-img.is-custom {
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  border-radius: 8px;
}
.brand-logo-monogram {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-size: 16px;
  flex-shrink: 0;
}
.company-logo-preview {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--border, #cbd5e1);
  padding: 4px;
}
.company-opt-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  background: #ffffff;
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dynamic Island-style Compact Status & Clock Pill */
.island-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.island-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.conn-glyph {
  font-size: 12px;
  line-height: 1;
}

.conn-pill.online .conn-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.conn-pill.offline .conn-dot { background: #f59e0b; }
.conn-pill.syncing .conn-dot { background: #60a5fa; animation: pulse 1s infinite; }

.clock-pill {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.version-pill {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Workspace Shell with Left Collapsible Icon Sidebar */
.workspace-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.workspace-main {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.side-nav {
  position: relative;
  width: 196px;
  height: 100%;
  background: #0f172a;
  color: #e2e8f0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  flex-shrink: 0;
  transition: width 0.18s ease;
  z-index: 20;
}

.side-nav-scroll-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 24px;
}

.side-nav-links::-webkit-scrollbar {
  display: none;
}

.side-nav-fade-btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  border: none;
  padding-bottom: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.9) 55%, #0f172a 100%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.side-nav-scroll-shell.can-scroll-down .side-nav-fade-btn {
  opacity: 1;
  pointer-events: auto;
}

.side-nav.collapsed-full .side-nav-scroll-shell,
.side-nav.collapsed-full .side-user-menu {
  display: none !important;
}

.side-nav.collapsed {
  width: 64px;
  padding: 10px 6px;
}

.side-nav.collapsed-full {
  width: 0;
  padding: 0;
  border-right: none;
  overflow: visible;
}

.side-nav.collapsed-full .panel-handle.left-handle {
  right: -22px;
}

.nav-btn {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: none;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
}

.side-nav.collapsed .nav-btn {
  justify-content: center;
  padding: 12px 6px;
  overflow: visible;
}

.nav-ico {
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
}

.side-nav.collapsed .nav-btn .nav-lbl,
.side-nav.collapsed .side-account-btn .side-user-info {
  display: none;
}

.side-nav.collapsed .nav-mini-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  margin-left: 0;
  font-size: 9px;
  padding: 1px 5px;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-btn.active {
  background: var(--primary);
  color: #fff;
}

.side-user-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-account-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.side-account-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.side-account-popover {
  position: absolute;
  left: 100%;
  bottom: 0;
  margin-left: 8px;
  width: 230px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
}

.side-acc-info {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.4;
}

.side-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
}

.side-nav.collapsed .side-user-card {
  justify-content: center;
  padding: 8px 4px;
}

.side-user-ava {
  font-size: 16px;
  flex-shrink: 0;
}

.side-user-info {
  overflow: hidden;
  min-width: 0;
}

.side-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-role {
  font-size: 11px;
  color: #93c5fd;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}

/* Catalog Item Subtitle (light grey italic) */
.item-sub {
  font-size: 9.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.2;
  margin-top: 1px;
  padding: 0 5px;
}

/* Clickable Vipps Sync Warning Banner */
.vipps-sync-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #92400e;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.vipps-sync-banner:hover {
  background: #fef3c7;
}

.vipps-sync-cta {
  white-space: nowrap;
  color: #b45309;
  font-weight: 800;
}

/* Visual Restock Cards in Stock Right Panel */
.restock-visual-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.restock-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 4px;
}

.restock-mini-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.restock-mini-card.low {
  background: #fef2f2;
  border-color: #fecaca;
}

.restock-mini-card.near {
  background: #fffbeb;
  border-color: #fde68a;
}

.restock-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.restock-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.restock-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.restock-mini-card.low .restock-bar-fill {
  background: var(--danger);
}

.restock-mini-card.near .restock-bar-fill {
  background: var(--warning);
}

/* Compact Stock Table & Numpad-Trigger Inputs */
.stock-table th,
.stock-table td {
  padding: 8px 8px;
  font-size: 12px;
}

.numpad-trigger {
  cursor: pointer;
  background: #f8fafc !important;
  font-weight: 700;
  text-align: center;
}

.numpad-trigger:hover {
  border-color: var(--primary);
  background: #eff6ff !important;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.source-badge.selfservice {
  background: #dbeafe;
  color: #1e40af;
}

.source-badge.pos {
  background: #f1f5f9;
  color: #475569;
}

.import-step-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.import-step-badge {
  display: inline-block;
  background: var(--topbar);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.import-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.side-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.side-nav.collapsed .side-action-btn {
  justify-content: center;
  padding: 10px 6px;
}

.side-action-btn:hover {
  background: rgba(37, 99, 235, 0.4);
}

.side-action-btn.danger:hover {
  background: rgba(220, 38, 38, 0.45);
}

/* Middle-Edge Collapse Handles (Left Sidebar & Right Register) */
.panel-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 54px;
  border-radius: 999px;
  background: var(--topbar);
  color: #fff;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
}

.panel-handle.left-handle {
  right: -13px;
}

.panel-handle.right-handle {
  left: -13px;
}

.panel-handle:hover {
  background: var(--primary);
  border-color: #fff;
}

/* Views */
.view {
  display: none !important;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.view.active {
  display: flex !important;
}

.view.active.pos-layout,
.view.active.split-layout {
  display: grid !important;
}

.panel-view {
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.panel-view-scroller {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 48px;
  gap: 16px;
}

.panel-view-scroller > *,
.split-main > * {
  flex-shrink: 0;
}

/* Shared 2-Column Split Layout (Scrollable Main + Collapsible Right Options Menu) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 0;
  min-height: 0;
  transition: grid-template-columns 0.18s ease;
}

.split-layout.options-collapsed {
  grid-template-columns: 1fr 74px !important;
}

.split-layout.options-collapsed-full {
  grid-template-columns: 1fr 0px !important;
}

.split-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 48px;
  min-width: 0;
  min-height: 0;
}

.right-options-panel {
  position: relative;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.options-full {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 36px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.right-options-panel.collapsed .vscroll-shell,
.right-options-panel.collapsed-full .vscroll-shell,
.right-options-panel.collapsed .options-full,
.right-options-panel.collapsed-full .options-full,
.right-options-panel.collapsed-full .options-collapsed-strip {
  display: none !important;
}

.right-options-panel.collapsed-full {
  border-left: none;
  overflow: visible;
}

.right-options-panel.collapsed-full .panel-handle.right-handle {
  left: -24px;
}

.options-panel-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.options-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
}

.options-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.options-collapsed-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
}

/* POS Layout (2-Column iPad Landscape) */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 0;
  min-height: 0;
  transition: grid-template-columns 0.18s ease;
}

.pos-layout.register-collapsed {
  grid-template-columns: 1fr 78px !important;
}

.pos-layout.register-collapsed-full {
  grid-template-columns: 1fr 0px !important;
}

.pos-register.collapsed-full {
  border-left: none;
  overflow: visible;
}

.pos-register.collapsed-full .register-full,
.pos-register.collapsed-full .register-collapsed-strip {
  display: none !important;
}

.pos-register.collapsed-full .panel-handle.right-handle {
  left: -24px;
}

.pos-catalog {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  overflow: hidden;
  min-height: 0;
}

@media (max-width: 960px) {
  .pos-layout {
    grid-template-columns: 1fr 310px;
  }
}

@media (max-width: 640px) {
  .pos-layout:not(.register-collapsed):not(.register-collapsed-full) {
    grid-template-columns: 1fr 195px;
  }
  .pos-catalog {
    padding: 8px 10px;
  }
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.catalog-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pos-sort-controls select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-ico {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cat-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cat-pill.active {
  background: var(--topbar);
  color: #fff;
  border-color: var(--topbar);
}

.cat-pill.low-pill.active {
  background: var(--danger);
  border-color: var(--danger);
}

/* Pictogram Item Grid (75% compact scale for iPhone & iPad with full item info) */
.item-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 7px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 36px;
  align-content: start;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0 0;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, border-color 0.15s ease;
}

.item-card:active {
  transform: scale(0.96);
}

.item-card:hover {
  border-color: var(--primary);
}

.item-card.negative-stock {
  border: 2px solid var(--danger);
  background: #fef2f2;
}

.stock-badge.negative {
  background: var(--danger);
  color: #ffffff;
}

.minus-alert-banner {
  background: #fef2f2;
  border: 2px solid #f87171;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
}

.item-pictogram {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 5px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.item-pictogram svg {
  width: 28px;
  height: 28px;
  display: block;
}

.item-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  padding: 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 25px;
}

.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 5px 6px 5px;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  background: transparent;
  font-size: 10px;
}

.item-card .item-name,
.item-card .item-price {
  color: inherit;
}

.cat-pill.cat-colored {
  border-color: rgba(15, 23, 42, 0.18);
}

.cat-pill.cat-colored.active {
  box-shadow: inset 0 0 0 2px var(--topbar);
  font-weight: 800;
}

/* +/- on a catalog card after taps: adjusts mellemkurv qty, fades after 10s */
@keyframes tapFade10s {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; }
}
.item-tap-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  animation: tapFade10s 10s ease-out forwards;
}
.item-tap-step {
  flex: 1;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.item-tap-step:active {
  background: var(--border);
}
.item-tap-qty {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.item-price {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text);
}

.stock-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 999px;
}

.stock-badge.ok {
  background: #dcfce7;
  color: #166534;
}

.stock-badge.near {
  background: #fef3c7;
  color: #92400e;
}

.stock-badge.low {
  background: #fee2e2;
  color: #991b1b;
}

.stock-badge.out {
  background: #e2e8f0;
  color: #475569;
}

/* Right Register / Active Tab */
.pos-register {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  min-height: 0;
}

.register-full {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pos-register.collapsed .register-full {
  display: none !important;
}

.register-collapsed-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 6px;
  height: 100%;
  min-height: 0;
  background: var(--surface-2);
}

.collapsed-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}

.collapsed-initials-btn {
  width: 52px;
  height: 46px;
  border-radius: 13px;
  background: var(--topbar);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.collapsed-items-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collapsed-items-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 14px;
}

.collapsed-item-tile {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 30px;
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 60%, #ffffff 100%);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  cursor: pointer;
  z-index: 4;
}

.collapsed-bottom {
  flex-shrink: 0;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.collapsed-tab-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  background: #e2e8f0;
  padding: 4px 6px;
  border-radius: 8px;
  width: 100%;
}

.collapsed-quick-btn {
  width: 52px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.collapsed-quick-btn.primary {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.collapsed-quick-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tabs-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tabs-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tabs-bar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  max-height: 148px;
  overflow-y: auto;
}

.tab-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  min-width: 0;
}

.tab-chip strong {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-chip.over-limit {
  background: #fef2f2;
  border-color: var(--danger);
  color: #991b1b;
}

.tab-chip.over-limit.active {
  background: var(--danger);
  border-color: #991b1b;
  color: #fff;
}

@keyframes blink-red {
  0%, 100% {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
  }
  50% {
    background: #dc2626;
    border-color: #991b1b;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
}

.tab-chip.customer-locked {
  animation: blink-red 1.1s infinite;
}

.tab-lock-status {
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
}

.customer-tab-view {
  align-items: center;
  justify-content: flex-start;
  padding-top: 28px;
}

.customer-tab-card {
  width: 100%;
  max-width: 520px;
}
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-chip .chip-sub {
  font-size: 10px;
  opacity: 0.85;
}

.btn-new-tab {
  background: var(--topbar);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tab-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-title-row h2 {
  margin: 0;
  font-size: 16px;
}

.tab-meta {
  font-size: 11px;
  color: var(--muted);
}

.tab-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tool-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 6px 9px;
  min-height: 34px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

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

.tab-items-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tab-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scroll-cue-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  border: none;
  padding: 0 0 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 55%, #ffffff 100%);
  pointer-events: none;
  z-index: 5;
}

.scroll-cue-bar .tsf-pill {
  pointer-events: auto;
  cursor: pointer;
}

.empty-tab {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}

.cart-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-ico {
  font-size: 20px;
  text-align: center;
}

.cart-info {
  min-width: 0;
}

.cart-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-unit {
  font-size: 11px;
  color: var(--muted);
}

.cart-qty-fixed {
  font-size: 13px;
  font-weight: 800;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}

.cart-edit-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-line-btns {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 3px;
}

.cart-line-btns .btn {
  min-width: 30px;
  padding: 4px 8px;
}

.cart-row.is-editing {
  border-color: var(--primary);
  background: #eff6ff;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-2);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
}

.qty-stepper button:active {
  background: var(--border);
}

.qty-stepper .qty-val-btn {
  min-width: 38px;
  height: 36px;
  background: #eff6ff;
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
  font-size: 14px;
  font-weight: 800;
}

.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* Touch Numpad Modal */
.numpad-display {
  background: var(--surface-2);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.numpad-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.numpad-preset {
  padding: 10px 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--primary-dark);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.numpad-key {
  height: 54px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.numpad-key:active {
  background: var(--border);
}

.numpad-key.warn {
  background: #fef2f2;
  color: var(--danger);
  font-size: 15px;
}

.cart-line-total {
  font-weight: 700;
  font-size: 13px;
  min-width: 62px;
  text-align: right;
}

.tab-footer {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.totals-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-row.small {
  font-size: 12px;
  color: var(--muted);
}

.total-row.grand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.btn-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-pay:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Common Panel / Card / Table / Buttons */
.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-header h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.small {
  font-size: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.success {
  background: var(--success);
  color: #fff;
}

.btn.danger {
  background: var(--danger);
  color: #fff;
}

.btn.full-width {
  width: 100%;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.icon-btn:active {
  background: var(--bg);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  user-select: none;
}

.checkbox-inline:has(input:checked) {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.checkbox-inline input[type="checkbox"],
.checkbox-inline input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.touch-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.touch-radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.touch-radio-pill input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.touch-radio-pill:has(input:checked) {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
}

.touch-radio-pill:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--surface-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.data-table.compact th,
.data-table.compact td {
  padding: 7px 10px;
  font-size: 12px;
}

/* Stock Restock Banner */
.restock-summary-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
}

.stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stock-toolbar input[type="search"] {
  max-width: 280px;
}

.count-input {
  width: 82px !important;
  text-align: center;
  font-weight: 700;
}

/* Self Service QR */
.selfservice-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

@media (max-width: 960px) {
  .selfservice-grid {
    grid-template-columns: 1fr;
  }
}

.qr-poster-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.qr-box {
  padding: 14px;
  background: #fff;
  border: 2px solid var(--topbar);
  border-radius: 14px;
}

.qr-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}

.qr-url-note {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.kiosk-sim {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
}

/* Reports Dashboard & Periodization */
.period-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.period-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.period-dates label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.period-dates input[type="date"] {
  width: auto;
  padding: 6px 10px;
}

.today-banner {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.today-banner .today-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.today-banner .tm-val {
  font-size: 20px;
  font-weight: 800;
}

.today-banner .tm-lbl {
  font-size: 11px;
  color: #bfdbfe;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.bar-track {
  height: 14px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 999px;
}

.bar-fill.green {
  background: linear-gradient(90deg, var(--success), #4ade80);
}

.bar-val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Reports */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.kpi-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.kpi-val {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.two-col-reports {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.two-col-reports > * {
  min-width: 0;
}

@media (max-width: 1000px) {
  .two-col-reports {
    grid-template-columns: 1fr;
  }
}

.outbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 10px;
}

.outbox-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-2);
  font-size: 12px;
}

.outbox-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}

.outbox-body {
  white-space: pre-wrap;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}

.import-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.import-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 10px;
}

.guide-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.guide-cols h4 {
  margin: 0 0 6px;
}

.guide-cols ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  margin: auto;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.modal-lg {
  max-width: 820px;
}

.modal-sm {
  max-width: 460px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-card.is-dragging .modal-header {
  cursor: grabbing;
}

.company-brand-wrap {
  position: relative;
}

.topbar-brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 4px 8px 4px 4px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.topbar-brand-btn:hover,
.topbar-brand-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

.company-switch-caret {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 2px;
}

.company-switch-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  padding: 6px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}

.company-opt-btn:hover {
  background: var(--surface-2);
}

.company-opt-btn.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary-dark);
  font-weight: 700;
}

.mobile-exp-shell {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.me-standalone-bar {
  display: none;
}

.mobile-expense-standalone .me-standalone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 4px;
  color: #f8fafc;
}

.me-standalone-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.me-standalone-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.me-standalone-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.me-standalone-sub {
  font-size: 12px;
  color: #cbd5e1;
}

.me-standalone-logout {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.mobile-exp-preview-img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.me-company-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.me-co-pick-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 14px 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.me-co-pick-name {
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.me-co-pick-sub {
  font-size: clamp(10px, 2.7vw, 12px);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-exp-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.me-thumb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  min-width: 84px;
  max-width: 112px;
  font-size: 11px;
  color: var(--text);
}

.me-thumb-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.me-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  background: var(--surface-2, #f8fafc);
}

.me-file-open-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.me-file-open-btn:hover {
  text-decoration: underline;
  color: var(--primary);
}

.me-ai-lines-box {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 10px;
  padding: 8px 10px;
}

.me-ai-lines-summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}

.me-ai-lines-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.me-ai-line-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 7px 10px;
}

.me-ai-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.service-quick-wrap {
  position: relative;
}

.service-quick-popover {
  right: 0;
  left: auto;
  min-width: 260px;
}

.service-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.service-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
}

.srv-popup-card {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 14px;
  padding: 18px 14px;
}

.srv-popup-company {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.srv-popup-phone {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--primary, #2563eb);
  user-select: all;
}

.srv-wastewater-guide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.srv-ww-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface-2, #f8fafc);
}
.srv-ww-head {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.srv-ww-schedule {
  background: #eff6ff;
  border-color: #93c5fd;
}
.srv-ww-normal {
  background: #f0fdf4;
  border-color: #86efac;
}
.srv-ww-acute {
  background: #fef2f2;
  border-color: #fca5a5;
}
.srv-ww-alt {
  background: #fffbeb;
  border-color: #fcd34d;
}
.srv-ww-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
}
.srv-ww-tank-row {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 38, 38, 0.18);
}
.srv-ww-tank-row.is-active-tank {
  background: #ffffff;
  border: 2px solid #dc2626;
}

@media (max-width: 640px) {
  .side-nav:not(.collapsed-full) {
    width: 58px;
  }
  .side-nav:not(.collapsed-full) .nav-lbl,
  .side-nav:not(.collapsed-full) .side-user-info {
    display: none;
  }
  .side-nav:not(.collapsed-full) .nav-btn {
    justify-content: center;
    padding: 9px 6px;
  }
  .panel-view-scroller {
    padding: 12px 12px 44px;
  }
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 28px;
}

.modal-footer-btns {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pay-terminal-hero {
  background: var(--surface-2);
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-hero-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--topbar);
  text-align: center;
}

.pay-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 10px;
}

.pay-hero-card {
  background: var(--surface);
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pay-hero-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.pay-amount-big {
  font-size: 28px;
  font-weight: 900;
  color: var(--topbar);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pay-bon-display {
  font-size: 28px;
  font-weight: 900;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 5px 14px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  user-select: text;
}

.pay-confirm-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pay-action-btn {
  padding: 13px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  min-height: 52px;
}

.pay-invoice-row {
  display: block;
  width: 100%;
}

.pay-event-btn {
  background: #f59e0b;
  color: #0f172a;
  border: 1.5px solid #d97706;
  white-space: nowrap;
}

.pay-event-btn:hover:not(:disabled) {
  background: #fbbf24;
  border-color: #b45309;
}

.pay-event-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #fde68a;
  color: #78350f;
  border-color: #fcd34d;
}

@media (max-width: 560px) {
  .pay-confirm-stack {
    grid-template-columns: 1fr;
  }
}

.pay-event-select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-overflow: ellipsis;
}

.small-btn {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Danish Receipt Paper */
.receipt-paper {
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 44vh;
  max-height: 44dvh;
  overflow-y: auto;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Toast (Centered in active main pane, never overlaps bottom-right pay button) */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2500;
  pointer-events: none;
  max-width: min(460px, 84vw);
}

.toast {
  background: var(--topbar);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.toast.warn {
  background: var(--warning);
}

.toast.danger {
  background: var(--danger);
}

.toast.success {
  background: var(--success);
}

.hidden {
  display: none !important;
}

/* Auth Topbar Controls */
.auth-user-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-topbar-touch,
.btn-topbar-logout {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-topbar-touch:hover {
  background: rgba(37, 99, 235, 0.55);
}

.btn-topbar-logout:hover {
  background: rgba(220, 38, 38, 0.45);
}

/* Auth Overlay Gate */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(16px, 6vh, 72px) 16px max(32px, env(safe-area-inset-bottom));
  z-index: 1500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-brand-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.auth-logo-wordmark {
  height: 46px;
  width: auto;
  max-width: 100%;
  display: block;
}

.auth-logo {
  font-size: 38px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.auth-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-box label,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn-lg {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.auth-form-aux {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 2px;
  cursor: pointer;
  text-decoration: underline;
}

.touchid-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
}

.touchid-btn:hover {
  filter: brightness(1.1);
}

.touchid-ico {
  font-size: 30px;
  line-height: 1;
}

.touchid-btn strong {
  display: block;
  font-size: 15px;
}

.touchid-btn small {
  display: block;
  font-size: 12px;
  color: #bfdbfe;
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 10px;
}

.auth-notice {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.auth-notice.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.auth-notice.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-notice.error {
  margin-top: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-weight: 600;
}

.auth-2fa-status {
  text-align: center;
  padding: 8px 0;
}

.auth-2fa-spinner {
  font-size: 42px;
  animation: pulse 1.4s infinite;
  margin-bottom: 8px;
}

/* User Management in Settings */
.users-card {
  margin-top: 16px;
}

.user-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.user-create-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.role-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.role-badge.admin {
  background: #ede9fe;
  color: #5b21b6;
}

.role-badge.kasse {
  background: #dbeafe;
  color: #1e40af;
}

.role-badge.lager {
  background: #dcfce7;
  color: #166534;
}

@media print {
  .topbar, .panel-header, .modal-header, .receipt-actions-stack, .receipt-email-box {
    display: none !important;
  }
  body, .app-shell, .view {
    overflow: visible !important;
    height: auto !important;
  }
}

/* New Modules: Outbox single-line, Permissions matrix, Todos, Temp badges */
.nav-mini-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

.outbox-row-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.outbox-row-line:hover {
  background: #f8fafc;
  border-color: var(--primary);
}

.outbox-row-line .outbox-subj {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.perm-matrix-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

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

.perm-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.todo-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.todo-item-main:hover strong {
  color: var(--primary);
  text-decoration: underline;
}

.todo-row-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}

.sdd-row.is-clickable {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  margin: 2px 0;
}

.sdd-row.is-clickable:hover {
  background: #eff6ff;
}

.task-thumb-preview {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.task-detail-photo {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  cursor: pointer;
}

.checklist-item-row:first-child {
  border-top: none;
}

.checklist-item-row.is-checked span {
  text-decoration: line-through;
  color: var(--muted);
}

.todo-item.priority-high {
  border-left: 4px solid var(--danger);
  background: #fef2f2;
}

.todo-item.is-done {
  opacity: 0.72;
  background: #f8fafc;
}

.temp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.temp-badge.ok {
  background: #dcfce7;
  color: #166534;
}

.temp-badge.overdue {
  background: #fee2e2;
  color: #991b1b;
}

.btn.warn {
  background: #f59e0b;
  color: #fff;
  border-color: #d97706;
}

.btn.warn:hover {
  background: #d97706;
}

/* iPhone-style Scroll-Snap Wheel Picker */
.ios-wheel-headers {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.ios-wheel-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  height: 180px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 26%, black 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 26%, black 74%, transparent 100%);
}

.ios-wheel-highlight {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 72px;
  height: 36px;
  background: rgba(37, 99, 235, 0.1);
  border-top: 1px solid rgba(37, 99, 235, 0.35);
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.ios-wheel-col {
  height: 180px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 72px 0;
}

.ios-wheel-col::-webkit-scrollbar {
  display: none;
}

.ios-wheel-opt {
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 0 6px;
  transition: color 0.1s ease, font-weight 0.1s ease, transform 0.1s ease;
}

.ios-wheel-opt.selected {
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}

.ios-wheel-preview {
  margin-top: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Visual Shift Month Calendar & Table Time Button */
.ios-wheel-headers.two-col,
.ios-wheel-container.two-col {
  grid-template-columns: 1fr 1fr;
}

.shift-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shift-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.shift-cal-head {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 4px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
}

.shift-cal-head.is-weekend {
  background: #fef3c7;
  color: #92400e;
}

.shift-cal-day {
  min-height: 88px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.shift-cal-day.is-clickable {
  cursor: pointer;
}

.shift-cal-day.is-clickable:hover {
  border-color: var(--primary);
}

.shift-cal-day.is-empty {
  background: #f8fafc;
  border-style: dashed;
  opacity: 0.45;
  cursor: default;
}

.shift-cal-day.is-weekend {
  background: #fffbeb;
  border-color: #fde68a;
}

.shift-cal-day.is-today,
.shift-cal-day.is-weekend.is-today {
  background: #dbeafe;
  border: 2.5px solid var(--primary);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.shift-cal-day.is-rsvp-alert {
  border: 2px solid var(--warning);
  background: #fef3c7;
}

.shift-today-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr.shift-row-today {
  background: #eff6ff;
}

.shift-cal-day.is-selected {
  background: #eff6ff;
  border: 2px solid var(--primary);
}

.shift-cal-day.is-uncovered {
  background: #fef2f2;
  border: 2px solid var(--danger);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.shift-cal-day.is-weekend.is-uncovered {
  background: #fee2e2;
  border-color: var(--danger);
}

.shift-cal-day.is-uncovered.is-selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.55);
}

.shift-todo-corner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
}

.shift-todo-corner.is-uncovered {
  background: var(--danger);
  color: #fff;
}

.shift-gap-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--danger);
  line-height: 1.2;
}

.mnt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px dashed var(--danger);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mnt-link-btn:hover {
  background: #fee2e2;
}

.shift-cal-day-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.shift-cal-day.is-weekend .shift-cal-day-num {
  color: #92400e;
}

.shift-cal-chip {
  font-size: 10px;
  line-height: 1.25;
  padding: 2px 5px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-cal-chip.is-mine {
  background: #dbeafe;
  color: #1e40af;
}

.shift-cal-chip.is-draft {
  background: var(--primary);
  color: #fff;
}

.shift-time-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.shift-time-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

/* Nearest-5 Circular Stock Gauge Glyphs */
.restock-glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.restock-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px;
  cursor: pointer;
}

.restock-glyph-ring {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restock-glyph-ring svg.glyph-svg {
  position: absolute;
  inset: 0;
  width: 58px;
  height: 58px;
}

.restock-glyph-count-top {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.restock-glyph-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restock-glyph-icon svg {
  width: 22px;
  height: 22px;
}

.restock-glyph-label {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Row alarm red dot, Category bubbles & Table Filter row */
.row-alarm-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
  margin-right: 5px;
  vertical-align: middle;
}

.cat-color-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

tr.filter-row th {
  background: #f8fafc;
  padding: 4px 6px;
}

tr.filter-row input,
tr.filter-row select {
  width: 100%;
  min-width: 105px;
  min-height: 36px;
  padding: 4px 8px;
  font-size: 13px;
}

/* To-do Week Strip Calendar */
.todo-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.todo-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.todo-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.todo-day-pill.is-weekend {
  border-style: dashed;
}

.todo-day-pill.day-open {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}

.todo-day-pill.day-closed {
  background: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
}

.todo-day-pill.is-today {
  box-shadow: inset 0 0 0 2px #3b82f6;
}

.todo-day-pill.active {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
  font-weight: 800;
}

.todo-pill-bubbles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 18px;
}

.todo-pill-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.todo-pill-bubble.danger {
  background: var(--danger);
}

.todo-pill-bubble.ok {
  background: #16a34a;
}

/* 5-second Red Flash on clicked Alert Target */
@keyframes flashAlertRed5s {
  0%, 100% {
    background-color: transparent;
    box-shadow: none;
  }
  15%, 50%, 85% {
    background-color: #fee2e2;
    box-shadow: inset 0 0 0 2px #ef4444, 0 0 12px rgba(239, 68, 68, 0.35);
  }
}

.flash-alert-5s,
.flash-alert-5s td {
  animation: flashAlertRed5s 1s ease-in-out 5 !important;
}

/* 3-second Fireworks Overlay */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Danish Receipt Actions & Subtle Email Box */
.receipt-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.receipt-visual-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 14px;
  line-height: 1.15;
}

.rec-btn-icons {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 2px;
}

.rec-btn-sub {
  font-size: 12px;
  font-weight: 600;
}

.receipt-email-box.subtle {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.receipt-email-box.subtle label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.receipt-email-box.subtle input {
  padding: 7px 9px;
  background: #ffffff;
  border-color: #cbd5e1;
}

.auth-card input,
.modal-card input,
.modal-card select,
.modal-card textarea {
  font-size: 16px;
}

#modal-time-entry,
#modal-timelog-delete-reason,
#modal-timelog-adjust,
#modal-mnt-category {
  z-index: 1120;
}

.btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed;
  opacity: 0.75;
}

.pr-action-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pr-approve-box {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #ffffff;
  border: 2px solid #0f172a;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pr-approve-box.is-approved {
  background: var(--success);
  border-color: #15803d;
  color: #ffffff;
}

.pr-approve-box.is-locked {
  cursor: default;
}

.pr-approve-box:disabled {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
}

@media (any-pointer: coarse) {
  .auth-overlay .auth-card {
    margin-bottom: 24px;
  }
  .auth-overlay input,
  .auth-overlay select,
  .auth-overlay textarea {
    scroll-margin-top: 24px;
    scroll-margin-bottom: 120px;
  }
  tr.filter-row select,
  .search-wrap input,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px;
  }
}

.btn.receipt-send-close-btn.is-disabled-visual,
.btn.receipt-send-close-btn:disabled {
  background: #cbd5e1;
  color: #334155;
  border: 1px solid #94a3b8;
}

.btn.receipt-send-close-btn.is-disabled-visual {
  cursor: pointer;
}

/* New Tab Infographic Warning (iPhone terminal for instant sales) */
.new-tab-infographic {
  margin-bottom: 12px;
}

.new-tab-alert-strip {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.nudge-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.nudge-card {
  border-radius: 12px;
  padding: 10px 6px;
  min-width: 0;
  text-align: center;
  border: 2px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.nudge-card:active {
  transform: scale(0.98);
}

.nudge-card.is-selected {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

#btn-mode-event-tab.is-selected {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

#btn-mode-getpaid.is-selected {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.22);
}

#new-tab-fields-wrap {
  transition: opacity 0.2s ease;
}

#new-tab-fields-wrap.faded-out {
  opacity: 0.22;
  pointer-events: none;
}

.new-tab-staged-alt {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.btn.new-tab-staged-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
}

.btn.new-tab-staged-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.minus-alert-banner.clickable-alert {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.minus-alert-banner.clickable-alert:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.postpone-mnt-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.nudge-infographic-svg {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.nudge-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.nudge-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Catalog Icon Tap Bubble (+N green / -N red, 5s fade) */
.item-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes tapBubbleFade5s {
  0%, 75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

.item-tap-bubble {
  position: absolute;
  top: -8px;
  right: -16px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: tapFade10s 10s ease-out forwards;
}

.item-tap-bubble.pos {
  background: #16a34a;
}

.item-tap-bubble.neg {
  background: #dc2626;
}

/* Mellemkurv (Floating elevated Staging Cart over blurred active tab; hides Afslut & Betal) */
.pos-register.has-staged-cart .tabs-bar,
.pos-register.has-staged-cart .tab-header,
.pos-register.has-staged-cart .tab-items-wrap,
.pos-register.has-staged-cart .totals-box {
  filter: blur(4px);
  opacity: 0.35;
  pointer-events: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.pos-register.has-staged-cart #btn-close-pay,
.pos-register.has-staged-cart #btn-collapsed-pay {
  display: none !important;
}

.staged-cart-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 25;
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(16, 185, 129, 0.25);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staged-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.staged-cart-title {
  font-size: 14px;
  font-weight: 800;
  color: #065f46;
}

.staging-tab-picker-wrap {
  flex-shrink: 0;
}

.staging-picker-label {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 5px;
}

.staging-picker-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.staging-tab-picker {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.staging-getpaid-box {
  flex-shrink: 0;
  border-left: 2px dashed #6ee7b7;
  padding-left: 8px;
  display: flex;
  align-items: stretch;
}

.staging-getpaid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid #0284c7;
  background: #e0f2fe;
  color: #0c4a6e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

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

.staging-getpaid-btn small {
  font-size: 9px;
  font-weight: 700;
  color: #0369a1;
}

.staging-getpaid-btn.staging-getpaid-bottom {
  flex-direction: row;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  gap: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.staging-getpaid-btn.staging-getpaid-bottom small {
  font-size: 12px;
}

.fs-sum-cell {
  text-align: right;
  font-size: 12px;
  line-height: 1.25;
}

.fs-paid-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #065f46;
  font-weight: 700;
  font-size: 11px;
}

.fs-paid-stamp {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.ev-row-draft td:first-child { border-left: 4px solid #94a3b8; }
.ev-row-tentative { background: rgba(245, 158, 11, 0.08); }
.ev-row-tentative td:first-child { border-left: 4px solid #f59e0b; }
.ev-row-confirmed { background: rgba(16, 185, 129, 0.09); }
.ev-row-confirmed td:first-child { border-left: 4px solid #10b981; }
.ev-row-rejected { background: rgba(239, 68, 68, 0.1); }
.ev-row-rejected td:first-child { border-left: 4px solid #ef4444; }

.ev-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.ev-status-pill.draft { background: #e2e8f0; color: #334155; }
.ev-status-pill.tentative { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.ev-status-pill.confirmed { background: #dcfce7; color: #065f46; border: 1px solid #10b981; }
.ev-status-pill.rejected { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }

.quote-ver-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  margin-left: 4px;
}

.staging-tab-btn {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #a7f3d0;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.staging-tab-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

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

.staged-cart-items {
  flex: 1;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.staged-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.staged-line-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.staged-line-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.staging-accept-btn {
  min-height: 46px;
  font-size: 14px;
  font-weight: 800;
}

.staging-target-name {
  display: inline-block;
  background: #ffffff;
  color: #065f46;
  padding: 2px 9px;
  border-radius: 8px;
  font-weight: 900;
  margin: 0 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

@keyframes flashAcceptBtn2s {
  0%, 100% { box-shadow: none; transform: scale(1); }
  25%, 75% {
    background: #f59e0b;
    color: #0f172a;
    transform: scale(1.03);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.45);
  }
}

.flash-2s {
  animation: flashAcceptBtn2s 1s ease-in-out 2;
}

/* 20-second Temporary Row Change Indicators on Tab Items */
.cart-row {
  position: relative;
}

.cart-row.row-delta-pos {
  background: #ecfdf5;
  border-color: #10b981;
}

.cart-row.row-delta-neg {
  background: #fef2f2;
  border-color: #ef4444;
}

.cart-row.just-removed {
  border-style: dashed;
  opacity: 0.8;
}

.cart-row.just-removed .cart-name {
  text-decoration: line-through;
  color: #991b1b;
}

.row-delta-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
}

.row-delta-bubble.pos {
  background: #16a34a;
}

.row-delta-bubble.neg {
  background: #dc2626;
}

.twofa-code-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#auth-2fa-code {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 5px;
}

.pay-items-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.pay-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.temp-badge.pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

tr[data-unreconciled="1"] {
  background: #fef2f2;
}

.btn.warning {
  background: var(--warning);
  color: #fff;
}

.ics-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 2px solid var(--danger);
  color: #7f1d1d;
  animation: icsPulse 2.2s infinite;
}

@keyframes icsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.04); }
}

.alloc-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 2px solid var(--primary);
  color: #1e3a8a;
}

.alloc-sidebar-box {
  background: #f8fafc;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shift-rollout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.shift-event-chip,
.shift-event-chip-legend {
  font-size: 10px;
  line-height: 1.25;
  padding: 2px 6px;
  border-radius: 5px;
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdd-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
}

.sdd-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.sdd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
  font-size: 13px;
}

.sdd-row:first-of-type {
  border-top: none;
}

.alert-pill.invoice-pill {
  background: rgba(245, 158, 11, 0.24);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.55);
}

.pd-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--surface-2);
  cursor: pointer;
}

.pd-draft-row:hover {
  border-color: var(--primary);
}

.pd-draft-row.is-pending {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.pd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.pd-badge.pending { background: #fef3c7; color: #92400e; }
.pd-badge.approved { background: #dcfce7; color: #166534; }
.pd-badge.rejected { background: #fee2e2; color: #991b1b; }

.pd-map-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pd-map-cell select {
  min-width: 190px;
  max-width: 260px;
}

.pd-num-inp {
  width: 68px;
  text-align: right;
  padding: 5px 6px;
}

/* Purchase draft lines: exactly one row high */
.pd-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.pd-table .pd-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.pd-table input[data-pd-raw] {
  min-width: 170px;
  width: 100%;
}
.pd-table tr.pd-row-ignored td {
  opacity: 0.6;
}
.pd-table th.pd-col-group-sep,
.pd-table td.pd-col-group-sep {
  border-left: 3px solid #94a3b8 !important;
  padding-left: 12px;
}
.pd-table thead tr.pd-col-groups-row th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}
.pd-table thead tr.pd-col-groups-row th.pd-group-invoice {
  background: #f8fafc;
  color: #475569;
}
.pd-table thead tr.pd-col-groups-row th.pd-group-booking {
  background: #eff6ff;
  color: #1e40af;
}
.pd-total-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.pd-doc-totals {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-doc-totals label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pd-check-ok { color: #15803d; font-weight: 700; }
.pd-check-bad { color: #b91c1c; font-weight: 700; }

.pdc-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.4fr);
  gap: 12px;
  align-items: start;
}
.pdc-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
  background: #f1f5f9;
  text-align: center;
}
.pdc-preview iframe {
  width: 100%;
  height: 60vh;
  border: 0;
}
.pdc-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.pdc-row.big {
  font-size: 16px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .pdc-grid { grid-template-columns: 1fr; }
}

.pd-pdf-wrap {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.pd-pdf-frame {
  width: 100%;
  height: 44vh;
  border: none;
  display: block;
}

.modal-xl {
  max-width: 980px;
  width: 96vw;
}

.channel-pie-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.channel-pie-disc {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.channel-pie-hole {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.channel-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 165px;
}

.channel-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.source-badge.matchi {
  background: #dcfce7;
  color: #065f46;
}

.chart-expand-btn {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.table-scroll-shell {
  position: relative;
  width: 100%;
}

.table-scroll-fade-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  border: none;
  padding: 0 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.86) 52%, rgba(248, 250, 252, 0.98) 100%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 4;
}

.table-scroll-shell.can-scroll-right .table-scroll-fade-btn {
  opacity: 1;
  pointer-events: none;
}

.table-scroll-shell.can-scroll-right .table-scroll-fade-btn .tsf-pill {
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 900px) {
  .split-layout,
  .split-layout.options-collapsed,
  .split-layout.options-collapsed-full {
    display: flex;
    flex-direction: column;
  }
  .eq-ext-row,
  .eq-item-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

.tsf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.16s ease, background 0.16s ease;
}

.table-scroll-fade-btn:hover .tsf-pill {
  transform: translateX(2px);
  background: rgba(15, 23, 42, 0.96);
}

.tsf-arrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
}

/* Unified vertical scroll fade overlay for views, sidebars, grids & popups */
.vscroll-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.vscroll-shell.vscroll-grow {
  flex: 1;
  height: 100%;
}

.vscroll-shell.vscroll-modal {
  flex: 1 1 auto;
  min-height: 0;
}

.vscroll-fade-btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  border: none;
  padding: 0 0 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0) 0%, rgba(241, 245, 249, 0.88) 54%, rgba(241, 245, 249, 0.98) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 6;
}

.vscroll-shell.vscroll-surface > .vscroll-fade-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 54%, #ffffff 100%);
}

.vscroll-shell.vscroll-mint > .vscroll-fade-btn {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0) 0%, rgba(236, 253, 245, 0.9) 54%, #ecfdf5 100%);
}

.vscroll-shell.can-scroll-down > .vscroll-fade-btn {
  opacity: 1;
}

.vscroll-shell.can-scroll-down > .vscroll-fade-btn .tsf-pill {
  pointer-events: auto;
  cursor: pointer;
}

.vscroll-fade-btn:hover .tsf-pill {
  transform: translateY(1px);
  background: rgba(15, 23, 42, 0.96);
}

.auth-vscroll-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  border: none;
  padding: 0 0 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 56%, #0f172a 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1510;
}

.auth-overlay.can-scroll-down .auth-vscroll-fade {
  opacity: 1;
}

.auth-overlay.can-scroll-down .auth-vscroll-fade .tsf-pill {
  pointer-events: auto;
  cursor: pointer;
}

.eco-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.clickable-num {
  cursor: pointer;
  border-bottom: 1px dotted #94a3b8;
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: 4px;
  padding: 1px 4px;
}

.clickable-num:hover {
  background: #eff6ff;
  color: var(--primary);
}

.budget-table th,
.budget-table td {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.budget-table th:first-child,
.budget-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
}

.budget-table tr.is-section-total td {
  font-weight: 700;
  background: #f8fafc;
  border-top: 1.5px solid var(--border);
}

.budget-cell-actual {
  font-weight: 700;
  color: var(--text);
}

.budget-cell-base {
  color: #64748b;
  font-style: italic;
}

.fin-baselines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.fin-base-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

/* DB Padel Hall Architectural Map (PDF 55,3 x 26,3m) & Graphic Placement Cards */
.hall-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 11px;
}
.hall-leg-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
}
.hall-leg-chip.free { background: #ffffff; }
.hall-leg-chip.draft { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.hall-leg-chip.sent { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.hall-leg-chip.expiring { background: #ffedd5; border-color: #ea580c; color: #9a3412; }
.hall-leg-chip.accepted { background: #dcfce7; border-color: #10b981; color: #065f46; }
.hall-leg-chip.rejected { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.hall-leg-chip.blocked { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

.hall-diagram {
  border: 2px solid #334155;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 10px;
  min-width: 780px;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hall-wall-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}
.hall-bay-vent {
  border: 1.5px dashed #ef4444;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(239, 68, 68, 0.08),
    rgba(239, 68, 68, 0.08) 6px,
    rgba(255, 255, 255, 0.9) 6px,
    rgba(255, 255, 255, 0.9) 12px
  );
  color: #b91c1c;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 3px;
  line-height: 1.15;
  user-select: none;
}
.hall-south-portal-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  margin-top: -4px;
}
.hall-portal-door {
  grid-column: 5;
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #38bdf8;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 3px 2px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.hall-portal-gate {
  grid-column: 6;
  background: #bae6fd;
  color: #0c4a6e;
  border: 2px solid #0284c7;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 900;
  text-align: center;
  padding: 3px 2px;
  line-height: 1.15;
}
.hall-interior-grid {
  display: grid;
  grid-template-columns: 2fr 1.05fr 2fr;
  gap: 8px;
  align-items: stretch;
}
.hall-wing {
  background: #e0f2fe;
  border: 2px solid #0284c7;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}
.hall-wing-aisle {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  background: rgba(255,255,255,0.68);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.1;
}
.hall-center-core {
  background: #f1f5f9;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
}
.hall-core-facilities {
  background: #e2e8f0;
  color: #334155;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 4px 6px;
}
.hall-firstfloor-box {
  background: rgba(254, 226, 226, 0.35);
  border: 1.5px solid #dc2626;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hall-ff-tag {
  font-size: 9px;
  font-weight: 900;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hall-ff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.hall-bar-zone {
  background: rgba(219, 234, 254, 0.55);
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hall-bar-tag {
  font-size: 9px;
  font-weight: 900;
  color: #1d4ed8;
  text-transform: uppercase;
}
.hall-lounge-box {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

.pl-slot {
  position: relative;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  line-height: 1.2;
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  min-height: 50px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.pl-slot.is-court {
  min-height: 112px;
  justify-content: space-between;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #60a5fa;
}
.pl-slot.is-wall-accent-red { border-left: 4px solid #dc2626; }
.pl-slot.is-wall-accent-blue { border-left: 4px solid #2563eb; }
.pl-slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}
.pl-slot.is-draft {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1e40af;
}
.pl-slot.is-sent {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}
.pl-slot.is-accepted {
  background: #dcfce7;
  border-color: #16a34a;
  color: #064e3b;
}
.pl-slot.is-expiring {
  background: #ffedd5;
  border-color: #ea580c;
  color: #7c2d12;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.22);
}
.pl-slot.is-rejected {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}
.pl-slot.is-selected {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.28);
  background: #eef2ff;
}
.pl-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-weight: 800;
  font-size: 10.5px;
}
.pl-slot-sub {
  font-size: 9.5px;
  color: #475569;
  display: flex;
  justify-content: space-between;
  gap: 3px;
}
.pl-slot-owner {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
  min-width: 0;
}
.pl-slot-meta {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-slot-logo,
.sp-logo-thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.sp-logo-thumb {
  width: 40px;
  height: 32px;
}
.pay-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.pay-bubble.paid { background: #16a34a; }
.pay-bubble.pending { background: #eab308; color: #111827; }
.pay-bubble.overdue { background: #dc2626; }

/* Sponsoransvarlig Admin & Graphic Placement Detail Popup */
.sp-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sp-cfg-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.sp-warn-months-inp {
  width: 48px !important;
  text-align: center;
  font-weight: 800;
  padding: 5px 6px !important;
}
.sp-admin-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-alert-box {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid;
}
.sp-alert-box.is-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}
.sp-alert-box.is-warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}
.sp-alert-box.is-ok {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  color: #065f46;
  font-size: 13px;
}
.sp-alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.sp-alert-row:first-of-type { border-top: 0; }
.pld-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}
.pld-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  margin-bottom: 10px;
}
.pld-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.pld-card.is-clickable:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}
.pld-hero-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
}
.pld-hero-empty {
  height: 150px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
}
.pld-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.pld-kpi {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.pld-kpi-lbl {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.pld-kpi-val {
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}
.spr-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spr-choice-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}
.spr-choice-card.is-highlight {
  border-color: #16a34a;
  background: #f0fdf4;
}
@media (max-width: 780px) {
  .pld-layout, .spr-choices-grid { grid-template-columns: 1fr; }
}

/* CVR Company Name Google-style Autocomplete */
.cvr-ac-wrap {
  position: relative;
}
.cvr-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: var(--surface, #ffffff);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  max-height: 260px;
  overflow-y: auto;
}
.cvr-ac-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text, #0f172a);
}
.cvr-ac-item:last-child { border-bottom: 0; }
.cvr-ac-item:hover,
.cvr-ac-item.is-active {
  background: #eff6ff;
}
.cvr-ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.cvr-ac-cvr {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.cvr-ac-existing {
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #065f46;
  padding: 1px 6px;
  border-radius: 999px;
}
.cvr-ac-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Event Quote Structured Table & Tilbudsbibliotek */
.eq-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}
.eq-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.eq-table-wrap {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  max-height: 48vh;
  overflow: auto;
  background: var(--surface);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}
.eq-lines-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}
.eq-lines-table thead th.eq-paid-head {
  white-space: normal;
  line-height: 1.15;
}
.eq-lines-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.eq-cat-row td {
  background: #eef2ff;
  color: #1e293b;
  font-weight: 700;
  padding: 7px 8px;
  border-top: 2px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}
.eq-cat-head-flex {
  position: sticky;
  left: 0;
  max-width: calc(100vw - 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.eq-cat-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.eq-bar-filter {
  font-size: 12px !important;
  padding: 4px 8px !important;
  min-width: 150px;
  max-width: 210px;
}
.eq-line-row td {
  padding: 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.eq-line-row.is-disabled {
  background: #f8fafc;
}
.eq-line-row.is-disabled td:not(:first-child) {
  opacity: 0.44;
}
.eq-line-row .eq-active-chk {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.eq-desc-wrap {
  position: relative;
}
.eq-desc-input {
  width: 100%;
  min-width: 180px;
  padding: 6px 8px !important;
  font-size: 13px !important;
}
.eq-unit-input {
  width: 100%;
  min-width: 68px;
  padding: 6px 6px !important;
  font-size: 12px !important;
}
.eq-num-input {
  width: 100%;
  text-align: right;
  padding: 6px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
}
.quotes-jump-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.quotes-mod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.eq-tactical-box {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}
.eq-tactical-net {
  color: #0f766e;
  font-weight: 800;
  padding-top: 2px;
}
.btn.danger-outline {
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fca5a5;
  font-weight: 700;
}
.btn.danger-outline:hover {
  background: #fee2e2;
  border-color: #ef4444;
}
.cn-minus-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cn-line-row.is-credit-neg {
  background: rgba(254, 242, 242, 0.65);
}
.cn-line-row.is-credit-neg td:first-child {
  border-left: 4px solid #ef4444;
}
.cn-neg-price {
  color: #b91c1c !important;
  font-weight: 800 !important;
  border-color: #fca5a5 !important;
  background: #fff5f5 !important;
}
.cn-neg-sum {
  color: #b91c1c;
  font-weight: 800;
}
.inv-prev-meta-bar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
#sp-price-matrix-tbody input,
#sp-packages-tbody input {
  padding: 6px 8px !important;
  font-size: 13px !important;
}
#sp-price-matrix-tbody .pm-price,
#sp-packages-tbody .pkg-price,
#sp-packages-tbody .pkg-prod {
  min-width: 96px;
}
#sp-packages-tbody .pkg-qty {
  min-width: 64px;
}
#sp-packages-tbody .pkg-unit {
  min-width: 78px;
}
#sp-packages-tbody .pkg-name {
  min-width: 120px;
}
.eq-disc-cell {
  text-align: right;
  white-space: nowrap;
}
.eq-disc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.eq-disc-add-btn {
  background: transparent;
  border: 1px dashed transparent;
  color: var(--muted);
  opacity: 0.35;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
  cursor: pointer;
}
.eq-line-row:hover .eq-disc-add-btn,
.eq-disc-add-btn:focus {
  opacity: 0.9;
  border-color: var(--border);
}
.eq-sum-cell {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.eq-add-row td {
  padding: 6px 8px 10px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}
.eq-suggest-panel {
  margin-top: 6px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.eq-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.eq-suggest-chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}
.eq-suggest-chip:hover {
  border-color: var(--primary);
  background: #eef2ff;
}
.eq-group-disc-row td {
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
}
.eq-totals-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.eq-tot-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.eq-tot-grand {
  font-size: 15px;
  font-weight: 800;
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  margin-top: 4px;
}
.eq-lib-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
}
.eq-lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

/* Sponsor package callouts, placement max-price lock, benefits dashboard & floating dropdowns */
.sp-pkg-callout {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sp-pkg-callout.is-upgrade {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
}
.pl-slot.is-price-locked {
  opacity: 0.42;
  filter: grayscale(0.75);
  cursor: not-allowed;
  border-style: dashed;
}
.sp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.sp-ben-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-ben-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sp-ben-glyph-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-ben-glyph {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.sp-ben-glyph:hover {
  border-color: var(--primary);
  background: #eef2ff;
  transform: translateY(-1px);
}
.sp-ben-glyph.is-done {
  background: #f1f5f9;
  color: var(--muted);
  border-color: #cbd5e1;
}
.sp-ben-glyph.is-event {
  border-color: #86efac;
  background: #f0fdf4;
}
.sp-ben-glyph-kpi {
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
}
.sp-ben-glyph.is-event .sp-ben-glyph-kpi {
  background: #dcfce7;
  color: #166534;
}
.eq-line-row.is-paid-row {
  background: rgba(16, 185, 129, 0.08);
}
.eq-line-row .eq-paid-chk {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.eq-ctr-type-sel {
  font-size: 11.5px;
  padding: 4px 6px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  max-width: 100%;
}
.inv-prev-doc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.inv-prev-resend-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}
.inv-prev-resend-bar input {
  flex: 1 1 220px;
  min-width: 180px;
}
.floating-row-actions-menu {
  position: fixed;
  z-index: 1250;
  min-width: 210px;
  max-width: 280px;
  background: var(--surface, #fff);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.floating-row-actions-menu .btn {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  padding: 7px 10px;
}

.quote-stamdata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.quote-stamdata-box {
  min-width: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2, #f8fafc);
  transition: opacity 0.18s ease, background 0.18s ease;
}
.quote-stamdata-box .form-grid > * {
  min-width: 0;
}
.quote-stamdata-box-head {
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 1px solid #cbd5e1;
}
.quote-stamdata-box.is-greyed-box {
  background: #e2e8f0;
  opacity: 0.56;
}
.quote-stamdata-box.is-greyed-box input,
.quote-stamdata-box.is-greyed-box select,
.quote-stamdata-box.is-greyed-box textarea {
  pointer-events: none;
  background: #f1f5f9;
}
.eq-type-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.eq-type-pill {
  flex: 1 1 170px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface-2, #f8fafc);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}
.eq-type-pill.is-active[data-eq-type="paid"] {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.eq-type-pill.is-active[data-eq-type="sponsor"] {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.eq-type-pill.is-active[data-eq-type="internal"] {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #075985;
}
#btn-eqn-mode-sponsor.is-selected {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
#btn-eqn-mode-internal.is-selected {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.22);
}
.eq-calc-details {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px 12px;
  background: var(--surface);
}
.eq-calc-details > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
}
.eq-calc-details > summary::before {
  content: '▾ ';
}
.eq-calc-details:not([open]) > summary::before {
  content: '▸ ';
}
.fs-locked-row {
  background: rgba(16, 185, 129, 0.06);
}
.fs-locked-row input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
}
.bank-dual-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .bank-dual-pane {
    grid-template-columns: 1fr;
  }
}
.bank-left-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-width: 0;
}
.bank-pane-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  overflow: hidden;
}
.bank-box-head {
  margin: 0 -16px 8px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.bank-head-open {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  border-bottom-color: #bfdbfe;
}
.bank-head-credit {
  background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 100%);
  border-bottom-color: #a7f3d0;
}
.bank-head-staged {
  background: linear-gradient(180deg, #ccfbf1 0%, #f0fdfa 100%);
  border-bottom-color: #99f6e4;
}
.bank-open-invoices-card,
.bank-credit-notes-card {
  flex: 1 0 auto;
  min-height: 160px;
}
.bank-open-invoices-card {
  border-top: 5px solid #2563eb;
}
.bank-credit-notes-card {
  border-top: 5px solid #059669;
}
.bank-staged-card {
  height: 100%;
  min-height: 360px;
  border-top: 5px solid #0f766e;
}
.bank-transfer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 70px;
}
#bank-pane-batch .bank-transfer-list {
  max-height: none;
  overflow: visible;
}
#bank-pane-statements .bank-transfer-list {
  max-height: 540px;
  overflow: auto;
}
.bank-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.bank-row-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.bank-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 44%;
}
.bank-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.bank-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .bank-pay-row,
  .bank-row-main {
    flex-wrap: wrap;
    white-space: normal;
  }
  .bank-row-title {
    max-width: 100%;
    white-space: normal;
  }
  .bank-row-meta {
    flex-basis: 100%;
    white-space: normal;
  }
}
.bank-pay-row.is-urgent {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}
.bank-pay-row.is-credit {
  border-left: 4px solid #059669;
  background: #f0fdf4;
}
.bank-acc-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bank-acc-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.bank-acc-btn.is-active {
  border-color: #0f766e;
  background: #ccfbf1;
  color: #115e59;
}
.bank-netting-box {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
}
.te-suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.te-sug-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 12px;
  cursor: pointer;
}
.te-sug-chip:hover {
  background: #e2e8f0;
}
.pd-badge.in_progress { background: #e0f2fe; color: #075985; }
.pd-badge.pending_second_approval { background: #fef3c7; color: #92400e; }

/* 4-column time wheel with distinct Pause column */
.ios-wheel-headers.four-col,
.ios-wheel-container.four-col {
  grid-template-columns: 1.35fr 0.9fr 0.9fr 0.95fr;
}
.ios-wheel-headers.four-col .is-break-col {
  color: #b45309;
}
.ios-wheel-col.is-break-col {
  background: rgba(245, 158, 11, 0.10);
  border-left: 1px dashed rgba(217, 119, 6, 0.35);
}
.ios-wheel-col.is-break-col .ios-wheel-opt.selected {
  color: #92400e;
}

/* Cost-center chips, multi-select work chips & unreviewed highlights */
.te-costcenter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.te-cost-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.te-cost-chip:hover {
  background: #e2e8f0;
}
.te-cost-chip.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}
.te-sug-chip.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}
.te-field-unreviewed {
  border: 2px solid #dc2626 !important;
  background: #fef2f2 !important;
  border-radius: 10px;
  padding: 8px !important;
}
.ios-wheel-headers #te-wrap-break.te-field-unreviewed {
  padding: 2px 6px !important;
  border-radius: 6px;
}
.pd-lbl-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pd-field-missing {
  border: 2px solid #dc2626 !important;
  background: #fef2f2 !important;
  border-radius: 8px;
  padding: 4px 6px;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #ede9fe;
  color: #5b21b6;
  vertical-align: middle;
}

/* Compact single-line table for Shifts view */
.shifts-compact-table th,
.shifts-compact-table td {
  padding: 4px 8px !important;
  font-size: 12.5px;
  white-space: nowrap;
  vertical-align: middle;
}
.shifts-compact-table .btn,
.shifts-compact-table .small-btn {
  padding: 3px 7px;
  font-size: 11.5px;
}

/* Two-column filter bar in Quotes & Invoices */
.quotes-2col-filters {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr;
  gap: 12px 20px;
  align-items: start;
}
@media (max-width: 780px) {
  .quotes-2col-filters {
    grid-template-columns: 1fr;
  }
}

/* Collapsible fade cards across overview/admin views */
.collapsible-card {
  position: relative;
}
.collapsible-card .card-collapse-head {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.collapsible-card .card-collapse-chevron {
  display: none; /* the single centered fold button below replaces the corner chevron */
}
.collapsible-card.is-collapsed .card-collapse-body.has-content {
  position: relative;
  max-height: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.collapsible-card.is-collapsed .card-collapse-body.is-empty {
  display: none;
}
.card-fade-expand-wrap {
  display: none;
  justify-content: center;
  margin-top: 10px;
  position: relative;
  z-index: 4;
}
.collapsible-card.has-content .card-fade-expand-wrap {
  display: flex;
}
.collapsible-card.is-collapsed.has-content .card-fade-expand-wrap {
  margin-top: -18px;
}
.card-fade-expand-btn {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.card-fade-expand-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
}

/* Sortable tables */
th.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th.sortable-th:hover {
  color: var(--primary);
}
th.sortable-th .sort-ind {
  font-size: 10px;
  opacity: 0.55;
  margin-left: 4px;
}
th.sortable-th.sort-asc .sort-ind,
th.sortable-th.sort-desc .sort-ind {
  opacity: 1;
  color: var(--primary);
}

/* Version pill update alert */
.version-pill.is-outdated {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
  font-weight: 800;
}

/* Padel Booking, Memberships, Tournaments & Yodeck Live Boards */
.padel-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.padel-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.padel-subcard {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.padel-bk-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.badge-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}
.yodeck-screen-view {
  padding: 0 !important;
  background: #0f172a;
  color: #f8fafc;
}
.yodeck-wrap {
  padding: 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.yodeck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.yodeck-court-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 18px;
}
.yodeck-court-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.yodeck-now {
  font-size: 18px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 6px;
}
.yodeck-next {
  font-size: 15px;
  color: #cbd5e1;
}
.yodeck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
.yodeck-table th, .yodeck-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #334155;
  text-align: left;
}
.yodeck-sponsors {
  margin-top: auto;
  font-size: 14px;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 12px;
}
.link-inspect-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #0f766e;
  font: inherit;
  font-weight: 600;
  text-decoration: underline dotted rgba(15, 118, 110, 0.55);
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}
.link-inspect-btn:hover {
  color: #115e59;
  text-decoration: underline solid #0f766e;
}
.login-role-box {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}
.login-players-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #115e59 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}
.login-players-hero .login-box-header-btn,
.login-players-hero h4,
.login-players-hero label { color: #ffffff; }
.login-players-hero .muted,
.login-players-hero .login-box-sub { color: rgba(255, 255, 255, 0.85); }
.login-players-hero input { background: #ffffff; color: #0f172a; }
.login-players-hero .btn.primary { background: #ffffff; color: #0f766e; font-weight: 700; }
.login-players-hero .btn.secondary { background: rgba(255, 255, 255, 0.16); color: #ffffff; border-color: rgba(255,255,255,0.35); }
.login-crew-dimmed {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  opacity: 0.86;
}
.login-crew-dimmed.is-expanded {
  opacity: 1;
  background: #ffffff;
  border-color: #94a3b8;
}
.login-box-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-back-pill {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.16);
  color: inherit;
  opacity: 0.72;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.login-back-pill:hover { opacity: 1; background: rgba(148, 163, 184, 0.28); }
.login-players-hero .login-back-pill {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.crew-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.crew-split-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px 10px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.crew-split-card:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.14);
  transform: translateY(-1px);
}
.crew-split-ico { font-size: 24px; line-height: 1; margin-bottom: 2px; }
.crew-split-card strong { font-size: 15px; font-weight: 800; }
.crew-split-card small { font-size: 11px; color: #64748b; }
.login-crew-dimmed.is-expense-mode {
  background: #f0f9ff;
  border-color: #38bdf8;
}
.crew-expense-photo-badge {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
#auth-login-box { min-height: 215px; }
.login-box-header-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.login-box-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; opacity: 0.85; }
.login-box-title { font-size: 21px; font-weight: 800; line-height: 1.2; margin: 2px 0; }
.login-box-sub { font-size: 12px; }
.login-box-chevron { font-size: 20px; font-weight: 800; }
.pc-progress-wrap { margin-bottom: 12px; }
.pc-progress-meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-bottom: 4px; color: rgba(255,255,255,0.9); }
.pc-progress-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.pc-progress-fill { height: 100%; border-radius: 999px; background: #fde047; transition: width 0.25s ease; }
.player-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(15, 118, 110, 0.25);
}
.player-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

/* Contrast & interactive feedback fixes for DB Players Club Login / Onboarding / Booking */
.login-players-hero .auth-notice {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.login-players-hero .auth-notice.warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.login-players-hero label.checkbox-inline {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.85);
}
.login-players-hero label.checkbox-inline span {
  color: #0f172a;
}
.login-players-hero label.checkbox-inline:has(input:checked) {
  background: #ecfdf5;
  border-color: #fde047;
  color: #064e3b;
}
.pc-terms-inline-link {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 800;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.login-players-hero .auth-link-btn {
  color: #fde047;
  font-weight: 700;
}
@keyframes authErrBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  20%, 60% { opacity: 0.28; transform: scale(0.99); }
  40%, 80% { opacity: 1; transform: scale(1.01); }
}
.auth-err-blink {
  animation: authErrBlink 0.78s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .auth-err-blink { animation: none !important; outline: 2px solid #f59e0b; }
}
.pw-retype-feedback {
  outline: 2px solid #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35) !important;
  transition: box-shadow 0.15s ease, outline-color 0.15s ease;
}
.pw-error-ring {
  outline: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28) !important;
}
.phone-picker-wrap { position: relative; display: flex; gap: 6px; align-items: stretch; }
.phone-dial-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  min-width: 96px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.phone-dial-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  z-index: 1600;
  padding: 8px;
}
.phone-dial-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 6px;
  display: grid;
  gap: 4px;
}
.phone-dial-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
}
.phone-dial-opt:hover { background: #e0f2fe; }
.bdate-step-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.bdate-month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.bdate-cell {
  padding: 9px 4px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.bdate-cell.selected {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
}
.pwa-camera-box {
  margin-top: 10px;
  background: #0f172a;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.pwa-camera-box video {
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
  background: #020617;
}
.coins-warning-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  margin: 10px 0;
}
.slot-opt-free { color: #15803d; font-weight: 700; }
.slot-opt-busy { color: #b91c1c; font-weight: 600; }
.booking-card-cancelled {
  opacity: 0.68;
  background: #fef2f2 !important;
  border-left: 4px solid #ef4444 !important;
}
.booking-card-past {
  opacity: 0.8;
  background: #f8fafc !important;
  border-left: 4px solid #94a3b8 !important;
}
.booking-card-upcoming {
  border-left: 4px solid #0f766e !important;
  background: #f0fdfa !important;
}
.bk-month-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bk-month-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.bk-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
}
.bk-day-pill {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 12px;
}
.bk-day-pill:hover { background: #f1f5f9; }
.bk-day-lbl { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; }
.bk-day-num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.bk-day-pill.is-today .bk-day-num { border: 1.5px solid #16a34a; }
.bk-day-pill.is-active .bk-day-num {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}
.bk-step-hdr {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bk-dur-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bk-dur-pill {
  flex: 1 1 78px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.bk-dur-pill.is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}
.bk-legend-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}
.bk-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.bk-time-tile {
  padding: 10px 6px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bk-time-tile.is-free {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.bk-time-tile.is-split {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #92400e;
}
.bk-time-tile.is-busy {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.72;
}
.bk-time-tile.is-free.is-selected {
  background: #16a34a;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.bk-time-tile.is-split.is-selected {
  background: #d97706;
  border-color: #b45309;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.bk-time-main { font-size: 14px; font-weight: 800; line-height: 1.15; }
.bk-time-sub { font-size: 10px; font-weight: 700; opacity: 0.9; }
.bk-court-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.bk-court-option {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.bk-court-option.is-selected {
  border: 2.5px solid #16a34a;
  background: #f0fdf4;
}
.bk-price-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  text-align: center;
}
.bk-split-warn-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}
.coins-balance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  color: #065f46;
  margin-bottom: 12px;
}
.coins-balance-box.is-short {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.mp-mode-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mp-mode-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mp-mode-btn.is-active {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.14);
}
.mp-pay-method-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.mp-pay-pill {
  flex: 1 1 130px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  cursor: pointer;
  text-align: center;
}
.mp-pay-pill.is-active {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}
.mp-tx-summary {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 13px;
}
.mp-tx-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}
.mp-tx-row.is-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}
.mp-checkout-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.mp-checkout-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  gap: 10px;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.mp-checkout-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}
.mp-checkout-card.is-recommended {
  border-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
}
.mp-invite-alert-card {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.integration-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 12px;
  background: var(--surface, #ffffff);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.integration-tile:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.integration-tile-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.integration-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.integration-tile-title h4 {
  margin: 0;
  font-size: 0.98rem;
}
.integration-tile-title p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  line-height: 1.35;
}
.integration-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
