:root {
  --ink: #0b0f14;
  --muted: #5f6469;
  --soft: #f2eadf;
  --paper: #ffffff;
  --line: #e2d8ca;
  --accent: #8f141d;
  --accent-dark: #4f0c12;
  --gold: #c6d638;
  --green: #24451f;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 20px 50px rgba(11, 15, 20, 0.12);
  --radius: 8px;
  --layout-gutter: clamp(12px, 1.1vw, 20px);
  --layout-gutter-mobile: 10px;
  --layout-max: 2520px;
  --layout-narrow-max: 1680px;
  --page-gutter: var(--layout-gutter);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-principal {
  --theme-topbar: rgba(11, 15, 20, 0.98);
  --theme-panel: #fffdf9;
  --theme-subtle: #f8f4ed;
}

body.theme-premium-escuro {
  --ink: #f7f2e8;
  --muted: #c8bdae;
  --soft: #171511;
  --paper: #090909;
  --line: rgba(221, 190, 126, 0.24);
  --accent: #d7b56d;
  --accent-dark: #8f6d2b;
  --gold: #f4d487;
  --green: #2a2418;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 26px 70px rgba(0, 0, 0, 0.42);
  --radius: 6px;
  --theme-topbar: rgba(5, 5, 5, 0.98);
  --theme-panel: #11100d;
  --theme-subtle: #18140f;
}

body.theme-editorial-claro {
  --ink: #231f20;
  --muted: #736a63;
  --soft: #f6efe8;
  --paper: #fffaf6;
  --line: #e8d9cd;
  --accent: #9b2535;
  --accent-dark: #65121f;
  --gold: #a88b4c;
  --green: #58604a;
  --shadow: 0 12px 34px rgba(64, 43, 31, 0.1);
  --shadow-soft: 0 22px 54px rgba(64, 43, 31, 0.13);
  --radius: 2px;
  --theme-topbar: rgba(255, 250, 246, 0.96);
  --theme-panel: #fffdfa;
  --theme-subtle: #f8efe8;
}

body.theme-urbano-contrastado {
  --ink: #101820;
  --muted: #58616d;
  --soft: #edf2f5;
  --paper: #f7fafb;
  --line: #cdd9df;
  --accent: #006d77;
  --accent-dark: #003d45;
  --gold: #ffb703;
  --green: #1b4332;
  --shadow: 0 14px 34px rgba(5, 38, 48, 0.13);
  --shadow-soft: 0 24px 58px rgba(5, 38, 48, 0.18);
  --radius: 14px;
  --theme-topbar: rgba(16, 24, 32, 0.98);
  --theme-panel: #ffffff;
  --theme-subtle: #e8f2f4;
}

body.theme-minimalista-executivo {
  --ink: #151719;
  --muted: #62686f;
  --soft: #f5f6f7;
  --paper: #ffffff;
  --line: #d8dde3;
  --accent: #2f3a45;
  --accent-dark: #111820;
  --gold: #7c8a97;
  --green: #45525d;
  --shadow: 0 8px 22px rgba(17, 24, 32, 0.08);
  --shadow-soft: 0 16px 42px rgba(17, 24, 32, 0.1);
  --radius: 4px;
  --theme-topbar: rgba(255, 255, 255, 0.96);
  --theme-panel: #ffffff;
  --theme-subtle: #f4f6f8;
}

body[class*="theme-"] .topbar {
  background: var(--theme-topbar);
}

body.theme-editorial-claro .topbar,
body.theme-minimalista-executivo .topbar {
  border-bottom-color: var(--line);
}

body.theme-editorial-claro .category-nav a,
body.theme-editorial-claro .utility-nav a,
body.theme-minimalista-executivo .category-nav a,
body.theme-minimalista-executivo .utility-nav a {
  color: var(--ink);
}

body.theme-editorial-claro .promo-bar,
body.theme-minimalista-executivo .promo-bar {
  background: var(--accent);
  color: white;
}

body.theme-premium-escuro :where(.hero-copy, .editorial-strip, .section, .product-card, .checkout-panel, .form-panel, .parameters-panel, .admin-feature-card, .table-panel, .product-admin-section, .orders-admin-section, .account-section),
body.theme-urbano-contrastado :where(.hero-copy, .editorial-strip, .section, .product-card, .checkout-panel, .form-panel, .parameters-panel, .admin-feature-card, .table-panel, .product-admin-section, .orders-admin-section, .account-section),
body.theme-minimalista-executivo :where(.hero-copy, .editorial-strip, .section, .product-card, .checkout-panel, .form-panel, .parameters-panel, .admin-feature-card, .table-panel, .product-admin-section, .orders-admin-section, .account-section),
body.theme-editorial-claro :where(.hero-copy, .editorial-strip, .section, .product-card, .checkout-panel, .form-panel, .parameters-panel, .admin-feature-card, .table-panel, .product-admin-section, .orders-admin-section, .account-section) {
  background: var(--theme-panel);
  border-color: var(--line);
}

body.theme-premium-escuro :where(input, select, textarea),
body.theme-premium-escuro :where(.product-body, .cart-item, .order-card, .metric-card) {
  background: #15130f;
  color: var(--ink);
  border-color: var(--line);
}

body.theme-premium-escuro .button.primary,
body.theme-premium-escuro .button.management-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #090909;
}

body.theme-editorial-claro :where(.button.primary, .button.management-primary),
body.theme-minimalista-executivo :where(.button.primary, .button.management-primary) {
  background: var(--accent);
  border-color: var(--accent);
}

body.theme-urbano-contrastado .product-card {
  border-width: 2px;
}

body.theme-minimalista-executivo :where(.product-card, .company-card, .checkout-panel, .form-panel, .parameters-panel) {
  box-shadow: none;
}

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

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

.promo-bar {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 8px 16px;
  background: var(--green);
  color: #f7f0df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 66px;
  padding: 0 42px;
  background: rgba(11, 15, 20, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 140px;
  min-width: 0;
}

.brand img {
  display: block;
  width: 125px;
  max-width: 100%;
  height: auto;
}

.category-nav,
.utility-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.category-nav {
  justify-content: center;
}

.utility-nav {
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
}

.category-nav a,
.utility-nav a {
  color: #f4efe6;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-nav a:hover,
.utility-nav a:hover,
.cart-link {
  color: var(--gold);
}

.customer-session-menu {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: max-content;
}

.customer-session-menu .customer-menu-link {
  line-height: 1.1;
}

.customer-logout-form {
  margin: 0;
}

.customer-logout-form button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 239, 230, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  padding: 2px 0 0;
  text-transform: uppercase;
}

.customer-logout-form button:hover,
.customer-logout-form button:focus-visible {
  color: var(--gold);
}

.cart-link {
  position: relative;
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cart-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.cart-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -6px;
  min-width: 18px;
  min-height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: var(--accent);
  color: white;
  border: 2px solid rgba(11, 15, 20, 0.98);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.whatsapp-link {
  color: var(--gold) !important;
  display: inline-flex;
  align-items: center;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #06130a;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover {
  filter: brightness(0.96);
}

.whatsapp-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  flex: 0 0 auto;
}

.whatsapp-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.whatsapp-float .whatsapp-icon {
  width: 34px;
  height: 34px;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.whatsapp-cta .whatsapp-icon {
  color: white;
}

main {
  margin: 0 auto 70px;
}

.hero,
.campaign-band,
.quick-links,
.promotion-visibility-strip,
.promotion-landing-hero,
.promotion-landing-tags,
.section,
.seller-strip,
.page-head,
.decision-grid,
.management-hero,
.management-flow,
.checkout-layout,
.success,
.form-panel,
.metrics {
  width: min(1220px, calc(100vw - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 142px);
  padding: 28px 0 20px;
}

.hero-copy {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 540px;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 38%),
    linear-gradient(180deg, #fffaf2, var(--soft));
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(11, 15, 20, 0.08);
}

.hero-store-banner {
  overflow: hidden;
  align-content: end;
  padding: 28px;
  color: white;
  background: #0b0f14;
}

.hero-store-banner::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0.08), rgba(11, 15, 20, 0.82)),
    linear-gradient(90deg, rgba(11, 15, 20, 0.78), rgba(11, 15, 20, 0.08));
  content: "";
}

.hero-store-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.hero-store-banner-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.hero-store-banner-content > span {
  width: max-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-store-banner-content h1 {
  color: white;
  font-size: clamp(34px, 4.5vw, 58px);
}

.hero-store-banner-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.hero-store-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-store-banner-actions .button.primary {
  border-color: white;
  background: white;
  color: var(--ink);
}

.hero-store-banner-actions .button.ghost {
  border-color: rgba(255, 255, 255, 0.62);
  color: white;
}

.hero h1,
.page-head h1,
.success h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(38px, 5.4vw, 68px);
}

.hero p:not(.eyebrow),
.page-head p:not(.eyebrow),
.success p:not(.eyebrow),
.campaign-copy p,
.seller-strip p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 500px;
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-commerce-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
}

.hero-commerce-badges span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(115, 16, 28, 0.24);
  border-radius: 999px;
  background: rgba(115, 16, 28, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-menu {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(100%, 860px);
  position: relative;
  z-index: 30;
}

.admin-menu-group {
  position: relative;
}

.admin-menu-group summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.admin-menu-group summary::after {
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.admin-menu-group[open] summary {
  background: var(--accent);
  border-color: var(--accent);
}

.admin-menu-group[open] summary::after {
  content: "-";
}

.admin-menu-group > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: min(310px, calc(100vw - 28px));
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 42px rgba(11, 15, 20, 0.15);
  max-height: min(520px, calc(100vh - 170px));
  overflow-y: auto;
}

.admin-menu-group a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-menu-group a:hover {
  background: #f4ebe0;
  color: var(--accent);
}

body.admin-layout-active {
  --admin-sidebar-width: 216px;
  --admin-workspace-gutter: 24px;
  --admin-workspace-max: 1680px;
  overflow-x: hidden;
}

body.admin-layout-active.admin-sidebar-collapsed {
  --admin-sidebar-width: 64px;
}

.admin-sidebar-overlay,
.admin-mobile-topbar {
  display: none;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100dvh;
  z-index: 120;
  width: var(--admin-sidebar-width);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0f14;
  color: #f9f6ef;
  box-shadow: 14px 0 34px rgba(11, 15, 20, 0.12);
  transition: width 180ms ease, transform 180ms ease;
}

.admin-sidebar-brand {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand-link {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.admin-sidebar-brand-link img {
  width: 88px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.admin-sidebar-brand-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-sidebar-toggle,
.admin-mobile-menu-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  cursor: pointer;
}

.admin-sidebar-toggle svg,
.admin-mobile-menu-button svg,
.admin-sidebar-icon svg,
.admin-sidebar-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar-nav {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 8px 7px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.admin-sidebar-module {
  position: relative;
}

.admin-sidebar-module-toggle,
.admin-sidebar-footer a {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar-module-toggle:hover,
.admin-sidebar-module.is-open > .admin-sidebar-module-toggle,
.admin-sidebar-footer a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-sidebar-module.is-open > .admin-sidebar-module-toggle {
  box-shadow: inset 2px 0 0 var(--gold);
}

.admin-sidebar-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
}

.admin-sidebar-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: grid;
  place-items: center;
  transition: transform 160ms ease;
}

.admin-sidebar-module.is-open .admin-sidebar-chevron {
  transform: rotate(90deg);
}

.admin-sidebar-panel {
  display: none;
  gap: 5px;
  margin: 2px 0 5px 29px;
  padding: 6px 7px 7px 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-sidebar-module.is-open .admin-sidebar-panel {
  display: grid;
}

.admin-sidebar-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  line-height: 1.35;
}

.admin-sidebar-panel nav {
  display: grid;
  gap: 2px;
}

.admin-sidebar-panel a {
  min-height: 27px;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.admin-sidebar-panel a:hover,
.admin-sidebar-panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.admin-sidebar-panel a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--gold);
}

.admin-sidebar-footer {
  display: grid;
  gap: 3px;
  padding: 7px 7px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-content {
  width: calc(100% - var(--admin-sidebar-width));
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--admin-sidebar-width);
  padding-inline: var(--admin-workspace-gutter);
  transition: margin-left 180ms ease, width 180ms ease;
}

body.admin-layout-active .admin-sidebar-content > * {
  width: min(100%, var(--admin-workspace-max)) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body.admin-layout-active .whatsapp-float {
  display: none;
}

.admin-sidebar.is-collapsed .admin-sidebar-brand {
  justify-content: center;
  padding-inline: 8px;
}

.admin-sidebar.is-collapsed .admin-sidebar-brand-link,
.admin-sidebar.is-collapsed .admin-sidebar-label,
.admin-sidebar.is-collapsed .admin-sidebar-chevron,
.admin-sidebar.is-collapsed .admin-sidebar-panel {
  display: none;
}

.admin-sidebar.is-collapsed .admin-sidebar-toggle {
  transform: rotate(180deg);
}

.admin-sidebar.is-collapsed .admin-sidebar-module-toggle,
.admin-sidebar.is-collapsed .admin-sidebar-footer a {
  justify-content: center;
  padding-inline: 8px;
}

.admin-sidebar-floating-tooltip {
  position: fixed;
  left: 74px;
  top: 12px;
  z-index: 1300;
  display: none;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 15, 20, 0.16);
  border-radius: 6px;
  background: #0b0f14;
  box-shadow: 0 12px 24px rgba(11, 15, 20, 0.2);
  color: white;
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-sidebar-floating-tooltip.is-visible {
  display: block;
  animation: admin-sidebar-tooltip-enter 120ms ease-out;
}

.admin-sidebar.is-collapsed .admin-sidebar-nav {
  overflow: visible;
}

.admin-sidebar.is-collapsed .admin-sidebar-module.is-open .admin-sidebar-panel {
  position: fixed;
  top: 12px;
  left: 72px;
  z-index: 1000;
  width: 280px;
  max-height: calc(100vh - 24px);
  display: grid;
  margin: 0;
  padding: 0 12px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.28);
  animation: admin-sidebar-flyout-enter 140ms ease-out;
}

.admin-sidebar.is-collapsed .admin-sidebar-module.is-open .admin-sidebar-panel > p {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -12px 8px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #18222d;
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar.is-collapsed .admin-sidebar-panel a {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 11px;
}

@keyframes admin-sidebar-tooltip-enter {
  from { opacity: 0; transform: translate(-4px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes admin-sidebar-flyout-enter {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 760px) {
  body.admin-layout-active {
    --admin-workspace-gutter: 12px;
  }

  body.admin-layout-active,
  body.admin-layout-active.admin-sidebar-collapsed {
    --admin-sidebar-width: 0px;
  }

  .admin-mobile-topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background: #0b0f14;
  }

  .admin-mobile-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .admin-mobile-brand img {
    width: 92px;
    height: 28px;
    object-fit: contain;
  }

  .admin-sidebar {
    width: min(286px, calc(100vw - 48px));
    transform: translateX(-102%);
    box-shadow: none;
  }

  .admin-sidebar.is-mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 46px rgba(11, 15, 20, 0.34);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    border: 0;
    background: rgba(11, 15, 20, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .admin-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-sidebar-floating-tooltip {
    display: none !important;
  }

  .admin-sidebar-content {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar-floating-tooltip.is-visible,
  .admin-sidebar.is-collapsed .admin-sidebar-module.is-open .admin-sidebar-panel {
    animation: none;
  }
}

.admin-feature-map {
  display: grid;
  gap: 18px;
}

.admin-feature-map .section-title {
  margin-bottom: 0;
}

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

.admin-feature-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 244, 238, 0.9)),
    #fffdf9;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.08);
}

.admin-feature-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-feature-card > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.admin-feature-card a {
  display: flex;
  align-items: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-feature-card a:hover {
  border-color: rgba(115, 16, 28, 0.28);
  background: #f8ede3;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.button.management-primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button.management-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button.ghost {
  background: transparent;
}

.management-head .button,
.product-admin-head .button,
.orders-admin-head .button,
.import-head .button,
.page-head.management-head .button,
.page-head.product-admin-head .button,
.page-head.orders-admin-head .button,
.page-head.import-head .button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.management-head .button:hover,
.product-admin-head .button:hover,
.orders-admin-head .button:hover,
.import-head .button:hover,
.page-head.management-head .button:hover,
.page-head.product-admin-head .button:hover,
.page-head.orders-admin-head .button:hover,
.page-head.import-head .button:hover,
.management-head .button:focus-visible,
.product-admin-head .button:focus-visible,
.orders-admin-head .button:focus-visible,
.import-head .button:focus-visible,
.page-head.management-head .button:focus-visible,
.page-head.product-admin-head .button:focus-visible,
.page-head.orders-admin-head .button:focus-visible,
.page-head.import-head .button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.full {
  width: 100%;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

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

.inline-actions form {
  margin: 0;
}

.danger-button {
  border-color: rgba(131, 16, 27, 0.28);
  color: var(--accent);
}

.danger-button:hover {
  background: rgba(131, 16, 27, 0.08);
}

.coupon-apply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.coupon-apply-box label {
  margin: 0;
}

.coupon-feedback {
  margin: -4px 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.coupon-feedback.success {
  color: #166534;
}

.coupon-feedback.error {
  color: var(--accent);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 540px;
}

.editorial-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.68fr);
  grid-template-rows: 1fr;
}

.hero-product-banner,
.hero-mini-product,
.hero-campaign-card,
.editorial-product-row a {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 20px 52px rgba(11, 15, 20, 0.12);
}

.hero-product-carousel,
.hero-mini-carousel {
  position: relative;
  min-width: 0;
  min-height: 540px;
}

.hero-mini-carousel {
  min-height: 118px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 700ms ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-carousel-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  gap: 8px;
}

.hero-carousel-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.72);
  color: white;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(11, 15, 20, 0.24);
}

.hero-carousel-controls button:hover,
.hero-carousel-controls button:focus-visible {
  background: white;
  color: var(--ink);
  outline: none;
}

.hero-product-banner {
  display: grid;
  align-content: end;
  min-height: 540px;
  padding: 26px;
  color: white;
}

.hero-product-banner::after,
.hero-mini-product::after,
.editorial-product-row a::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
  content: "";
}

.hero-product-banner img,
.hero-mini-product img,
.editorial-product-row img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-product-banner > div,
.hero-product-kicker,
.hero-mini-product span,
.hero-mini-product strong,
.editorial-product-row span,
.editorial-product-row strong {
  position: relative;
  z-index: 2;
}

.hero-product-kicker {
  width: max-content;
  margin-bottom: auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-product-banner small,
.hero-campaign-card span,
.hero-campaign-card small,
.hero-mini-product span,
.editorial-product-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-product-banner strong {
  display: block;
  max-width: 560px;
  margin: 8px 0 10px;
  color: white;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
}

.hero-product-banner b {
  color: var(--gold);
  font-size: 24px;
}

.hero-promo-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hero-promo-price s {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 900;
}

.hero-promo-price b {
  color: var(--gold);
  font-size: 26px;
}

.hero-campaign-stack {
  display: grid;
  grid-template-rows: minmax(132px, 0.78fr) repeat(2, minmax(118px, 0.74fr)) minmax(132px, 0.78fr);
  gap: 12px;
  min-height: 0;
}

.hero-campaign-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 46%),
    #fffdf9;
}

.hero-campaign-card.dark {
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.92), rgba(11, 15, 20, 0.96)),
    var(--ink);
  color: white;
}

.hero-campaign-card span {
  color: var(--accent);
}

.hero-campaign-card.dark span,
.hero-campaign-card.dark small {
  color: rgba(255, 255, 255, 0.75);
}

.hero-campaign-card strong {
  color: inherit;
  font-size: 21px;
  line-height: 1.05;
}

.hero-campaign-card small {
  color: var(--muted);
}

.hero-promotion-image-card {
  isolation: isolate;
  min-height: 132px;
  color: white;
  background: var(--ink);
}

.hero-promotion-image-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.hero-mini-product {
  display: grid;
  align-content: end;
  gap: 5px;
  min-height: 118px;
  padding: 14px;
  color: white;
}

.hero-mini-carousel .hero-mini-product {
  min-height: 100%;
}

.hero-mini-product strong {
  color: white;
  font-size: 16px;
  line-height: 1.05;
}

.editorial-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.08), transparent 42%),
    #fffdf9;
}

.editorial-strip h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.02;
}

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

.hero-mini-price {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.editorial-promo-price {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.promotion-visibility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(115, 16, 28, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(115, 16, 28, 0.1), rgba(198, 214, 56, 0.16)),
    #fffdf9;
  box-shadow: 0 16px 36px rgba(11, 15, 20, 0.08);
}

.promotion-visibility-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.promotion-visibility-strip span,
.promotion-visibility-strip small,
.promotion-campaign-card span,
.promotion-campaign-card small,
.promotion-landing-hero aside span,
.promotion-landing-hero aside small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promotion-visibility-strip strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1;
}

.promotion-showcase {
  margin-top: 22px;
}

.promotion-campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promotion-campaign-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(198, 214, 56, 0.28), transparent 32%),
    linear-gradient(145deg, rgba(115, 16, 28, 0.08), transparent 42%),
    white;
  box-shadow: 0 18px 42px rgba(11, 15, 20, 0.08);
}

.promotion-campaign-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 0.98;
}

.promotion-campaign-card strong {
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.promotion-campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promotion-campaign-tags em,
.promotion-landing-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(115, 16, 28, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.promotion-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.26fr);
  gap: 20px;
  align-items: stretch;
  margin: 24px auto 0;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(115, 16, 28, 0.92), rgba(11, 15, 20, 0.96)),
    var(--ink);
  color: white;
}

.promotion-landing-hero h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  color: white;
  font-size: clamp(34px, 5.8vw, 76px);
  line-height: 0.92;
}

.promotion-landing-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.promotion-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.promotion-landing-hero aside {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.promotion-landing-hero aside strong {
  color: var(--gold);
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.86;
}

.promotion-landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px auto 0;
}

.storefront-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.storefront-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.storefront-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(8px);
}

.storefront-popup-dialog {
  position: relative;
  width: min(88vw, 480px);
  max-height: min(78vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.storefront-popup.visible .storefront-popup-dialog {
  transform: translateY(0) scale(1);
}

.storefront-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.72);
  color: white;
  cursor: pointer;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.storefront-popup-media {
  display: block;
  background: #f4efe8;
}

.storefront-popup-media img {
  display: block;
  width: 100%;
  max-height: calc(78vh - 10px);
  object-fit: contain;
}

.storefront-popup-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--gold);
  transform-origin: left center;
  animation-name: popupTimer;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes popupTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.store-popup-admin {
  margin-top: 20px;
}

.store-popup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 18px;
  align-items: start;
}

.store-popup-panel,
.store-popup-preview {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.06);
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.switch-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.input-with-suffix input {
  border: 0;
  border-radius: 0;
}

.input-with-suffix span {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.success-alert {
  color: #0f5132;
  background: #dff5e9;
}

.error-alert {
  color: #7a1020;
  background: #f8d7dc;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.store-popup-preview {
  display: grid;
  gap: 12px;
}

.store-popup-preview-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(115, 16, 28, 0.08), transparent 42%),
    #f5efe7;
}

.store-popup-preview-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.store-popup-preview-frame div {
  display: grid;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.store-popup-preview-frame strong {
  color: var(--ink);
  font-size: 20px;
}

.store-popup-preview-frame span,
.store-popup-preview small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.editorial-product-row a {
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 14px;
  color: white;
}

.editorial-product-row strong {
  color: white;
  font-size: 16px;
  line-height: 1.05;
}

.hero-visual .runway-card {
  box-shadow: 0 20px 52px rgba(11, 15, 20, 0.12);
}

.hero-feature-card {
  display: grid;
  align-content: end;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(115, 16, 28, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 238, 228, 0.92)),
    #fffdf9;
  box-shadow: 0 20px 52px rgba(11, 15, 20, 0.12);
}

.hero-feature-card.dark {
  border-color: rgba(11, 15, 20, 0.18);
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.92), rgba(11, 15, 20, 0.96)),
    var(--ink);
  color: white;
}

