:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --ink: #111111;
  --yellow: #f5c400;
  --yellow-hi: #ffd34d;
  --yellow-soft: #fff6d6;
  --line: #e6e8ec;
  --line-strong: #d3d6dc;
  --text: #141414;
  --text-dim: #5c636b;
  --text-faint: #8a9199;
  --danger: #c2473a;
  --ok: #1f8a5b;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --max: 1180px;
  --radius: 22px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-homescreen,
html.is-homescreen body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Cairo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

html[lang="ar"],
html.is-ar,
html[lang="ar"] body,
html.is-ar body {
  font-family: "Cairo", "Manrope", sans-serif;
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b38600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}

h1,
h2,
.display {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .display {
  font-family: "Montserrat", "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

html[lang="en"] h1,
html[lang="en"] .display {
  font-weight: 800;
}

html[lang="en"] h2,
html[lang="en"] h3 {
  font-weight: 700;
}

h1,
.display {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  margin: 12px 0 18px;
}

.lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 42rem;
}

.muted {
  color: var(--text-dim);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand img,
.brand-wordmark {
  height: 52px;
  width: auto;
}

.brand-admin {
  height: 52px;
  width: auto;
}

.admin-desk-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.admin-desk-hero .lead {
  margin-bottom: 0;
}

.admin-desk-qr {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.admin-desk-qr img {
  width: 150px;
  height: 150px;
  max-width: none;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-current {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-tabs {
  display: none;
}

.nav-account {
  position: relative;
}

.nav-account-btn {
  max-width: 14rem;
  cursor: pointer;
  list-style: none;
}

.nav-account-btn::-webkit-details-marker {
  display: none;
}

.nav-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid currentColor;
  flex: 0 0 auto;
}

.nav-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 80;
  min-width: 12.5rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-account[open] .nav-account-menu {
  display: flex;
  flex-direction: column;
}

.nav-account-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-account-menu a:hover,
.nav-account-menu a:focus-visible,
.nav-account-menu a.is-current {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-person-btn > .nav-ico {
  width: 22px;
  height: 22px;
}

.header-prefs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-person {
  display: none;
}

.nav-person-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}

.nav-person-btn::-webkit-details-marker {
  display: none;
}

.nav-person-btn::after {
  display: none;
}

.nav-person-btn > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-order-hint {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-order-hint svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nav-account-btn.is-order-hint > .nav-ico,
.nav-account-btn.is-order-hint .nav-account-name {
  display: none;
}

.nav-account-btn.is-order-hint .nav-order-hint {
  display: inline-flex;
}

.nav-person-btn .nav-order-hint {
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-person-btn.is-order-hint {
  width: auto;
  padding: 0 12px;
  background: var(--yellow);
  border-color: var(--yellow);
}

.nav-person-btn.is-order-hint > svg {
  display: none;
}

.nav-person-btn.is-order-hint .nav-order-hint {
  display: inline-flex;
}

.nav-person[open] .nav-person-btn {
  background: var(--yellow);
  border-color: var(--yellow);
}

.nav-person-shop {
  margin: 0;
  padding: 8px 12px 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-person-prefs {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 8px 8px;
  border-top: 1px solid var(--line);
}

.nav-person-prefs p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-person-prefs .lang-toggle,
.nav-person-prefs .currency-toggle {
  width: 100%;
}

.nav-person-prefs .lang-toggle button,
.nav-person-prefs .lang-toggle a {
  flex: 1;
}

.nav-auth {
  display: none;
}

.lang-toggle button img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.lang-toggle button.is-active img,
.lang-toggle button:hover img,
.lang-toggle button:focus-visible img {
  opacity: 1;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-toggle button,
.lang-toggle a {
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  white-space: nowrap;
}

.lang-toggle button.is-active,
.lang-toggle a.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(245, 196, 0, 0.28);
}

.btn-gold:hover {
  background: var(--yellow-hi);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  place-items: center;
  background: #fff;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.hero {
  position: relative;
  padding: 54px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 196, 0, 0.22), transparent 32%),
    linear-gradient(180deg, #fffdf4 0%, #ffffff 70%);
}

body.is-shop .hero {
  padding: 16px 0 12px;
}

body.is-shop .hero-grid {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
}

body.is-shop .hero-copy .lead,
body.is-shop .hero-stats {
  display: none;
}

body.is-shop .hero-actions {
  margin: 12px 0 0;
}

body.is-shop .hero-visual {
  min-height: 148px;
}

body.is-shop .hero-offer {
  inset-inline-start: 8px;
  bottom: 8px;
  padding: 6px 8px;
}

body.is-shop .catalog-hero {
  aspect-ratio: auto;
  height: 120px;
}

body.is-shop .catalog-hero-copy {
  padding: 12px 20px;
}

body.is-shop .catalog-hero-copy h1 {
  font-size: 1.25rem;
}

body.is-shop .catalog-hero-copy .lead {
  margin-top: 2px;
  font-size: 0.85rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-startup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 22px 32px;
  margin-top: 32px;
  padding: 26px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 196, 0, 0.45), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(176, 32, 40, 0.45), transparent 42%),
    linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 56px rgba(17, 17, 17, 0.22);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-startup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-startup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 999px;
  background: rgba(245, 196, 0, 0.12);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-startup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.7);
  animation: heroStartupPulse 2s ease-out infinite;
}

@keyframes heroStartupPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 196, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 196, 0, 0); }
}

.hero-startup h2 {
  margin: 0 0 8px;
  max-width: 24ch;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-startup-lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.hero-startup-packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-startup-pack {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.hero-startup-pack h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.95rem;
}

.hero-startup-pack h3 svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 9px;
  background: var(--yellow);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-startup-pack ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-startup-pack li {
  position: relative;
  padding-inline-start: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero-startup-pack li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.28em;
  width: 12px;
  height: 7px;
  border-inline-start: 2.5px solid var(--yellow);
  border-bottom: 2.5px solid var(--yellow);
  transform: rotate(-45deg);
}

html[dir="rtl"] .hero-startup-pack li::before {
  transform: rotate(45deg) scaleX(-1);
}

.hero-startup-price {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--yellow-hi) 0%, var(--yellow) 100%);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(245, 196, 0, 0.28);
  text-align: center;
}

.hero-startup-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: #b02028;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(176, 32, 40, 0.4);
}

.hero-startup-from {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero-startup-price b {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-startup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-startup-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

html[dir="rtl"] .hero-startup-arrow {
  transform: scaleX(-1);
}

.hero-startup:hover,
.hero-startup:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 30px 64px rgba(17, 17, 17, 0.28);
}

.hero-startup:hover .hero-startup-arrow,
.hero-startup:focus-visible .hero-startup-arrow {
  transform: translateX(4px);
}

html[dir="rtl"] .hero-startup:hover .hero-startup-arrow,
html[dir="rtl"] .hero-startup:focus-visible .hero-startup-arrow {
  transform: scaleX(-1) translateX(4px);
}

@media (max-width: 640px) {
  .hero-startup-packs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-startup,
  .hero-startup-arrow,
  .hero-startup-dot {
    animation: none;
    transition: none;
  }
}

.stat {
  padding: 14px 0 0;
  border-top: 2px solid var(--yellow);
}

.stat b {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
}

.stat span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #111;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.55s ease, transform 7s ease;
}

.hero-promo {
  position: absolute;
  inset: 0;
}

.hero-promo-media {
  display: block;
}

.hero-promo-media img.is-swap {
  opacity: 0;
  transform: scale(1.04);
}

@keyframes heroPromoZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-promo-media img {
  animation: heroPromoZoom 8s ease forwards;
}

.hero-offer {
  position: absolute;
  z-index: 2;
  inset-inline-start: 8%;
  bottom: 14%;
  margin: 0;
  padding: 14px 18px 12px;
  max-width: min(78%, 280px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform: rotate(-10deg);
  transform-origin: center center;
  pointer-events: none;
  text-align: center;
}

.hero-offer-label {
  display: block;
  color: #b38600;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1.8vw, 0.98rem);
  line-height: 1.1;
}

.hero-offer-price {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-offer-price[hidden] {
  display: none;
}

.hero-mark {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 92px;
  height: 92px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 3;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-card {
  position: absolute;
  inset-inline-start: 0;
  bottom: 36px;
  width: min(300px, 80%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-card small {
  color: #b38600;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.hero-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.25;
}

.hero-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.marquee-wrap {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 18px 0;
}

.marquee {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 32s linear infinite;
}

.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

.marquee a {
  color: var(--text-faint);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  white-space: nowrap;
}

.marquee a:hover,
.marquee a:focus-visible {
  color: var(--ink);
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

html[dir="rtl"] .marquee {
  animation-direction: reverse;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
  min-width: 0;
}

.section-head > * {
  min-width: 0;
  max-width: 100%;
}

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

.cat {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  background: #111;
}

.cat.is-logo img {
  object-fit: contain;
  padding: 18%;
  background: #111;
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cat:hover img {
  transform: scale(1.06);
}

.cat-body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cat-body h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #fff;
}

.cat-body p {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
}

.spotlight {
  background: var(--bg-soft);
}

.spot-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.spot-photos {
  display: grid;
  gap: 16px;
}

.delivery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 12px;
}

.delivery-pair h3 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
}

.delivery-pair p {
  margin: 0;
  color: var(--text-dim);
}

.delivery-pair .kicker {
  margin-top: 18px;
}

.catalog-hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1536 / 490;
}

.catalog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-hero-copy {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.72) 55%, rgba(8, 8, 8, 0.88) 100%);
  color: #fff;
}

.catalog-hero-copy .kicker {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.catalog-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  max-width: 18ch;
}

.catalog-hero-copy .lead {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.legal-wrap {
  max-width: 720px;
}

.legal-block {
  margin-top: 28px;
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.legal-block p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}

html[lang="ar"] .legal-block h2,
html.is-ar .legal-block h2,
html[lang="ar"] .legal-block p,
html.is-ar .legal-block p {
  line-height: 1.75;
}

.catalog-section {
  padding-top: 28px;
}

body.is-catalog {
  --max: 1480px;
}

.catalog-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 28px 36px;
}

.catalog-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - var(--header-h) - 28px);
  overflow: auto;
  padding: 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.catalog-clear {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.catalog-clear svg {
  flex: none;
}

.catalog-clear:hover,
.catalog-clear:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.catalog-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0;
}

.catalog-nav-link.catalog-brand-check {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.catalog-brand-check span {
  min-width: 0;
}

.catalog-brand-check input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.catalog-brand-check input:checked {
  border-color: var(--ink);
  background: var(--ink);
}

.catalog-brand-check input:checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
}

.catalog-brand-check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.catalog-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.catalog-nav-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.catalog-nav-link {
  display: block;
  padding: 4px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

.catalog-nav-link:hover,
.catalog-nav-link:focus-visible {
  background: var(--bg-soft);
  color: var(--ink);
}

.catalog-nav-link.is-on {
  background: var(--yellow);
  color: var(--ink);
}

.catalog-brand-check.is-on {
  background: var(--yellow-soft);
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.catalog-toolbar .catalog-search {
  width: 100%;
}

html[lang="ar"] .catalog-hero-copy h1,
html.is-ar .catalog-hero-copy h1 {
  max-width: none;
}

@media (max-width: 700px) {
  .catalog-hero {
    aspect-ratio: 16 / 9;
  }

  .catalog-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-side,
  body.is-catalog .catalog-nav {
    display: none;
  }

  .catalog-toolbar {
    justify-content: stretch;
  }

  .catalog-toolbar .catalog-search {
    width: 100%;
  }
}

/* Public catalog search: always one row, icon button */
.catalog-search.catalog-search-row {
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.catalog-search-row .field {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-search-row .field input {
  width: 100%;
  min-height: 46px;
}

.catalog-search-row .catalog-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: auto;
  min-height: 46px;
  align-self: stretch;
  padding: 0;
  margin: 0;
  border-radius: 12px;
}

/* Catalog: grid / list view */
.catalog-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.catalog-count {
  margin: 0;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.9rem;
}

.view-toggle {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.view-toggle button.is-on {
  background: var(--yellow);
  color: var(--ink);
}

.view-toggle-mobile {
  display: none;
}

body.is-catalog .product-grid {
  gap: 28px;
}

body.is-catalog .product-grid.is-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.is-catalog .product-grid.is-list .product-card {
  display: flex;
  align-items: stretch;
}

body.is-catalog .product-grid.is-list .product-photo {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
}

body.is-catalog .product-grid.is-list .product-photo img {
  height: 100%;
}

body.is-catalog .product-grid.is-list .product-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}

body.is-catalog .product-grid.is-list .product-meta h3 {
  margin-bottom: 6px;
}

body.is-catalog .product-grid.is-list .product-color {
  margin-bottom: 8px;
}

body.is-catalog .product-grid.is-list .product-row {
  align-items: center;
}

@media (max-width: 700px) {
  .catalog-viewbar {
    display: none;
  }

  .view-toggle-mobile {
    display: inline-flex;
  }

  .view-toggle button {
    width: 40px;
    height: 44px;
  }

  .catalog-mobilebar .view-toggle-mobile {
    height: 44px;
  }

  body.is-catalog .product-grid.is-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.is-catalog .product-grid.is-list .product-photo {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
  }

  body.is-catalog .product-grid.is-list .product-meta {
    padding: 10px 12px;
  }

  body.is-catalog .product-grid.is-list .product-meta h3 {
    font-size: 0.9rem;
  }
}

/* Small screens: clear hover / press colours on catalog buttons */
@media (max-width: 700px) {
  .catalog-filter-btn,
  .view-toggle button,
  .btn-tiny,
  .filter-sheet-foot .btn:not(.btn-gold),
  .filter-sheet-close,
  .catalog-chip,
  .fchip span {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .catalog-search-row .catalog-search-btn,
  .filter-sheet-foot .btn-gold {
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  /* touch: pressed state */
  .catalog-filter-btn:active,
  .btn-tiny:active,
  .filter-sheet-foot .btn:not(.btn-gold):active,
  .filter-sheet-close:active,
  .view-toggle button:not(.is-on):active,
  .catalog-chip:active,
  .fchip:active input:not(:checked) + span {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
  }

  .catalog-search-row .catalog-search-btn:active,
  .filter-sheet-foot .btn-gold:active {
    background: var(--ink);
    color: var(--yellow);
  }
}

/* mouse / devices that really hover (avoids a stuck hover colour after a tap) */
@media (max-width: 700px) and (hover: hover) {
  .catalog-filter-btn:hover,
  .btn-tiny:hover,
  .filter-sheet-foot .btn:not(.btn-gold):hover,
  .filter-sheet-close:hover,
  .view-toggle button:not(.is-on):hover,
  .catalog-chip:hover,
  .fchip:hover input:not(:checked) + span {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
  }

  .catalog-search-row .catalog-search-btn:hover,
  .filter-sheet-foot .btn-gold:hover {
    background: var(--ink);
    color: var(--yellow);
  }
}

/* Catalog: filter / sort for small screens */
.catalog-mobilebar,
.catalog-active,
.filter-sheet {
  display: none;
}

.catalog-active {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-chip i {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.catalog-chip-clear {
  border-color: var(--line);
  background: transparent;
  color: var(--text-dim);
}

.filter-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 88vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -12px 40px rgba(17, 17, 17, 0.25);
  overflow: hidden;
}

.filter-sheet::backdrop {
  background: rgba(17, 17, 17, 0.5);
}

.filter-sheet[open] {
  display: block;
  animation: filter-sheet-in 0.22s ease-out;
}

@keyframes filter-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

html.sheet-open {
  overflow: hidden;
}

.filter-sheet-form {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.filter-sheet-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.filter-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 18px 12px;
  -webkit-overflow-scrolling: touch;
}

.filter-group {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.filter-group legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-dim);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fchip {
  position: relative;
  cursor: pointer;
}

.fchip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fchip span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.fchip input:checked + span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.fchip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.filter-sheet-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 700px) {
  body.is-catalog .catalog-side,
  body.is-catalog .catalog-nav {
    display: none;
  }

  .catalog-mobilebar {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
  }

  .catalog-active {
    display: flex;
  }

  .catalog-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
  }

  .catalog-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 0.74rem;
  }

  .catalog-sort {
    flex: 1;
    min-width: 0;
  }

  .catalog-sort select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: var(--text);
  }
}

.catalog-hero + .section {
  padding-top: 28px;
}

.contact-photo {
  margin: 0 0 16px;
}

.spot-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 3 / 2;
}

.spot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(245, 196, 0, 0.18);
  flex: none;
}

.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.tile.wide {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.18), rgba(17, 17, 17, 0.72)),
    url("../img/ads/ali-cell-warehouse.webp") center/cover;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
}

.tile.wide h3,
.tile.wide p,
.tile.wide .num {
  color: #fff;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.tile p {
  margin: 0;
  color: var(--text-dim);
}

.tile .num {
  font-size: 2rem;
  color: #b38600;
  display: block;
  margin-bottom: 10px;
}

html[lang="en"] .tile .num {
  font-family: "Montserrat", "Manrope", sans-serif;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.step em {
  font-style: normal;
  color: #b38600;
  font-size: 1.8rem;
}

html[lang="en"] .step em {
  font-family: "Montserrat", "Manrope", sans-serif;
  font-weight: 800;
}

.step h3 {
  margin: 16px 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-dim);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.92rem;
}

.cta-band {
  background: var(--yellow);
}

.cta-band .kicker,
.cta-band .kicker::before,
.cta-band h2 {
  color: var(--ink);
}

