* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (max-width: 680px) {
  .os-checklist-grid,
  .os-fields-grid,
  .os-fields-grid.two,
  .os-total-grid,
  .os-form-section.two-columns,
  .os-view-grid {
    grid-template-columns: 1fr;
  }

  .os-colored-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px;
    margin-right: -2px;
    margin-left: -2px;
  }

  .os-colored-grid::-webkit-scrollbar {
    height: 5px;
  }

  .os-colored-grid::-webkit-scrollbar-track {
    background: rgba(18, 32, 51, .06);
    border-radius: 999px;
  }

  .os-colored-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 999px;
  }

  .os-kpi-card {
    flex: 0 0 min(72vw, 210px);
    min-height: 82px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .os-kpi-card strong {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .os-table {
    min-width: 760px;
  }

  .os-line-head,
  .os-line-row {
    min-width: 760px;
    grid-template-columns: 1.2fr 1fr 70px 100px 100px 100px 52px;
  }

  .os-scan-inline {
    grid-template-columns: 1fr;
  }

  .os-scan-panel .btn {
    min-height: 46px;
  }

  .os-stage-confirm-body {
    grid-template-columns: 1fr;
  }

  .os-modal-card,
  .os-view-card {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 18px);
    border-radius: 14px;
  }

  .os-list-toolbar,
  .os-actions-row,
  .os-panel-head {
    align-items: stretch;
  }

  .os-list-toolbar > *,
  .os-actions-row > *,
  .os-panel-head > * {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .purchase-nfe-key-panel,
  .purchase-nfe-key-actions {
    grid-template-columns: 1fr;
  }

  .purchase-nfe-key-actions .btn {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

:root {
  --ink: #102033;
  --muted: #5d6b7c;
  --soft: #f5fbff;
  --green: #29c15f;
  --green-dark: #138a43;
  --lime: #a7ff1f;
  --cyan: #18c9f5;
  --brand-primary: #29c15f;
  --brand-secondary: #18c9f5;
  --blue: #1667e8;
  --line: rgba(16, 32, 51, .09);
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 24px 70px rgba(16, 32, 51, .12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(41, 193, 95, .18), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(24, 201, 245, .18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 55%, #ffffff 100%);
  overflow-x: hidden;
}

.desktop-lite body {
  background: #f7fbff;
}

.desktop-lite body::before,
.desktop-lite .ambient {
  display: none;
}

.desktop-lite *,
.desktop-lite *::before,
.desktop-lite *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .08s !important;
  scroll-behavior: auto !important;
}

.desktop-lite .auth-card,
.desktop-lite .auth-brand,
.desktop-lite .topbar,
.desktop-lite .hero-card,
.desktop-lite .app-sidebar,
.desktop-lite .app-card,
.desktop-lite .sale-panel,
.desktop-lite .sale-summary,
.desktop-lite .product-item,
.desktop-lite .stock-item,
.desktop-lite .settings-panel,
.desktop-lite .settings-preview,
.desktop-lite .product-modal-card,
.desktop-lite .delete-confirm-card,
.desktop-lite .brand-dialog-card,
.desktop-lite .operator-drawer,
.desktop-lite .finance-hero,
.desktop-lite .finance-flow-panel,
.desktop-lite .finance-action-card,
.desktop-lite .finance-latest-panel,
.desktop-lite .market-hero,
.desktop-lite .market-panel,
.desktop-lite .market-item {
  box-shadow: 0 8px 24px rgba(16,32,51,.075) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.desktop-lite .app-card,
.desktop-lite .sale-panel,
.desktop-lite .product-item,
.desktop-lite .stock-item,
.desktop-lite .finance-action-card,
.desktop-lite .market-panel {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.desktop-lite #contentArea.app-view-enter,
.desktop-lite #contentArea.is-section-loading,
.desktop-lite .ui-pop-in,
.desktop-lite .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,32,51,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16,32,51,.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
.sale-product-card,
.sale-payment-option,
.sale-qty-actions button,
.operator-badge,
.app-sidebar button {
  touch-action: manipulation;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(50px);
  opacity: .34;
  z-index: -2;
  animation: floatGlow 8s ease-in-out infinite;
}

.ambient-green {
  left: -120px;
  top: 90px;
  background: var(--green);
}

.ambient-blue {
  right: -120px;
  top: 30px;
  background: var(--cyan);
  animation-delay: -3s;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(16,32,51,.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 178px;
  filter: drop-shadow(0 0 12px rgba(41,193,95,.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #415066;
  font-size: 14px;
  font-weight: 900;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--green-dark);
}

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

.login-link {
  color: #415066;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(16,32,51,.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.btn::before,
.product-window::before,
.screen-card::before,
.price-card::before,
.metric-card::before {
  display: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(41,193,95,.18);
}

.btn:active,
.app-sidebar button:active,
.operator-badge:active,
.product-modal-close:active {
  transform: translateY(1px) scale(.98);
}

.btn-primary {
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 64%, white));
}

.btn-light {
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border-color: rgba(16,32,51,.08);
}

.btn-warning {
  color: #4a2d04;
  background: linear-gradient(135deg, #ffc857, #ff9f1c);
  border-color: rgba(255,159,28,.28);
}

.btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #ff5a5f, #dc2626);
  border-color: rgba(220,38,38,.28);
}

.approval-actions .btn-warning,
.delete-confirm-actions .btn-warning {
  color: #4a2d04;
  background: linear-gradient(135deg, #ffc857, #ff9f1c);
  border-color: rgba(255,159,28,.36);
  box-shadow: 0 16px 32px rgba(255,159,28,.18);
}

.approval-actions .btn-danger,
.delete-confirm-actions .btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #ff5a5f, #dc2626);
  border-color: rgba(220,38,38,.36);
  box-shadow: 0 16px 32px rgba(220,38,38,.18);
}

.btn-large {
  min-height: 54px;
  padding: 0 28px;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 34px;
  padding: 58px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  color: #116935;
  background: rgba(41,193,95,.12);
  border: 1px solid rgba(41,193,95,.22);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.module-copy h2,
.split-copy h2,
.info-copy h2,
.report-copy h2,
.cash-copy h2,
.premium-copy h2,
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5.7vw, 74px);
  line-height: 1.01;
  letter-spacing: 0;
}

.hero p,
.module-copy p,
.split-copy p,
.info-copy p,
.report-copy p,
.cash-copy p,
.premium-copy p {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  display: block;
  margin-top: 18px;
  color: #728095;
  font-weight: 800;
}

.hero-product {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.product-window {
  position: relative;
  overflow: hidden;
  width: min(100%, 680px);
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 18%, rgba(167,255,31,.24), transparent 32%),
    radial-gradient(circle at 74% 20%, rgba(24,201,245,.22), transparent 36%),
    rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  animation: softFloat 5.5s ease-in-out infinite;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.07);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8af35f;
}

.window-bar span:nth-child(2) {
  background: #34d6f7;
}

.window-bar span:nth-child(3) {
  background: #f5b728;
}

.window-bar strong {
  margin-left: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
  margin-top: 18px;
}

.product-list,
.checkout-card {
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

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

.product-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.06);
  font-weight: 900;
}

.checkout-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
}

.checkout-card img {
  width: 76px;
  border-radius: 22px;
  filter: drop-shadow(0 0 16px rgba(41,193,95,.28));
}

.checkout-card span {
  color: var(--muted);
  font-weight: 900;
}

.checkout-card strong {
  font-size: 34px;
}

.checkout-card button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, #8af35f, #34d6f7);
  cursor: pointer;
  font-weight: 900;
}

.hero-floating {
  position: absolute;
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 42px rgba(16,32,51,.13);
  animation: softFloat 4.8s ease-in-out infinite;
}

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

.hero-floating span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.hero-floating.one {
  top: 56px;
  right: 14px;
}

.hero-floating.two {
  left: 8px;
  bottom: 72px;
  animation-delay: -2s;
}

.feature-strip,
.info-section,
.cash-section,
.premium-section {
  padding: 92px 0;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 45px rgba(16,32,51,.08);
}

.module-tab {
  min-height: 50px;
  border: 0;
  border-radius: 20px;
  color: #415066;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}

.module-tab:hover {
  transform: translateY(-1px);
  background: rgba(41,193,95,.08);
}

.module-tab.active {
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.92), rgba(52,214,247,.88));
  box-shadow: 0 14px 30px rgba(41,193,95,.16);
}

.module-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 12%, rgba(41,193,95,.16), transparent 36%),
    radial-gradient(circle at 82% 16%, rgba(24,201,245,.16), transparent 36%),
    rgba(255,255,255,.70);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

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

.preview-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.07);
  font-weight: 900;
}

.preview-line.active {
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.58), rgba(52,214,247,.48));
}

.split-section,
.info-grid,
.cash-grid,
.premium-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 36px;
  padding: 92px 0;
}

.platforms,
.segment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.platforms span,
.segment-tags span {
  padding: 10px 15px;
  border-radius: 999px;
  color: #415066;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  font-weight: 900;
}

.device-stack {
  position: relative;
  min-height: 380px;
}

.device {
  position: absolute;
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.desktop {
  inset: 20px 30px 60px 0;
  padding: 28px;
}

.desktop div {
  height: 170px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(41,193,95,.72), rgba(24,201,245,.68)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 12px, transparent 12px 24px);
  margin-bottom: 18px;
}

.device strong {
  display: block;
  font-size: 26px;
}

.device span {
  color: var(--muted);
  font-weight: 900;
}

.phone {
  right: 0;
  bottom: 0;
  width: 190px;
  padding: 28px 20px;
  text-align: center;
  animation: softFloat 4.8s ease-in-out infinite;
}

.info-section,
.cash-section,
.premium-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(41,193,95,.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(24,201,245,.13), transparent 32%),
    #f8fcff;
}

.screen-card,
.cash-panel,
.price-card,
.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.screen-card,
.cash-panel {
  padding: 26px;
}

.stock-row {
  display: grid;
  grid-template-columns: 110px 1fr 58px;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-weight: 900;
}

.stock-row + .stock-row {
  border-top: 1px solid rgba(16,32,51,.07);
}

.stock-row i,
.metric-card i {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8af35f, #34d6f7);
  width: var(--bar);
  box-shadow: 0 0 18px rgba(24,201,245,.22);
}

.stock-row.warning i {
  background: linear-gradient(90deg, #f5b728, #8af35f);
}

.stock-alert {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  color: #7c4a03;
  background: rgba(245,183,40,.15);
  border: 1px solid rgba(245,183,40,.24);
  font-weight: 900;
}

.info-copy ul {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-copy li {
  position: relative;
  padding-left: 28px;
  color: #415066;
  font-weight: 900;
}

.info-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.report-section {
  padding: 92px 0;
}

.report-copy {
  max-width: 780px;
}

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

.metric-card {
  min-height: 210px;
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 34px;
}

.metric-card i {
  width: 76%;
  margin-top: 42px;
}

.metric-card:nth-child(2) i {
  width: 58%;
}

.metric-card:nth-child(3) i {
  width: 88%;
}

.cash-panel {
  display: grid;
  gap: 12px;
}

.cash-panel div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
  font-weight: 900;
}

.cash-panel .cash-total {
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.62), rgba(52,214,247,.56));
}

.segments {
  padding: 92px 0;
}

.center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.segment-tags {
  justify-content: center;
}

.premium-copy small {
  display: block;
  margin-top: 18px;
  color: #728095;
  font-weight: 900;
}

.price-card {
  padding: 34px;
  text-align: center;
}

.price-card span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(44px, 6vw, 68px);
}

.price-card small {
  display: block;
  margin: 4px 0 24px;
  color: var(--muted);
  font-weight: 900;
}

.footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #728095;
  font-weight: 900;
}

.footer img {
  width: 146px;
  filter: drop-shadow(0 0 10px rgba(41,193,95,.18));
}

.modal-open {
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 18, 32, .48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: backdropIn .18s ease both;
}

.auth-backdrop[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(100%, 460px);
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(41,193,95,.16), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(24,201,245,.16), transparent 34%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(5, 18, 32, .28);
  animation: modalIn .24s ease both;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #415066;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-weight: 900;
}

.auth-logo {
  display: block;
  width: 190px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 12px rgba(41,193,95,.18));
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(16,32,51,.05);
}

.auth-tab {
  min-height: 44px;
  border-radius: 16px;
  color: #415066;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-tab:hover {
  color: var(--green-dark);
  background: rgba(255,255,255,.56);
}

.auth-tab:active {
  transform: scale(.98);
}

.auth-tab.active {
  color: #052e16;
  background: linear-gradient(135deg, #8af35f, #34d6f7);
  box-shadow: 0 12px 28px rgba(41,193,95,.18);
}

.auth-form {
  display: none;
  margin-top: 20px;
}

.auth-form.active {
  display: grid;
  gap: 14px;
  animation: appViewEnter .28s ease both;
}

.auth-form h2 {
  font-size: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form input:focus {
  border-color: rgba(41,193,95,.55);
  box-shadow: 0 0 0 4px rgba(41,193,95,.12);
}

.remember-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-height: auto;
  padding: 12px;
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(41,193,95,.10), rgba(24,201,245,.10));
  border: 1px solid rgba(16,32,51,.08);
  cursor: pointer;
}

.remember-line input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.remember-line strong,
.remember-line small {
  display: block;
}

.remember-line strong {
  font-size: 14px;
  font-weight: 900;
}

.remember-line small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.turnstile-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(41,193,95,.08), rgba(24,201,245,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.turnstile-widget {
  min-height: 65px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.turnstile-widget:empty::before {
  content: "Cloudflare Turnstile";
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(16,32,51,.16);
  border-radius: 14px;
  color: #415066;
  background: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 900;
}

.turnstile-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.turnstile-card p[data-type="success"] {
  color: var(--green-dark);
}

.turnstile-card p[data-type="error"] {
  color: #dc2626;
}

.auth-form small,
.auth-message {
  color: #728095;
  font-weight: 800;
  line-height: 1.5;
}

.auth-message {
  min-height: 22px;
  margin-top: 14px;
}

.auth-message[data-type="success"] {
  color: #138a43;
}

.auth-message[data-type="error"] {
  color: #dc2626;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
}

.auth-card {
  width: min(100%, 980px);
  min-height: 640px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.auth-single-card {
  min-height: 540px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 12%, rgba(41,193,95,.18), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(24,201,245,.18), transparent 36%),
    rgba(255,255,255,.48);
}

.auth-brand img {
  width: min(100%, 340px);
  margin-bottom: 22px;
}

.auth-brand h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.auth-brand p,
.switch-text {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.switch-text span {
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.switch-text a {
  color: var(--green-dark);
  font-weight: 900;
}

.auth-card > .auth-tabs,
.auth-card > .auth-form {
  align-self: center;
}

.auth-card > .auth-tabs {
  grid-column: 2;
  align-self: end;
}

.auth-card > .auth-form {
  grid-column: 2;
  align-self: start;
}

.maintenance-login-card {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,248,223,.92), rgba(232,252,244,.9)),
    rgba(255,255,255,.86);
  border: 1px solid rgba(255,159,28,.32);
  box-shadow: 0 18px 36px rgba(16,32,51,.08);
}

.maintenance-login-card h3 {
  margin: 0;
  font-size: 20px;
}

.maintenance-login-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.maintenance-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
}

.maintenance-countdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-countdown strong {
  font-size: 24px;
  color: var(--ink);
}

.maintenance-dev-access {
  display: grid;
  gap: 10px;
}

.maintenance-dev-access .btn {
  width: 100%;
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 32%),
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 32%),
    #f5fbff;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px;
}

.panel-page {
  display: none;
  min-height: 100vh;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px;
}

.panel-page.active {
  display: grid;
  animation: appShellIn .36s ease both;
}

.app-sidebar,
.app-content,
.app-card,
.security-card {
  border: 1px solid rgba(16,32,51,.08);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 30px;
  padding: 22px;
}

.app-sidebar img {
  width: 190px;
}

.app-sidebar h3 {
  font-size: 20px;
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
}

.app-sidebar button {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border-radius: 16px;
  color: #415066;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0 14px;
  font-weight: 900;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.app-sidebar button:hover {
  color: var(--green-dark);
  background: color-mix(in srgb, var(--brand-primary) 9%, white);
  transform: translateX(3px);
}

.app-sidebar button.active {
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 64%, white));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.logout-btn {
  margin-top: auto;
}