.hero-feature-card span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(115, 16, 28, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.hero-feature-card.dark span {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.hero-feature-card strong {
  max-width: 260px;
  color: inherit;
  font-size: 28px;
  line-height: 1.02;
}

.hero-feature-card p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-feature-card.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.runway-card,
.product-image,
.mini-image,
.campaign-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}

.runway-card:first-child {
  grid-row: 1 / 3;
}

.runway-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 11px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.runway-card.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.runway-card.has-photo::before,
.runway-card.has-photo::after {
  display: none;
}

.runway-card.has-photo span {
  background: rgba(255, 255, 255, 0.94);
}

.runway-card::before,
.product-image::before,
.mini-image::before,
.campaign-image::before {
  content: "";
  position: absolute;
  inset: 9% 24% 0;
  border-radius: 47% 47% 5% 5%;
  background: rgba(255, 255, 255, 0.72);
  clip-path: polygon(50% 0, 77% 12%, 89% 48%, 70% 100%, 30% 100%, 11% 48%, 23% 12%);
}

.product-image.has-photo::before,
.product-image.has-photo::after {
  display: none;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.runway-card::after,
.product-image::after,
.mini-image::after,
.campaign-image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 17%;
  width: 17%;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.look-1 {
  background: linear-gradient(145deg, #0b0f14 8%, #8f141d 52%, #e3d3bf);
}

.look-2 {
  background: linear-gradient(145deg, #f2eadf, #233342 62%, #0b0f14);
}

.look-3 {
  background: linear-gradient(145deg, #0d2236, #162533 58%, #c6d638);
}

.look-4 {
  background: linear-gradient(145deg, #d8c0a0, #24451f 65%, #0b0f14);
}

.look-5 {
  background: linear-gradient(145deg, #101010, #343b22 52%, #c6d638);
}

.look-6 {
  background: linear-gradient(145deg, #0b0f14, #4f0c12 58%, #8f141d);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.quick-links a {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.quick-links a:hover {
  color: #f7f0df;
  background: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.commerce-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: stretch;
  gap: 16px;
  padding-top: 0;
}

.commerce-experience-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 42px rgba(11, 15, 20, 0.08);
}

.commerce-experience-copy h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.05;
}

.commerce-experience-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.commerce-experience-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.commerce-experience-actions a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 231, 0.82)),
    #fffdf9;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.commerce-experience-actions a::after {
  content: ">";
  color: var(--accent);
  font-size: 16px;
}

.commerce-experience-actions a:hover {
  border-color: rgba(115, 16, 28, 0.34);
  color: var(--accent);
  transform: translateY(-1px);
}

.storefront-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(11, 15, 20, 0.05);
}

.storefront-settings h2,
.storefront-settings p {
  margin: 0;
}

.storefront-settings p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.parameters-theme-control {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--theme-subtle, #f8f4ed);
}

.parameters-theme-control h3,
.parameters-theme-control p {
  margin: 0;
}

.parameters-theme-control > div:first-child span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.theme-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.theme-option-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 164px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-radio-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.theme-radio-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.theme-radio-row b {
  font-size: 10px;
  font-weight: 950;
}

.theme-option-card.active,
.theme-option-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(11, 15, 20, 0.1);
  transform: translateY(-1px);
}

.theme-preview-swatch {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  grid-template-rows: 34px 34px;
  overflow: hidden;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: calc(var(--radius) - 1px);
}

.theme-preview-swatch i {
  display: block;
}

.theme-preview-swatch i:first-child {
  grid-row: span 2;
}

.theme-option-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.theme-option-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.theme-apply-button {
  width: 100%;
  margin-top: auto;
}

.theme-preview-principal .theme-preview-swatch i:first-child { background: #0b0f14; }
.theme-preview-principal .theme-preview-swatch i:nth-child(2) { background: #8f141d; }
.theme-preview-principal .theme-preview-swatch i:nth-child(3) { background: #f2eadf; }

.theme-preview-premium-escuro {
  background: #11100d;
}
.theme-preview-premium-escuro strong { color: #f7f2e8; }
.theme-preview-premium-escuro small { color: #c8bdae; }
.theme-preview-premium-escuro .theme-preview-swatch i:first-child { background: #050505; }
.theme-preview-premium-escuro .theme-preview-swatch i:nth-child(2) { background: #d7b56d; }
.theme-preview-premium-escuro .theme-preview-swatch i:nth-child(3) { background: #18140f; }

.theme-preview-editorial-claro .theme-preview-swatch i:first-child { background: #fffaf6; }
.theme-preview-editorial-claro .theme-preview-swatch i:nth-child(2) { background: #9b2535; }
.theme-preview-editorial-claro .theme-preview-swatch i:nth-child(3) { background: #f8efe8; }

.theme-preview-urbano-contrastado .theme-preview-swatch i:first-child { background: #101820; }
.theme-preview-urbano-contrastado .theme-preview-swatch i:nth-child(2) { background: #006d77; }
.theme-preview-urbano-contrastado .theme-preview-swatch i:nth-child(3) { background: #ffb703; }

.theme-preview-minimalista-executivo .theme-preview-swatch i:first-child { background: #ffffff; }
.theme-preview-minimalista-executivo .theme-preview-swatch i:nth-child(2) { background: #2f3a45; }
.theme-preview-minimalista-executivo .theme-preview-swatch i:nth-child(3) { background: #f4f6f8; }

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

@media (max-width: 680px) {
  .theme-option-grid {
    grid-template-columns: 1fr;
  }

  .theme-option-card {
    min-height: auto;
  }
}

.sales-report-filter {
  grid-template-columns: repeat(5, minmax(128px, 1fr)) auto auto;
  align-items: end;
}

.audit-filter {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  width: min(100%, 1040px);
}

.sales-report-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-table-panel {
  overflow-x: auto;
}

.report-table-panel table {
  min-width: 1080px;
}

.sales-products-table-panel {
  overflow: visible;
  overflow-x: visible;
}

.report-table-panel .sales-products-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.sales-products-table th,
.sales-products-table td {
  min-width: 0;
  padding: 10px 8px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.sales-products-table th {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
}

.sales-products-table td {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sales-products-table th:nth-child(1) { width: 30%; }
.sales-products-table th:nth-child(2) { width: 7%; }
.sales-products-table th:nth-child(3) { width: 6%; }
.sales-products-table th:nth-child(4) { width: 8%; }
.sales-products-table th:nth-child(5) { width: 13%; }
.sales-products-table th:nth-child(6) { width: 7%; }
.sales-products-table th:nth-child(7) { width: 11%; }
.sales-products-table th:nth-child(8) { width: 9%; }
.sales-products-table th:nth-child(9) { width: 9%; }

.sales-product-identity {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.sales-product-identity > div {
  min-width: 0;
}

.sales-product-identity strong,
.sales-product-identity small {
  display: block;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sales-product-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.sales-products-table .small-button {
  width: 100%;
  min-height: 30px;
  padding: 7px 5px;
  font-size: 10px;
}

.sales-products-table .sales-report-table-bar {
  width: 100%;
}

@media (max-width: 1100px) {
  .sales-products-table th,
  .sales-products-table td {
    padding-inline: 6px;
    font-size: 11px;
  }

  .sales-product-identity {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
  }

  .sales-product-identity .sales-report-rank {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 900px) {
  .sales-products-table-panel {
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .report-table-panel .sales-products-table,
  .sales-products-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sales-products-table thead {
    display: none;
  }

  .sales-products-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    overflow: hidden;
    background: var(--surface, #fff);
    border: 1px solid rgba(11, 15, 20, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 15, 20, 0.05);
  }

  .sales-products-table td {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 8px;
    border: 0;
    font-size: 12px;
  }

  .sales-products-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .sales-products-table .sales-product-cell,
  .sales-products-table td:last-child,
  .sales-products-table td[colspan] {
    grid-column: 1 / -1;
  }

  .sales-products-table .sales-product-cell {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(11, 15, 20, 0.08);
  }

  .sales-products-table td:last-child {
    padding-top: 10px;
  }

  .sales-products-table .small-button {
    min-height: 36px;
  }
}

.product-admin-metrics.sales-report-metrics {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

.product-admin-metrics.sales-report-metrics div {
  position: relative;
  min-width: 0;
  min-height: 116px;
  align-content: start;
  gap: 7px;
  padding: 15px 16px 14px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(122, 11, 26, 0.06), transparent 52%),
    #fff;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.055);
}

.product-admin-metrics.sales-report-metrics div::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(122, 11, 26, 0.38);
}

.product-admin-metrics.sales-report-metrics div:nth-child(2)::before,
.product-admin-metrics.sales-report-metrics div:nth-child(5)::before,
.product-admin-metrics.sales-report-metrics div:nth-child(7)::before {
  background: rgba(31, 138, 82, 0.42);
}

.product-admin-metrics.sales-report-metrics div:nth-child(n+8)::before {
  background: rgba(208, 154, 22, 0.48);
}

.product-admin-metrics.sales-report-metrics span,
.product-admin-metrics.sales-report-metrics small {
  min-width: 0;
  max-width: 100%;
  letter-spacing: 0;
}

.product-admin-metrics.sales-report-metrics span {
  padding-right: 16px;
  color: #59616c;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-admin-metrics.sales-report-metrics strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 24px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.product-admin-metrics.sales-report-metrics small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  text-transform: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sales-report-kpi-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  border-radius: inherit;
  text-decoration: none;
}

.sales-report-kpi-link::after {
  content: "Abrir detalhe";
  position: absolute;
  right: 14px;
  bottom: 9px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 160ms ease;
}

.product-admin-metrics.sales-report-metrics div:has(.sales-report-kpi-link) {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-admin-metrics.sales-report-metrics div:has(.sales-report-kpi-link):hover {
  border-color: rgba(122, 11, 26, 0.28);
  box-shadow: 0 16px 34px rgba(11, 15, 20, 0.09);
  transform: translateY(-1px);
}

.product-admin-metrics.sales-report-metrics div:has(.sales-report-kpi-link):hover .sales-report-kpi-link::after,
.sales-report-kpi-link:focus-visible::after {
  opacity: 1;
}

.sales-report-kpi-link:focus-visible {
  outline: 3px solid rgba(122, 11, 26, 0.34);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .product-admin-metrics.sales-report-metrics {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .product-admin-metrics.sales-report-metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 430px) {
  .product-admin-metrics.sales-report-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-admin-metrics.sales-report-metrics strong {
    font-size: 22px;
  }
}

.sales-report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.sales-report-summary > div {
  padding: 22px;
  background: white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.06);
}

.sales-report-summary h2,
.sales-report-summary p {
  margin: 0;
}

.sales-report-summary p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.sales-report-highlight {
  display: grid;
  align-content: center;
  gap: 6px;
  background:
    linear-gradient(145deg, rgba(122, 11, 26, 0.08), transparent 58%),
    white !important;
}

.sales-report-highlight span,
.sales-report-highlight small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-report-highlight strong {
  color: var(--accent);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
}

.sales-report-toolbar {
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 18px;
}

.sales-report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.sales-report-cards article {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.11), transparent 48%),
    #fff;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(11, 15, 20, 0.06);
}

.sales-report-cards article > div:first-child,
.sales-report-cards article > div:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sales-report-cards span,
.sales-report-cards small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.sales-report-cards strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
}

.sales-report-cards article > div:nth-child(2) strong {
  color: var(--accent);
  font-size: 24px;
}

.sales-report-bar,
.sales-report-table-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(11, 15, 20, 0.08);
  border-radius: 999px;
}

.sales-report-bar span,
.sales-report-table-bar span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, var(--accent), #c6d638);
  border-radius: inherit;
}

.sales-report-table-bar {
  width: min(180px, 100%);
  height: 6px;
  margin-top: 7px;
}

.sales-report-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  background: rgba(122, 11, 26, 0.08);
  border-radius: 999px;
}

.executive-sales-section {
  display: grid;
  gap: 18px;
}

.executive-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 2px 0 6px;
}

.executive-chart-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.06);
}

.executive-chart-wide {
  grid-column: span 2;
}

.executive-chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.executive-chart-head h2,
.executive-chart-head p {
  margin: 0;
}

.executive-chart-head h2 {
  color: var(--ink);
  font-size: 18px;
}

.executive-chart-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--muted);
  background: #f8f4ed;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.executive-chart-card canvas {
  width: 100%;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.52), transparent),
    #fff;
  border: 1px solid rgba(11, 15, 20, 0.06);
  border-radius: 10px;
}

.executive-bar-list {
  display: grid;
  gap: 12px;
}

.executive-bar-row {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.executive-bar-row:hover strong {
  color: var(--accent);
}

.executive-bar-row > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.executive-bar-row strong,
.executive-bar-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.executive-bar-row strong {
  color: var(--ink);
  font-size: 13px;
}

.executive-bar-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.executive-bar-row i {
  display: block;
  height: 9px;
  overflow: hidden;
  background: rgba(11, 15, 20, 0.08);
  border-radius: 999px;
}

.executive-bar-row b {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
}

.executive-returns-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
}

.executive-returns-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(122, 11, 26, 0.08), transparent 52%),
    #fff;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.06);
}

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

.returns-kpi-grid div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.returns-kpi-grid span,
.returns-kpi-grid small,
.executive-return-timeline span,
.executive-return-timeline small,
.returns-mini-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.returns-kpi-grid span {
  display: block;
  text-transform: uppercase;
}

.returns-kpi-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.executive-return-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.executive-return-timeline > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(11, 15, 20, 0.07);
  border-radius: 10px;
  background: #fbf8f2;
}

.executive-return-timeline strong {
  display: block;
  margin: 3px 0;
  color: var(--accent);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.returns-mini-list {
  display: grid;
  gap: 9px;
}

.returns-mini-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(11, 15, 20, 0.07);
  border-radius: 10px;
  background: #fffdf9;
  color: inherit;
  text-decoration: none;
}

.returns-mini-list a:hover {
  border-color: rgba(122, 11, 26, 0.24);
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.06);
}

.returns-mini-list a > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.returns-mini-list a > div:last-child {
  text-align: right;
}

.returns-mini-list strong,
.returns-mini-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.returns-mini-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.returns-mini-list a > div:last-child strong {
  color: var(--accent);
}

.returns-drilldown-table table {
  min-width: 1380px;
}

.ranking-summary {
  margin-top: 6px;
}

.sales-drilldown-section {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 15, 20, 0.1);
}

.drilldown-summary {
  margin-bottom: 0;
}

.drilldown-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.drilldown-metrics div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.05);
}

.drilldown-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.drilldown-metrics strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.drilldown-table-panel table {
  min-width: 1480px;
}

.sales-drilldown-page {
  min-width: 0;
}

.sales-drilldown-page .drilldown-summary,
.sales-drilldown-page .drilldown-metrics {
  margin-bottom: 16px;
}

.sales-drilldown-page .drilldown-table-panel th {
  padding: 8px 9px;
  font-size: 10px;
  line-height: 1.2;
}

.sales-drilldown-page .drilldown-table-panel td {
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.25;
}

.sales-drilldown-page .drilldown-table-panel td span {
  font-size: 9px;
  line-height: 1.2;
}

.sales-drilldown-page .audit-drilldown-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.sales-drilldown-page .audit-drilldown-table th,
.sales-drilldown-page .audit-drilldown-table td {
  min-width: 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.audit-drilldown-table td > strong,
.audit-drilldown-table td > span {
  display: block;
  white-space: normal;
}

.audit-drilldown-table td > span {
  margin-top: 3px;
  color: var(--muted);
}

.audit-drilldown-table td::before {
  display: none;
  content: attr(data-label);
}

.audit-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
}

.audit-values-grid div {
  min-width: 0;
}

.audit-values-grid span,
.audit-values-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.audit-values-grid span {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-values-grid strong {
  font-size: 10px;
  line-height: 1.2;
}

.audit-quantity-cell {
  text-align: center;
}

.return-order-link {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.return-order-link:hover {
  text-decoration: underline;
}

.return-origin-title {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 11px;
}

.return-source-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.return-source-link:hover {
  text-decoration: underline;
}

.return-product-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.return-product-list .return-product-summary + .return-product-summary {
  padding-top: 9px;
  border-top: 1px solid rgba(11, 15, 20, 0.08);
}

.return-product-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.return-product-thumb {
  display: grid;
  width: 58px;
  height: 70px;
  place-items: center;
  overflow: hidden;
  background: #f5f3ef;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 7px;
}

.return-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.return-product-thumb img.contain {
  object-fit: contain;
}

.return-product-thumb > span {
  color: var(--muted);
  font-size: 20px !important;
  font-weight: 900;
}

.return-product-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.return-product-copy > a,
.return-product-copy > strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.return-product-copy > a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.return-product-copy > span {
  color: var(--muted);
  font-size: 9px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sales-audit-table th:nth-child(1) { width: 9%; }
.sales-audit-table th:nth-child(2) { width: 17%; }
.sales-audit-table th:nth-child(3) { width: 15%; }
.sales-audit-table th:nth-child(4) { width: 27%; }
.sales-audit-table th:nth-child(5) { width: 7%; }
.sales-audit-table th:nth-child(6) { width: 25%; }

.returns-audit-table th:nth-child(1) { width: 11%; }
.returns-audit-table th:nth-child(2) { width: 18%; }
.returns-audit-table th:nth-child(3) { width: 22%; }
.returns-audit-table th:nth-child(4) { width: 27%; }
.returns-audit-table th:nth-child(5) { width: 7%; }
.returns-audit-table th:nth-child(6) { width: 15%; }

@media (max-width: 900px) {
  .sales-drilldown-page .audit-drilldown-panel {
    padding: 0;
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .sales-drilldown-page .audit-drilldown-table,
  .audit-drilldown-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .audit-drilldown-table thead {
    display: none;
  }

  .audit-drilldown-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 15, 20, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 15, 20, 0.05);
  }

  .audit-drilldown-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 0;
    text-align: left;
  }

  .audit-drilldown-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .audit-drilldown-table .audit-operation-cell,
  .audit-drilldown-table .audit-product-cell,
  .audit-drilldown-table td[data-label="Valores"],
  .audit-drilldown-table td[colspan] {
    grid-column: 1 / -1;
  }
}

.sales-comparison-section {
  min-width: 0;
}

.comparison-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.comparison-shortcuts a,
.comparison-dimension-head nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.12);
  border-radius: 6px;
}

.comparison-shortcuts a.active,
.comparison-dimension-head nav a.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.comparison-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1.2fr)) repeat(2, minmax(130px, .65fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.05);
}

.comparison-filter-panel fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 6px;
}

.comparison-filter-panel legend,
.comparison-filter-panel label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.comparison-filter-panel input,
.comparison-filter-panel select {
  width: 100%;
  min-width: 0;
}

.comparison-period-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.comparison-period-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(122, 11, 26, 0.04);
  border-left: 3px solid var(--accent);
}

.comparison-period-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-period-summary strong {
  font-size: 13px;
}

.comparison-calculation-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  background: rgba(11, 15, 20, 0.035);
  border-left: 3px solid rgba(122, 11, 26, 0.55);
}

.comparison-calculation-note strong {
  color: var(--text);
}

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

.comparison-metrics-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.045);
}

.comparison-metrics-grid article > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-metric-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.comparison-metric-values div {
  min-width: 0;
}

.comparison-metric-values small,
.comparison-metric-values strong {
  display: block;
}

.comparison-metric-values small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-metric-values strong {
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.comparison-change {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.comparison-change.up {
  color: #187347;
}

.comparison-change.down {
  color: #a12532;
}

.comparison-change.flat {
  color: var(--muted);
}

.comparison-change strong {
  color: inherit;
}

.comparison-chart-panel {
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.045);
}

.comparison-chart-panel canvas {
  display: block;
  width: 100%;
  height: 280px;
  max-width: 100%;
}

.comparison-dimension-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.comparison-dimension-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.comparison-dimension-panel {
  overflow-x: visible;
}

.comparison-dimension-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.comparison-dimension-table th,
.comparison-dimension-table td {
  min-width: 0;
  padding: 9px 8px;
  vertical-align: top;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.comparison-dimension-table th:nth-child(1) { width: 28%; }
.comparison-dimension-table th:nth-child(2) { width: 18%; }
.comparison-dimension-table th:nth-child(3) { width: 18%; }
.comparison-dimension-table th:nth-child(4) { width: 14%; }
.comparison-dimension-table th:nth-child(5) { width: 22%; }

.comparison-period-column strong,
.comparison-period-column small {
  display: block;
}

.comparison-period-column small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.comparison-dimension-table td > strong,
.comparison-dimension-table td > span {
  display: block;
  white-space: normal;
}

.comparison-dimension-table td > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.comparison-identity {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.comparison-identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.comparison-drill-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.comparison-drill-actions .button {
  width: 100%;
  min-height: 30px;
  padding: 6px 4px;
  font-size: 8px;
}

@media (max-width: 1180px) {
  .comparison-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-filter-panel .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .comparison-dimension-head {
    align-items: stretch;
    flex-direction: column;
  }

  .comparison-dimension-head nav {
    justify-content: flex-start;
  }

  .comparison-dimension-panel {
    padding: 0;
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .comparison-dimension-table,
  .comparison-dimension-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .comparison-dimension-table thead {
    display: none;
  }

  .comparison-dimension-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(11, 15, 20, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 15, 20, 0.05);
  }

  .comparison-dimension-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 0;
  }

  .comparison-dimension-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .comparison-dimension-table .comparison-identity,
  .comparison-dimension-table .comparison-drill-actions,
  .comparison-dimension-table td[colspan] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .comparison-filter-panel,
  .comparison-period-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-shortcuts,
  .comparison-dimension-head nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-chart-panel canvas {
    height: 230px;
  }
}

.sales-drilldown-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

@media (max-width: 760px) {
  .sales-drilldown-head .hero-actions {
    width: 100%;
  }

  .sales-drilldown-head .hero-actions .button {
    flex: 1 1 140px;
  }

  .sales-drilldown-page {
    padding-inline: 0;
  }

  .sales-drilldown-page .drilldown-summary {
    margin-inline: 0;
  }
}

.seller-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.seller-card-grid article {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.12), transparent 52%),
    white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(11, 15, 20, 0.06);
}

.sellers-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 16px;
  margin-bottom: 18px;
}

.sellers-spotlight > div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 22px;
  background: white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.06);
}

.sellers-spotlight h2,
.sellers-spotlight p {
  margin: 0;
}

.sellers-spotlight p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.sellers-spotlight > div:last-child {
  background:
    linear-gradient(145deg, rgba(122, 11, 26, 0.09), transparent 58%),
    white;
}

.sellers-spotlight span,
.sellers-spotlight small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sellers-spotlight strong {
  color: var(--accent);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
}

.sellers-filter {
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 1fr)) auto auto;
  align-items: end;
}

.sellers-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  background: rgba(122, 11, 26, 0.08);
  border-radius: 999px;
}

.seller-card-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(11, 15, 20, 0.08);
  border-radius: 999px;
}

.seller-card-bar span {
  display: block;
  min-width: 4px;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #c6d638);
  border-radius: inherit;
}

.seller-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.seller-card-stats div {
  min-width: 0;
  padding: 10px;
  background: rgba(11, 15, 20, 0.035);
  border-radius: 12px;
}

.seller-card-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-card-stats strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 15px;
}

.sellers-table-panel table {
  min-width: 1320px;
}

.audit-table-panel {
  max-width: 100%;
}

.audit-table-panel table {
  min-width: 1120px;
}

.audit-table-panel td {
  vertical-align: top;
}

.audit-table-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.audit-table-panel code {
  white-space: nowrap;
}

.audit-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.audit-insight-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.audit-insight-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.1), transparent 54%),
    #fff;
  box-shadow: 0 16px 36px rgba(11, 15, 20, 0.06);
}

.audit-insight-card h3,
.audit-insight-card p {
  margin: 0;
}

.audit-insight-card h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.audit-result-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.audit-result-split span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #24451f;
  background: rgba(36, 69, 31, 0.09);
  border: 1px solid rgba(36, 69, 31, 0.14);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-result-split span.danger {
  color: #73101c;
  background: rgba(115, 16, 28, 0.08);
  border-color: rgba(115, 16, 28, 0.14);
}

.audit-result-split strong {
  color: inherit;
  font-size: 28px;
  line-height: 0.95;
}

.audit-filter-chips,
.audit-rank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-filter-chips a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.audit-filter-chips a.active,
.audit-filter-chips a:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.audit-rank-list {
  display: grid;
}

.audit-rank-list span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(11, 15, 20, 0.035);
  border-radius: 9px;
}

.audit-rank-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.audit-rank-list b {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
}

.audit-record-list {
  display: grid;
  gap: 4px;
}

.audit-record-head,
.audit-record {
  display: grid;
  grid-template-columns: 8px 58px minmax(180px, 1.7fr) minmax(96px, 0.8fr) minmax(82px, 0.55fr) minmax(130px, 0.9fr) 84px 64px;
  align-items: center;
  gap: 8px;
}

.audit-record-head {
  padding: 0 9px 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-record {
  min-width: 0;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(11, 15, 20, 0.025);
}

.audit-record.has-failure {
  border-color: rgba(159, 16, 36, 0.18);
}

.audit-record-date {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.audit-record-date strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

.audit-record-date span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.audit-record-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.audit-record-main h3,
.audit-record-main p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-record-main h3 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.18;
}

.audit-record-main p {
  color: #424a54;
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.2;
}

.audit-record-status {
  width: 6px;
  height: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
  letter-spacing: 0;
}

.audit-record-status.success {
  background: #2f6f3e;
  border: 0;
  box-shadow: 0 0 0 1px rgba(47, 111, 62, 0.12);
}

.audit-record-status.failure {
  background: #9f1024;
  border: 0;
  box-shadow: 0 0 0 1px rgba(159, 16, 36, 0.12);
}

.audit-record-cell {
  min-width: 0;
  display: block;
  color: #4f5965;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-record-details summary,
.audit-technical-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-record-details {
  min-width: 0;
  justify-self: end;
}

.audit-record-details summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  padding: 3px 6px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(122, 11, 26, 0.14);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  list-style-position: inside;
}

.audit-record-details[open] {
  grid-column: 3 / -1;
  justify-self: stretch;
}

.audit-technical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(11, 15, 20, 0.08);
}

.audit-technical-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #fbfaf7;
  border: 1px solid rgba(11, 15, 20, 0.06);
  border-radius: 8px;
}

.audit-technical-grid > div.transition {
  background: rgba(198, 214, 56, 0.12);
  border-color: rgba(198, 214, 56, 0.34);
}

.audit-technical-grid > div.group {
  grid-column: 1 / -1;
}

.audit-technical-grid strong,
.audit-technical-grid code {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.audit-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.audit-event-card {
  min-width: 0;
  display: block;
}

.audit-event-main {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-left: 5px solid #24451f;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 15, 20, 0.055);
}

.audit-event-card.has-failure .audit-event-main {
  border-color: rgba(115, 16, 28, 0.2);
  border-left-color: #73101c;
  background:
    linear-gradient(135deg, rgba(115, 16, 28, 0.06), transparent 45%),
    white;
}

.audit-event-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(11, 15, 20, 0.07);
}

.audit-event-head div {
  min-width: 0;
}

.audit-event-title-block {
  display: grid;
  gap: 8px;
}

.audit-event-grid span,
.audit-event-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-event-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.audit-event-title-block p {
  max-width: 980px;
  margin: 0;
  color: #3e4650;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.audit-event-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-event-meta-line span {
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #5b6470;
  background: #f7f4ee;
  border: 1px solid rgba(11, 15, 20, 0.07);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.audit-event-side {
  min-width: 104px;
  display: grid;
  justify-items: end;
}

.audit-status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-status-pill.success {
  color: #24451f;
  background: rgba(36, 69, 31, 0.1);
  border: 1px solid rgba(36, 69, 31, 0.16);
}

.audit-status-pill.failure {
  color: #73101c;
  background: rgba(115, 16, 28, 0.09);
  border: 1px solid rgba(115, 16, 28, 0.16);
}

.audit-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-event-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px;
  background: rgba(11, 15, 20, 0.028);
  border-radius: 10px;
}

.audit-event-grid strong,
.audit-event-grid code,
.audit-event-details p {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.audit-event-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.audit-event-grid code {
  white-space: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.audit-event-details {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid rgba(226, 216, 202, 0.8);
  border-radius: 10px;
}

.audit-event-details p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.audit-detail-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 216, 202, 0.86);
  border-radius: 8px;
}

.audit-detail-item.transition {
  background: rgba(198, 214, 56, 0.12);
  border-color: rgba(198, 214, 56, 0.36);
}

.audit-detail-item.group {
  grid-column: 1 / -1;
  background: white;
}

.audit-detail-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.audit-detail-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.audit-empty-state {
  background: white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .audit-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 760px) {
  .audit-metrics,
  .audit-event-grid,
  .audit-result-split,
  .audit-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-filter {
    width: 100%;
  }

  .audit-record-head {
    display: none;
  }

  .audit-record {
    grid-template-columns: 8px 54px minmax(0, 1fr) 54px;
    gap: 6px;
    padding: 7px 8px;
  }

  .audit-record-date {
    grid-column: 2;
  }

  .audit-record-main {
    grid-column: 3;
  }

  .audit-record-cell {
    display: none;
  }

  .audit-record-main h3 {
    font-size: 12px;
  }

  .audit-record-main p {
    font-size: 10px;
  }

  .audit-record-details {
    grid-column: 4;
  }

  .audit-record-details[open] {
    grid-column: 2 / -1;
  }

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

  .audit-event-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .audit-status-pill {
    justify-self: start;
  }

  .audit-event-side {
    min-width: 0;
    justify-items: start;
  }

  .audit-event-main,
  .audit-insight-card {
    padding: 14px;
    border-radius: 10px;
  }
}

.detail-fashion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.detail-fashion-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-info-accordion {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-info-accordion details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.detail-info-accordion summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-info-accordion p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.cart-recovery-grid {
  display: grid;
  gap: 14px;
}

.cart-recovery-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 130px auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.12), transparent 38%),
    white;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.cart-recovery-card h3 {
  margin: 4px 0;
  font-size: 20px;
}

.cart-recovery-card p,
.cart-recovery-card span,
.cart-recovery-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cart-recovery-card strong {
  color: var(--ink);
}

.cart-recovery-score {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.04);
}

.cart-recovery-score strong {
  font-size: 30px;
}

.cart-recovery-actions {
  display: grid;
  gap: 8px;
}

.campaign-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  margin-top: 42px;
  background:
    linear-gradient(135deg, rgba(143, 20, 29, 0.12), rgba(36, 69, 31, 0.12)),
    #f4ebe0;
  border: 1px solid rgba(226, 216, 202, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(11, 15, 20, 0.08);
}

.campaign-copy {
  padding: 34px;
}

.campaign-copy h2,
.seller-strip h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.campaign-image {
  min-height: 310px;
}

.style-service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(115, 16, 28, 0.08), rgba(36, 69, 31, 0.1)),
    #fffdf9;
  box-shadow: 0 18px 48px rgba(11, 15, 20, 0.08);
}

.style-service-band h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.style-service-band p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.style-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.style-service-cards article {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.style-service-cards span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.style-service-cards strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.style-service-cards p {
  margin: 0;
  font-size: 12px;
}

.section {
  margin-top: 58px;
}

.showcase-section {
  width: min(100% - 36px, 1280px);
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(11, 15, 20, 0.055), rgba(143, 20, 29, 0.07)),
    #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(11, 15, 20, 0.08);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.showcase-title {
  align-items: center;
}

.showcase-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.showcase-tools span,
.showcase-tools a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.showcase-tools span {
  color: var(--muted);
}

.showcase-tools a:hover {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.store-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 4px 0 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.mobile-filter-drawer {
  margin: 4px 0 22px;
}

.mobile-filter-drawer summary {
  display: none;
}

.store-filter-panel label {
  min-width: 0;
}

.store-search-field {
  grid-column: span 2;
}

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

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}

.active-filter-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-title {
  align-items: center;
}

.section-title h2,
.table-panel h2,
.checkout-panel h2,
.empty-state h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.company-grid,
.product-grid,
.admin-grid,
.checkout-layout,
.plan-grid,
.metrics,
.import-layout {
  display: grid;
  gap: 18px;
}

.company-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid {
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  gap: 22px;
}

.plan-grid {
  grid-template-columns: repeat(3, 1fr);
}

.company-card,
.plan-card,
.table-panel,
.checkout-panel,
.empty-state,
.form-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.company-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 44%),
    white;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.company-card::after {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(143, 20, 29, 0.15);
  border-radius: 50%;
  content: "";
}

.company-card:hover,
.product-card:hover,
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.company-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-logo-mark {
  max-width: 94px;
  min-width: 46px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(11, 15, 20, 0.06);
}

.company-logo-mark img {
  max-width: 76px;
  max-height: 16px;
  object-fit: contain;
}

.company-logo-mark.jompeke-logo-mark {
  min-width: 52px;
  height: 38px;
  padding: 4px 10px;
  background: #fffdf9;
  border-color: rgba(11, 15, 20, 0.08);
}

.company-logo-mark.jompeke-logo-mark img {
  max-width: 30px;
  max-height: 32px;
}

.company-logo-mark span {
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-card span,
.product-body p,
.plan-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.company-card h3,
.product-body h3,
.cart-item h3,
.plan-card h3 {
  margin: 0;
  font-size: 19px;
}

.company-card p,
.product-body span,
.cart-item p,
.plan-card p {
  margin: 0;
  color: var(--muted);
}

.company-info-section {
  padding-top: 10px;
  padding-bottom: 30px;
}

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

.company-info-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 8px;
  background: #fffdf9;
  text-align: center;
}

