/*
 * ClothingHub design tokens + the few app-specific components. Everything else is plain Tabler (Bootstrap 5.3).
 * Rules: no inline <style> blocks in templates, no !important, colours only via the tokens below.
 */

:root {
  /* Brand from the ClothingHub logo (docs/brand): navy #012439 + teal #009393. The teal is darkened to #007f7e so
     white text on primary buttons keeps AA contrast. */
  --ch-brand: #007f7e;
  --ch-brand-rgb: 0, 127, 126;
  --ch-brand-dark: #012439;
  --ch-sidebar-bg: #011a2c;
  --ch-radius: 10px;

  --tblr-primary: var(--ch-brand);
  --tblr-primary-rgb: var(--ch-brand-rgb);
  --tblr-border-radius: var(--ch-radius);
  --tblr-font-sans-serif: "Inter Var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Role preview banner (amber, clearly not part of the normal page) */
  --ch-preview-bg: #fff4d6;
  --ch-preview-fg: #6b4a00;
  --ch-preview-border: #f1c24c;
}

[data-bs-theme="dark"] {
  --ch-brand: #1fb8b5;
  --ch-brand-rgb: 31, 184, 181;
  --tblr-primary: var(--ch-brand);
  --tblr-primary-rgb: var(--ch-brand-rgb);
  /* Bright teal needs dark text on primary buttons/badges (white on #1fb8b5 is below AA). */
  --tblr-primary-fg: #011a2c;
  --ch-preview-bg: #3a2c05;
  --ch-preview-fg: #ffd978;
  --ch-preview-border: #8a6a12;
}

[data-bs-theme="dark"] .btn-primary {
  --tblr-btn-variant-fg: #011a2c;
  --tblr-btn-color: #011a2c;
  --tblr-btn-hover-color: #011a2c;
  --tblr-btn-active-color: #011a2c;
}

/* ---------- Role preview ---------- */
.app-preview-bar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--ch-preview-bg);
  color: var(--ch-preview-fg);
  border-bottom: 2px solid var(--ch-preview-border);
}
.app-preview-hint {
  opacity: .85;
}
.app-preview-bar .form-select {
  min-width: 9rem;
}

/* Icon + text in buttons and dropdown items keep a gap (Tabler only spaces icons with class "icon"). */
.btn {
  gap: .4rem;
}
.btn > .ti {
  font-size: 1.15em;
}
.dropdown-item > .ti {
  margin-inline-end: .5rem;
  opacity: .8;
}

/* ---------- Logo (views/partials/logo.php): the variant that fits the surrounding theme ---------- */
.app-logo {
  height: var(--app-logo-h, 36px);
  width: auto;
  max-width: 100%;
}
.app-receipt-logo {
  height: 52px;
  width: auto;
}
.app-logo-dark {
  display: none;
}
[data-bs-theme="dark"] .app-logo-light {
  display: none;
}
[data-bs-theme="dark"] .app-logo-dark {
  display: inline-block;
}

/* ---------- Sidebar ---------- */
.app-sidebar {
  background: var(--ch-sidebar-bg);
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.app-sidebar .navbar-brand {
  padding: .35rem 0;
}
.app-sidebar .nav-section {
  padding: 1.1rem 1rem .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  list-style: none;
}
.app-sidebar .nav-item.active > .nav-link {
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
}
.app-sidebar .navbar-nav {
  padding-inline: .5rem;
}

/* ---------- Topbar ---------- */
.app-topbar {
  border-bottom: 1px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
}
[data-theme-toggle] {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
[data-bs-theme="dark"] .theme-icon-dark,
[data-bs-theme="light"] .theme-icon-light {
  display: none;
}
.app-notifications {
  width: 22rem;
  max-width: calc(100vw - 2rem);
}
.app-notifications .list-group {
  max-height: 22rem;
  overflow-y: auto;
}
.app-unread {
  border-left: 3px solid var(--ch-brand);
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Toasts ---------- */
.app-toasts {
  z-index: 1090;
}
.app-toast {
  background: var(--tblr-bg-surface);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15);
  border: 0;
  border-left: 4px solid var(--tblr-secondary);
}
.app-toast-success { border-left-color: var(--tblr-success); }
.app-toast-danger { border-left-color: var(--tblr-danger); }
.app-toast-warning { border-left-color: var(--tblr-warning); }
.app-toast-info { border-left-color: var(--tblr-info); }
.app-toast-success .ti { color: var(--tblr-success); }
.app-toast-danger .ti { color: var(--tblr-danger); }
.app-toast-warning .ti { color: var(--tblr-warning); }
.app-toast-info .ti { color: var(--tblr-info); }

/* ---------- Auth pages ---------- */
.app-auth {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(var(--ch-brand-rgb), .12), transparent 60%),
    var(--tblr-body-bg);
}
.app-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tblr-body-color);
  text-decoration: none;
}