.premium-link {
  display: none;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  color: #052e16;
  background: linear-gradient(135deg, #ffc857, #ff9f1c);
  box-shadow: 0 14px 28px rgba(255,159,28,.18);
  font-weight: 900;
  align-items: center;
}

.premium-link.active {
  color: #052e16;
  background: linear-gradient(135deg, #ffc857, #29d77e);
}

.app-content {
  position: relative;
  border-radius: 30px;
  padding: 30px;
}

.app-section-loader {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(245,251,255,.78), rgba(234,255,249,.82)),
    rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}

.app-section-loader.is-active {
  opacity: 1;
  animation: sectionLoaderIn .16s ease both;
}

.app-section-loader.is-leaving {
  animation: sectionLoaderOut .18s ease both;
}

.app-section-loader-card {
  width: min(100%, 280px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 52px rgba(16,32,51,.12);
}

.app-section-loader-card strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.app-section-loader-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-loader-mark {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41,193,95,.16), rgba(24,201,245,.18));
}

.app-loader-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 4px solid rgba(41,193,95,.18);
  border-top-color: var(--brand-primary);
  border-right-color: var(--brand-secondary);
  animation: appLoaderSpin .72s linear infinite;
}

.app-loader-mark i,
.app-loader-mark b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--brand-primary);
}

.app-loader-mark i {
  width: 22px;
  height: 8px;
  transform: translateY(8px);
}

.app-loader-mark b {
  width: 8px;
  height: 24px;
  transform: translate(12px, -2px) rotate(38deg);
  background: var(--brand-secondary);
}

#contentArea.is-section-loading {
  filter: saturate(.96);
}

.operator-badge {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top));
  right: calc(22px + env(safe-area-inset-right));
  z-index: 140;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: #052e16;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, filter .2s ease;
}

.panel-page:has(.operator-badge:not([hidden])) .app-content {
  scroll-padding-top: 96px;
}

.panel-page:has(.operator-badge:not([hidden])) #contentArea > h2:first-child,
.panel-page:has(.operator-badge:not([hidden])) #contentArea > p:first-child,
.panel-page:has(.operator-badge:not([hidden])) #contentArea > .section-title-row:first-child,
.panel-page:has(.operator-badge:not([hidden])) #contentArea > .cell-dashboard-hero:first-child {
  padding-right: 82px;
}

.operator-badge[hidden] {
  display: none;
}

.operator-badge:hover {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 12px 20px rgba(41,193,95,.20));
}

.operator-badge span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 64%, white));
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(16,32,51,.14);
  font-weight: 900;
  font-size: 20px;
}

.operator-badge img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(16,32,51,.14);
}

.operator-badge span[hidden],
.operator-badge img[hidden] {
  display: none !important;
}

.operator-lock {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 680px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
}

.operator-lock span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.operator-lock h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.operator-lock p {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.app-header h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 62px);
}

.app-header p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.security-card {
  min-width: 220px;
  border-radius: 22px;
  padding: 18px;
}

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

.security-card span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.app-card {
  min-height: 210px;
  border-radius: 24px;
  padding: 22px;
}

.app-card span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.app-card strong {
  display: block;
  margin-top: 18px;
  font-size: 28px;
}

.app-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 750;
}

.cell-dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(41,193,95,.15), rgba(24,201,245,.16)),
    rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.cell-dashboard-hero span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cell-dashboard-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.cell-kpi-grid,
.cell-workspace-grid,
.cell-setup-grid,
.cell-flow-grid,
.cell-report-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.cell-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cell-workspace-grid,
.cell-setup-grid,
.cell-flow-grid,
.cell-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cell-module-card,
.cell-setup-card,
.cell-os-board article {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 16px 38px rgba(16,32,51,.07);
}

.cell-module-card {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cell-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(41,193,95,.28);
  box-shadow: 0 20px 46px rgba(16,32,51,.10);
}

.cell-module-card span,
.cell-setup-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(116,224,204,.22);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 12px;
}

.cell-module-card strong,
.cell-setup-card strong,
.cell-os-board strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.cell-module-card p,
.cell-setup-card p,
.cell-os-board p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.cell-os-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.cell-os-board span {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.os-actions-row,
.os-panel-head,
.os-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.os-summary-grid {
  margin: 14px 0;
}

.os-dashboard-panel,
.os-list-panel {
  margin-top: 16px;
}

.os-scan-panel {
  margin-top: 16px;
  border-color: rgba(41, 193, 95, .24);
  background:
    linear-gradient(135deg, rgba(41, 193, 95, .12), rgba(24, 201, 245, .1)),
    rgba(255, 255, 255, .9);
}

.os-scan-panel h3 {
  margin: 0;
}

.os-scan-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.os-scan-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.dental-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(41,193,95,.14), rgba(24,201,245,.16)),
    rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.dental-hero span,
.dental-agenda-card span,
.dental-patient-card span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.dental-hero h2 {
  margin-top: 6px;
}

.dental-hero p,
.dental-list-panel p,
.dental-today-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.dental-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dental-form-panel,
.dental-list-panel,
.dental-today-panel {
  margin-top: 18px;
}

.dental-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dental-form label {
  margin-top: 0;
}

.dental-form input,
.dental-form select,
.dental-form textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  font: inherit;
  font-weight: 800;
}

.dental-form textarea {
  min-height: 92px;
  padding: 14px;
  resize: vertical;
}

.dental-field-wide {
  grid-column: span 2;
}

.dental-form .btn {
  align-self: end;
  min-height: 48px;
  margin-top: 0;
}

.dental-agenda-list,
.dental-patient-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dental-agenda-card,
.dental-patient-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(247,251,255,.94);
  border: 1px solid rgba(16,32,51,.08);
}

.dental-agenda-card strong,
.dental-patient-card strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.dental-agenda-card small,
.dental-patient-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.dental-agenda-actions,
.dental-patient-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dental-agenda-actions select {
  min-height: 44px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .dental-hero,
  .dental-agenda-card,
  .dental-patient-card {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
  }

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

  .dental-field-wide {
    grid-column: 1 / -1;
  }

  .dental-agenda-actions,
  .dental-patient-actions {
    justify-content: stretch;
  }

  .dental-agenda-actions .btn,
  .dental-patient-actions .btn,
  .dental-agenda-actions select {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .dental-kpi-grid,
  .dental-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.os-scan-inline input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(18, 32, 51, .12);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
  background: #fff;
}

.os-stage-feedback {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(18, 32, 51, .08);
  background: rgba(255, 255, 255, .82);
  color: #122033;
}

.os-stage-feedback strong {
  font-size: 18px;
}

.os-stage-feedback span {
  color: var(--muted);
  font-weight: 800;
}

.os-stage-feedback.success {
  border-color: rgba(8, 168, 91, .34);
  background: linear-gradient(135deg, rgba(41, 193, 95, .18), rgba(24, 201, 245, .14));
}

.os-stage-feedback.error {
  border-color: rgba(243, 94, 79, .4);
  background: rgba(243, 94, 79, .12);
}

.os-stage-feedback.warning {
  border-color: rgba(245, 185, 10, .5);
  background: rgba(245, 185, 10, .14);
}

.os-inline-action {
  min-height: 38px;
  padding: 8px 12px;
}

.os-stage-confirm-card {
  width: min(100%, 680px);
}

.os-stage-confirm-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.os-stage-confirm-body article,
.os-stage-task {
  border: 1px solid rgba(18, 32, 51, .1);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfd;
}

.os-stage-confirm-body span,
.os-stage-task span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 850;
}

.os-stage-confirm-body strong,
.os-stage-task strong {
  color: #122033;
  font-weight: 950;
}

.os-stage-task {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(41,193,95,.16), rgba(24,201,245,.12));
}

.os-colored-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.os-kpi-card {
  border: 0;
  border-radius: 8px;
  min-height: 108px;
  padding: 18px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(18, 32, 51, .12);
}

.os-kpi-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 12px;
}

.os-kpi-card span {
  font-weight: 800;
}

.os-kpi-card.danger { background: #f45f50; }
.os-kpi-card.purple { background: #744096; }
.os-kpi-card.blue { background: #0b7fbd; }
.os-kpi-card.green { background: #08a85b; }
.os-kpi-card.gray { background: #737d84; }
.os-kpi-card.red { background: #a61628; }
.os-kpi-card.orange { background: #ff7a14; }
.os-kpi-card.yellow { background: #f5b90a; color: #122033; }

.os-search {
  min-width: min(420px, 100%);
}

.os-table-wrap {
  overflow: auto;
  border: 1px solid rgba(18, 32, 51, .1);
  border-radius: 8px;
  margin-top: 14px;
}

.os-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.os-table th,
.os-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 32, 51, .08);
  text-align: left;
  vertical-align: middle;
}

.os-table th {
  color: #122033;
  font-weight: 900;
  background: #f8fbfd;
}

.os-table tbody tr:nth-child(odd) {
  background: #f3f5f7;
}

.os-link {
  border: 0;
  background: transparent;
  color: #0b5f8f;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.os-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: #050b12;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.os-row-type {
  display: block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(41, 193, 95, .14);
  color: #087545;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.os-table-row.is-budget {
  background: linear-gradient(135deg, rgba(255, 185, 10, .18), rgba(100, 216, 232, .12));
}

.os-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.os-icon-btn.view { background: #0db7e8; }
.os-icon-btn.edit { background: #f59d13; }
.os-icon-btn.approve {
  width: 42px;
  background: linear-gradient(135deg, #29c15f, #18c9f5);
  color: #06131f;
}
.os-icon-btn.qr {
  width: 42px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #06131f;
}
.os-icon-btn.label {
  width: 42px;
  background: linear-gradient(135deg, #b7f7b4, #64d8e8);
  color: #06131f;
}
.os-icon-btn.delete { background: #f35e4f; }

.os-status-select {
  width: 136px;
  min-width: 136px;
  height: 34px;
  border: 1px solid rgba(8, 168, 91, .35);
  border-radius: 7px;
  color: #07351f;
  background: linear-gradient(135deg, rgba(41, 193, 95, .24), rgba(24, 201, 245, .18));
  font-weight: 900;
  padding: 0 8px;
  cursor: pointer;
}

.os-modal-card {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
}

.os-form-grid {
  display: grid;
  gap: 16px;
}

.os-form-section {
  border: 1px solid rgba(18, 32, 51, .1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .78);
}

.os-form-section h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.os-form-section p,
.os-form-section small {
  color: var(--muted);
  font-weight: 700;
}

.os-fields-grid,
.os-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.os-fields-grid.two,
.os-form-section.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.os-form-section label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.os-form-section input,
.os-form-section select,
.os-form-section textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(18, 32, 51, .14);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.os-form-section textarea {
  min-height: 108px;
  resize: vertical;
}

.os-check-inline {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.os-check-inline input {
  width: auto;
  min-height: auto;
}

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

.os-check-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(18, 32, 51, .1);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.os-check-es {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.os-check-es label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

.os-check-es select {
  min-height: 38px;
  padding: 6px 8px;
}

.os-document-form-card .os-form-section {
  border-color: rgba(18, 32, 51, .08);
  box-shadow: 0 10px 26px rgba(18, 32, 51, .05);
}

.os-check-item-fn {
  gap: 10px;
}

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

.os-check-fn-field {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.os-check-fn-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.os-check-fn-option {
  min-height: 34px;
  border: 1px solid rgba(18, 32, 51, .12);
  border-radius: 8px;
  background: #fff;
  color: #122033;
  display: grid !important;
  place-items: center;
  padding: 0;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.os-check-fn-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-check-fn-option:has(input:checked) {
  border-color: rgba(55, 214, 120, .55);
  background: linear-gradient(135deg, rgba(191, 255, 181, .78), rgba(80, 211, 232, .32));
  box-shadow: 0 8px 18px rgba(64, 203, 181, .18);
}

.os-check-fn-option.muted:has(input:checked) {
  border-color: rgba(93, 110, 130, .24);
  background: #edf4f8;
  color: #5d6e82;
}

.os-line-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
}

.os-line-head,
.os-line-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr .55fr .8fr .8fr .8fr 60px;
  gap: 8px;
  min-width: 920px;
  align-items: center;
}

.os-line-product-cell {
  display: grid;
  gap: 6px;
}

.os-product-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-product-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(105, 225, 199, .12);
  color: #122033;
  font-size: 12px;
  font-weight: 900;
}

.os-product-store-box {
  display: grid;
  gap: 7px;
}

.os-product-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.os-product-search-results {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 3px;
}

.os-product-result {
  width: 100%;
  border: 1px solid rgba(18, 32, 51, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  padding: 8px 10px;
  color: #122033;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.os-product-result strong,
.os-product-result span {
  display: block;
}

.os-product-result span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.os-product-result.is-selected {
  border-color: rgba(41, 193, 95, .36);
  background: linear-gradient(135deg, rgba(105, 225, 199, .22), rgba(24, 201, 245, .14));
}

.os-line-row.is-linked-product input[data-field="nome"] {
  color: #40516a;
  background: rgba(105, 225, 199, .1);
}

.os-line-head {
  font-weight: 900;
  color: #122033;
}

.os-line-body {
  display: grid;
  gap: 8px;
}

.os-attachments-current {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.os-attachments-current span {
  border-radius: 999px;
  background: rgba(105, 225, 199, .18);
  padding: 6px 10px;
  font-weight: 800;
}

.os-view-card {
  width: min(900px, calc(100vw - 28px));
}

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

.os-view-grid article,
.os-view-section {
  border: 1px solid rgba(18, 32, 51, .1);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.os-view-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.os-view-section {
  margin-top: 12px;
}

.os-view-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cell-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cell-feature-list span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(24,201,245,.12);
  color: #24344a;
  font-weight: 850;
}

.multi-unit-grid,
.transfer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.multi-unit-card,
.transfer-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 16px 38px rgba(16,32,51,.07);
}

.multi-unit-card.is-disabled {
  opacity: .62;
}

.multi-unit-card span,
.multi-unit-card small,
.transfer-item span,
.transfer-item small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.multi-unit-card > div:first-child > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.multi-unit-card strong,
.transfer-item strong {
  display: block;
  margin-top: 4px;
}

.multi-unit-operators {
  display: grid;
  gap: 4px;
}

.multi-unit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.unit-view-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
}

.unit-view-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.unit-view-bar select {
  min-height: 38px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 850;
}

.unit-view-bar > span {
  color: var(--muted);
  font-weight: 900;
}

.unit-view-bar > strong {
  color: var(--ink);
}

.section-title-row.compact {
  margin-bottom: 12px;
}

.section-title-row.compact h3 {
  margin: 0;
  font-size: 20px;
}

.section-title-row.compact > strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #0f6b38;
  background: rgba(41,215,126,.14);
  border: 1px solid rgba(41,215,126,.26);
  white-space: nowrap;
}

.multi-stock-panel,
.multi-stock-locator {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 16px 38px rgba(16,32,51,.07);
}

.multi-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.multi-stock-card {
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,255,248,.84));
  border: 1px solid rgba(124,235,213,.28);
}

.multi-stock-card span,
.multi-stock-card p,
.multi-stock-card em,
.stock-location-card span,
.stock-location-card small {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.multi-stock-card span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.multi-stock-card strong {
  display: block;
  margin-top: 4px;
}

.multi-stock-card div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}

.multi-stock-card b {
  color: var(--ink);
  font-size: 26px;
}

.multi-stock-card p {
  margin-top: 8px;
  font-size: 13px;
}

.multi-stock-card em {
  margin-top: 8px;
  color: var(--cyan-dark);
  font-style: normal;
}

.multi-stock-locator {
  display: grid;
  gap: 14px;
}

.multi-stock-locator h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.multi-stock-locator p {
  color: var(--muted);
  font-weight: 800;
}

.multi-stock-locator label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.multi-stock-locator-results {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.stock-location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
}

.stock-location-units {
  display: grid;
  gap: 8px;
}

.stock-location-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: rgba(24,201,245,.08);
}

.stock-location-unit strong {
  min-width: 42px;
  text-align: right;
}

.import-unit-select {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.lens-builder-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.lens-builder-panel h3 {
  font-size: 24px;
}

.lens-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lens-builder-grid label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.lens-builder-grid input,
.lens-builder-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  outline: none;
  font-weight: 800;
}

.lens-builder-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.lens-builder-summary span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(41,193,95,.12);
  color: #143a2a;
  font-weight: 850;
}

.lens-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.lens-results-head strong {
  color: var(--ink);
  font-size: 18px;
}

.lens-results-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
  margin-top: 12px;
}

.lens-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, .9fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(245,251,255,.9);
  border: 1px solid rgba(16,32,51,.08);
}

.lens-result-card span,
.lens-result-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.lens-result-card > div > span:first-child {
  color: var(--green-dark);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.lens-result-card strong {
  display: block;
  margin-top: 4px;
}

.lens-range {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.lens-price {
  text-align: right;
}

.lens-price span {
  text-decoration: line-through;
}

.lens-price strong {
  color: var(--green-dark);
  font-size: 20px;
}

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

.section-title-row p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.settings-panel,
.settings-preview {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.settings-panel h3 {
  font-size: 24px;
}

.settings-panel label,
.settings-colors label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.settings-panel input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.settings-panel input[type="color"] {
  padding: 6px;
}

.settings-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-panel .btn {
  margin-top: 18px;
}

.settings-preview {
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}

.settings-preview > span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.settings-logo-preview {
  width: 180px;
  height: 105px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 34%),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--brand-secondary) 16%, transparent), transparent 34%),
    rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
}

.settings-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

.settings-preview strong {
  font-size: 24px;
}

.settings-preview p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.operator-admin-panel {
  margin-top: 18px;
}

.operator-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(180px, .7fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.operator-create-grid label,
.operator-row label,
.operator-login-form label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.operator-create-grid input,
.operator-create-grid select,
.operator-row input,
.operator-row select,
.operator-login-form input,
.operator-login-form select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.operator-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.operator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.operator-row strong,
.operator-row span {
  display: block;
}

.operator-row span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.operator-row > div:last-child {
  display: grid;
  grid-template-columns: 150px minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.operator-login-card {
  width: min(100%, 480px);
}

.operator-drawer {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 160;
  width: min(360px, calc(100% - 32px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 34%),
    rgba(255,255,255,.96);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 24px 70px rgba(5,18,32,.18);
  animation: drawerIn .24s ease both;
}

.operator-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.operator-drawer-head h3 {
  font-size: 20px;
}

.operator-drawer-head p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.operator-drawer-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16,32,51,.08);
}

.operator-section-label {
  color: #728095;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-menu-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 64%, white));
  border: 4px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 36px rgba(16,32,51,.14);
  font-size: 20px;
  font-weight: 900;
}

.operator-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-avatar-upload {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 64%, white));
  cursor: pointer;
  font-weight: 900;
}

.operator-avatar-upload input {
  display: none;
}

.operator-online-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.operator-online-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 64%, white), color-mix(in srgb, var(--brand-secondary) 60%, white));
  font-weight: 900;
}

.operator-online-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-online-avatar i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #ef4444;
}