.company-info-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-info-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.company-info-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-card {
  grid-column: span 3;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(11, 15, 20, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(143, 20, 29, 0.28);
}

.product-grid .product-card:first-child {
  grid-column: span 6;
}

.product-grid .product-card:first-child .product-image {
  min-height: 470px;
}

.product-grid .product-card:first-child .product-body h3 {
  font-size: 24px;
  line-height: 1.04;
}

.product-image {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  min-height: 330px;
  margin: 10px 10px 0;
  padding: 12px;
  isolation: isolate;
}

.product-image::before,
.product-image::after {
  z-index: 0;
}

.product-image.has-photo::before,
.product-image.has-photo::after {
  content: none;
  display: none;
}

.product-category {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  line-height: 1.2;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

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

.product-meta p,
.product-meta span {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.product-meta .product-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 72%;
  overflow-wrap: normal;
}

.product-brand-name img {
  width: 24px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 24px;
}

.product-brand-name.is-jompeke img {
  width: 24px;
  height: 28px;
  flex-basis: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-brand-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta span {
  color: var(--muted);
}

.product-meta .product-brand-name span {
  color: var(--accent);
}

.product-body h3 {
  font-size: 18px;
  line-height: 1.12;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: #f7f1e8;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.product-body strong {
  font-size: 22px;
  color: var(--accent-dark);
}

.promo-price-stack,
.detail-promo-price {
  display: grid;
  gap: 3px;
}

.promo-price-stack > span,
.detail-promo-price > span,
.cart-original-price {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: line-through;
}

.promo-price-stack small,
.detail-promo-price small {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 950;
}

.product-card .button {
  min-height: 44px;
  border-radius: 7px;
}

.product-body form {
  margin-top: 4px;
}

.seller-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
  margin-top: 60px;
  padding: 36px;
  background: var(--soft);
}

.lead-form {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
}

.lead-form h3,
.plan-card h3 {
  margin: 0;
}

.plan-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.plan-card strong {
  font-size: 26px;
}

.plan-card small {
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 30px;
}

.metrics div {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-size: 28px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.management-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 8px;
}

.management-summary {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.18), transparent 46%),
    var(--ink);
  color: white;
}

.management-summary .eyebrow {
  color: var(--accent);
}

.management-summary > strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
}

.management-summary > span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.summary-row div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.summary-row b,
.summary-row small {
  display: block;
}

.summary-row b {
  font-size: 18px;
}

.summary-row small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.management-actions {
  display: grid;
  gap: 12px;
}

.management-actions a {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
}

.management-actions a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.management-actions span,
.management-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.management-actions strong {
  font-size: 34px;
}

.operations-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px rgba(17, 17, 17, 0.08);
}

.operations-panel a {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px;
  background: #fbf8f2;
  border: 1px solid rgba(226, 216, 202, 0.82);
}

.operations-panel a:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.operations-panel b {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 20px;
}

.operations-panel span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.management-flow {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  background: #f7f1e8;
  border: 1px solid var(--line);
}

.flow-copy h2 {
  margin: 0;
  font-size: 24px;
}

.flow-copy p:not(.eyebrow) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.flow-bars {
  display: grid;
  gap: 16px;
  align-content: center;
}

.flow-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 46px;
  align-items: center;
  gap: 14px;
}

.flow-row span,
.flow-row b {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.flow-row div {
  height: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(226, 216, 202, 0.9);
}

.flow-row i {
  display: block;
  min-width: 4px;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.management-metrics {
  margin-top: 18px;
}

.management-metrics div {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: start;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(198, 214, 56, 0.12), transparent 46%),
    white;
}

.management-metrics div::after {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(11, 15, 20, 0.06);
  content: "#";
  font-size: 46px;
  font-weight: 950;
  line-height: 1;
}

.management-metrics span {
  order: 0;
  text-transform: uppercase;
}

.management-metrics strong {
  order: 1;
  font-size: 26px;
}

.management-metrics small {
  order: 2;
  line-height: 1.35;
  text-transform: none;
}

.page-head {
  justify-content: space-between;
  padding: 50px 0 22px;
}

.management-head {
  position: relative;
  margin-top: 26px;
  padding: 32px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.2), transparent 42%),
    linear-gradient(90deg, #0b0f14, #21321d);
  color: white;
  z-index: 50;
}

.management-head::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(18deg);
}

.management-head > div {
  position: relative;
  z-index: 1;
}

.management-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.management-head h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
}

.management-head p:not(.eyebrow) {
  max-width: 560px;
  font-size: 15px;
}

.management-head .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.admin-session-menu {
  max-width: none;
  align-items: center;
  z-index: 2;
}

.admin-session-menu a,
.management-module-menu summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-session-menu a:hover,
.management-module-menu[open] summary,
.management-module-menu summary:hover {
  background: white;
  color: var(--ink);
}

.management-module-menu {
  position: relative;
}

.management-module-menu summary {
  cursor: pointer;
  list-style: none;
}

.management-module-menu summary::-webkit-details-marker {
  display: none;
}

.management-module-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 100;
  width: min(860px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 58px rgba(11, 15, 20, 0.2);
  backdrop-filter: blur(18px);
  color: var(--ink);
}

.management-module-group {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.74);
  border-radius: 8px;
  background: white;
}

.management-module-group > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.management-menu-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(115, 8, 21, 0.96), rgba(11, 15, 20, 0.96));
  color: white;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(115, 8, 21, 0.2);
}

.management-module-group .management-menu-symbol {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: none;
}

.management-module-group strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.management-module-group nav {
  display: grid;
  gap: 5px;
}

.management-module-group a {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-radius: 7px;
  background: #fbf8f2;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.management-module-group a:hover {
  background: var(--accent);
  color: white;
}

.commercial-context-panel {
  margin-top: 18px;
  padding: 18px;
  background: #fffdf9;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.commercial-command-center {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px auto 0;
}

.commercial-command-main,
.commercial-command-side,
.commercial-storefront-card,
.commercial-module-map {
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(11, 15, 20, 0.08);
}

.commercial-command-main {
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.16), transparent 42%),
    linear-gradient(120deg, #fffdf9, #f8f4ed);
  border: 1px solid rgba(226, 216, 202, 0.95);
}

.commercial-command-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.commercial-command-title h2 {
  margin: 4px 0 6px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
}

.commercial-command-title span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.command-status-card {
  flex: 0 0 188px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.command-status-card span,
.command-status-card small,
.command-health-grid span,
.command-health-grid small,
.commercial-scope-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.command-status-card span,
.command-health-grid span,
.commercial-scope-list span {
  text-transform: uppercase;
}

.command-status-card strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 0.95;
}

.commercial-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.commercial-kpis div,
.commercial-kpis > a {
  display: grid;
  gap: 6px;
  min-height: 124px;
  align-content: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.commercial-kpis > a {
  background:
    linear-gradient(145deg, rgba(131, 16, 27, 0.11), transparent 56%),
    rgba(255, 255, 255, 0.88);
}

.commercial-kpis > a:hover {
  border-color: rgba(131, 16, 27, 0.28);
  box-shadow: 0 16px 34px rgba(11, 15, 20, 0.09);
  transform: translateY(-1px);
}

.commercial-kpis span,
.commercial-kpis small,
.commercial-command-side p,
.commercial-action-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.commercial-kpis span,
.commercial-action-list span {
  text-transform: uppercase;
}

.commercial-kpis strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
}

.command-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-health-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.command-health-grid strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.command-health-grid i,
.dashboard-channel-list i,
.dashboard-status-list i,
.dashboard-product-ranking i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.08);
}

.command-health-grid i::before,
.dashboard-channel-list i::before,
.dashboard-status-list i::before,
.dashboard-product-ranking i::before {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  content: "";
}

.commercial-command-side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.16), transparent 46%),
    #0b0f14;
  border: 1px solid rgba(11, 15, 20, 0.16);
  color: white;
}

.commercial-command-side .eyebrow {
  color: var(--gold);
}

.commercial-command-side h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.02;
}

.commercial-command-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.commercial-scope-list {
  display: grid;
  gap: 10px;
}

.commercial-scope-list div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.commercial-scope-list strong {
  color: white;
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.commercial-action-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.commercial-action-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.commercial-action-list a:hover {
  background: rgba(198, 214, 56, 0.13);
  border-color: rgba(198, 214, 56, 0.35);
}

.commercial-action-list b {
  display: grid;
  width: 52px;
  height: 44px;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-size: 20px;
}

.commercial-action-list span {
  color: white;
}

.commercial-storefront-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(36, 69, 31, 0.1), transparent 42%),
    #fffdf9;
  border: 1px solid rgba(226, 216, 202, 0.9);
}

.commercial-storefront-card h2,
.commercial-module-map h2 {
  margin: 0;
}

.commercial-storefront-card p:not(.eyebrow),
.commercial-module-map p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.curadoria-settings-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.curadoria-toggle,
.curadoria-brand-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
}

.curadoria-toggle {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.curadoria-toggle input,
.curadoria-brand-picker input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.curadoria-brand-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.curadoria-brand-picker label {
  align-items: flex-start;
}

.curadoria-brand-picker span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.curadoria-brand-picker strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.curadoria-brand-picker small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.import-active-company {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fffdf9;
}

.import-active-company span,
.import-active-company small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.import-active-company span {
  text-transform: uppercase;
}

.import-active-company strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.commercial-module-map {
  margin-top: 18px;
  padding: 22px;
  background: #f8f4ed;
  border: 1px solid rgba(226, 216, 202, 0.95);
}

.commercial-module-map .admin-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.command-kpis {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dashboard-section-grid,
.dashboard-order-grid {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px auto 0;
}

.dashboard-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 244, 237, 0.86), transparent 58%),
    #fffdf9;
  box-shadow: 0 18px 44px rgba(11, 15, 20, 0.07);
}

.dashboard-wide-panel {
  width: min(1220px, calc(100vw - 40px));
  margin: 18px auto 0;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title h2,
.dashboard-mini-list h3 {
  margin: 0;
}

.panel-title h2 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.panel-title span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.demand-command-panel {
  background:
    linear-gradient(135deg, rgba(123, 16, 31, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(11, 15, 20, 0.05), transparent 42%),
    #fffdf9;
}

.demand-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.demand-command-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demand-funnel,
.demand-list {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.demand-funnel h3,
.demand-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.demand-funnel a,
.demand-funnel > div,
.demand-list article,
.demand-list > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.05);
}

.demand-funnel a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.demand-funnel span,
.demand-list span,
.demand-list p,
.demand-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.demand-funnel span,
.demand-list span {
  text-transform: uppercase;
}

.demand-funnel strong,
.demand-list strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.demand-funnel i {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--value), rgba(11, 15, 20, 0.08) var(--value));
}

.demand-list article {
  display: grid;
  gap: 7px;
}

.demand-list article > div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.demand-list p,
.demand-list small {
  margin: 0;
  overflow-wrap: anywhere;
}

.demand-list a {
  width: fit-content;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  gap: 10px;
}

.metric-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid div,
.dashboard-mini-list > div,
.dashboard-mini-list > a,
.dashboard-status-list a,
.dashboard-status-list > div,
.dashboard-recent-orders article,
.dashboard-product-ranking > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-grid span,
.metric-grid small,
.dashboard-mini-list span,
.dashboard-mini-list small,
.dashboard-status-list span,
.dashboard-status-list small,
.dashboard-recent-orders span,
.dashboard-recent-orders p,
.dashboard-product-ranking small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.metric-grid span,
.dashboard-mini-list span,
.dashboard-status-list span {
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-mini-list,
.dashboard-status-list,
.dashboard-recent-orders,
.dashboard-product-ranking {
  display: grid;
  gap: 10px;
}

.dashboard-mini-list {
  margin-top: 16px;
}

.dashboard-mini-list > div,
.dashboard-mini-list > a,
.dashboard-status-list a,
.dashboard-product-ranking > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.dashboard-mini-list h3 {
  font-size: 16px;
}

.dashboard-mini-list strong,
.dashboard-status-list strong,
.dashboard-recent-orders b,
.dashboard-product-ranking b {
  color: var(--ink);
}

.dashboard-mini-list small,
.dashboard-status-list small,
.dashboard-product-ranking small {
  grid-column: 1 / -1;
}

.dashboard-channel-list i,
.dashboard-status-list i {
  grid-column: 1 / -1;
}

.dashboard-status-list a {
  grid-template-columns: minmax(0, 1fr) 44px auto;
}

.dashboard-status-list strong {
  display: grid;
  width: 44px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.dashboard-recent-orders article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
}

.dashboard-recent-orders article > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-recent-orders strong,
.dashboard-recent-orders p {
  grid-column: 1 / 2;
  margin: 0;
}

.dashboard-recent-orders b {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  font-size: 18px;
}

.dashboard-product-ranking > div {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.dashboard-product-ranking span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 950;
}

.dashboard-product-ranking small {
  display: block;
  margin-top: 4px;
}

.dashboard-product-ranking i {
  margin-top: 9px;
}

.dashboard-empty {
  color: var(--muted);
  font-weight: 850;
}

.promotion-command {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin: 18px auto 0;
}

.promotion-command-main,
.promotion-command-kpis {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 16, 31, 0.1), transparent 54%),
    #fffdf9;
  box-shadow: 0 18px 44px rgba(11, 15, 20, 0.07);
}

.promotion-command-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.05;
}

.promotion-command-main p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.promotion-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.promotion-command-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(123, 16, 31, 0.18);
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.promotion-command-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.promotion-command-kpis div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.promotion-command-kpis span,
.promotion-command-kpis small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.promotion-command-kpis span {
  text-transform: uppercase;
}

.promotion-command-kpis strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.promotion-board {
  display: grid;
  gap: 12px;
}

.promotion-row-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(240px, 0.85fr) auto;
  gap: 16px;
  align-items: stretch;
  padding: 15px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.promotion-row-card.inactive {
  opacity: 0.78;
}

.promotion-discount-badge {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 92px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.promotion-row-card.inactive .promotion-discount-badge {
  background: #5f6268;
}

.promotion-discount-badge strong {
  font-size: 31px;
  line-height: 1;
}

.promotion-discount-badge span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.promotion-row-main,
.promotion-row-meta,
.promotion-row-actions {
  min-width: 0;
}

.promotion-row-main {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.promotion-row-title {
  min-width: 0;
}

.promotion-row-title h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.promotion-row-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.38;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(31, 118, 80, 0.12);
  color: #1f7650;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.promotion-row-card.inactive .status-pill {
  background: rgba(95, 98, 104, 0.12);
  color: #5f6268;
}

.promotion-row-meta {
  display: grid;
  gap: 8px;
}

.promotion-row-meta div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(11, 15, 20, 0.07);
  border-radius: 8px;
  background: rgba(248, 244, 237, 0.72);
}

.promotion-row-meta span,
.promotion-row-actions small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.promotion-row-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.promotion-row-actions {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 12px;
}

.promotion-target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.promotion-target-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 999px;
  background: #f7f1e8;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.promotion-form-layout select[multiple] {
  min-height: 180px;
  padding: 10px;
}

.promotion-studio-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.promotion-form-layout .registry-form-panel {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.promotion-form-layout .promotion-side-panel {
  position: static;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 220px) minmax(300px, 0.95fr);
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border-color: rgba(123, 16, 31, 0.16);
  background:
    linear-gradient(135deg, rgba(123, 16, 31, 0.94), rgba(22, 24, 29, 0.95)),
    #16181d;
  color: #fff;
}

.promotion-studio-intro {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.promotion-studio-intro .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.promotion-studio-intro h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.promotion-studio-intro span {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
}

.promotion-side-panel .registry-side-summary strong {
  overflow-wrap: anywhere;
}

.promotion-preview-badge {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 154px;
  margin: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 48%),
    #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.promotion-form-layout .promotion-preview-badge span {
  color: var(--brand);
  text-transform: uppercase;
}

.promotion-studio-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
}

.promotion-studio-summary div {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.promotion-studio-summary span,
.promotion-studio-summary small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.promotion-studio-summary strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.promotion-preview-badge strong {
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.95;
}

.promotion-preview-badge span {
  font-size: 15px;
  font-weight: 950;
}

.promotion-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.promotion-step-list div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.04);
}

.promotion-step-list strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.promotion-step-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.promotion-form-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.06);
}

.promotion-form-card h2 {
  margin: 0;
}

.promotion-form-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.promotion-form-title > div,
.promotion-form-title span {
  min-width: 0;
}

.promotion-form-title span {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.promotion-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.promotion-scope-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.promotion-scope-picker label {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 104px;
  padding: 13px;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 8px;
  background: #fbf8f2;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.promotion-scope-picker label:hover,
.promotion-scope-picker label.selected {
  border-color: rgba(123, 16, 31, 0.34);
  background: rgba(123, 16, 31, 0.07);
  transform: translateY(-1px);
}

.promotion-scope-picker input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.promotion-scope-picker strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.promotion-scope-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.32;
}

.promotion-selector-grid label,
.promotion-select-panel {
  min-width: 0;
}

.promotion-select-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(248, 244, 237, 0.58);
}

.promotion-select-panel[hidden] {
  display: none;
}

.promotion-general-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(31, 118, 80, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 118, 80, 0.1), transparent 54%),
    #fffdf9;
}

.promotion-general-panel[hidden] {
  display: none;
}

.promotion-general-panel strong {
  color: var(--ink);
  font-size: 18px;
}

.promotion-general-panel span,
.promotion-general-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.promotion-selection-count {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
}

.promotion-selection-count b {
  color: var(--brand);
}

.promotion-target-section {
  min-width: 0;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(248, 244, 237, 0.58);
  overflow: clip;
}

.promotion-target-section summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.promotion-target-section summary::-webkit-details-marker {
  display: none;
}

.promotion-target-section summary::before {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  grid-row: 1;
  grid-column: 2;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.promotion-target-section[open] summary::before {
  content: "-";
}

.promotion-target-section summary > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.promotion-target-section summary strong {
  color: var(--ink);
  font-size: 15px;
}

.promotion-target-section summary small,
.promotion-target-section > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.promotion-target-section summary > b {
  justify-self: end;
  margin-right: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  font-size: 11px;
  white-space: nowrap;
}

.promotion-target-section > input,
.promotion-target-section > select,
.promotion-target-section > small {
  margin: 0 14px 12px;
}

.promotion-target-section > select {
  width: calc(100% - 28px);
  min-height: 180px;
  max-height: 220px;
  border-color: rgba(11, 15, 20, 0.1);
  background: #fff;
}

.promotion-select-panel select {
  min-height: 230px;
  border-color: rgba(11, 15, 20, 0.1);
  background: #fff;
}

.promotion-select-search {
  min-height: 38px;
  border-color: rgba(11, 15, 20, 0.12);
  background: #fff;
}

.promotion-selector-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.promotion-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 44px rgba(11, 15, 20, 0.12);
}

.promotion-save-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.promotion-discount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.promotion-discount-presets button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(123, 16, 31, 0.18);
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.promotion-scope-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(123, 16, 31, 0.14);
  border-radius: 8px;
  background: rgba(123, 16, 31, 0.06);
}

.promotion-scope-note strong {
  color: var(--ink);
}

.promotion-scope-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.promotion-clean-head {
  align-items: flex-end;
}

.promotion-clean-shell {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  gap: 16px;
  margin: 0 auto 80px;
}

.promotion-clean-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(123, 16, 31, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(123, 16, 31, 0.95), rgba(18, 20, 25, 0.95)),
    #15171c;
  box-shadow: 0 18px 44px rgba(11, 15, 20, 0.12);
  color: #fff;
}

.promotion-clean-summary > div {
  min-width: 0;
}

.promotion-clean-summary h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.promotion-clean-summary .eyebrow,
.promotion-clean-summary span {
  color: rgba(255, 255, 255, 0.72);
}

.promotion-clean-summary > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
}

.promotion-clean-summary > div:first-child > span {
  max-width: 620px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.promotion-clean-discount {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 150px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
}

.promotion-clean-discount strong {
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.95;
}

.promotion-clean-discount span {
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
}

.promotion-clean-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.promotion-clean-facts div {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.promotion-clean-facts span {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.promotion-clean-facts strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.promotion-clean-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.promotion-clean-card,
.promotion-clean-submit {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.06);
}

.promotion-clean-card {
  display: grid;
  gap: 16px;
}

.promotion-clean-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.promotion-clean-title h2 {
  margin: 0;
}

.promotion-clean-title > span {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.promotion-clean-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.promotion-clean-presets button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(123, 16, 31, 0.18);
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.promotion-clean-rule {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 118, 80, 0.18);
  border-radius: 8px;
  background: rgba(31, 118, 80, 0.07);
}

.promotion-clean-rule strong {
  color: var(--ink);
}

.promotion-clean-rule span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.promotion-clean-target {
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fbf8f2;
  overflow: clip;
}

.promotion-clean-target summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.promotion-clean-target summary::-webkit-details-marker {
  display: none;
}

.promotion-clean-target summary > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.promotion-clean-target summary strong {
  color: var(--ink);
  font-size: 15px;
}

.promotion-clean-target summary small,
.promotion-clean-target summary b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.promotion-clean-target summary b {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  white-space: nowrap;
}

.promotion-clean-target > input,
.promotion-clean-target > select {
  width: calc(100% - 28px);
  margin: 0 14px 12px;
}

.promotion-clean-target > select {
  min-height: 180px;
  max-height: 220px;
  padding: 10px;
  border-color: rgba(11, 15, 20, 0.1);
  background: #fff;
}

.promotion-clean-search {
  min-height: 38px;
  background: #fff;
}

.promotion-clean-submit {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 253, 249, 0.95);
}

.promotion-clean-submit span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.promotion-rules-shell {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  gap: 16px;
  margin: 0 auto 80px;
}

.promotion-rules-summary,
.promotion-rules-card,
.promotion-rules-submit {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.06);
}

.promotion-rules-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(260px, 0.6fr);
  gap: 16px;
  align-items: stretch;
  border-color: rgba(123, 16, 31, 0.16);
  background:
    linear-gradient(135deg, rgba(123, 16, 31, 0.95), rgba(18, 20, 25, 0.94)),
    #15171c;
  color: #fff;
}

.promotion-rules-summary h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.promotion-rules-summary .eyebrow,
.promotion-rules-summary span {
  color: rgba(255, 255, 255, 0.72);
}

.promotion-rules-summary > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
}

.promotion-rules-summary > div:first-child > span {
  max-width: 620px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.promotion-rules-badge {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 132px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
}

.promotion-rules-badge strong {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
}

.promotion-rules-badge span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.promotion-rules-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.promotion-rules-facts div {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.promotion-rules-facts span {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.promotion-rules-facts strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.promotion-rules-card {
  display: grid;
  gap: 16px;
}

.promotion-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 16px;
  align-items: stretch;
}

.promotion-image-fields {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.promotion-image-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 16, 31, 0.08), transparent 44%),
    #fbf8f2;
}

.promotion-image-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.promotion-image-preview div {
  display: grid;
  gap: 6px;
  padding: 20px;
  text-align: center;
}

.promotion-image-preview strong {
  color: var(--ink);
  font-size: 18px;
}

.promotion-image-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.promotion-rules-title,
.promotion-rule-group-head,
.promotion-rules-submit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.promotion-rules-title h2,
.promotion-rule-group-head h3 {
  margin: 0;
}

.promotion-rules-title > span,
.promotion-rule-group-head p,
.promotion-rules-submit span {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.promotion-rule-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fbf8f2;
}

.promotion-rule-list {
  display: grid;
  gap: 10px;
}

.promotion-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 170px) 34px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fffdf9;
}

.promotion-rule-row.product-rule-row {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) minmax(130px, 170px) 34px;
}

.promotion-percent-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.promotion-percent-input input {
  border: 0;
  border-radius: 0;
}

.promotion-percent-input b {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.promotion-rule-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 16, 31, 0.18);
  border-radius: 999px;
  background: rgba(123, 16, 31, 0.08);
  color: var(--brand);
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.promotion-rules-submit {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  align-items: center;
  background: rgba(255, 253, 249, 0.95);
}

.price-table-form {
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  align-items: start;
}

.price-table-form .promotion-rules-summary {
  position: sticky;
  top: 92px;
  grid-template-columns: 1fr;
  gap: 14px;
}

.price-table-form .promotion-rules-summary h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.price-table-form .promotion-rules-badge {
  min-height: 92px;
}

.price-table-form .promotion-rules-badge strong {
  font-size: clamp(30px, 4vw, 46px);
}

.price-table-form .promotion-rules-facts {
  grid-template-columns: 1fr;
}

.price-table-rule-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.price-table-rule-note strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.price-table-rule-note span {
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.price-table-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.price-table-card {
  border-radius: 12px;
}

.price-table-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.price-table-config-grid .wide-field {
  grid-column: span 2;
}

.price-table-benefits {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 12px;
  background: #fbf8f2;
}

.price-table-benefits > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.price-table-benefits h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.price-table-benefits > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.price-table-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 10px;
  background: #fffdf9;
}

.price-table-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.price-table-toggle span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.price-table-toggle strong {
  color: var(--ink);
  font-size: 13px;
}

.price-table-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.price-table-rule-help {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.price-table-rule-help div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 10px;
  background: #fbf8f2;
}

.price-table-rule-help strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.price-table-rule-help span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.price-rule-row {
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border-radius: 12px;
}

.price-rule-index {
  display: grid;
  place-items: start center;
}

.price-rule-index span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.price-rule-fields {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr) minmax(120px, 0.5fr) minmax(120px, 0.5fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.price-rule-fields .wide-field {
  min-width: 0;
}

.price-table-rules-card .promotion-rule-actions {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.08);
}

@media (max-width: 1180px) {
  .price-table-form {
    grid-template-columns: 1fr;
  }

  .price-table-form .promotion-rules-summary {
    position: static;
  }

  .price-table-config-grid,
  .price-table-benefits,
  .price-table-rule-help,
  .price-rule-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-table-config-grid .wide-field {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .price-table-config-grid,
  .price-table-benefits,
  .price-table-rule-help,
  .price-rule-fields {
    grid-template-columns: 1fr;
  }

  .price-table-config-grid .wide-field {
    grid-column: auto;
  }

  .price-rule-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .price-rule-index span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .price-rule-row .promotion-rule-remove {
    grid-column: 2;
    justify-self: end;
  }

  .price-table-rules-card .promotion-rule-actions {
    display: grid;
    position: static;
  }

  .price-table-rules-card .promotion-rule-actions .button {
    width: 100%;
    justify-content: center;
  }
}

.account-head {
  align-items: flex-end;
  min-height: 0;
  padding: 28px 32px;
}

.account-head h1 {
  max-width: 560px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.account-head p:not(.eyebrow) {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
}

.account-head > div > span {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.account-actions {
  justify-content: flex-end;
}

.account-actions .button {
  min-height: 40px;
}

.account-actions {
  max-width: 420px;
}

.tracking-mobile {
  width: min(100% - 28px, 680px);
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: start center;
  margin: 0 auto 56px;
  padding-top: 22px;
}

.tracking-card {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(11, 15, 20, 0.1);
}

.tracking-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.16), transparent 44%),
    #fff;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
}

.tracking-logo {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--ink);
  flex: 0 0 auto;
}

.tracking-logo img {
  max-width: 58px;
  max-height: 28px;
  object-fit: contain;
}

.tracking-hero h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.02;
}

.tracking-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tracking-query {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: white;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
}

.tracking-form,
.tracking-actions {
  display: grid;
  gap: 12px;
}

.tracking-form {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.tracking-form input {
  min-height: 48px;
  font-size: 16px;
}

.tracking-form .button {
  grid-column: 1 / -1;
}

.tracking-form .button,
.tracking-actions .button {
  min-height: 48px;
}

.tracking-query > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tracking-message {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #fff4ef;
  border: 1px solid rgba(143, 20, 29, 0.2);
  border-radius: 10px;
}

.tracking-message strong {
  color: var(--accent-dark);
}

.tracking-message span {
  color: var(--muted);
  font-size: 13px;
}

.tracking-result {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.tracking-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--ink);
  border-radius: 12px;
  color: white;
}

.tracking-result-head span {
  color: rgba(255, 255, 255, 0.68);
}

.tracking-summary span,
.tracking-items small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.tracking-result-head h2 {
  margin: 3px 0 0;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.04;
}