/* ---------- Catalog ---------- */
.app-catalog-bar {
  border-bottom: 1px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
}
.app-product-img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--tblr-bg-surface-secondary);
  width: 100%;
  border-top-left-radius: var(--ch-radius);
  border-top-right-radius: var(--ch-radius);
}
.app-product-img-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--tblr-secondary);
  background: var(--tblr-bg-surface-secondary);
  border-top-left-radius: var(--ch-radius);
  border-top-right-radius: var(--ch-radius);
}

/* Size / colour pickers: radio inputs styled as pills */
.app-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.app-pill-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.app-pill-group label {
  min-width: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.app-pill-group input:checked + label {
  border-color: var(--ch-brand);
  background: rgba(var(--ch-brand-rgb), .1);
  color: var(--ch-brand);
  font-weight: 600;
}
.app-pill-group input:focus-visible + label {
  outline: 2px solid var(--ch-brand);
  outline-offset: 2px;
}
.app-pill-group input:disabled + label {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Budget bar */
.app-budget .progress {
  height: .5rem;
}

/* Sortable rows (stock order) */
.app-drag-handle {
  cursor: grab;
  color: var(--tblr-secondary);
}
.app-dragging {
  opacity: .5;
}

/* Tables: keep action buttons on one line */
.table .app-actions {
  white-space: nowrap;
  text-align: end;
}

/* =====================================================================================================================
   Look "Frisch & hell" (2026-11-04, owner's choice): soft shadows instead of frames, a light teal page header,
   a clearer sidebar, coloured KPI tiles and a shop-like catalog. Only tokens, works in light and dark mode.
   ===================================================================================================================== */
:root {
  --ch-page-bg: #f2f6f7;
  --ch-shadow: 0 1px 2px rgba(1, 36, 57, .05), 0 6px 20px rgba(1, 36, 57, .06);
  --ch-shadow-hover: 0 2px 4px rgba(1, 36, 57, .06), 0 14px 32px rgba(1, 36, 57, .11);
  --ch-card-radius: 14px;
  --ch-accent: #1fb8b5;
  --tblr-body-bg: var(--ch-page-bg);
}
[data-bs-theme="dark"] {
  --ch-page-bg: #0b141d;
  --ch-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
  --ch-shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 32px rgba(0, 0, 0, .35);
  --tblr-body-bg: var(--ch-page-bg);
}
body {
  background: var(--ch-page-bg);
}

/* Cards: no frame, soft shadow, rounder */
.card {
  --tblr-card-border-color: transparent;
  --tblr-card-border-radius: var(--ch-card-radius);
  --tblr-card-inner-border-radius: calc(var(--ch-card-radius) - 1px);
  box-shadow: var(--ch-shadow);
}
.card-header {
  border-bottom-color: var(--tblr-border-color-translucent);
}
.card-footer {
  background: transparent;
  border-top-color: var(--tblr-border-color-translucent);
}
.card-link,
.app-hover-lift {
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-link:hover,
.app-hover-lift:hover {
  box-shadow: var(--ch-shadow-hover);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .card-link:hover, .app-hover-lift:hover, .app-product-card:hover { transform: none; }
}

/* Page header: light teal band across the page */
.page-wrapper > .page-header {
  margin: 0;
  padding: 1.5rem 0 1.3rem;
  background:
    linear-gradient(115deg, rgba(var(--ch-brand-rgb), .14) 0%, rgba(var(--ch-brand-rgb), .05) 40%, transparent 75%),
    var(--tblr-bg-surface);
  border-bottom: 1px solid rgba(var(--ch-brand-rgb), .12);
}
.page-wrapper > .page-header + .page-body {
  margin-top: 1.5rem;
}
.page-pretitle {
  color: var(--ch-brand);
  font-weight: 600;
  letter-spacing: .06em;
}
.page-title {
  font-weight: 700;
}

/* Buttons and fields */
.btn-primary {
  box-shadow: 0 2px 8px rgba(var(--ch-brand-rgb), .25);
}
.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(var(--ch-brand-rgb), .33);
}
.btn:not(.btn-primary):not(.btn-link):not([class*="btn-ghost"]):not([class*="btn-outline"]) {
  box-shadow: 0 1px 2px rgba(1, 36, 57, .06);
}

/* Tables */
.card-table thead th,
.table thead th {
  background: var(--tblr-bg-surface-secondary);
  color: var(--tblr-secondary);
  letter-spacing: .05em;
}
.card-table tbody tr {
  transition: background-color .12s ease;
}
.card-table tbody tr:hover {
  background: rgba(var(--ch-brand-rgb), .035);
}

/* Topbar: shadow line instead of a hard border */
.app-topbar {
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(1, 36, 57, .07);
}
/* Unread counter sits on the bell instead of above the bar (Tabler pins top/inset with !important, so shift it) */
.app-topbar .badge-notification {
  transform: translate(-.15rem, .45rem);
  min-width: 1.1rem;
  font-size: .65rem;
}

/* Sidebar: soft pills, teal accent on the active page */
.app-sidebar .navbar-nav .nav-link {
  border-radius: 10px;
  margin-block: 1px;
  color: rgba(255, 255, 255, .78);
  transition: background-color .15s ease, color .15s ease;
}
.app-sidebar .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.app-sidebar .nav-link-icon {
  color: rgba(95, 211, 207, .85);
}
.app-sidebar .nav-item.active > .nav-link {
  background: linear-gradient(90deg, rgba(31, 184, 181, .26), rgba(31, 184, 181, .08));
  box-shadow: inset 3px 0 0 var(--ch-accent);
  color: #fff;
}
.app-sidebar .nav-item.active .nav-link-icon {
  color: #fff;
}

/* Dashboard KPI tiles: colour accent per tile */
.app-kpi {
  position: relative;
  overflow: hidden;
}
/* 2026-11-05: a soft glow in the tile colour instead of the hard stripe on the left */
.app-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px 120px at 100% 0%, rgba(var(--app-kpi-rgb, var(--ch-brand-rgb)), .16), transparent 70%);
}
.app-kpi .avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 1.35rem;
}
.app-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.app-kpi-orange { --app-kpi-rgb: var(--tblr-orange-rgb); }
.app-kpi-blue { --app-kpi-rgb: var(--tblr-blue-rgb); }
.app-kpi-green { --app-kpi-rgb: var(--tblr-green-rgb); }
.app-kpi-teal { --app-kpi-rgb: var(--tblr-teal-rgb); }
.app-kpi-purple { --app-kpi-rgb: var(--tblr-purple-rgb); }