.operator-online-row.is-online .operator-online-avatar i {
  background: #22c55e;
}

.operator-online-row strong,
.operator-online-row small {
  display: block;
}

.operator-online-row small {
  color: var(--muted);
  font-weight: 800;
}

.operator-drawer-actions {
  display: grid;
  gap: 10px;
}

.operator-drawer-actions button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.operator-drawer-actions button:hover {
  background: rgba(41,193,95,.08);
}

.operator-drawer-actions button > span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 62%, white), color-mix(in srgb, var(--brand-secondary) 58%, white));
  font-weight: 900;
}

.operator-drawer-actions strong,
.operator-drawer-actions small {
  display: block;
}

.operator-drawer-actions small {
  color: var(--muted);
  font-weight: 800;
}

.operator-login-form,
.operator-menu-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.operator-login-list {
  display: grid;
  gap: 10px;
}

.operator-login-option {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.operator-login-option:hover,
.operator-login-option.is-selected {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-primary) 36%, rgba(16,32,51,.08));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.operator-login-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 64%, white), color-mix(in srgb, var(--brand-secondary) 60%, white));
  border: 2px solid rgba(255,255,255,.92);
  font-weight: 900;
}

.operator-login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-login-option strong,
.operator-login-option small {
  display: block;
}

.operator-login-option small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form .remember-line,
.operator-login-form .remember-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
}

.auth-form .remember-line input,
.operator-login-form .remember-line input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 6px;
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.label-batch-card {
  max-width: 860px;
}

.print-format-card {
  max-width: 560px;
}

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

.print-format-option {
  position: relative;
  min-height: 118px;
  border: 2px solid rgba(8, 168, 91, .28);
  border-radius: 22px;
  padding: 18px 18px 16px;
  color: var(--text-main);
  text-align: left;
  background: linear-gradient(135deg, rgba(190,255,190,.78), rgba(78,214,232,.24));
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.print-format-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.print-format-option.is-selected {
  border-color: rgba(8, 168, 91, .72);
  background: linear-gradient(135deg, rgba(160,255,190,.9), rgba(78,214,232,.34));
  box-shadow: 0 22px 48px rgba(8, 168, 91, .18);
}

.print-format-option:hover,
.print-format-option:focus-visible {
  border-color: rgba(8, 168, 91, .58);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .14);
  transform: translateY(-1px);
  outline: none;
}

.print-format-option:active {
  transform: translateY(1px) scale(.99);
}

.print-format-option::after {
  content: "Selecionar";
  position: absolute;
  right: 14px;
  bottom: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #05201a;
  font-size: .72rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
}

.print-format-option em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  margin-bottom: 12px;
  color: #05201a;
  font-style: normal;
  font-size: .8rem;
  font-weight: 950;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(8, 168, 91, .18);
}

.print-format-option strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
}

.print-format-option span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 850;
  line-height: 1.25;
}

.print-format-select {
  display: block;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-weight: 900;
}

.print-format-select select {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border-radius: 16px;
  border: 1px solid rgba(8, 168, 91, .18);
  padding: 0 14px;
  color: var(--text-main);
  font-weight: 900;
  background: rgba(255,255,255,.94);
}

.print-settings-layout {
  align-items: start;
}

.print-settings-panel {
  max-width: 780px;
}

.print-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.print-settings-grid label {
  color: var(--text-muted);
  font-weight: 900;
}

.print-settings-grid input {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border-radius: 16px;
  border: 1px solid rgba(8, 168, 91, .18);
  padding: 0 14px;
  color: var(--text-main);
  font-weight: 900;
  background: rgba(255,255,255,.94);
}

.print-settings-grid input[readonly] {
  color: var(--text-muted);
  background: rgba(241, 245, 249, .92);
}

.receipt-preview-panel {
  max-width: 420px;
}

.receipt-preview {
  width: min(100%, 260px);
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12), 0 16px 32px rgba(15, 23, 42, .12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 850;
}

.receipt-preview > strong,
.receipt-preview > span,
.receipt-preview small {
  display: block;
  text-align: center;
}

.receipt-preview hr {
  border: 0;
  border-top: 1px dashed #111827;
  margin: 10px 0;
}

.receipt-preview div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0;
}

.receipt-preview-total {
  font-size: .95rem;
}

.sale-finish-card {
  max-width: 540px;
}

.sale-finish-summary {
  margin: 16px 0 4px;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(190,255,190,.78), rgba(78,214,232,.28));
  color: var(--text-main);
}

.sale-finish-summary span,
.sale-finish-summary small {
  display: block;
  color: var(--text-muted);
  font-weight: 900;
}

.sale-finish-summary strong {
  display: block;
  margin: 6px 0;
  font-size: 2rem;
  font-weight: 950;
}

@media (max-width: 720px) {
  .print-settings-grid,
  .print-preset-grid {
    grid-template-columns: 1fr;
  }

  .receipt-preview {
    width: 100%;
  }

  .sale-finish-actions {
    display: grid;
  }

  .sale-finish-actions .btn {
    width: 100%;
  }
}

.label-calibration-panel {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(8, 168, 91, .18);
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.label-calibration-panel summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--text-main);
  font-weight: 950;
}

.label-calibration-visual {
  padding: 0 14px 14px;
}

.label-calibration-coin {
  padding: 0 14px 14px;
}

.label-calibration-coin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(8, 168, 91, .28);
  background: rgba(234, 248, 242, .78);
}

.label-calibration-roll-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.label-calibration-roll-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0;
  min-width: min(860px, 100%);
  min-height: 210px;
  border: 2px dashed rgba(15, 23, 42, .25);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
  scroll-snap-align: start;
  overflow: visible;
}

.label-calibration-roll-row::after {
  content: attr(data-row-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: rgba(15, 23, 42, .4);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.label-calibration-coin-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 132px;
  border-radius: 16px;
  border: 2px solid rgba(8, 168, 91, .28);
  background: #fff;
  overflow: hidden;
  touch-action: none;
}

.label-calibration-roll-slot {
  min-height: 210px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.label-calibration-roll-slot + .label-calibration-roll-slot {
  border-left: 1px dashed rgba(15, 23, 42, .12);
}

.label-calibration-roll-slot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  color: rgba(15, 23, 42, .62);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  pointer-events: none;
}

.coin-reference {
  position: absolute;
  inset: 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: .64;
  pointer-events: none;
}

.label-calibration-roll-slot .coin-reference {
  top: 70px;
  bottom: auto;
  height: 52px;
  opacity: .22;
}

.coin-reference span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, .35);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0 28%, transparent 29%),
    linear-gradient(135deg, rgba(197,255,186,.6), rgba(70,213,232,.38));
  box-shadow: inset 0 0 0 4px rgba(15, 23, 42, .06);
}

.label-calibration-drag-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 118px);
  grid-auto-flow: row;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(8, 168, 91, .28);
  background: rgba(234, 248, 242, .78);
  touch-action: none;
}

.label-calibration-slot {
  position: relative;
  min-height: 118px;
  border-radius: 16px;
  border: 2px solid rgba(8, 168, 91, .34);
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.82);
}

.label-calibration-slot::after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 1;
  max-width: calc(100% - 20px);
  color: rgba(15, 23, 42, .62);
  font-size: .68rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.label-calibration-slot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-left: 2px solid rgba(8, 168, 91, .28);
  border-top: 2px solid rgba(8, 168, 91, .28);
  pointer-events: none;
}

.label-calibration-drag-item {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(34vw, 150px);
  min-height: 64px;
  border: 0;
  border-radius: 12px;
  padding: 8px 9px;
  background: rgba(255,255,255,.96);
  color: var(--text-main);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  cursor: grab;
  text-align: left;
  touch-action: none;
  user-select: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.label-calibration-drag-item:active {
  cursor: grabbing;
}

.label-calibration-drag-item b {
  display: block;
  font-size: .72rem;
  line-height: 1;
  font-weight: 950;
}

.label-calibration-drag-item span {
  display: block;
  width: 82%;
  height: 22px;
  margin: 5px 0 4px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #071321 0 2px, transparent 2px 4px, #071321 4px 5px, transparent 5px 8px);
}

.label-calibration-drag-item small {
  display: block;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 950;
}

.coin-drag-item {
  width: min(38vw, 210px);
  min-height: 86px;
  padding: 9px 12px;
  border: 1px solid rgba(8, 168, 91, .5);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}

.coin-drag-item span {
  width: 94%;
  height: 34px;
}

.label-calibration-preview {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border-radius: 18px;
  border: 1px dashed rgba(8, 168, 91, .28);
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(8, 168, 91, .18) 49.4%, rgba(8, 168, 91, .18) 50.6%, transparent 50.6%),
    rgba(234, 248, 242, .78);
}

.label-calibration-preview-art {
  --bobina-x: 0px;
  --bobina-y: 0px;
  --bobina-scale: 1;
  --bobina-gap: 12px;
  --bobina-height: 80px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: var(--bobina-gap);
  transform: translate(calc(-50% + var(--bobina-x)), calc(-50% + var(--bobina-y))) scale(var(--bobina-scale));
  transform-origin: center;
}

.label-calibration-sticker {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(42vw, 170px);
  height: var(--bobina-height);
  border-radius: 14px;
  border: 2px solid rgba(8, 168, 91, .34);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  color: var(--text-main);
  font-weight: 950;
  text-align: center;
}

.label-calibration-sticker span {
  display: block;
  width: 70%;
  height: 18px;
  margin: 5px 0;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #071321 0 2px, transparent 2px 4px);
}

.label-calibration-sticker small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 950;
}

.label-calibration-summary {
  margin: 9px 2px 0;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 900;
}

.label-calibration-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.label-calibration-tools section {
  border-radius: 16px;
  border: 1px solid rgba(8, 168, 91, .16);
  padding: 12px;
  background: rgba(255,255,255,.84);
}

.label-calibration-tools strong {
  display: block;
  margin-bottom: 9px;
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 950;
}

.label-calibration-pad,
.label-calibration-buttons {
  display: grid;
  gap: 8px;
}

.label-calibration-pad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.label-calibration-pad button:first-child,
.label-calibration-pad button:last-child {
  grid-column: 2;
}

.label-calibration-tools button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: var(--text-main);
  font-weight: 950;
  background: linear-gradient(135deg, rgba(197,255,186,.9), rgba(70,213,232,.62));
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

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

.label-calibration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.label-calibration-grid label {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 950;
}

.label-calibration-grid input {
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  border-radius: 14px;
  border: 1px solid rgba(8, 168, 91, .18);
  padding: 0 10px;
  color: var(--text-main);
  font-weight: 950;
  background: rgba(255,255,255,.96);
}

.label-calibration-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 14px 14px;
}

.label-batch-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.label-batch-config label,
.label-search label {
  color: var(--text-muted);
  font-weight: 900;
}

.label-batch-config input {
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(8, 168, 91, .18);
  padding: 0 14px;
  color: var(--text-main);
  font-weight: 900;
  background: rgba(255,255,255,.92);
}

.label-products-list {
  max-height: 390px;
  margin-top: 14px;
}

.label-select-all-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(8, 168, 91, .18);
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(208, 255, 190, .64), rgba(159, 232, 245, .56));
  color: var(--text-main);
  font-weight: 900;
  cursor: pointer;
}

.label-select-all-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
}

.label-product-row {
  cursor: pointer;
  align-items: center;
  gap: 12px;
}

.label-product-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
}

.label-product-info {
  flex: 1;
  min-width: 0;
}

.label-product-qty {
  display: grid;
  gap: 4px;
  min-width: 92px;
}

.label-product-qty small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.label-product-qty input {
  width: 92px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(8, 168, 91, .2);
  padding: 0 10px;
  color: var(--text-main);
  font-weight: 950;
  background: rgba(255,255,255,.96);
}

.product-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 20px;
  color: #4a2d04;
  background: rgba(255, 200, 87, .16);
  border: 1px solid rgba(255,159,28,.26);
  font-weight: 900;
}

.product-bulk-bar[hidden] {
  display: none;
}

.product-bulk-bar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 18, 32, .48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: backdropIn .18s ease both;
}

.product-modal-card {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(41,193,95,.16), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(24,201,245,.16), transparent 34%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(5, 18, 32, .28);
  animation: modalIn .24s ease both;
}

.product-options-card {
  width: min(100%, 620px);
}

.os-client-quick-card {
  width: min(100%, 860px);
}

.import-products-card {
  width: min(100%, 980px);
}

.product-bulk-import-card {
  width: min(100%, 760px);
}

@media (min-width: 681px) {
  .product-modal-card.os-modal-card {
    width: min(98vw, 1680px);
    max-height: calc(100dvh - 24px);
    padding: 22px;
    border-radius: 24px;
  }

  .product-modal-card.os-modal-card .os-form-grid {
    gap: 12px;
  }

  .product-modal-card.os-modal-card .os-form-section {
    padding: 14px;
  }
}

.product-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.product-modal-head h3 {
  font-size: 28px;
}

.product-modal-head p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.product-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #415066;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-weight: 900;
}