.tracking-result-head strong {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.tracking-steps {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tracking-steps div {
  min-width: 118px;
  display: grid;
  gap: 7px;
  justify-items: center;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.tracking-steps i {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
}

.tracking-steps .done i {
  border-color: var(--green);
  background: var(--green);
}

.tracking-steps .active span {
  color: var(--ink);
  font-weight: 950;
}

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

.tracking-summary div {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tracking-summary strong {
  font-size: 13px;
}

.tracking-address {
  margin: 0;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}

.tracking-items {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tracking-items h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.tracking-items div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 8px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.tracking-items span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 950;
}

.tracking-items strong,
.tracking-items small {
  min-width: 0;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}

.decision-card {
  position: relative;
  min-height: 150px;
  padding: 20px;
  overflow: hidden;
  background: #f8f4ed;
  border: 1px solid var(--line);
}

.decision-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.decision-card span,
.decision-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-card strong {
  display: block;
  margin-top: 14px;
  max-width: 420px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.06;
}

.decision-card p {
  margin: 14px 0 0;
  max-width: 420px;
  line-height: 1.45;
  text-transform: none;
}

.decision-primary {
  background:
    linear-gradient(135deg, rgba(143, 20, 29, 0.16), transparent 48%),
    #fff;
  box-shadow: var(--shadow);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  margin-top: 22px;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-head {
  margin-top: 26px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.18), transparent 44%),
    linear-gradient(90deg, #0b0f14, #2b1719);
  border-radius: var(--radius);
  color: white;
}

.cart-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.cart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cart-steps span {
  min-height: 48px;
  display: grid;
  place-items: center;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-steps span:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.cart-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.09), transparent 44%),
    white;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cart-item:hover {
  border-color: rgba(143, 20, 29, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.mini-image {
  width: 116px;
  height: 134px;
  border-radius: var(--radius);
}

.mini-image.has-photo::before,
.mini-image.has-photo::after {
  display: none;
}

.mini-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-copy {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.cart-item-top,
.cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cart-item-top span,
.cart-item-top small,
.cart-item-tags span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-item-top span {
  color: var(--accent);
}

.cart-item-top small,
.cart-item-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: #f7f1e8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cart-item-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.cart-item-copy strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.checkout-panel,
.form-panel,
.empty-state {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.secure-login-alert {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(143, 20, 29, 0.22);
  border-radius: 8px;
  background: #fff7ef;
}

.secure-login-alert strong {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
}

.secure-login-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.checkout-panel {
  position: sticky;
  top: 94px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(198, 214, 56, 0.14), transparent 42%),
    white;
  box-shadow: var(--shadow-soft);
}

.checkout-panel-head h2 {
  margin: 0;
}

.checkout-benefits {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-benefits span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-benefits span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  vertical-align: 1px;
}

.shipping-note {
  padding: 12px 14px;
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 10px;
  background: #fff7ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.cashback-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 10px;
  background: #fffaf3;
}

.cashback-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cashback-box span,
.cashback-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cashback-box strong {
  color: var(--accent);
  font-size: 18px;
}

.payment-choice-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 10px;
  background: #fff;
}

.payment-choice {
  align-items: flex-start;
  padding: 10px 0;
}

.payment-choice span {
  display: grid;
  gap: 3px;
}

.payment-choice strong {
  color: var(--ink);
  font-size: 13px;
}

.payment-choice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.contingency-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(143, 20, 29, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff7ef, #fffdf9);
}

.contingency-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contingency-box span,
.contingency-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.contingency-box strong {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
}

.sync-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: stretch;
  width: min(1220px, calc(100vw - 40px));
  margin: 18px auto;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(143, 20, 29, 0.12), rgba(255, 255, 255, 0.92) 42%),
    #fffdf9;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.09);
}

.sync-command-hero h2,
.sync-command-hero p {
  margin: 0;
}

.sync-command-hero h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.04;
}

.sync-command-hero span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.sync-command-flow {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.sync-command-flow span {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(143, 20, 29, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.contingency-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(1220px, calc(100vw - 40px));
  margin: -6px auto 18px;
}

.contingency-kpis article {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 242, 0.86));
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
}

.contingency-kpis span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contingency-kpis strong {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.contingency-kpis small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.contingency-kpis article:nth-child(1) {
  border-left: 4px solid #d79b21;
}

.contingency-kpis article:nth-child(2) {
  border-left: 4px solid var(--accent);
}

.contingency-kpis article:nth-child(3) {
  border-left: 4px solid #17663a;
}

.contingency-command-panel {
  display: grid;
  gap: 16px;
}

.contingency-toolbar {
  align-items: end;
}

.contingency-board {
  display: grid;
  gap: 14px;
}

.contingency-sale-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-left: 5px solid #d79b21;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 246, 0.9));
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.contingency-sale-card.is-synced {
  border-left-color: #17663a;
}

.contingency-sale-card.has-error {
  border-left-color: var(--accent);
}

.contingency-sale-head,
.contingency-sale-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.contingency-sale-head > div,
.contingency-sale-total {
  min-width: 0;
}

.contingency-sale-head span,
.contingency-sale-total span,
.contingency-sale-total small,
.contingency-sale-details small,
.contingency-sale-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.contingency-sale-head a {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.contingency-sale-total {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.035);
}

.contingency-sale-total div {
  min-width: 0;
}

.contingency-sale-total strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
}

.contingency-sale-total small {
  display: block;
  margin-top: 4px;
}

.contingency-sale-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.contingency-sale-details div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.contingency-sale-details dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contingency-sale-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contingency-sale-details small {
  display: block;
  margin-top: 4px;
}

.contingency-sale-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(143, 20, 29, 0.08);
}

.contingency-sale-card.is-synced .contingency-sale-note {
  background: rgba(23, 102, 58, 0.1);
}

.contingency-sale-note strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.contingency-card-actions {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  padding-top: 4px;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
}

.contingency-card-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.contingency-table-panel {
  overflow-x: auto;
}

.contingency-table td {
  vertical-align: top;
}

.contingency-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(11, 15, 20, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.admin-table td > span,
.admin-table td > strong {
  display: block;
}

.date-filter-form {
  align-items: end;
}

.date-filter-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.date-filter-form input {
  min-height: 40px;
  border: 1px solid rgba(11, 15, 20, 0.14);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff3d9;
  color: #7a4c00;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.sync-status-pill.synced {
  background: #e7f7ed;
  color: #17663a;
}

.sync-status-pill.error {
  background: #ffe7e7;
  color: #8f141d;
}

.contingency-action-form {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.contingency-action-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.button.danger-action {
  border-color: rgba(143, 20, 29, 0.32);
  color: var(--accent);
}

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

.compact-section {
  padding-block: 8px;
}

.inline-filter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(226, 216, 202, 0.86);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.94);
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(11, 15, 20, 0.05);
}

.inline-filter-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inline-filter-card strong,
.inline-filter-card span {
  overflow-wrap: anywhere;
}

.inline-filter-card label {
  min-width: min(360px, 100%);
}

.inline-filter-card select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
}

.price-table-channel-badge {
  background: #171717;
}

.price-table-channel-badge strong {
  font-size: 1.1rem;
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .inline-filter-card {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-filter-card label {
    min-width: 0;
  }
}

.pdv-cash-register-panel {
  width: min(1220px, calc(100vw - 40px));
  margin: 14px auto 14px;
}

.pdv-cash-drawer {
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.06);
  overflow: hidden;
}

.pdv-cash-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.pdv-cash-drawer summary::-webkit-details-marker {
  display: none;
}

.pdv-cash-drawer summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdv-cash-status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(143, 20, 29, 0.10);
}

.pdv-cash-status-dot.open {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(36, 69, 31, 0.12);
}

.pdv-cash-drawer summary strong,
.pdv-cash-drawer summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-cash-drawer summary strong {
  font-size: 13px;
  font-weight: 950;
}

.pdv-cash-drawer summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.pdv-cash-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdv-cash-drawer[open] .pdv-cash-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.pdv-cash-drawer-body {
  padding: 0 14px 14px;
}

.pdv-cash-open-form,
.pdv-cash-register-open {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.12), transparent 48%),
    white;
}

.pdv-cash-open-form {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px) minmax(150px, 210px) minmax(180px, 1fr) auto;
  align-items: end;
}

.pdv-cash-register-open {
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 520px);
}

.pdv-cash-open-form h2,
.pdv-cash-register-open h2 {
  margin: 0;
  font-size: 22px;
}

.pdv-cash-open-form span,
.pdv-cash-register-open span,
.pdv-cash-register-kpis span,
.pdv-cash-payments span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pdv-cash-register-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdv-cash-register-kpis div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
}

.pdv-cash-register-kpis strong {
  color: var(--accent);
  font-size: 18px;
}

.pdv-cash-close-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.pdv-cash-close-breakdown {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.pdv-cash-close-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.pdv-cash-close-title span,
.pdv-cash-close-methods span,
.pdv-cash-close-methods small,
.pdv-cash-close-warning span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.pdv-cash-close-title span,
.pdv-cash-close-methods span {
  text-transform: uppercase;
}

.pdv-cash-close-title strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.pdv-cash-close-methods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pdv-cash-close-methods div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 10px;
  background: #fffdf9;
}

.pdv-cash-close-methods strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pdv-cash-close-methods small {
  line-height: 1.25;
}

.pdv-cash-close-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(198, 214, 56, 0.16);
}

.pdv-cash-close-warning strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.pdv-cash-payments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-cash-payments span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
}

.pdv-cash-payments strong {
  color: var(--ink);
}

.parameters-shell {
  display: grid;
  gap: 18px;
  margin: 22px var(--page-gutter, 24px);
}

.parameters-storefront-button {
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(122, 7, 23, 0.18);
}

.parameters-storefront-button:hover,
.parameters-storefront-button:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(122, 7, 23, 0.25);
}

.parameters-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.parameters-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.parameters-tabs a.active,
.parameters-tabs a:hover {
  background: var(--accent);
  color: white;
}

.parameters-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.parameters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

.parameters-form {
  display: grid;
  gap: 14px;
}

.parameters-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.parameters-summary-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
}

.parameters-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.parameters-summary-grid strong {
  color: var(--accent);
  font-size: 22px;
}

.parameters-metrics {
  margin: 0;
}

.parameters-filter-control {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
}

.parameters-filter-control h3 {
  margin: 0;
  font-size: 18px;
}

.parameters-filter-control span,
.parameters-filter-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.parameters-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.parameters-filter-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-transform: none;
}

.parameters-filter-grid input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.parameters-filter-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.offline-pdv-head {
  background:
    linear-gradient(135deg, rgba(11, 15, 20, 0.92), rgba(115, 16, 28, 0.88)),
    var(--ink);
}

.offline-pdv-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px var(--page-gutter, 24px);
}

.offline-pdv-status-grid article {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.offline-pdv-status-grid span,
.offline-pdv-status-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.offline-pdv-status-grid strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

#offline-connection-status.is-offline {
  color: var(--accent);
}

.offline-pdv-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
  margin: 22px var(--page-gutter, 24px);
}

.offline-pdv-main,
.offline-pdv-summary,
.offline-pending-panel {
  min-width: 0;
}

.offline-product-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offline-product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.06);
}

.offline-product-card h3,
.offline-product-card p {
  margin: 0;
}

.offline-product-card h3 {
  font-size: 14px;
  line-height: 1.25;
}

.offline-product-card span,
.offline-product-card small,
.offline-product-card p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.offline-product-card.has-promotion {
  border-color: rgba(143, 20, 29, 0.24);
  background: linear-gradient(145deg, #fff8f0, #fff);
}

.offline-price-block {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 94px;
}

.offline-price-block em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.offline-price-block small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-decoration: line-through;
}

.offline-price-block strong {
  color: var(--accent);
  font-size: 16px;
  white-space: nowrap;
}

.offline-pending-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.offline-pending-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.offline-pending-summary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 242, 0.82));
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
}

.offline-pending-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offline-pending-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.offline-pending-sale {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 246, 0.92));
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}

.offline-pending-sale-head,
.offline-pending-sale-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.offline-pending-sale-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.offline-pending-sale span,
.offline-pending-sale small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.offline-pending-sale strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.offline-pending-sale-head > strong {
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}

.offline-pending-sale-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.offline-pending-sale-meta div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.035);
}

.offline-pending-sale-meta dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.offline-pending-sale-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.offline-pending-sale-items {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offline-pending-sale-items li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.offline-pending-sale-items li strong,
.offline-pending-sale-items li em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.offline-pending-sale-items li span {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offline-pending-more {
  grid-template-columns: minmax(0, 1fr) !important;
}

.offline-pending-sale-actions {
  padding-top: 4px;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
}

.offline-pending-sale-actions > span {
  min-width: 0;
}

.danger-action {
  color: var(--danger, #8f141d);
  border-color: rgba(143, 20, 29, 0.28);
}

.checkout-summary {
  display: grid;
  gap: 0;
}

.cart-empty {
  min-height: 280px;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 44%),
    white;
}

.company-grid > .empty-state,
.product-grid > .empty-state {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.discount-line {
  color: var(--accent);
}

.order-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-breakdown span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f4ed;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.delivery-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-region-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(115, 16, 28, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.success {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 150px);
}

.admin-grid {
  grid-template-columns: 1fr 1fr;
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
}

.import-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
}

.import-head {
  width: min(1040px, calc(100vw - 40px));
  margin-top: 26px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.18), transparent 44%),
    linear-gradient(90deg, #0b0f14, #24451f);
  border-radius: var(--radius);
  color: white;
}

.import-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.import-head .button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.management-head .hero-actions .button,
.product-admin-head .hero-actions .button,
.orders-admin-head .hero-actions .button,
.import-head .hero-actions .button,
.page-head:not(.cart-head) .hero-actions .button,
.management-head .button.primary,
.product-admin-head .button.primary,
.orders-admin-head .button.primary,
.import-head .button.primary,
.management-head .button.management-primary,
.product-admin-head .button.management-primary,
.orders-admin-head .button.management-primary,
.import-head .button.management-primary,
.management-head .button.ghost,
.product-admin-head .button.ghost,
.orders-admin-head .button.ghost,
.import-head .button.ghost {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.management-head .hero-actions .button:hover,
.product-admin-head .hero-actions .button:hover,
.orders-admin-head .hero-actions .button:hover,
.import-head .hero-actions .button:hover,
.page-head:not(.cart-head) .hero-actions .button:hover,
.management-head .hero-actions .button:focus-visible,
.product-admin-head .hero-actions .button:focus-visible,
.orders-admin-head .hero-actions .button:focus-visible,
.import-head .hero-actions .button:focus-visible,
.page-head:not(.cart-head) .hero-actions .button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.import-panel h2,
.import-guide-card strong,
.import-alerts h3 {
  margin: 0;
}

.import-panel {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  padding: 22px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.08), transparent 38%),
    white;
  box-shadow: 0 18px 48px rgba(11, 15, 20, 0.08);
}

.form-panel.import-panel {
  max-width: none;
}

.import-panel-title {
  display: grid;
  gap: 6px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.14), transparent 48%),
    transparent;
}

.import-panel-title p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

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

.import-checklist span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.import-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: static;
}

.import-guide-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.import-guide-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  grid-row: span 2;
  background: #11151a;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.import-guide-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.import-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.import-columns,
.import-result-section {
  width: min(1040px, calc(100vw - 40px));
}

.import-help p {
  color: var(--muted);
}

.import-column-panel .panel-title {
  margin-bottom: 16px;
}

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

.import-column-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
  overflow: hidden;
}

.import-column-grid span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-column-grid p {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.import-column-grid code {
  display: inline-block;
  margin: 2px 2px 2px 0;
  padding: 3px 6px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  white-space: normal;
}

.import-destination-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.import-destination-card > div {
  display: grid;
  gap: 5px;
}

.import-destination-card span,
.import-destination-card small,
.import-file-drop span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.import-destination-card span {
  text-transform: uppercase;
}

.import-destination-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.08;
}

.import-destination-card label,
.import-file-drop {
  min-width: 0;
}

.import-destination-card select,
.import-file-drop input {
  width: 100%;
}

.import-file-drop {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(143, 20, 29, 0.36);
  border-radius: 10px;
  background: #fbf8f2;
}

.import-file-drop input {
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: white;
}

.import-update-option {
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.import-product-title {
  grid-template-columns: minmax(0, 1fr);
}

.import-product-title h2 {
  font-size: 28px;
}

.csv-import-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.csv-import-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 10px;
  background: #fffdf9;
  min-width: 0;
}

.csv-import-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #11151a;
  color: white;
  font-weight: 950;
}

.csv-import-step strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.csv-import-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.csv-import-step select,
.csv-import-step input[type="file"],
.csv-import-step .button {
  width: 100%;
  min-width: 0;
}

.csv-import-step .import-actions {
  width: 100%;
}

.import-raw-field {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 10px;
  background: #fffdf9;
}

.import-raw-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.import-raw-field textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  font-family: inherit;
}

.import-extra-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 10px;
  background: white;
}

.import-extra-fields label {
  min-width: 0;
}

.import-extra-fields select,
.import-extra-fields input {
  width: 100%;
}

.product-import-guide {
  position: static;
}

.product-import-note {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 46%),
    white;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.product-import-note h2,
.product-import-note p,
.product-import-note ul {
  margin: 0;
}

.product-import-note ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 820;
  line-height: 1.45;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.import-summary span {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
}

.import-summary strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
}

.import-alerts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.import-alerts p {
  margin: 0;
  padding: 12px;
  background: #fff7ee;
  border: 1px solid rgba(143, 20, 29, 0.18);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.import-detail-table {
  display: grid;
  gap: 12px;
  overflow-x: auto;
  margin-top: 16px;
}

.import-detail-table h3 {
  margin: 0;
}

.import-detail-table table {
  min-width: 880px;
}

code {
  padding: 2px 5px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
}

.table-panel {
  overflow: auto;
  padding: 20px;
}

.management-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.7), transparent 160px),
    white;
}

.highlight-panel {
  border-color: rgba(198, 214, 56, 0.65);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.07);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.panel-title h2 {
  margin: 0;
}

.panel-title .eyebrow {
  margin-bottom: 6px;
}

.panel-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.management-panel table {
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 8px;
}

.management-panel th,
.management-panel td {
  border-bottom: 0;
}

.management-panel tbody tr {
  background: white;
  box-shadow: inset 0 0 0 1px rgba(226, 216, 202, 0.85);
}

.management-panel tbody td:first-child {
  border-left: 4px solid var(--gold);
  font-weight: 900;
}

.pdv-head h1 {
  font-size: clamp(34px, 4.2vw, 58px);
}

.pdv-mobile-tabs,
.pdv-mobile-total-bar {
  display: none;
}

.pdv-shell {
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.pdv-main,
.pdv-summary,
.pdv-ticket,
.pdv-checkout-card,
.pdv-products-section {
  display: grid;
  gap: 14px;
}

.pdv-scan-card,
.pdv-ticket,
.pdv-summary,
.pdv-products-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(11, 15, 20, 0.08);
}

.pdv-scan-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(11, 15, 20, 0.95), rgba(79, 12, 18, 0.92)),
    var(--ink);
  color: white;
}

.pdv-scan-copy h2,
.pdv-ticket-head h2 {
  margin: 0;
  font-size: 30px;
}

.pdv-scan-copy .eyebrow {
  color: var(--gold);
}

.pdv-scan-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.pdv-scan-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  gap: 10px;
  align-items: stretch;
}

.pdv-scan-fields input,
.pdv-product-card input,
.pdv-checkout-card input,
.pdv-checkout-card select,
.pdv-checkout-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.pdv-scan-fields input {
  min-height: 62px;
  padding: 0 18px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.pdv-scan-fields .pdv-qty {
  text-align: center;
}

.pdv-camera-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pdv-camera-actions .button {
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
}

.pdv-camera-autosubmit {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.pdv-camera-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #050505;
}

.pdv-camera-panel video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #050505;
}

.pdv-camera-panel span {
  display: block;
  padding: 10px 12px;
  background: rgba(11, 15, 20, 0.94);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.pdv-camera-panel[data-state="error"] span {
  background: #7a1020;
}

.pdv-camera-panel[data-state="success"] span {
  background: #0f5132;
}

.pdv-live-results {
  grid-column: 1 / -1;
  display: none;
  gap: 8px;
  padding-top: 4px;
}

.pdv-live-results.active {
  display: grid;
}

.pdv-live-results > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.pdv-scan-feedback {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  line-height: 1.3;
}

.pdv-scan-feedback-success {
  background: rgba(20, 118, 76, 0.92);
}

.pdv-scan-feedback-error {
  background: rgba(122, 16, 32, 0.92);
}

.pdv-live-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.pdv-live-image {
  position: relative;
  width: 58px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--soft);
}

.pdv-live-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdv-live-image span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
}

.pdv-live-info {
  min-width: 0;
}

.pdv-live-info strong,
.pdv-live-info span,
.pdv-live-info small {
  display: block;
}

.pdv-live-info strong {
  overflow: hidden;
  color: white;
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-live-info span,
.pdv-live-info small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.pdv-live-card form {
  display: grid;
  grid-template-columns: 56px 92px;
  gap: 6px;
}

.pdv-live-card input {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
  text-align: center;
}

.pdv-live-card .button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 10px;
}

.pdv-ticket {
  padding: 22px;
}

.pdv-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pdv-ticket-head strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
}

.pdv-items {
  display: grid;
  gap: 10px;
}

.pdv-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.85);
  border-left: 4px solid var(--gold);
  border-radius: 7px;
  background: #fffdf9;
}

.pdv-item-image,
.pdv-product-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 52%),
    var(--soft);
}

.pdv-item-image {
  width: 68px;
  height: 82px;
}

.pdv-product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.pdv-item-image img,
.pdv-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdv-item-image span,
.pdv-product-image span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 950;
}

.pdv-item strong,
.pdv-item span,
.pdv-product-card span,
.pdv-product-card small {
  display: block;
}

.pdv-item > div:first-child strong {
  font-size: 16px;
}

.pdv-item span,
.pdv-product-card p,
.pdv-product-card small,
.pdv-empty span {
  color: var(--muted);
}

.pdv-item-numbers {
  min-width: 190px;
  display: grid;
  grid-template-columns: 86px 72px 1fr;
  gap: 8px;
  align-items: center;
  text-align: right;
}

.pdv-qty-form {
  display: grid;
  grid-template-columns: 44px 34px;
  gap: 4px;
  align-items: center;
}

.pdv-qty-form input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
  text-align: center;
}

.pdv-qty-form .small-button {
  min-height: 34px;
  padding: 0;
}

.pdv-summary {
  position: sticky;
  top: 18px;
}

.pdv-total-card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 50%),
    var(--ink);
  color: white;
  box-shadow: 0 22px 52px rgba(11, 15, 20, 0.18);
}

.pdv-total-card span,
.pdv-total-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-transform: uppercase;
}

.pdv-total-card strong {
  display: block;
  margin: 8px 0;
  font-size: 42px;
  line-height: 1;
}

.pdv-checkout-card,
.pdv-summary > form:last-child {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pdv-checkout-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-seller-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fffdf9;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
}

.pdv-seller-picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.pdv-seller-picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-seller-picker-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.pdv-seller-options {
  display: grid;
  gap: 8px;
  max-height: 238px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.pdv-seller-option {
  display: grid;
  grid-template-columns: 18px 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pdv-seller-option:hover,
.pdv-seller-option.active,
.pdv-seller-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(127, 13, 24, 0.12);
}

.pdv-seller-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.pdv-seller-option .user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
}

.pdv-seller-option > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pdv-seller-option strong,
.pdv-seller-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-seller-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.pdv-seller-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pdv-customer-search {
  position: relative;
  display: grid;
  gap: 8px;
}

.pdv-customer-results {
  display: none;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 16px 34px rgba(11, 15, 20, 0.10);
  scrollbar-width: thin;
}

.pdv-customer-results.active {
  display: grid;
}

.pdv-customer-results > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.pdv-customer-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pdv-customer-results button:hover,
.pdv-customer-results button:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 10px 22px rgba(127, 13, 24, 0.10);
}

.pdv-customer-results strong,
.pdv-customer-results span,
.pdv-customer-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-customer-results strong {
  font-size: 13px;
  font-weight: 950;
}

.pdv-customer-results span,
.pdv-customer-results small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pdv-customer-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(36, 69, 31, 0.20);
  border-radius: 10px;
  background: rgba(36, 69, 31, 0.07);
}

.pdv-customer-selected[hidden] {
  display: none;
}

.pdv-customer-selected div {
  min-width: 0;
}

.pdv-customer-selected span,
.pdv-customer-selected strong,
.pdv-customer-selected small {
  display: block;
}

.pdv-customer-selected span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-customer-selected strong,
.pdv-customer-selected small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-customer-selected strong {
  font-size: 13px;
}

.pdv-customer-selected small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pdv-payment-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pdv-payment-group > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-payment-group label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-payment-group input {
  width: auto;
}

.pdv-card-fields,
.pdv-pix-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 7px;
  background: #fffdf9;
}

.pdv-card-fields[hidden],
.pdv-pix-panel[hidden] {
  display: none;
}

.pdv-pix-panel > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-pix-panel img {
  width: 180px;
  height: 180px;
  justify-self: center;
  border: 8px solid white;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.pdv-pix-panel textarea {
  min-height: 92px;
  resize: vertical;
  font-size: 11px;
}

.pdv-pix-panel p,
.pdv-pix-panel small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pdv-checkout-card input,
.pdv-checkout-card select,
.pdv-checkout-card textarea {
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.pdv-money-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf9;
}

.pdv-money-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.pdv-money-summary div:nth-child(4) {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

.pdv-money-summary div:nth-child(4) strong {
  font-size: 18px;
}

.pdv-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

@media (min-width: 981px) {
  .pdv-head {
    align-items: center;
    padding-block: 16px;
  }

  .pdv-head h1 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .pdv-head .hero-actions {
    gap: 8px;
  }

  .pdv-head .hero-actions .button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .pdv-cash-register-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    width: min(390px, calc(100vw - 32px));
    margin: 0;
  }

  .pdv-cash-register-panel:has(.pdv-cash-drawer[open]) {
    width: min(620px, calc(100vw - 32px));
  }

  .pdv-cash-drawer {
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: 0 20px 56px rgba(11, 15, 20, 0.18);
  }

  .pdv-cash-drawer summary {
    min-height: 42px;
    padding: 7px 10px;
  }

  .pdv-cash-drawer summary small {
    max-width: 250px;
  }

  .pdv-cash-toggle {
    min-height: 28px;
    padding-inline: 9px;
  }

  .pdv-cash-drawer-body {
    max-height: min(520px, calc(100vh - 88px));
    overflow-y: auto;
    padding: 0 10px 10px;
    scrollbar-width: thin;
  }

  .pdv-cash-open-form,
  .pdv-cash-register-open {
    gap: 10px;
    padding: 10px;
  }

  .pdv-cash-open-form h2,
  .pdv-cash-register-open h2 {
    font-size: 18px;
  }

  .pdv-cash-register-kpis {
    gap: 8px;
  }

  .pdv-cash-register-kpis div {
    padding: 9px;
  }

  .pdv-cash-register-kpis strong {
    font-size: 16px;
  }

  .pdv-cash-close-form {
    gap: 8px;
  }

  .pdv-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    gap: 12px;
    min-height: calc(100vh - 140px);
    margin-bottom: 16px;
  }

  .pdv-main {
    gap: 10px;
    min-height: 0;
  }

  .pdv-scan-card {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-scan-copy h2 {
    font-size: 22px;
  }

  .pdv-scan-copy span {
    font-size: 11px;
    line-height: 1.25;
  }

  .pdv-scan-fields {
    grid-template-columns: minmax(0, 1fr) 70px 112px;
    gap: 8px;
  }

  .pdv-scan-fields input {
    min-height: 48px;
    padding-inline: 12px;
    font-size: 18px;
  }

  .pdv-camera-actions {
    gap: 6px;
  }

  .pdv-camera-actions .button,
  .pdv-camera-autosubmit {
    min-height: 34px;
    font-size: 11px;
  }

  .pdv-live-results.active {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .pdv-ticket {
    min-height: 0;
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-ticket-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 8px;
    background: white;
  }

  .pdv-ticket-head h2 {
    font-size: 22px;
  }

  .pdv-ticket-head strong {
    min-height: 28px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .pdv-items {
    max-height: calc(100vh - 420px);
    min-height: 220px;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
  }

  .pdv-item {
    grid-template-columns: 52px minmax(0, 1fr) minmax(176px, auto) auto;
    gap: 9px;
    padding: 9px;
    border-radius: 10px;
  }

  .pdv-item-image {
    width: 52px;
    height: 64px;
  }

  .pdv-item > div:nth-child(2) strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdv-item > div:nth-child(2) span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.25;
  }

  .pdv-item-numbers {
    min-width: 176px;
    grid-template-columns: 76px 62px 1fr;
    gap: 6px;
    font-size: 12px;
  }

  .pdv-qty-form {
    grid-template-columns: 42px 30px;
  }

  .pdv-qty-form input,
  .pdv-qty-form .small-button,
  .pdv-item > form .small-button {
    min-height: 30px;
    font-size: 10px;
  }

  .pdv-summary {
    top: 10px;
    gap: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
  }

  .pdv-total-card {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-total-card strong {
    margin: 4px 0;
    font-size: 30px;
  }

  .pdv-checkout-card,
  .pdv-summary > form:last-child {
    padding: 12px;
    border-radius: 12px;
  }

  .pdv-checkout-card {
    gap: 9px;
  }

  .pdv-checkout-card label {
    gap: 4px;
    font-size: 10px;
  }

  .pdv-seller-picker,
  .pdv-card-fields,
  .pdv-pix-panel,
  .contingency-box,
  .pdv-cashback-box,
  .pdv-money-summary {
    padding: 10px;
    border-radius: 10px;
  }

  .pdv-seller-picker-head small {
    display: none;
  }

  .pdv-seller-options {
    max-height: 126px;
  }

  .pdv-seller-option {
    grid-template-columns: 16px 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 48px;
    padding: 7px;
  }

  .pdv-seller-option .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }

  .pdv-seller-option strong {
    font-size: 12px;
  }

  .pdv-seller-option small,
  .pdv-customer-results span,
  .pdv-customer-results small {
    font-size: 10px;
  }

  .pdv-customer-results {
    max-height: 164px;
  }

  .pdv-checkout-card input,
  .pdv-checkout-card select,
  .pdv-checkout-card textarea {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .pdv-payment-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .pdv-payment-group label {
    min-height: 36px;
    justify-content: center;
    padding-inline: 6px;
    font-size: 10px;
  }

  .pdv-pix-panel img {
    width: 118px;
    height: 118px;
  }

  .pdv-pix-panel textarea {
    min-height: 54px;
  }

  .pdv-money-summary {
    gap: 4px;
  }

  .pdv-money-summary div {
    font-size: 12px;
  }

  .pdv-money-summary div:nth-child(4) {
    padding-top: 6px;
    font-size: 13px;
  }

  .pdv-money-summary div:nth-child(4) strong {
    font-size: 16px;
  }

  .pdv-checkout-card textarea[name="note"] {
    min-height: 54px;
  }

  .pdv-product-lookup-cta {
    display: none;
  }

  .offline-pdv-head {
    align-items: center;
    padding-block: 16px;
  }

  .offline-pdv-head h1 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .offline-pdv-head p:not(.eyebrow) {
    max-width: 680px;
    font-size: 13px;
    line-height: 1.35;
  }

  .offline-pdv-shell {
    width: min(1220px, calc(100vw - 40px));
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    gap: 12px;
    min-height: calc(100vh - 140px);
    margin: 0 auto 16px;
  }

  .offline-pdv-main {
    display: grid;
    gap: 10px;
    min-height: 0;
  }

  .offline-pdv-main .pdv-scan-card {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .offline-product-list {
    max-height: 228px;
    overflow-y: auto;
    margin-top: 0;
    padding-right: 3px;
    scrollbar-width: thin;
  }

  .offline-product-card {
    grid-template-columns: 52px minmax(0, 1fr) minmax(92px, auto) auto;
    gap: 9px;
    padding: 9px;
    border-radius: 10px;
  }

  .offline-product-card .pdv-product-image {
    width: 52px;
    aspect-ratio: 4 / 5;
  }

  .offline-product-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .offline-product-card p,
  .offline-product-card small,
  .offline-product-card span {
    font-size: 10px;
  }

  .offline-price-block strong {
    font-size: 14px;
  }

  .offline-ticket {
    min-height: 0;
  }

  .offline-ticket .pdv-items {
    max-height: calc(100vh - 520px);
    min-height: 190px;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
  }

  .offline-pdv-summary {
    top: 10px;
    gap: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
  }

  .offline-pending-panel {
    width: min(1220px, calc(100vw - 40px));
    margin-inline: auto;
  }
}

.pdv-products-section {
  padding: 22px;
}

.pdv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf9;
}

.pdv-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-pagination .disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pdv-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pdv-product-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.72), transparent 90px),
    white;
}