.cta-band .btn-gold {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.cta-band .btn-gold:hover {
  background: #2a2a2a;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.contact-card,
.form {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow-x: clip;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.contact-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-list span {
  display: block;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-wa {
  margin: 18px 0 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

.field input[type="radio"],
.field input[type="checkbox"] {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Login / register values stay LTR even on Arabic pages */
.auth-form .field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.auth-form .field select,
.auth-form .field textarea {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* Names may be Arabic or English — center so either script reads evenly */
.auth-form .field:has(input[name="business"]) input,
.auth-form .field:has(input[name="contact_name"]) input {
  direction: auto;
  text-align: center;
  unicode-bidi: plaintext;
}

/* Password show / hide */
.pw-wrap {
  position: relative;
  display: block;
}

.pw-wrap input {
  width: 100%;
  padding-right: 46px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle[aria-pressed="true"] {
  color: var(--text);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--yellow);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Clip in-place — off-screen left/right expands the page width in RTL */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.check.full {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--yellow);
}

.field-choice {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field-choice legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dim);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.choice {
  gap: 9px;
}

.choice .flag {
  display: block;
  flex: none;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  border-color: var(--yellow);
  background: var(--yellow-soft);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.auth-recover {
  margin: 14px 0 0;
  text-align: center;
}

.auth-recover a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-register {
  margin-top: 22px;
  padding: 18px 18px 20px;
  border: 1px solid var(--yellow);
  border-radius: 18px;
  background: var(--yellow-soft);
  text-align: center;
}

.login-register .muted {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

.login-register .btn {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
}

.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--danger); }

.footer {
  padding: 42px 0 28px;
  border-top: 0;
  color: #b8b8b8;
  background: #111111;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-brand img {
  height: 72px;
  width: auto;
}

.footer-about p {
  margin: 12px 0 0;
  max-width: 30ch;
  font-size: 0.92rem;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: 0.92rem;
}

.footer-col li span {
  display: block;
  color: #7d7d7d;
  font-size: 0.74rem;
  font-weight: 700;
}

.footer-col a,
.footer-col address {
  color: #fff;
}

.footer-col address {
  display: grid;
  gap: 2px;
  font-size: 0.92rem;
  font-style: normal;
}

.footer-map {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin: 10px 0 0;
  color: #9a9a9a;
  font-size: 0.84rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  color: #8a8a8a;
  font-size: 0.82rem;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-hours-line {
  display: block;
}

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

.footer a:hover,
.footer a:focus-visible {
  color: var(--yellow);
}

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

  .cat {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .cats {
    gap: 10px;
  }

  .cat {
    min-height: 160px;
    border-radius: 18px;
  }

  .cat-body {
    padding: 14px;
  }

  .cat-body h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .spot-grid,
  .delivery-pair,
  .contact-grid,
  .steps,
  .bento {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-startup {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 18px 22px;
    border-radius: 24px;
  }

  .hero-startup-price {
    padding-top: 24px;
  }

  body.is-shop .hero-grid {
    grid-template-columns: 1fr;
  }

  body.is-shop .hero-visual {
    min-height: 140px;
  }

  .hero-frame {
    inset: 0;
  }

  .hero-offer {
    inset-inline-start: 6%;
    bottom: 12%;
    padding: 12px 14px 10px;
  }

  .nav,
  .header .btn-gold:not(.nav-account-btn),
  .header-auth,
  html:not(.admin) .menu-btn,
  html:not(.admin) .header-prefs,
  html:not(.admin) .nav-account-wide {
    display: none;
  }

  html:not(.admin) .nav-person {
    display: block;
  }

  html:not(.admin) {
    --header-h: 62px;
    overscroll-behavior-y: contain;
  }

  html:not(.admin) body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  html:not(.admin) .header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  html:not(.admin) .header-inner {
    width: min(var(--max), calc(100% - 24px));
    gap: 10px;
  }

  html:not(.admin) input,
  html:not(.admin) select,
  html:not(.admin) textarea {
    font-size: 16px;
  }

  .app-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .app-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .app-tabs a.is-current {
    color: var(--ink);
  }

  /* active tab: yellow pill behind the icon, bolder label */
  .app-tabs a.is-current svg {
    background: var(--yellow);
    stroke: var(--ink);
    stroke-width: 2;
    box-shadow: 0 3px 10px rgba(245, 196, 0, 0.4);
  }

  .app-tabs a.is-current span,
  .app-tabs a.is-current b {
    font-weight: 900;
    color: var(--ink);
  }

  .app-tabs a:active svg {
    transform: scale(0.92);
  }

  .app-tabs svg {
    box-sizing: content-box;
    width: 22px;
    padding: 5px 16px;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-tabs a {
    position: relative;
  }

  /* order-count badge sits on the icon instead of wrapping under the label */
  .app-tabs a b {
    position: absolute;
    top: 0;
    inset-inline-start: calc(50% + 6px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
  }

  .app-tabs a.is-current b {
    color: #fff;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 22px 22px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav-auth {
    display: inline;
  }

  .cta-inner,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .tile.wide {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brand img,
  .brand-wordmark {
    height: 42px;
  }

  .brand-admin {
    height: 42px;
  }
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
  min-width: 0;
}

.product-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.product-meta {
  padding: 14px 16px 16px;
  min-width: 0;
}

.product-cat {
  display: block;
  color: #b38600;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-meta h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: -2px 0 8px;
}

.product-brand {
  color: #c2473a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-model {
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 300;
}

.color-swatch,
.admin-color-swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  color: var(--text-dim);
  white-space: nowrap;
}

.color-swatch i,
.admin-color-swatch i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  flex: 0 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product-color {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.product-row-alone {
  justify-content: flex-end;
}

.product-price-block {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.price-note {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.product-row .price-note {
  margin: 0;
}

.product-price-block .price-retail-rec {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: none;
}

.product-price-block .price-soon {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dim);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-price.price-soon {
  font-size: 1.15rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.btn-tiny {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.filter-row,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.catalog-results {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.pager {
  margin: 32px 0 0;
}

.pill.is-on {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.catalog-search {
  display: flex;
  gap: 10px;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}

.catalog-search .field {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.product-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.product-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.product-stage img.is-incoming {
  opacity: 0;
  transform: scale(1.04);
}

.product-stage img.is-incoming.is-shown {
  opacity: 1;
  transform: scale(1);
}

.product-stage img.is-outgoing {
  opacity: 0;
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .product-stage img,
  .photo-lightbox img {
    transition: none;
  }
}

.product-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.product-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  scroll-snap-align: start;
}

.product-thumb.is-on {
  border-color: var(--yellow);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-lightbox {
  position: fixed;
  width: max-content;
  height: max-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
}

.photo-lightbox::backdrop {
  background: rgba(10, 10, 10, 0.78);
}

.photo-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  object-fit: contain;
  background: #111;
  transition: opacity 0.22s ease;
}

.photo-lightbox img.is-fading {
  opacity: 0;
}

.photo-lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  padding: 0 48px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.photo-lightbox-close {
  top: 10px;
  inset-inline-end: 10px;
  font-size: 1.6rem;
}

.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox-prev {
  inset-inline-start: 10px;
}

.photo-lightbox-next {
  inset-inline-end: 10px;
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover,
.photo-lightbox-close:focus-visible,
.photo-lightbox-nav:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.product-sku {
  margin: -6px 0 14px;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-stock-state {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-stock-state.is-in {
  background: #e7f6ec;
  color: #14753a;
}

.product-stock-state.is-out {
  background: #fdecee;
  color: #b02028;
}

.product-meta.has-added {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.92fr);
  gap: 16px 22px;
  align-items: center;
  margin: 0 0 16px;
}

.product-meta.has-added .product-stock-state,
.product-meta.has-added .product-specs,
.product-meta.has-added .color-options {
  margin-bottom: 10px;
}

.product-meta.has-added .color-options:last-child,
.product-meta.has-added .product-specs:last-child,
.product-meta.has-added .product-stock-state:last-child {
  margin-bottom: 0;
}

.product-meta.has-added .order-added {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid #b7e4c7;
  border-radius: 18px;
  background: #e7f6ec;
}

.product-meta.has-added .order-added .form-note {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
}

.product-meta.has-added .order-added .btn {
  min-height: 56px;
  padding: 0 22px;
  font-size: 1.12rem;
}

.product-specs {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}

.product-specs > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.product-specs dt {
  margin: 0;
  min-width: 4.5rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-specs dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.price-retail-rec {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 700;
}

.price-retail-rec strong {
  color: var(--ink);
  font-size: 1.35rem;
}

@media (max-width: 1180px) {
  body.is-catalog .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .product-grid,
  .product-layout,
  body.is-catalog .product-grid:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-meta.has-added {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.is-catalog .product-grid:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-meta.has-added {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-stage {
    border-radius: 20px;
  }

  .product-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-meta {
    padding: 10px 10px 12px;
  }

  .product-meta h3 {
    font-size: 0.86rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .product-grid:not(.is-list) .product-line {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 2px;
    line-height: 1.15;
  }

  .product-grid:not(.is-list) .product-line .product-color {
    flex: 1 0 100%;
    line-height: 1.15;
  }

  .product-grid:not(.is-list) .product-line .card-price {
    line-height: 1.15;
  }

  .product-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-row .btn-tiny {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .catalog-search {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .cat img,
  .btn { transition: none; }
}

/* Arabic typography — last so English component fonts never win after load */
html[lang="ar"],
html[lang="ar"] body,
html.is-ar,
html.is-ar body {
  font-family: "Cairo", "Manrope", sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .display,
html[lang="ar"] .product-meta h3,
html[lang="ar"] .cat-body h3,
html[lang="ar"] .tile h3,
html[lang="ar"] .step h3,
html.is-ar h1,
html.is-ar h2,
html.is-ar h3,
html.is-ar .display,
html.is-ar .product-meta h3,
html.is-ar .cat-body h3,
html.is-ar .tile h3,
html.is-ar .step h3 {
  font-family: "Cairo", sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] .display,
html.is-ar h1,
html.is-ar .display {
  font-weight: 900;
}

html[lang="ar"] h2,
html.is-ar h2 {
  font-weight: 514;
}

html[lang="ar"] h3,
html[lang="ar"] .product-meta h3,
html[lang="ar"] .cat-body h3,
html[lang="ar"] .tile h3,
html[lang="ar"] .step h3,
html.is-ar h3,
html.is-ar .product-meta h3,
html.is-ar .cat-body h3,
html.is-ar .tile h3,
html.is-ar .step h3 {
  font-weight: 700;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] .display,
html.is-ar h1,
html.is-ar h2,
html.is-ar .display {
  line-height: 1.25;
}

html[lang="ar"] h1,
html.is-ar h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
}

html[lang="ar"] h2,
html.is-ar h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

html[lang="ar"] h3,
html.is-ar h3 {
  line-height: 1.35;
}

html[lang="ar"] .lead,
html.is-ar .lead {
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.12rem;
}

html[lang="ar"] .hero-copy .lead,
html.is-ar .hero-copy .lead {
  font-size: 1.22rem;
  line-height: 1.75;
}

html[lang="ar"] .stat b,
html.is-ar .stat b {
  font-size: 1.5rem;
  line-height: 1.3;
}

html[lang="ar"] .product-price,
html.is-ar .product-price {
  font-size: 2rem;
  line-height: 1.3;
}

html[lang="ar"] .product-price.price-soon,
html[lang="ar"] .product-price-block .price-soon,
html.is-ar .product-price.price-soon,
html.is-ar .product-price-block .price-soon {
  font-size: 0.95rem;
  line-height: 1.35;
}

html[lang="ar"] .btn,
html[lang="ar"] .nav a,
html[lang="ar"] .kicker,
html[lang="ar"] .pill,
html[lang="ar"] .product-cat,
html[lang="ar"] .stat span,
html[lang="ar"] .app-tabs a,
html.is-ar .btn,
html.is-ar .nav a,
html.is-ar .app-tabs a,
html.is-ar .kicker,
html.is-ar .pill,
html.is-ar .product-cat,
html.is-ar .stat span {
  font-family: "Cairo", sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .kicker,
html[lang="ar"] .product-cat,
html[lang="ar"] .pill,
html[lang="ar"] .marquee a,
html.is-ar .kicker,
html.is-ar .product-cat,
html.is-ar .pill,
html.is-ar .marquee a {
  text-transform: none;
}

.wholesale-from {
  display: block;
  color: #1f8a5b;
  font-size: 0.78rem;
  font-weight: 800;
}

.wholesale-box {
  margin: 8px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.wholesale-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.wholesale-lock .hero-actions {
  margin: 16px 0 0;
}

.product-promo {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.product-promo .section-head {
  margin-bottom: 22px;
}

.product-promo-track-wrap {
  overflow: hidden;
  width: 100%;
  padding-block: 4px 10px;
}

.product-promo-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.product-promo-track .product-card {
  flex: 0 0 200px;
  width: 200px;
}

@media (max-width: 640px) {
  .product-promo-track .product-card {
    flex-basis: 160px;
    width: 160px;
  }
}

.wholesale-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.wholesale-table th,
.wholesale-table td,
.admin-table th,
.admin-table td {
  text-align: start;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.wholesale-table th,
.admin-table th {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-login {
  max-width: 420px;
}

.section:has(.admin-login) {
  padding: 32px 0;
}

.admin-login .brand {
  display: block;
  margin-bottom: 8px;
}

.admin-login .brand-admin {
  height: 32px;
}

.admin-login h1 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

html.admin {
  --yellow: #b02028;
  --yellow-hi: #8e1820;
  --yellow-soft: #fdeced;
}

html.admin .kicker {
  color: #b02028;
}

html.admin .btn-gold {
  color: #fff;
  box-shadow: 0 8px 20px rgba(176, 32, 40, 0.28);
}

html.admin .btn-ghost {
  border-color: #b02028;
  color: #b02028;
  background: #fff;
}

html.admin .btn-ghost:hover,
html.admin .btn-ghost:focus-visible {
  background: #fdeced;
}

html.admin .nav a.is-current,
html.admin .admin-tabs a.is-current,
html.admin .lang-toggle button.is-active,
html.admin .lang-toggle a.is-active {
  color: #b02028;
}

html.admin .lang-toggle button.is-active,
html.admin .lang-toggle a.is-active {
  background: #b02028;
  color: #fff;
}

html.admin .field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
html.admin .field select,
html.admin .field textarea,
html.admin .admin-quote-line-qty,
html.admin .admin-quote-line-price {
  background: #fff;
}

html.admin .field input:focus,
html.admin .field select:focus,
html.admin .field textarea:focus,
html.admin .file-field:focus-within,
html.admin .choice:has(input:checked) {
  box-shadow: 0 0 0 4px rgba(176, 32, 40, 0.18);
}

html.admin .section {
  padding: 16px 0 8px;
}

html.admin h1 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 6px;
}

html.admin .kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #b02028;
}

html.admin .kicker::before {
  width: 14px;
}

html.admin .lead {
  font-size: 0.9rem;
  margin: 0 0 10px;
}

html.admin .admin-list-count {
  margin: 6px 0 0;
  font-size: 1rem;
}

html.admin .section-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

html.admin .admin-shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 42rem;
  min-width: min(100%, 36rem);
}

html.admin .admin-shop-tools .catalog-search {
  flex: 1 1 28rem;
  min-width: min(100%, 24rem);
}

html.admin .admin-shop-tools .catalog-search .field,
html.admin .admin-shop-tools .catalog-search input[type="search"] {
  width: 100%;
}

html.admin .admin-shop-filters {
  display: flex;
  gap: 8px;
}

html.admin .admin-shop-filters .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-color: #b02028;
  background: #fff;
  color: #b02028;
  font-weight: 800;
  text-decoration: none;
}

html.admin .admin-shop-filters .pill:hover,
html.admin .admin-shop-filters .pill:focus-visible {
  background: #fdeced;
  color: #b02028;
}

html.admin .admin-shop-filters .pill.is-on,
html.admin .admin-shop-filters .pill.is-on:hover,
html.admin .admin-shop-filters .pill.is-on:focus-visible {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

html.admin .admin-shop-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

html.admin .admin-shop-heading h1 {
  margin: 0;
}

html.admin .admin-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #b02028;
  border-radius: 12px;
  background: #fff;
  color: #b02028;
}

html.admin .admin-refresh:hover,
html.admin .admin-refresh:focus-visible {
  background: #fdeced;
}

html.admin .admin-desk-hero {
  gap: 16px;
  margin-bottom: 12px;
}

html.admin .admin-desk-qr img {
  width: 88px;
  height: 88px;
}

.admin-login .currency-toggle {
  margin-bottom: 18px;
  width: fit-content;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

html.admin .admin-table-wrap:has(.admin-table-prices) {
  overflow: visible;
}

html.admin body.admin-wide {
  --max: 1480px;
}

html.admin body.admin-wide .admin-table-compact {
  font-size: 1rem;
}

html.admin body.admin-wide .admin-table-compact th,
html.admin body.admin-wide .admin-table-compact td {
  padding: 12px 14px;
}

html.admin .admin-table-compact .admin-quote-delete,
html.admin .admin-table-compact .admin-quote-reply-cell {
  position: relative;
  z-index: 5;
  text-align: end;
  white-space: nowrap;
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 8px 10px;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-table-compact th:first-child,
.admin-table-compact td:first-child {
  white-space: normal;
}

.admin-table-compact small {
  display: inline;
  margin: 0;
  color: var(--text-faint);
}

.admin-city-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.admin-table-compact small.admin-city-ar {
  display: inline;
  margin: 0;
  font-size: 1em;
  text-align: right;
}

.admin-table-compact td:has(.admin-city-name) {
  white-space: nowrap;
  width: 70%;
}

html.admin .admin-desk .admin-table-wrap {
  margin-top: 8px;
}

html.admin .admin-desk .admin-table-compact {
  font-size: 0.75rem;
}

html.admin .admin-desk .admin-table-compact th,
html.admin .admin-desk .admin-table-compact td {
  padding: 3px 5px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
}

html.admin .admin-desk .admin-table-compact th {
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

html.admin .admin-desk .admin-table-compact td:has(.admin-city-name) {
  width: auto;
  white-space: normal;
}

html.admin .admin-desk .admin-city-name {
  flex-wrap: wrap;
  gap: 2px 8px;
}

html.admin .admin-desk .admin-map-items .admin-table-wrap {
  padding: 0;
}

html.admin .admin-desk .admin-viewed-table th,
html.admin .admin-desk .admin-viewed-table td:not(:first-child) {
  padding: 2px 8px;
}

html.admin .admin-desk .admin-viewed-table td:first-child {
  width: 72px;
  padding: 0;
}

html.admin .admin-desk .admin-viewed-table tbody tr {
  cursor: pointer;
}

html.admin .admin-desk .admin-viewed-table tbody tr:hover {
  background: #fdeced;
}

html.admin .admin-desk .admin-viewed-table .admin-country-item,
html.admin .admin-desk .admin-viewed-table .admin-country-item:hover,
html.admin .admin-desk .admin-viewed-table .admin-country-item:hover strong {
  color: inherit;
  text-decoration: none;
}

html.admin .admin-desk .admin-viewed-table .admin-country-item {
  position: relative;
}

html.admin .admin-desk .admin-viewed-table .admin-country-item::after {
  content: "";
  position: absolute;
  inset: 0;
}

html.admin .admin-desk .admin-viewed-table .admin-country-item .admin-thumb {
  width: 72px;
  height: 72px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

html.admin .admin-desk .admin-country-item {
  gap: 6px;
  min-width: 0;
}

html.admin .admin-desk .admin-country-item > span:last-child {
  min-width: 0;
}

html.admin .admin-flag {
  display: inline-block;
  width: 18px;
  height: 14px;
  margin-inline-end: 6px;
  vertical-align: -2px;
  border-radius: 2px;
  object-fit: cover;
}

html.admin .admin-desk .admin-flag {
  width: 16px;
  height: 12px;
  margin-inline-end: 6px;
}

html.admin .admin-desk tr.is-online {
  background: #e8f6ee;
}

html.admin .admin-online {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1f7a45;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

html.admin .admin-desk .admin-viewed-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

html.admin .admin-desk .admin-viewed-sort .btn-tiny.is-on,
html.admin .admin-desk .admin-viewed-sort .btn-tiny.is-on:hover {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

.admin-table-compact tbody tr,
.admin-table-compact tbody td {
  position: relative;
}

.admin-table-compact a.admin-row-link {
  color: inherit;
  text-decoration: none;
}

.admin-table-compact a.admin-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.admin-table-compact tbody tr:has(a.admin-row-link):hover {
  background: var(--bg-soft);
}

.admin-table-compact tbody tr:has(a.admin-row-link) {
  cursor: pointer;
}

.admin-table-compact tbody tr.is-current {
  background: rgba(176, 32, 40, 0.12);
}

.admin-order-when {
  white-space: nowrap;
}

.admin-order-status-text {
  display: inline-block;
  margin-inline-start: 8px;
  color: #b02028;
  font-weight: 800;
}

.admin-order-copy {
  position: relative;
  z-index: 2;
  width: 1%;
  white-space: nowrap;
}

.admin-order-copy form {
  margin: 0;
}

.admin-sales-filter select {
  flex: 0 0 12.5rem;
  width: 12.5rem;
}

.admin-sales-filter a.admin-sales-new {
  margin-inline-start: auto;
}

.admin-sales-table {
  width: 100%;
}

.admin-sales-table .admin-sales-doc,
.admin-sales-table .admin-sales-status,
.admin-sales-table .admin-order-when,
.admin-sales-table .admin-sales-total {
  white-space: nowrap;
}

.admin-sales-table .admin-sales-shop,
.admin-sales-table .admin-sales-contact {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sales-table .admin-sales-status {
  width: 1%;
}

.admin-sales-table .order-status {
  gap: 4px;
}

.admin-sales-table .order-status-gap {
  width: 8px;
}

.admin-sales-table .order-status-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.admin-sales-table .order-status-btn svg {
  width: 18px;
  height: 18px;
}

.admin-sales-due {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-sales-due.is-due {
  color: #8e1820;
}

.admin-sales-due.is-clear {
  color: #1a7f37;
}

.admin-order-barcode {
  text-align: end;
  width: 11rem;
}

.admin-table .admin-order-barcode {
  width: 9.2rem;
}

.admin-order-barcode .order-receipt-barcode {
  display: block;
  width: 10.5rem;
  height: 36px;
  margin-inline-start: auto;
}

.admin-table .admin-order-barcode .order-receipt-barcode {
  width: 8.6rem;
}

.admin-order-barcode .order-receipt-barcode rect {
  fill: #111;
}

.admin-anchor-target {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-table small {
  display: block;
  color: var(--text-faint);
  margin-top: 4px;
}

.admin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-thumb.is-logo img {
  object-fit: contain;
  padding: 6px;
  background: #111;
}

.admin-thumb-lg {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
}

.admin-product-wrap {
  max-width: 1040px;
}

.admin-price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.admin-price-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-price-side .field {
  margin: 0;
}

.admin-qty-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-qty-status-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b02028;
}

.admin-prices-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.admin-prices-title-row .admin-qty-status-title {
  margin: 0;
}

.admin-lock-prices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}

.admin-lock-prices:has(input:checked) {
  border-color: #b02028;
  background: rgba(176, 32, 40, 0.08);
  color: #b02028;
}

.admin-lock-prices input {
  width: 16px;
  height: 16px;
  accent-color: #b02028;
}

.admin-table-wrap.is-prices-locked {
  outline: 2px solid rgba(176, 32, 40, 0.28);
  outline-offset: 2px;
  border-radius: 12px;
}

.admin-qty-stock-field input {
  min-height: 36px;
  font-size: 1rem;
  font-weight: 800;
}

.admin-wh-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.admin-wh-total span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dim);
}

.admin-wh-total strong {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-wh-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-wh-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.admin-wh-list li span {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.admin-wh-list li.is-blue span {
  color: #1d4f91;
}

.admin-wh-list li.is-yellow span {
  color: #6b5300;
}

.admin-wh-list input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-wh-list li.is-blue input {
  background: #eef5ff;
}

.admin-wh-list li.is-yellow input {
  background: #fff8dc;
}

.admin-qty-stock-field span em,
.admin-product-wrap .field > span em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}

.admin-qty-status-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.admin-qty-status-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.admin-qty-status-list dt {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-qty-status-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-price-side .admin-promote {
  margin-top: 0;
}

.admin-price-side .admin-product-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 4;
}

.admin-price-side .admin-product-actions .btn {
  width: 100%;
  justify-content: center;
}

.admin-product-head {
  display: flex;
  gap: 18px;
  align-items: start;
  margin: 0 0 8px;
}

.admin-product-head h1 {
  margin: 0 0 6px;
}

.admin-product-head .admin-sku {
  margin: 0 0 8px;
  color: var(--text-dim);
}

.admin-product-head .lead {
  margin: 0;
}

.admin-promote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-weight: 700;
  cursor: pointer;
}

.admin-promote input {
  width: 18px;
  height: 18px;
  accent-color: #b02028;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.admin-product-actions .btn {
  width: auto;
}

.admin-product-actions .btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 5px;
}

.admin-product-actions-end {
  margin-inline-start: auto;
}

.admin-btn-danger {
  color: #b02028 !important;
  border-color: rgba(176, 32, 40, 0.35) !important;
}

.admin-btn-danger:hover,
.admin-btn-danger:focus-visible {
  background: rgba(176, 32, 40, 0.08) !important;
  color: #8a161c !important;
}

.admin-promo-badge,
.admin-lock-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(176, 32, 40, 0.12);
  color: #b02028;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-lock-badge {
  background: #111;
  color: #f5c400;
}

html.admin .admin-table.admin-table-prices tbody > tr.is-highlight {
  outline: 2px solid rgba(176, 32, 40, 0.55);
  outline-offset: -2px;
  background: rgba(176, 32, 40, 0.12);
  transition: background 1.2s ease, outline-color 1.2s ease;
}

html.admin .admin-table.admin-table-prices tbody > tr.is-highlight.is-highlight-fade {
  background: transparent;
  outline-color: transparent;
}

html.admin .admin-table-prices td.admin-prices-identity {
  white-space: normal;
  vertical-align: top;
  overflow: visible;
  position: relative;
  z-index: 2;
}

html.admin .admin-table-prices tbody td:not(.admin-prices-identity) {
  vertical-align: bottom;
}

html.admin .admin-prices-id-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: end;
  min-height: 64px;
  overflow: visible;
}

html.admin .admin-prices-id-grid .admin-sku {
  font-size: 0.72rem;
  line-height: 1.45;
}

html.admin .admin-table-prices td.admin-sku span,
html.admin .admin-prices-id-grid .admin-sku span {
  display: block;
  white-space: nowrap;
  font-size: inherit;
  line-height: inherit;
}

html.admin .admin-table-prices .admin-prices-name {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  min-width: 0;
  min-height: 64px;
  overflow: visible;
}

html.admin .admin-table-prices .admin-prices-name strong {
  display: block;
  white-space: nowrap;
  overflow: visible;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  text-shadow: 0 0 6px #fff, 0 0 6px #fff, 0 0 8px #fff;
}

html.admin .admin-table-prices .admin-prices-name small {
  display: block;
  margin-top: 4px;
}

html.admin .admin-table-prices td.admin-sku small,
html.admin .admin-prices-id-grid .admin-color-swatch,
html.admin .admin-color-swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  color: var(--text-dim);
  white-space: normal;
}

.admin-color-swatch i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  flex: 0 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.admin-sku-search {
  margin-inline-start: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b02028;
  white-space: nowrap;
}

.admin-sku-search:hover,
.admin-sku-search:focus-visible {
  text-decoration: underline;
}

.field > span:has(.admin-sku-search) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field > span .admin-sku-search {
  margin-inline-start: 0;
}

html.admin .admin-table {
  line-height: 1;
}

html.admin .admin-table th,
html.admin .admin-table td {
  padding: 1px 6px;
  line-height: 1;
  vertical-align: middle;
}

html.admin .admin-table strong,
html.admin .admin-table small,
html.admin .admin-table .admin-sku {
  line-height: 1;
}

html.admin .admin-table small {
  margin-top: 0;
}

html.admin .admin-table .admin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

html.admin .admin-table-prices .admin-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center center;
  position: relative;
  z-index: 4;
  text-decoration: none;
  color: inherit;
}

html.admin .admin-table-prices .admin-prices-thumb {
  overflow: visible;
}

html.admin .admin-table-prices .admin-thumb:hover,
html.admin .admin-table-prices .admin-thumb:focus-visible {
  transform: scale(2);
  z-index: 8;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

html.admin .admin-table.admin-table-prices tbody > tr.admin-prices-row {
  position: relative;
  cursor: pointer;
}

html.admin .admin-table.admin-table-prices tbody > tr.admin-prices-row:hover {
  background: var(--bg-soft);
}

html.admin .admin-table.admin-table-prices a.admin-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

html.admin .admin-table.admin-table-prices .admin-prices-location,
html.admin .admin-table.admin-table-prices .admin-prices-edit,
html.admin .admin-table.admin-table-prices .admin-prices-check {
  position: relative;
  z-index: 5;
}

.admin-prices-check {
  width: 28px;
  text-align: center;
}

.admin-prices-check input {
  width: 16px;
  height: 16px;
}

html.admin .admin-table.admin-table-prices tbody > tr.admin-prices-row.is-bulk-selected {
  background: rgba(176, 32, 40, 0.08);
}

.admin-bulk-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.admin-bulk-count {
  margin: 0 0 10px;
  font-weight: 800;
}

.admin-bulk-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

.admin-bulk-names .field,
.admin-bulk-bands .field {
  margin: 0;
}

.admin-bulk-names input,
.admin-bulk-bands input {
  min-height: 34px;
  width: 100%;
}

.admin-bulk-bands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.admin-bulk-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.admin-bulk-fields .field {
  margin: 0;
}

.admin-bulk-fields input,
.admin-bulk-fields select {
  min-height: 34px;
  width: 100%;
}

@media (max-width: 700px) {
  .admin-bulk-names {
    grid-template-columns: 1fr;
  }
}

html.admin .admin-table-prices .admin-prices-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

html.admin .admin-table-prices .admin-prices-edit .admin-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

html.admin .admin-table-prices .admin-prices-edit .btn-icon.is-locked {
  border-color: #111;
  background: #111;
  color: #f5c400;
}

html.admin .admin-table-prices .admin-prices-edit .btn-tiny {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

html.admin .admin-table-prices .admin-prices-edit .btn-icon {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

html.admin .admin-table-prices .admin-prices-edit .btn-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.admin .admin-table-prices .admin-prices-edit .btn-tiny:hover,
html.admin .admin-table-prices .admin-prices-edit .btn-tiny:focus-visible {
  transform: scale(1.08);
}

html.admin .admin-table-prices {
  border-collapse: separate;
  border-spacing: 0;
}

html.admin .admin-table thead th a.admin-sort,
html.admin .admin-table-prices thead th a.admin-sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

html.admin .admin-table thead th a.admin-sort::after,
html.admin .admin-table-prices thead th a.admin-sort::after {
  content: "↕";
  font-size: 0.72em;
  opacity: 0.35;
}

html.admin .admin-table thead th a.admin-sort.is-asc::after,
html.admin .admin-table-prices thead th a.admin-sort.is-asc::after {
  content: "↑";
  opacity: 1;
  color: #b02028;
}

html.admin .admin-table thead th a.admin-sort.is-desc::after,
html.admin .admin-table-prices thead th a.admin-sort.is-desc::after {
  content: "↓";
  opacity: 1;
  color: #b02028;
}

html.admin .admin-table thead th a.admin-sort:hover,
html.admin .admin-table thead th a.admin-sort:focus-visible,
html.admin .admin-table-prices thead th a.admin-sort:hover,
html.admin .admin-table-prices thead th a.admin-sort:focus-visible {
  color: #b02028;
}

html.admin .admin-table-prices thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--bg);
  box-shadow: inset 0 -1px 0 var(--line);
}

html.admin .admin-table-prices th,
html.admin .admin-table-prices td {
  padding-top: 6px;
  padding-bottom: 6px;
}

html.admin .admin-table .btn-tiny {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.75rem;
  line-height: 1;
}

html.admin .admin-wa {
  position: relative;
  z-index: 2;
  background: #128c7e;
  color: #fff;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

html.admin .admin-wa:hover,
html.admin .admin-wa:focus-visible {
  background: #075e54;
  color: #fff;
}

html.admin .admin-table .admin-wa {
  margin-inline-start: 8px;
  vertical-align: middle;
}

.admin-wa-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  max-width: 42rem;
}

.admin-wa-compose label {
  flex: 1 1 16rem;
  margin: 0;
}

.admin-wa-compose input {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

.admin-wa-templates {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-wa-templates-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.admin-wa-compose.is-templates {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  align-items: start;
  max-width: none;
  gap: 14px 18px;
}

.admin-wa-compose.is-templates .admin-wa-col {
  min-width: 0;
}

.admin-wa-compose.is-templates .admin-wa-col-pick {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-wa-compose.is-templates .admin-wa-pick,
.admin-wa-compose.is-templates .admin-wa-text {
  flex: none;
  width: 100%;
}

.admin-wa-compose.is-templates .admin-wa-pick span,
.admin-wa-compose.is-templates .admin-wa-text > span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
}

.admin-wa-compose.is-templates select,
.admin-wa-compose.is-templates textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.admin-wa-compose.is-templates select {
  min-height: 36px;
  padding: 0 12px;
}

.admin-wa-compose.is-templates textarea {
  min-height: 220px;
  height: 100%;
  padding: 10px 12px;
  line-height: 1.45;
  resize: vertical;
}

.admin-wa-compose.is-templates .admin-wa {
  justify-self: start;
}

@media (max-width: 720px) {
  .admin-wa-compose.is-templates {
    grid-template-columns: 1fr;
  }
}

html.admin .admin-table-form th,
html.admin .admin-table-form td {
  padding: 6px 8px;
  vertical-align: middle;
}

html.admin .admin-table-form td:first-child {
  width: 8.5rem;
  white-space: nowrap;
}

html.admin .admin-table-form input[type="number"] {
  width: 7rem;
  min-height: 30px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
}

.admin-price-editor {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.admin-product-desc {
  height: 100%;
}

.admin-product-desc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-product-desc-label .btn-tiny {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.admin-product-desc textarea {
  flex: 1;
  min-height: 140px;
  height: 100%;
}

.admin-product-desc .ck.ck-editor {
  width: 100%;
}

.admin-product-desc .ck-editor__editable {
  min-height: 250px;
}

.admin-product-desc .ck.ck-toolbar {
  border-radius: 12px 12px 0 0 !important;
}

.admin-product-desc .ck.ck-editor__main > .ck-editor__editable {
  border-radius: 0 0 12px 12px !important;
  background: #fff;
}

.product-desc {
  color: var(--text-dim);
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"] .product-desc,
html.is-ar .product-desc {
  direction: ltr;
  text-align: left;
}

.product-desc p {
  margin: 0 0 0.75em;
}

.product-desc p:last-child {
  margin-bottom: 0;
}

.product-desc ul,
.product-desc ol {
  margin: 0 0 0.75em;
  padding-inline-start: 1.2em;
}

.product-desc a {
  color: inherit;
  text-decoration: underline;
}

.product-desc .product-attr-table,
.admin-product-desc .product-attr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}

.product-desc .product-attr-table th,
.product-desc .product-attr-table td,
.admin-product-desc .product-attr-table th,
.admin-product-desc .product-attr-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.product-desc .product-attr-table th,
.admin-product-desc .product-attr-table th {
  width: 38%;
  color: var(--text-dim);
  font-weight: 700;
}

.product-desc .product-attr-table td,
.admin-product-desc .product-attr-table td {
  color: var(--ink);
  font-weight: 700;
}

.admin-product-photo.file-field {
  background: #111;
  border-radius: 14px;
}

.admin-product-photo.is-logo img {
  object-fit: contain;
  padding: 10px;
}

.admin-product-photo-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.admin-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-product-saved-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: start;
}

#product-pending-thumbs {
  display: contents;
}

.admin-product-drag-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.admin-product-thumb {
  position: relative;
  margin: 0;
  width: 84px;
  cursor: grab;
}

.admin-product-thumb[data-image-url] {
  cursor: zoom-in;
}

.admin-product-thumb[data-image-url][draggable="true"] {
  cursor: grab;
}

.admin-product-thumb:active {
  cursor: grabbing;
}

/* Product photo straightener dialog */
dialog.admin-scan-dialog.admin-flat-dialog {
  width: min(1400px, calc(100vw - 12px));
  max-width: none;
  max-height: calc(100vh - 12px);
  margin: auto;
}

.admin-flat-dialog .admin-scan-form {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.admin-flat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.admin-flat-stage {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  background: #111;
  touch-action: none;
  min-height: min(72vh, 820px);
  display: grid;
  place-items: center;
}

.admin-flat-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.admin-flat-stage canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 820px);
  vertical-align: top;
}

.admin-flat-handle {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #f5c400;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}

.admin-flat-handle.is-dragging {
  cursor: grabbing;
  transform: scale(1.15);
}

.admin-flat-tune {
  display: grid;
  gap: 8px;
}

.admin-flat-tune label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-flat-tune b {
  font-variant-numeric: tabular-nums;
}

.admin-flat-tune input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #b02028;
}

.admin-flat-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-flat-frame.is-full {
  cursor: default;
}

.admin-flat-frame.is-full .admin-flat-crop {
  display: none;
}

.admin-flat-preview {
  flex: 1;
  min-height: min(56vh, 680px);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #111;
  display: grid;
  place-items: center;
  padding: 10px;
}

.admin-flat-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-flat-frame.is-dragging {
  cursor: grabbing;
}

.admin-flat-preview img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.admin-flat-crop {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #f5c400;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.admin-flat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.admin-flat-rotates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}

.admin-flat-dialog.is-busy {
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .admin-flat-layout {
    grid-template-columns: 1fr;
  }

  .admin-flat-stage,
  .admin-flat-preview {
    min-height: 0;
  }

  .admin-flat-stage canvas,
  .admin-flat-preview img {
    max-height: 48vh;
  }
}

.admin-product-thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}

.admin-product-thumb.is-main img {
  border-color: #b02028;
  box-shadow: 0 0 0 2px rgba(176, 32, 40, 0.25);
}

.admin-product-main-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: #b02028;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-product-thumb.is-dragging {
  opacity: 0.45;
}

.admin-product-thumb.is-drop-target img {
  outline: 2px dashed #b02028;
  outline-offset: 2px;
}

.admin-product-thumb.is-pending {
  cursor: default;
}

.admin-product-thumb.is-pending img {
  outline: 2px solid rgba(176, 32, 40, 0.35);
  outline-offset: -2px;
}

.admin-product-thumb-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.admin-product-thumb-add.is-drop,
.admin-product-photo.is-drop {
  border-color: #b02028;
  background: rgba(176, 32, 40, 0.08);
  color: #b02028;
}

.admin-product-thumb-add:hover,
.admin-product-thumb-add:focus-visible {
  border-color: #b02028;
  color: #b02028;
  background: #fdeced;
}

html.admin .admin-product-thumb .btn {
  width: 84px;
  min-height: 28px;
  margin-top: 6px;
  padding: 0 6px;
  font-size: 0.72rem;
}

html.admin .form:has(.admin-table-form) {
  padding: 16px;
  border-radius: 16px;
}

html.admin .admin-prices-band,
html.admin .admin-prices-qty {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

html.admin .admin-prices-band.is-calc {
  color: #8a5a00;
}

html.admin .admin-prices-band.is-manual {
  color: #1d4f91;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 1 1 28rem;
  justify-content: flex-end;
}

.admin-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-select-all input,
.admin-prices-check input {
  width: 18px;
  height: 18px;
  accent-color: #b02028;
}

.admin-toolbar .catalog-search {
  flex: 1 1 22rem;
  width: 100%;
  max-width: none;
}

.admin-toolbar .catalog-search .field,
.admin-toolbar .catalog-search input {
  width: 100%;
}

.field small {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.wholesale-lock p {
  margin: 0 0 14px;
}

.wholesale-price {
  font-weight: 800;
}

.wholesale-slider,
.admin-price-slider {
  display: grid;
  gap: 8px;
}

.wholesale-slider-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

.wholesale-slider-readout p {
  margin: 0;
}

.wholesale-slider-readout .wholesale-price {
  font-size: 1.35rem;
}

.wholesale-slider input[type="range"],
.admin-price-slider input[type="range"] {
  width: 100%;
  margin: 4px 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}

.wholesale-slider-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-price-slider {
  margin: 14px 0 4px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-price-slider-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-price-slider-qty input {
  width: 5.6rem;
}

html.admin .admin-prices-card tr.is-mid-band {
  display: none;
}

.wholesale-each {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text-dim);
}

.band-order {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.band-order input[type="number"] {
  width: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.band-order button.is-added {
  background: #1f8a5b;
  color: #fff;
  border-color: #1f8a5b;
  transform: scale(1.08);
}

.order-added {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.order-added .form-note {
  margin: 0;
}

.order-added.is-in {
  animation: orderAddedIn 0.7s var(--ease);
}

@keyframes orderAddedIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

.order-fly {
  --dx: 0px;
  --dy: 0px;
  position: fixed;
  z-index: 80;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.28), 0 0 0 4px #fff;
  animation: orderFly 1.15s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

@keyframes orderFly {
  0% { transform: scale(0.55); opacity: 0; }
  22% { transform: scale(1.18); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.9); opacity: 1; }
}

[data-order-target].is-order-pop {
  animation: orderPop 0.65s ease;
}

@keyframes orderPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); box-shadow: 0 0 0 6px rgba(245, 196, 0, 0.55); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .order-added.is-in,
  [data-order-target].is-order-pop {
    animation: none;
  }

  .order-fly {
    animation: none;
  }
}

.order-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  height: 1.4em;
  margin-inline-end: 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
}

.order-total {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 800;
}

.order-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.order-toolbar .order-pay-form {
  margin-top: 0;
  flex: 1 1 auto;
}

.order-toolbar .order-actions {
  margin-top: 0;
  flex: 0 1 auto;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.order-card-head .order-actions {
  margin-top: 10px;
}

.order-actions form {
  margin: 0;
}

.order-toolbar .order-status-set label {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 0.78rem;
}

.order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.order-head-main .kicker {
  margin-top: 0;
}

.order-head-main h1 {
  margin-top: 0;
}

.order-head .order-summary {
  margin: 0;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

.order-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.order-summary h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.order-summary.is-inline {
  position: static;
  max-width: 320px;
  margin-top: 16px;
  margin-inline-start: auto;
}

.order-sums {
  margin: 0;
}

.order-sums > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.order-sums dt {
  margin: 0;
  font-weight: 700;
}

.order-sums dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-sums small {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.order-sums .is-due {
  border-bottom: 0;
  padding-top: 10px;
  font-size: 1.08rem;
}

.order-summary .order-actions {
  flex-direction: column;
  align-items: stretch;
}

.order-summary .order-actions .btn,
.order-summary .order-actions form .btn {
  width: 100%;
}

@media (max-width: 900px) {
  .order-head,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .order-head .order-summary {
    order: -1;
  }
}

.order-ref {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.order-receipt,
.order-invoice {
  display: none;
}

.admin-sales-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-sales-flow a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 7.5rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.admin-sales-flow a b {
  font-size: 1.15rem;
  line-height: 1.15;
}

.admin-sales-flow a span {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.admin-sales-flow a.is-current {
  border-color: #b02028;
  box-shadow: inset 0 0 0 1px #b02028;
}

.admin-invoice-links {
  margin: -8px 0 18px;
}

.admin-invoice-views {
  margin: 0 0 16px;
}

html.admin .admin-invoice-views .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-color: #b02028;
  background: #fff;
  color: #b02028;
  font-weight: 800;
  text-decoration: none;
}

html.admin .admin-invoice-views .pill b {
  font-weight: 800;
}

html.admin .admin-invoice-views .pill:hover,
html.admin .admin-invoice-views .pill:focus-visible {
  background: #fdeced;
  color: #b02028;
}

html.admin .admin-invoice-views .pill.is-on,
html.admin .admin-invoice-views .pill.is-on:hover,
html.admin .admin-invoice-views .pill.is-on:focus-visible {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

.admin-invoice-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-invoice-doc .order-status {
  gap: 3px;
}

.admin-invoice-doc .order-status-gap {
  width: 6px;
}

.admin-invoice-doc .order-status-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.admin-invoice-doc .order-status-btn svg {
  width: 18px;
  height: 18px;
}

.admin-invoice-shop strong,
.admin-invoice-shop span {
  display: block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-invoice-shop span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.admin-invoice-due.is-due {
  color: #8e1820;
  font-weight: 800;
}

.admin-invoice-due.is-clear {
  color: #1a7f37;
  font-weight: 800;
}

.admin-invoice-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.admin-invoice-actions > form,
.admin-invoice-actions > .admin-credit-form {
  margin: 0;
}

.admin-invoice-pay,
.admin-credit-form form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.admin-invoice-pay input,
.admin-invoice-pay select,
.admin-credit-form select,
.admin-credit-form input[type="text"],
.admin-credit-form input[type="number"] {
  min-height: 34px;
  width: 14rem;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.admin-invoice-pay input[type="number"] {
  width: 6.5rem;
}

.admin-credit-form summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-credit-form form {
  margin-top: 6px;
}

.admin-credit-restock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.admin-credit-list {
  margin-top: 28px;
}

html.admin .admin-invoice-table {
  width: 100%;
}

html.admin body.admin-invoices-page .admin-invoice-table th,
html.admin body.admin-invoices-page .admin-invoice-table td {
  padding: 8px 10px;
}

html.admin .admin-invoice-table th,
html.admin .admin-invoice-table td {
  white-space: nowrap;
  vertical-align: middle;
}

html.admin .admin-invoice-table td.admin-invoice-shop {
  white-space: normal;
  width: 16rem;
  max-width: 16rem;
}

html.admin .admin-invoice-table .admin-order-status-text {
  display: none;
}

html.admin .admin-invoice-table .btn {
  min-height: 34px;
  padding: 0 12px;
}

html.admin .admin-invoice-table .admin-credit-form summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b02028;
  border-radius: 999px;
  background: #fff;
  color: #b02028;
  list-style: none;
}

html.admin .admin-invoice-table .admin-credit-form summary::-webkit-details-marker {
  display: none;
}

html.admin .admin-invoice-table .admin-credit-form summary:hover,
html.admin .admin-invoice-table .admin-credit-form summary:focus-visible {
  background: #fdeced;
}

html.admin .admin-invoice-table .admin-invoice-pay select {
  width: 8.5rem;
}

html.admin .admin-invoice-table .admin-invoice-pay input[type="number"] {
  width: 5.5rem;
}

html.admin .admin-invoice-table .admin-credit-form {
  display: inline-flex;
  align-items: center;
}

html.admin .admin-invoice-table .admin-credit-form form {
  margin-top: 0;
}

html.admin .admin-invoice-table .admin-credit-form select,
html.admin .admin-invoice-table .admin-credit-form input[type="text"] {
  width: 8.5rem;
}

html.admin .admin-invoice-table .admin-credit-form input[type="number"] {
  width: 4.5rem;
}

.admin-cash-stats {
  margin: 16px 0;
}

.admin-cash-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 8px 0;
}

.admin-cash-form .field {
  margin: 0;
}

.admin-cash-form .btn {
  min-height: 46px;
}

html.admin .admin-cashbook-page .pills {
  margin-top: 14px;
}

html.admin .admin-cashbook-page .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-color: #b02028;
  background: #fff;
  color: #b02028;
  font-weight: 800;
  text-decoration: none;
}

html.admin .admin-cashbook-page .pill:hover,
html.admin .admin-cashbook-page .pill:focus-visible {
  background: #fdeced;
  color: #b02028;
}

html.admin .admin-cashbook-page .pill.is-on,
html.admin .admin-cashbook-page .pill.is-on:hover,
html.admin .admin-cashbook-page .pill.is-on:focus-visible {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

.admin-cash-in {
  color: #1a7f37;
  font-weight: 800;
}

.admin-cash-out {
  color: #8e1820;
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-cash-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-cash-form .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.admin-order-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-order-filters input[type="search"],
.admin-order-filters select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

html.admin a.btn.is-on,
html.admin a.btn.is-on:hover,
html.admin a.btn.is-on:focus-visible {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pay-badge.is-paid {
  background: #e5f6df;
  color: #1d6b2a;
}

.pay-badge.is-part {
  background: #fff4cc;
  color: #7a5b00;
}

.pay-badge.is-unpaid {
  background: #fde8e6;
  color: #8d1f1a;
}

.pay-warning {
  margin: 8px 0 0;
  color: #8d1f1a;
  font-weight: 700;
}

.cancel-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cancel-answer .pay-warning {
  margin: 0;
  flex: 1 1 220px;
}

.cancel-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cancel-answer form {
  margin: 0;
}

.order-pay-form,
.shop-account-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.order-pay-form label,
.shop-account-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-pay-form input,
.order-pay-form select,
.shop-account-form input,
.shop-account-form select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.order-status-set {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-set label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-prices-location select,
.admin-price-side select.is-blue,
.admin-price-side select.is-yellow {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-prices-location select.is-blue,
.admin-price-side select.is-blue {
  background: #d7e8ff;
  border-color: #3b82f6;
  color: #1d4f91;
}

.admin-prices-location select.is-yellow,
.admin-price-side select.is-yellow {
  background: #fff3b0;
  border-color: #e0b000;
  color: #6b5300;
}

.order-status-set select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

.order-list-table .admin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.order-list-table .admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-list-table .order-list-name strong {
  display: block;
}

.order-list-table .order-list-name .admin-sku {
  display: block;
  margin-top: 2px;
}

.order-list-table .order-list-qty small {
  display: block;
  color: var(--text-faint);
}

.order-qty-form input[type="number"] {
  width: 4.6rem;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-remove svg {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .order-list-wrap {
    overflow: visible;
    margin-top: 14px;
  }

  .order-list-table thead {
    display: none;
  }

  .order-list-table,
  .order-list-table > tbody {
    display: block;
    width: 100%;
  }

  .order-list-table > tbody > tr {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name  name  name  action"
      "thumb qty   price line  action";
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .order-list-table > tbody > tr > td {
    border: 0;
    padding: 0;
  }

  .order-list-thumb {
    grid-area: thumb;
    align-self: start;
  }

  .order-list-name {
    grid-area: name;
    min-width: 0;
  }

  .order-list-name strong,
  .order-list-name strong a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .order-list-name .admin-sku {
    display: none;
  }

  .order-list-qty { grid-area: qty; }
  .order-list-price { grid-area: price; }
  .order-list-line { grid-area: line; }

  .order-list-qty,
  .order-list-price,
  .order-list-line {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .order-list-qty::before,
  .order-list-price::before,
  .order-list-line::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .order-list-qty small {
    display: inline;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .order-list-line {
    color: var(--ink);
  }

  .order-list-action {
    grid-area: action;
    align-self: start;
  }

  .order-list-action .btn-tiny {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }
}

.admin-block-title {
  margin: 36px 0 14px;
  font-size: 1.2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}

.admin-stats .stat {
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f6f8;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.admin-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
  min-height: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.admin-link-count {
  flex: 0 0 auto;
  margin: 0;
  color: #b02028;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.admin-link-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-link-card strong {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.admin-link-body > span {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.3;
}

.admin-link-card:hover,
.admin-link-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

@media (max-width: 1400px) {
  .admin-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 480px) {
  .admin-links {
    grid-template-columns: 1fr;
  }
}

.admin-cat-add {
  margin: 0 0 22px;
}

.admin-cat-add .btn {
  margin-top: 12px;
}

.admin-cat-add-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.admin-cat-add-thumb {
  width: 72px;
  height: 72px;
  background: #111;
}

.admin-cat-add .file-field.has-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
}

.admin-cat-add .file-field.has-thumb.is-set img {
  object-fit: cover;
  padding: 0;
}

.admin-cat-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.admin-cat-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ecd9d9;
  border-radius: 14px;
  background: #fbf4f4;
  align-items: start;
}

.admin-cat-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-cat-side .admin-cat-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}

.admin-cat-side .admin-cat-actions .btn {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.admin-cat-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1;
  max-height: 88px;
}

.admin-cat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-cat-badge {
  position: absolute;
  z-index: 1;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  pointer-events: none;
}

.admin-cat-badge.is-custom {
  background: rgba(176, 32, 40, 0.9);
}

.admin-cat-body h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.admin-cat-form .field {
  margin-top: 6px;
}

.admin-cat-form .field span {
  font-size: 0.78rem;
}

.admin-cat-form input[type="text"] {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.88rem;
}

.admin-cat-body .muted {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.admin-cat-ar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-cat-ar-label .admin-cat-translate {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.file-field {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.file-field.has-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.admin-cat-preview.file-field {
  border: 0;
  border-radius: 14px;
}

.admin-cat-preview.file-field img {
  height: 100%;
  aspect-ratio: auto;
}

.file-field:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.admin-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1600px) {
  .admin-cat-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .admin-cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .admin-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-cat-preview {
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .admin-cat-side {
    display: contents;
  }

  .admin-cat-side .admin-cat-preview {
    order: 1;
  }

  .admin-cat-body {
    order: 2;
  }

  .admin-cat-side .admin-cat-actions {
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-cat-side .admin-cat-actions .btn {
    width: auto;
  }
}

@media (max-width: 640px) {
  .admin-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-cat-card {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .admin-cat-body h2 {
    font-size: 0.95rem;
  }

  .admin-cat-actions .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .admin-cat-add-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .admin-cat-add-thumb {
    width: 56px;
    height: 56px;
  }
}

.admin-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-top: 8px;
}

.admin-desk-grid .section-head {
  margin-bottom: 12px;
  align-items: center;
}

.admin-desk-grid .admin-block-title {
  margin: 0;
}

html.admin .admin-desk .admin-desk-grid > section,
html.admin .admin-desk .admin-map-panel {
  background: #f4f6f8;
}

html.admin .admin-desk .admin-desk-grid > section,
html.admin .admin-desk .admin-map-panel {
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

html.admin .admin-desk .admin-map-grid .admin-table-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-quote-toolbar {
  margin: 0 0 18px;
}

.admin-quote-start {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.admin-quote-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 8px 0 16px;
}

.admin-quote-shop label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: min(100%, 24rem);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-quote-shop select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.admin-quote-builder {
  display: grid;
  gap: 16px;
}

.admin-quote-builder .admin-receipt-find {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: end;
}

.admin-quote-builder .admin-receipt-find-list {
  grid-column: 1 / -1;
}

.admin-quote-line-qty,
.admin-quote-line-price {
  width: 5.5rem;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

.admin-quote-totals {
  justify-content: flex-end;
  gap: 16px;
}

.order-line-edit {
  display: grid;
  gap: 12px;
}

.order-line-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 25;
  justify-content: flex-start;
  margin: 4px -18px 0;
  padding: 12px 18px 14px;
  background: #f4f6f8;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(17, 17, 17, 0.06);
}

.admin-doc-bar {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 18px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(17, 17, 17, 0.08);
}

html.admin body:has(.admin-doc-bar) {
  padding-bottom: 188px;
}

.admin-doc-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-doc-totals .order-total {
  margin: 0;
  font-size: 1.25rem;
}

.admin-doc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.admin-doc-bar .order-actions,
.admin-doc-bar .order-pay-form {
  margin: 0;
}

.admin-doc-bar .order-status {
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.admin-doc-bar .order-status-gap {
  width: 8px;
}

.admin-doc-bar .order-status-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.admin-doc-bar .order-status-btn svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 861px) {
  html.admin:has(.admin-sidebar) .admin-doc-bar {
    left: var(--side-w);
  }
}

@media (max-width: 860px) {
  html.admin .admin-doc-bar {
    bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }

  html.admin body:has(.admin-doc-bar) {
    padding-bottom: calc(118px + 280px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 860px) {
  html.admin .order-card .order-line-edit-actions {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    margin-inline: -14px;
    padding-inline: 14px;
  }

  html.admin .order-line-edit-actions .btn {
    width: auto;
    flex: 1 1 auto;
    min-height: 44px;
  }
}

.order-change-summary {
  margin-top: 20px;
}

.order-change-summary .admin-block-title {
  margin-top: 8px;
}

.order-change-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.order-change-list > li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8fa;
}

.order-change-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.order-change-meta span {
  color: var(--text-faint);
}

.order-change-text {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.admin-quote-body {
  padding: 4px 2px 14px;
  color: var(--text-dim);
}

.admin-quote-body p {
  margin: 0 0 10px;
}

.admin-quote-reply {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-quote-reply > p {
  margin: 0;
}

.admin-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-quote-reply-text {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.admin-shop-login {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.admin-shop-login > p {
  margin: 0 0 8px;
}

.admin-shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.admin-shop-head > div {
  min-width: 0;
  flex: 1 1 240px;
}

.admin-shop-head h1,
.admin-shop-head .lead {
  margin: 0;
}

.admin-shop-head .lead {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.admin-shop-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.admin-shop-grid.is-profile {
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.8fr) minmax(240px, 1fr);
}

.admin-shop-grid.is-activity {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.admin-shop-grid.is-payments {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.admin-shop-grid.is-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.admin-shop-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-shop-card .admin-block-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.admin-shop-card p {
  margin: 0 0 8px;
}

.admin-shop-card.admin-shop-login,
.admin-shop-card .admin-shop-login {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-shop-card.admin-shop-login {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-shop-identity {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.admin-shop-card .shop-logo-preview {
  width: 56px;
  height: 56px;
  margin: 0;
  flex: 0 0 56px;
}

.admin-shop-card.admin-shop-place .shop-map {
  width: 100%;
  height: 280px;
  margin-top: 0;
}

.admin-shop-grid.is-profile .admin-shop-place-grid,
.admin-shop-grid.is-profile .admin-shop-place-grid.has-map {
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-shop-grid.is-profile .admin-shop-place-grid.has-map .admin-shop-place-facts {
  flex-direction: row;
}

.admin-shop-grid.is-profile .admin-shop-place .shop-logo-preview,
.admin-shop-grid.is-profile .admin-shop-logo-empty {
  width: 64px;
  height: 64px;
}

.admin-shop-grid.is-profile .admin-shop-place .shop-map {
  height: 150px;
}

.admin-shop-grid.is-profile .admin-shop-distance {
  font-size: 1rem;
}

.admin-shop-wa .admin-wa-templates {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-shop-grid.is-profile .admin-wa-compose.is-templates {
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-shop-grid.is-profile .admin-wa-compose.is-templates textarea {
  min-height: 88px;
  height: auto;
}

.admin-shop-side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.admin-shop-place-grid,
.admin-shop-place-grid.has-map {
  display: grid;
  gap: 16px;
  align-items: start;
}

.admin-shop-place-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-shop-place-grid.has-map {
  grid-template-columns: minmax(240px, 380px) minmax(280px, 1fr);
}

.admin-shop-place-facts {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.admin-shop-place-copy,
.admin-shop-map {
  min-width: 0;
}

.admin-shop-place-grid.has-map .admin-shop-place-facts {
  flex-direction: column;
}

.admin-shop-place .shop-logo-preview {
  width: 120px;
  height: 120px;
  flex: none;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.admin-shop-logo-empty {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 0 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted, #6b6b6b);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-shop-address {
  line-height: 1.45;
}

.admin-shop-distance {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-shop-place .shop-map {
  height: 280px;
}

.admin-shop-map-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.admin-shop-map-key i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-inline-start: 8px;
}

.admin-shop-map-key i:first-child {
  margin-inline-start: 0;
}

.admin-shop-map-key i.is-shop {
  background: #1d4f91;
}

.admin-shop-map-key i.is-us {
  background: #b02028;
}

.admin-settings {
  display: grid;
  gap: 12px;
}

.admin-settings-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 380px);
  gap: 12px;
  align-items: stretch;
}

.admin-settings-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-settings-map .shop-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

.admin-settings-map .shop-coords input {
  width: 100%;
  min-width: 0;
}

.admin-settings-map .shop-coords button {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-settings-map small {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.admin-settings-more {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.admin-settings-more > .admin-shop-card {
  grid-column: span 3;
}

.admin-settings-more > .admin-settings-hours,
.admin-settings-more > .admin-settings-prices,
.admin-settings-more > .admin-settings-invoice,
.admin-settings-more > .admin-settings-bands {
  grid-row: 2;
}

.admin-settings-more > .admin-settings-hours {
  grid-column: 1 / span 2;
}

.admin-settings-more > .admin-settings-prices {
  grid-column: 3 / span 2;
}

.admin-settings-more > .admin-settings-invoice {
  grid-column: 5 / span 2;
}

.admin-settings-more > .admin-settings-bands {
  grid-column: 7 / span 6;
}

.admin-settings-more .form-grid,
.admin-settings-more .admin-settings-contacts .form-grid {
  grid-template-columns: 1fr;
}

.admin-settings .admin-shop-card .form-grid {
  margin-top: 0;
}

.admin-settings .field input,
.admin-settings .field select,
.admin-settings .field textarea {
  width: 100%;
}

.admin-settings-contacts {
  display: grid;
  gap: 12px;
}

.admin-settings-contacts .form-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
}

.admin-hours {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.admin-hours th,
.admin-hours td {
  padding: 6px 10px 6px 0;
  text-align: start;
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-hours input[type="time"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  color-scheme: light;
}

.admin-hours input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

.admin-hours-day {
  width: 2.1rem;
}

.admin-hours-off {
  width: 2.6rem;
}

.admin-hours-time {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-hours .check {
  margin: 0;
  min-height: 0;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-settings-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.admin-invoice-preview {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  overflow: auto;
}

.admin-invoice-preview [hidden] {
  display: none !important;
}

.admin-invoice-preview .order-invoice {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #111;
}

.admin-invoice-preview .order-invoice-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111;
}

.admin-invoice-preview .order-invoice-head img {
  width: min(64mm, 100%);
  height: auto;
}

.admin-invoice-preview .order-invoice-id {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  max-width: 100%;
  text-align: right;
}

.admin-invoice-preview .order-invoice-head p,
.admin-invoice-preview .order-invoice-head span {
  display: block;
  margin: 0;
  text-align: right;
}

.admin-invoice-preview .order-invoice-head p {
  font-size: 11pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-invoice-preview .order-invoice-number,
.admin-invoice-preview .order-invoice-head strong {
  margin: 0;
  max-width: 100%;
  font-size: 13pt;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-invoice-preview .order-invoice-parties {
  margin-bottom: 18px;
}

.admin-invoice-preview .order-invoice-parties h2 {
  margin: 0 0 6px;
  font-size: 10pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-invoice-preview .order-invoice-parties strong,
.admin-invoice-preview .order-invoice-parties span {
  display: block;
}

.admin-invoice-preview .order-invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-invoice-preview .order-invoice-table th,
.admin-invoice-preview .order-invoice-table td {
  padding: 4px 2px;
  border-bottom: 1px solid #ddd;
  font-size: 8pt;
  text-align: left;
  vertical-align: top;
}

.admin-invoice-preview .order-invoice-table th:nth-child(n + 2),
.admin-invoice-preview .order-invoice-table td:nth-child(n + 2) {
  text-align: right;
  white-space: normal;
}

.admin-invoice-preview .order-receipt-item strong {
  display: block;
}

.admin-invoice-preview .order-receipt-sku {
  display: block;
  margin-top: 1px;
  color: #555;
  font-size: 8pt;
  font-weight: 600;
}

.admin-invoice-preview .order-invoice-band {
  margin-inline-end: 0.35em;
}

.admin-invoice-preview .order-invoice-total {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 12px 0 18px;
  font-size: 14pt;
  font-weight: 800;
}

.admin-invoice-preview .order-invoice-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 12px;
  text-align: center;
}

.admin-invoice-preview .order-invoice-barcode .order-receipt-barcode {
  width: min(70mm, 100%);
  height: 16mm;
}

.admin-invoice-preview .order-invoice-barcode .order-receipt-barcode rect {
  fill: #111;
}

.admin-invoice-preview .order-invoice-barcode p {
  margin: 2px 0 0;
  max-width: 100%;
  font-size: 8pt;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-invoice-preview .order-invoice-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 5px;
  border-top: 2px solid #111;
  text-align: start;
}

.admin-invoice-preview .order-invoice-qr {
  width: 22mm;
  height: 22mm;
  flex: 0 0 auto;
}

.admin-invoice-preview .order-receipt-site {
  display: block;
  font-size: 13pt;
  font-weight: 900;
  line-height: 1.1;
}

.admin-invoice-preview .order-receipt-foot span {
  display: block;
  margin-top: 1px;
  font-size: 8pt;
  font-weight: 700;
  line-height: 1.25;
}

.admin-settings-save {
  position: fixed;
  z-index: 35;
  right: 22px;
  bottom: 16px;
}

.admin-settings {
  padding-bottom: 56px;
}

@media (max-width: 860px) {
  .admin-settings-save {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .admin-settings {
    padding-bottom: 108px;
  }
}

.admin-settings .shop-map {
  height: 280px;
}

.admin-settings-map .shop-map {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 280px;
  margin: 0;
}

.admin-settings-more > .admin-shop-card {
  min-width: 0;
}

.admin-settings-more .admin-hours th,
.admin-settings-more .admin-hours td {
  padding: 3px 4px 3px 0;
  vertical-align: middle;
}

.admin-settings-more .admin-hours thead th {
  padding-bottom: 4px;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-settings-more .admin-hours tbody th {
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-settings-more .admin-hours thead th:last-child,
.admin-settings-more .admin-hours td:last-child {
  text-align: center;
}

.admin-band-table-wrap {
  overflow-x: auto;
  margin: 0 0 10px;
}

.admin-band-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-band-table th,
.admin-band-table td {
  padding: 4px 6px;
  text-align: start;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-band-table thead th {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-band-table input[type="number"] {
  width: 4.6rem;
  min-width: 0;
  min-height: 36px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.admin-band-letter {
  font-size: 0.95rem;
  text-align: center;
}

.admin-apply-markups {
  display: inline-flex;
  margin-inline-start: 14px;
}

.admin-band-table .check {
  margin: 0;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-settings-bands .btn-tiny {
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .admin-settings-more {
    grid-template-columns: 1fr 1fr;
  }

  .admin-settings-more > .admin-shop-card,
  .admin-settings-more > .admin-settings-hours,
  .admin-settings-more > .admin-settings-prices,
  .admin-settings-more > .admin-settings-invoice,
  .admin-settings-more > .admin-settings-bands {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-settings-map .shop-map {
    flex: none;
    height: 240px;
    min-height: 240px;
  }
}

@media (max-width: 800px) {
  .admin-settings-top,
  .admin-settings-more,
  .admin-settings-contacts .form-grid,
  .admin-settings .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-map,
  .admin-settings-more > .admin-shop-card,
  .admin-settings-more > .admin-settings-hours,
  .admin-settings-more > .admin-settings-prices,
  .admin-settings-more > .admin-settings-invoice,
  .admin-settings-more > .admin-settings-bands {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 800px) {
  .admin-shop-place-grid,
  .admin-shop-place-grid.has-map {
    grid-template-columns: 1fr;
  }

  .admin-shop-place .shop-map {
    height: 220px;
  }
}

.admin-shop-card .admin-wa-compose {
  max-width: none;
  margin: 8px 0 0;
}

html.admin .admin-shop-card .admin-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

html.admin .admin-shop-card .admin-stats .stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
}

html.admin .admin-shop-card .admin-stats .stat b {
  font-size: 1rem;
}

html.admin .admin-shop-card .admin-stats .stat b.admin-due {
  color: #b02028;
}

.admin-shop-card .order-pay-form,
.admin-shop-card .shop-account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}

.admin-shop-card .order-pay-form label,
.admin-shop-card .shop-account-form label,
.admin-shop-card .order-pay-form .is-wide,
.admin-shop-card .shop-account-form .is-wide,
.admin-shop-card .order-pay-form button,
.admin-shop-card .shop-account-form button {
  min-width: 0;
}

.admin-shop-card .order-pay-form .is-wide,
.admin-shop-card .shop-account-form .is-wide,
.admin-shop-card .order-pay-form button {
  grid-column: 1 / -1;
}

.admin-shop-card .shop-account-form button {
  justify-self: start;
  width: auto;
}

.admin-shop-card .order-pay-form input,
.admin-shop-card .order-pay-form select,
.admin-shop-card .shop-account-form input,
.admin-shop-card .shop-account-form select {
  width: 100%;
}

.admin-shop-ratings {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.82rem;
}

.admin-shop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-shop-card-head .admin-block-title {
  margin: 0;
}

.admin-shop-docs {
  display: grid;
  max-height: 280px;
  overflow: auto;
}

.admin-shop-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}

.admin-shop-doc:last-child {
  border-bottom: 0;
}

.admin-shop-doc strong {
  display: block;
}

.admin-shop-doc small {
  display: block;
  color: var(--text-dim);
  font-weight: 600;
}

.admin-shop-doc-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.admin-shop-doc-end form {
  margin: 0;
}

.admin-shop-payments .order-pay-form {
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}

.admin-shop-note {
  margin-top: 8px;
  font-size: 0.82rem;
}

.admin-shop-note summary {
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .admin-shop-grid.is-profile {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shop-grid.is-profile .admin-shop-place {
    grid-column: 1 / -1;
  }

  .admin-shop-grid.is-activity {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .admin-shop-grid.is-profile,
  .admin-shop-grid.is-activity,
  .admin-shop-grid.is-split,
  .admin-shop-grid.is-payments {
    grid-template-columns: 1fr;
  }

  .admin-shop-grid.is-profile .admin-shop-place {
    grid-column: auto;
  }
}

.admin-quote-login {
  margin: 8px 0;
}

.admin-quote-login code,
.admin-quote-reply form {
  margin-top: 8px;
}

.shop-logo-preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 8px 0;
}

.shop-logo-pick {
  position: relative;
  display: block;
  width: 160px;
  height: 160px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--bg-soft);
  cursor: pointer;
}

.shop-logo-pick.is-set {
  border-style: solid;
  border-color: var(--yellow);
}

.shop-logo-pick input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.shop-logo-pick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 12px;
  background: #fff;
  display: block;
  pointer-events: none;
}

.shop-logo-pick:not(.is-set) img {
  padding: 28px;
  background: transparent;
  opacity: 0.55;
}

.shop-place-logo:focus-within .shop-logo-pick {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.shop-logo-pick:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.shop-place-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 22px;
  align-items: start;
}

.shop-place-address,
.shop-place-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.shop-place-logo input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-place-logo .shop-logo-pick {
  width: 100%;
  height: 200px;
  margin-top: 0;
}

.shop-place-row .shop-map {
  height: 220px;
}

.shop-place-row .shop-coords {
  margin-top: 0;
}

@media (max-width: 720px) {
  .shop-place-row {
    grid-template-columns: 1fr;
  }
}

html.admin .admin-shop-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.shop-map {
  height: 320px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
}

.shop-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.shop-coords label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.shop-coords input {
  width: 140px;
}

.admin-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.admin-map-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-map-panel > .admin-block-title,
.admin-map-panel-head {
  margin: 0 0 6px;
}

.admin-map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-map-panel-head .admin-block-title {
  margin: 0;
  font-size: 0.95rem;
}

.admin-map-panel > .admin-block-title {
  font-size: 0.95rem;
}

.admin-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: 280px;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.admin-map-grid .admin-table-wrap {
  margin-top: 0;
  max-height: 288px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 4px 8px;
}

.admin-country-detail {
  margin: 8px 0 28px;
}

.admin-country-detail .section-head {
  margin-bottom: 8px;
}

.admin-country-detail > .section-head .admin-block-title {
  margin: 0;
}

.admin-country-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.admin-country-grid .admin-block-title {
  font-size: 1rem;
  margin: 0 0 8px;
}

.admin-country-grid .admin-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.admin-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.admin-country-item .admin-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.admin-country-item small {
  display: block;
}

@media (max-width: 980px) {
  .admin-stats,
  .admin-links,
  .admin-desk-grid,
  .admin-country-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-map-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .admin-stats,
  .admin-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-desk-grid,
  .admin-country-grid {
    grid-template-columns: 1fr;
  }

  .admin-map-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-stats .stat {
    padding: 12px 10px 10px;
  }

  .admin-link-card {
    min-height: 0;
    padding: 14px 12px;
  }
}

.order-card {
  margin: 0 0 22px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f6f8;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

.order-card-head > div {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.order-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.order-card-meta .order-total {
  margin: 0;
}

.order-card .admin-table-wrap {
  width: 100%;
}

.order-card-head h3 {
  margin: 0 0 4px;
}

.order-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-status {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.order-status-gap {
  width: 12px;
}

.order-status-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dim);
}

.order-status-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-status-btn.is-lit {
  background: rgba(176, 32, 40, 0.14);
  border-color: #b02028;
  color: #8e1820;
}

.order-status-btn.is-current {
  background: #b02028;
  border-color: #8e1820;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(176, 32, 40, 0.35);
}

.order-status-btn.is-hold.is-current {
  background: #f3d48a;
  border-color: #e0b84a;
}

.order-status-btn.is-deleted.is-current,
.order-status-btn.is-cancel.is-current {
  background: #f3c7c4;
  border-color: #d08a84;
  color: #8d1f1a;
}

.order-status-btn.is-paid.is-current {
  background: #1a7f37;
  border-color: #14662c;
  color: #fff;
  box-shadow: none;
  cursor: default;
}

.account-track {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-track li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.account-track li.is-on {
  color: var(--ink);
  font-weight: 800;
}

.account-track i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d5d5d5;
  flex: 0 0 auto;
}

.account-track li.is-on i {
  background: #1f8a5b;
}

.account-eta,
.account-track-note {
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dim);
}

.account-eta strong {
  color: var(--ink);
  font-weight: 800;
}

.account-track.is-large li,
.account-track.is-large + .account-eta,
.account-track.is-large + .account-track-note,
.account-track.is-large ~ .account-eta {
  font-size: 1.02rem;
}

.account-track.is-large {
  gap: 8px;
  margin-top: 8px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.account-actions form,
.account-status form {
  margin: 8px 0 0;
}

.account-actions form {
  margin: 0;
}

.admin-table-compact td:has(.order-status) {
  white-space: normal;
}

html.admin .admin-invoice-table td:has(.order-status) {
  white-space: nowrap;
}

.order-card-title .admin-order-barcode,
.order-card-title .order-status {
  flex: 0 0 auto;
}

.admin-tabs,
.admin-signout {
  display: none;
}

html.admin .admin-nav {
  display: flex;
}

html.admin .header-actions {
  display: flex;
}

html.admin .admin-header-tools {
  margin-inline-start: auto;
}

@media (max-width: 860px) {
  html.admin {
    --header-h: 62px;
  }

  html.admin body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  html.admin .header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  html.admin .header-inner {
    width: min(var(--max), calc(100% - 24px));
    gap: 12px;
  }

  html.admin .brand-admin {
    height: 36px;
  }

  .admin-desk-hero {
    flex-direction: column;
  }

  .admin-desk-qr img {
    width: min(320px, 100%);
    height: auto;
  }

  html.admin .admin-nav {
    display: none;
  }

  html.admin .admin-signout {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
  }

  html.admin .section {
    padding: 12px 0 8px;
  }

  html.admin .wrap {
    width: min(var(--max), calc(100% - 24px));
  }

  html.admin h1 {
    font-size: 1.25rem;
  }

  html.admin .lead {
    font-size: 0.88rem;
  }

  html.admin .admin-toolbar,
  html.admin .admin-toolbar .catalog-search,
  html.admin .admin-toolbar .btn {
    width: 100%;
  }

  html.admin .admin-toolbar .btn {
    min-height: 48px;
    justify-content: center;
  }

  html.admin .admin-toolbar input {
    font-size: 16px;
    min-height: 48px;
  }

  html.admin .admin-price-layout,
  html.admin .admin-price-editor {
    grid-template-columns: 1fr;
  }

  html.admin .admin-product-head {
    flex-direction: column;
  }

  html.admin .admin-product-head .admin-thumb-lg {
    width: 72px;
    height: 72px;
  }

  html.admin .order-card {
    padding: 14px 14px 6px;
    border-radius: 16px;
  }

  html.admin .order-card-head {
    flex-direction: column;
    gap: 8px;
  }

  html.admin .order-card .muted {
    overflow-wrap: anywhere;
  }

  html.admin .admin-sku {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.admin .admin-table-wrap {
    overflow: visible;
    margin-top: 12px;
  }

  html.admin .admin-table-wrap:has(.admin-table-compact) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) thead {
    display: none;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact),
  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody {
    display: block;
    width: 100%;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody > tr {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 1px 8px;
    width: 100%;
    margin: 0 0 6px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    line-height: 1;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody > tr > td {
    display: block;
    grid-column: 2;
    width: auto;
    border: 0;
    padding: 0;
    line-height: 1;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact):not(.admin-table-orders):not(.admin-table-prices) > tbody > tr > td:first-child {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    padding: 0;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody > tr > td[data-label] {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    align-items: start;
    gap: 0 8px;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody > tr > td[data-label]::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    grid-column: 1;
    grid-row: 1 / span 20;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-compact) > tbody > tr > td[data-label] > * {
    grid-column: 2;
    min-width: 0;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) > tbody > tr {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "thumb name  name  name  name  name"
      "thumb sku   band  qty   price line";
    column-gap: 6px;
    row-gap: 6px;
    align-items: center;
    padding: 10px;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-identity {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 0.95rem;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-id-grid {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 10px;
    align-items: end;
    overflow: visible;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-name,
  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-name strong {
    white-space: nowrap;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-check {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding-top: 0;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td.admin-orders-thumb {
    grid-area: thumb;
    align-self: start;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td.admin-orders-name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td.admin-orders-name strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td.admin-sku {
    grid-area: sku;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label="Band"] {
    grid-area: band;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label="Qty"] {
    grid-area: qty;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label="Price"] {
    grid-area: price;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label="Line"] {
    grid-area: line;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label],
  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td.admin-sku {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: start;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    min-width: 0;
  }

  html.admin .admin-table.admin-table-orders:not(.admin-table-form) > tbody > tr > td[data-label]::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-thumb {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: start;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-edit {
    grid-column: 3;
    grid-row: 2 / span 3;
    align-self: start;
    padding-top: 0;
  }

  html.admin .admin-table.admin-table-prices .admin-thumb,
  html.admin .admin-table.admin-table-orders .admin-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  html.admin .admin-table.admin-table-prices .admin-prices-edit .btn-tiny {
    width: auto;
    min-width: 44px;
    min-height: 44px;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td:last-child:has(.btn) {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-top: 2px;
  }

  html.admin .admin-table .btn-tiny {
    width: 100%;
    min-height: 28px;
    justify-content: center;
  }

  html.admin .admin-table .admin-wa {
    width: auto;
  }

  html.admin .admin-table-form thead {
    display: none;
  }

  html.admin .admin-table-form td {
    padding: 8px 0;
    border: 0;
  }

  html.admin .admin-table-form td:first-child {
    width: 7.25rem;
    padding-inline-end: 12px;
  }

  html.admin .admin-table-form input[type="number"] {
    width: 7rem;
    min-height: 32px;
    font-size: 16px;
  }

  html.admin .form {
    padding: 18px;
    border-radius: 20px;
  }

  html.admin .form:has(.admin-table-form) {
    padding: 12px 14px;
    border-radius: 16px;
  }

  html.admin .form .btn,
  html.admin .form button.btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  html.admin .form .admin-product-actions .btn {
    width: auto;
    flex: 0 1 auto;
  }

  html.admin .field input,
  html.admin .field select,
  html.admin .field textarea {
    font-size: 16px;
    min-height: 48px;
  }

  html.admin .admin-login {
    max-width: none;
    min-height: calc(100dvh - 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  html.admin:not(:has(.admin-tabs)) body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  html.admin .admin-login .brand-admin {
    height: 32px;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .admin-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .admin-tabs a.is-current {
    color: var(--ink);
  }

  .admin-tabs svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Order print — Xprinter C260M, 80mm thermal */
@media print {
  @page {
    size: 80mm auto;
    margin: 2mm;
  }

  @page invoice {
    size: A4;
    margin: 14mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    max-width: none !important;
  }

  body * {
    visibility: hidden;
  }

  .order-receipt.is-print-target,
  .order-receipt.is-print-target *,
  body.is-print-invoice .order-invoice.is-print-target,
  body.is-print-invoice .order-invoice.is-print-target * {
    visibility: visible;
  }

  .skip,
  .header,
  .footer,
  .app-tabs,
  .admin-tabs,
  .menu-btn,
  .kicker,
  .section > .wrap > h1,
  .section > .wrap > .lead,
  .section > .wrap > .admin-block-title,
  .form-note,
  .order-list-wrap,
  .order-total,
  .order-actions,
  .admin-doc-bar,
  .admin-nav,
  .admin-header-tools {
    display: none !important;
  }

  main.section {
    padding: 0 !important;
    margin: 0 !important;
  }

  main.section > .wrap {
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.is-print-qr main.section > .wrap {
    width: auto !important;
    max-width: none !important;
  }

  body.is-print-qr .admin-desk-qr,
  body.is-print-qr .admin-desk-qr * {
    visibility: visible !important;
  }

  body.is-print-qr .admin-desk-qr {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  body.is-print-qr .admin-desk-qr img {
    width: 320px !important;
    height: 320px !important;
    max-width: none !important;
    border: 0 !important;
  }

  body.is-print-qr .admin-desk-qr button {
    display: none !important;
  }

  body.is-print-invoice main.section > .wrap {
    width: auto !important;
    max-width: none !important;
  }

  body.is-print-invoice .order-receipt {
    display: none !important;
  }

  body.is-print-invoice .order-invoice.is-print-target {
    display: block !important;
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #111;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    page: invoice;
  }

  body.is-print-invoice .order-invoice-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px 24px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #111;
  }

  body.is-print-invoice .order-invoice-number {
    margin: 0;
    font-size: 16pt;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.is-print-invoice .order-invoice-head img {
    width: 64mm;
    height: auto;
  }

  body.is-print-invoice .order-invoice-id {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 16px;
    text-align: right;
  }

  body.is-print-invoice .order-invoice-head p,
  body.is-print-invoice .order-invoice-head span {
    display: block;
    text-align: right;
  }

  body.is-print-invoice .order-invoice-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0 12px;
    text-align: center;
  }

  body.is-print-invoice .order-invoice-barcode .order-receipt-barcode {
    width: 70mm;
    height: 16mm;
  }

  body.is-print-invoice .order-invoice-barcode .order-receipt-barcode rect {
    fill: #111;
  }

  body.is-print-invoice .order-invoice-barcode p {
    margin: 2px 0 0;
    font-size: 8pt;
    font-weight: 700;
  }

  body.is-print-invoice .order-invoice-head p {
    margin: 0;
    font-size: 11pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  body.is-print-invoice .order-invoice-head strong {
    font-size: 18pt;
  }

  body.is-print-invoice .order-invoice-parties {
    margin-bottom: 18px;
  }

  body.is-print-invoice .order-invoice-parties h2 {
    margin: 0 0 6px;
    font-size: 10pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.is-print-invoice .order-invoice-parties strong,
  body.is-print-invoice .order-invoice-parties span {
    display: block;
  }

  body.is-print-invoice .order-invoice-table {
    width: 100%;
    border-collapse: collapse;
  }

  body.is-print-invoice .order-invoice-table th,
  body.is-print-invoice .order-invoice-table td {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
  }

  body.is-print-invoice .order-invoice-table th:nth-child(n + 2),
  body.is-print-invoice .order-invoice-table td:nth-child(n + 2) {
    text-align: right;
    white-space: nowrap;
  }

  body.is-print-invoice .order-invoice-total {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 12px 0 18px;
    font-size: 14pt;
    font-weight: 800;
  }

  body.is-print-invoice .order-invoice-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8mm;
    margin-top: 18px;
    text-align: start;
  }

  body.is-print-invoice .order-invoice-qr {
    width: 22mm;
    height: 22mm;
    flex: 0 0 auto;
  }

  .order-card {
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .order-card-head,
  .order-card .admin-table-wrap {
    display: none !important;
  }

  .order-paid-stamp {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%) rotate(-14deg);
    border: 0.7mm solid #1a7a32;
    color: #1a7a32;
    padding: 1.2mm 3.5mm;
    text-align: center;
    line-height: 1.05;
    background: transparent;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .order-paid-stamp strong,
  .order-paid-stamp span {
    display: block;
    color: #1a7a32;
    font-weight: 800;
    text-transform: uppercase;
  }

  .order-paid-stamp strong {
    font-size: 16pt;
    letter-spacing: 0.16em;
  }

  .order-paid-stamp span {
    margin-top: 0.6mm;
    font-size: 7pt;
    letter-spacing: 0.04em;
  }

  .order-invoice .order-paid-stamp {
    border-width: 1.1mm;
    padding: 3mm 7mm;
  }

  .order-invoice .order-paid-stamp strong {
    font-size: 28pt;
  }

  .order-invoice .order-paid-stamp span {
    margin-top: 1.5mm;
    font-size: 11pt;
  }

  .order-receipt {
    display: none !important;
  }

  .order-receipt.is-print-target {
    display: block !important;
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 72mm;
    max-width: 72mm;
    margin: 0;
    padding: 0;
    color: #000;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.25;
  }

  .order-receipt-head {
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 2px solid #000;
  }

  .order-receipt-brand {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .order-receipt-brand td {
    padding: 0;
    border: 0;
    vertical-align: middle;
  }

  .order-receipt-logo-cell {
    width: auto;
  }

  .order-receipt-qr-cell {
    width: 12mm;
    text-align: end;
  }

  .order-receipt-logo {
    display: block;
    max-width: 100%;
    height: 32mm;
    object-fit: contain;
    object-position: left center;
    margin: 0;
  }

  .order-receipt-head strong {
    display: block;
    font-size: 14pt;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .order-receipt-head span {
    display: block;
    margin-top: 2px;
    font-size: 8pt;
    color: #333;
  }

  .order-receipt-title {
    margin: 0 0 8px;
    text-align: start;
    font-size: 11pt;
    font-weight: 800;
  }

  .order-receipt-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid #ccc;
  }

  .order-receipt-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .order-receipt-meta dt,
  .order-receipt-meta dd {
    margin: 0;
    font-size: 9pt;
  }

  .order-receipt-meta dt {
    color: #555;
    font-weight: 600;
  }

  .order-receipt-meta dd {
    text-align: end;
    font-weight: 700;
  }

  .order-receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 8px;
  }

  .order-receipt-table th,
  .order-receipt-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    text-align: start;
  }

  .order-receipt-item strong {
    display: block;
    font-size: 10pt;
    font-weight: 700;
    line-height: 1.2;
  }

  .order-receipt-sku {
    display: block;
    margin-top: 1px;
    font-size: 8pt;
    color: #555;
    font-weight: 600;
  }

  .order-receipt-sku[hidden],
  .order-invoice-band[hidden] {
    display: none !important;
  }

  .order-receipt-unit,
  .order-receipt-qty,
  .order-receipt-line {
    white-space: nowrap;
    font-size: 10pt;
    font-weight: 700;
  }

  .order-receipt-table th:nth-child(2),
  .order-receipt-table td:nth-child(2),
  .order-receipt-table th:nth-child(3),
  .order-receipt-table td:nth-child(3),
  .order-receipt-table th:nth-child(4),
  .order-receipt-table td:nth-child(4) {
    text-align: end;
  }

  html[lang="ar"] .order-receipt-table th:nth-child(4),
  html[lang="ar"] .order-receipt-table td:nth-child(4),
  html.is-ar .order-receipt-table th:nth-child(4),
  html.is-ar .order-receipt-table td:nth-child(4) {
    text-align: left;
  }

  .order-receipt-table th {
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
  }

  .order-charge-lines {
    margin: 8px 0 0;
    font-size: 9pt;
    font-weight: 600;
  }

  .order-charge-lines p {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0;
  }

  .order-charge-lines small {
    display: block;
    font-size: 8pt;
    font-weight: 600;
  }

  .order-receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding-top: 6px;
    border-top: 2px solid #000;
    font-size: 11pt;
    font-weight: 800;
  }

  .order-receipt-codes {
    margin: 6px 0 4px;
    text-align: center;
  }

  .order-receipt-barcode {
    display: block;
    width: 100%;
    height: 12mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .order-receipt-barcode rect {
    fill: #000;
  }

  .order-receipt-barcode-text {
    margin: 1px 0 4px;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0;
    color: #000;
    word-break: break-all;
  }

  .order-receipt-qr {
    display: block;
    width: 11mm;
    height: 11mm;
    max-width: 11mm;
    max-height: 11mm;
    margin: 0 0 0 auto;
    object-fit: contain;
  }

  .order-receipt-foot {
    margin: 6px 0 0;
    text-align: center;
    color: #000;
    border-top: 2px solid #000;
    padding-top: 5px;
  }

  .order-receipt-site {
    display: block;
    font-size: 13pt;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }

  .order-receipt-foot span {
    display: block;
    margin-top: 1px;
    font-size: 8pt;
    font-weight: 700;
    line-height: 1.25;
  }
}

.admin-alibaba-scan textarea {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.admin-alibaba-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 18px 0 12px;
}

.admin-alibaba-toolbar .field {
  min-width: 220px;
}

.admin-alibaba-import td input[type="text"],
.admin-alibaba-import td input[type="number"] {
  width: 100%;
  min-height: 34px;
  margin: 0 0 6px;
}

/* ==========================================================================
   Admin · Products (products.php) restyle
   ========================================================================== */
html.admin .admin-prices-page .admin-prices-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

html.admin .admin-prices-page h1 {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

html.admin .admin-prices-page .admin-list-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--text-dim);
  font-weight: 700;
}

.admin-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #b02028;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

h1 .admin-count-pill,
.admin-block-title .admin-count-pill {
  margin-inline-start: 8px;
  vertical-align: middle;
}

.admin-prices-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-prices-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* toolbar card */
.admin-prices-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f6f8;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.04);
}

.admin-prices-pager {
  margin: 18px 0 8px;
}

.admin-prices-search {
  display: flex;
  flex: 1 1 320px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-search-field {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.admin-search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.admin-search-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  outline: none;
}

.admin-search-field input:focus {
  border-color: #b02028;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176, 32, 40, 0.12);
}

.admin-prices-search .btn {
  min-height: 44px;
  border-radius: 12px;
}

.admin-prices-toolbar .admin-select-all {
  min-height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.admin-prices-toolbar .admin-select-all:hover {
  border-color: #b02028;
}

/* bulk bar */
html.admin .admin-prices-page .admin-bulk-bar {
  padding: 16px 18px;
  border: 1px solid rgba(176, 32, 40, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  box-shadow: 0 14px 34px rgba(176, 32, 40, 0.14);
}

html.admin .admin-prices-page .admin-bulk-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 1rem;
}

html.admin .admin-prices-page .admin-bulk-count strong {
  color: #b02028;
  font-size: 1.25rem;
}

html.admin .admin-prices-page .admin-bulk-count span {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-bulk-title {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b02028;
}

.admin-bulk-bar .field > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* quantity + price cells (all widths) */
.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stock-pill.is-in {
  background: #e6f6ec;
  color: #14753a;
}

.stock-pill.is-out {
  background: #fdeced;
  color: #b02028;
}

.qty-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.qty-num.is-zero {
  color: var(--text-faint);
  font-weight: 500;
}

.qty-num.is-short,
.qty-num.is-placed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 28px;
  padding: 0 8px;
  border: 2px solid #b02028;
  border-radius: 8px;
  background: #fff;
  color: #b02028;
  font-weight: 800;
}

.qty-num.is-short {
  animation: admin-on-order-border 1.15s ease-in-out infinite;
}

.qty-num.is-placed {
  animation: admin-on-order-fill 1.15s ease-in-out infinite;
}

@keyframes admin-on-order-border {
  0%, 100% { border-color: rgba(176, 32, 40, 0.35); box-shadow: 0 0 0 0 rgba(176, 32, 40, 0); }
  50% { border-color: #b02028; box-shadow: 0 0 0 3px rgba(176, 32, 40, 0.28); }
}

@keyframes admin-on-order-fill {
  0%, 100% { background: #fff; color: #b02028; }
  50% { background: #b02028; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .qty-num.is-short,
  .qty-num.is-placed {
    animation: none;
  }

  .qty-num.is-placed {
    background: #b02028;
    color: #fff;
  }
}

html.admin .admin-prices-page td.admin-prices-qty {
  text-align: center;
}

html.admin .admin-prices-page td.admin-prices-retail span {
  font-weight: 800;
}

html.admin .admin-prices-page td.admin-prices-cost span {
  color: #b02028;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html.admin .admin-prices-page td.admin-prices-band {
  font-weight: 700;
}

/* desktop table */
@media (min-width: 861px) {
  html.admin .admin-prices-page .admin-table-wrap:has(.admin-table-prices) {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(17, 17, 17, 0.05);
  }

  html.admin .admin-prices-page .admin-table-prices thead th {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    padding: 12px 8px;
    background: #f7f4f4;
    border-bottom: 2px solid #b02028;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: start;
  }

  html.admin .admin-prices-page .admin-table-prices thead th:first-child {
    border-top-left-radius: 15px;
  }

  html.admin .admin-prices-page .admin-table-prices thead th:last-child {
    border-top-right-radius: 15px;
  }

  html.admin .admin-prices-page .admin-table-prices thead th.admin-prices-qty {
    text-align: center;
  }

  html.admin .admin-prices-page .admin-table-prices tbody td {
    padding: 8px 8px;
    border-bottom: 1px solid #f0f1f4;
  }

  html.admin .admin-prices-page .admin-table-prices tbody tr:last-child td {
    border-bottom: 0;
  }

  html.admin .admin-prices-page .admin-table-prices tbody > tr.admin-prices-row {
    transition: background 0.15s ease;
  }

  html.admin .admin-prices-page .admin-table-prices tbody > tr.admin-prices-row:nth-child(even) {
    background: #fcfcfd;
  }

  html.admin .admin-prices-page .admin-table-prices tbody > tr.admin-prices-row:hover {
    background: #fdf3f3;
  }

  html.admin .admin-prices-page .admin-table-prices .admin-thumb {
    border: 1px solid var(--line);
    box-shadow: 0 2px 6px rgba(17, 17, 17, 0.06);
  }

  html.admin .admin-prices-page .admin-table-prices .admin-prices-name strong {
    font-size: 0.98rem;
    font-weight: 800;
  }

  html.admin .admin-prices-page .admin-table-prices .admin-prices-name small {
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  html.admin .admin-prices-page .admin-prices-id-grid .admin-sku span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text-dim);
  }

  html.admin .admin-prices-page .admin-table-prices tbody tr.admin-prices-row.is-bulk-selected {
    background: #fbe9ea;
    box-shadow: inset 3px 0 0 #b02028;
  }

  /* band columns read as a group */
  html.admin .admin-prices-page .admin-table-prices td.admin-prices-band,
  html.admin .admin-prices-page .admin-table-prices thead th:nth-last-child(-n + 4):not(:last-child) {
    text-align: right;
  }

  html.admin .admin-prices-page .admin-table-prices td.admin-prices-band {
    background: rgba(176, 32, 40, 0.035);
  }

  /* row action */
  html.admin .admin-prices-page .admin-prices-edit .btn-icon {
    border-radius: 10px;
  }
}

@media (max-width: 860px) {
  .admin-prices-toolbar {
    padding: 8px;
  }

  .admin-prices-toolbar .admin-select-all {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-prices-actions {
    width: 100%;
  }

  .admin-prices-actions .btn {
    flex: 1;
    justify-content: center;
  }

  html.admin .admin-prices-page .admin-prices-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-pill {
    height: 22px;
  }

  html.admin .admin-prices-page td.admin-prices-qty {
    text-align: start;
  }
}

/* Admin · product editor: prices in the side column, full-width description */
html.admin .admin-product-wrap {
  max-width: 1180px;
}

html.admin #product-form.is-deleted {
  position: relative;
}

html.admin .admin-deleted-stamp {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  z-index: 6;
  margin: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

html.admin .admin-deleted-stamp span {
  display: inline-block;
  transform: rotate(-18deg);
  font-size: clamp(5.5rem, 18vw, 11rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.85;
  text-transform: uppercase;
  color: rgba(176, 32, 40, 0.55);
}

html.admin .admin-price-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.admin-prices-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-prices-card .admin-table-wrap {
  margin-top: 0;
  overflow: visible;
}

html.admin .admin-prices-card .admin-table-form {
  width: 100%;
}

html.admin .admin-prices-card .admin-table-form thead {
  display: none;
}

html.admin .admin-prices-card .admin-table-form td {
  padding: 4px 0;
  border: 0;
}

html.admin .admin-prices-card .admin-table-form td:first-child {
  width: auto;
  padding-inline-end: 8px;
  font-size: 0.86rem;
  white-space: normal;
}

html.admin .admin-prices-card .admin-table-form td:last-child {
  width: 1%;
  white-space: nowrap;
}

html.admin .admin-prices-card .admin-table-form input[type="number"] {
  width: 5.6rem;
  max-width: 100%;
  min-height: 34px;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html.admin .admin-prices-card .admin-band-price {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html.admin .admin-prices-card .admin-band-price input[type="number"] {
  flex: 0 0 5.6rem;
  width: 5.6rem;
  max-width: 5.6rem;
  min-width: 0;
}

html.admin .admin-prices-card .admin-band-pct {
  flex: 0 0 3.4rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

html.admin .admin-prices-card .admin-band-pct.is-under {
  color: #b02028;
}

html.admin .admin-prices-card tr.is-cost td {
  color: #b02028;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

html.admin .admin-prices-card tr.is-cost + tr td {
  padding-top: 10px;
}

html.admin .admin-prices-card tr.is-cost small {
  font-weight: 600;
  letter-spacing: 0.02em;
}

html.admin .admin-prices-card tr.is-cost input[type="number"] {
  background: #fdecec;
  color: #b02028;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #b02028;
}

html.admin .admin-prices-card tr.is-desk td {
  color: #8a5a00;
}

html.admin .admin-prices-card tr.is-desk small {
  font-weight: 600;
  letter-spacing: 0.02em;
}

html.admin .admin-prices-card tr.is-desk input {
  color: var(--ink);
}

html.admin .admin-prices-card .admin-table-form input[type="number"].is-floored {
  box-shadow: inset 3px 0 0 #8a5a00;
}

html.admin .admin-prices-card .admin-table-form input[type="number"].is-held {
  box-shadow: inset 3px 0 0 #6d7c8c;
}

.admin-product-desc-row {
  margin-top: 18px;
}

.admin-product-desc-row .admin-product-desc {
  height: auto;
}

.admin-product-desc-row .admin-product-desc textarea,
.admin-product-desc-row .admin-product-desc .ck-editor__editable {
  min-height: 340px;
}

@media (max-width: 860px) {
  html.admin .admin-price-layout {
    grid-template-columns: 1fr;
  }

  html.admin .admin-prices-card .admin-table-form td {
    display: table-cell;
  }
}

/* Admin prices · mobile cards: identity block wraps cleanly, checkbox stays top-right */
@media (max-width: 860px) {
  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-id-grid {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 4px;
    min-height: 0;
    padding-inline-end: 34px;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-name {
    min-height: 0;
    justify-content: flex-start;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-name strong {
    position: static;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
    line-height: 1.25;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) .admin-prices-id-grid .admin-color-swatch {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-check {
    align-self: start;
    padding: 0;
    width: auto;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) td.admin-prices-check input {
    width: 22px;
    height: 22px;
  }
}

/* Admin prices · "select all" lives in the table header */
html.admin .admin-select-all-head {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}

html.admin .admin-select-all-head span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.admin .admin-prices-page .admin-table-prices thead th.admin-prices-check {
  text-align: center;
}

/* mobile cards: header row is hidden, so keep a slim bar with only "Select all" */
@media (max-width: 860px) {
  html.admin .admin-table.admin-table-prices:not(.admin-table-form) > thead {
    display: block;
    margin-bottom: 10px;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) > thead > tr {
    display: block;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) > thead > tr > th:not(.admin-prices-check) {
    display: none;
  }

  html.admin .admin-table.admin-table-prices:not(.admin-table-form) > thead > tr > th.admin-prices-check {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    text-align: start;
  }

  html.admin .admin-table.admin-table-prices .admin-select-all-head {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
  }

  html.admin .admin-table.admin-table-prices .admin-select-all-head span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  html.admin .admin-table.admin-table-prices .admin-select-all-head input {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 861px) {
  html.admin .admin-table.admin-table-prices thead th.admin-prices-check {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
  }
}

/* Product page · same item in other colours */
.color-options {
  margin: 0 0 18px;
}

.color-options-label {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.color-options ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.color-option i {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.25);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

a.color-option:focus-visible,
a.color-option:active {
  border-color: var(--yellow);
  background: #fffbe6;
}

@media (hover: hover) {
  a.color-option:hover {
    border-color: var(--yellow);
    background: #fffbe6;
    transform: translateY(-1px);
  }
}

.color-option.is-current {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: default;
}

/* Admin product · English and Arabic names each get their own row */
html.admin .form-grid > .field.field-row {
  grid-column: 1 / -1;
}

/* Homepage categories · show the whole picture on a white tile, label underneath */
.cats .cat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cats .cat img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.cats .cat.is-logo img {
  padding: 18%;
  background: #111;
}

.cats .cat-body {
  position: static;
  inset: auto;
  padding: 4px 16px 16px;
  color: var(--ink);
  text-shadow: none;
}

.cats .cat-body h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.1rem;
}

.cats .cat-body p {
  color: var(--text-dim);
  font-size: 0.86rem;
}

@media (hover: hover) {
  .cats .cat:hover {
    border-color: var(--yellow);
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
  }

  .cats .cat:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 640px) {
  .cats .cat img {
    padding: 6px;
  }

  .cats .cat-body {
    padding: 2px 12px 12px;
  }

  .cats .cat-body h3 {
    font-size: 0.98rem;
  }
}

/* Default placeholder (logo) for items without a photo: whole logo with generous margins */
.product-photo img[src*="/assets/img/logo/"],
.product-stage img[src*="/assets/img/logo/"] {
  object-fit: contain;
  padding: 24%;
}

.product-thumb img[src*="/assets/img/logo/"] {
  object-fit: contain;
  padding: 14%;
}

body.is-catalog .product-grid.is-list .product-photo img[src*="/assets/img/logo/"] {
  padding: 20%;
}

/* Homepage categories · tint the ones with no items yet */
.cats .cat.is-empty {
  background: #f1f2f4;
  border-style: dashed;
  box-shadow: none;
}

.cats .cat.is-empty img {
  filter: grayscale(1);
  opacity: 0.4;
  background: transparent;
}

.cats .cat.is-empty .cat-body h3 {
  color: var(--text-dim);
}

.cats .cat.is-empty .cat-body p {
  color: var(--text-faint);
}

@media (hover: hover) {
  .cats .cat.is-empty:hover {
    border-color: var(--line);
    box-shadow: none;
  }

  .cats .cat.is-empty:hover img {
    transform: none;
  }
}

/* "On offer" buttons / filter */
.btn-offer {
  gap: 8px;
  border: 2px solid var(--yellow);
  background: #fffbe6;
  color: var(--ink);
}

.btn-offer svg {
  flex: none;
}

.btn-offer:active,
.btn-offer:focus-visible {
  background: var(--yellow);
}

@media (hover: hover) {
  .btn-offer:hover {
    background: var(--yellow);
    transform: translateY(-1px);
  }
}

.catalog-nav-offer::before {
  content: "%";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.catalog-nav-offer.is-on::before {
  background: var(--ink);
  color: var(--yellow);
}

/* Product page · "Hot Offer" mark */
.hot-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #e53935);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.28);
}

.hot-offer-badge svg {
  flex: none;
}

/* Recently viewed strip */
.recent-viewed {
  margin: 36px 0 8px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.recent-viewed .wrap {
  padding-block: 0;
}

.recent-title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.recent-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.recent-list li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.recent-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 104px;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.recent-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  transition: border-color 0.15s ease;
}

.recent-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-photo img[src*="/assets/img/logo/"] {
  object-fit: contain;
  padding: 22%;
}

.recent-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.recent-item:active .recent-photo,
.recent-item:focus-visible .recent-photo {
  border-color: var(--yellow);
}

@media (hover: hover) {
  .recent-item:hover {
    transform: translateY(-2px);
  }

  .recent-item:hover .recent-photo {
    border-color: var(--yellow);
  }
}

@media (max-width: 640px) {
  .recent-item {
    width: 88px;
  }
}

html body .recent-viewed h2.recent-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* Condensed catalog pager (shown above and below the grid) */
.catalog-results > .pager {
  margin: 0 0 18px;
}

.catalog-results > .pager ~ .pager {
  margin: 28px 0 0;
}

.pager {
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.pager .pill {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  justify-content: center;
  text-align: center;
}

.pager .pager-arrow {
  padding: 0;
}

.pager .pager-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pager-gap {
  color: var(--muted, #777);
  padding: 0 2px;
  user-select: none;
}

html[dir="rtl"] .pager-arrow svg {
  transform: scaleX(-1);
}

@media (max-width: 480px) {
  .pager {
    gap: 4px;
  }

  .pager .pill {
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 6px;
  }
}

/* Header search icon -> catalog search field */
.nav-search {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-search:hover,
.nav-search:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.nav-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-search {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

html.admin .nav-search {
  display: none;
}

/* Admin contacts */
html.admin .admin-contacts-page .admin-prices-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

html.admin .admin-contacts-page h1 {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

html.admin .admin-contacts-page .admin-list-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--text-dim);
  font-weight: 700;
}

.admin-contacts-page .admin-prices-search {
  flex: 1 1 100%;
}

.admin-contacts-page .admin-prices-search .btn {
  min-height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.admin-contact-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-contact-types .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}

.admin-contact-types .pill b {
  font-size: 0.78rem;
  opacity: 0.7;
}

.admin-contact-form-box {
  margin: 0 0 22px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-contact-form-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.admin-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-contact-actions .btn {
  min-height: 44px;
  border-radius: 12px;
}

.admin-contact-actions .admin-contact-delete {
  margin-inline-start: auto;
  color: var(--danger);
  border-color: currentColor;
}

.admin-contact-form textarea {
  width: 100%;
  resize: vertical;
}

.admin-contact-shop {
  position: relative;
  z-index: 5;
  font-size: 0.8rem;
  font-weight: 800;
  color: #b02028;
}

html.admin .admin-table-compact .admin-contact-login {
  position: relative;
  z-index: 5;
  white-space: normal;
  min-width: 190px;
}

.admin-contact-login {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.admin-contact-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-contact-login-actions form {
  margin: 0;
}

@media (max-width: 860px) {
  html.admin .admin-contacts-page .admin-prices-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .admin-contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-contacts-page .admin-prices-search {
    flex-wrap: wrap;
  }

  .admin-contact-actions .btn {
    flex: 1 1 auto;
  }
}

/* Admin contacts · activity */
.admin-activity {
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-activity-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.admin-activity-title small {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-activity-form {
  display: grid;
  grid-template-columns: 130px 1fr 210px auto;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f6f8;
}

.admin-activity-form select,
.admin-activity-form input {
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.admin-activity-form .btn {
  min-height: 44px;
  border-radius: 12px;
}

.admin-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f6f8;
  overflow: hidden;
}

.admin-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.admin-activity-item:first-child {
  border-top: 0;
}

.admin-activity-kind {
  flex: 0 0 82px;
  padding: 4px 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-activity-item.kind-order .admin-activity-kind,
.admin-activity-item.kind-payment .admin-activity-kind {
  background: #b02028;
  color: #fff;
}

.admin-activity-body {
  flex: 1;
  min-width: 0;
}

.admin-activity-body p {
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}

.admin-activity-body small {
  color: var(--text-dim);
}

.admin-activity-body a {
  color: inherit;
  font-weight: 700;
}

.admin-activity-del {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.admin-activity-del:hover {
  background: var(--bg-soft);
  color: var(--danger);
}

@media (max-width: 760px) {
  .admin-activity-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-activity-form input[name="summary"] {
    grid-column: 1 / -1;
    order: 3;
  }

  .admin-activity-form .btn {
    grid-column: 1 / -1;
    order: 4;
  }
}

/* Admin contacts · photo and documents */
.admin-contact-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-contact-photo p {
  margin: 2px 0 6px;
}

.admin-contact-avatar {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px dashed var(--line);
  background: var(--bg-soft);
  cursor: pointer;
}

.admin-contact-avatar.is-set {
  border-style: solid;
  border-color: #b02028;
}

.admin-contact-avatar input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-contact-avatar:not(.is-set) img {
  object-fit: contain;
  padding: 18px;
  opacity: 0.5;
}

.admin-contact-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-contact-tags-hint {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 0.82rem;
}

.admin-contact-thumb {
  float: inline-start;
  width: 36px;
  height: 36px;
  margin-inline-end: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-documents {
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-documents .admin-doc-form {
  grid-template-columns: 190px 1fr minmax(0, 1fr) auto;
}

.admin-documents .admin-doc-form input[type="file"] {
  padding: 9px 10px;
}

.admin-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f6f8;
  overflow: hidden;
}

.admin-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.admin-doc-item:first-child {
  border-top: 0;
}

.admin-doc-item .admin-activity-kind {
  flex-basis: 120px;
  padding-inline: 8px;
}

@media (max-width: 760px) {
  .admin-documents .admin-doc-form {
    grid-template-columns: 1fr;
  }

  .admin-doc-item .admin-activity-kind {
    flex-basis: 96px;
  }
}

/* About Us + public team */
.about-wrap {
  max-width: 900px;
}

.about-hero {
  padding-bottom: 24px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.startup-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 196, 0, 0.4), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(176, 32, 40, 0.38), transparent 42%),
    linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
  color: #fff;
}

.startup-hero-inner {
  max-width: 760px;
}

.startup-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 999px;
  background: rgba(245, 196, 0, 0.12);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.startup-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.startup-tag {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 1.15rem;
  font-weight: 800;
}

.startup-hero p {
  margin: 0 0 12px;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.82);
}

.startup-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.startup-price-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.startup-block {
  padding-top: 56px;
  padding-bottom: 56px;
}

.startup-block-soft {
  background: var(--yellow-soft);
}

.startup-block-dark {
  background: #161616;
  color: #fff;
}

.startup-block-dark h2,
.startup-block-dark h3,
.startup-block-dark .lead,
.startup-block-dark .startup-features strong {
  color: #fff;
}

.startup-block-dark p,
.startup-block-dark .startup-features span {
  color: rgba(255, 255, 255, 0.78);
}

.startup-prose {
  max-width: 760px;
}

.startup-prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.startup-prose h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.startup-prose .lead {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
}

.startup-prose p {
  margin: 0 0 14px;
}

.startup-pull {
  padding: 14px 18px;
  border-inline-start: 4px solid var(--yellow);
  background: rgba(245, 196, 0, 0.1);
  font-weight: 800;
}

.startup-block-dark .startup-pull {
  background: rgba(245, 196, 0, 0.12);
  color: #fff;
}

.startup-pack-grid,
.startup-features,
.startup-steps {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

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

.startup-pack-grid li,
.startup-features li,
.startup-steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.startup-block-dark .startup-features li {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.startup-pack-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1rem;
}

.startup-pack-grid h3,
.startup-steps h3,
.startup-features strong {
  display: block;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.startup-pack-grid p,
.startup-steps p,
.startup-features span {
  margin: 0;
  color: var(--text-dim);
}

.startup-pack-end {
  max-width: 760px;
  margin-top: 22px;
}

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

.startup-steps {
  counter-reset: none;
}

.startup-steps li {
  position: relative;
}

.startup-steps b {
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.startup-close {
  padding-top: 56px;
  padding-bottom: 40px;
  background: var(--bg-soft);
}

.startup-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.startup-close .form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.startup-close .form h3 {
  margin: 0 0 16px;
}

.startup-disclaimer {
  max-width: 760px;
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .startup-pack-grid,
  .startup-features,
  .startup-close-grid {
    grid-template-columns: 1fr;
  }

  .startup-hero {
    padding: 36px 0 32px;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.04);
  text-align: center;
}

.team-card h3 {
  margin: 14px 0 2px;
  font-size: 1.1rem;
}

.team-card p {
  margin: 0;
}

.team-role {
  color: var(--text-dim);
  font-weight: 700;
}

.team-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  background: var(--bg-soft);
}

.team-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.team-contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.team-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.team-contact .team-avatar {
  flex: 0 0 auto;
  border-width: 2px;
  font-size: 1rem;
}

.team-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-contact-info span {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.team-contact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.team-contact-title {
  margin: 20px 0 0;
  font-weight: 800;
}

.team-contact-title + .team-contact-list {
  margin-top: 10px;
}

.team-contact {
  flex-wrap: wrap;
}

.team-contact-info {
  flex: 1 1 110px;
}

/* Admin products · phones: one compact row — thumb, name + SKU, stock, select */
@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr.admin-prices-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0 10px;
    margin: 0 0 6px;
    padding: 6px 8px;
    min-height: 0;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr.admin-prices-row > td {
    grid-row: 1;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-location,
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-qty:not(:has(.stock-pill)),
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-retail,
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-cost,
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-band,
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-edit,
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-color-swatch,
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-name small,
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-promo-badge {
    display: none !important;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-thumb {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-identity {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.88rem;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-id-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
    padding: 0;
    min-height: 0;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-name strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-id-grid .admin-sku span {
    font-size: 0.72rem;
    color: var(--text-faint);
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-qty:has(.stock-pill) {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-qty::before {
    display: none;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-check {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 2;
  }
}

/* Admin product editor · barcode scan */
.admin-product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-product-title-row h1 {
  margin-bottom: 6px;
}

.admin-scan-link {
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.admin-scan-dialog {
  width: min(440px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg, #fff);
  color: inherit;
}

.admin-scan-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.admin-scan-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-scan-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #111;
}

.admin-scan-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-scan-aim {
  position: absolute;
  inset: 30% 10%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.admin-scan-status {
  margin: 0;
  font-size: 0.86rem;
}

.admin-scan-thumb {
  cursor: pointer;
}

.admin-scan-thumb img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: #fff;
}

.admin-scan-thumb input {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 20px;
  height: 20px;
}

.admin-scan-thumb:has(input:not(:checked)) img {
  opacity: 0.35;
}

.admin-prices-search .admin-search-scan {
  flex: 0 0 auto;
  padding-inline: 12px;
}

/* Admin product editor · scan text from camera into a field */
.admin-text-scan {
  width: min(760px, calc(100vw - 16px));
}

.admin-text-scan [hidden] {
  display: none !important;
}

.admin-text-scan-stage:has(.admin-text-scan-shot:not([hidden])) {
  aspect-ratio: auto;
  background: #000;
}

.admin-text-scan-shot {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.admin-text-scan-shot canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
}

.admin-text-scan-boxes {
  position: absolute;
  inset: 0;
}

.admin-text-scan-word {
  position: absolute;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 214, 0, 0.95);
  border-radius: 4px;
  background: rgba(255, 214, 0, 0.18);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.admin-text-scan-word:hover {
  background: rgba(255, 214, 0, 0.35);
}

.admin-text-scan-word.is-picked {
  border-color: #b02028;
  background: rgba(176, 32, 40, 0.45);
}

.admin-text-scan input[data-ts-value] {
  width: 100%;
  min-height: 42px;
  font-weight: 700;
}

.admin-text-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-text-scan-actions [data-ts-use] {
  margin-inline-start: auto;
}

/* Admin products · phones: icon-only buttons beside the title */
@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  html.admin .admin-prices-page .admin-prices-actions {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  html.admin .admin-prices-page .admin-prices-actions .btn {
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  html.admin .admin-prices-page .admin-prices-actions .btn svg {
    width: 20px;
    height: 20px;
  }

  html.admin .admin-prices-page .admin-prices-actions .admin-btn-label {
    display: none;
  }
}

/* Admin products · phones: search bar and bulk-edit inputs fit the screen */
@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-toolbar,
  html.admin .admin-prices-page .admin-prices-search {
    width: 100%;
    min-width: 0;
  }

  html.admin .admin-prices-page .admin-prices-search {
    flex: 1 1 100%;
    gap: 6px;
  }

  html.admin .admin-prices-page .admin-search-field input {
    min-height: 42px;
    padding-inline: 36px 10px;
    font-size: 16px;
  }

  html.admin .admin-prices-page .admin-search-field svg {
    left: 11px;
  }

  html.admin .admin-prices-page .admin-prices-search .btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 12px;
  }

  html.admin .admin-prices-page .admin-bulk-bar {
    max-height: calc(100vh - var(--header-h) - 12px);
    max-height: calc(100dvh - var(--header-h) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
  }

  html.admin .admin-prices-page .admin-bulk-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html.admin .admin-prices-page .admin-bulk-bands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html.admin .admin-prices-page .admin-bulk-bar .field {
    min-width: 0;
  }

  html.admin .admin-prices-page .admin-bulk-bar .field > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.admin .admin-prices-page .admin-bulk-bar input,
  html.admin .admin-prices-page .admin-bulk-bar select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 16px;
  }

  html.admin .admin-prices-page .admin-bulk-bar > .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  html.admin .admin-prices-page .admin-bulk-bands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin product editor · columns may shrink below their content so nothing runs off small screens */
html.admin .admin-product-wrap .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.admin .admin-product-wrap .admin-price-layout > *,
html.admin .admin-product-wrap .form-grid > *,
html.admin .admin-product-wrap .field {
  min-width: 0;
}

html.admin .admin-product-wrap .field input:not([type="checkbox"]):not([type="radio"]),
html.admin .admin-product-wrap .field select,
html.admin .admin-product-wrap .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html.admin .admin-product-wrap .admin-product-desc .ck.ck-editor {
  max-width: 100%;
}

html.admin .admin-product-wrap .admin-product-desc .ck.ck-toolbar__items {
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  html.admin .admin-product-wrap .admin-price-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  html.admin .admin-product-wrap .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.admin .admin-product-wrap .field input:not([type="checkbox"]):not([type="radio"]),
  html.admin .admin-product-wrap .field select {
    font-size: 16px;
  }

  html.admin .admin-product-wrap .admin-product-head {
    min-width: 0;
  }

  html.admin .admin-product-wrap .admin-product-head > div {
    min-width: 0;
  }

  html.admin .admin-product-wrap .admin-product-head h1 {
    overflow-wrap: anywhere;
  }
}

/* Admin · saving overlay with spinning Ali-Cell icon */
.admin-saving {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.admin-saving.is-on {
  display: flex;
  animation: admin-saving-in 0.18s ease-out;
}

dialog .admin-saving {
  position: absolute;
  z-index: 30;
  border-radius: inherit;
}

.admin-saving-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(280px, calc(100vw - 48px));
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.16);
}

.admin-saving-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  animation: admin-saving-spin 1.1s linear infinite;
}

.admin-saving-label {
  margin: 0;
  font-weight: 800;
  color: var(--text-dim);
}

.admin-saving-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.admin-saving-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5c400, #b02028);
  animation: admin-saving-bar 1.2s ease-in-out infinite;
}

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

@keyframes admin-saving-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes admin-saving-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-saving-logo {
    animation-duration: 3s;
  }
}

/* Admin · receiving stock against supplier invoices */
.admin-receive-new,
.admin-receipt-form,
.admin-receipt-payments,
.admin-stock-history {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.admin-receive-new-grid,
.admin-receipt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.admin-receive-new-grid .field,
.admin-receipt-form-grid .field {
  min-width: 0;
  margin: 0;
}

.admin-receive-new-grid :is(input, select),
.admin-receipt-form-grid :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
}

/* Inputs lighter than the soft form panel */
html.admin .admin-receive-new :is(input, select, textarea),
html.admin .admin-receipt-form :is(input, select, textarea),
html.admin .admin-receipt-payments :is(input, select, textarea),
html.admin .admin-receipt-add :is(input, select),
html.admin .admin-receipt-line :is(input, select) {
  background: #fff;
}

html.admin .admin-receive-new :is(input, select, textarea):focus,
html.admin .admin-receipt-form :is(input, select, textarea):focus,
html.admin .admin-receipt-payments :is(input, select, textarea):focus,
html.admin .admin-receipt-add :is(input, select):focus,
html.admin .admin-receipt-line :is(input, select):focus {
  background: #fff;
}

.admin-receive-new [hidden],
.admin-receipt-page [hidden] {
  display: none !important;
}

.admin-receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}

.admin-receipt-main,
.admin-receipt-side {
  min-width: 0;
}

.admin-receipt-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-receipt-side .admin-receipt-form,
.admin-receipt-side .admin-receipt-payments {
  margin: 0;
}

.admin-receipt-side .admin-receipt-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .admin-receipt-layout {
    grid-template-columns: 1fr;
  }
}

.admin-receipt-notes-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: start;
}

.admin-receipt-notes {
  margin: 0;
  min-width: 0;
}

.admin-receipt-notes textarea {
  min-height: 96px;
}

.admin-receipt-doc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.admin-receipt-doc-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
}

.admin-receipt-doc-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.admin-receipt-doc-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  opacity: 0.35;
}

.admin-receipt-doc-thumb.is-set img {
  opacity: 1;
}

.admin-receipt-doc-thumb.is-file img {
  opacity: 0.2;
  object-fit: contain;
  padding: 12px;
}

.admin-receipt-doc-hint {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-receipt-doc-hint.is-file {
  color: #b02028;
  font-size: 0.95rem;
}

.admin-receipt-doc-thumb.is-set:not(.is-file) .admin-receipt-doc-hint {
  display: none;
}

.admin-receipt-doc-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  word-break: break-word;
}

.admin-receipt-doc-current a {
  color: #b02028;
  font-weight: 700;
  text-decoration: none;
}

.admin-receipt-doc-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 0.72rem;
  cursor: pointer;
}

.admin-receipt-doc-help {
  color: var(--text-faint);
  font-size: 0.72rem;
}

@media (max-width: 520px) {
  .admin-receipt-notes-row {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 10px;
  }

  .admin-receipt-doc-thumb {
    width: 80px;
    height: 80px;
  }

  .admin-receipt-notes textarea {
    min-height: 80px;
  }
}

.admin-receive-h2 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
}

.admin-receive-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-receive-filter {
  display: flex;
  gap: 8px;
}

.admin-receipt-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
  background: #e8f6ec;
  color: #1c7c3c;
}

.admin-receipt-status.is-open {
  background: #fff6d6;
  color: #8a6400;
}

.admin-due {
  color: #b02028;
}

.admin-paid {
  color: #1c7c3c;
}

.admin-receipt-head h1 {
  margin-bottom: 4px;
}

.admin-receipt-add {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
}

.admin-receipt-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.admin-receipt-find {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.admin-receipt-find input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font: inherit;
  font-size: 16px;
}

.admin-receipt-find-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.14);
}

.admin-receipt-find-list li.muted {
  padding: 10px;
}

.admin-receipt-find-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.admin-receipt-find-list button:hover {
  background: var(--bg-soft);
}

.admin-receipt-find-list img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}

.admin-receipt-find-list span {
  display: grid;
  min-width: 0;
}

.admin-receipt-find-list strong,
.admin-receipt-find-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-receipt-find-list small {
  color: var(--text-faint);
}

.admin-receipt-addqty {
  display: grid;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
}

.admin-receipt-addqty input {
  width: 76px;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
}

.admin-receipt-msg {
  min-height: 1.4em;
  margin: 4px 2px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c7c3c;
}

.admin-receipt-msg.is-error {
  color: #b02028;
}

.admin-receipt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 6px 2px 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.admin-receipt-lines {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.admin-receipt-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto auto auto 34px;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: background 0.4s ease;
}

.admin-receipt-line.is-flash {
  background: #fff6d6;
}

.admin-receipt-line:hover {
  background: #f3f6fb;
}

.admin-receipt-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-receipt-grip:active,
.admin-receipt-line.is-dragging .admin-receipt-grip {
  cursor: grabbing;
}

.admin-receipt-line.is-dragging {
  background: #d7e8ff;
  box-shadow: inset 3px 0 0 #3b82f6;
  opacity: 1;
  transition: none;
}

.admin-receipt-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.admin-receipt-name {
  display: grid;
  min-width: 0;
}

.admin-receipt-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-receipt-name small {
  color: var(--text-faint);
  font-size: 0.76rem;
}

.admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) {
  display: grid;
  gap: 2px;
  font-size: 0.86rem;
}

.admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) > span:first-child {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.admin-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.admin-stepper button {
  width: 34px;
  border: 0;
  background: var(--bg-soft);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-stepper input {
  width: 56px;
  min-height: 36px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  -moz-appearance: textfield;
}

.admin-stepper input::-webkit-inner-spin-button,
.admin-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-receipt-cost input {
  width: 86px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
}

.admin-receipt-loc select {
  min-height: 38px;
  border-radius: 10px;
}

.admin-receipt-line-total strong {
  white-space: nowrap;
}

.admin-receipt-remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #b02028;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-receipt-totals {
  display: grid;
  gap: 4px;
  max-width: 420px;
  margin: 0 0 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-receipt-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-receipt-totals dt,
.admin-receipt-totals dd {
  margin: 0;
}

.admin-receipt-totals dd {
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.admin-receipt-totals .is-total {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.admin-receipt-totals .is-match dd {
  color: #1c7c3c;
  font-weight: 700;
}

.admin-receipt-totals .is-diff dd {
  color: #b02028;
  font-weight: 700;
}

.admin-receipt-paylist {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.admin-receipt-paylist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
}

.admin-receipt-pay-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

html.admin a.btn.is-in-expenses {
  border-color: #1a7f37;
  background: #1a7f37;
  color: #fff;
}

html.admin a.btn.is-in-expenses:hover,
html.admin a.btn.is-in-expenses:focus-visible {
  border-color: #14632b;
  background: #14632b;
  color: #fff;
}

.admin-receipt-paylist form {
  margin: 0;
}

.admin-receipt-pay-expense {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-receipt-payform {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
}

.admin-receipt-payform .field {
  min-width: 0;
  margin: 0;
}

.admin-receipt-payform :is(input, select) {
  width: 100%;
  min-width: 0;
}

.admin-stock-history ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.admin-stock-history li {
  display: grid;
  grid-template-columns: 52px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-stock-delta {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-stock-delta.is-in {
  color: #1c7c3c;
}

.admin-stock-delta.is-out {
  color: #b02028;
}

@media (max-width: 760px) {
  .admin-receipt-line {
    grid-template-columns: 44px auto auto auto minmax(0, 1fr) 34px;
  }

  .admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) {
    grid-row: 2;
  }

  .admin-receipt-thumb { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .admin-receipt-name { grid-column: 2 / 6; grid-row: 1; }
  .admin-receipt-remove { grid-column: 6; grid-row: 1; }
  .admin-receipt-qty { grid-column: 2; }
  .admin-receipt-cost { grid-column: 3; }
  .admin-receipt-loc { grid-column: 4; }
  .admin-receipt-line-total { grid-column: 5 / 7; justify-self: end; }

  .admin-receipt-thumb img {
    width: 44px;
    height: 44px;
  }

  .admin-receipt-cost input {
    width: 72px;
  }

  .admin-stepper button {
    width: 30px;
  }

  .admin-stepper input {
    width: 44px;
  }

  .admin-receipt-totals {
    max-width: none;
  }

  .admin-stock-history li {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .admin-stock-history time {
    grid-column: 3;
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .admin-receipt-add {
    top: calc(var(--header-h) - 4px);
  }

  .admin-receipt-scan {
    flex: 1 1 100%;
    justify-content: center;
  }

  .admin-receipt-form-grid,
  .admin-receive-new-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-receipt-form-grid :is(input, select, textarea),
  .admin-receive-new-grid :is(input, select) {
    font-size: 16px;
  }
}

.admin-receipt-new {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}

.admin-receipt-find-list .admin-receipt-create {
  display: block;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  color: #b02028;
  font-weight: 800;
}

/* Admin product editor · burst camera with square photos */
button.admin-product-thumb-add {
  font: inherit;
  cursor: pointer;
}

.admin-product-thumb-add span {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.admin-camera {
  width: min(560px, calc(100vw - 16px));
}

.admin-camera-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 64vh;
  margin: 0 auto;
  border-radius: 12px;
  background: #111;
}

.admin-camera-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.admin-camera-stage video.is-mirror {
  transform: scaleX(-1);
}

.admin-camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.admin-camera-flash.is-on {
  animation: admin-camera-flash 0.35s ease-out;
}

@keyframes admin-camera-flash {
  from { opacity: 0.85; }
  to { opacity: 0; }
}

.admin-camera-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.admin-camera-controls [data-cam-flip] {
  justify-self: start;
}

.admin-camera-shutter {
  width: 72px;
  height: 72px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #b02028;
  box-shadow: 0 0 0 3px #b02028, 0 6px 18px rgba(176, 32, 40, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.admin-camera-shutter:active {
  transform: scale(0.92);
}

.admin-camera-last {
  justify-self: end;
}

.admin-camera-last img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.25);
}

.admin-camera-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.admin-camera-strip:empty {
  display: none;
}

.admin-camera-strip img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
}

/* A stretched link on a table row covers the page in iPad Safari, which does not
   treat the row as a positioning box. Touch uses the row click handler instead. */
@media (max-width: 860px), (pointer: coarse) {
  .admin-table-compact a.admin-row-link::after,
  html.admin .admin-table.admin-table-prices a.admin-row-link::after,
  html.admin .admin-desk .admin-viewed-table .admin-country-item::after {
    content: none;
  }
}

/* Admin products · quick sell / receive around the stock count */
.admin-quick-stock {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.admin-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-quick-btn.is-sell {
  color: #b02028;
}

.admin-quick-btn.is-receive {
  color: #1c7c3c;
}

.admin-quick-btn:hover:not(:disabled) {
  border-color: currentColor;
  background: var(--bg-soft);
}

.admin-quick-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

html.admin .admin-table-prices tr.is-quick-flash {
  animation: admin-quick-flash 1.4s ease-out;
}

@keyframes admin-quick-flash {
  from { background-color: #fff6d6; }
  to { background-color: transparent; }
}

.admin-quick-dialog {
  width: min(420px, calc(100vw - 24px));
}

.admin-quick-dialog.is-sell .admin-scan-head strong {
  color: #b02028;
}

.admin-quick-dialog.is-receive .admin-scan-head strong {
  color: #1c7c3c;
}

.admin-quick-dialog [hidden] {
  display: none !important;
}

.admin-quick-product {
  display: grid;
  gap: 2px;
  margin: 0;
}

.admin-quick-product small {
  color: var(--text-faint);
}

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

.admin-quick-grid .field {
  min-width: 0;
  margin: 0;
}

.admin-quick-amount-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-quick-amount-label [data-quick-cost] {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-quick-grid :is(input:not([name="qty"]), select) {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}

.admin-quick-grid .admin-stepper input {
  width: 100%;
  min-width: 48px;
}

.admin-quick-receipt,
.admin-quick-note,
.admin-quick-customer,
.admin-quick-invoice {
  grid-column: 1 / -1;
}

.admin-quick-dialog .admin-scan-status.is-error {
  color: #b02028;
  font-weight: 700;
}

@media (max-width: 640px) {
  .admin-quick-btn {
    width: 32px;
    height: 32px;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-quick-stock .stock-pill {
    min-width: 30px;
    justify-content: center;
  }
}

/* Header search icon jumps here: keep the field clear of the fixed header */
#catalog-search,
.catalog-toolbar {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Product card: colour and lowest wholesale price share one line; the whole card is the link */
.product-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: 2px;
}

.product-line .product-color {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-line .card-price {
  margin-inline-start: auto;
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 800;
  color: #c4161c;
  white-space: nowrap;
}

.product-line .card-price small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
  opacity: 0.8;
}

html[lang="ar"] .product-line .card-price,
html.is-ar .product-line .card-price {
  font-size: 1rem;
  line-height: 1.3;
}

.admin-stats .stat span small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
}

/* Management Desk: vertical menu + full-width content on desktop */
.admin-sidebar {
  display: none;
}

@media (min-width: 861px) {
  html.admin {
    --side-w: 224px;
  }

  html.admin:has(.admin-sidebar) body {
    padding-left: var(--side-w);
  }

  html.admin:has(.admin-sidebar) .header {
    margin-left: calc(var(--side-w) * -1);
    width: calc(100% + var(--side-w));
  }

  html.admin:has(.admin-sidebar) .header-inner {
    width: calc(100% - 40px);
    max-width: none;
  }

  html.admin .admin-nav {
    display: none;
  }

  html.admin .admin-tabs {
    display: none;
  }

  html.admin .wrap {
    width: calc(100% - 56px);
    max-width: none;
  }

  .admin-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    z-index: 40;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    width: var(--side-w);
    padding: 14px 12px 16px;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--line);
  }

  .admin-side-nav,
  .admin-side-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .admin-side-foot {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .admin-side-foot .admin-desk-qr {
    margin: 12px 4px 0;
    gap: 8px;
    align-items: stretch;
  }

  .admin-side-foot .admin-desk-qr a {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .admin-side-foot .admin-desk-qr a::before {
    display: none;
  }

  .admin-side-foot .admin-desk-qr img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
  }

  .admin-side-foot .admin-desk-qr .btn {
    width: 100%;
  }

  .admin-side-label {
    margin: 14px 10px 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  .admin-side-label:first-child {
    margin-top: 2px;
  }

  .admin-sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dim);
  }

  .admin-sidebar a svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #b02028;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .admin-sidebar a:hover,
  .admin-sidebar a:focus-visible {
    background: var(--bg-soft);
    color: var(--ink);
  }

  .admin-sidebar a.is-current {
    background: #fdeced;
    color: #b02028;
  }

  .admin-sidebar a.is-current::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 3px;
    background: #b02028;
  }

  .admin-side-count {
    margin-inline-start: auto;
    min-width: 1.45em;
    height: 1.45em;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #b02028;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
  }
}

@keyframes adminMenuFlash {
  0%, 100% {
    background: #fff4f4;
    color: #b02028;
  }
  50% {
    background: #b02028;
    color: #fff;
  }
}

.admin-sidebar a.is-alert,
.admin-tabs a.is-alert,
html.admin .admin-nav a.is-alert {
  animation: adminMenuFlash 1.15s ease-in-out infinite;
}

.admin-sidebar a.is-alert svg,
.admin-tabs a.is-alert svg {
  stroke: currentColor;
}

.admin-sidebar a.is-alert .admin-side-count {
  background: #fff;
  color: #b02028;
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar a.is-alert,
  .admin-tabs a.is-alert,
  html.admin .admin-nav a.is-alert {
    animation: none;
    background: #fdeced;
    color: #b02028;
  }
}

@media print {
  .admin-sidebar {
    display: none !important;
  }

  body.is-print-qr .admin-sidebar {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body.is-print-qr .admin-side-nav,
  body.is-print-qr .admin-side-foot > a {
    display: none !important;
  }

  html.admin:has(.admin-sidebar) body {
    padding-left: 0 !important;
  }

  html.admin:has(.admin-sidebar) .header {
    margin-left: 0 !important;
    width: auto !important;
  }
}

@media (min-width: 861px) {
  html.admin .admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

/* Large screens: every row of an admin list is a single line */
@media (min-width: 1100px) {
  html.admin .admin-table:not(.admin-table-form) th,
  html.admin .admin-table:not(.admin-table-form) td {
    white-space: nowrap;
  }

  html.admin .admin-table-compact th:first-child,
  html.admin .admin-table-compact td:first-child {
    white-space: nowrap;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.admin .admin-table:not(.admin-table-form) td br {
    display: none;
  }

  html.admin .admin-table:not(.admin-table-form) td > br + span,
  html.admin .admin-table:not(.admin-table-form) td > br + a:not(.btn) {
    margin-inline-start: 10px;
    color: var(--text-dim);
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td small,
  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td strong {
    display: inline;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td small {
    margin-inline-start: 8px;
  }

  html.admin .admin-contact-thumb {
    vertical-align: middle;
    margin-inline-end: 8px;
  }

  /* Products: thumbnail, SKU, colour, name and category on one line */
  html.admin .admin-table-prices .admin-thumb {
    width: 48px;
    height: 48px;
  }

  html.admin .admin-table-prices th,
  html.admin .admin-table-prices td {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  html.admin .admin-prices-id-grid {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 0;
  }

  html.admin .admin-prices-id-grid .admin-sku {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 240px;
  }

  html.admin .admin-table-prices td.admin-sku span,
  html.admin .admin-prices-id-grid .admin-sku span {
    display: inline;
  }

  html.admin .admin-table-prices td.admin-sku small,
  html.admin .admin-prices-id-grid .admin-color-swatch,
  html.admin .admin-color-swatch {
    margin-top: 0;
    white-space: nowrap;
  }

  html.admin .admin-table-prices .admin-prices-name {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  html.admin .admin-table-prices .admin-prices-name strong {
    position: static;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
  }

  html.admin .admin-table-prices .admin-prices-name small {
    display: inline;
    margin: 0;
    white-space: nowrap;
  }

  /* The item cell takes whatever width is left; long names are cut with an ellipsis */
  html.admin .admin-table-prices td.admin-prices-identity {
    white-space: nowrap;
    width: 100%;
    max-width: 0;
    min-width: 540px;
    overflow: hidden;
  }

  html.admin .admin-prices-id-grid {
    overflow: hidden;
  }

  html.admin .admin-table-prices tbody td:not(.admin-prices-identity) {
    vertical-align: middle;
  }
}

@media (min-width: 1100px) {
  html.admin body.admin-wide .admin-table-compact th,
  html.admin body.admin-wide .admin-table-compact td {
    padding: 10px 10px;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td {
    max-width: 300px;
  }

  html.admin .admin-table:not(.admin-table-form):not(.admin-table-prices) td:first-child {
    max-width: 440px;
  }
}

/* Contacts: type icons, WhatsApp icon, readable active filter */
.admin-contact-types .pill .type-icon {
  flex: 0 0 auto;
  margin-inline-end: 2px;
}

html.admin .admin-contact-types .pill {
  color: var(--text);
}

html.admin .admin-contact-types .pill:hover,
html.admin .admin-contact-types .pill:focus-visible {
  border-color: #b02028;
  color: #b02028;
}

html.admin .admin-contact-types .pill.is-on {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

html.admin .admin-contact-types .pill.is-on b {
  opacity: 0.85;
  color: #fff;
}

.admin-type-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-type-cell .type-icon {
  color: var(--text-faint);
}

.admin-phone-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html.admin .admin-wa-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}

html.admin .admin-wa-icon:hover,
html.admin .admin-wa-icon:focus-visible {
  background: #25d366;
  color: #fff;
}

/* Contacts: red type icon in front of the row */
html.admin .admin-row-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-inline-end: 10px;
  border-radius: 8px;
  vertical-align: middle;
  color: #b02028;
  background: rgba(176, 32, 40, 0.1);
}

html.admin .admin-row-type .type-icon {
  width: 18px;
  height: 18px;
}

/* Desk: stat and link cards stay in 3 columns on small screens */
@media (max-width: 980px) {
  html.admin .admin-stats,
  html.admin .admin-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html.admin .admin-stats,
  html.admin .admin-links {
    gap: 8px;
  }

  html.admin .admin-stats .stat {
    padding: 10px 8px 9px;
    border-radius: 14px;
  }

  html.admin .admin-stats .stat b {
    font-size: 1.35rem;
  }

  html.admin .admin-stats .stat span {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  html.admin .admin-link-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
    border-radius: 12px;
    gap: 6px;
  }

  html.admin .admin-link-count {
    font-size: 1.55rem;
  }

  html.admin .admin-link-card strong {
    font-size: 0.88rem;
  }

  html.admin .admin-link-body > span {
    font-size: 0.74rem;
  }
}

/* Admin tables: more vertical breathing room between rows */
@media (min-width: 861px) {
  html.admin .admin-table:not(.admin-table-form) th,
  html.admin .admin-table:not(.admin-table-form) td {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  html.admin .admin-table-compact th,
  html.admin .admin-table-compact td,
  html.admin body.admin-wide .admin-table-compact th,
  html.admin body.admin-wide .admin-table-compact td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

/* Desk: title and QR stay side by side on small screens */
@media (max-width: 860px) {
  html.admin .admin-desk-hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  html.admin .admin-desk-hero > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  html.admin .admin-desk-hero h1 {
    font-size: 1.7rem;
  }

  html.admin .admin-desk-qr {
    gap: 8px;
  }

  html.admin .admin-desk-qr img {
    width: 88px;
    height: 88px;
  }

  html.admin .admin-desk-qr .btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* Desk tables stay compact on a narrow window */
@media (max-width: 860px) {
  html.admin .admin-desk .admin-table-compact th,
  html.admin .admin-desk .admin-table-compact td {
    padding: 2px 4px;
    font-size: 0.7rem;
    white-space: normal;
  }

  html.admin .admin-map-grid .admin-table th,
  html.admin .admin-map-grid .admin-table td,
  html.admin .admin-map-grid .admin-table td:first-child {
    white-space: normal;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    width: auto;
    text-align: start;
  }
}

/* Desk: country flags sit beside the name */
html.admin .admin-flag {
  display: inline-block;
  width: 24px;
  height: 18px;
  margin-inline-end: 10px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
}

/* Categories: compact "Translate" button, add-form fits phone screens */
html.admin .admin-cat-ar-label .admin-cat-translate,
html.admin .admin-cat-add .admin-cat-ar-label .admin-cat-translate {
  margin: 0;
  min-height: 24px;
  height: 24px;
  padding: 0 9px;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

@media (max-width: 640px) {
  html.admin .admin-cat-add-row {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: end;
  }

  html.admin .admin-cat-add-row > .field:last-child {
    grid-column: 1 / -1;
  }

  html.admin .admin-cat-ar-label {
    min-height: 24px;
  }
}

html.admin .form button.btn.admin-cat-translate,
html.admin .admin-cat-form button.btn.admin-cat-translate {
  width: auto;
  min-height: 24px;
  height: 24px;
  padding: 0 9px;
  flex: 0 0 auto;
}

html.admin .admin-prices-id-grid .admin-sku .admin-sku-model,
html.admin .admin-receipt-name .admin-sku-model,
html.admin .admin-receipt-find-list .admin-sku-model {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  line-height: 1.25;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  html.admin .admin-prices-id-grid .admin-sku .admin-sku-model,
  html.admin .admin-receipt-name .admin-sku-model,
  html.admin .admin-receipt-find-list .admin-sku-model {
    font-size: 0.85rem;
  }
}

/* Admin · product editor: activity column + Sell / Receive */
html.admin .admin-product-wrap.has-activity {
  max-width: 1560px;
}

.admin-product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-product-main {
  min-width: 0;
}

@media (min-width: 1280px) {
  .admin-product-wrap.has-activity .admin-product-page {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .admin-product-side {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

.admin-product-activity {
  min-width: 0;
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-activity-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-activity-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.3;
}

.admin-activity-row:first-child {
  border-top: 0;
}

.admin-activity-row.is-new {
  animation: admin-activity-flash 1.6s ease-out;
}

@keyframes admin-activity-flash {
  from { background: #fff4c2; }
  to { background: transparent; }
}

.admin-activity-row .admin-stock-delta {
  text-align: right;
}

.admin-activity-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-activity-body small {
  display: block;
  margin-top: 1px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.admin-activity-move {
  margin-top: 4px;
}

.admin-activity-move select {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 3px 4px;
  font-size: 0.75rem;
  line-height: 1.3;
}

.admin-activity-row time {
  max-width: 76px;
  color: var(--text-faint);
  font-size: 0.72rem;
  text-align: right;
  white-space: normal;
}

.admin-activity-delete {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #b02028;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.admin-activity-delete:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-activity-empty {
  margin: 0;
  font-size: 0.86rem;
}

.admin-product-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.admin-quick-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  border: 0;
}

.admin-quick-top.is-sell {
  background: #b02028;
}

.admin-quick-top.is-receive {
  background: #1c7c3c;
}

.admin-quick-top:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-product-quick-stock {
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* Admin · SKU label printing */
.admin-label-dialog {
  width: min(420px, calc(100vw - 24px));
}

.admin-label-preview {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 4px 0 12px;
  padding: 6px;
  border-radius: 10px;
  background: #eceff3;
}

.admin-label-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  min-height: 60px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  image-rendering: pixelated;
}

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

.admin-label-grid .field[hidden] {
  display: none;
}

.admin-label-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 4px;
  font-size: 0.9rem;
}

.admin-label-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.admin-label-actions .btn-gold {
  flex: 1 1 100%;
}

.admin-label-actions .btn-ghost {
  flex: 1 1 0;
  justify-content: center;
}

.admin-label-darkness {
  margin: 8px 0 4px;
}

.admin-label-darkness[hidden] {
  display: none;
}

.admin-label-actions [data-label-bt] {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-label-actions [data-label-bt][hidden] {
  display: none;
}

.admin-saving.is-determinate .admin-saving-bar span {
  animation: none;
  transform: none;
  transition: width 0.2s ease-out;
}

.admin-saving-pct {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.admin-saving-pct:empty {
  display: none;
}

.admin-product-photo-col {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

html.admin .admin-product-head .admin-head-camera {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
}

@media (max-width: 860px) {
  html.admin .admin-product-head .admin-head-camera {
    width: 72px;
    height: 72px;
  }
}

/* Image library */
.admin-library-upload {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.admin-library-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 170px;
  padding: 24px;
  text-align: center;
  border: 2px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.admin-library-drop strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.admin-library-drop:hover,
.admin-library-drop.is-over {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.admin-library-auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.admin-library-progress[hidden] {
  display: none;
}

.admin-library-progress .admin-saving-bar {
  height: 8px;
  background: var(--line);
}

.admin-library-progress .admin-saving-bar span {
  width: 0;
  animation: none;
  transform: none;
  transition: width 0.2s ease-out;
}

.admin-library-progress p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.admin-library-queue {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-library-queue:empty {
  display: none;
}

.admin-library-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.admin-library-job-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.admin-library-job.is-done {
  border-color: rgba(31, 138, 91, 0.3);
}

.admin-library-job.is-linked {
  border-color: rgba(31, 138, 91, 0.45);
  background: rgba(31, 138, 91, 0.06);
  color: var(--ok);
}

.admin-library-job.is-error {
  border-color: rgba(194, 71, 58, 0.4);
  background: rgba(194, 71, 58, 0.06);
  color: var(--danger);
}

.admin-library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-library-tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
}

.admin-library-tabs a span {
  margin-left: 4px;
  color: var(--text-faint);
}

.admin-library-tabs a.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.admin-library-tabs a.is-current span {
  color: rgba(255, 255, 255, 0.7);
}

.admin-library-search {
  display: flex;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 440px;
}

.admin-library-search input {
  flex: 1;
  min-width: 0;
}

.admin-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.admin-library-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.admin-library-item.is-selected {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.admin-library-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.15);
  cursor: pointer;
}

.admin-library-pick input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-library-thumb {
  display: block;
  aspect-ratio: 1;
  background: var(--bg-soft);
}

.admin-library-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-library-item figcaption {
  display: grid;
  gap: 3px;
  padding: 8px 10px 10px;
  font-size: 0.8rem;
}

.admin-library-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.admin-library-badge {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(31, 138, 91, 0.1);
  color: var(--ok);
  font-weight: 600;
  text-decoration: none;
}

.admin-library-empty {
  padding: 40px 0;
  text-align: center;
}

.admin-library-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.admin-library-bar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(17, 17, 17, 0.06);
}

.admin-library-bar[hidden] {
  display: none;
}

.admin-library-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-library-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-library-attach {
  position: relative;
  flex: 1 1 240px;
}

.admin-library-attach input {
  width: 100%;
}

.admin-library-attach .admin-receipt-find-list {
  top: auto;
  bottom: calc(100% + 6px);
}

@media (max-width: 860px) {
  .admin-library-bar {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 12px;
  }

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

  .admin-library-search {
    max-width: none;
  }
}

/* Admin login: keep the card at a fixed readable width (not the full-width admin layout) */
html.admin .wrap.admin-login {
  width: min(420px, calc(100% - 24px));
  max-width: 420px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  html.admin .wrap.admin-login {
    width: min(420px, calc(100% - 24px));
    max-width: 420px;
    margin-top: 0 !important;
  }
}

/* Products: Deleted status (hidden, kept 30 days) */
.admin-deleted-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.admin-deleted-switch:empty {
  display: none;
}

html.admin .admin-deleted-badge {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(176, 32, 40, 0.1);
  color: #b02028;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

html.admin .admin-deleted-badge.is-ready {
  background: #b02028;
  color: #fff;
}

.admin-bulk-deleted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

html.admin .admin-bulk-deleted-actions .admin-danger {
  color: #b02028;
  border-color: #b02028;
}

html.admin .admin-bulk-deleted-actions .admin-danger:hover {
  background: #b02028;
  color: #fff;
}

/* Products: category filter next to the Deleted button */
.admin-cat-filter {
  margin: 0;
}

html.admin .admin-cat-filter select {
  min-height: 34px;
  max-width: 100%;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

html.admin .admin-cat-filter select.is-on {
  border-color: #b02028;
  color: #b02028;
}

@media (max-width: 860px) {
  html.admin .admin-cat-filter {
    flex: 1 1 180px;
  }

  html.admin .admin-cat-filter select {
    width: 100%;
  }
}

/* Products: Deleted button + category filter sit in the search toolbar row */
.admin-prices-toolbar .admin-deleted-switch {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.admin-prices-toolbar .admin-prices-search {
  flex: 1 1 360px;
  min-width: 0;
}

.admin-deleted-note {
  margin: -6px 0 14px;
}

@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-toolbar .admin-deleted-switch {
    flex: 1 1 100%;
    flex-wrap: nowrap;
  }

  html.admin .admin-prices-page .admin-prices-toolbar .admin-cat-filter {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.admin-prices-toolbar .admin-deleted-switch .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Sliding rows: native scrolling + scroll buttons */
.product-promo-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.product-promo-track-wrap::-webkit-scrollbar {
  display: none;
}

.product-promo-track {
  will-change: auto;
  transform: none;
}

.scroll-ctl {
  position: relative;
  min-width: 0;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.scroll-btn[hidden] {
  display: none;
}

.scroll-btn.is-left {
  left: 6px;
}

.scroll-btn.is-right {
  right: 6px;
}

.scroll-btn:hover:not(:disabled),
.scroll-btn:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.scroll-ctl-sm .scroll-btn {
  width: 28px;
  height: 28px;
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.22);
}

.scroll-ctl-sm .scroll-btn svg {
  width: 14px;
  height: 14px;
}

.scroll-ctl-sm .scroll-btn.is-left {
  left: 2px;
}

.scroll-ctl-sm .scroll-btn.is-right {
  right: 2px;
}

@media (max-width: 640px) {
  .scroll-btn {
    width: 34px;
    height: 34px;
  }
}

/* Products filter bar: category + warehouse selects share one form */
.admin-cat-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 860px) {
  html.admin .admin-cat-filter select {
    flex: 1 1 140px;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-toolbar .admin-deleted-switch {
    flex-wrap: wrap;
  }

  html.admin .admin-prices-page .admin-prices-toolbar .admin-cat-filter {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  html.admin .admin-prices-page .admin-cat-filter select {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-toolbar .admin-deleted-switch,
  html.admin .admin-prices-page .admin-prices-toolbar .admin-cat-filter {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* Product photo navigation buttons in yellow */
.photo-lightbox-nav,
.product-thumbs + .scroll-btn,
.scroll-ctl:has(> .product-thumbs) .scroll-btn {
  background: var(--yellow);
  border: 0;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible,
.scroll-ctl:has(> .product-thumbs) .scroll-btn:hover:not(:disabled),
.scroll-ctl:has(> .product-thumbs) .scroll-btn:focus-visible {
  background: #ffd633;
  color: var(--ink);
}

/* Products table: Color has its own column */
html.admin .admin-table-prices td.admin-prices-color {
  vertical-align: bottom;
  white-space: nowrap;
}

html.admin .admin-table-prices td.admin-prices-color .admin-color-swatch {
  display: inline-flex;
  margin-top: 0;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-color,
  html.admin .admin-prices-page .admin-table.admin-table-prices > thead th:has(a[href*="sort=color"]) {
    display: none !important;
  }
}

html.admin .admin-table-prices td.admin-prices-color {
  width: 150px;
  max-width: 150px;
}

html.admin .admin-table-prices td.admin-prices-color .admin-color-swatch {
  display: flex;
  max-width: 100%;
}

html.admin .admin-table-prices td.admin-prices-color .admin-color-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Brand shown in uppercase red in front of the product name */
html.admin .admin-prices-name strong .admin-brand-tag {
  display: inline;
  margin: 0 4px 0 0;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Products table: Category has its own column */
html.admin .admin-table-prices td.admin-prices-category {
  width: 170px;
  max-width: 170px;
  vertical-align: bottom;
  font-size: 0.9rem;
  color: var(--text-dim);
}

html.admin .admin-table-prices td.admin-prices-category .admin-category-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  html.admin .admin-prices-page .admin-table.admin-table-prices > tbody > tr > td.admin-prices-category,
  html.admin .admin-prices-page .admin-table.admin-table-prices > thead th:has(a[href*="sort=category"]) {
    display: none !important;
  }
}

/* Products header: jump back to the last 5 category / warehouse filters (large screens only) */
.admin-last-filters {
  display: none;
}

@media (min-width: 1100px) {
  html.admin .admin-prices-page .admin-last-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 6px 8px;
    margin: 0 20px;
  }

  html.admin .admin-prices-page .admin-last-filters-label {
    flex: 0 0 100%;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  html.admin .admin-prices-page .admin-last-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 12px;
    background: #f5c400;
    color: #111;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(17, 17, 17, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }

  html.admin .admin-prices-page .admin-last-filter:hover,
  html.admin .admin-prices-page .admin-last-filter:focus-visible {
    background: #ffd633;
    box-shadow: 0 3px 10px rgba(17, 17, 17, 0.2);
    transform: translateY(-1px);
  }

  html.admin .admin-prices-page .admin-last-filter.is-active {
    outline: 2px solid #111;
    outline-offset: 1px;
  }

  html.admin .admin-prices-page .admin-last-filter-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.admin .admin-prices-page .admin-last-filter em {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: #111;
    color: #f5c400;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
  }
}

/* ---- Accounting: expenses ---- */
.admin-exp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

h1.admin-book-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1.admin-book-title svg {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #b02028;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.admin body.admin-income-page {
  --yellow: #1a7f37;
  --yellow-hi: #14632b;
  --yellow-soft: #e8f6ee;
}

html.admin body.admin-income-page .kicker,
html.admin body.admin-income-page .admin-exp-cal {
  color: #1a7f37;
}

html.admin body.admin-income-page .btn-gold {
  box-shadow: 0 8px 20px rgba(26, 127, 55, 0.28);
}

html.admin body.admin-income-page .btn-ghost {
  border-color: #1a7f37;
  color: #1a7f37;
}

html.admin body.admin-income-page .btn-ghost:hover,
html.admin body.admin-income-page .btn-ghost:focus-visible {
  background: #e8f6ee;
}

html.admin body.admin-income-page .field input:focus,
html.admin body.admin-income-page .field select:focus,
html.admin body.admin-income-page .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.18);
}

html.admin body.admin-income-page .admin-exp-card.is-main {
  border-color: #1a7f37;
  background: #e8f6ee;
}

html.admin body.admin-income-page .admin-exp-months .admin-exp-bar b {
  background: #1a7f37;
}

html.admin body.admin-income-page .admin-exp-up {
  color: #1a7f37;
}

html.admin body.admin-income-page .admin-exp-down {
  color: #c2473a;
}

html.admin body.admin-income-page .admin-sidebar a.is-current {
  background: #e8f6ee;
  color: #1a7f37;
}

html.admin body.admin-income-page .admin-sidebar a.is-current svg {
  stroke: #1a7f37;
}

html.admin body.admin-income-page .admin-sidebar a.is-current::before {
  background: #1a7f37;
}

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

.admin-income-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f6f8;
}

.admin-income-form-title,
.admin-income-form-actions {
  grid-column: 1 / -1;
}

.admin-income-form-title {
  margin: 0;
  font-weight: 800;
}

.admin-income-form .field-wide {
  grid-column: 1 / -1;
}

.admin-income-form .field {
  min-width: 0;
}

.admin-income-form .field > span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-income-form .field input,
.admin-income-form .field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  background: #fff;
}

.admin-income-actions {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 4px;
  white-space: nowrap;
}

html.admin .admin-exp-table .admin-income-actions .btn {
  width: auto;
  min-height: 22px;
}

.admin-income-actions form {
  display: inline;
}

@media (max-width: 800px) {
  .admin-income-form {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-exp-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-exp-filter select,
.admin-exp-filter input[type="text"],
.admin-exp-filter input[type="search"] {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  max-width: 100%;
}

.admin-exp-filter input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-exp-range {
  display: inline-flex;
  gap: 8px;
}

.admin-exp-range[hidden] {
  display: none;
}

.admin-exp-range input {
  width: 9.5rem;
}

.admin-exp-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-exp-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-exp-card.is-main {
  border-color: #b02028;
  background: #fdeced;
}

.admin-exp-card > span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-exp-card > strong {
  overflow: hidden;
  font-size: 1.5rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-exp-card small {
  font-size: 0.82rem;
}

.admin-exp-up {
  color: #c2473a;
  font-weight: 700;
}

.admin-exp-down {
  color: #1f8a5b;
  font-weight: 700;
}

.admin-exp-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.admin-exp-panel {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6f8;
}

.admin-exp-panel h2,
.admin-exp-h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.admin-exp-h2 {
  margin-top: 22px;
}

.admin-exp-bars,
.admin-exp-months {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-exp-bars a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  color: inherit;
  text-decoration: none;
}

.admin-exp-bars li.is-on a {
  font-weight: 800;
}

.admin-exp-bars a:hover .admin-exp-bar-name {
  text-decoration: underline;
}

.admin-exp-bar-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-exp-bar-name i,
.admin-exp-cat i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-exp-bar-amount {
  white-space: nowrap;
  text-align: end;
}

.admin-exp-bar {
  display: block;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

.admin-exp-bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #b02028;
}

.admin-exp-months li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.admin-exp-months .admin-exp-bar {
  grid-column: auto;
}

.admin-exp-month-amount {
  text-align: end;
  white-space: nowrap;
}

.admin-exp-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.admin-exp-table td.num,
.admin-exp-table th.num {
  text-align: end;
  white-space: nowrap;
}

.admin-exp-table tfoot td {
  border-top: 2px solid var(--line-strong);
  background: var(--bg-soft);
}

.admin-exp-table td small {
  display: block;
}

.admin-exp-receipt {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.admin-exp-date {
  position: relative;
  display: block;
}

.admin-exp-date input[type="text"] {
  width: 100%;
  padding-inline-end: 42px;
}

.admin-exp-cal {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b02028;
  cursor: pointer;
}

.admin-exp-cal:hover,
.admin-exp-cal:focus-visible {
  background: #fdeced;
}

.admin-exp-cal-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-exp-drop {
  position: relative;
  display: block;
  width: 140px;
  height: 140px;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.admin-exp-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-exp-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.35;
}

.admin-exp-drop.is-set img {
  opacity: 1;
}

.admin-exp-drop.is-file img {
  opacity: 0.2;
}

.admin-exp-drop.is-drop {
  border-color: #b02028;
  background: #fdeced;
}

.admin-exp-drop-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #b02028;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

.admin-exp-drop-hint.is-file {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.admin-exp-drop.is-set:not(.is-file) .admin-exp-drop-hint {
  display: none;
}

.admin-exp-pdf {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.admin-exp-pdf[hidden] {
  display: none;
}

.admin-exp-replace {
  display: none;
}

.admin-exp-drop.is-pdf .admin-exp-replace {
  position: absolute;
  z-index: 3;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #b02028;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.12);
}

.admin-exp-drop.is-pdf input[type="file"],
.admin-exp-drop.is-drag .admin-exp-pdf,
.admin-exp-drop.is-drag .admin-exp-replace {
  pointer-events: none;
}

/* Form pages */
.admin-exp-form-wrap {
  max-width: 1100px;
}

.admin-exp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  align-items: start;
}

.admin-exp-doc .admin-exp-drop {
  width: 100%;
  height: min(520px, 70vh);
}

.admin-exp-add-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-exp-add-contact[hidden] {
  display: none;
}

.admin-exp-add-contact input {
  margin-top: 2px;
}

@media (max-width: 800px) {
  .admin-exp-split {
    grid-template-columns: 1fr;
  }

  .admin-exp-doc .admin-exp-drop {
    height: 240px;
  }
}

.admin-exp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.admin-exp-grid .field {
  min-width: 0;
}

.admin-exp-grid .field[hidden] {
  display: none;
}

.admin-exp-grid .admin-exp-wide,
.admin-exp-usd {
  grid-column: 1 / -1;
}

.admin-exp-usd {
  margin: -6px 0 0;
  color: var(--text-dim);
  font-weight: 700;
}

.admin-exp-usd:empty {
  display: none;
}

.admin-exp-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
}

.admin-exp-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
}

.admin-exp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-exp-buttons .admin-exp-delete {
  margin-inline-start: auto;
}

.admin-exp-delete {
  color: var(--danger);
}

.admin-expcat-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0;
}

.admin-expcat-add .field:first-child {
  flex: 1 1 240px;
}

.admin-expcat-color input[type="color"],
.admin-expcat-row input[type="color"] {
  width: 44px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.admin-expcat-list {
  display: grid;
  gap: 8px;
}

.admin-expcat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-expcat-row.is-hidden {
  opacity: 0.6;
}

.admin-expcat-row input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
}

.admin-expcat-uses {
  min-width: 6rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.admin-expcat-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.admin-expcat-row button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .admin-exp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-exp-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-exp-actions {
    width: 100%;
  }

  .admin-exp-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .admin-exp-filter > select,
  .admin-exp-range,
  .admin-exp-range input {
    flex: 1 1 100%;
    width: 100%;
  }

  .admin-exp-card > strong {
    font-size: 1.2rem;
  }

  .admin-exp-grid {
    grid-template-columns: 1fr;
  }

  .admin-exp-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .admin-exp-buttons .admin-exp-delete {
    margin-inline-start: 0;
  }

  /* Rows become cards on phones. */
  .admin-exp-table thead {
    display: none;
  }

  .admin-exp-table,
  .admin-exp-table tbody,
  .admin-exp-table tfoot,
  .admin-exp-table tr,
  .admin-exp-table td {
    display: block;
    width: 100%;
  }

  .admin-exp-table tbody tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .admin-exp-table td {
    padding: 2px 0;
    border: 0;
  }

  .admin-exp-table td[data-label="Method"],
  .admin-exp-table td[data-label="Payee"],
  .admin-exp-table td[data-label="From"] {
    display: inline-block;
    width: auto;
    margin-inline-end: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
  }

  .admin-exp-table td[data-label="Date"] {
    color: var(--text-dim);
    font-size: 0.85rem;
  }

  .admin-exp-table td.num {
    display: inline-block;
    width: auto;
    margin-inline-end: 12px;
    text-align: start;
  }

  .admin-exp-table td.is-same {
    display: none;
  }

  .admin-exp-table td[data-label="Amount"] {
    font-weight: 800;
  }

  .admin-exp-table td[data-label="USD"]:not(.is-same)::before {
    content: "≈ ";
    color: var(--text-faint);
  }

  .admin-exp-table tfoot td:first-child {
    display: inline-block;
    width: auto;
  }

  .admin-exp-table tfoot tr {
    padding: 10px 12px;
    background: var(--bg-soft);
  }

  .admin-exp-table tfoot td {
    border-top: 0;
    background: transparent;
  }

  .admin-exp-table tfoot td[colspan] {
    display: inline-block;
    width: auto;
    margin-inline-end: 12px;
  }
}

.admin-exp-grid .field input:not([type="file"]):not([type="checkbox"]),
.admin-exp-grid .field select {
  box-sizing: border-box;
  min-height: 46px;
}

/* Receiving: one row per item on narrow screens */
.admin-receipt-cols {
  display: none;
}

@media (max-width: 760px) {
  .admin-receipt-lines {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .admin-receipt-cols,
  .admin-receipt-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 58px 46px 50px 26px;
    align-items: center;
    gap: 0 5px;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
  }

  .admin-receipt-line {
    grid-template-columns: 34px minmax(0, 1fr) 82px 58px 46px 50px 26px;
    border-top: 1px solid var(--line);
  }

  .admin-receipt-lines.is-sortable .admin-receipt-line,
  .admin-receipt-lines.is-sortable .admin-receipt-cols {
    grid-template-columns: 32px 34px minmax(0, 1fr) 82px 58px 46px 50px 26px;
  }

  .admin-receipt-grip {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .admin-receipt-cols {
    grid-template-columns: minmax(0, 1fr) 82px 58px 46px 50px 26px;
    padding-inline-start: 50px;
    background: var(--bg-soft);
    color: var(--text-faint);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .admin-receipt-cols span:not(.admin-receipt-cols-name) {
    text-align: center;
  }

  .admin-receipt-cols-name {
    text-align: start;
  }

  .admin-receipt-cols,
  .admin-receipt-line {
    padding-inline-start: 8px;
  }

  .admin-receipt-cols {
    grid-template-columns: 34px minmax(0, 1fr) 82px 58px 46px 50px 26px;
  }

  .admin-receipt-cols::before {
    content: "";
  }

  .admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) {
    grid-row: auto;
    grid-column: auto;
    justify-self: stretch;
    min-width: 0;
    font-size: 0.8rem;
  }

  .admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) > span:first-child {
    display: none;
  }

  .admin-receipt-thumb,
  .admin-receipt-name,
  .admin-receipt-remove {
    grid-row: auto;
    grid-column: auto;
  }

  .admin-receipt-thumb {
    align-self: center;
  }

  .admin-receipt-thumb img {
    width: 34px;
    height: 34px;
  }

  .admin-receipt-name strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .admin-receipt-name small {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.admin .admin-receipt-name .admin-sku-model {
    display: none;
  }

  .admin-receipt-line .admin-stepper {
    width: 100%;
    border-radius: 8px;
  }

  .admin-receipt-line .admin-stepper button {
    flex: 0 0 22px;
    width: 22px;
    font-size: 1rem;
  }

  .admin-receipt-line .admin-stepper input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    font-size: 16px;
  }

  .admin-receipt-line .admin-receipt-cost input {
    width: 100%;
    min-height: 34px;
    padding: 0 4px;
    border-radius: 8px;
  }

  .admin-receipt-line .admin-receipt-loc select {
    width: 100%;
    min-height: 34px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .admin-receipt-line .admin-receipt-line-total {
    text-align: end;
  }

  .admin-receipt-line .admin-receipt-line-total strong {
    font-size: 0.78rem;
  }

  .admin-receipt-line .admin-receipt-cost strong {
    font-size: 0.78rem;
  }

  .admin-receipt-remove {
    width: 26px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .admin-receipt-line,
  .admin-receipt-cols {
    grid-template-columns: minmax(0, 1fr) 74px 58px 36px 48px 22px;
    gap: 0 4px;
    padding-inline: 8px;
  }

  .admin-receipt-thumb,
  .admin-receipt-cols::before {
    display: none;
  }

  html.admin .admin-receipt-name .admin-sku-model {
    display: none;
  }

  .admin-receipt-line .admin-receipt-loc select {
    padding: 0;
    text-indent: 4px;
  }

  .admin-receipt-line .admin-receipt-cost input {
    padding: 0 2px;
    text-align: center;
    font-size: 15px;
  }

  .admin-receipt-line .admin-receipt-remove {
    width: 22px;
  }
}

/* Receiving: one row per item on wide screens too */
@media (min-width: 761px) {
  .admin-receipt-lines {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .admin-receipt-cols,
  .admin-receipt-line {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 112px 92px 70px 100px 34px;
    align-items: center;
    gap: 0 12px;
    padding: 6px 12px;
    border: 0;
    border-radius: 0;
  }

  .admin-receipt-lines.is-sortable .admin-receipt-cols,
  .admin-receipt-lines.is-sortable .admin-receipt-line {
    grid-template-columns: 44px 40px minmax(0, 1fr) 112px 92px 70px 100px 34px;
  }

  .admin-receipt-line {
    border-top: 1px solid var(--line);
  }

  .admin-receipt-line:first-of-type {
    border-top: 0;
  }

  .admin-receipt-cols {
    background: var(--bg-soft);
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .admin-receipt-cols::before {
    content: "";
  }

  .admin-receipt-cols span:not(.admin-receipt-cols-name) {
    text-align: center;
  }

  .admin-receipt-cols span:nth-last-child(2) {
    text-align: end;
  }

  html.admin .admin-receipt-thumb {
    width: 40px;
    height: 40px;
    min-height: 0;
  }

  .admin-receipt-thumb img {
    width: 40px;
    height: 40px;
  }

  /* name · sku · brand model on a single line */
  .admin-receipt-name {
    display: flex;
    align-items: baseline;
    gap: 4px 12px;
    min-width: 0;
  }

  .admin-receipt-name strong {
    flex: 0 1 auto;
    min-width: 8ch;
    max-width: 100%;
  }

  .admin-receipt-name small {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.admin .admin-receipt-name .admin-sku-model {
    display: inline;
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.82rem;
  }

  /* labels live in the header row */
  .admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) > span:first-child {
    display: none;
  }

  .admin-receipt-line :is(.admin-receipt-qty, .admin-receipt-cost, .admin-receipt-loc, .admin-receipt-line-total) {
    justify-self: stretch;
    min-width: 0;
  }

  .admin-receipt-line .admin-stepper {
    width: 100%;
  }

  .admin-receipt-line .admin-stepper button {
    flex: 0 0 32px;
  }

  .admin-receipt-line .admin-stepper input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    min-height: 36px;
  }

  .admin-receipt-line .admin-receipt-cost input,
  .admin-receipt-line .admin-receipt-loc select {
    width: 100%;
    min-height: 38px;
  }

  .admin-receipt-line .admin-receipt-cost input {
    text-align: center;
  }

  .admin-receipt-line .admin-receipt-line-total {
    text-align: end;
  }

  .admin-receipt-remove {
    width: 34px;
    height: 34px;
  }
}

/* Contacts: form and activity side by side, activity rows on one line */
.admin-contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.admin-contact-split-main,
.admin-contact-split-side {
  min-width: 0;
}

.admin-contact-split-main .admin-contact-form-box {
  margin-bottom: 0;
}

.admin-contact-split-side .admin-activity {
  margin-top: 0;
}

@media (min-width: 1100px) {
  .admin-contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-contact-split-side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .admin-contact-split-side .admin-activity-title {
    min-height: 1.4em;
    margin-bottom: 12px;
    font-size: 1.15rem;
  }

  .admin-contact-split-side .admin-activity-form {
    grid-template-columns: 110px minmax(0, 1fr) auto;
  }

  .admin-contact-split-side .admin-activity-form input[name="summary"] {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .admin-contact-split-side .admin-activity-form select {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-contact-split-side .admin-activity-form input[type="datetime-local"] {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .admin-contact-split-side .admin-activity-form .btn {
    grid-column: 3;
    grid-row: 2;
  }
}

.admin-contacts-page .admin-activity-item {
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
}

.admin-contacts-page .admin-activity-kind {
  flex: 0 0 74px;
  font-size: 0.68rem;
}

.admin-contacts-page .admin-activity-body {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}

.admin-contacts-page .admin-activity-body p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-contacts-page .admin-activity-body p br {
  display: none;
}

.admin-contacts-page .admin-activity-body small {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.76rem;
  white-space: nowrap;
}

.admin-contacts-page .admin-activity-item form {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 560px) {
  .admin-contacts-page .admin-activity-body {
    flex-direction: column;
    gap: 0;
  }

  .admin-contacts-page .admin-activity-body small {
    font-size: 0.7rem;
  }
}

.admin-contacts-page .admin-activity-list {
  grid-template-columns: minmax(0, 1fr);
}

.admin-contacts-page .admin-activity-item {
  min-width: 0;
}

.admin-contacts-page .admin-activity-kind {
  flex: 0 0 96px;
  white-space: nowrap;
}

/* Desk: traffic sources */
.admin-traffic {
  margin: 8px 0 28px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-traffic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-traffic-head .admin-block-title {
  margin-bottom: 4px;
}

.admin-traffic-head p {
  margin: 0;
}

.admin-traffic-periods {
  flex-wrap: wrap;
}

.admin-traffic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-traffic-card {
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6f8;
}

.admin-traffic-card h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.admin-traffic-bars {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-traffic-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  font-size: 0.88rem;
}

.admin-traffic-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-traffic-num {
  font-weight: 800;
  white-space: nowrap;
}

.admin-traffic-num small {
  color: var(--text-faint);
  font-weight: 700;
}

.admin-traffic-bar {
  display: block;
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

.admin-traffic-bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #b02028;
}

.admin-traffic-tips {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 0.9rem;
}

.admin-traffic-tips summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-traffic-tips code {
  display: block;
  padding: 8px 10px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .admin-traffic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  .admin-traffic-grid {
    grid-template-columns: 1fr;
  }
}

.android-install-note {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #171717;
  color: #fff;
  direction: ltr;
  text-align: start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.android-install-note p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.android-install-note p span {
  white-space: nowrap;
}

html.admin .android-install-note .btn-ghost,
.android-install-note .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}

html.admin .android-install-note .btn-ghost:hover,
html.admin .android-install-note .btn-ghost:focus-visible,
.android-install-note .btn-ghost:hover,
.android-install-note .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.android-install-note .btn-gold {
  color: #111;
}

@media (max-width: 860px) {
  html.admin .android-install-note {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  html:not(.admin) .android-install-note {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

.admin-desk-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.admin-desk-period-note {
  margin: 0;
}

html.admin .admin-desk-period .admin-traffic-periods {
  margin-top: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

html.admin .admin-desk-period .pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

html.admin .admin-desk-period .pill:hover,
html.admin .admin-desk-period .pill:focus-visible {
  border-color: #b02028;
  color: #b02028;
}

html.admin .admin-desk-period .pill.is-on,
html.admin .admin-desk-period .pill.is-on:hover {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
}

@media (max-width: 860px) {
  .admin-desk-period {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  html.admin .admin-desk-period .admin-traffic-periods {
    width: 100%;
    gap: 4px;
  }

  html.admin .admin-desk-period .pill {
    padding: 7px 4px;
    font-size: 0.78rem;
  }
}

/* Products list: ID is the checkbox label */
html.admin .admin-prices-page .admin-table-prices th.admin-prices-check,
html.admin .admin-prices-page .admin-table-prices td.admin-prices-check {
  width: 1%;
  min-width: 78px;
  white-space: nowrap;
  text-align: start;
}

html.admin .admin-row-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

html.admin .admin-row-select:hover {
  background: var(--bg-soft);
}

html.admin .admin-row-id {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

html.admin .admin-row-select input:checked + .admin-row-id {
  color: #b02028;
}

html.admin .admin-prices-page .admin-table-prices thead th.admin-prices-check {
  text-align: start;
}

html.admin .admin-prices-page .admin-table-prices thead th.admin-prices-check .admin-select-all-head {
  vertical-align: middle;
  margin-inline-end: 7px;
  padding-inline-start: 6px;
}

html.admin .admin-th-id {
  vertical-align: middle;
}

@media (max-width: 860px) {
  html.admin .admin-th-id {
    display: none;
  }

  html.admin .admin-row-id {
    font-size: 0.9rem;
  }
}

html.admin .admin-th-id {
  text-decoration: none;
}

@media (max-width: 860px) {
  html.admin .admin-table.admin-table-prices thead .admin-th-id {
    display: none !important;
  }
}

@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-id-grid,
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-name,
  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-sku {
    min-width: 0;
    max-width: 100%;
  }

  html.admin .admin-prices-page .admin-table.admin-table-prices .admin-prices-identity {
    overflow: hidden;
  }

  html.admin .admin-prices-page .admin-table-prices td.admin-prices-check {
    min-width: 0;
    width: auto;
  }

  html.admin .admin-row-select {
    padding: 4px 2px;
    gap: 6px;
  }
}


/* Products list: hide sell/receive stock controls on phones */
@media (max-width: 860px) {
  html.admin .admin-prices-page .admin-table-prices .admin-quick-btn {
    display: none !important;
  }

  html.admin .admin-prices-page .admin-table-prices .admin-quick-stock {
    gap: 0;
  }
}

/* Products list: no bulk-select checkboxes on phones */
@media (max-width: 860px) {
  html.admin .admin-prices-page .admin-table-prices .admin-select-all-head,
  html.admin .admin-prices-page .admin-table-prices .admin-row-select input {
    display: none !important;
  }

  html.admin .admin-prices-page .admin-table-prices .admin-row-select {
    pointer-events: none;
    padding: 0;
    gap: 0;
  }
}

/* Products list: small ID filter before the main search */
.admin-id-field {
  flex: 0 0 auto;
  margin: 0;
}

.admin-id-field input {
  width: 88px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
}

.admin-id-field input:focus {
  border-color: #b02028;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176, 32, 40, 0.12);
}

.admin-id-field input:not(:placeholder-shown) {
  border-color: #b02028;
  background: #fff;
}

@media (max-width: 640px) {
  .admin-id-field input {
    width: 70px;
    min-height: 42px;
    padding: 0 6px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  html.admin .admin-prices-page .admin-prices-search {
    flex-wrap: wrap;
  }

  html.admin .admin-prices-page .admin-prices-search .admin-search-field {
    flex: 1 1 140px;
  }
}

/* Product page: large plain item ID above the activity list */
.admin-product-side {
  min-width: 0;
}

html.admin .admin-product-bigid {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #b02028;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

html.admin .admin-product-bigid span {
  margin-inline-end: 4px;
  color: var(--text-faint);
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.admin .admin-product-bigid a {
  color: inherit;
  text-decoration: none;
}

html.admin .admin-product-bigid a:hover,
html.admin .admin-product-bigid a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

html.admin .admin-product-bigid .admin-product-bigid-tag {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  vertical-align: baseline;
}

html.admin .admin-product-bigid .admin-product-bigid-tag > * {
  grid-area: 1 / 1;
}

html.admin .admin-product-bigid .admin-product-bigid-tag b {
  font-weight: inherit;
}

html.admin .admin-product-bigid .admin-product-bigid-tag svg {
  width: 1.1em;
  height: 1.1em;
  opacity: 0;
}

html.admin .admin-product-bigid a:hover .admin-product-bigid-tag b,
html.admin .admin-product-bigid a:focus-visible .admin-product-bigid-tag b {
  opacity: 0;
}

html.admin .admin-product-bigid a:hover .admin-product-bigid-tag svg,
html.admin .admin-product-bigid a:focus-visible .admin-product-bigid-tag svg {
  opacity: 1;
  color: #b02028;
}


/* Receiving list: document icon when a GRN file is attached */
html.admin .admin-receipts-table .admin-receipt-doc-cell {
  width: 1%;
  white-space: nowrap;
  text-align: end;
  vertical-align: middle;
}

html.admin .admin-receipts-table .admin-receipt-doc-icon {
  position: relative;
  z-index: 2;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  border-radius: 8px;
  text-decoration: none;
}

html.admin .admin-receipts-table .admin-receipt-doc-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

html.admin .admin-receipts-table .admin-receipt-doc-icon:hover,
html.admin .admin-receipts-table .admin-receipt-doc-icon:focus-visible {
  background: #b02028;
  border-color: #b02028;
  color: #fff;
  transform: none;
}

@media (max-width: 700px) {
  html.admin .admin-receipts-table .admin-receipt-doc-icon.btn-tiny {
    width: 28px;
    min-width: 28px;
  }
}

html.admin .admin-receipts-table td strong {
  vertical-align: middle;
}


html.admin .admin-receipt-doc-thumb.is-uploading {
  opacity: 0.6;
  pointer-events: none;
}

html.admin .admin-receipt-doc-thumb.is-set {
  cursor: zoom-in;
}

html.admin .admin-receipts-table .admin-receipt-doc-icon.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