.product-edit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-edit-options button {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-edit-options button:hover {
  transform: translateY(-1px);
  border-color: rgba(41,193,95,.24);
  box-shadow: 0 14px 28px rgba(41,193,95,.10);
}

.product-edit-options strong,
.product-edit-options span {
  display: block;
}

.product-edit-options strong {
  font-size: 16px;
}

.product-edit-options span {
  color: var(--muted);
  font-weight: 800;
}

.pdf-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.check-option {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.check-option:hover {
  transform: translateY(-1px);
  border-color: rgba(41,193,95,.24);
  box-shadow: 0 14px 28px rgba(41,193,95,.10);
}

.check-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.payment-method-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.payment-method-options button {
  min-height: 86px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.payment-method-options button:hover {
  transform: translateY(-1px);
  border-color: rgba(41,193,95,.24);
  box-shadow: 0 14px 28px rgba(41,193,95,.10);
}

.payment-method-options strong,
.payment-method-options span,
.payment-method-options em {
  display: block;
}

.payment-method-options span {
  color: var(--muted);
  font-weight: 800;
}

.payment-method-options em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.product-form-modal {
  background: rgba(255,255,255,.64);
}

.product-desktop-panels,
.product-desktop-panel,
.product-desktop-fields {
  display: contents;
}

.product-desktop-tabs {
  display: none;
}

.product-desktop-panel-title,
.product-desktop-panel-updates {
  display: none;
}

.product-form label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.product-form input,
.product-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.86);
}

.product-form input:focus,
.product-form select:focus {
  border-color: rgba(41,193,95,.55);
  box-shadow: 0 0 0 4px rgba(41,193,95,.12);
}

.product-fiscal-picker-label {
  position: relative;
  min-width: 0;
}

.product-fiscal-picker {
  position: relative;
  min-width: 0;
}

.product-fiscal-picker-trigger {
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(41,193,95,.10), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(24,201,245,.10), transparent 38%),
    rgba(255,255,255,.90);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.product-fiscal-picker-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-64%) rotate(45deg);
  transition: transform .18s ease;
}

.product-fiscal-picker.is-open .product-fiscal-picker-trigger {
  border-color: rgba(41,193,95,.42);
  box-shadow: 0 0 0 4px rgba(41,193,95,.10);
}

.product-fiscal-picker.is-open .product-fiscal-picker-trigger::after {
  transform: translateY(-28%) rotate(225deg);
}

.product-fiscal-picker-menu {
  position: absolute;
  z-index: 90;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 40px rgba(16,32,51,.14);
}

.product-fiscal-picker.is-open .product-fiscal-picker-menu {
  display: grid;
  gap: 6px;
}

.product-fiscal-picker-menu::-webkit-scrollbar {
  width: 6px;
}

.product-fiscal-picker-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.product-fiscal-picker-option {
  appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.product-fiscal-picker-option:hover,
.product-fiscal-picker-option.is-selected {
  background: linear-gradient(135deg, rgba(191,255,185,.60), rgba(169,239,255,.52));
}

.product-form input.is-calculated,
.product-form input[readonly].is-calculated,
.product-form select.is-calculated,
.product-form select:disabled.is-calculated {
  color: #6b7688;
  background: #eef3f8;
  border-color: rgba(16,32,51,.08);
  box-shadow: inset 0 0 0 1px rgba(16,32,51,.03);
  cursor: not-allowed;
}

.product-form input.is-calculated:focus {
  border-color: rgba(16,32,51,.12);
  box-shadow: inset 0 0 0 1px rgba(16,32,51,.03);
}

.product-form input.codigo-interno-auto {
  font-weight: 900;
  letter-spacing: .04em;
}

.product-form input.codigo-interno-auto::placeholder {
  color: #7b8797;
}

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

.barcode-input-row input {
  min-width: 0;
}

.barcode-list {
  display: grid;
  gap: 8px;
}

.barcode-scan-btn {
  min-height: 48px;
  white-space: nowrap;
}

.barcode-add-btn {
  width: fit-content;
  min-height: 42px;
  margin-top: 8px;
}

.barcode-remove-btn {
  min-height: 48px;
  white-space: nowrap;
}

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

.product-category-row input,
.product-category-row select {
  min-width: 0;
}

.product-category-add {
  min-height: 48px;
  padding-inline: 14px;
  white-space: nowrap;
}

.barcode-scanner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 18, 32, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.barcode-scanner-card {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 5%, rgba(41,193,95,.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(24,201,245,.18), transparent 34%),
    rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(5, 18, 32, .32);
}

.barcode-scanner-head,
.barcode-scanner-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.barcode-scanner-head h3 {
  font-size: 24px;
}

.barcode-scanner-head p,
.barcode-scanner-actions span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

.barcode-video-wrap {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  border-radius: 22px;
  background: #071522;
  aspect-ratio: 4 / 3;
}

.barcode-scanner-backdrop.is-qr .barcode-video-wrap {
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.barcode-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barcode-html5-reader,
.barcode-html5-reader video {
  width: 100% !important;
  height: 100% !important;
}

.barcode-html5-reader {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.barcode-html5-reader video {
  object-fit: cover;
}

.barcode-html5-reader img,
.barcode-html5-reader button,
.barcode-html5-reader select {
  display: none !important;
}

.stock-unit-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.stock-unit-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2f4056;
  background: rgba(124,235,213,.18);
  border: 1px solid rgba(41,193,95,.15);
  font-size: 11px;
  font-weight: 900;
}

.stock-unit-line strong {
  color: var(--green-dark);
  font-size: 12px;
}

.barcode-target {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 12%;
  right: 12%;
  top: 38%;
  height: 24%;
  border: 2px solid rgba(124,235,213,.92);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(5, 18, 32, .24), 0 0 30px rgba(41,193,95,.35);
}

.barcode-scanner-backdrop.is-qr .barcode-target {
  left: 14%;
  right: 14%;
  top: 14%;
  height: 72%;
  border-radius: 22px;
}

.barcode-scanner-backdrop .product-modal-close {
  position: static;
  flex: 0 0 auto;
}

.barcode-scanner-backdrop .btn,
.barcode-scanner-backdrop .product-modal-close {
  touch-action: manipulation;
}

.product-margin-field select {
  cursor: pointer;
}

.product-detail-field,
.product-margin-field,
#produtoMargemCustomWrap {
  position: relative;
}

.product-detail-field::before,
.product-margin-field::before,
#produtoMargemCustomWrap::before {
  content: "";
  position: absolute;
  inset: 23px 8px 8px;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,235,213,.20), rgba(24,201,245,.10));
  border: 1px solid rgba(124,235,213,.24);
}

.product-margin-summary {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(247,251,255,.92);
  border: 1px solid rgba(16,32,51,.08);
  font-weight: 900;
}

.product-margin-summary.is-ok {
  color: #0f7a38;
  background: linear-gradient(135deg, rgba(192,255,181,.50), rgba(93,214,236,.18));
  border-color: rgba(41,193,95,.24);
}

.product-margin-summary.is-loss {
  color: #b42318;
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.28);
}

.product-meta-line {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.product-meta-chip,
.product-meta-empty {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #244056;
  background: rgba(124,235,213,.18);
  border: 1px solid rgba(24,201,245,.16);
  font-size: 11px;
  font-weight: 850;
  text-transform: none;
}

.product-meta-chip b {
  color: var(--green-dark);
  font-weight: 950;
}

.product-meta-empty {
  color: var(--muted);
  background: rgba(16,32,51,.06);
  border-color: rgba(16,32,51,.08);
}

.product-file,
.product-form-actions {
  grid-column: span 1;
}

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

.product-photo-actions .btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 15px;
}

.sr-only-file {
  position: fixed;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.product-file-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.product-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 14px 34px rgba(16,32,51,.07);
}

.product-search label {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.product-search input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.product-search input:focus {
  border-color: rgba(24,201,245,.58);
  box-shadow: 0 0 0 4px rgba(24,201,245,.12);
}

.product-search span {
  color: var(--muted);
  font-weight: 900;
}

.product-search-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.product-filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 14px 34px rgba(16,32,51,.06);
}

.product-filter-panel label {
  width: min(100%, 360px);
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.product-filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  outline: none;
}

.product-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cash-status-panel,
.sale-panel,
.sale-summary {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.cash-status-panel span,
.sale-summary > span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.cash-status-panel strong,
.sale-summary > strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
}

.cash-status-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.cash-status-actions {
  margin-top: 18px;
}

.sale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .74fr) 320px;
  gap: 18px;
  align-items: start;
}

.sale-panel h3 {
  font-size: 24px;
}

.sale-search {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sale-search label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.sale-search input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.sale-search input:focus {
  border-color: rgba(24,201,245,.58);
  box-shadow: 0 0 0 4px rgba(24,201,245,.12);
}

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

.sale-search-row .barcode-scan-btn {
  min-height: 48px;
  white-space: nowrap;
}

.purchase-nfe-key-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(41,193,95,.10), rgba(24,201,245,.10)),
    rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.purchase-nfe-key-panel span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-nfe-key-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.purchase-nfe-key-panel p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.purchase-nfe-key-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.purchase-nfe-key-actions label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.purchase-nfe-key-actions input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.9);
}

.purchase-nfe-key-actions input:focus {
  border-color: rgba(24,201,245,.58);
  box-shadow: 0 0 0 4px rgba(24,201,245,.12);
}

.purchase-nfe-key-actions .btn {
  min-height: 48px;
  white-space: nowrap;
}

.product-variation-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  background: rgba(246,251,255,.82);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.product-variation-editor * {
  box-sizing: border-box;
}

.product-modal-card.product-desktop-standard-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-desktop-standard-form.product-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.product-desktop-tabs {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.product-desktop-tab {
  appearance: none;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(41,193,95,.10), transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(24,201,245,.10), transparent 38%),
    rgba(255,255,255,.82);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(16,32,51,.06);
  cursor: pointer;
  text-align: left;
}

.product-desktop-tab.is-active {
  border-color: rgba(41,193,95,.34);
  background: linear-gradient(135deg, rgba(191,255,185,.54), rgba(169,239,255,.48));
}

.product-desktop-tab span {
  font-weight: 950;
  line-height: 1.1;
}

.product-desktop-tab small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.product-desktop-panels {
  display: block;
  min-height: 0;
  overflow: auto;
}

.product-desktop-panel,
.product-desktop-panel-updates {
  display: block;
  min-width: 0;
}

.product-desktop-panel[data-product-panel]:not(.is-active) {
  display: none;
}

.product-desktop-panel-title {
  display: grid;
}

.product-desktop-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 981px) {
  .product-modal-card.product-desktop-standard-card {
    width: min(94vw, 1180px);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 26px;
  }

  .product-desktop-standard-form.product-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    background: rgba(255,255,255,.54);
  }

  .product-desktop-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    flex: 0 0 auto;
    margin-bottom: 14px;
  }

  .product-desktop-tab {
    appearance: none;
    min-width: 0;
    min-height: 68px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(16,32,51,.08);
    border-radius: 16px;
    background:
      radial-gradient(circle at 15% 0%, rgba(41,193,95,.10), transparent 38%),
      radial-gradient(circle at 85% 0%, rgba(24,201,245,.10), transparent 38%),
      rgba(255,255,255,.78);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(16,32,51,.06);
    cursor: pointer;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  .product-desktop-tab:hover,
  .product-desktop-tab.is-active {
    transform: translateY(-1px);
    border-color: rgba(41,193,95,.34);
    background: linear-gradient(135deg, rgba(191,255,185,.52), rgba(169,239,255,.46));
    box-shadow: 0 16px 34px rgba(41,193,95,.12);
  }

  .product-desktop-tab span {
    font-size: 16px;
    font-weight: 950;
    line-height: 1.1;
  }

  .product-desktop-tab small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
  }

  .product-desktop-panels {
    display: block;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }

  .product-desktop-panels::-webkit-scrollbar,
  .product-desktop-panel::-webkit-scrollbar {
    width: 7px;
  }

  .product-desktop-panels::-webkit-scrollbar-thumb,
  .product-desktop-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  }

  .product-desktop-panel,
  .product-desktop-panel-updates {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(16,32,51,.08);
    border-radius: 20px;
    background:
      radial-gradient(circle at 10% 0%, rgba(41,193,95,.10), transparent 34%),
      radial-gradient(circle at 90% 0%, rgba(24,201,245,.10), transparent 34%),
      rgba(255,255,255,.78);
    box-shadow: 0 18px 42px rgba(16,32,51,.07);
  }

  .product-desktop-panel[data-product-panel]:not(.is-active) {
    display: none;
  }

  .product-desktop-panel-title {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16,32,51,.08);
  }

  .product-desktop-panel-title span {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
  }

  .product-desktop-panel-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

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

  .product-desktop-fields > label,
  .product-desktop-fields > div,
  .product-desktop-fields > section {
    min-width: 0;
  }

  .product-desktop-fields > .product-variation-editor,
  .product-desktop-fields > .product-barcode-field,
  .product-desktop-fields > .product-file,
  .product-desktop-fields > .product-margin-summary {
    grid-column: 1 / -1;
  }

  .product-desktop-fields .product-category-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .product-desktop-standard-card .product-fiscal-editor {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .product-desktop-standard-card .product-fiscal-editor .settings-section-head {
    display: none;
  }

  .product-desktop-standard-card .product-fiscal-editor .operator-create-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .product-update-empty {
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px dashed rgba(16,32,51,.14);
    border-radius: 16px;
    color: var(--muted);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    background: rgba(246,251,255,.76);
  }

  .product-update-list {
    display: grid;
    gap: 10px;
    max-height: 470px;
    overflow: auto;
    padding-right: 4px;
  }

  .product-update-list::-webkit-scrollbar {
    width: 6px;
  }

  .product-update-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  }

  .product-update-item {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(16,32,51,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.76);
  }

  .product-update-item strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }

  .product-update-item span,
  .product-update-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .product-desktop-standard-form .product-form-actions {
    position: sticky;
    bottom: -16px;
    z-index: 3;
    flex: 0 0 auto;
    margin: 14px -16px -16px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(16,32,51,.08);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@media (max-width: 980px) {
  .product-modal-card.product-desktop-standard-card {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
    border-radius: 22px;
  }

  .product-desktop-standard-form.product-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-top: 16px;
    padding: 12px;
  }

  .product-desktop-tabs {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 0 2px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .product-desktop-tabs::-webkit-scrollbar {
    height: 5px;
  }

  .product-desktop-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  }

  .product-desktop-tab {
    appearance: none;
    flex: 0 0 min(70vw, 210px);
    min-height: 58px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(16,32,51,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(16,32,51,.06);
    text-align: left;
  }

  .product-desktop-tab.is-active {
    border-color: rgba(41,193,95,.34);
    background: linear-gradient(135deg, rgba(191,255,185,.54), rgba(169,239,255,.48));
  }

  .product-desktop-tab span {
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
  }

  .product-desktop-tab small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
  }

  .product-desktop-panels {
    display: block;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
  }

  .product-desktop-panel,
  .product-desktop-panel-updates {
    display: block;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(16,32,51,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
  }

  .product-desktop-panel[data-product-panel]:not(.is-active) {
    display: none;
  }

  .product-desktop-panel-title {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16,32,51,.08);
  }

  .product-desktop-panel-title span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
  }

  .product-desktop-panel-title small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
  }

  .product-desktop-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-desktop-fields > label,
  .product-desktop-fields > div,
  .product-desktop-fields > section {
    min-width: 0;
  }

  .product-desktop-fields .product-category-row,
  .product-desktop-standard-card .product-fiscal-editor .operator-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-desktop-standard-card .product-fiscal-editor {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .product-desktop-standard-card .product-fiscal-editor .settings-section-head {
    display: none;
  }

  .product-desktop-standard-form .product-form-actions {
    position: sticky;
    bottom: -12px;
    z-index: 3;
    flex: 0 0 auto;
    display: grid;
    margin: 12px -12px -12px;
    padding: 12px;
    border-top: 1px solid rgba(16,32,51,.08);
    background: rgba(255,255,255,.94);
  }

  .product-desktop-standard-form .product-form-actions .btn {
    width: 100%;
  }
}

.product-variation-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.product-variation-tools input,
.variation-search-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.product-brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: thin;
  max-width: 100%;
}

.product-brand-tabs button {
  flex: 1 1 92px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,.9);
  color: var(--muted);
  font-weight: 900;
  white-space: normal;
  line-height: 1.1;
}