.pdv-product-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-product-card h3,
.pdv-product-card p {
  margin: 0;
}

.pdv-product-card > strong {
  font-size: 20px;
}

.pdv-product-unavailable {
  opacity: 0.72;
}

.pdv-product-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(143, 20, 29, 0.22);
  border-radius: 999px;
  background: rgba(143, 20, 29, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-product-status.ready {
  border-color: rgba(36, 69, 31, 0.25);
  background: rgba(36, 69, 31, 0.08);
  color: var(--green);
}

.pdv-product-card form {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
}

.pdv-product-card input {
  min-height: 34px;
  padding: 0 10px;
}

.pdv-product-lookup-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pdv-product-lookup-cta h2,
.pdv-product-lookup-cta p {
  margin: 0;
}

.pdv-product-lookup-cta p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.pdv-lookup-section {
  display: grid;
  gap: 14px;
}

.pdv-lookup-toolbar {
  margin-bottom: 0;
}

.pdv-lookup-filter-panel {
  margin: 0;
}

.pdv-lookup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.pdv-lookup-card {
  display: grid;
  grid-template-rows: auto minmax(118px, auto) auto auto;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.72), transparent 130px),
    #fffdf9;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.06);
}

.pdv-lookup-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 52%),
    var(--soft);
}

.pdv-lookup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdv-lookup-image span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 950;
}

.pdv-lookup-info {
  min-width: 0;
}

.pdv-lookup-info span,
.pdv-lookup-info small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pdv-lookup-info span {
  color: var(--accent);
  text-transform: uppercase;
}

.pdv-lookup-info h3 {
  margin: 4px 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pdv-lookup-info p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pdv-lookup-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pdv-lookup-numbers div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.pdv-lookup-numbers span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-lookup-numbers strong {
  font-size: 20px;
  line-height: 1;
}

.pdv-lookup-card form {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.pdv-lookup-card form input[name="quantity"] {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
  text-align: center;
}

.pdv-lookup-card form .button {
  min-height: 42px;
}

.pdv-lookup-unavailable {
  opacity: 0.68;
}

.pdv-lookup-empty {
  grid-column: 1 / -1;
}

.pdv-finish-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 15, 20, 0.62);
}

.pdv-finish-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(198, 214, 56, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.16), transparent 58%),
    white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.pdv-finish-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-finish-card h2,
.pdv-finish-card p {
  margin: 0;
}

.pdv-finish-card h2 {
  font-size: 28px;
}

.pdv-finish-card p,
.pdv-finish-card small {
  color: var(--muted);
  line-height: 1.45;
}

.pdv-finish-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.access-head h1 {
  font-size: clamp(34px, 4.2vw, 58px);
}

.access-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.access-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.access-profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.12), transparent 44%),
    white;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.07);
}

.access-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.access-profile-card.critical::before {
  background: var(--accent);
}

.access-profile-card.inactive {
  opacity: 0.68;
}

.access-profile-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.access-profile-top span,
.access-card-stats span,
.access-module-group > div:first-child span,
.access-side-summary span,
.access-map-title span,
.access-live-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-profile-top h3,
.access-profile-top p {
  margin: 0;
}

.access-profile-top h3 {
  margin-top: 4px;
  font-size: 22px;
}

.access-profile-top p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.access-profile-top > strong {
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 14px;
}

.access-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.access-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.access-map-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.access-map-title strong {
  font-size: 12px;
  text-transform: uppercase;
}

.access-card-stats,
.access-side-summary,
.access-group-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.access-card-stats div,
.access-side-summary div,
.access-group-map div {
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.85);
  border-radius: 7px;
  background: #fffdf9;
}

.access-card-stats strong,
.access-side-summary strong,
.access-group-map strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.access-group-map {
  grid-template-columns: repeat(4, 1fr);
}

.access-group-map div {
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.access-group-map div.active {
  border-color: rgba(36, 69, 31, 0.24);
  background: rgba(36, 69, 31, 0.07);
}

.access-group-map span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-group-map strong {
  font-size: 15px;
}

.access-group-map i {
  display: block;
  width: 0;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
}

.access-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-module-chips span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.access-side-panel {
  gap: 16px;
}

.access-form-layout,
.access-form-panel,
.access-side-panel {
  min-width: 0;
  max-width: 100%;
}

.access-form-panel {
  overflow: hidden;
}

.access-live-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(36, 69, 31, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 60%),
    #fffdf9;
}

.access-live-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-live-card strong {
  font-size: 26px;
}

.access-live-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.access-preset-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.access-preset-box > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-guidance-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(143, 20, 29, 0.2);
  border-radius: var(--radius);
  background: #fff7ef;
}

.access-guidance-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-guidance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.access-module-board {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.access-module-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.7), transparent 90px),
    white;
}

.access-module-group.selected {
  border-color: rgba(36, 69, 31, 0.26);
  box-shadow: 0 14px 32px rgba(36, 69, 31, 0.08);
}

.access-module-group > div:first-child {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.access-module-group > div:first-child > div,
.access-module-group h3,
.access-module-group span {
  min-width: 0;
}

.access-group-count {
  min-width: 54px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
}

.access-group-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.access-group-actions .button {
  min-width: 0;
  white-space: normal;
}

.access-module-group h3 {
  margin: 0;
  font-size: 20px;
}

.access-group-progress {
  height: 6px;
}

.access-module-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.access-module-option {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 156px;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 7px;
  background: #fffdf9;
  cursor: pointer;
}

.access-module-option input {
  position: absolute;
  top: 18px;
  left: 14px;
}

.access-module-option:has(input:checked) {
  border-color: rgba(36, 69, 31, 0.32);
  background: rgba(36, 69, 31, 0.07);
  box-shadow: inset 0 0 0 1px rgba(36, 69, 31, 0.14);
}

.access-module-option span {
  min-width: 0;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.access-module-option small {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-module-option em,
.access-module-option b {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.access-module-option b {
  color: #354236;
  font-weight: 850;
}

.access-feature-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 216, 202, 0.95);
}

.access-feature-list label {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 42px;
  padding: 8px 8px 8px 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.access-feature-list input {
  position: absolute;
  top: 12px;
  left: 8px;
}

.access-feature-list label:has(input:checked) {
  background: rgba(36, 69, 31, 0.08);
}

.access-feature-list label span {
  min-width: 0;
  font-size: 12px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.access-feature-list label small {
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.lead-panel td strong,
.lead-panel td span {
  display: block;
}

.lead-panel td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-form select {
  min-width: 150px;
  padding: 9px;
}

.form-panel {
  max-width: 760px;
  margin-bottom: 80px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  width: min(520px, 100%);
}

.product-admin-head {
  margin-top: 26px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.18), transparent 44%),
    linear-gradient(90deg, #0b0f14, #24451f);
  border-radius: var(--radius);
  color: white;
}

.product-admin-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.product-admin-head .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.product-admin-head .button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.product-admin-metrics,
.product-admin-section {
  width: min(1220px, calc(100vw - 40px));
  margin-inline: auto;
}

.product-admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.product-admin-metrics div {
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 44%),
    white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.product-admin-metrics span,
.product-admin-metrics small,
.product-admin-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-admin-metrics strong {
  font-size: 34px;
}

.product-admin-metrics a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-admin-section {
  padding: 28px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(11, 15, 20, 0.08);
}

.account-metrics div {
  min-height: 112px;
  padding: 18px;
}

.account-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.account-metrics strong {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
}

.account-section {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  background: #fffdf9;
}

.account-data-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.account-info-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.04);
}

.account-info-card h2 {
  margin: 0;
  font-size: 24px;
}

.account-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-info-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.account-info-card dl div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.account-info-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-info-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.account-order-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.95);
  box-shadow: 0 12px 32px rgba(11, 15, 20, 0.05);
}

.customer-order-list {
  display: grid;
  gap: 14px;
}

.customer-order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.04);
}

.customer-order-head,
.customer-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-order-head > div {
  display: grid;
  gap: 3px;
}

.customer-order-head span,
.customer-order-head small,
.customer-order-facts span,
.customer-order-item span,
.customer-order-more {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-order-head strong {
  font-size: 24px;
}

.customer-order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-order-facts div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.customer-order-facts strong {
  font-size: 13px;
}

.customer-order-items {
  display: grid;
  gap: 10px;
}

.customer-order-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.customer-order-item .mini-image {
  width: 68px;
  height: 78px;
  border-radius: 8px;
}

.customer-order-item > div:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-order-item strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.customer-order-address {
  margin: 0;
  padding: 11px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.order-status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7f1e8;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.product-admin-toolbar h2 {
  margin: 0;
  font-size: 32px;
}

.product-search {
  width: min(620px, 100%);
}

.pdv-stock-filter-form {
  width: min(100%, 620px);
  grid-template-columns: minmax(220px, 1fr) auto;
}

.pdv-stock-filter-form input[type="search"],
.pdv-stock-filter-form input[name="q"] {
  min-height: 44px;
}

.pdv-filter-chip-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.pdv-filter-chip-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-width: thin;
}

.pdv-filter-chip-group > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pdv-filter-chip-group button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.pdv-filter-chip-group button.active,
.pdv-filter-chip-group button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-photo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.product-photo-filters a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-photo-filters a.active,
.product-photo-filters a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.product-audience-filters {
  align-items: center;
  margin-top: -8px;
}

.product-audience-filters > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-admin-list {
  display: grid;
  gap: 14px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(260px, 0.62fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: white;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-admin-card:hover {
  border-color: rgba(143, 20, 29, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.product-admin-card.needs-photo {
  border-color: rgba(143, 20, 29, 0.32);
  background:
    linear-gradient(145deg, rgba(143, 20, 29, 0.08), transparent 42%),
    white;
}

.product-admin-card.needs-price {
  border-color: rgba(143, 20, 29, 0.42);
}

.product-admin-card.needs-stock {
  box-shadow: inset 5px 0 0 var(--gold), 0 12px 28px rgba(11, 15, 20, 0.05);
}

.admin-product-image {
  position: relative;
  width: 96px;
  height: 112px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}

.admin-product-image::before,
.admin-product-image::after {
  content: "";
  position: absolute;
}

.admin-product-image::before {
  inset: 12% 25% 0;
  border-radius: 47% 47% 5% 5%;
  background: rgba(255, 255, 255, 0.72);
  clip-path: polygon(50% 0, 77% 12%, 89% 48%, 70% 100%, 30% 100%, 11% 48%, 23% 12%);
}

.admin-product-image::after {
  left: 50%;
  top: 18%;
  width: 17%;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.admin-product-image.has-photo::before,
.admin-product-image.has-photo::after {
  display: none;
}

.admin-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.admin-product-top,
.admin-product-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-top span,
.admin-product-top small,
.admin-product-tags span,
.admin-product-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-product-top span {
  color: var(--accent);
}

.admin-product-top small,
.admin-product-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: #f7f1e8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.admin-product-main h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.06;
}

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

.admin-product-status div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 10px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-product-status strong {
  color: var(--ink);
  font-size: 18px;
}

.product-admin-empty {
  min-height: 260px;
  align-content: center;
  justify-items: start;
}

.orders-admin-head {
  margin-top: 26px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 214, 56, 0.18), transparent 44%),
    linear-gradient(90deg, #0b0f14, #4f0c12);
  border-radius: var(--radius);
  color: white;
}

.orders-admin-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.orders-admin-head .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.orders-admin-head .button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.orders-admin-metrics,
.orders-admin-section {
  width: min(1220px, calc(100vw - 40px));
  margin-inline: auto;
}

.orders-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.orders-admin-metrics div {
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 44%),
    white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.orders-admin-metrics span,
.orders-admin-metrics small,
.orders-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orders-admin-metrics strong {
  font-size: 34px;
}

.orders-admin-section {
  padding: 28px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(11, 15, 20, 0.08);
}

.finance-alert,
.finance-form-shell {
  width: min(1220px, calc(100vw - 40px));
  margin-inline: auto;
}

.finance-alert {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(30, 115, 72, 0.18);
  border-radius: 10px;
  background: #eefaf2;
  color: #174c31;
  font-weight: 900;
}

.finance-alert.danger {
  border-color: rgba(129, 8, 20, 0.22);
  background: #fff1f1;
  color: #8c1120;
}

.finance-filter-form,
.finance-form-grid,
.finance-card-values,
.finance-form-summary {
  display: grid;
  gap: 14px;
}

.finance-filter-form {
  grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(150px, 1fr)) auto;
  align-items: end;
  margin: 20px 0 24px;
}

.finance-filter-form label,
.finance-form-grid label,
.finance-settle-form input,
.finance-settle-form select {
  min-width: 0;
}

.finance-filter-form label,
.finance-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-filter-form input,
.finance-filter-form select,
.finance-form-grid input,
.finance-form-grid select,
.finance-form-grid textarea,
.finance-settle-form input,
.finance-settle-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 12px 13px;
}

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

.finance-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.finance-account-card,
.finance-form-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 48px rgba(11, 15, 20, 0.08);
}

.finance-account-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-top: 5px solid #9aa0a6;
}

.finance-account-card.status-vencido {
  border-top-color: #a30d1d;
}

.finance-account-card.status-aberto,
.finance-account-card.status-parcial {
  border-top-color: var(--gold);
}

.finance-account-card.status-pago {
  border-top-color: #198754;
}

.finance-card-topline,
.finance-form-title,
.finance-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.finance-type,
.finance-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-type.payable {
  background: #fff1d6;
  color: #7d4b00;
}

.finance-type.receivable {
  background: #e9f7ef;
  color: #11643a;
}

.finance-status {
  background: #111820;
  color: white;
}

.finance-card-title h3,
.finance-form-title h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.finance-card-title p,
.finance-card-meta span {
  color: var(--muted);
}

.finance-card-values,
.finance-form-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-card-values div,
.finance-form-summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f3;
}

.finance-card-values span,
.finance-card-meta strong,
.finance-form-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-card-values strong,
.finance-form-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.finance-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.finance-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-settle-form {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 8px;
}

.finance-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
}

.finance-empty strong {
  color: var(--ink);
}

.finance-form-shell {
  margin-top: 22px;
  margin-bottom: 56px;
}

.finance-form-card {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.finance-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-form-grid .wide {
  grid-column: 1 / -1;
}

.finance-movement-panel {
  overflow-x: auto;
}

.finance-movement-panel table {
  min-width: 920px;
}

@media (max-width: 980px) {
  .finance-filter-form,
  .finance-form-grid,
  .finance-settle-form {
    grid-template-columns: 1fr 1fr;
  }

  .finance-filter-actions,
  .finance-settle-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .finance-alert,
  .finance-form-shell {
    width: min(100% - 24px, 1220px);
  }

  .finance-filter-form,
  .finance-form-grid,
  .finance-card-values,
  .finance-card-meta,
  .finance-form-summary,
  .finance-settle-form {
    grid-template-columns: 1fr;
  }

  .finance-account-card,
  .finance-form-card {
    padding: 18px;
    border-radius: 12px;
  }

  .finance-card-actions .button,
  .finance-card-actions form,
  .finance-filter-actions .button,
  .finance-form-actions .button {
    width: 100%;
  }
}

.stock-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stock-balance-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, 0.1);
  border-left: 5px solid #26313d;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.07);
}

.stock-status-ok {
  border-left-color: #1f8a52;
}

.stock-status-low {
  border-left-color: #d09a16;
}

.stock-status-empty {
  border-left-color: #6e7681;
}

.stock-status-negative {
  border-left-color: #9f1024;
}

.stock-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: start;
}

.stock-product-title {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.stock-product-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.stock-product-title p,
.stock-card-tags span,
.stock-value-grid span,
.stock-balance-number span,
.stock-balance-number small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-product-title p {
  margin: 0;
  overflow-wrap: anywhere;
}

.stock-status-pill {
  width: fit-content;
  padding: 5px 9px;
  color: #fff;
  background: #26313d;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-status-ok .stock-status-pill {
  background: #1f8a52;
}

.stock-status-low .stock-status-pill {
  background: #d09a16;
}

.stock-status-empty .stock-status-pill {
  background: #6e7681;
}

.stock-status-negative .stock-status-pill {
  background: #9f1024;
}

.stock-balance-number {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 12px;
  background: #f8f4ed;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 8px;
}

.stock-balance-number strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.stock-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-card-tags span {
  max-width: 100%;
  padding: 7px 9px;
  overflow: hidden;
  background: #f8f4ed;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-value-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 8px;
}

.stock-value-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.stock-card-actions {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}

.stock-action-form {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(94px, 0.75fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.stock-action-form input,
.stock-action-form select {
  width: 100%;
  min-width: 0;
}

.stock-empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .executive-chart-grid,
  .executive-returns-panel {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .executive-chart-wide {
    grid-column: auto;
  }

  .executive-chart-head,
  .executive-bar-row > div {
    align-items: start;
    flex-direction: column;
  }

  .executive-bar-row span {
    text-align: left;
  }

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

  .stock-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .stock-balance-number {
    justify-items: start;
  }

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

  .stock-action-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .drilldown-metrics,
  .returns-kpi-grid,
  .returns-mini-list a {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-drilldown-page .drilldown-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .returns-mini-list a > div:last-child {
    text-align: left;
  }

  .stock-balance-card {
    padding: 14px;
  }

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

.company-command-section {
  display: grid;
  gap: 18px;
}

.orders-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.company-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 16px;
}

.platform-company-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.07), transparent 44%),
    #fffdf9;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(11, 15, 20, 0.08);
}

.platform-company-card.is-blocked {
  border-color: rgba(115, 16, 28, 0.28);
  background:
    linear-gradient(145deg, rgba(115, 16, 28, 0.1), transparent 46%),
    #fffafa;
}

.platform-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.platform-company-head > div {
  min-width: 0;
}

.platform-company-head h3 {
  margin: 2px 0 7px;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.06;
}

.platform-company-head span,
.platform-company-contact span,
.company-card-actions span,
.company-empty-state span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.company-state-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-state-pill.ok {
  color: #24451f;
  background: rgba(36, 69, 31, 0.12);
  border: 1px solid rgba(36, 69, 31, 0.2);
}

.company-state-pill.danger {
  color: #73101c;
  background: rgba(115, 16, 28, 0.12);
  border: 1px solid rgba(115, 16, 28, 0.2);
}

.company-state-pill.owner {
  color: #111;
  background: #f4e4b8;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.platform-company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(11, 15, 20, 0.09);
  border-bottom: 1px solid rgba(11, 15, 20, 0.09);
}

.platform-company-facts div {
  min-width: 0;
  padding-right: 14px;
}

.platform-company-facts dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-company-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.platform-company-facts small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-company-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}

.platform-company-contact span {
  overflow-wrap: anywhere;
}

.company-alert {
  margin: 0;
  padding: 12px 14px;
  color: #73101c;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  background: rgba(115, 16, 28, 0.08);
  border: 1px solid rgba(115, 16, 28, 0.14);
  border-radius: 8px;
}

.company-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.company-empty-state {
  display: grid;
  gap: 10px;
  padding: 26px;
  background: #fffdf9;
  border: 1px dashed rgba(11, 15, 20, 0.22);
  border-radius: 8px;
}

.company-empty-state h3 {
  margin: 0;
  font-size: 24px;
}

.platform-company-form {
  align-items: start;
}

.platform-rule-card,
.platform-lock-panel,
.platform-form-section {
  min-width: 0;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
}

.platform-rule-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 5px solid var(--accent);
}

.owner-checkline {
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #f8f0dc;
  color: #111;
  font-weight: 900;
}

.platform-rule-card strong,
.platform-rule-card p,
.platform-section-title h2,
.platform-section-title span {
  margin: 0;
}

.platform-rule-card p,
.platform-section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.platform-lock-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.platform-form-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(248, 244, 237, 0.86), transparent 60%),
    #fffdf9;
}

.platform-section-title {
  display: grid;
  gap: 5px;
}

.platform-section-title h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
}

.platform-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-field-grid label {
  min-width: 0;
}

.platform-wide-field {
  grid-column: span 2;
}

.user-edit-layout {
  align-items: start;
}

.user-side-panel {
  gap: 14px;
}

.user-rule-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fffdf9;
}

.user-rule-card strong,
.user-rule-card p {
  margin: 0;
}

.user-rule-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.user-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.user-scope-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 8px;
  background: #fffdf9;
}

.user-scope-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.user-scope-card span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-scope-card strong {
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.user-scope-card small,
.user-scope-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

.user-scope-empty {
  padding: 12px;
}

.users-admin-section {
  overflow: hidden;
}

.users-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.user-management-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 241, 0.96)),
    white;
  box-shadow: 0 16px 34px rgba(11, 15, 20, 0.07);
}

.user-management-card.is-master {
  border-color: rgba(143, 20, 29, 0.28);
  background:
    linear-gradient(135deg, rgba(143, 20, 29, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 241, 0.96)),
    white;
}

.user-management-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-management-card-head .small-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 14px;
}

.user-management-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-management-fact {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(226, 216, 202, 0.74);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.user-management-fact.wide {
  grid-column: 1 / -1;
}

.user-management-fact span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.user-management-fact strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.user-management-fact small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.user-management-fact.status strong {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.user-management-fact.status strong.active {
  color: #24451f;
  background: rgba(36, 69, 31, 0.12);
  border: 1px solid rgba(36, 69, 31, 0.18);
}

.user-management-fact.status strong.inactive {
  color: #73101c;
  background: rgba(115, 16, 28, 0.1);
  border: 1px solid rgba(115, 16, 28, 0.18);
}

.users-table-panel {
  padding: 0;
  overflow-x: auto;
  background: white;
}

.users-table-panel table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 1040px;
  width: 100%;
}

.users-table-panel th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #11151a;
  color: white;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.users-table-panel th,
.users-table-panel td {
  min-width: 0;
  padding: 14px 12px;
  vertical-align: middle;
}

.users-table-panel th:nth-child(1),
.users-table-panel td:nth-child(1) {
  width: 26%;
}

.users-table-panel th:nth-child(2),
.users-table-panel td:nth-child(2) {
  width: 20%;
}

.users-table-panel th:nth-child(3),
.users-table-panel td:nth-child(3) {
  width: 14%;
}

.users-table-panel th:nth-child(4),
.users-table-panel td:nth-child(4) {
  width: 12%;
}

.users-table-panel th:nth-child(5),
.users-table-panel td:nth-child(5) {
  width: 13%;
}

.users-table-panel th:nth-child(6),
.users-table-panel td:nth-child(6) {
  width: 8%;
}

.users-table-panel th:nth-child(7),
.users-table-panel td:nth-child(7) {
  width: 7%;
}

.users-table-panel tbody tr {
  transition: background 160ms ease;
}

.users-table-panel tbody tr:hover {
  background: #fffaf0;
}

.users-table-panel tbody tr.is-master {
  background:
    linear-gradient(90deg, rgba(198, 214, 56, 0.14), transparent 38%),
    white;
}

.user-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.user-avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #11151a;
  color: white;
  font-size: 17px;
  font-weight: 950;
}

.user-identity-copy,
.user-company-name {
  min-width: 0;
  max-width: 100%;
}