/* Catalog: shop look */
.app-catalog-bar {
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(1, 36, 57, .07);
}
.app-catalog-hero {
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  color: #fff;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(31, 184, 181, .55), transparent 65%),
    linear-gradient(120deg, #012439 0%, #01404f 55%, #007f7e 100%);
  box-shadow: var(--ch-shadow);
}
.app-hero-kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.app-hero-title {
  margin: .15rem 0 .25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.app-hero-sub {
  color: rgba(255, 255, 255, .78);
  font-size: .875rem;
}
.app-hero-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.app-catalog-hero .progress {
  height: .55rem;
  background: rgba(255, 255, 255, .2);
}
.app-catalog-hero .alert {
  margin: 0;
}
.app-chip-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .15rem .1rem .45rem;
  scrollbar-width: thin;
}
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--tblr-bg-surface);
  box-shadow: var(--ch-shadow);
  color: var(--tblr-body-color);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.app-chip:hover {
  color: var(--ch-brand);
  text-decoration: none;
}
.app-chip.active {
  background: var(--ch-brand);
  color: var(--tblr-primary-fg, #fff);
}
.app-product-card {
  transition: box-shadow .2s ease, transform .2s ease;
}
.app-product-card:hover {
  box-shadow: var(--ch-shadow-hover);
  transform: translateY(-3px);
}
.app-product-card .app-product-img,
.app-product-card .app-product-img-placeholder {
  background: linear-gradient(180deg, rgba(var(--ch-brand-rgb), .07), rgba(var(--ch-brand-rgb), .02));
}
.app-product-price {
  color: var(--ch-brand);
  font-weight: 700;
  font-size: 1.15rem;
}
.app-product-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(var(--ch-brand-rgb), .1);
  color: var(--ch-brand);
  transition: background-color .15s ease, color .15s ease;
}
.app-product-card:hover .app-product-go {
  background: var(--ch-brand);
  color: var(--tblr-primary-fg, #fff);
}

/* ---------- Inventory on the tablet (2026-11-04) ---------- */
.app-inv-bar {
  position: sticky;
  top: .5rem;
  z-index: 1010;
}
.app-inv-size {
  min-width: 3.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.app-inv-input {
  width: 11rem;
  flex: 0 0 auto;
}
.app-inv-input .form-control {
  font-size: 1.15rem;
  font-weight: 600;
}
.app-inv-input .btn {
  min-width: 2.75rem;
}
.app-inv-state {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
}
.app-inv-row[data-state="ok"] {
  background: rgba(var(--tblr-green-rgb), .07);
}
.app-inv-row[data-state="ok"] .app-inv-state {
  color: var(--tblr-green);
}
.app-inv-row[data-state="diff"] {
  background: rgba(var(--tblr-orange-rgb), .09);
}
.app-inv-row[data-state="diff"] .app-inv-state {
  color: var(--tblr-orange);
}
.app-inv-row[data-state="error"] .app-inv-state {
  color: var(--tblr-red);
}
/* Blind count: neither the expected stock nor the colour of the result gives it away */
.app-inv-blind .app-inv-expected,
.app-inv-blind .app-inv-state {
  visibility: hidden;
}
.app-inv-blind .app-inv-row[data-state] {
  background: transparent;
}
/* Stock movements (2026-11-04): filled lines green, impossible quantities red */
.app-move .app-inv-row[data-state="error"] {
  background: rgba(var(--tblr-red-rgb), .07);
}
/* Narrow count inputs: no spinner arrows and no validation icon squeezing the number */
.app-inv-input .form-control {
  -moz-appearance: textfield;
  appearance: textfield;
}
.app-inv-input .form-control::-webkit-inner-spin-button,
.app-inv-input .form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.app-inv-input .form-control.is-invalid {
  background-image: none;
  padding-right: var(--tblr-input-padding-x, .75rem);
}
.app-move-price {
  width: 8.5rem;
  flex: 0 0 auto;
}

/* =====================================================================================================================
   Design refresh (2026-11-05, owner: "das sieht so lieblos aus"). Dark mode used Tabler's neutral greys for cards and
   the top bar next to the navy sidebar and page: three colour worlds. Everything now sits on one navy scale with teal
   as the only accent. Light mode keeps its colours; the components below work in both.
   ===================================================================================================================== */
[data-bs-theme="dark"] {
  --tblr-gray-950: #070e15;
  --tblr-gray-900: #0e1822;
  --tblr-gray-800: #121e2a;
  --tblr-gray-700: #1f2e3d;
  --tblr-bg-surface: #121e2a;
  --tblr-bg-surface-secondary: #0f1a25;
  --tblr-bg-surface-tertiary: #172433;
  --tblr-bg-surface-dark: #0e1822;
  --tblr-bg-forms: #0d1720;
  --tblr-border-color: #213142;
  --tblr-border-color-translucent: rgba(148, 178, 208, .12);
  --tblr-card-bg: #121e2a;
}
.min-w-0 {
  min-width: 0;
}
/* Visually hidden table headers are absolutely positioned; without a positioned scroll box they widened the whole
   page on phones (horizontal page scroll). */
.table-responsive {
  position: relative;
}

/* Page header: icon tile, title, one line of key figures */
.page-wrapper > .page-header {
  padding: 1.6rem 0 1.4rem;
  background:
    radial-gradient(700px 180px at 0% 0%, rgba(var(--ch-brand-rgb), .16), transparent 70%),
    linear-gradient(180deg, rgba(var(--ch-brand-rgb), .05), transparent),
    var(--ch-page-bg);
  border-bottom: 1px solid var(--tblr-border-color-translucent);
}
.app-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--ch-brand);
  background: rgba(var(--ch-brand-rgb), .14);
  box-shadow: inset 0 0 0 1px rgba(var(--ch-brand-rgb), .22);
}
.page-wrapper > .page-header .page-title {
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.app-page-subtitle {
  margin-top: .2rem;
  color: var(--tblr-secondary);
  font-size: .875rem;
}
/* Top bar melts into the page instead of being a grey strip */
.app-topbar {
  background: var(--ch-page-bg);
  box-shadow: none;
}

/* Sidebar: foldable sections */
.app-sidebar .nav-section {
  padding: .9rem .5rem .2rem;
}
.app-nav-fold {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .3rem .5rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.app-nav-fold:hover {
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .04);
}
.app-nav-chevron {
  margin-inline-start: auto;
  font-size: .9rem;
  transition: transform .15s ease;
}
.app-nav-fold[aria-expanded="false"] .app-nav-chevron {
  transform: rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) {
  .app-nav-chevron { transition: none; }
}

/* Numbers line up in tables and tiles */
.table,
.app-kpi-value,
.app-size,
.app-low-qty {
  font-variant-numeric: tabular-nums;
}

/* Dashboard */
.app-kpi-hint {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .35rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--tblr-secondary);
}
.app-kpi-hint-up { color: var(--tblr-green); }
.app-kpi-hint-warn { color: var(--tblr-orange); }
.app-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: .75rem;
}
.app-quick-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .9rem;
  border-radius: var(--ch-card-radius);
  background: var(--tblr-bg-surface);
  box-shadow: var(--ch-shadow);
  color: var(--tblr-body-color);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, color .15s ease;
}
.app-quick-item:hover {
  color: var(--ch-brand);
  text-decoration: none;
  box-shadow: var(--ch-shadow-hover);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .app-quick-item:hover { transform: none; }
}
.app-chart-label {
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tblr-secondary);
}
.app-low-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
  font-weight: 600;
}
.app-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
}
.app-dot-red { background: var(--tblr-red); }
.app-dot-orange { background: var(--tblr-orange); }
.app-low-chip {
  display: inline-block;
  max-width: 100%;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-low-more {
  color: var(--ch-brand);
  text-decoration: none;
}
.app-low-list .list-group-item {
  background: transparent;
}
.app-low-qty {
  font-weight: 600;
  color: var(--tblr-orange);
  white-space: nowrap;
}

/* Stock list: product picture + calm size chips */
.app-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--ch-brand-rgb), .12), rgba(var(--ch-brand-rgb), .04));
}
.app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.app-thumb-empty {
  font-size: 1.3rem;
  color: var(--ch-brand);
}
.app-size {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .12rem .45rem;
  border-radius: 6px;
  font-size: .75rem;
  white-space: nowrap;
  color: var(--tblr-secondary);
  background: var(--tblr-bg-surface-tertiary);
}
.app-size b {
  color: var(--tblr-body-color);
  font-weight: 700;
}
.app-size-low {
  color: var(--tblr-orange);
  background: rgba(var(--tblr-orange-rgb), .12);
}
.app-size-low b {
  color: var(--tblr-orange);
}
.app-size-empty {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--tblr-border-color-translucent);
  opacity: .55;
}
.app-size-empty b {
  color: var(--tblr-secondary);
  font-weight: 500;
}

/* Empty states: icon on a soft teal disc */
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: var(--ch-brand);
  background: rgba(var(--ch-brand-rgb), .1);
}
.empty-icon .ti {
  font-size: 1.75rem;
}

/* Login and the other auth pages: branded backdrop */
.app-auth {
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(31, 184, 181, .28), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(0, 127, 126, .22), transparent 60%),
    linear-gradient(160deg, #011a2c 0%, #012439 55%, #01303f 100%);
}
.app-auth .card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.app-auth-tagline {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}
.app-auth-foot {
  color: rgba(255, 255, 255, .78);
}
.app-auth-foot a {
  color: #5fd3cf;
  font-weight: 600;
}

/* ---------- Print (receipts) ---------- */
.app-print {
  background: #fff;
}
@media print {
  .app-print .container {
    max-width: none;
    padding: 0;
  }
  .card {
    box-shadow: none;
    border: 0;
  }
}