.product-brand-tabs button.active {
  border-color: rgba(41,193,95,.36);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(192,255,181,.7), rgba(93,214,236,.35));
}

.product-model-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-model-list,
.product-selected-models,
.variation-choice-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
  min-width: 0;
  max-width: 100%;
}

.product-selected-models {
  max-height: 240px;
}

.product-models-more {
  width: 100%;
  justify-content: center;
}

.model-stock-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192,255,181,.42), rgba(93,214,236,.18));
  border: 1px solid rgba(41,193,95,.16);
}

.model-stock-summary article {
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.model-stock-summary span,
.model-stock-summary p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.model-stock-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--green-dark);
  font-size: 18px;
}

.model-stock-summary p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-model-option,
.product-selected-model,
.variation-choice-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 900;
  min-width: 0;
  max-width: 100%;
}

.product-model-option {
  text-align: left;
  cursor: pointer;
}

.product-model-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.product-model-option.is-selected {
  border-color: rgba(41,193,95,.45);
  background: linear-gradient(135deg, rgba(192,255,181,.62), rgba(93,214,236,.25));
}

.product-selected-model:not(.has-details) {
  grid-template-columns: minmax(0, 1fr) auto 36px;
}

.product-selected-model.has-details {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.selected-model-head,
.model-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 86px 36px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.selected-model-head {
  grid-template-columns: minmax(0, 1fr) auto 36px;
}

.selected-model-head strong {
  color: var(--green-dark);
  font-size: 12px;
}

.model-detail-add {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.model-detail-add select,
.model-detail-add input,
.model-detail-row input {
  min-height: 38px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.model-detail-add button,
.model-detail-row button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(41,193,95,.14);
  color: var(--ink);
  font-weight: 900;
}

.model-detail-list {
  display: grid;
  gap: 6px;
}

.model-detail-row {
  min-height: 42px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(247,251,255,.9);
}

.model-detail-row input {
  width: 72px;
  text-align: center;
}

.model-detail-row button,
.selected-model-head button {
  background: rgba(255,107,107,.18);
  color: #ba1d1d;
}

.product-selected-model input {
  min-height: 36px;
  width: 58px;
  max-width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 0;
  padding: 0 8px;
  text-align: center;
  font-weight: 900;
}

.product-selected-model button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,107,107,.18);
  color: #ba1d1d;
  font-weight: 900;
}

.product-selected-model.has-details .model-detail-add input,
.product-selected-model.has-details .model-detail-add select {
  width: 100%;
  border-radius: 12px;
  text-align: left;
}

.product-selected-model.has-details .model-detail-row input {
  width: 86px;
  border-radius: 12px;
}

.product-selected-model.has-details .model-detail-add button {
  background: rgba(41,193,95,.14);
  color: var(--ink);
}

.product-import-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 190px;
  gap: 10px;
  margin-top: 18px;
}

.product-import-options label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.product-import-options input,
.product-import-options select,
.product-import-textarea {
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  font-weight: 900;
}

.product-import-options input,
.product-import-options select {
  min-height: 46px;
}

.product-import-textarea {
  min-height: 260px;
  margin-top: 14px;
  padding: 14px;
  line-height: 1.45;
  resize: vertical;
}

.grade-import-result-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.grade-import-result-list p {
  margin: 0;
  line-height: 1.45;
}

.grade-import-result-list .btn {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.model-qty-stepper {
  display: grid;
  grid-template-columns: 36px 58px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 12px;
  background: #fff;
  width: max-content;
  max-width: 100%;
}

.model-qty-stepper button {
  border-radius: 0;
  background: rgba(41,193,95,.14);
  color: var(--ink);
}

.variation-choice-list button {
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
  cursor: pointer;
}

.variation-choice-list button:hover {
  border-color: rgba(41,193,95,.34);
  background: linear-gradient(135deg, rgba(192,255,181,.55), rgba(93,214,236,.24));
}

.product-variation-line {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-compat-line,
.model-compat-line {
  display: block;
  color: #188a4a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.product-selected-model > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-model-option span,
.product-selected-model > span,
.selected-model-head span,
.model-detail-row span,
.model-detail-add input,
.model-detail-add select {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sale-search span {
  color: var(--muted);
  font-weight: 900;
}

.sale-product-grid {
  display: grid;
  gap: 10px;
  max-height: 166px;
  overflow: auto;
  margin-top: 14px;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.sale-product-grid-compact {
  max-height: 166px;
}

.sale-product-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 18px;
  color: var(--ink);
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sale-product-card[hidden],
.product-item[hidden],
.client-item[hidden],
.client-link-option[hidden] {
  display: none !important;
}

.sale-product-card:hover {
  transform: translateY(-1px);
  border-color: rgba(41,193,95,.24);
  box-shadow: 0 14px 28px rgba(41,193,95,.10);
}

.sale-product-thumb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.07);
}

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

.lazy-product-photo {
  display: block;
  width: 100%;
  height: 100%;
}

.lazy-product-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-product-thumb .product-photo-empty small {
  display: none;
}

.sale-product-thumb .photo-icon {
  transform: scale(.82);
}

.sale-product-info strong,
.sale-product-info small,
.sale-product-price {
  display: block;
}

.sale-product-info strong {
  font-size: 15px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.18;
}

.sale-product-info small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.sale-product-price {
  color: var(--green-dark);
  font-weight: 900;
  white-space: nowrap;
}

.sale-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.sale-add-form label,
.sale-summary label {
  display: grid;
  gap: 8px;
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

.sale-add-form input,
.sale-add-form select,
.sale-summary input,
.sale-summary select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.sale-add-form input:focus,
.sale-add-form select:focus,
.sale-summary input:focus,
.sale-summary select:focus {
  border-color: rgba(41,193,95,.55);
  box-shadow: 0 0 0 4px rgba(41,193,95,.12);
}

.sale-extra-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
}

.sale-extra-box small {
  color: #66758a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.smart-search-options {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}

.smart-search-options[hidden] {
  display: none;
}

.smart-search-option {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: rgba(248,252,255,.96);
  cursor: pointer;
}

.smart-search-option:hover,
.smart-search-option:focus-visible {
  border-color: rgba(41,193,95,.45);
  background: rgba(232,255,240,.94);
  outline: none;
}

.smart-search-option strong {
  font-size: 13px;
  font-weight: 950;
}

.smart-search-option span {
  color: #66758a;
  font-size: 12px;
  font-weight: 800;
}

.sale-fiscal-check {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  padding: 10px 12px;
}

.sale-payment {
  display: grid;
  gap: 10px;
}

.sale-realtime-notice {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(236, 166, 35, .28);
  border-radius: 14px;
  background: rgba(255, 246, 224, .88);
  color: #7a4b04;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.sale-realtime-notice[hidden] {
  display: none;
}

.sale-payment > span {
  color: #415066;
  font-size: 13px;
  font-weight: 900;
}

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

.sale-payment-option {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.10);
  cursor: pointer;
  text-align: center;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.sale-payment-option i {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.72), rgba(52,214,247,.60));
  font-style: normal;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(41,193,95,.12);
}

.sale-payment-option strong {
  font-size: 13px;
}

.sale-payment-option:hover,
.sale-payment-option.is-selected {
  transform: translateY(-1px);
  border-color: rgba(41,193,95,.42);
  background: linear-gradient(135deg, rgba(138,243,95,.26), rgba(52,214,247,.20));
  box-shadow: 0 14px 28px rgba(41,193,95,.11);
}

.sale-items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.scroll-list {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.client-scroll-list {
  max-height: 560px;
}

.client-link-scroll {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.cash-scroll-list,
.sale-edit-items,
.vendas-scroll-list,
.cash-history-scroll {
  max-height: 420px;
}

.client-sale-line {
  font-size: 12px;
}

.client-item {
  cursor: pointer;
}

.client-item:hover {
  border-color: rgba(41,193,95,.24);
  box-shadow: 0 14px 28px rgba(41,193,95,.10);
}

.client-detail-card {
  width: min(980px, 96vw);
}

.client-limit-grid {
  margin-top: 18px;
}

.client-detail-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.client-detail-sales {
  margin-top: 18px;
}

.client-detail-scroll {
  max-height: 430px;
}

.sale-edit-modal-card {
  width: min(1180px, 96vw);
}

.sale-edit-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr) minmax(240px, .75fr);
  gap: 14px;
  align-items: start;
}

.sale-edit-summary {
  position: sticky;
  top: 10px;
}

.sale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.sale-item strong,
.sale-item span {
  display: block;
}

.sale-item span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.sale-item > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.purchase-item > div:last-child {
  flex-wrap: wrap;
}

.purchase-price-input {
  display: grid;
  gap: 4px;
  color: #415066;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.purchase-price-input input {
  width: 112px;
  height: 36px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  outline: none;
}

.purchase-price-input input:focus {
  border-color: rgba(41,193,95,.45);
  box-shadow: 0 0 0 4px rgba(41,193,95,.12);
}

.sale-qty-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sale-qty-actions button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.78), rgba(52,214,247,.68));
  cursor: pointer;
  font-weight: 900;
}

.sale-qty-input {
  width: 58px;
  height: 34px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  text-align: center;
  outline: none;
}

.sale-qty-input:focus {
  border-color: rgba(41,193,95,.45);
  box-shadow: 0 0 0 4px rgba(41,193,95,.12);
}

.sale-summary {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 22px;
}

.sale-product-grid-main,
.sale-cart-items {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

@media (min-width: 1101px) {
  .panel-page {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .app-sidebar {
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
  }

  .app-sidebar img {
    width: 148px;
  }

  .app-sidebar h3 {
    font-size: 17px;
  }

  .app-sidebar nav {
    gap: 6px;
  }

  .app-sidebar button,
  .premium-link,
  .logout-btn {
    min-height: 40px;
    padding: 0 11px;
    border-radius: 13px;
    font-size: 13px;
  }

  .app-content {
    padding: 22px;
    border-radius: 24px;
  }

  .sale-layout-main {
    grid-template-columns: minmax(410px, 1.1fr) minmax(280px, .72fr) minmax(360px, .78fr);
    gap: 14px;
    align-items: stretch;
    min-height: min(710px, calc(100vh - 230px));
  }

  .sale-layout-main .sale-panel,
  .sale-layout-main .sale-summary {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
  }

  .sale-products-panel,
  .sale-cart-panel,
  .sale-summary-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .sale-products-panel h3,
  .sale-cart-panel h3 {
    font-size: 20px;
    line-height: 1.15;
  }

  .sale-products-panel .sale-search {
    margin-top: 10px;
    gap: 8px;
  }

  .sale-products-panel .sale-search input {
    min-height: 56px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
  }

  .sale-product-grid-main {
    flex: 0 0 auto;
    max-height: 372px;
    min-height: 0;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 8px;
    gap: 8px;
  }

  .sale-product-grid-main .sale-product-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 68px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .sale-product-grid-main .sale-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .sale-product-grid-main .sale-product-info strong {
    font-size: 14px;
    line-height: 1.18;
  }

  .sale-product-grid-main .sale-product-info small {
    margin-top: 3px;
    font-size: 12px;
  }

  .sale-product-grid-main .sale-product-price {
    font-size: 14px;
  }

  .sale-cart-items {
    flex: 1 1 auto;
    max-height: none;
    min-height: 360px;
    overflow: auto;
    padding-right: 8px;
    align-content: start;
  }

  .sale-cart-items .sale-item {
    padding: 10px;
    border-radius: 16px;
  }

  .sale-summary-main {
    position: sticky;
    top: 12px;
    gap: 10px;
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 190px);
    overflow: auto;
  }

  .sale-summary-main > strong {
    margin-top: 4px;
    font-size: 32px;
    line-height: 1.08;
    white-space: nowrap;
  }

  .sale-summary-main label {
    gap: 5px;
  }

  .sale-summary-main input {
    min-height: 42px;
    border-radius: 14px;
  }

  .sale-summary-main .sale-payment {
    gap: 8px;
  }

  .sale-summary-main .sale-payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sale-summary-main .sale-payment-option {
    min-height: 70px;
    padding: 8px;
    border-radius: 16px;
  }

  .sale-summary-main .sale-payment-option i {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .sale-summary-main .sale-change {
    padding: 10px;
    border-radius: 15px;
    min-width: 0;
  }

  .sale-summary-main .sale-change span {
    white-space: nowrap;
  }

  .sale-summary-main .sale-change strong {
    font-size: 22px;
    white-space: nowrap;
  }

  .sale-summary-main .btn {
    min-height: 46px;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .sale-layout-main {
    min-height: calc(100vh - 205px);
  }

  .sale-layout-main .sale-panel,
  .sale-layout-main .sale-summary {
    margin-top: 14px;
    padding: 14px;
  }

  .sale-product-grid-main,
  .sale-cart-items {
    min-height: 0;
  }

  .sale-summary-main {
    gap: 8px;
    max-height: calc(100vh - 170px);
  }

  .sale-summary-main > strong {
    font-size: 26px;
  }

  .sale-summary-main .sale-payment-option {
    min-height: 62px;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .panel-page {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .app-sidebar {
    padding: 13px;
  }

  .app-sidebar img {
    width: 128px;
  }

  .app-sidebar h3 {
    font-size: 15px;
  }

  .app-sidebar button,
  .premium-link,
  .logout-btn {
    min-height: 38px;
    font-size: 12px;
  }

  .app-content {
    padding: 18px;
  }

  .sale-layout-main {
    grid-template-columns: minmax(360px, 1fr) minmax(240px, .64fr) minmax(340px, .78fr);
    gap: 10px;
  }

  .sale-layout-main .sale-panel,
  .sale-layout-main .sale-summary {
    padding: 13px;
  }
}

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

  .print-format-option {
    min-height: 92px;
  }

  .label-batch-config {
    grid-template-columns: 1fr;
  }

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

  .label-calibration-coin-grid {
    grid-template-columns: 1fr;
  }

  .label-calibration-coin-slot {
    min-height: 124px;
  }

  .coin-drag-item {
    width: min(78vw, 188px);
  }

  .label-calibration-tools {
    grid-template-columns: 1fr;
  }

  .label-calibration-preview {
    min-height: 104px;
  }

  .label-calibration-drag-board {
    grid-template-rows: repeat(2, 104px);
    gap: 10px;
    padding: 10px;
  }

  .label-calibration-slot {
    min-height: 104px;
  }

  .label-calibration-drag-item {
    width: 132px;
    min-height: 58px;
    padding: 7px 8px;
  }

  .label-calibration-sticker {
    width: 132px;
  }

  .label-calibration-actions .btn {
    flex: 1 1 100%;
  }

  .label-products-list {
    max-height: 58vh;
  }

  .barcode-scanner-backdrop {
    align-items: start;
    place-items: start center;
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .barcode-scanner-card {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 16px;
    border-radius: 22px;
  }

  .barcode-scanner-head,
  .barcode-scanner-actions {
    gap: 10px;
  }

  .barcode-scanner-head h3 {
    font-size: 22px;
  }

  .barcode-video-wrap {
    margin: 14px 0;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    min-height: min(58vh, 440px);
  }

  .barcode-scanner-backdrop.is-qr .barcode-video-wrap {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .barcode-scanner-actions {
    display: grid;
  }

  .barcode-scanner-actions .btn {
    width: 100%;
  }

  .product-modal-backdrop {
    align-items: start;
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .product-modal-card {
    width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 16px;
    border-radius: 22px;
  }

  .product-variation-editor {
    padding: 10px;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
  }

  .product-variation-tools,
  .selected-model-head,
  .model-detail-add,
  .model-detail-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .product-variation-tools .btn,
  .selected-model-head button,
  .model-detail-add button,
  .model-detail-row button,
  .model-detail-row input {
    width: 100%;
  }

  .product-brand-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .product-brand-tabs button {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    white-space: normal;
  }

  .product-model-list {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .product-selected-models {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-model-option,
  .product-selected-model,
  .variation-choice-list button {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-model-option small {
    justify-self: start;
  }

  .product-selected-model:not(.has-details) {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-stock-summary {
    grid-template-columns: 1fr;
  }

  .model-qty-stepper {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .product-selected-model input {
    width: 100%;
  }

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

  .product-import-textarea {
    min-height: 240px;
  }

  .product-brand-tabs {
    gap: 6px;
    padding: 0 2px 6px;
    margin-inline: -2px;
  }

  .product-brand-tabs button {
    flex-basis: auto;
    min-width: 82px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
    text-align: center;
  }

  .product-model-list {
    max-height: 160px;
  }

  .product-selected-models {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .model-stock-summary {
    grid-template-columns: 1fr;
  }

  .product-model-option,
  .product-selected-model,
  .variation-choice-list button {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    min-height: 44px;
    padding: 8px;
  }

  .product-selected-model.has-details {
    gap: 8px;
    overflow: visible;
  }

  .model-detail-add {
    gap: 6px;
  }

  .model-detail-add select,
  .model-detail-add input,
  .product-selected-model.has-details .model-detail-row input {
    width: 100%;
  }
}

.sale-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  color: #052e16;
  background: linear-gradient(135deg, rgba(138,243,95,.48), rgba(52,214,247,.40));
  font-weight: 900;
}

.sale-summary .is-hidden {
  display: none !important;
}

.products-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.list-more-btn {
  width: min(100%, 260px);
  margin: 12px auto 0;
}

.products-scroll-list,
.stock-scroll-list {
  max-height: 620px;
}

.product-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.product-item.is-inactive-product {
  background: #fff8ed;
  border-color: rgba(245, 158, 11, .38);
}

.product-item.is-inactive-product .product-thumb,
.product-item.is-inactive-product .product-prices {
  opacity: .72;
}

.product-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(245, 158, 11, .28);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  vertical-align: middle;
}

.product-item.is-selecting {
  grid-template-columns: 42px 76px minmax(0, 1fr) auto auto;
  border-color: rgba(220,38,38,.18);
}

.product-select {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.10);
}

.product-select[hidden] {
  display: none;
}

.product-select input {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
}

.product-thumb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #728095;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.07);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.product-photo-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background:
    radial-gradient(circle at 30% 18%, rgba(41,193,95,.14), transparent 40%),
    radial-gradient(circle at 76% 12%, rgba(24,201,245,.14), transparent 42%),
    rgba(255,255,255,.58);
}

.product-photo-empty small {
  color: #728095;
  font-size: 10px;
  font-weight: 900;
}

.photo-icon {
  position: relative;
  width: 34px;
  height: 27px;
  display: block;
  border-radius: 8px;
  border: 2px solid rgba(19,138,67,.76);
  background: linear-gradient(135deg, rgba(138,243,95,.26), rgba(52,214,247,.22));
  box-shadow: 0 8px 18px rgba(41,193,95,.12);
}

.photo-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -6px;
  width: 13px;
  height: 7px;
  border-radius: 6px 6px 0 0;
  background: rgba(19,138,67,.76);
}

.photo-icon i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid rgba(24,201,245,.92);
  transform: translate(-50%, -50%);
}

.photo-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(167,255,31,.88);
}

.product-info strong,
.product-info span,
.product-prices span,
.product-prices strong {
  display: block;
}

.product-info strong {
  font-size: 17px;
}

.product-info span,
.product-prices span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.product-prices {
  text-align: right;
  font-weight: 900;
}

.product-prices strong {
  color: var(--green-dark);
}

.stock-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.stock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px 140px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.stock-editable {
  cursor: pointer;
  outline: none;
}

.stock-editable:focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary) 36%, rgba(16,32,51,.08));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.stock-item.is-low {
  background: rgba(255, 200, 87, .14);
  border-color: rgba(255, 159, 28, .30);
}

.stock-product-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stock-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #728095;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.07);
}

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

.stock-thumb .product-photo-empty small {
  display: none;
}

.stock-thumb .photo-icon {
  transform: scale(.78);
}

.stock-item strong,
.stock-item span {
  display: block;
}

.stock-item span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.stock-item .stock-edit-hint {
  color: var(--green-dark);
  font-size: 12px;
}

.model-stock-modal-card {
  max-width: 760px;
}

.model-stock-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.model-stock-overview article {
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(16,32,51,.08);
}

.model-stock-overview article.is-low {
  border-color: rgba(255,159,28,.34);
  background: rgba(255,200,87,.18);
}

.model-stock-overview span,
.model-stock-card-head span,
.model-stock-detail small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.model-stock-overview strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
}

.model-stock-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding-right: 4px;
  margin-top: 12px;
}

.model-stock-card {
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  padding: 14px;
}

.model-stock-card.is-low {
  border-color: rgba(255,159,28,.38);
  background:
    radial-gradient(circle at 16% 0%, rgba(255,200,87,.22), transparent 36%),
    rgba(255,255,255,.92);
}

.model-stock-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.model-stock-card-head strong {
  color: var(--ink);
  font-size: 16px;
}

.model-stock-card-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #7a4a00;
  background: rgba(255,200,87,.36);
  font-size: 11px;
  text-transform: uppercase;
}