.user-identity strong,
.user-company-name {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

.user-identity span:not(.user-avatar),
.user-subtext {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.user-profile-pill,
.user-type-pill,
.user-status-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.user-profile-pill {
  color: #3f3527;
  background: #f4eee3;
  border: 1px solid rgba(63, 53, 39, 0.12);
}

.user-type-pill {
  color: #344028;
  background: rgba(198, 214, 56, 0.18);
  border: 1px solid rgba(198, 214, 56, 0.4);
}

.user-type-pill.master {
  color: white;
  background: #8f141d;
  border-color: #8f141d;
}

.user-type-pill.owner {
  color: #111;
  background: #f4e4b8;
  border-color: rgba(17, 17, 17, 0.12);
}

.user-status-pill.active {
  color: #24451f;
  background: rgba(36, 69, 31, 0.12);
  border: 1px solid rgba(36, 69, 31, 0.18);
}

.user-status-pill.inactive {
  color: #73101c;
  background: rgba(115, 16, 28, 0.1);
  border: 1px solid rgba(115, 16, 28, 0.18);
}

.users-empty-state {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.users-empty-state h3,
.users-empty-state p,
.users-empty-state span {
  margin: 0;
}

.orders-toolbar h2 {
  margin: 0;
  font-size: 32px;
}

.orders-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.orders-filters a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.orders-filters a.active,
.orders-filters a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.orders-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pipeline-column {
  min-width: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  background: #fffdf9;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
}

.pipeline-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pipeline-column-head div {
  display: grid;
  gap: 2px;
}

.pipeline-column-head span,
.pipeline-column-head small,
.pipeline-order-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.pipeline-column-head strong {
  font-size: 26px;
  line-height: 1;
}

.pipeline-card-list {
  display: grid;
  gap: 10px;
}

.pipeline-order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 15, 20, 0.04);
}

.pipeline-order-top,
.pipeline-order-actions,
.pipeline-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pipeline-order-top a {
  color: var(--accent);
  font-weight: 950;
}

.pipeline-order-top span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.pipeline-order-card > strong {
  font-size: 14px;
  line-height: 1.2;
}

.pipeline-order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pipeline-order-actions form {
  margin: 0;
}

.pipeline-empty,
.pipeline-more {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.pipeline-more {
  display: block;
  color: var(--accent);
  text-decoration: none;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.05);
}

.order-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.order-topline,
.order-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.order-topline span,
.order-topline small,
.order-contact span,
.order-numbers span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.order-topline span {
  color: var(--accent);
}

.order-main h3 {
  margin: 0;
  font-size: 24px;
}

.order-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.order-main .order-notes {
  padding: 10px 12px;
  background: #fff7ee;
  border: 1px solid rgba(143, 20, 29, 0.18);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.order-numbers div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 10px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-numbers strong {
  color: var(--ink);
  font-size: 16px;
}

.order-status-form {
  display: grid;
  gap: 8px;
}

.orders-empty {
  min-height: 260px;
  align-content: center;
  justify-items: start;
}

.order-detail-layout {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin: 24px auto 80px;
}

.order-detail-side {
  position: sticky;
  top: 94px;
}

.status-history {
  display: grid;
  gap: 10px;
}

.status-history div {
  padding: 12px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-history strong,
.status-history span,
.status-history p {
  display: block;
}

.status-history span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-history p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.current-photo {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.customer-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.customer-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(248, 244, 237, 0.84), transparent 58%),
    white;
  box-shadow: 0 16px 38px rgba(11, 15, 20, 0.07);
}

.customer-card.ready {
  border-left-color: var(--green);
}

.customer-card.inactive {
  border-left-color: #8d8f94;
  background:
    linear-gradient(145deg, rgba(142, 144, 148, 0.12), transparent 58%),
    #fffdf9;
}

.customer-card-head,
.customer-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-card-head span,
.customer-info-grid span,
.customer-card-address span,
.customer-checklist span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-card-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-status-pill {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(11, 15, 20, 0.1);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-status-pill.active {
  border-color: rgba(36, 69, 31, 0.22);
  background: rgba(36, 69, 31, 0.1);
  color: var(--green);
}

.customer-status-pill.inactive {
  border-color: rgba(89, 97, 108, 0.2);
  background: rgba(89, 97, 108, 0.1);
  color: #59616c;
}

.customer-status-pill.blocked {
  border-color: rgba(143, 20, 29, 0.22);
  background: rgba(143, 20, 29, 0.1);
  color: var(--accent);
}

.customer-card-head h3,
.customer-card-head p,
.customer-card-address p {
  margin: 0;
}

.customer-card-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.customer-card-head p,
.customer-card-address p,
.customer-info-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.customer-card-head > strong {
  white-space: nowrap;
  font-size: 20px;
}

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

.customer-info-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(226, 216, 202, 0.88);
  border-radius: 7px;
  background: #fffdf9;
}

.customer-info-grid strong,
.customer-info-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-info-grid strong {
  margin-top: 5px;
  color: var(--ink);
}

.customer-card-address {
  padding: 12px;
  border: 1px dashed rgba(226, 216, 202, 0.95);
  border-radius: 7px;
  background: var(--soft);
}

.customer-operation-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 7px;
  background: #fffdf9;
}

.customer-operation-note strong,
.customer-operation-note span {
  display: block;
  min-width: 0;
}

.customer-operation-note strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.customer-operation-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.customer-operation-note.clear {
  border-color: rgba(36, 69, 31, 0.18);
  background: rgba(36, 69, 31, 0.06);
}

.customer-operation-note.locked {
  border-color: rgba(143, 20, 29, 0.18);
  background: rgba(143, 20, 29, 0.05);
}

.customer-card-actions {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.customer-card-actions form {
  margin: 0;
}

.customer-card-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

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

.variant-picker > div,
.variant-matrix-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 8px;
  background: #fffdf9;
}

.variant-picker span,
.variant-matrix-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.variant-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.variant-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

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

.variant-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.variant-qty-row span,
.variant-qty-row small,
.variant-qty-row strong {
  display: block;
}

.variant-qty-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.variant-qty-row input {
  width: 92px;
}

.registry-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.registry-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 244, 237, 0.88), transparent 62%),
    white;
  box-shadow: 0 14px 30px rgba(11, 15, 20, 0.06);
}

.registry-card.inactive {
  border-left-color: var(--muted);
  opacity: .78;
}

.registry-card-head,
.registry-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.registry-card-head span,
.registry-card-stats span,
.registry-side-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.registry-card-head h3,
.registry-card-head p,
.registry-description {
  margin: 0;
}

.registry-card-head h3 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.registry-card-head p,
.registry-description,
.registry-card-actions small,
.registry-side-summary small {
  color: var(--muted);
  line-height: 1.4;
}

.registry-card-head > strong {
  min-width: 48px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-align: center;
}

.registry-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.registry-card-stats div,
.registry-side-summary {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 8px;
  background: #fffdf9;
}

.registry-card-stats strong,
.registry-side-summary strong,
.registry-side-summary small {
  display: block;
}

.registry-card-actions {
  align-items: center;
  flex-wrap: wrap;
}

.registry-form-layout .registry-side-panel {
  gap: 14px;
}

.inline-form-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 10px;
  background: #fffdf9;
  min-width: 0;
}

.inline-form-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.inline-form-note span[data-state="success"] {
  color: #155724;
}

.inline-form-note span[data-state="error"] {
  color: #8c1d1d;
}

.inline-form-note span[data-state="loading"] {
  color: var(--text);
}

@media (max-width: 720px) {
  .inline-form-note {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form-note .button {
    width: 100%;
  }
}

.current-photo img {
  width: min(240px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.product-edit-layout {
  width: min(1220px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 auto 80px;
  min-width: 0;
  max-width: 100%;
}

.product-photo-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 44%),
    white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.product-photo-panel h2 {
  margin: 0;
  font-size: 30px;
}

.product-photo-panel img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8f4ed;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-photo-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-edit-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
  margin-bottom: 0;
}

.audience-form-block {
  background:
    linear-gradient(135deg, rgba(115, 8, 21, 0.08), transparent 48%),
    #fff;
}

.audience-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audience-picker label {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf7;
  cursor: pointer;
}

.audience-picker label:hover,
.audience-picker label:has(input:checked) {
  border-color: var(--burgundy);
  background: #fff7f3;
  box-shadow: 0 14px 32px rgba(115, 8, 21, 0.1);
}

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

.audience-picker strong {
  color: var(--ink);
  font-size: 17px;
}

.audience-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fiscal-form-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fiscal-form-block h2 {
  margin: 0;
  font-size: 22px;
}

.fiscal-warning-toggle {
  border-color: rgba(180, 83, 9, 0.34);
  background: rgba(180, 83, 9, 0.08);
}

.company-edit-layout {
  width: min(1360px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  overflow: visible;
}

.company-side-panel {
  gap: 16px;
  background:
    linear-gradient(150deg, rgba(115, 16, 28, 0.08), rgba(36, 69, 31, 0.08)),
    #fffdf9;
}

.company-side-panel h2 {
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.08;
}

.company-status-summary {
  display: grid;
  gap: 9px;
}

.company-status-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.company-status-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.company-status-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.company-form-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.company-form-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.11), transparent 46%),
    #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.company-form-overview div {
  min-width: 0;
}

.company-form-overview span,
.company-form-block > div:first-child span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.company-form-overview strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.company-form-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.72), transparent 120px),
    #fffdf9;
  border-radius: 8px;
}

.company-form-block > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.company-form-block > div:first-child > div {
  min-width: 0;
}

.company-form-block > div:first-child span {
  max-width: 460px;
  text-align: right;
}

.company-form-block .form-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  align-items: end;
}

.company-form-block label,
.company-side-panel label {
  min-width: 0;
}

.company-form-block input,
.company-form-block select,
.company-form-block textarea,
.company-side-panel input,
.company-side-panel select,
.company-side-panel textarea {
  width: 100%;
  min-width: 0;
}

.company-full-field {
  display: grid;
}

.company-form-actions {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.checkline input {
  width: auto;
}

.customer-form-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}

.customer-side-panel {
  gap: 16px;
}

.customer-form-single {
  width: min(100% - 48px, 980px);
  max-width: 980px;
  margin: 30px auto 80px;
  display: grid;
  gap: 16px;
}

.customer-form-intro {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 20, 29, 0.08), transparent 46%),
    #fffdf9;
}

.customer-form-intro h2,
.customer-form-intro p {
  margin: 0;
}

.customer-form-intro h2 {
  font-size: 22px;
}

.customer-form-intro > div:first-child span {
  display: block;
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

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

.customer-checklist.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-checklist div {
  padding: 12px;
  border: 1px solid rgba(143, 20, 29, 0.18);
  border-radius: 7px;
  background: rgba(143, 20, 29, 0.05);
}

.customer-checklist div.done {
  border-color: rgba(36, 69, 31, 0.24);
  background: rgba(36, 69, 31, 0.07);
}

.customer-checklist strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.customer-form-panel {
  display: grid;
  gap: 16px;
}

.customer-form-block {
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.7), transparent 90px),
    white;
}

.customer-block-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.customer-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.product-detail {
  width: min(100% - 48px, 1220px);
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 38px;
  align-items: start;
}

.premium-detail {
  width: min(100% - 48px, 1280px);
  gap: 28px;
  align-items: stretch;
}

.detail-gallery {
  display: grid;
  gap: 14px;
}

.detail-media .product-image {
  min-height: 620px;
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.detail-media .product-image span {
  position: relative;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.detail-thumb {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ddd;
}

.detail-thumb.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.detail-thumb::before,
.detail-thumb::after {
  content: "";
  position: absolute;
}

.detail-thumb::before {
  inset: 12% 25% 0;
  border-radius: 47% 47% 5% 5%;
  background: rgba(255, 255, 255, 0.72);
  clip-path: polygon(50% 0, 77% 12%, 89% 48%, 70% 100%, 30% 100%, 11% 48%, 23% 12%);
}

.detail-thumb::after {
  left: 50%;
  top: 18%;
  width: 17%;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.detail-thumb.has-photo::before,
.detail-thumb.has-photo::after {
  display: none;
}

.detail-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.detail-buy-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(198, 214, 56, 0.13), transparent 42%),
    white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-brand-row,
.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-brand-row .eyebrow {
  margin: 0;
}

.detail-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail-brand-name img {
  width: 34px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 34px;
}

.detail-brand-name.is-jompeke img {
  width: 34px;
  height: 42px;
  flex-basis: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-brand-name span {
  min-width: 0;
}

.detail-brand-row span,
.detail-price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
}

.muted-line {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.muted-link {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.muted-link:hover {
  text-decoration: underline;
}

.label-generator-form {
  display: grid;
  gap: 16px;
}

.label-options-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}

.label-product-table {
  display: grid;
  gap: 8px;
}

.label-product-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) minmax(120px, 180px) 100px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}

.label-product-row strong,
.label-product-row small {
  display: block;
}

.label-product-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.label-product-head {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.label-product-row input[type="number"] {
  width: 100%;
}

@media (max-width: 720px) {
  .label-options-panel,
  .label-product-row {
    grid-template-columns: 1fr;
  }

  .label-product-head {
    display: none;
  }
}

.detail-price {
  font-size: 32px;
  color: var(--accent-dark);
}

.detail-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.detail-benefits span {
  min-height: 62px;
  display: grid;
  align-items: center;
  padding: 12px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.choice-block,
.detail-form {
  display: grid;
  gap: 10px;
}

.choice-block > span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  background: white;
}

.choice-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.premium-detail-form {
  padding: 16px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.detail-stock-grid span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-stock-grid strong {
  color: var(--ink);
  font-size: 16px;
}

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

.detail-care-grid div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-care-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-care-grid strong {
  font-size: 13px;
}

.related-products {
  width: min(100% - 48px, 1280px);
  padding: 28px;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(11, 15, 20, 0.08);
}

.related-grid .product-card,
.related-grid .product-card:first-child {
  grid-column: span 3;
}

.related-grid .product-card:first-child .product-image {
  min-height: 330px;
}

.related-grid .product-card:first-child .product-body h3 {
  font-size: 21px;
  line-height: 1.08;
}

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

.supplier-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.94)),
    #fff;
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.08);
}

.supplier-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #8b0d1a, #151515);
}

.supplier-card-head,
.supplier-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supplier-code,
.supplier-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.supplier-code {
  color: #111;
  background: #f1ede7;
}

.supplier-status {
  color: #5a4a0d;
  background: #fff5c7;
}

.supplier-status.active {
  color: #0e4f32;
  background: #dff5e9;
}

.supplier-status.inactive {
  color: #6d1720;
  background: #f7d9dd;
}

.supplier-title {
  min-width: 0;
}