.model-stock-card-head b.is-ok {
  color: #087245;
  background: rgba(121,226,190,.26);
}

.model-stock-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.model-stock-detail {
  border-radius: 14px;
  background: rgba(243,248,251,.96);
  padding: 10px;
}

.model-stock-detail.is-low {
  background: rgba(255,200,87,.22);
}

.model-stock-detail span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.model-stock-detail strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 20px;
}

@media (max-width: 720px) {
  .model-stock-modal-card {
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  .model-stock-overview,
  .model-stock-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-stock-list {
    max-height: calc(100vh - 260px);
  }

  .model-stock-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .model-stock-card-head b {
    width: fit-content;
  }
}

.stock-item > div:not(:first-child) {
  text-align: right;
}

.stock-item > div:not(:first-child) strong {
  color: var(--green-dark);
}

.stock-filter-card {
  cursor: pointer;
  outline: none;
}

.stock-filter-card:hover,
.stock-filter-card:focus-visible,
.stock-filter-card.is-filtering {
  border-color: rgba(255,159,28,.38);
  background:
    radial-gradient(circle at 20% 8%, rgba(255,200,87,.24), transparent 36%),
    rgba(255,255,255,.9);
}

.stock-filter-card.is-filtering {
  box-shadow: 0 0 0 4px rgba(255,159,28,.13), 0 24px 52px rgba(16,32,51,.11);
}

.stock-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-filter-status .btn {
  min-height: 38px;
  padding: 0 13px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-actions .btn {
  min-height: 40px;
  padding: 0 15px;
}

.wide-card {
  grid-column: 1 / -1;
}

.approval-panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: var(--shadow);
}

.approval-panel[hidden] {
  display: none;
}

.approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.approval-head h2 {
  margin-top: 12px;
  font-size: 30px;
}

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

.master-client-search {
  margin: 18px 0 14px;
}

.master-client-list {
  max-height: 696px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.master-client-list::-webkit-scrollbar {
  width: 8px;
}

.master-client-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(24,201,245,.12);
}

.master-client-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.master-client-item {
  position: relative;
  overflow: visible;
  min-height: 220px;
  align-items: stretch;
}

.master-client-item.is-dropdown-open {
  z-index: 70;
  margin-bottom: 174px;
}

.master-client-side {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 12px;
}

.premium-status-pill {
  width: fit-content;
  margin-top: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.premium-status-pill.is-active {
  color: #0f6b38;
  background: rgba(41,215,126,.16);
  border: 1px solid rgba(41,215,126,.28);
}

.premium-status-pill.is-blocked {
  color: #9b1c1f;
  background: rgba(255,90,95,.13);
  border: 1px solid rgba(255,90,95,.26);
}

.maintenance-status-pill {
  width: fit-content;
  margin-top: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.maintenance-status-pill.is-active {
  color: #7c3f00;
  background: rgba(255,200,87,.18);
  border: 1px solid rgba(255,159,28,.34);
}

.maintenance-status-pill.is-idle {
  color: #0f6b38;
  background: rgba(41,215,126,.12);
  border: 1px solid rgba(41,215,126,.24);
}

.maintenance-status-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.premium-day-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.premium-day-actions .btn {
  min-height: 40px;
  padding: 0 14px;
}

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

.import-summary-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
}

.import-summary-grid article.is-clickable {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.import-summary-grid article.is-clickable:hover,
.import-summary-grid article.is-clickable.is-active {
  transform: translateY(-2px);
  border-color: rgba(255,159,28,.48);
  box-shadow: 0 18px 34px rgba(255,159,28,.18);
}

.import-summary-grid article.is-clickable.is-active {
  outline: 2px solid rgba(255,159,28,.26);
}

.import-summary-grid span,
.import-review-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.import-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 30px;
}

.import-summary-grid .is-warning {
  background: rgba(255,200,87,.16);
  border-color: rgba(255,159,28,.30);
}

.import-summary-grid .is-ok {
  background: rgba(41,215,126,.13);
  border-color: rgba(41,215,126,.28);
}

.import-preview-section {
  margin-top: 20px;
}

.import-preview-section h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.import-preview-section p {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.import-safe-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(41, 215, 126, .28);
  border-radius: 16px;
  background: rgba(41, 215, 126, .10);
  color: var(--ink);
  font-weight: 900;
}

.import-safe-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.import-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.import-review-actions .btn {
  min-height: 42px;
  border-color: rgba(255,159,28,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,232,183,.72));
  color: #7a4c00;
  box-shadow: 0 14px 30px rgba(255,159,28,.14);
}

.import-cost-actions {
  padding-top: 10px;
  border-top: 1px solid rgba(16,32,51,.08);
}

.import-cost-actions .btn {
  border-color: rgba(41,193,95,.26);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(124,235,213,.30));
  color: var(--green-dark);
  box-shadow: 0 14px 30px rgba(41,193,95,.12);
}

.import-margin-actions span {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-margin-actions label {
  display: grid;
  gap: 5px;
  min-width: 120px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-margin-actions input {
  min-height: 42px;
  border-radius: 13px;
}

.import-filter-notice {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #7a4c00;
  background: rgba(255,200,87,.18);
  border: 1px solid rgba(255,159,28,.30);
  font-size: 13px;
  font-weight: 900;
}

.import-table-wrap,
.import-review-list,
.import-match-list {
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}

.import-preview-table th,
.import-preview-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(16,32,51,.08);
  text-align: left;
  font-size: 13px;
}

.import-preview-table th {
  color: var(--ink);
  background: rgba(124,235,213,.18);
  font-weight: 900;
}

.import-review-list,
.import-match-list {
  display: grid;
  gap: 10px;
}

.import-wizard {
  display: grid;
  gap: 14px;
}

.import-wizard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(41,215,126,.13), rgba(24,201,245,.10)), rgba(255,255,255,.86);
  border: 1px solid rgba(41,215,126,.24);
}

.import-wizard-head span,
.import-wizard-head strong {
  display: block;
}

.import-wizard-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-wizard-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.import-wizard-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16,32,51,.08);
}

.import-wizard-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.import-wizard-card .import-match-item {
  grid-template-columns: minmax(260px, .8fr) minmax(250px, .65fr) minmax(380px, 1.15fr);
  min-height: 240px;
}

.import-wizard-card .import-match-actions input {
  min-height: 52px;
  font-size: 16px;
}

.import-wizard-card .import-match-results {
  max-height: 300px;
}

.import-wizard-card .import-match-result {
  min-height: 66px;
}

.import-wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.import-wizard-actions .btn {
  min-width: 130px;
}

.import-wizard-actions .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.duplicate-products-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.duplicate-product-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,159,28,.24);
}

.duplicate-product-item > div {
  min-width: 0;
}

.duplicate-product-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.duplicate-product-item strong,
.duplicate-product-item small {
  display: block;
}

.duplicate-product-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.duplicate-product-item small {
  margin-top: 5px;
  color: #7a4c00;
  font-size: 12px;
  font-weight: 850;
}

.master-product-picker {
  margin: 0 0 12px;
}

.import-review-item,
.import-match-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,159,28,.24);
}

.import-match-item {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(320px, 520px);
  align-items: stretch;
}

.import-review-item strong,
.import-match-item strong {
  display: block;
  color: var(--ink);
}

.import-match-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.import-match-choice {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
}

.import-match-choice-card,
.import-match-result-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.import-match-product-photo,
.import-match-product-photo .lazy-product-photo,
.import-match-product-photo .product-photo-empty {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

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

.import-match-result-info {
  min-width: 0;
}

.import-match-choice span {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-match-choice strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.import-match-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 8px;
}

.import-match-actions .btn {
  min-height: 42px;
  white-space: nowrap;
  width: 100%;
}

.import-match-actions span {
  margin: 0;
  color: #9b1c1f;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.import-match-results {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.import-match-result {
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.import-match-result:hover,
.import-match-result.is-selected {
  border-color: color-mix(in srgb, var(--brand-primary) 46%, transparent);
  background: linear-gradient(135deg, rgba(41,193,95,.16), rgba(24,201,245,.12)), rgba(255,255,255,.94);
}

.import-match-result.is-selected {
  transform: translateY(-1px);
}

.import-match-result strong,
.import-match-result span,
.import-match-result small {
  display: block;
}

.import-match-result strong {
  font-size: 14px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.import-match-result span,
.import-match-result small,
.import-match-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.import-match-result-card,
.import-match-result-info,
.import-match-result-info span,
.import-match-result-info small {
  margin-top: 0;
}

.import-match-result-info span {
  margin-top: 5px;
}

.import-match-result-info small {
  margin-top: 5px;
  color: var(--green-dark);
  font-weight: 950;
}

.import-match-empty {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,90,95,.08);
  color: #9b1c1f;
}

.import-review-item small,
.import-match-item small {
  display: block;
  margin-top: 5px;
  color: #9a6511;
  font-size: 12px;
  font-weight: 900;
}

.import-review-item.is-required,
.import-match-item.is-unmatched {
  background: rgba(255,90,95,.10);
  border-color: rgba(255,90,95,.34);
}

.import-review-item.is-required small,
.import-match-item.is-unmatched small {
  color: #9b1c1f;
}

.import-match-item.is-matched {
  background: rgba(41,215,126,.12);
  border-color: rgba(41,215,126,.30);
}

.import-match-item.is-matched small {
  color: var(--green-dark);
}

.import-review-item label,
.import-match-item label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-review-item input,
.import-match-item input,
.import-match-item select {
  min-height: 42px;
  border-radius: 13px;
  width: 100%;
}

.import-wizard-card .import-match-item {
  grid-template-columns: minmax(260px, .55fr) minmax(520px, 1.45fr);
  grid-template-areas:
    "source actions"
    "choice actions";
  align-items: start;
  min-height: 0;
}

.import-wizard-card .import-match-item > div:first-child {
  grid-area: source;
  min-width: 0;
}

.import-wizard-card .import-match-choice {
  grid-area: choice;
  align-self: start;
}

.import-wizard-card .import-match-actions {
  grid-area: actions;
  align-self: start;
}

.import-wizard-card .import-match-results {
  max-height: min(58vh, 620px);
}

.import-match-result .import-match-result-card,
.import-match-choice .import-match-choice-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.import-match-result .import-match-product-photo,
.import-match-choice .import-match-product-photo {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.import-match-result .lazy-product-photo,
.import-match-choice .lazy-product-photo,
.import-match-result .product-photo-empty,
.import-match-choice .product-photo-empty {
  width: 68px;
  height: 68px;
  margin: 0;
}

.import-match-result-info,
.import-match-choice-card > div {
  min-width: 0;
}

.import-match-result .import-match-result-info > strong,
.import-match-choice-card > div > strong {
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.import-match-result .import-match-result-info > span,
.import-match-result .import-match-result-info > small,
.import-match-choice-card > div > span,
.import-match-choice-card > div > small {
  margin-top: 5px;
  text-align: left;
}

.import-products-client-list {
  margin-top: 0;
  padding: 2px 4px 2px 0;
  max-height: min(58vh, 620px);
  overflow: auto;
}

.import-product-client-item {
  width: 100%;
  border: 1px solid rgba(16,32,51,.07);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.import-product-client-item:hover,
.import-product-client-item.is-selected {
  border-color: color-mix(in srgb, var(--brand-primary) 44%, transparent);
  background: linear-gradient(135deg, rgba(41,193,95,.14), rgba(24,201,245,.10)), #f7fbff;
}

.import-product-client-item.is-selected {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-primary) 32%, transparent);
}

.import-product-client-item .product-info,
.import-product-client-item .product-prices {
  min-width: 0;
}

.import-product-client-item .product-info span,
.import-product-client-item .product-prices span,
.import-product-client-item .product-meta-line,
.import-product-client-item .product-meta-chip {
  color: var(--muted);
  text-align: left;
  text-transform: none;
}

.import-product-client-item .product-info strong,
.import-product-client-item .product-prices strong {
  color: var(--ink);
  text-align: left;
}

.import-product-client-item .product-prices {
  text-align: right;
}

.import-product-client-item .product-prices strong {
  color: var(--green-dark);
  text-align: right;
}

.import-product-client-item .product-actions {
  pointer-events: none;
}

.import-product-client-item .product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.import-product-score {
  color: var(--green-dark) !important;
  font-weight: 950 !important;
}

@media (max-width: 760px) {
  .import-review-item,
  .import-match-item,
  .duplicate-product-item {
    grid-template-columns: 1fr;
  }

  .import-wizard-head,
  .import-wizard-card .import-match-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "source"
      "choice"
      "actions";
  }

  .import-wizard-actions .btn {
    flex: 1 1 120px;
  }

  .import-match-choice-card,
  .import-match-result-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .import-match-product-photo,
  .import-match-product-photo .lazy-product-photo,
  .import-match-product-photo .product-photo-empty {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}

.approval-item,
.approval-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.approval-item strong,
.approval-item span {
  display: block;
}

.approval-item span,
.approval-empty {
  color: var(--muted);
  font-weight: 800;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-pdv-type {
  display: grid;
  gap: 8px;
  width: min(100%, 320px);
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-pdv-dropdown {
  position: relative;
  z-index: 30;
}

.admin-pdv-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 16px;
  border: 1px solid rgba(24,201,245,.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124,235,213,.34), rgba(24,201,245,.16) 48%, rgba(41,215,126,.18)),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,252,255,.92));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 14px 32px rgba(10,95,125,.1);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  outline: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-pdv-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-pdv-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--brand-primary);
  border-bottom: 3px solid var(--brand-primary);
  border-radius: 2px;
  pointer-events: none;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(41,215,126,.38));
  transition: transform .2s ease, border-color .2s ease;
}

.admin-pdv-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(41,215,126,.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 18px 38px rgba(10,95,125,.14);
}

.admin-pdv-trigger:focus-visible,
.admin-pdv-dropdown.is-open .admin-pdv-trigger {
  border-color: rgba(41,215,126,.58);
  box-shadow:
    0 0 0 4px rgba(41,215,126,.15),
    inset 0 1px 0 rgba(255,255,255,.96),
    0 18px 42px rgba(10,95,125,.16);
}

.admin-pdv-dropdown.is-open .admin-pdv-trigger {
  border-radius: 18px 18px 10px 10px;
}

.admin-pdv-dropdown.is-open .admin-pdv-trigger::after {
  border-color: var(--brand-secondary);
  transform: translateY(4px) rotate(225deg);
}

.admin-pdv-menu {
  position: absolute;
  inset: calc(100% - 1px) 0 auto 0;
  z-index: 90;
  display: grid;
  max-height: 162px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(24,201,245,.34);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(135deg, rgba(238,255,251,.98), rgba(238,250,255,.97)),
    rgba(255,255,255,.98);
  box-shadow: 0 22px 46px rgba(10,95,125,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transform-origin: top;
  transition: opacity .18s ease, transform .18s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.admin-pdv-dropdown.is-open .admin-pdv-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.admin-pdv-menu::-webkit-scrollbar {
  width: 7px;
}

.admin-pdv-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(24,201,245,.12);
}

.admin-pdv-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.admin-pdv-option {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.admin-pdv-option:hover,
.admin-pdv-option.is-selected {
  background: linear-gradient(135deg, rgba(124,235,213,.42), rgba(24,201,245,.2));
  color: #06263a;
}

.admin-pdv-option:hover {
  transform: translateX(2px);
}

.delete-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 18, 32, .48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: backdropIn .18s ease both;
}

.delete-confirm-card {
  width: min(100%, 430px);
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,90,95,.14), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(24,201,245,.14), transparent 34%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(5, 18, 32, .28);
  animation: modalIn .24s ease both;
}

.delete-confirm-card h3 {
  font-size: 26px;
}

.delete-confirm-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.delete-confirm-card input {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.86);
}

.delete-confirm-card input:focus {
  border-color: rgba(220,38,38,.48);
  box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}

.delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.brand-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 18, 32, .48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: backdropIn .18s ease both;
}

.brand-dialog-card {
  width: min(100%, 460px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 34%),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--brand-secondary) 16%, transparent), transparent 34%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(5, 18, 32, .28);
  animation: modalIn .24s ease both;
}

.brand-dialog-card h3 {
  font-size: 26px;
}

.brand-dialog-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.brand-dialog-card input {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.86);
}

.brand-dialog-card input:focus {
  border-color: color-mix(in srgb, var(--brand-primary) 52%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.brand-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.premium-placeholder {
  width: min(900px, calc(100% - 36px));
  margin: 60px auto;
  min-height: auto;
}

.premium-placeholder img {
  width: min(100%, 280px);
  margin-bottom: 20px;
}

.premium-placeholder h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 72px);
}

.premium-placeholder p {
  max-width: 680px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.settings-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.unit-config-list {
  display: grid;
  gap: 14px;
}

.unit-config-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(247,251,255,.86);
  border: 1px solid rgba(16,32,51,.08);
}

.unit-config-logo {
  display: grid;
  align-content: start;
  gap: 10px;
}

.unit-config-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(16,32,51,.08);
}

.unit-config-logo label {
  width: max-content;
}

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

.unit-config-title,
.unit-config-actions {
  grid-column: 1 / -1;
}

.unit-config-title strong,
.unit-config-title span {
  display: block;
}

.unit-config-title span {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.unit-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.premium-account {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 46px 0;
}

.premium-account-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 24px;
}

.premium-account-hero img {
  width: min(260px, 70vw);
  filter: drop-shadow(0 0 24px rgba(41,193,95,.2));
}

.premium-account-hero h1 {
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1;
}

.premium-account-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 750;
}

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

.premium-account-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(124,235,213,.2), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(24,201,245,.14), transparent 34%),
    rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 24px 58px rgba(16,32,51,.1);
}

.premium-main-card,
.premium-actions-card {
  grid-column: span 2;
}

.premium-account-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-account-card strong {
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
}

.premium-account-card p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 750;
}

.premium-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.premium-panel-grid {
  margin-top: 18px;
}

.premium-pix-box {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(16,32,51,.08);
}

.premium-pix-alert {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.premium-pix-alert.is-ok {
  color: #166534;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.28);
}

.premium-pix-alert.is-warn {
  color: #92400e;
  background: rgba(255,200,87,.18);
  border: 1px solid rgba(255,159,28,.30);
}

.premium-pix-alert.is-error {
  color: #991b1b;
  background: rgba(239,68,68,.14);
  border: 1px solid rgba(239,68,68,.28);
}

.premium-pix-qrcode {
  width: min(230px, 100%);
  justify-self: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 16px 38px rgba(16,32,51,.12);
}

.premium-pix-copy {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.premium-pix-copy textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 16px;
  word-break: break-all;
}

.summary-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.summary-filter {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #415066;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(16,32,51,.08);
  font-weight: 900;
  cursor: pointer;
}

.summary-filter.active {
  color: #052e16;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 68%, white), color-mix(in srgb, var(--brand-secondary) 58%, white));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.summary-custom-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-custom-filter input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(16,32,51,.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.82);
  font-weight: 800;
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
  margin-top: 14px;
}

.summary-chart-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 24px 58px rgba(16,32,51,.1);
}

.summary-chart-panel h3 {
  margin-bottom: 18px;
}

.summary-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 280px;
  padding: 16px 8px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247,251,255,.92), rgba(255,255,255,.62));
}

.summary-chart-group {
  display: grid;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.summary-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 220px;
}

.summary-bars span {
  width: 14px;
  min-height: 0;
  border-radius: 999px 999px 4px 4px;
}

.bar-revenue {
  background: linear-gradient(180deg, var(--brand-secondary), #0ea5e9);
}

.bar-profit {
  background: linear-gradient(180deg, var(--brand-primary), #22c55e);
}

.summary-chart-group small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
}

.summary-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.summary-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.summary-ranking {
  display: grid;
  gap: 10px;
  max-height: 306px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(24,201,245,.14);
}

.summary-ranking::-webkit-scrollbar {
  width: 8px;
}

.summary-ranking::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(24,201,245,.12);
}

.summary-ranking::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.summary-ranking article {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.06);
}

.summary-ranking strong,
.summary-ranking span {
  display: block;
}

.summary-ranking span {
  color: var(--muted);
  font-weight: 800;
}

.summary-ranking i {
  height: 8px;
  width: var(--rank);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.finance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 34%),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 34%),
    rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 24px 58px rgba(16,32,51,.1);
}

.finance-hero span,
.finance-section-title span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.finance-hero h2 {
  margin: 6px 0;
}

.finance-hero p,
.finance-action-card p,
.finance-latest-panel span,
.finance-entry-item span {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.finance-hero-total {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
}

.finance-hero-total strong {
  font-size: 28px;
}

.finance-hero-total small {
  color: var(--muted);
  font-weight: 900;
}

.finance-sync-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  color: #7c2d12;
  background: rgba(255,200,87,.18);
  border: 1px solid rgba(255,159,28,.32);
}

.finance-sync-alert strong {
  font-size: 13px;
}

.finance-sync-alert .btn {
  min-height: 38px;
  padding: 0 12px;
}

.finance-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 14px 34px rgba(16,32,51,.07);
}

.finance-filter-panel label {
  display: grid;
  gap: 7px;
  color: #4a5a70;
  font-weight: 900;
}

.finance-filter-panel input,
.finance-filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-weight: 850;
  outline: none;
}

.finance-summary-grid,
.finance-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.finance-summary-grid article,
.finance-result-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 16px 38px rgba(16,32,51,.08);
}

.finance-summary-grid span,
.finance-result-grid span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-summary-grid strong,
.finance-result-grid strong {
  font-size: 22px;
}

.finance-summary-grid p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.finance-flow-panel {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.finance-flow-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-height: 180px;
}

.finance-flow-chart article {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  min-width: 0;
}

.finance-flow-chart article > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-items: end;
  min-height: 110px;
  padding: 10px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.06);
}

.finance-flow-chart i {
  display: block;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
}

.finance-flow-chart .is-positive-bar {
  background: linear-gradient(180deg, var(--brand-primary), #16a34a);
}

.finance-flow-chart .is-negative-bar {
  background: linear-gradient(180deg, #fb7185, #dc2626);
}

.finance-flow-chart strong,
.finance-flow-chart span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.finance-category-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-category-breakdown article {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.finance-category-breakdown h4 {
  margin: 0;
}

.finance-category-breakdown article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.finance-card-grid {
  display: grid;
  gap: 12px;
}

.finance-action-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.finance-action-card > button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.finance-action-card > button span {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 19px;
  font-weight: 950;
}

.finance-action-card > button strong {
  white-space: nowrap;
  font-size: 20px;
}

.finance-action-card > button small {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  color: #0f5132;
  background: color-mix(in srgb, var(--brand-primary) 18%, white);
  font-weight: 950;
}

.finance-card-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  animation: uiPopIn .28s ease both;
}

.finance-entry-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.finance-entry-form label {
  display: grid;
  gap: 7px;
  color: #4a5a70;
  font-weight: 900;
}

.finance-entry-form input,
.finance-entry-form select,
.finance-entry-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  font-weight: 850;
  outline: none;
}

.finance-entry-form textarea {
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

.finance-form-wide {
  grid-column: 1 / -1;
}

.finance-entry-form .btn {
  align-self: end;
  min-height: 44px;
}

.finance-card-list,
.finance-latest-list {
  display: grid;
  gap: 9px;
}

.finance-vehicle-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 34%),
    #f7fbff;
  border: 1px solid rgba(16,32,51,.07);
}

.finance-vehicle-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.finance-vehicle-form label {
  display: grid;
  gap: 7px;
  color: #4a5a70;
  font-weight: 900;
}

.finance-vehicle-form input {
  min-height: 44px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  font-weight: 850;
  outline: none;
}

.finance-vehicle-form .btn {
  align-self: end;
  min-height: 44px;
}

.finance-vehicle-list {
  display: grid;
  gap: 8px;
}

.finance-vehicle-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
}

.finance-vehicle-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 850;
}

.finance-entry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(16,32,51,.08);
}

.finance-entry-item.is-overdue {
  border-color: rgba(220,38,38,.28);
  background: linear-gradient(90deg, rgba(254,226,226,.8), rgba(255,255,255,.9));
}

.finance-entry-item small {
  display: block;
  margin-top: 4px;
  color: #7b8797;
  font-weight: 800;
}

.finance-entry-item > strong {
  white-space: nowrap;
}

.finance-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.finance-entry-item .btn {
  min-height: 36px;
  padding: 0 12px;
}

.finance-latest-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.finance-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.is-positive {
  color: #0f6b38 !important;
}

.is-negative {
  color: #dc2626 !important;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--brand-primary) 17%, transparent), transparent 34%),
    radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 34%),
    rgba(255,255,255,.88);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 22px 54px rgba(16,32,51,.10);
}

.market-hero span,
.market-panel .finance-section-title span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.market-hero h2 {
  margin: 6px 0;
}

.market-hero p,
.market-note p,
.market-item p,
.market-order-item p,
.market-order-item small,
.market-item small,
.market-summary-grid p {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.market-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.market-hero-status {
  min-width: 174px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,51,.08);
  text-align: center;
}

.market-hero-status strong {
  display: block;
  font-size: 34px;
}

.market-hero-status span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.market-connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 42px rgba(16,32,51,.08);
}

.market-connection-card.is-connected {
  border-color: color-mix(in srgb, var(--brand-primary) 38%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 14%, white), rgba(255,255,255,.92));
}

.market-connection-card.is-warning {
  border-color: rgba(245,158,11,.35);
}

.market-connection-card span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.market-connection-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.market-connection-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.market-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.market-summary-grid article,
.market-panel,
.market-note {
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  box-shadow: 0 18px 44px rgba(16,32,51,.08);
}

.market-summary-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
}

.market-summary-grid span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.market-summary-grid strong {
  font-size: 26px;
}

.market-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
}

.market-form,
.market-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.market-form label,
.market-filter-panel label {
  display: grid;
  gap: 7px;
  color: #4a5a70;
  font-weight: 900;
}

.market-form input,
.market-form select,
.market-filter-panel input,
.market-filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-weight: 850;
  outline: none;
}

.market-check {
  min-height: 44px;
  align-self: end;
}

.market-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.market-order-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.market-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 120px 150px auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(247,251,255,.88);
  border: 1px solid rgba(16,32,51,.08);
}

.market-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 150px auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(247,251,255,.88);
  border: 1px solid rgba(16,32,51,.08);
}

.market-item.needs-pause {
  border-color: rgba(220,38,38,.26);
  background: linear-gradient(90deg, rgba(254,226,226,.68), rgba(247,251,255,.9));
}

.market-item h4,
.market-order-item h4 {
  margin: 3px 0;
}

.market-item > div:first-child > span,
.market-order-item > div:first-child > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.market-stock,
.market-status,
.market-order-total {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,51,.08);
  text-align: center;
  font-weight: 900;
}

.market-stock strong,
.market-order-total strong {
  font-size: 22px;
}

.market-stock span,
.market-order-total span {
  color: var(--muted);
  font-size: 12px;
}

.market-status.is-danger {
  color: #991b1b;
  background: rgba(254,226,226,.9);
}

.market-status.is-ok {
  color: #0f5132;
  background: color-mix(in srgb, var(--brand-primary) 15%, white);
}

.market-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.market-actions .btn {
  min-height: 36px;
  padding: 0 12px;
}

.market-note {
  padding: 16px;
}