.supplier-title h3 {
  margin: 0;
  color: #111;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.supplier-title p {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

.supplier-info-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.supplier-info-grid span,
.supplier-info-grid small {
  display: block;
  color: #777;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.supplier-info-grid span {
  margin-bottom: 6px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-info-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #171717;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.supplier-empty {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed rgba(20, 20, 20, 0.2);
  border-radius: 12px;
  background: #fff;
}

.supplier-empty strong {
  color: #111;
  font-size: 18px;
}

.supplier-empty span {
  color: #666;
}

@media (max-width: 620px) {
  .supplier-grid,
  .supplier-info-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card {
    padding: 14px;
    border-radius: 10px;
  }

  .supplier-card::before {
    border-radius: 10px 0 0 10px;
  }
}

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

  .company-edit-layout {
    width: min(100% - 32px, 920px);
    max-width: calc(100vw - 32px);
    grid-template-columns: 1fr;
  }

  .company-side-panel {
    position: static;
  }

  .company-status-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .access-side-panel {
    position: static;
  }

  .access-module-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
    gap: 10px;
    padding: 16px 24px;
  }

  .brand {
    width: 120px;
  }

  .brand img {
    width: 110px;
  }

  .category-nav,
  .utility-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-nav {
    justify-content: flex-start;
  }

  .utility-nav {
    justify-content: flex-end;
    gap: 8px;
  }

  .category-nav::-webkit-scrollbar,
  .utility-nav::-webkit-scrollbar {
    display: none;
  }

  .category-nav a,
  .utility-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .utility-nav a {
    padding-inline: 10px;
  }

  .hero,
  .campaign-band,
  .commerce-experience,
  .editorial-strip,
  .checkout-layout,
  .admin-grid,
  .pdv-shell,
  .seller-strip,
  .style-service-band,
  .company-info-grid,
  .import-layout,
  .decision-grid,
  .management-hero,
  .management-flow,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .commercial-command-center {
    grid-template-columns: 1fr;
  }

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

  .import-guide {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-visual {
    min-height: 430px;
  }

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

  .hero-product-banner {
    min-height: 520px;
  }

  .hero-product-carousel {
    min-height: 520px;
  }

  .hero-campaign-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .company-grid,
  .product-grid,
  .metrics,
  .plan-grid,
  .quick-links,
  .style-service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .style-service-band {
    align-items: stretch;
  }

  .product-card,
  .product-grid .product-card:first-child {
    grid-column: auto;
  }

  .product-grid .product-card:first-child .product-image {
    min-height: 360px;
  }

  .checkout-panel {
    position: static;
  }

  .detail-buy-panel {
    position: static;
  }

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

  .filter-actions {
    grid-column: 1 / -1;
  }

  .detail-benefits,
  .detail-care-grid {
    grid-template-columns: 1fr;
  }

  .product-admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .orders-admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .sales-report-summary,
  .sales-report-toolbar,
  .sales-report-filter,
  .sellers-spotlight,
  .sellers-filter,
  .sales-report-cards,
  .seller-card-grid {
    grid-template-columns: 1fr;
  }

  .sales-report-filter .button,
  .sellers-filter .button {
    width: 100%;
  }

  .import-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-admin-toolbar,
  .orders-toolbar,
  .product-admin-card,
  .product-edit-layout,
  .company-edit-layout,
  .customer-form-layout,
  .order-detail-layout,
  .account-data-grid {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .customer-card-grid {
    grid-template-columns: 1fr;
  }

  .product-photo-panel {
    position: static;
  }

  .company-form-block > div:first-child,
  .company-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .company-form-block > div:first-child span {
    max-width: none;
    text-align: left;
  }

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

  .company-edit-layout {
    width: min(100% - 24px, 920px);
    max-width: calc(100vw - 24px);
  }

  .company-status-summary {
    grid-template-columns: 1fr;
  }

  .platform-company-head,
  .company-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-company-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-company-facts div {
    padding-right: 0;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .product-admin-card {
    position: relative;
    grid-template-columns: 110px minmax(0, 1fr);
  }

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

  .product-admin-card > .button {
    grid-column: 1 / -1;
  }

  .admin-product-status {
    grid-column: 1 / -1;
  }

  .pdv-summary {
    position: static;
  }

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

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

@media (max-width: 620px) {
  .promo-bar {
    font-size: 11px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .hero,
  .campaign-band,
  .quick-links,
  .section,
  .editorial-strip,
  .seller-strip,
  .page-head,
  .checkout-layout,
  .success,
  .form-panel,
  .decision-grid,
  .management-hero,
  .management-flow,
  .product-admin-metrics,
  .product-admin-section,
  .orders-admin-metrics,
  .orders-admin-section,
  .product-edit-layout,
  .customer-form-single,
  .order-detail-layout,
  .related-products,
  .metrics,
  .admin-grid,
  .pdv-shell,
  .import-layout,
  .product-detail {
    width: min(100% - 24px, 1220px);
  }

  .hero-copy {
    min-height: 390px;
    padding: 26px;
  }

  .hero-store-banner {
    min-height: 520px;
    padding: 18px;
  }

  .hero-store-banner-content h1 {
    font-size: 34px;
  }

  .hero-store-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sales-report-metrics,
  .sales-report-cards,
  .seller-card-grid {
    grid-template-columns: 1fr;
  }

  .sales-report-summary > div,
  .sales-report-toolbar,
  .sales-report-cards article,
  .sellers-spotlight > div,
  .seller-card-grid article {
    border-radius: 14px;
  }

  .sales-report-summary > div,
  .sales-report-toolbar,
  .sellers-spotlight > div {
    padding: 16px;
  }

  .report-table-panel {
    margin-inline: -6px;
  }

  .hero h1,
  .page-head h1,
  .success h1 {
    font-size: 34px;
  }

  .management-head h1 {
    font-size: 34px;
  }

  .account-head h1 {
    font-size: 28px;
  }

  .account-head p:not(.eyebrow) {
    font-size: 13px;
  }

  .management-summary > strong {
    font-size: 34px;
  }

  .decision-card strong {
    font-size: 24px;
  }

  .hero-visual,
  .editorial-product-row,
  .company-grid,
  .product-grid,
  .pdv-scan-card,
  .pdv-scan-fields,
  .pdv-item,
  .pdv-product-grid,
  .metrics,
  .plan-grid,
  .quick-links,
  .cart-steps,
  .store-filter-panel,
  .commerce-experience-actions,
  .style-service-cards,
  .admin-feature-grid,
  .product-admin-metrics,
  .admin-product-status,
  .orders-admin-metrics,
  .order-numbers,
  .import-summary,
  .summary-row,
  .search-form,
  .sales-report-filter,
  .customer-info-grid,
  .customer-checklist,
  .customer-checklist.compact,
  .form-row,
  .import-checklist,
  .import-actions,
  .import-extra-fields,
  .import-column-grid,
  .import-guide,
  .csv-import-steps,
  .csv-import-step {
    grid-template-columns: 1fr;
  }

  .hero-product-banner {
    min-height: 460px;
    padding: 18px;
  }

  .hero-product-carousel {
    min-height: 460px;
  }

  .hero-product-banner strong {
    font-size: 32px;
  }

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

  .hero-campaign-card,
  .hero-mini-product {
    min-height: 132px;
  }

  .editorial-strip {
    padding: 16px;
  }

  .csv-import-step > span,
  .csv-import-step select,
  .csv-import-step input[type="file"],
  .csv-import-step .button,
  .csv-import-step .import-actions {
    grid-column: 1;
  }

  .csv-import-step > span {
    grid-row: auto;
  }

  .product-import-guide {
    position: static;
  }

  .management-summary {
    padding: 24px;
  }

  .management-head,
  .decision-card,
  .management-flow,
  .storefront-settings {
    padding: 22px;
  }

  .storefront-settings {
    display: grid;
    align-items: stretch;
  }

  .commercial-command-title,
  .commercial-storefront-card {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-storefront-card {
    grid-template-columns: 1fr;
  }

  .command-status-card {
    flex-basis: auto;
  }

  .commercial-command-title .button,
  .commercial-storefront-card .button {
    width: 100%;
    justify-content: center;
  }

  .storefront-settings .button {
    width: 100%;
  }

  .account-head {
    align-items: stretch;
    padding: 20px;
  }

  .account-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    max-width: none;
    width: 100%;
  }

  .account-actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .admin-menu {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-menu-group summary {
    width: 100%;
    justify-content: space-between;
  }

  .admin-menu-group > div {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 12px 28px rgba(11, 15, 20, 0.08);
  }

  .account-metrics {
    gap: 10px;
  }

  .account-metrics div {
    min-height: auto;
    padding: 16px;
  }

  .account-metrics strong {
    font-size: 24px;
  }

  .account-section {
    padding: 16px;
  }

  .account-section .product-admin-toolbar {
    gap: 12px;
    margin-bottom: 0;
  }

  .account-section .product-admin-toolbar h2,
  .account-order-panel .panel-title h2 {
    font-size: 22px;
  }

  .account-section .product-admin-toolbar .button,
  .account-order-panel .panel-title .button {
    width: 100%;
    justify-content: center;
  }

  .account-info-card {
    padding: 16px;
  }

  .account-info-card h2 {
    font-size: 21px;
  }

  .account-info-card dl {
    grid-template-columns: 1fr;
  }

  .account-order-panel {
    padding: 14px;
    background: #fff;
  }

  .customer-order-card {
    padding: 14px;
  }

  .customer-order-facts {
    grid-template-columns: 1fr;
  }

  .customer-order-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .customer-order-item .mini-image {
    width: 58px;
    height: 68px;
  }

  .customer-order-actions .button {
    width: 100%;
    justify-content: center;
  }

  .tracking-mobile {
    width: min(100% - 20px, 680px);
    padding-top: 12px;
  }

  .tracking-card {
    padding: 12px;
    gap: 12px;
  }

  .tracking-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .tracking-logo {
    width: 72px;
    height: 44px;
    border-radius: 999px;
  }

  .tracking-hero h1 {
    font-size: 28px;
  }

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

  .tracking-result-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tracking-result-head strong {
    width: fit-content;
  }

  .flow-row {
    grid-template-columns: 1fr 42px;
  }

  .flow-row span {
    grid-column: 1 / -1;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdv-ticket,
  .pdv-products-section,
  .pdv-scan-card {
    padding: 16px;
  }

  .pdv-item-numbers {
    min-width: 0;
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .pdv-item-image {
    width: 100%;
    height: 150px;
  }

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

  .pdv-payment-group {
    grid-template-columns: 1fr;
  }

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

  .access-profile-grid,
  .access-metrics,
  .access-card-stats,
  .access-side-summary,
  .access-group-map,
  .access-module-options {
    grid-template-columns: 1fr;
  }

  .access-form-layout,
  .access-form-panel,
  .access-side-panel,
  .access-module-board,
  .access-module-group,
  .access-module-options,
  .access-module-option,
  .access-feature-list,
  .access-feature-list label {
    max-width: 100%;
    min-width: 0;
  }

  .access-form-layout {
    overflow: hidden;
  }

  .access-head {
    overflow: hidden;
  }

  .access-head .hero-actions,
  .access-head .button,
  .access-group-actions,
  .access-preset-box {
    min-width: 0;
    max-width: 100%;
  }

  .access-head .button {
    width: 100%;
    white-space: normal;
  }

  .access-module-group,
  .access-module-option {
    padding-right: 12px;
  }

  .access-group-actions .button,
  .access-preset-box .button {
    width: 100%;
  }

  .access-module-group > div:first-child,
  .access-map-title,
  .access-live-card > div:first-child,
  .customer-card-head,
  .customer-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdv-total-card strong {
    font-size: 34px;
  }

  .showcase-section {
    padding: 16px;
  }

  .promotion-campaign-grid,
  .promotion-landing-hero,
  .store-popup-form {
    grid-template-columns: 1fr;
  }

  .promotion-campaign-card {
    min-height: 190px;
  }

  .showcase-title,
  .showcase-tools {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .product-image {
    min-height: 360px;
  }

  .detail-media .product-image {
    min-height: 420px;
  }

  .detail-buy-panel {
    padding: 22px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .mini-image {
    width: 92px;
    height: 112px;
  }

  .cart-item form {
    grid-column: 1 / -1;
  }

  .cart-item .icon-button {
    width: 100%;
    border-radius: 7px;
    font-size: 18px;
  }

  .product-admin-section {
    padding: 16px;
  }

  .product-admin-head {
    padding: 24px;
  }

  .orders-admin-head,
  .orders-admin-section {
    padding: 24px;
  }

  .product-admin-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-product-image {
    width: 88px;
    height: 108px;
  }

  .admin-product-main h3 {
    font-size: 18px;
  }
}

@media (max-width: 620px) {
  main {
    margin-bottom: 92px;
  }

  .hero {
    gap: 12px;
    padding-top: 12px;
  }

  .promotion-visibility-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .promotion-visibility-strip .button {
    width: 100%;
  }

  .promotion-campaign-grid {
    gap: 10px;
  }

  .promotion-campaign-card {
    padding: 16px;
  }

  .promotion-landing-hero {
    padding: 20px;
  }

  .promotion-landing-hero aside {
    min-height: 150px;
  }

  .storefront-popup {
    padding: 10px;
  }

  .storefront-popup-dialog {
    width: min(92vw, 420px);
    border-radius: 12px;
  }

  .storefront-popup-close {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .store-popup-panel,
  .store-popup-preview {
    padding: 16px;
  }

  .store-popup-preview-frame {
    min-height: 240px;
  }

  .hero-copy {
    min-height: 0;
    padding: 22px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.04;
  }

  .hero p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-visual {
    min-height: 165px;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 1fr;
    gap: 8px;
  }

  .runway-card:first-child {
    grid-row: auto;
  }

  .runway-card span {
    left: 10px;
    bottom: 10px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .quick-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .quick-links::-webkit-scrollbar {
    display: none;
  }

  .quick-links a {
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .campaign-band {
    margin-top: 24px;
    padding: 18px;
    border-radius: 10px;
  }

  .campaign-copy h2 {
    margin: 0;
    font-size: 24px;
  }

  .campaign-copy p {
    font-size: 14px;
  }

  .campaign-image {
    min-height: 145px;
  }

  .section {
    margin-top: 34px;
  }

  .section-title h2,
  .table-panel h2,
  .checkout-panel h2,
  .empty-state h2 {
    font-size: 24px;
  }

  .company-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .company-grid::-webkit-scrollbar {
    display: none;
  }

  .company-card {
    flex: 0 0 78%;
    min-height: 136px;
    padding: 18px;
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .company-logo-mark {
    max-width: 82px;
    height: 24px;
  }

  .company-logo-mark img {
    max-width: 66px;
    max-height: 14px;
  }

  .showcase-section {
    padding: 0;
  }

  .showcase-title {
    gap: 12px;
  }

  .showcase-tools {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showcase-tools::-webkit-scrollbar {
    display: none;
  }

  .showcase-tools span,
  .showcase-tools a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
  }

  .mobile-filter-drawer {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 0 14px;
    padding-top: 8px;
    background: var(--bg);
  }

  .mobile-filter-drawer summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid rgba(11, 15, 20, 0.1);
    border-radius: 10px;
    background: var(--ink);
    color: white;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    list-style: none;
  }

  .mobile-filter-drawer summary::-webkit-details-marker {
    display: none;
  }

  .mobile-filter-drawer summary strong {
    min-width: 26px;
    min-height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 12px;
  }

  .mobile-filter-drawer:not([open]) .store-filter-panel {
    display: none;
  }

  .store-filter-panel {
    gap: 10px;
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(11, 15, 20, 0.08);
  }

  .store-search-field {
    grid-column: auto;
  }

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

  .active-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 14px;
    scrollbar-width: none;
  }

  .active-filter-row::-webkit-scrollbar {
    display: none;
  }

  .active-filter-row span {
    flex: 0 0 auto;
  }

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

  .product-card,
  .product-grid .product-card:first-child {
    grid-column: auto;
    border-radius: 10px;
  }

  .product-image,
  .product-grid .product-card:first-child .product-image {
    min-height: 205px;
    margin: 6px 6px 0;
    padding: 8px;
    border-radius: 8px;
  }

  .product-category {
    max-width: 100%;
    padding: 5px 7px;
    font-size: 9px;
  }

  .product-body {
    gap: 8px;
    padding: 10px;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .product-meta p,
  .product-meta span {
    font-size: 9px;
  }

  .product-body h3,
  .product-grid .product-card:first-child .product-body h3 {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-tags {
    gap: 5px;
  }

  .product-tags span {
    min-height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }

  .product-buy-row {
    margin-top: 0;
  }

  .product-body strong {
    font-size: 17px;
  }

  .product-card .button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 10px;
  }

  .seller-strip {
    margin-top: 38px;
    padding: 18px;
    border-radius: 10px;
  }

  .lead-form {
    padding: 14px;
    border-radius: 10px;
  }

  .product-detail {
    gap: 16px;
    margin-top: 14px;
  }

  .premium-detail {
    width: min(100% - 16px, 1280px);
  }

  .detail-media .product-image {
    min-height: 390px;
    border-radius: 10px;
  }

  .detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .detail-thumbs::-webkit-scrollbar {
    display: none;
  }

  .detail-thumb {
    flex: 0 0 82px;
    min-height: 82px;
    border-radius: 8px;
  }

  .detail-buy-panel {
    padding: 16px;
    border-radius: 10px;
  }

  .detail-buy-panel h1 {
    font-size: 28px;
    line-height: 1.04;
  }

  .detail-price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .detail-price {
    font-size: 30px;
  }

  .detail-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-benefits span {
    min-height: 42px;
    padding: 10px;
    font-size: 10px;
  }

  .color-options {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .color-options::-webkit-scrollbar {
    display: none;
  }

  .choice-pill {
    flex: 0 0 auto;
  }

  .premium-detail-form {
    position: sticky;
    bottom: 10px;
    z-index: 9;
    padding: 12px;
    border: 1px solid rgba(11, 15, 20, 0.12);
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 18px 44px rgba(11, 15, 20, 0.18);
    backdrop-filter: blur(12px);
  }

  .detail-stock-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-care-grid {
    grid-template-columns: 1fr;
  }

  .cart-head {
    margin-top: 12px;
    padding: 22px;
    border-radius: 10px;
  }

  .cart-head h1 {
    font-size: 30px;
  }

  .cart-head p:not(.eyebrow) {
    font-size: 14px;
  }

  .checkout-layout {
    gap: 14px;
  }

  .cart-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cart-steps::-webkit-scrollbar {
    display: none;
  }

  .cart-steps span {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 38px;
    border-radius: 999px;
    font-size: 10px;
  }

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .mini-image {
    width: 84px;
    height: 106px;
    border-radius: 8px;
  }

  .cart-item-copy {
    gap: 7px;
  }

  .cart-item-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cart-item-copy strong {
    font-size: 18px;
  }

  .cart-item-top small,
  .cart-item-tags span {
    min-height: 23px;
    padding: 0 7px;
    font-size: 9px;
  }

  .cart-item form {
    grid-column: auto;
  }

  .cart-item .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
  }

  .checkout-panel {
    padding: 16px;
    border-radius: 10px;
  }

  .checkout-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .checkout-benefits span {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    gap: 8px;
  }

  .product-image,
  .product-grid .product-card:first-child .product-image {
    min-height: 178px;
  }

  .product-body h3,
  .product-grid .product-card:first-child .product-body h3 {
    font-size: 13px;
  }

  .product-body strong {
    font-size: 15px;
  }
}

@media (max-width: 620px) {
  .pdv-head {
    margin-top: 10px;
    padding: 18px;
  }

  .pdv-head h1 {
    font-size: 30px;
  }

  .pdv-head p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.4;
  }

  .pdv-head .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .pdv-head .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .pdv-head .hero-actions .button {
    flex: 0 0 auto;
  }

  .pdv-mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 30;
    width: min(100% - 16px, 1220px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px auto 10px;
    padding: 7px;
    border: 1px solid rgba(226, 216, 202, 0.95);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 12px 28px rgba(11, 15, 20, 0.11);
    backdrop-filter: blur(12px);
  }

  .pdv-mobile-tabs a {
    min-height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--soft);
    color: var(--ink);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .pdv-mobile-tabs a:nth-child(3) {
    background: var(--ink);
    color: white;
  }

  .pdv-shell {
    width: min(100% - 16px, 1220px);
    gap: 12px;
    margin-bottom: 18px;
  }

  .pdv-main,
  .pdv-summary,
  .pdv-ticket,
  .pdv-checkout-card,
  .pdv-products-section {
    gap: 10px;
  }

  .pdv-scan-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
  }

  .pdv-scan-copy h2,
  .pdv-ticket-head h2 {
    font-size: 22px;
  }

  .pdv-scan-copy span {
    font-size: 12px;
  }

  .pdv-scan-fields {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .pdv-scan-fields input {
    min-height: 56px;
    padding: 0 12px;
    font-size: 18px;
  }

  .pdv-scan-fields .button {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .pdv-camera-actions {
    grid-column: 1 / -1;
  }

  .pdv-camera-actions .button {
    flex: 1 1 150px;
    min-height: 44px;
  }

  .pdv-camera-autosubmit {
    flex: 1 1 100%;
  }

  .pdv-camera-panel video {
    max-height: 260px;
  }

  .pdv-live-results {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .pdv-live-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .pdv-live-image {
    width: 62px;
    height: 76px;
  }

  .pdv-live-info strong {
    white-space: normal;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdv-live-card form {
    grid-column: 1 / -1;
    grid-template-columns: 74px 1fr;
  }

  .pdv-live-card input,
  .pdv-live-card .button {
    min-height: 42px;
  }

  .pdv-ticket {
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-ticket-head {
    align-items: flex-start;
  }

  .pdv-ticket-head strong {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .pdv-items {
    gap: 8px;
  }

  .pdv-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-left-width: 3px;
    border-radius: 10px;
  }

  .pdv-item-image {
    width: 68px;
    height: 82px;
  }

  .pdv-item > div:nth-child(2) strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdv-item > div:nth-child(2) span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .pdv-item-numbers {
    grid-column: 1 / -1;
    min-width: 0;
    grid-template-columns: 1fr 82px 96px;
    gap: 7px;
    text-align: left;
  }

  .pdv-qty-form {
    grid-template-columns: 52px 42px;
  }

  .pdv-qty-form input,
  .pdv-qty-form .small-button {
    min-height: 40px;
  }

  .pdv-item > form {
    grid-column: 1 / -1;
  }

  .pdv-item > form .button {
    width: 100%;
    min-height: 38px;
  }

  .pdv-summary {
    position: static;
  }

  .pdv-total-card {
    padding: 18px;
    border-radius: 12px;
  }

  .pdv-total-card strong {
    font-size: 34px;
  }

  .pdv-checkout-card,
  .pdv-summary > form:last-child {
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-checkout-card label {
    font-size: 11px;
  }

  .pdv-checkout-card input,
  .pdv-checkout-card select,
  .pdv-checkout-card textarea {
    min-height: 46px;
    padding: 11px;
    font-size: 14px;
  }

  .pdv-payment-group {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .pdv-payment-group label {
    min-height: 46px;
    justify-content: center;
    padding: 0 8px;
    font-size: 10px;
  }

  .pdv-pix-panel img {
    width: 150px;
    height: 150px;
  }

  .pdv-money-summary {
    padding: 10px;
  }

  .pdv-money-summary div {
    font-size: 12px;
  }

  .pdv-money-summary div:nth-child(4) strong {
    font-size: 20px;
  }

  .pdv-products-section {
    width: min(100% - 16px, 1220px);
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-product-lookup-cta {
    display: grid;
    gap: 12px;
  }

  .pdv-product-lookup-cta .button {
    width: 100%;
  }

  .pdv-lookup-section {
    width: min(100% - 16px, 1220px);
    padding: 14px;
    border-radius: 12px;
  }

  .pdv-lookup-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 10px;
  }

  .pdv-lookup-image {
    width: 100%;
    height: auto;
  }

  .pdv-lookup-info h3 {
    font-size: 14px;
    line-height: 1.18;
  }

  .pdv-lookup-info p,
  .pdv-lookup-info small {
    font-size: 10px;
  }

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

  .pdv-lookup-numbers div {
    min-height: 58px;
    padding: 8px;
  }

  .pdv-lookup-card form {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pdv-products-section .orders-toolbar {
    gap: 10px;
  }

  .pdv-products-section .orders-toolbar h2 {
    font-size: 22px;
  }

  .pdv-products-section .orders-toolbar span {
    font-size: 12px;
  }

  .pdv-products-section .search-form {
    grid-template-columns: 1fr;
  }

  .pdv-products-section .search-form input,
  .pdv-products-section .search-form select,
  .pdv-products-section .search-form button {
    min-height: 46px;
  }

  .pdv-pagination {
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .pdv-pagination span {
    font-size: 10px;
    text-align: center;
  }

  .pdv-product-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
  }

  .pdv-product-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px;
    border-radius: 10px;
  }

  .pdv-product-image {
    width: 82px;
    aspect-ratio: 4 / 5;
  }

  .pdv-product-card > div:nth-child(2) {
    min-width: 0;
  }

  .pdv-product-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdv-product-card p,
  .pdv-product-card small {
    font-size: 11px;
    line-height: 1.3;
  }

  .pdv-product-card > strong {
    grid-column: 1 / 2;
    font-size: 15px;
  }

  .pdv-product-status {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }

  .pdv-product-card form {
    grid-column: 1 / -1;
    grid-template-columns: 70px 1fr;
  }

  .pdv-product-card form input,
  .pdv-product-card form button {
    min-height: 42px;
  }

  .pdv-finish-card {
    width: min(100%, 360px);
    padding: 22px;
    border-radius: 14px;
  }

  .pdv-finish-card h2 {
    font-size: 24px;
  }

  .pdv-mobile-total-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(11, 15, 20, 0.96);
    color: white;
    box-shadow: 0 18px 46px rgba(11, 15, 20, 0.26);
    backdrop-filter: blur(14px);
  }

  .pdv-mobile-total-bar div {
    min-width: 0;
  }

  .pdv-mobile-total-bar span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .pdv-mobile-total-bar strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    font-size: 20px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pdv-mobile-total-bar .button {
    min-height: 44px;
    padding: 0 10px;
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
    font-size: 11px;
  }

  .cart-recovery-card {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
  }

  .cart-recovery-score,
  .cart-recovery-actions {
    grid-column: 1 / -1;
  }
}

/* Responsividade global: evita estouro lateral e padroniza telas novas/antigas. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

:where(main, section, article, aside, header, footer, nav, div, form, label, fieldset, table, thead, tbody, tr, td, th, p, h1, h2, h3, h4, span, strong, small, a, button) {
  min-width: 0;
}

:where(h1, h2, h3, h4, p, span, strong, small, a, button, label, input, select, textarea, td, th) {
  overflow-wrap: anywhere;
}

:where(input, select, textarea, button) {
  max-width: 100%;
}

:where(.button, .small-button, .icon-button) {
  min-width: 0;
  text-align: center;
}

:where(.table-panel, .report-table-panel, .audit-table-panel, .management-panel, .account-order-panel, .import-result-panel) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:where(.table-panel, .report-table-panel, .audit-table-panel, .management-panel, .account-order-panel, .import-result-panel) table {
  width: 100%;
}

  :where(.page-head, .hero, .campaign-band, .quick-links, .section, .seller-strip, .checkout-layout, .success, .form-panel, .decision-grid, .management-hero, .management-flow, .dashboard-section-grid, .dashboard-wide-panel, .demand-command-panel, .promotion-command, .promotion-clean-shell, .promotion-rules-shell, .product-admin-metrics, .product-admin-section, .orders-admin-metrics, .orders-admin-section, .product-edit-layout, .customer-form-single, .customer-form-layout, .order-detail-layout, .related-products, .metrics, .admin-grid, .pdv-shell, .import-layout, .product-detail, .tracking-mobile) {
  max-width: calc(100vw - 24px);
}

:where(.form-row, .search-form, .sales-report-filter, .product-admin-toolbar, .orders-toolbar, .hero-actions, .customer-form-footer, .panel-title) {
  min-width: 0;
}

@media (max-width: 1180px) {
  :where(.metrics, .orders-admin-metrics, .product-admin-metrics, .management-metrics, .company-form-overview, .admin-feature-grid, .access-profile-grid, .customer-card-grid, .company-card-grid, .dashboard-section-grid, .dashboard-order-grid, .demand-command-grid, .promotion-command, .promotion-clean-grid, .promotion-clean-summary, .promotion-rules-summary, .promotion-selector-grid, .metric-grid.compact, .command-kpis, .command-health-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-row-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .promotion-form-layout .promotion-side-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .promotion-studio-summary,
  .promotion-step-list,
  .promotion-scope-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promotion-row-meta,
  .promotion-row-actions {
    grid-column: 1 / -1;
  }

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

@media (max-width: 980px) {
  :where(.page-head, .orders-toolbar, .product-admin-toolbar, .hero-actions, .customer-form-footer, .panel-title) {
    align-items: stretch;
  }

  :where(.page-head, .orders-toolbar, .product-admin-toolbar, .customer-form-footer, .panel-title) {
    flex-direction: column;
  }

  :where(.hero-actions, .orders-toolbar .search-form, .product-admin-toolbar .search-form, .search-form, .sales-report-filter) {
    width: 100%;
  }

  :where(.hero-actions .button, .orders-toolbar .button, .product-admin-toolbar .button, .search-form .button, .sales-report-filter .button) {
    justify-content: center;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    padding: 12px;
    border: 1px solid rgba(11, 15, 20, 0.08);
    border-radius: 8px;
    background: #fffdf9;
  }

  .admin-table tr + tr {
    margin-top: 10px;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  :where(.form-row, .customer-info-grid, .customer-checklist, .summary-row, .order-numbers, .import-summary, .company-form-overview, .platform-company-facts, .platform-field-grid, .user-field-grid, .user-permission-grid, .access-profile-grid, .access-metrics, .access-card-stats, .access-side-summary, .access-group-map, .access-module-options) {
    grid-template-columns: 1fr;
  }

  .promotion-command,
  .promotion-selector-grid,
  .promotion-studio-summary,
  .promotion-scope-picker {
    grid-template-columns: 1fr;
  }

  .promotion-form-title {
    display: grid;
  }

  .promotion-clean-summary,
  .promotion-clean-grid,
  .promotion-clean-facts,
  .promotion-clean-title,
  .promotion-rules-summary,
  .promotion-rules-facts,
  .promotion-image-grid,
  .promotion-rule-row,
  .promotion-rule-row.product-rule-row {
    grid-template-columns: 1fr;
  }

  .promotion-clean-title,
  .promotion-rules-title,
  .promotion-rule-group-head {
    display: grid;
  }

  :where(.table-panel, .report-table-panel, .audit-table-panel, .management-panel, .account-order-panel, .import-result-panel) {
    border-radius: 8px;
  }
}

@media (max-width: 620px) {
  :where(.page-head, .hero, .campaign-band, .quick-links, .section, .seller-strip, .checkout-layout, .success, .form-panel, .decision-grid, .management-hero, .management-flow, .dashboard-section-grid, .dashboard-wide-panel, .demand-command-panel, .promotion-command, .promotion-clean-shell, .promotion-rules-shell, .product-admin-metrics, .product-admin-section, .orders-admin-metrics, .orders-admin-section, .product-edit-layout, .customer-form-single, .customer-form-layout, .order-detail-layout, .related-products, .metrics, .admin-grid, .pdv-shell, .import-layout, .product-detail, .tracking-mobile) {
    width: min(100% - 20px, 1220px);
    max-width: calc(100vw - 20px);
  }

  .commercial-command-center {
    width: min(100% - 20px, 1220px);
    max-width: calc(100vw - 20px);
  }

  .commercial-command-main,
  .commercial-command-side,
  .commercial-module-map,
  .commercial-storefront-card {
    padding: 16px;
  }

  .commercial-kpis,
  .command-health-grid,
  .metric-grid.compact,
  .dashboard-section-grid,
  .dashboard-order-grid,
  .demand-command-grid,
  .promotion-command,
  .promotion-command-kpis,
  .promotion-clean-summary,
  .promotion-clean-grid,
  .promotion-clean-facts,
  .promotion-rules-summary,
  .promotion-rules-facts,
  .promotion-rule-row,
  .promotion-rule-row.product-rule-row,
  .promotion-selector-grid {
    grid-template-columns: 1fr;
  }

  .promotion-clean-card,
  .promotion-clean-summary,
  .promotion-clean-submit,
  .promotion-rules-card,
  .promotion-rules-summary,
  .promotion-rules-submit {
    padding: 14px;
  }

  .promotion-clean-submit,
  .promotion-rules-submit {
    display: grid;
    justify-items: stretch;
  }

  .promotion-clean-submit .button,
  .promotion-rules-submit .button {
    width: 100%;
    justify-content: center;
  }

  .promotion-form-layout .promotion-side-panel,
  .promotion-form-card {
    padding: 14px;
  }

  .promotion-step-list {
    grid-template-columns: 1fr;
  }

  .promotion-studio-summary,
  .promotion-scope-picker {
    grid-template-columns: 1fr;
  }

  .promotion-select-panel select {
    min-height: 180px;
  }

  .promotion-row-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .promotion-discount-badge {
    min-height: 82px;
  }

  .promotion-row-meta,
  .promotion-row-actions {
    grid-column: auto;
  }

  .promotion-row-actions,
  .promotion-save-bar {
    display: grid;
    justify-items: stretch;
  }

  .promotion-form-title {
    display: grid;
  }

  .promotion-row-actions .button,
  .promotion-save-bar .button {
    width: 100%;
    justify-content: center;
  }

  .demand-actions {
    justify-content: stretch;
  }

  .demand-actions .button {
    width: 100%;
    justify-content: center;
  }

  .demand-list article > div {
    display: grid;
    gap: 3px;
  }

  .commercial-kpis div {
    min-height: auto;
  }

  :where(.page-head, .orders-admin-head, .product-admin-head, .management-head, .cart-head) {
    padding: 18px;
  }

  :where(.page-head h1, .management-head h1, .cart-head h1, .pdv-head h1, .tracking-hero h1) {
    font-size: clamp(26px, 9vw, 34px);
    line-height: 1.05;
  }

  :where(.hero-actions) {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  :where(.hero-actions .button, .button.full, .company-form-actions .button, .customer-form-footer .button, .access-group-actions .button, .access-preset-box .button) {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  :where(.orders-admin-metrics, .product-admin-metrics, .management-metrics, .metrics, .admin-feature-grid, .company-card-grid, .customer-card-grid, .access-profile-grid, .company-form-overview) {
    grid-template-columns: 1fr;
  }

  :where(.variant-picker, .variant-matrix, .registry-card-grid, .registry-card-stats) {
    grid-template-columns: 1fr;
  }

  .variant-qty-row {
    align-items: stretch;
    flex-direction: column;
  }

  .variant-qty-row input {
    width: 100%;
  }

  :where(.orders-admin-metrics div, .product-admin-metrics div, .management-metrics div, .metrics div) {
    min-height: auto;
  }

  :where(.table-panel, .report-table-panel, .audit-table-panel, .management-panel, .account-order-panel, .import-result-panel) {
    padding: 12px;
  }

  :where(.table-panel table, .report-table-panel table, .audit-table-panel table, .management-panel table, .account-order-panel table, .import-result-panel table) {
    min-width: 720px;
  }

  :where(.table-panel th, .table-panel td, .report-table-panel th, .report-table-panel td, .audit-table-panel th, .audit-table-panel td, .management-panel th, .management-panel td) {
    padding: 10px;
    font-size: 12px;
  }

  .users-table-panel {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .users-table-panel table,
  .users-table-panel thead,
  .users-table-panel tbody,
  .users-table-panel tr,
  .users-table-panel td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .users-table-panel table {
    border-spacing: 0;
    min-width: 0;
  }

  .users-table-panel thead {
    display: none;
  }

  .users-table-panel tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 14px 32px rgba(11, 15, 20, 0.06);
  }

  .users-table-panel tbody tr.is-master {
    background:
      linear-gradient(145deg, rgba(198, 214, 56, 0.18), transparent 48%),
      white;
  }

  .users-table-panel td {
    display: grid;
    grid-template-columns: minmax(82px, 30%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 216, 202, 0.72);
  }

  .users-table-panel td:last-child {
    border-bottom: 0;
  }

  .users-table-panel td::before {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .users-card-grid {
    grid-template-columns: 1fr;
  }

  .user-management-card {
    padding: 14px;
    border-radius: 10px;
  }

  .user-management-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-management-card-head .small-button {
    width: 100%;
    justify-content: center;
  }

  .user-management-facts {
    grid-template-columns: 1fr;
  }

  .user-identity {
    grid-template-columns: 38px minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  .user-identity-copy {
    min-width: 0;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .user-profile-pill,
  .user-type-pill,
  .user-status-pill {
    justify-self: start;
    white-space: normal;
    text-align: center;
  }

  :where(.form-panel, .product-edit-form, .company-form-block, .fiscal-form-block, .access-form-panel, .access-side-panel, .pdv-ticket, .pdv-products-section, .pdv-scan-card, .checkout-panel, .account-section) {
    padding: 14px;
  }

  :where(.form-row, .search-form, .sales-report-filter, .pdv-payment-group, .pdv-finish-actions, .pdv-qty-form) {
    grid-template-columns: 1fr;
  }

  :where(input, select, textarea) {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  :where(.topbar) {
    padding-inline: 14px;
  }

  :where(.page-head, .orders-admin-head, .product-admin-head, .management-head, .cart-head) {
    padding: 16px;
  }

  :where(.button, .small-button) {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 11px;
  }

  :where(.orders-admin-metrics strong, .product-admin-metrics strong, .management-metrics strong, .metrics strong) {
    font-size: 26px;
  }
}

@media (max-width: 1180px) {
  .management-module-popover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .management-module-menu {
    width: 100%;
  }

  .management-module-menu summary {
    width: 100%;
    justify-content: center;
  }

  .management-module-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
  }

  .management-module-group {
    padding: 10px;
  }

  .admin-session-menu {
    width: 100%;
  }

  .admin-session-menu a {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .offline-pdv-status-grid,
  .offline-pdv-shell {
    grid-template-columns: 1fr;
  }

  .offline-pdv-summary {
    position: static;
  }

  .pdv-cash-open-form,
  .pdv-cash-register-open,
  .pdv-cash-close-form,
  .parameters-grid,
  .parameters-summary-grid,
  .parameters-filter-grid {
    grid-template-columns: 1fr;
  }

  .pdv-cash-close-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contingency-sale-details,
  .contingency-card-actions {
    grid-template-columns: 1fr;
  }

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

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

  .contingency-card-actions > div {
    justify-content: stretch;
  }

  .contingency-card-actions .button {
    flex: 1 1 160px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .offline-pdv-status-grid,
  .offline-pdv-shell,
  .pdv-cash-register-panel,
  .parameters-shell {
    width: min(100% - 24px, 1220px);
    margin-inline: auto;
  }

  .pdv-cash-drawer summary {
    align-items: flex-start;
    min-height: 0;
    padding: 10px;
  }

  .pdv-cash-drawer summary small {
    white-space: normal;
  }

  .pdv-cash-toggle {
    flex: 0 0 auto;
  }

  .pdv-cash-drawer-body {
    padding: 0 10px 10px;
  }

  .parameters-tabs a {
    flex: 1 1 100%;
  }

  .pdv-cash-register-kpis {
    grid-template-columns: 1fr;
  }

  .pdv-cash-close-title {
    display: grid;
  }

  .pdv-cash-close-methods {
    grid-template-columns: 1fr;
  }

  .offline-product-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .offline-price-block,
  .offline-product-card > button {
    grid-column: 2;
    justify-self: start;
  }

  .offline-price-block {
    justify-items: start;
  }

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

  .offline-pending-sale {
    display: grid;
  }

  .offline-pending-sale-head,
  .offline-pending-sale-actions {
    display: grid;
    justify-items: start;
  }

  .offline-pending-sale-head > strong {
    white-space: normal;
  }

  .offline-pending-sale-meta {
    grid-template-columns: 1fr;
  }

  .offline-pending-sale-items li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .offline-pending-sale-items li em {
    grid-column: 2;
    justify-self: start;
  }

  .sync-command-hero {
    width: min(100% - 24px, 1220px);
    padding: 14px;
    border-radius: 14px;
  }

  .contingency-kpis {
    width: min(100% - 24px, 1220px);
    grid-template-columns: 1fr;
    margin-top: -4px;
  }

  .contingency-kpis article {
    min-height: auto;
    padding: 12px;
  }

  .contingency-sale-card {
    padding: 14px;
    border-radius: 14px;
  }

  .contingency-sale-head,
  .contingency-sale-total {
    display: grid;
    justify-items: start;
  }

  .contingency-sale-total strong {
    white-space: normal;
  }

  .contingency-card-actions > div {
    display: grid;
  }

  .contingency-card-actions .button {
    width: 100%;
  }
}

.return-request-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(24, 24, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.return-request-box summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.return-request-box form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.return-request-box label,
.order-detail-side label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.return-request-box input,
.return-request-box select,
.return-request-box textarea,
.order-detail-side input,
.order-detail-side textarea {
  width: 100%;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

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

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

.details-list div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.04);
}

.details-list dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.return-financial-summary {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
}

.return-financial-summary div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(24, 24, 24, 0.04);
}

.return-financial-summary span,
.return-financial-summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.return-financial-summary span {
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.return-financial-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.return-stock-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 14px;
  background: rgba(24, 24, 24, 0.04);
}

.return-stock-summary.is-returned {
  border-color: rgba(22, 125, 72, 0.22);
  background: rgba(22, 125, 72, 0.1);
}

.return-stock-summary span,
.return-stock-summary small {
  color: var(--muted);
  font-weight: 800;
}

.return-stock-summary span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.return-stock-summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.save-confirmation-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 125, 72, 0.24);
  border-radius: 14px;
  background: rgba(22, 125, 72, 0.1);
  color: #145c37;
  font-weight: 800;
}

.save-confirmation-alert span {
  color: rgba(20, 92, 55, 0.78);
  font-size: 0.88rem;
}

.pdv-return-grid {
  display: grid;
  gap: 16px;
}

.pdv-return-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(24, 24, 24, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(24, 24, 24, 0.08);
}

.pdv-return-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pdv-return-product h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
}

.pdv-return-product span,
.pdv-return-product small,
.pdv-return-product p {
  color: var(--muted);
  font-weight: 700;
}

.pdv-return-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pdv-return-meta div,
.pdv-return-existing {
  padding: 12px;
  border-radius: 14px;
  background: rgba(24, 24, 24, 0.04);
}

.pdv-return-meta span,
.pdv-return-existing span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.pdv-return-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.pdv-return-form input,
.pdv-return-form select,
.pdv-return-form textarea {
  width: 100%;
}

.pdv-return-notes,
.pdv-return-form .full {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .compact-grid,
  .details-list,
  .pdv-return-meta,
  .pdv-return-form {
    grid-template-columns: 1fr;
  }

  .pdv-return-card {
    padding: 12px;
    border-radius: 14px;
  }

  .pdv-return-product {
    grid-template-columns: 62px minmax(0, 1fr);
  }
}

.returns-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.returns-metrics .is-success {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), #fffdf9);
}

.returns-metrics .is-warning {
  border-color: rgba(183, 121, 31, 0.24);
  background: linear-gradient(135deg, rgba(183, 121, 31, 0.09), #fffdf9);
}

.returns-toolbar {
  align-items: flex-end;
}

.returns-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.returns-search input {
  width: min(420px, 100%);
}

.returns-status-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.returns-status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.returns-status-tabs a.active,
.returns-status-tabs a:hover,
.returns-status-tabs a:focus-visible {
  border-color: rgba(122, 8, 22, 0.32);
  background: rgba(122, 8, 22, 0.08);
  color: var(--accent);
}

.returns-priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.returns-priority-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.045);
}

.returns-priority-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.returns-priority-strip strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.returns-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(292px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.returns-board-column {
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr);
  min-width: 0;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(247, 244, 239, 0.62);
  scroll-snap-align: start;
}

.returns-board-column.active {
  border-color: rgba(122, 8, 22, 0.3);
  box-shadow: 0 12px 32px rgba(122, 8, 22, 0.08);
}

.returns-board-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
  border-radius: 10px 10px 0 0;
}

.returns-board-column-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.returns-board-column-head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.8rem;
  line-height: 1;
}

.returns-board-column-head small {
  max-width: 112px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.returns-board-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  padding: 10px;
}

.returns-board-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.055);
}

.returns-board-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #b7791f;
}

.returns-board-card.is-closed::before {
  background: #8f8a82;
}

.returns-board-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.returns-board-card-top a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.returns-board-card-top span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.returns-board-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.returns-board-product h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.returns-board-product p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.returns-board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.returns-board-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.055);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.returns-board-customer,
.returns-board-finance {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(24, 24, 24, 0.035);
}

.returns-board-customer span,
.returns-board-finance span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.returns-board-customer strong,
.returns-board-customer small,
.returns-board-finance strong,
.returns-board-finance small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.returns-board-customer small,
.returns-board-finance small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.returns-board-finance strong {
  color: var(--accent);
}

.returns-board-finance small {
  color: #92400e;
  font-weight: 900;
}

.returns-board-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.returns-board-actions form {
  margin: 0;
}

.returns-board-actions .button {
  width: 100%;
  justify-content: center;
}

.returns-board-empty {
  padding: 14px;
  border: 1px dashed rgba(24, 24, 24, 0.16);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.returns-list {
  display: grid;
  gap: 12px;
}

.return-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(180px, 0.55fr) minmax(190px, 0.58fr) minmax(128px, auto);
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
}

.return-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #b7791f;
}

.return-card.is-closed::before {
  background: #8f8a82;
}

.return-card-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.return-card-product h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.return-card-product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.return-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.return-card-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.return-card-customer,
.return-card-status {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(24, 24, 24, 0.06);
  border-radius: 8px;
  background: rgba(24, 24, 24, 0.035);
}

.return-card-customer span,
.return-card-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.return-card-customer strong,
.return-card-customer small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.return-card-customer small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.return-status-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(122, 8, 22, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.return-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.return-card-facts div {
  min-width: 0;
}

.return-card-facts strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.return-alert {
  display: block;
  margin-top: 10px;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 900;
}

.return-card-actions {
  display: grid;
  gap: 8px;
}

.return-card-actions form {
  margin: 0;
}

.return-card-actions .button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1220px) {
  .returns-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .returns-board {
    grid-auto-columns: minmax(286px, 36vw);
  }
}

@media (max-width: 760px) {
  .returns-metrics,
  .returns-priority-strip {
    grid-template-columns: 1fr;
  }

  .returns-search,
  .returns-search input,
  .returns-search .button {
    width: 100%;
  }

  .returns-board {
    grid-auto-columns: minmax(272px, 86vw);
  }

  .returns-board-column-head,
  .returns-board-list,
  .returns-board-card {
    padding: 10px;
  }

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

.fiscal-documents-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fiscal-documents-metrics .is-success {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), #fffdf9);
}

.fiscal-documents-metrics .is-warning {
  border-color: rgba(185, 28, 28, 0.24);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.08), #fffdf9);
}

.fiscal-documents-toolbar {
  align-items: flex-end;
}

.fiscal-documents-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.fiscal-documents-search input {
  width: min(360px, 100%);
}

.fiscal-documents-search select {
  width: min(220px, 100%);
}

.fiscal-status-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fiscal-status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.fiscal-status-tabs a.active,
.fiscal-status-tabs a:hover,
.fiscal-status-tabs a:focus-visible {
  border-color: rgba(122, 8, 22, 0.32);
  background: rgba(122, 8, 22, 0.08);
  color: var(--accent);
}

.fiscal-status-tabs strong {
  color: inherit;
}

.fiscal-documents-list {
  display: grid;
  gap: 12px;
}

.fiscal-document-card {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(420px, 1fr) minmax(142px, auto);
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
}

.fiscal-document-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #8f8a82;
}

.fiscal-status-authorized::before {
  background: #16a34a;
}

.fiscal-status-rejected::before,
.fiscal-status-error::before {
  background: #b91c1c;
}

.fiscal-status-configuration_pending::before,
.fiscal-status-pending::before {
  background: #b7791f;
}

.fiscal-document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fiscal-document-main h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.fiscal-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fiscal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fiscal-status-authorized .fiscal-status-pill {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

.fiscal-status-rejected .fiscal-status-pill,
.fiscal-status-error .fiscal-status-pill {
  background: rgba(185, 28, 28, 0.1);
  color: #991b1b;
}

.fiscal-status-configuration_pending .fiscal-status-pill,
.fiscal-status-pending .fiscal-status-pill {
  background: rgba(183, 121, 31, 0.12);
  color: #92400e;
}

.fiscal-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.fiscal-context-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.fiscal-document-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.fiscal-document-numbers {
  display: grid;
  grid-template-columns: minmax(74px, 0.72fr) minmax(82px, 0.82fr) minmax(130px, 1.25fr);
  gap: 8px;
}

.fiscal-document-numbers div,
.fiscal-document-key {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(24, 24, 24, 0.06);
  border-radius: 8px;
  background: rgba(24, 24, 24, 0.035);
}

.fiscal-document-numbers div {
  display: grid;
  align-content: center;
  min-height: 62px;
}

.fiscal-document-total {
  border-color: rgba(122, 8, 22, 0.16) !important;
  background: rgba(122, 8, 22, 0.055) !important;
}

.fiscal-document-numbers span,
.fiscal-document-key span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fiscal-document-numbers strong,
.fiscal-document-key strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.15;
}

.fiscal-document-key strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.fiscal-document-total strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.fiscal-document-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.fiscal-document-meta small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fiscal-document-actions {
  display: grid;
  gap: 8px;
  min-width: 126px;
}

.fiscal-document-actions form {
  margin: 0;
}

.fiscal-document-actions .button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1180px) {
  .fiscal-documents-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fiscal-document-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

@media (max-width: 720px) {
  .fiscal-documents-metrics,
  .fiscal-document-numbers {
    grid-template-columns: 1fr;
  }

  .fiscal-documents-search,
  .fiscal-documents-search input,
  .fiscal-documents-search select,
  .fiscal-documents-search .button {
    width: 100%;
  }

  .fiscal-document-card {
    padding: 12px;
  }

  .fiscal-document-heading,
  .fiscal-context-row {
    align-items: stretch;
  }

  .fiscal-status-pill {
    display: none;
  }

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

/* Wider working area across storefront and management pages. */
.topbar {
  padding-inline: var(--layout-gutter);
}

:where(
  .hero,
  .campaign-band,
  .quick-links,
  .promotion-visibility-strip,
  .promotion-landing-hero,
  .promotion-landing-tags,
  .section,
  .showcase-section,
  .seller-strip,
  .page-head,
  .decision-grid,
  .management-hero,
  .management-flow,
  .commercial-command-center,
  .dashboard-section-grid,
  .dashboard-order-grid,
  .dashboard-wide-panel,
  .dashboard-empty,
  .demand-command-panel,
  .promotion-command,
  .promotion-clean-shell,
  .promotion-rules-shell,
  .sync-command-hero,
  .contingency-kpis,
  .pdv-cash-register-panel,
  .offline-pending-panel,
  .checkout-layout,
  .success,
  .form-panel,
  .metrics,
  .product-admin-metrics,
  .product-admin-section,
  .orders-admin-metrics,
  .orders-admin-section,
  .admin-grid,
  .pdv-shell,
  .offline-pdv-shell,
  .product-edit-layout,
  .company-edit-layout,
  .customer-form-layout,
  .order-detail-layout,
  .related-products,
  .product-detail,
  .premium-detail,
  .finance-form-shell,
  .tracking-mobile
) {
  width: min(var(--layout-max), calc(100vw - var(--layout-gutter) - var(--layout-gutter)));
  max-width: calc(100vw - var(--layout-gutter) - var(--layout-gutter));
}

:where(.import-layout, .import-head, .import-columns, .import-result-section, .customer-form-single) {
  width: min(var(--layout-narrow-max), calc(100vw - var(--layout-gutter) - var(--layout-gutter)));
  max-width: calc(100vw - var(--layout-gutter) - var(--layout-gutter));
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: var(--layout-gutter-mobile);
  }

  :where(
    .hero,
    .campaign-band,
    .quick-links,
    .promotion-visibility-strip,
    .promotion-landing-hero,
    .promotion-landing-tags,
    .section,
    .showcase-section,
    .seller-strip,
    .page-head,
    .decision-grid,
    .management-hero,
    .management-flow,
    .commercial-command-center,
    .dashboard-section-grid,
    .dashboard-order-grid,
    .dashboard-wide-panel,
    .dashboard-empty,
    .demand-command-panel,
    .promotion-command,
    .promotion-clean-shell,
    .promotion-rules-shell,
    .sync-command-hero,
    .contingency-kpis,
    .pdv-cash-register-panel,
    .offline-pending-panel,
    .checkout-layout,
    .success,
    .form-panel,
    .metrics,
    .product-admin-metrics,
    .product-admin-section,
    .orders-admin-metrics,
    .orders-admin-section,
    .admin-grid,
    .pdv-shell,
    .offline-pdv-shell,
    .product-edit-layout,
    .company-edit-layout,
    .customer-form-layout,
    .order-detail-layout,
    .related-products,
    .product-detail,
    .premium-detail,
    .finance-form-shell,
    .tracking-mobile,
    .import-layout,
    .import-head,
    .import-columns,
    .import-result-section,
    .customer-form-single
  ) {
    width: min(calc(100% - var(--layout-gutter-mobile) - var(--layout-gutter-mobile)), var(--layout-max));
    max-width: calc(100vw - var(--layout-gutter-mobile) - var(--layout-gutter-mobile));
  }
}

@media (min-width: 1024px) {
  :where(
    .hero,
    .campaign-band,
    .quick-links,
    .promotion-visibility-strip,
    .promotion-landing-hero,
    .promotion-landing-tags,
    .section,
    .showcase-section,
    .seller-strip,
    .page-head,
    .decision-grid,
    .management-hero,
    .management-flow,
    .commercial-command-center,
    .dashboard-section-grid,
    .dashboard-order-grid,
    .dashboard-wide-panel,
    .dashboard-empty,
    .demand-command-panel,
    .promotion-command,
    .promotion-clean-shell,
    .promotion-rules-shell,
    .sync-command-hero,
    .contingency-kpis,
    .pdv-cash-register-panel,
    .offline-pending-panel,
    .checkout-layout,
    .success,
    .form-panel,
    .metrics,
    .product-admin-metrics,
    .product-admin-section,
    .orders-admin-metrics,
    .orders-admin-section,
    .admin-grid,
    .pdv-shell,
    .offline-pdv-shell,
    .product-edit-layout,
    .company-edit-layout,
    .customer-form-layout,
    .order-detail-layout,
    .related-products,
    .product-detail,
    .premium-detail,
    .finance-form-shell,
    .tracking-mobile
  ) {
    width: calc(100vw - var(--layout-gutter) - var(--layout-gutter)) !important;
    max-width: none !important;
  }

  :where(.import-layout, .import-head, .import-columns, .import-result-section, .customer-form-single) {
    width: min(var(--layout-narrow-max), calc(100vw - var(--layout-gutter) - var(--layout-gutter))) !important;
    max-width: calc(100vw - var(--layout-gutter) - var(--layout-gutter)) !important;
  }
}

/* KPI cards: shared visual system for management indicators. */
:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  align-items: stretch;
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) > :is(div, a, article, span) {
  position: relative;
  min-width: 0;
  min-height: 98px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(122, 11, 26, 0.055), transparent 52%),
    #fff;
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.052);
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) > :is(div, a, article, span)::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(122, 11, 26, 0.36);
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) > :is(.is-success)::before {
  background: rgba(22, 163, 74, 0.48);
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) > :is(.is-warning, .danger)::before {
  background: rgba(208, 154, 22, 0.54);
}

:is(.returns-metrics, .fiscal-documents-metrics) > .is-success {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.08), #fff);
}

:is(.returns-metrics, .fiscal-documents-metrics) > .is-warning {
  border-color: rgba(183, 121, 31, 0.24);
  background: linear-gradient(145deg, rgba(183, 121, 31, 0.08), #fff);
}

.fiscal-documents-metrics > .is-warning {
  border-color: rgba(185, 28, 28, 0.24);
  background: linear-gradient(145deg, rgba(185, 28, 28, 0.08), #fff);
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) > :is(div, a, article) > span:first-child {
  min-width: 0;
  max-width: calc(100% - 18px);
  padding-right: 12px;
  color: #59616c;
  font-size: 10px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .import-summary,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) strong {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 24px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(
  .metrics,
  .product-admin-metrics,
  .orders-admin-metrics,
  .management-metrics,
  .commercial-kpis,
  .metric-grid.compact,
  .command-kpis,
  .promotion-command-kpis,
  .promotion-studio-summary,
  .parameters-summary-grid,
  .access-metrics,
  .returns-metrics,
  .returns-kpi-grid,
  .fiscal-documents-metrics,
  .contingency-kpis,
  .pdv-cash-register-kpis,
  .finance-form-summary,
  .company-status-summary,
  .tracking-summary
) small {
  min-width: 0;
  max-width: 100%;
  display: -webkit-box;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

:is(.commercial-kpis, .metric-grid.compact, .command-kpis) > a:hover {
  border-color: rgba(122, 11, 26, 0.24);
  box-shadow: 0 14px 30px rgba(11, 15, 20, 0.07);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  :is(
    .metrics,
    .product-admin-metrics,
    .orders-admin-metrics,
    .management-metrics,
    .commercial-kpis,
    .metric-grid.compact,
    .command-kpis,
    .promotion-command-kpis,
    .promotion-studio-summary,
    .parameters-summary-grid,
    .access-metrics,
    .returns-metrics,
    .returns-kpi-grid,
    .fiscal-documents-metrics,
    .contingency-kpis,
    .pdv-cash-register-kpis,
    .import-summary,
    .finance-form-summary,
    .company-status-summary,
    .tracking-summary
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  :is(
    .metrics,
    .product-admin-metrics,
    .orders-admin-metrics,
    .management-metrics,
    .commercial-kpis,
    .metric-grid.compact,
    .command-kpis,
    .promotion-command-kpis,
    .promotion-studio-summary,
    .parameters-summary-grid,
    .access-metrics,
    .returns-metrics,
    .returns-kpi-grid,
    .fiscal-documents-metrics,
    .contingency-kpis,
    .pdv-cash-register-kpis,
    .import-summary,
    .finance-form-summary,
    .company-status-summary,
    .tracking-summary
  ) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.inventory-head p {
  max-width: 760px;
}

.inventory-metrics strong {
  word-break: break-word;
}

.inventory-section .orders-toolbar {
  align-items: flex-start;
}

.inventory-table-panel table {
  min-width: 940px;
}

.inventory-table-panel td {
  vertical-align: top;
}

.inventory-table-panel td strong,
.inventory-table-panel td span,
.inventory-table-panel td small {
  display: block;
}

.inventory-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 24, 29, 0.12);
  background: rgba(22, 24, 29, 0.06);
  color: #23252b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-status-concluido {
  background: rgba(24, 128, 91, 0.12);
  color: #13704f;
}

.inventory-status-cancelado {
  background: rgba(132, 40, 45, 0.12);
  color: #84282d;
}

.inventory-progress {
  width: min(180px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.12);
}

.inventory-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b1020, #d5a33f);
}

.inventory-form {
  display: grid;
  gap: 22px;
}

.inventory-form-section {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(22, 24, 29, 0.1);
}

.inventory-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.inventory-checks {
  display: grid;
  gap: 12px;
}

.inventory-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.inventory-summary-strip div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 24, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.inventory-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-summary-strip strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.inventory-quick-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: end;
}

.inventory-quick-panel h2 {
  margin: 2px 0 0;
}

.inventory-scan-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(82px, 110px) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.inventory-scan-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inventory-scan-form input {
  width: 100%;
  min-width: 0;
}

.inventory-scan-form input[name="scan_quantity"] {
  font-weight: 900;
  text-align: center;
}

.inventory-camera-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.inventory-camera-actions .button {
  border-color: rgba(122, 16, 32, 0.18);
}

.inventory-camera-autosubmit {
  margin: 0;
  display: inline-flex !important;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 8px !important;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem !important;
  font-weight: 850;
  text-transform: none !important;
}

.inventory-camera-autosubmit input {
  width: auto;
}

.inventory-camera-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(22, 24, 29, 0.14);
  border-radius: 8px;
  background: #050505;
}

.inventory-camera-panel video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #050505;
}

.inventory-camera-panel span {
  display: block;
  padding: 10px 12px;
  background: rgba(11, 15, 20, 0.94);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.inventory-camera-panel[data-state="error"] span {
  background: #7a1020;
}

.inventory-camera-panel[data-state="success"] span {
  background: #0f5132;
}

.inventory-import-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: end;
}

.inventory-import-panel h2 {
  margin: 2px 0 6px;
}

.inventory-import-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.inventory-import-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.inventory-import-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inventory-import-form input,
.inventory-import-form select {
  width: 100%;
  min-width: 0;
}

.inventory-product-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 260px;
}

.inventory-product-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 70px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f1ed;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

.inventory-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-count-input,
.inventory-count-form input {
  max-width: 150px;
}

.inventory-count-input {
  font-weight: 900;
  text-align: center;
}

.inventory-row-divergent {
  background: rgba(123, 16, 32, 0.055);
}

.inventory-positive {
  color: #13704f;
}

.inventory-negative {
  color: #84282d;
}

.inventory-muted {
  color: var(--muted);
  font-weight: 800;
}

.inventory-count-actions,
.inventory-close-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.inventory-close-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.inventory-close-panel p {
  max-width: 760px;
}

@media (max-width: 860px) {
  .inventory-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-quick-panel,
  .inventory-scan-form,
  .inventory-import-panel,
  .inventory-import-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .inventory-close-panel {
    display: grid;
  }

  .inventory-close-actions,
  .inventory-count-actions {
    justify-content: stretch;
  }

  .inventory-close-actions form,
  .inventory-close-actions .button,
  .inventory-count-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .inventory-summary-strip {
    grid-template-columns: 1fr;
  }

  .inventory-table-panel {
    overflow: visible;
  }

  .inventory-table-panel table,
  .inventory-table-panel thead,
  .inventory-table-panel tbody,
  .inventory-table-panel tr,
  .inventory-table-panel td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .inventory-table-panel thead {
    display: none;
  }

  .inventory-table-panel tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 8px;
    background: #fff;
  }

  .inventory-table-panel td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
  }

  .inventory-table-panel td:last-child {
    border-bottom: 0;
  }

  .inventory-table-panel td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .inventory-product-cell {
    grid-template-columns: 50px minmax(0, 1fr);
    min-width: 0;
  }

  .inventory-product-thumb {
    width: 50px;
    height: 62px;
  }
}

@media print {
  .topbar,
  .hero-actions,
  .orders-toolbar,
  .inventory-close-panel,
  .inventory-count-actions,
  .floating-whatsapp,
  .admin-menu-shell {
    display: none !important;
  }

  .page-head,
  .section,
  .table-panel {
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .inventory-table-panel table {
    min-width: 0;
    font-size: 10px;
  }

  .inventory-product-thumb {
    display: none;
  }

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

.product-admin-metrics.sales-report-metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  align-items: stretch;
}

.product-admin-metrics.sales-report-metrics div {
  min-height: 120px;
  overflow: visible !important;
}

.product-admin-metrics.sales-report-metrics span:first-child {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.product-admin-metrics.sales-report-metrics strong {
  display: block;
  max-width: 100%;
  font-size: clamp(18px, 1.25vw, 22px) !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal;
}

@media (max-width: 760px) {
  .product-admin-metrics.sales-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 460px) {
  .product-admin-metrics.sales-report-metrics {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-admin-metrics.sales-report-metrics strong {
    font-size: 23px !important;
  }
}

.commercial-kpis.command-kpis,
.commercial-kpis,
.metric-grid.compact,
.command-health-grid,
.commercial-scope-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  align-items: stretch;
}

.commercial-kpis.command-kpis > :is(div, a),
.commercial-kpis > :is(div, a),
.metric-grid.compact > div,
.command-health-grid > div,
.commercial-scope-list > div,
.command-status-card {
  min-height: 112px;
  overflow: visible !important;
  align-content: start !important;
}

.commercial-kpis.command-kpis > :is(div, a) > span:first-child,
.commercial-kpis > :is(div, a) > span:first-child,
.metric-grid.compact > div > span:first-child,
.command-health-grid > div > span:first-child,
.commercial-scope-list > div > span:first-child,
.command-status-card > span:first-child {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.commercial-kpis.command-kpis strong,
.commercial-kpis strong,
.metric-grid.compact strong,
.command-health-grid strong,
.commercial-scope-list strong,
.command-status-card strong {
  display: block;
  max-width: 100%;
  font-size: clamp(18px, 1.25vw, 22px) !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal;
}

.command-status-card strong {
  font-size: clamp(24px, 2vw, 34px) !important;
}

@media (max-width: 760px) {
  .commercial-kpis.command-kpis,
  .commercial-kpis,
  .metric-grid.compact,
  .command-health-grid,
  .commercial-scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 460px) {
  .commercial-kpis.command-kpis,
  .commercial-kpis,
  .metric-grid.compact,
  .command-health-grid,
  .commercial-scope-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .commercial-kpis.command-kpis strong,
  .commercial-kpis strong,
  .metric-grid.compact strong,
  .command-health-grid strong,
  .commercial-scope-list strong {
    font-size: 23px !important;
  }
}

.dashboard-recent-orders article {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  overflow: hidden;
}

.dashboard-recent-orders article > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
  min-width: 0;
}

.dashboard-recent-orders article a,
.dashboard-recent-orders article span,
.dashboard-recent-orders article strong,
.dashboard-recent-orders article p,
.dashboard-recent-orders article b {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dashboard-recent-orders article a {
  display: block;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.dashboard-recent-orders article > div span {
  justify-self: end;
  white-space: nowrap;
}

.dashboard-recent-orders strong,
.dashboard-recent-orders p,
.dashboard-recent-orders b {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0;
}

.dashboard-recent-orders strong {
  line-height: 1.22;
}

.dashboard-recent-orders p {
  line-height: 1.3;
}

.dashboard-recent-orders b {
  justify-self: start;
  align-self: start !important;
  font-size: 16px !important;
  line-height: 1.15;
}

@media (max-width: 520px) {
  .dashboard-recent-orders article > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-recent-orders article > div span {
    justify-self: start;
    white-space: normal;
  }
}

.dashboard-order-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr) !important;
  align-items: start;
}

.dashboard-recent-orders {
  min-width: 0;
  width: 100%;
  overflow: visible !important;
}

.dashboard-recent-orders .recent-order-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  box-sizing: border-box;
  gap: 8px !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.recent-order-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.recent-order-number {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
  line-height: 1.2;
}

.recent-order-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px !important;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.recent-order-customer {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  line-height: 1.22;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.recent-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.recent-order-meta span {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.recent-order-meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: auto 0 auto 7px;
  border-radius: 999px;
  background: rgba(89, 97, 108, 0.48);
}

.recent-order-total {
  display: block;
  justify-self: start !important;
  max-width: 100%;
  color: var(--ink);
  font-size: 16px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .dashboard-order-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .recent-order-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .recent-order-date {
    white-space: normal;
  }
}

.dashboard-wide-panel > .dashboard-order-grid,
.dashboard-panel .dashboard-order-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 18px 0 0 !important;
  box-sizing: border-box;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr) !important;
}

.dashboard-panel .dashboard-order-grid > *,
.dashboard-panel .dashboard-status-list,
.dashboard-panel .dashboard-recent-orders {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.dashboard-panel .dashboard-status-list > a,
.dashboard-panel .dashboard-status-list > div,
.dashboard-panel .dashboard-recent-orders .recent-order-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .dashboard-wide-panel > .dashboard-order-grid,
  .dashboard-panel .dashboard-order-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Keep every management screen inside the workspace left by the sidebar. */
body.admin-layout-active .admin-sidebar-content :where(
  section,
  article,
  form,
  header,
  nav,
  div,
  fieldset,
  .admin-grid,
  .dashboard-section-grid,
  .dashboard-order-grid,
  .metric-grid,
  .product-grid,
  .form-grid,
  .platform-field-grid
) {
  min-width: 0;
}

body.admin-layout-active .admin-sidebar-content :where(
  .table-panel,
  .table-wrap,
  .label-product-table,
  .import-detail-table,
  .report-table-panel,
  .drilldown-table-panel
) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

body.admin-layout-active .admin-sidebar-content :where(
  img,
  svg,
  canvas,
  video
) {
  max-width: 100%;
}

@media (max-width: 760px) {
  body.admin-layout-active .admin-sidebar-content {
    padding-inline: var(--admin-workspace-gutter);
  }
}

@media print {
  body.admin-layout-active .admin-sidebar-content {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* Keeps the product sales ranking inside the workspace at every viewport. */
body.admin-layout-active .admin-sidebar-content .sales-products-table-panel {
  overflow: visible;
  overflow-x: visible;
}

body.admin-layout-active .admin-sidebar-content .sales-products-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

@media (max-width: 900px) {
  body.admin-layout-active .admin-sidebar-content .sales-products-table-panel {
    padding: 0;
    overflow: visible;
    overflow-x: visible;
  }

  body.admin-layout-active .admin-sidebar-content .sales-products-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
}

/* Compact, persistent title bar shared by every authenticated management screen. */
body.admin-layout-active .admin-sidebar-content > .page-head {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 66px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  margin-top: 0 !important;
  padding: 9px 12px !important;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  background: linear-gradient(90deg, #0b0f14, #21321d);
  color: white;
  box-shadow: 0 8px 18px rgba(11, 15, 20, 0.08);
}

body.admin-layout-active .admin-sidebar-content > .page-head > div:first-child {
  min-width: 180px;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

body.admin-layout-active .page-head h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
}

body.admin-layout-active .page-head .eyebrow {
  margin: 0;
  font-size: 9px;
  line-height: 1.1;
}

body.admin-layout-active .page-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-layout-active .page-head .hero-actions {
  min-width: 0;
  max-width: 62%;
  flex: 0 1 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body.admin-layout-active .page-head .hero-actions .button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 10px;
  white-space: nowrap;
}

body.admin-layout-active .admin-sidebar-content > .management-head::after {
  display: none;
}

body.admin-layout-active .page-head .eyebrow {
  color: var(--gold);
}

@media (max-width: 760px) {
  body.admin-layout-active .admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body.admin-layout-active .admin-sidebar-content > .page-head {
    top: 58px;
    min-height: 72px;
    display: grid;
    gap: 6px;
    padding: 8px 10px !important;
    border-radius: 0 0 6px 6px;
  }

  body.admin-layout-active .page-head h1 {
    font-size: 19px;
  }

  body.admin-layout-active .page-head p:not(.eyebrow) {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.admin-layout-active .page-head .hero-actions {
    width: 100%;
    max-width: 100%;
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
  }

  body.admin-layout-active .page-head .hero-actions .button {
    width: auto;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 9px;
  }
}

@media print {
  body.admin-layout-active .admin-sidebar-content > .page-head {
    position: static;
    box-shadow: none;
  }
}

/* Painel executivo: barra de filtros compacta e responsiva. */
.sales-filter-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11, 15, 20, 0.05);
}

.sales-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.sales-filter-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.sales-filter-toggle {
  display: none;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.14);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.sales-filter-toggle b {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.sales-filter-toggle[aria-expanded="true"] b {
  transform: rotate(225deg) translate(-2px, -1px);
}

.sales-filter-form {
  display: grid;
  grid-template-columns: minmax(330px, 1.25fr) minmax(330px, 1.15fr) minmax(250px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.sales-filter-form[hidden] {
  display: none !important;
}

.sales-period-control {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sales-period-control legend,
.sales-date-range > span,
.sales-filter-form label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.sales-period-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 42px;
  padding: 3px;
  background: #f1f2f3;
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 7px;
}

.sales-period-options label {
  display: grid;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.sales-period-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sales-period-options span {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 7px 8px;
  color: #5f6670;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
}

.sales-period-options input:checked + span {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(122, 11, 26, 0.2);
}

.sales-period-options input:focus-visible + span {
  outline: 3px solid rgba(122, 11, 26, 0.28);
  outline-offset: 1px;
}

.sales-date-range {
  min-width: 0;
}

.sales-date-range > div {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) auto minmax(125px, 1fr);
  gap: 8px;
  align-items: end;
}

.sales-date-range label,
.sales-commercial-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.sales-date-range i {
  align-self: center;
  padding-top: 15px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.sales-filter-form input[type="date"],
.sales-filter-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.14);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.sales-filter-form input[type="date"]:focus,
.sales-filter-form select:focus {
  border-color: rgba(122, 11, 26, 0.5);
  outline: 3px solid rgba(122, 11, 26, 0.12);
}

.sales-commercial-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.sales-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.sales-filter-actions .button {
  min-height: 42px;
  padding: 8px 13px;
  white-space: nowrap;
}

.sales-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(11, 15, 20, 0.08);
}

.sales-filter-summary span {
  display: inline-flex;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.sales-filter-summary b {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 1320px) {
  .sales-filter-form {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  }

  .sales-commercial-filters {
    grid-column: 1;
  }

  .sales-filter-actions {
    grid-column: 2;
    align-self: end;
  }
}

@media (max-width: 700px) {
  .sales-filter-shell {
    gap: 12px;
    padding: 13px;
  }

  .sales-filter-toggle {
    display: inline-flex;
  }

  .sales-filter-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(11, 15, 20, 0.08);
  }

  .sales-commercial-filters,
  .sales-filter-actions {
    grid-column: 1;
  }

  .sales-date-range > div,
  .sales-commercial-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-date-range i {
    display: none;
  }

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

  .sales-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }

  .sales-filter-actions .button {
    width: 100%;
  }

  .sales-filter-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media print {
  .sales-filter-toggle {
    display: none !important;
  }

  .sales-filter-form {
    display: none !important;
  }
}