.market-note strong {
  color: var(--green-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s ease, transform .62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-one {
  transition-delay: .12s;
}

.delay-two {
  transition-delay: .22s;
}

.module-panel.is-switching {
  animation: panelSwitch .34s ease both;
}

.app-view-enter {
  animation: appViewEnter .32s ease both;
}

.ui-pop-in {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  animation: uiPopIn .42s ease forwards;
  animation-delay: var(--stagger, 0ms);
}

.app-card,
.approval-item,
.product-item,
.sale-product-card,
.sale-item,
.stock-item,
.settings-panel,
.settings-preview,
.cash-status-panel,
.sale-panel,
.sale-summary,
.operator-lock {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.app-card:hover,
.approval-item:hover,
.product-item:hover,
.sale-product-card:hover,
.stock-item:hover,
.settings-panel:hover,
.settings-preview:hover,
.cash-status-panel:hover,
.sale-panel:hover,
.sale-summary:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-primary) 24%, rgba(16,32,51,.08));
  box-shadow: 0 24px 52px rgba(16,32,51,.11);
}

.menu button {
  position: relative;
  overflow: hidden;
}

.menu button::after {
  content: "";
  position: absolute;
  inset: auto 14px 8px 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.menu button:hover::after,
.menu button.active::after {
  transform: scaleX(1);
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -18px, 0) scale(1.04); }
}

@keyframes appShellIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes appViewEnter {
  0% { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes sectionLoaderIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes sectionLoaderOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes appLoaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes uiPopIn {
  0% { opacity: 0; transform: translateY(12px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drawerIn {
  0% { opacity: 0; transform: translateY(-8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelSwitch {
  0% { opacity: .52; transform: translateY(12px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdropIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes modalIn {
  0% { opacity: 0; transform: translateY(14px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .finance-hero,
  .finance-action-card > button,
  .finance-entry-item {
    grid-template-columns: 1fr;
  }

  .finance-hero-total,
  .finance-action-card > button small {
    justify-self: stretch;
  }

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

  .finance-filter-panel,
  .finance-entry-form {
    grid-template-columns: 1fr;
  }

  .finance-flow-chart,
  .finance-category-breakdown {
    grid-template-columns: 1fr;
  }

  .finance-vehicle-form,
  .finance-vehicle-list article {
    grid-template-columns: 1fr;
  }

  .finance-action-card > button {
    padding: 16px;
  }

  .finance-entry-item > strong,
  .finance-action-card > button strong {
    white-space: normal;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(16,32,51,.08);
    box-shadow: 0 10px 24px rgba(16,32,51,.08);
    font-size: 13px;
    white-space: nowrap;
  }

  .hero,
  .module-panel,
  .split-section,
  .info-grid,
  .cash-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .module-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-cards {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .panel-page {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    border-radius: 22px;
    padding: 14px;
  }

  .app-sidebar img {
    width: 138px;
  }

  .app-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .app-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .app-sidebar button,
  .premium-link {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
    text-align: center;
  }

  .logout-btn {
    margin-top: 0;
  }

  .app-content {
    border-radius: 22px;
    padding: 20px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card > .auth-tabs,
  .auth-card > .auth-form {
    grid-column: 1;
  }

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

  .app-header {
    display: grid;
  }

  .product-form,
  .product-item,
  .master-client-item {
    grid-template-columns: 1fr;
  }

  .master-client-item {
    display: grid;
    min-height: auto;
  }

  .master-client-side {
    justify-items: stretch;
  }

  .premium-day-actions {
    display: grid;
    justify-content: stretch;
  }

  .settings-layout,
  .settings-colors,
  .operator-create-grid,
  .operator-row,
  .operator-row > div:last-child,
  .unit-config-card,
  .unit-config-fields {
    grid-template-columns: 1fr;
  }

  .settings-section-head {
    display: grid;
  }

  .unit-config-logo {
    justify-items: start;
  }

  .unit-config-logo img {
    width: 96px;
    height: 96px;
  }

  .unit-config-actions {
    justify-content: stretch;
  }

  .unit-config-actions .btn {
    width: 100%;
  }

  .operator-badge {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    z-index: 140;
    width: 46px;
    height: 46px;
    margin-bottom: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(16,32,51,.14);
  }

  .operator-badge span,
  .operator-badge img {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .product-item.is-selecting {
    grid-template-columns: 1fr;
  }

  .product-toolbar,
  .product-bulk-bar,
  .product-bulk-bar div,
  .product-search-side,
  .product-filter-panel,
  .product-filter-actions {
    display: grid;
    justify-content: stretch;
  }

  .product-filter-panel label {
    width: 100%;
  }

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

  .product-prices,
  .product-actions {
    text-align: left;
    justify-content: flex-start;
  }

  .product-search {
    display: grid;
  }

  .sale-layout,
  .sale-add-form,
  .sale-edit-layout {
    grid-template-columns: 1fr;
  }

  .sale-product-grid {
    max-height: 164px;
  }

  .sale-summary,
  .sale-edit-summary {
    position: static;
  }

  .sale-item,
  .sale-item > div:last-child {
    display: grid;
    justify-content: stretch;
    text-align: left;
  }

  .stock-item {
    grid-template-columns: 1fr;
  }

  .stock-item > div:not(:first-child) {
    text-align: left;
  }

  .stock-product-main {
    align-items: flex-start;
  }

  .products-scroll-list,
  .stock-scroll-list {
    max-height: 520px;
  }

  .approval-head,
  .approval-item {
    display: grid;
  }

  .approval-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  #contentArea,
  #contentArea.app-view-enter,
  .ui-pop-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .ambient,
  .hero-card,
  .hero-logo,
  .phone-float,
  .metric-card,
  .operator-drawer,
  .app-card,
  .sale-panel,
  .sale-summary,
  .product-item,
  .sale-product-card,
  .sale-item,
  .stock-item,
  .settings-panel,
  .settings-preview,
  .market-hero,
  .market-panel,
  .market-item {
    animation: none !important;
  }

  .app-card,
  .sale-panel,
  .sale-summary,
  .product-item,
  .sale-product-card,
  .sale-item,
  .stock-item,
  .settings-panel,
  .settings-preview,
  .market-hero,
  .market-panel,
  .market-item {
    transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease !important;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .auth-page {
    padding: 14px;
  }

  .auth-card {
    min-height: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .auth-brand {
    padding: 18px;
    border-radius: 20px;
  }

  .auth-brand img {
    width: min(100%, 230px);
    margin-bottom: 14px;
  }

  .auth-brand h1 {
    font-size: 32px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .panel-page {
    padding: calc(62px + env(safe-area-inset-top)) 10px 10px;
    gap: 10px;
  }

  .panel-page.active {
    display: block;
    animation: none;
    transform: none;
  }

  .app-sidebar {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: calc(58px + env(safe-area-inset-right));
    top: calc(8px + env(safe-area-inset-top));
    bottom: auto;
    z-index: 90;
    display: block;
    padding: 5px;
    border-radius: 15px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    scrollbar-width: none;
    box-shadow: 0 18px 38px rgba(16,32,51,.12);
  }

  .app-sidebar::-webkit-scrollbar {
    display: none;
  }

  .app-sidebar img,
  .app-sidebar h3 {
    display: none;
  }

  .app-sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px 0 0;
    scroll-padding-left: 8px;
    scrollbar-width: none;
  }

  .app-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .app-sidebar button,
  .premium-link,
  .logout-btn {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .app-sidebar nav > :first-child {
    margin-left: 2px;
  }

  .operator-badge {
    top: calc(9px + env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
    z-index: 160;
  }

  .operator-badge span,
  .operator-badge img {
    width: 44px;
    height: 44px;
    border-width: 2px;
    font-size: 17px;
  }

  .premium-link {
    align-items: center;
  }

  .logout-btn {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .app-content {
    padding: 16px;
    min-height: calc(100vh - 108px);
    border-radius: 18px;
  }

  .app-content h2 {
    padding-right: 0;
    font-size: 28px;
    line-height: 1.12;
  }

  .section-title-row {
    display: grid;
  }

  .section-title-row p,
  .app-content p {
    font-size: 14px;
    line-height: 1.55;
  }

  .app-grid {
    gap: 12px;
    margin-top: 18px;
  }

  .cell-dashboard-hero {
    display: grid;
    padding: 16px;
    border-radius: 18px;
  }

  .cell-dashboard-hero .btn {
    width: 100%;
  }

  .cell-kpi-grid,
  .cell-workspace-grid,
  .cell-setup-grid,
  .cell-flow-grid,
  .cell-report-grid,
  .cell-os-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cell-module-card,
  .cell-setup-card,
  .cell-os-board article {
    padding: 16px;
    border-radius: 18px;
  }

  .lens-builder-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .lens-builder-grid,
  .lens-result-card,
  .stock-location-card,
  .multi-unit-card,
  .transfer-item {
    grid-template-columns: 1fr;
  }

  .multi-stock-panel,
  .multi-stock-locator {
    padding: 14px;
    border-radius: 18px;
  }

  .multi-stock-grid {
    grid-template-columns: 1fr;
  }

  .stock-location-unit {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stock-location-unit .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-title-row.compact > strong {
    justify-content: center;
    width: 100%;
  }

  .multi-unit-actions {
    justify-content: stretch;
  }

  .multi-unit-actions .btn {
    width: 100%;
  }

  .unit-view-bar,
  .unit-view-bar label {
    display: grid;
    justify-content: stretch;
  }

  .unit-view-bar select {
    width: 100%;
  }

  .lens-results-head {
    display: grid;
  }

  .lens-results-list {
    max-height: 440px;
  }

  .lens-price {
    text-align: left;
  }

  .app-card,
  .cash-status-panel,
  .sale-panel,
  .sale-summary,
  .operator-lock,
  .settings-panel,
  .settings-preview {
    padding: 16px;
    border-radius: 18px;
  }

  .app-card {
    min-height: auto;
  }

  .cash-status-panel strong,
  .sale-summary > strong {
    font-size: 30px;
  }

  .cash-status-actions .btn,
  .sale-summary .btn,
  .product-toolbar .btn,
  .approval-actions .btn {
    width: 100%;
  }

  .sale-product-card {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    padding: 12px;
  }

  .sale-product-price {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }

  .sale-product-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .sale-item {
    display: grid;
  }

  .sale-qty-actions {
    justify-content: flex-start;
  }

  .sale-qty-input {
    width: 72px;
    height: 38px;
  }

  .product-modal-backdrop,
  .delete-confirm-backdrop,
  .brand-dialog-backdrop,
  .auth-backdrop {
    padding: 10px;
    align-items: end;
  }

  .product-modal-card,
  .delete-confirm-card,
  .brand-dialog-card,
  .auth-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 22px;
  }

  .product-modal-head {
    padding-right: calc(58px + env(safe-area-inset-right));
  }

  .product-modal-head .product-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .product-modal-head h3,
  .delete-confirm-card h3,
  .brand-dialog-card h3 {
    font-size: 23px;
  }

  .operator-drawer {
    top: calc(76px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow: auto;
    border-radius: 22px;
  }

  .operator-drawer-actions button {
    min-height: 58px;
  }

  .product-bulk-bar,
  .approval-item,
  .stock-item {
    padding: 14px;
    border-radius: 16px;
  }

  .product-bulk-bar div,
  .approval-actions,
  .product-actions {
    display: grid;
    justify-content: stretch;
  }

  .product-bulk-bar .btn,
  .approval-actions .btn,
  .product-actions .btn {
    width: 100%;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 76px;
  }

  .brand img {
    width: 132px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero h1,
  .module-copy h2,
  .split-copy h2,
  .info-copy h2,
  .report-copy h2,
  .cash-copy h2,
  .premium-copy h2,
  .section-head h2 {
    font-size: 38px;
  }

  .hero p,
  .module-copy p,
  .split-copy p,
  .info-copy p,
  .report-copy p,
  .cash-copy p,
  .premium-copy p {
    font-size: 16px;
  }

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

  .hero-product {
    min-height: auto;
  }

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

  .hero-floating {
    position: static;
    margin-top: 12px;
    width: 100%;
  }

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

  .module-panel,
  .product-window,
  .screen-card,
  .cash-panel,
  .price-card {
    border-radius: 24px;
  }

  .feature-strip,
  .info-section,
  .cash-section,
  .premium-section,
  .split-section,
  .report-section,
  .segments {
    padding: 64px 0;
  }

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

  .premium-account {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }

  .premium-account-grid {
    grid-template-columns: 1fr;
  }

  .premium-main-card,
  .premium-actions-card {
    grid-column: auto;
  }

  .premium-account-card strong {
    font-size: 28px;
  }

  .premium-account-actions {
    display: grid;
  }

  .premium-account-actions .btn {
    width: 100%;
  }

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

  .summary-custom-filter,
  .summary-custom-filter input,
  .summary-custom-filter .btn {
    width: 100%;
  }

  .summary-chart {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(54px, 1fr);
    grid-template-columns: none;
  }

  .market-hero,
  .market-item,
  .market-order-item {
    grid-template-columns: 1fr;
  }

  .market-hero-status,
  .market-connection-card,
  .market-status,
  .market-stock,
  .market-order-total {
    width: 100%;
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .market-connection-card {
    align-items: stretch;
    flex-direction: column;
  }

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

  .market-form,
  .market-filter-panel {
    grid-template-columns: 1fr;
  }

  .market-actions {
    display: grid;
    justify-content: stretch;
  }

  .market-actions .btn,
  .market-form .btn,
  .market-filter-panel .btn {
    width: 100%;
  }

  .market-list,
  .market-order-list {
    max-height: 420px;
  }
}

@media (max-width: 380px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    gap: 8px;
  }

  .brand img {
    width: 108px;
  }

  .login-link,
  .nav-actions .btn {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .sale-search-row {
    grid-template-columns: 1fr;
  }

  .sale-search-row .barcode-scan-btn,
  .barcode-input-row .barcode-scan-btn,
  .barcode-input-row .barcode-remove-btn,
  .barcode-add-btn {
    width: 100%;
  }

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

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

  .product-variation-editor {
    padding: 10px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .product-brand-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .product-brand-tabs button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .product-model-list {
    max-height: 220px;
    overflow-x: hidden;
  }

  .product-selected-models {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-model-option,
  .product-selected-model,
  .variation-choice-list button {
    grid-template-columns: minmax(0, 1fr);
    min-height: 44px;
    padding: 8px;
  }

  .product-variation-tools .btn,
  .product-selected-model > button {
    width: 100%;
  }

  .selected-model-head,
  .model-detail-add,
  .model-detail-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .model-detail-add {
    gap: 6px;
  }

  .selected-model-head {
    gap: 6px;
  }

  .selected-model-head button,
  .model-detail-add button,
  .model-detail-row button,
  .model-detail-row input {
    width: 100%;
  }

  .model-stock-summary {
    grid-template-columns: 1fr;
  }

  .model-qty-stepper {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

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

@media (max-width: 680px) {
  .summary-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin: 12px -2px 14px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .summary-filters::-webkit-scrollbar,
  .summary-chart::-webkit-scrollbar {
    height: 5px;
  }

  .summary-filters::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(18, 32, 51, .06);
  }

  .summary-filters::-webkit-scrollbar-thumb,
  .summary-chart::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  }

  .summary-filter {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 40px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .summary-custom-filter {
    flex: 0 0 min(92vw, 360px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
    scroll-snap-align: start;
  }

  .summary-custom-filter input,
  .summary-custom-filter .btn {
    width: 100%;
    min-width: 0;
  }

  .summary-custom-filter .btn {
    grid-column: 1 / -1;
  }

  .summary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .summary-chart-panel {
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .summary-chart-panel h3 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .summary-chart {
    display: flex;
    grid-template-columns: none;
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    gap: 10px;
    min-height: 220px;
    padding: 12px 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .summary-chart::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(24,201,245,.12);
  }

  .summary-chart-group {
    flex: 0 0 54px;
    min-width: 54px;
    scroll-snap-align: start;
  }

  .summary-bars {
    height: 164px;
  }

  .summary-bars span {
    width: 12px;
  }

  .summary-ranking {
    max-height: 270px;
    padding-right: 5px;
  }

  .summary-ranking article {
    padding: 12px;
    border-radius: 14px;
  }

  .purchase-item {
    grid-template-columns: 1fr;
  }

  .purchase-item > div:last-child {
    justify-content: stretch;
    text-align: left;
  }

  .purchase-price-input {
    flex: 1 1 calc(50% - 6px);
    min-width: 136px;
  }

  .purchase-price-input input {
    width: 100%;
  }
}
