:root {
  --blue: #1254b9;
  --blue-strong: #0a43a0;
  --blue-soft: #edf4ff;
  --yellow: #ffc958;
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #234064;
  --muted: #7f8fa5;
  --line: #d7e0ec;
  --shadow: 0 10px 24px rgba(14, 65, 144, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --success: #33a852;
  --danger: #d93025;
  --info: #2b78ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Glacial Indifference", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }

#app { min-height: 100vh; }

.auth-shell {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  justify-content: center;
  background-color: #1254b9;
  background-image: url("./icones/login-background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.login-page {
  width: min(100%, 1366px);
  min-height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  justify-items: stretch;
  align-items: start;
  gap: 72px;
  padding: 116px 124px 72px 88px;
  position: relative;
}

.login-showcase {
  min-width: 0;
  display: flex;
  align-items: center;
  transform: translateY(-95px);
  min-height: 100%;
}

.login-showcase-logo {
  width: min(100%, 620px);
  height: auto;
  display: block;
}

.login-card {
  width: min(100%, 360px);
  background: rgba(255,255,255,0.98);
  border-radius: 32px;
  padding: 34px 30px 30px;
  box-shadow: 0 20px 50px rgba(3, 38, 97, 0.18);
  margin-top: 18px;
  justify-self: end;
  position: relative;
  z-index: 2;
}

.login-brand {
  text-align: center;
  margin-bottom: 20px;
}

.login-brand h1 {
  font-size: 1.15rem;
  margin: 0;
}

@media (max-width: 980px) {
  .login-page {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 20px;
    padding: 32px 20px 40px;
    min-height: 100vh;
  }

  .auth-shell {
    height: auto;
    background-position: center center;
    background-size: cover;
  }

  .login-showcase {
    width: 100%;
    justify-content: center;
    padding-top: 0;
  }

  .login-showcase-logo {
    width: min(100%, 360px);
  }
}

.login-form { display: grid; gap: 10px; }
.field-label { color: var(--muted); font-size: 0.96rem; }

.text-input, .header-search, .inline-select, .product-form input, .product-form select, .product-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
}

.text-input:focus, .header-search:focus, .product-form input:focus, .product-form select:focus, textarea:focus {
  outline: none;
  border-color: rgba(18,84,185,.35);
  box-shadow: 0 0 0 4px rgba(18,84,185,.1);
}

.password-field { position: relative; }
.password-field .text-input { padding-right: 50px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.password-toggle.is-visible .password-toggle-icon {
  fill: currentColor;
  stroke: currentColor;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  cursor: pointer;
}

.primary-btn, .ghost-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.primary-btn:hover, .ghost-btn:hover, .top-nav-link:hover, .header-icon-btn:hover, .user-chip:hover { transform: translateY(-1px); }

.primary-btn {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18,84,185,.2);
}

.primary-btn.block { width: 100%; font-size: 1.05rem; }
.ghost-btn {
  background: var(--white);
  color: var(--blue);
  border-color: var(--line);
}

.ghost-btn.small { padding: 8px 12px; font-size: .9rem; }
.active-choice { background: var(--blue-soft); }

.form-message {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .92rem;
}
.form-message.hidden { display: none; }
.form-message.error { background: #fff0ef; color: var(--danger); }
.form-message.info { background: #eef5ff; color: var(--blue); }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 0;
  min-height: 48px;
  border-bottom: 6px solid var(--blue);
  box-shadow: 0 3px 10px rgba(40, 50, 70, .28);
}

.brand-button {
  border: 0;
  background: var(--blue);
  border-radius: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  height: 48px;
  min-width: 132px;
  align-self: stretch;
  border-bottom-right-radius: 26px;
  pointer-events: auto;
}

.brand-image-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.brand-image {
  width: calc(100% - 18px);
  height: calc(100% - 10px);
  object-fit: contain;
  display: block;
}

.top-nav { display: flex; align-items: stretch; gap: 4px; }
.top-nav-item { position: relative; display: flex; align-items: center; }
.top-nav-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 10px 14px;
  font-size: .82rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.caret { font-size: .72rem; color: var(--muted); }

.top-nav-item.is-open .top-nav-link,
.top-nav-link:focus-visible {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(18, 84, 185, .08);
  outline: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
  padding: 10px;
  z-index: 30;
}
.dropdown-menu.right { left: auto; right: 0; min-width: 180px; }
.top-nav-item.is-open .dropdown-menu,
.user-menu.is-open .dropdown-menu { display: grid; }
.dropdown-item {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.dropdown-item:hover { background: var(--blue-soft); }

.header-search-wrap { display: none; }
.header-search {
  background: #f3f6fb;
  border-radius: 999px;
}
.header-search.alt { max-width: 100%; }

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}
.header-identity-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f8ff 0%, #dfeeff 100%);
  box-shadow: 0 10px 22px rgba(31, 91, 170, 0.14);
  border: 4px solid #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.header-identity-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.header-identity-logo-fallback {
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.header-identity-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.header-identity-name,
.header-identity-email {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.header-identity-name {
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 900;
}
.header-identity-email {
  color: var(--text);
  font-size: 0.78rem;
}
.header-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
}
.header-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.user-menu { position: relative; }
.user-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}
.user-chip-meta strong, .user-chip-meta small { display: block; text-align: left; }
.user-chip-meta small { color: var(--muted); }

.app-content { padding: 18px 18px 28px; }
.page { display: grid; gap: 14px; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-graphs-heading { margin-top: 4px; }
.page-header.inline { margin-bottom: 6px; }
.page-header h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -.02em;
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
}
.page-header h1::after {
  content: "";
  display: none;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
}
.heading-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: var(--blue);
  border-radius: 4px;
}
.heading-icon.home {
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 58% 100%, 58% 66%, 42% 66%, 42% 100%, 14% 100%, 14% 42%, 0 42%);
}
.heading-icon.chart {
  border: 2px solid var(--blue);
  background:
    linear-gradient(to top, var(--blue) 0 100%) 3px 10px / 3px 5px no-repeat,
    linear-gradient(to top, var(--blue) 0 100%) 8px 6px / 3px 9px no-repeat,
    linear-gradient(to top, var(--blue) 0 100%) 13px 3px / 3px 12px no-repeat;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}

.card, .dashboard-card, .product-table, .filters-card, .product-form {
  background: var(--white);
  border: 1px solid rgba(18,84,185,.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}
.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-card { padding: 14px 16px; }
.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-card h3 { margin: 0; color: var(--blue); text-transform: uppercase; font-size: .88rem; font-weight: 900; }

.metrics-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.metric-card {
  display: grid;
  grid-template-columns: 10px 28px 1fr;
  gap: 8px;
  align-items: center;
  font-size: .86rem;
}
.metric-card i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}
.metric-card strong {
  font-size: .95rem;
  background: transparent;
}
.metric-card span { color: var(--text); }
.metric-card.green i { background: var(--success); }
.metric-card.blue i { background: var(--blue); }
.metric-card.red i { background: #b80000; }
.metric-card.green strong { color: var(--text); }
.metric-card.blue strong { color: var(--text); }
.metric-card.red strong { color: var(--text); }

.period-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.period-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--white);
  color: var(--blue);
  font-size: .72rem;
}
.period-pill.active { background: var(--blue-soft); }

.seller-list, .top-products-list { display: grid; gap: 6px; }
.seller-row {
  display: grid;
  grid-template-columns: 78px 1fr 105px;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
}
.seller-bar-track {
  height: 13px;
  background: #edf2fa;
  border-radius: 999px;
  overflow: hidden;
}
.seller-bar-fill {
  height: 100%;
  background: #92b2e6;
  border-radius: inherit;
}

.chart-grid {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
}
.chart-col { display: grid; gap: 8px; justify-items: center; }
.chart-bar {
  width: 28px;
  border-radius: 0;
  background: #8fb2e8;
  transition: .2s ease;
}
.chart-bar:hover { background: var(--blue); }
.chart-col small { color: var(--muted); }

.top-product-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: .78rem;
}
.ranking-index {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 700;
}
.top-product-row strong { font-size: .72rem; color: var(--text); }
.top-product-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-product-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell:has(.dashboard-page) .app-content {
  background: #f8fafc;
  min-height: calc(100vh - 62px);
  padding: 34px 18px 44px;
}

.dashboard-page {
  width: min(100%, 760px);
  margin: 0 auto;
  gap: 18px;
}

.dashboard-page .page-header {
  margin: 0 0 -6px 26px;
}

.dashboard-page .page-header h1 {
  color: var(--blue);
  display: grid;
  grid-template-columns: 18px auto 1fr;
  font-size: 1.25rem;
  letter-spacing: .02em;
}

.dashboard-page .page-header h1::after {
  display: none;
}

.dashboard-page .heading-icon {
  display: inline-block;
}

.dashboard-page .dashboard-graphs-heading {
  margin-top: 4px;
}

.dashboard-page .dashboard-top-grid {
  grid-template-columns: 250px 1fr;
  gap: 12px;
}

.dashboard-page .dashboard-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.dashboard-page .dashboard-card {
  min-height: 180px;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #d8d8d8;
  background: #f8f8f8;
  padding: 18px 20px;
}

.dashboard-page .dashboard-card h3 {
  font-size: .78rem;
  color: var(--blue);
  font-weight: 900;
}

.dashboard-page .metrics-list {
  min-height: 180px;
}

.dashboard-page .dashboard-card:not(.metrics-list) {
  min-height: 180px;
}

.dashboard-page .dashboard-chart-grid .dashboard-card {
  min-height: 252px;
}

.dashboard-page .dashboard-card-header {
  margin-bottom: 12px;
  align-items: start;
}

.dashboard-page .period-pills {
  transform: scale(.9);
  transform-origin: top right;
  flex-wrap: nowrap;
}

.filter-pill {
  padding-left: 10px;
  padding-right: 10px;
  color: #7fa3d6;
  box-shadow: 0 4px 10px rgba(20, 61, 120, .18);
}

.filter-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 4px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-left-color: transparent;
  transform: translateY(1px) rotate(45deg);
}

.dashboard-page .metric-card {
  grid-template-columns: 10px 28px 1fr;
  gap: 8px;
  font-size: .8rem;
}

.dashboard-page .seller-row {
  grid-template-columns: 72px 1fr 92px;
  font-size: .78rem;
}

.dashboard-page .seller-bar-track {
  height: 12px;
}

.dashboard-page .chart-grid {
  min-height: 164px;
}

.dashboard-page .chart-bar {
  width: 34px;
  background: #7fa3d6;
}

.dashboard-page .top-product-row {
  font-size: .72rem;
}

.app-shell:has(.dashboard-page) .app-content {
  background: #f8fafc;
  min-height: calc(100vh - 36px);
  padding: 18px 20px 34px;
}

.dashboard-page {
  width: min(100%, 594px);
  margin: 0 auto;
  gap: 14px;
}

.dashboard-page .page-header {
  margin: 0;
}

.dashboard-page .page-header h1 {
  color: var(--blue);
  display: grid;
  grid-template-columns: 18px auto 1fr;
  gap: 6px;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-page .page-header h1::after {
  display: none;
  height: 3px;
  background: var(--blue);
}

.dashboard-page .heading-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0;
  border-radius: 0;
  clip-path: none;
}

.dashboard-page .heading-icon.home {
  background-image: url("./icones/dashboard-titulo-inicio.png");
}

.dashboard-title-graphic-wrap::after {
  display: none;
}

.dashboard-title-graphic-wrap {
  display: block;
  width: max-content;
}

.dashboard-title-graphic {
  display: block;
  width: 180px;
  max-width: none;
  height: auto;
}

.dashboard-page .dashboard-graphs-heading {
  margin-top: 2px;
}

.dashboard-page .dashboard-top-grid {
  grid-template-columns: 200px 1fr;
  gap: 10px;
}

.dashboard-page .dashboard-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.dashboard-page .dashboard-card {
  background: #f7f7f7;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(31, 41, 55, .18);
  padding: 13px 14px;
  min-height: 144px;
}

.dashboard-page .dashboard-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 900;
}

.dashboard-page .metrics-list,
.dashboard-page .dashboard-card:not(.metrics-list) {
  min-height: 144px;
}

.dashboard-page .dashboard-chart-grid .dashboard-card {
  min-height: 200px;
}

.dashboard-page .dashboard-card-header {
  margin-bottom: 8px;
  align-items: flex-start;
}

.card-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.dashboard-page .period-pills {
  transform: none;
  transform-origin: top right;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
  width: 174px;
  height: 23px;
  border: 0;
  border-radius: 999px;
  background: transparent url("./icones/dashboard-periodos.png") center / contain no-repeat;
  box-shadow: none;
}

.dashboard-page .period-pill {
  width: 20%;
  height: 23px;
  border: 0;
  border-right: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
}

.dashboard-page .period-pill:last-child {
  border-right: 0;
}

.dashboard-page .period-pill.active {
  background: transparent;
  color: transparent;
}

.dashboard-page .period-pill.custom::before {
  display: none;
}

.dashboard-page .filter-pill {
  width: 74px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent url("./icones/dashboard-botao-filtrar.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: none;
}

.dashboard-page .filter-pill::before {
  display: none;
}

.dashboard-page .metric-card {
  grid-template-columns: 9px 24px 1fr;
  gap: 7px;
  font-size: .68rem;
}

.dashboard-page .metric-card strong {
  font-size: .75rem;
}

.dashboard-page .seller-list {
  gap: 4px;
  padding-top: 22px;
}

.dashboard-page .seller-row {
  grid-template-columns: 72px 1fr 92px;
  gap: 8px;
  font-size: .68rem;
}

.dashboard-page .seller-bar-track {
  height: 12px;
  border-radius: 0;
}

.dashboard-page .seller-bar-fill {
  border-radius: 0;
}

.dashboard-page .chart-grid {
  min-height: 142px;
  gap: 10px;
}

.dashboard-page .chart-bar {
  width: 28px;
  background: #7fa3d6;
  border-radius: 0;
}

.dashboard-page .chart-col small {
  font-size: .62rem;
}

.dashboard-page .top-products-list {
  gap: 3px;
}

.dashboard-page .top-product-row {
  grid-template-columns: 14px 1fr auto;
  gap: 6px;
  font-size: .56rem;
}

.dashboard-page .ranking-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  display: block;
}

.dashboard-page .top-product-row strong {
  font-size: .56rem;
}

.heading-icon.cube {
  border-radius: 0;
  background: linear-gradient(135deg, #2c6ed2 0%, #1254b9 100%);
  clip-path: polygon(50% 0%, 100% 28%, 100% 72%, 50% 100%, 0% 72%, 0% 28%);
}

.products-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: 16px;
}

.products-page-header h1,
.product-form-header h1,
.settings-page-header h1 {
  display: grid;
  grid-template-columns: 20px auto minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
}

.product-form-title-graphic-wrap::after {
  display: none;
}

.products-page-header h1.product-form-title-graphic-wrap,
.products-page-header h1.products-title-graphic-wrap,
.settings-page-header h1.products-title-graphic-wrap,
.product-form-header h1.product-form-title-graphic-wrap,
.product-form-header h1.products-title-graphic-wrap {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: max-content;
}

.product-form-header {
  margin-bottom: 20px;
}

.product-form-title-graphic {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  height: 34px;
}

.product-page-notice {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .92rem;
  border: 1px solid transparent;
}

.product-page-notice.info {
  background: #eef5ff;
  border-color: #d3e3fb;
  color: var(--blue);
}

.product-page-notice.error {
  background: #fff2f0;
  border-color: #ffd5d0;
  color: #c23c30;
}

.products-title-graphic-wrap::after {
  display: none;
}

.products-title-graphic-wrap {
  width: max-content;
  margin-top: 4px;
}

.products-title-graphic {
  display: block;
  width: auto;
  max-width: min(100%, 480px);
  height: 32px;
}

.product-toolbar-shell {
  display: grid;
  gap: 12px;
}

.product-toolbar-row,
.product-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-toolbar-search-group,
.product-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-toolbar-meta-center,
.product-toolbar-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-toolbar-search-group {
  flex: 1;
  min-width: 320px;
}

.product-search-box {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  border: 1px solid #c8d5ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.product-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.search-icon-button,
.toolbar-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-icon-button {
  margin-right: 4px;
}

.search-icon-shape,
.filter-icon-shape,
.photo-toggle-shape,
.image-placeholder-icon {
  display: inline-block;
}

.search-icon-shape {
  width: 16px;
  height: 16px;
  border: 2px solid #6690d8;
  border-radius: 999px;
  position: relative;
}

.search-icon-shape::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #6690d8;
  border-radius: 999px;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.toolbar-menu {
  position: relative;
}

.toolbar-pill-button,
.toolbar-link-button {
  border: 1px solid #cad7ea;
  background: #ffffff;
  color: #6d8fc4;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .18s ease;
}

.toolbar-pill-button:hover,
.toolbar-link-button:hover,
.toolbar-icon-button:hover {
  transform: translateY(-1px);
}

.toolbar-pill-button.is-highlighted,
.toolbar-pill-button.is-open,
.toolbar-icon-button.is-active {
  background: #eef5ff;
  color: var(--blue);
  border-color: #b9cced;
}

.toolbar-link-button {
  padding: 0;
  border: 0;
  min-height: auto;
  color: var(--blue);
}

.toolbar-filter-image-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.toolbar-filter-image {
  display: block;
  height: 32px;
  width: auto;
}

.product-new-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

.image-button:hover,
.toolbar-image-button:hover,
.toolbar-view-toggle:hover,
.toolbar-refresh-button:hover {
  transform: translateY(-1px);
}

.product-new-image {
  display: block;
  height: 32px;
  width: auto;
}

.toolbar-image-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.toolbar-circle-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.toolbar-inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.toolbar-view-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
}

.toolbar-photo-toggle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.toolbar-refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-icon-shape {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-left-color: transparent;
  transform: rotate(45deg);
}

.photo-toggle-shape {
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.photo-toggle-shape::before {
  content: "";
  position: absolute;
  inset: 3px 2px 2px;
  background: linear-gradient(135deg, transparent 0 25%, currentColor 25% 45%, transparent 45% 55%, currentColor 55% 75%, transparent 75% 100%);
}

.toolbar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #d5dfef;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(31, 61, 117, .18);
  padding: 8px;
  display: none;
  z-index: 10;
}

.toolbar-popover.is-open {
  display: grid;
}

.toolbar-popover-more {
  right: 0;
  left: auto;
}

.toolbar-popover-item {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.toolbar-popover-item:hover,
.toolbar-popover-item.is-selected {
  background: #eef5ff;
  color: var(--blue);
}

.toolbar-filter-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  gap: 14px;
}

.toolbar-filter-group {
  display: grid;
  gap: 8px;
}

.toolbar-filter-group-title {
  font-size: .92rem;
  color: var(--blue);
  font-weight: 800;
  padding-inline: 4px;
}

.toolbar-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
}

.toolbar-filter-check:hover,
.toolbar-filter-check.is-selected {
  background: #eef5ff;
}

.toolbar-filter-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.toolbar-filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.toolbar-filter-actions .toolbar-popover-item {
  flex: 1;
  text-align: center;
}

.product-toolbar-meta {
  color: #7f8fa5;
  font-size: .92rem;
}

.product-toolbar-count,
.product-toolbar-status,
.product-toolbar-total {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f7fc;
}

.product-table {
  padding: 2px 0 8px;
  border-radius: 18px;
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  gap: 14px;
  align-items: center;
  padding-inline: 18px;
}

.table-head.with-photo,
.table-row.with-photo {
  grid-template-columns: 26px 58px minmax(220px, 1.4fr) 84px 70px repeat(4, minmax(74px, .72fr));
}

.table-head.without-photo,
.table-row.without-photo {
  grid-template-columns: 26px minmax(260px, 1.6fr) 84px 70px repeat(4, minmax(74px, .72fr));
}

.table-head {
  color: #8c9aae;
  font-size: .85rem;
  padding-top: 16px;
  padding-bottom: 8px;
}

.table-body {
  padding: 0 12px 2px;
}

.table-row {
  min-height: 72px;
  border-top: 1px solid #edf1f8;
  background: #ffffff;
}

.table-row.is-inactive {
  background: #fcfdff;
}

.table-row.is-deleted {
  opacity: .72;
}

.table-check-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-check-cell input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

.product-thumb-cell {
  width: 46px;
  height: 46px;
  border: 1px solid #d6dfec;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fafbfe;
  overflow: hidden;
}

.row-edit-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.thumb-edit-trigger,
.placeholder-edit-trigger {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.product-thumb-cell img,
.image-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder-mini {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  background: #eff2f7;
  border: 1px solid #d8e0ec;
  display: grid;
  place-items: center;
}

.image-placeholder-asset {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

.image-placeholder-icon {
  width: 14px;
  height: 10px;
  border: 2px solid #a2adbf;
  border-radius: 2px;
  position: relative;
}

.image-placeholder-icon::before {
  content: "";
  position: absolute;
  inset: 3px 1px 1px;
  background: linear-gradient(135deg, transparent 0 22%, #a2adbf 22% 48%, transparent 48% 55%, #a2adbf 55% 75%, transparent 75% 100%);
}

.product-desc {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.product-desc-trigger {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
}

.product-desc strong {
  font-size: .95rem;
  font-weight: 600;
  color: #7c8594;
  text-transform: uppercase;
}

.product-desc small {
  color: #a0abba;
}

.product-desc.is-editable .product-desc-trigger:hover strong,
.product-sku-trigger:hover,
.product-price-trigger:hover {
  color: var(--blue);
}

.product-sku-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.product-price-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--blue);
  padding-top: 2px;
}

.pagination-divider {
  color: #9ab0d3;
}

.page-badge {
  min-width: 42px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #d3def0;
  border-radius: 999px;
  background: #ffffff;
}

.link-button[disabled] {
  opacity: .42;
  cursor: default;
}

.product-form {
  padding: 22px;
  border-radius: 20px;
}

.product-form-header h1::after {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field-required {
  color: #ef8b84;
  font-size: .72rem;
  font-weight: 600;
  text-transform: lowercase;
}

.price-highlight-field input {
  background: #ddeBff;
  border-color: #b0d2ff;
}

.price-highlight-field input:focus {
  background: #ddeBff;
}

.field.is-attention label {
  color: #c14646;
}

.field-attention-input,
.field input.field-attention-input,
.field select.field-attention-input,
.price-highlight-field input.field-attention-input {
  background: #ffe5e5;
  border-color: #efb1b1;
}

.field-attention-input:focus,
.field input.field-attention-input:focus,
.field select.field-attention-input:focus,
.price-highlight-field input.field-attention-input:focus {
  background: #ffecec;
  border-color: #e49393;
}

.product-form-main {
  display: grid;
  gap: 18px;
}

.product-form-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
  align-items: start;
}

.product-form-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
}

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

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

.field-sku,
.field-gtin {
  grid-column: span 2;
}

.field-segment {
  grid-column: 1 / span 2;
}

.toggle-field {
  align-content: center;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.image-field {
  align-self: start;
  width: 170px;
}

.image-upload-card {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.image-upload-dropzone {
  display: grid;
  cursor: pointer;
  justify-items: center;
  width: 100%;
}

.image-upload-preview {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cfd8e6;
  background: linear-gradient(180deg, #f8fbff, #eef3fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  padding: 8px;
}

.image-placeholder-large {
  height: 140px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.image-upload-help {
  color: #7f8fa5;
  font-size: .72rem;
  text-align: center;
  max-width: 132px;
  line-height: 1.25;
}

.image-remove-button {
  min-width: 132px;
  justify-content: center;
}

.price-section {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.price-section h2 {
  margin: 0;
  color: #6f7f93;
  font-size: 1.15rem;
  font-weight: 500;
}

.price-section-title-graphic-wrap {
  display: block;
  width: max-content;
}

.price-section-title-graphic {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

.product-form-prices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
}

.price-row-top-spacer {
  visibility: hidden;
  pointer-events: none;
}

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

.field-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: help;
}

.password-rule-hint {
  color: #6c7f99;
  font-size: .86rem;
  line-height: 1.4;
}

.password-strength {
  display: grid;
  gap: 6px;
}

.password-strength-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.password-strength-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .18s ease, background-color .18s ease;
  background: #d3dbe8;
}

.password-strength-fill.is-weak {
  background: #d94b4b;
}

.password-strength-fill.is-medium {
  background: #e39b2f;
}

.password-strength-fill.is-strong {
  background: #2f8f5b;
}

.password-strength-fill.is-very-strong {
  background: #1254b9;
}

.password-strength-label {
  color: #4f6483;
  font-size: .84rem;
  font-weight: 600;
}

.user-form .product-form-top-grid {
  grid-template-areas:
    "name username email password"
    "role status . password";
}

.user-form-field-name {
  grid-area: name;
}

.user-form-field-username {
  grid-area: username;
}

.user-form-field-email {
  grid-area: email;
}

.user-form-field-password {
  grid-area: password;
  align-self: start;
}

.user-form-field-role {
  grid-area: role;
}

.user-form-field-status {
  grid-area: status;
}

.user-form-field-permissions {
  grid-area: permissions;
}

.user-form .product-form-top-grid {
  grid-template-areas:
    "name username email password"
    "role status . password"
    "permissions permissions permissions permissions";
}

.user-permissions-box {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #c7d9f2;
  border-radius: 18px;
  background: #f7fbff;
}

.user-permissions-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(250px, 0.8fr) minmax(250px, 0.8fr);
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 84, 185, 0.08);
}

.user-permissions-row-header {
  background: transparent;
  border: 0;
  padding: 0 12px 4px;
  color: #6d84a4;
  font-size: 0.84rem;
  font-weight: 700;
}

.user-permissions-module {
  display: flex;
  align-items: center;
  min-width: 0;
}

.user-permissions-module-title {
  color: #234064;
  font-weight: 700;
  font-size: 0.98rem;
}

.user-permissions-cell {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 4px 0;
}

.user-permissions-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  color: #234064;
  font-weight: 600;
}

.user-permissions-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.user-permissions-list {
  margin: 0;
  padding-left: 18px;
  color: #6d84a4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.user-permissions-list li + li {
  margin-top: 4px;
}

.field-hint-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.field-hint-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 210px;
  max-width: 250px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #b0d2ff;
  box-shadow: 0 14px 28px rgba(15, 47, 91, 0.14);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.field-hint-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid #b0d2ff;
  border-bottom: 1px solid #b0d2ff;
  transform: translateX(-50%) rotate(45deg);
}

.field-hint:hover .field-hint-bubble,
.field-hint:focus-visible .field-hint-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.settings-page {
  width: min(100%, 980px);
  margin: 0 auto;
}

.settings-card {
  background: #ffffff;
  border: 1px solid rgba(18,84,185,.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.settings-form {
  display: grid;
  gap: 22px;
}

.settings-section {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(18, 84, 185, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-section-head h3 {
  margin: 0;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 900;
}

.settings-section-copy {
  margin: 6px 0 0;
  max-width: 760px;
  color: #5e7291;
  line-height: 1.5;
}

.settings-lock-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.settings-lock-badge.is-readonly {
  background: #fff4e7;
  color: #9a5e0d;
}

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

.settings-box-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 84, 185, 0.1);
  background: #ffffff;
}

.settings-box-card-muted {
  background: #f4f8ff;
}

.settings-box-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f85a4;
}

.settings-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-rule-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #486281;
}

.settings-override-list {
  display: grid;
  gap: 10px;
}

.settings-override-head,
.settings-override-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}

.settings-override-head {
  padding: 0 14px;
  color: #6f85a4;
  font-size: 0.88rem;
  font-weight: 800;
}

.settings-override-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 84, 185, 0.08);
}

.settings-override-row strong {
  color: #234064;
}

.settings-override-row span {
  color: #5c6f8c;
}

.settings-checkbox-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-box-settings-field {
  margin-top: 8px;
}

.product-box-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px 22px;
  align-items: start;
}

.product-box-settings-option {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  min-height: 64px;
  border: 1px solid #d9e3f3;
  border-radius: 14px;
  background: #f8fbff;
}

.product-box-settings-option input[type="radio"] {
  margin: 4px 0 0;
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.product-box-settings-option span {
  display: block;
  line-height: 1.4;
  flex: 1 1 auto;
}

.product-box-settings-field .password-rule-hint {
  display: block;
  margin-top: 10px;
}

.settings-preview {
  margin-top: 18px;
  border-radius: 16px;
  background: #f5f9ff;
  border: 1px solid #dbe8fb;
  padding: 16px;
}

.settings-preview p {
  margin: 8px 0 0;
  color: #6280b0;
}

.filters-card { padding: 14px; display: grid; gap: 12px; }
.filters-top, .filters-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-inline { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 320px; }
.filters-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.control-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.table-head, .table-row {
  display: grid;
  grid-template-columns: 26px 52px minmax(180px, 1fr) 90px 70px repeat(4, 92px);
  gap: 12px;
  align-items: center;
}
.table-head {
  padding: 16px 18px 8px;
  color: var(--muted);
  font-size: .85rem;
}
.table-body { padding: 0 12px 10px; }
.table-row {
  border-top: 1px solid #edf2fa;
  padding: 12px 6px;
  min-height: 68px;
}
.product-thumb-cell { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8fb; display: grid; place-items: center; }
.image-placeholder-mini, .image-placeholder-large {
  background: linear-gradient(135deg, #f1f4f8, #dde5f0);
  border: 1px dashed #b8c7dd;
}
.image-placeholder-mini { width: 34px; height: 26px; border-radius: 6px; }

.compact-mode { grid-template-columns: 26px 52px minmax(180px, 1fr) 90px 70px repeat(4, 92px); }
.photo-mode .product-desc { font-weight: 600; }

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.page-badge {
  min-width: 38px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-form { padding: 20px; }
.image-placeholder-large {
  min-height: 140px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.price-section { margin-top: 24px; display: grid; gap: 10px; }
.price-section h2 { margin: 0; color: var(--muted); font-weight: 500; }
.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.placeholder-page { padding: 24px; }
.loading-state {
  min-height: 50vh;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--muted);
}

.loading-gif {
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.empty-state {
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
.empty-state strong { display: block; color: var(--blue); margin-bottom: 6px; }
.empty-state p { margin: 0; color: var(--muted); }

@media (min-width: 1181px) {
  .app-header {
    min-height: 76px;
    background: #ffffff;
    grid-template-columns: 74px auto minmax(120px, 1fr) auto;
    gap: 22px;
    padding: 0 26px 0 0;
    border-bottom: 0;
  }

  .brand-button {
    min-width: 74px;
    height: 100%;
    border-radius: 0;
    padding: 0;
    background: var(--blue);
    border-bottom-right-radius: 26px;
  }

  .brand-image-frame {
    width: 74px;
    height: 100%;
    background: url("./icones/pdv-header-logo.png") center center / contain no-repeat;
  }

  .brand-image { display: none; }

  .top-nav {
    gap: 14px;
  }

  .top-nav-link {
    font-size: 1.05rem;
    padding: 14px 16px;
  }

  .header-actions-group {
    justify-self: end;
    gap: 10px;
  }

  .header-icon-btn {
    width: 34px;
    height: 34px;
  }

  .app-shell:has(.dashboard-page) .app-content {
    min-height: calc(100vh - 58px);
    padding: 28px 32px 56px;
  }

  .dashboard-page {
    width: min(100%, 1240px);
    gap: 24px;
  }

  .dashboard-page .page-header {
    margin: 0;
  }

  .dashboard-page .page-header h1 {
    grid-template-columns: 30px auto 1fr;
    gap: 10px;
    font-size: 1.75rem;
  }

  .dashboard-page .heading-icon {
    width: 28px;
    height: 28px;
  }

  .dashboard-page .page-header h1::after {
    display: none;
    height: 4px;
  }

  .dashboard-page .dashboard-top-grid {
    grid-template-columns: 390px 1fr;
    gap: 24px;
  }

  .dashboard-page .dashboard-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .dashboard-page .dashboard-card {
    min-height: 220px;
    padding: 26px 28px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(31, 41, 55, .16);
  }

  .dashboard-page .metrics-list,
  .dashboard-page .dashboard-card:not(.metrics-list) {
    min-height: 220px;
  }

  .dashboard-page .dashboard-chart-grid .dashboard-card {
    min-height: 360px;
  }

  .dashboard-page .dashboard-card h3 {
    font-size: 1.05rem;
  }

  .dashboard-page .dashboard-card-header {
    margin-bottom: 20px;
  }

  .card-toolbar {
    gap: 12px;
  }

  .dashboard-page .period-pills {
    width: 260px;
    height: 35px;
  }

  .dashboard-page .period-pill {
    height: 35px;
    padding: 0;
    font-size: 0;
  }

  .dashboard-page .period-pill.custom::before {
    display: none;
  }

  .dashboard-page .filter-pill {
    width: 92px;
    height: 30px;
  }

  .dashboard-page .metric-card {
    grid-template-columns: 14px 36px 1fr;
    gap: 12px;
    font-size: 1rem;
  }

  .dashboard-page .metric-card i {
    width: 13px;
    height: 13px;
  }

  .dashboard-page .metric-card strong {
    font-size: 1.05rem;
  }

  .dashboard-page .seller-list {
    gap: 10px;
    padding-top: 26px;
  }

  .dashboard-page .seller-row {
    grid-template-columns: 120px 1fr 150px;
    gap: 18px;
    font-size: 1rem;
  }

  .dashboard-page .seller-bar-track {
    height: 24px;
  }

  .dashboard-page .chart-grid {
    min-height: 248px;
    gap: 22px;
  }

  .dashboard-page .chart-bar {
    width: 54px;
  }

  .dashboard-page .chart-col small {
    font-size: .9rem;
  }

  .dashboard-page .top-products-list {
    gap: 8px;
  }

  .dashboard-page .top-product-row {
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    font-size: .9rem;
  }

  .dashboard-page .ranking-icon {
    width: 22px;
    height: 22px;
  }

  .dashboard-page .top-product-row strong {
    font-size: .86rem;
  }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: 1fr;
    padding: 10px 14px 14px;
    background: #ffffff;
  }
  .top-nav { flex-wrap: wrap; }
  .dashboard-top-grid, .dashboard-chart-grid, .settings-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
}

@media (max-width: 860px) {
  .app-content { padding: 16px; }
  .product-toolbar-search-group {
    min-width: 100%;
  }
  .product-search-box {
    width: 100%;
  }
  .table-head.with-photo,
  .table-row.with-photo {
    grid-template-columns: 26px 58px minmax(220px, 1.3fr) 84px 70px repeat(4, 86px);
    min-width: 940px;
  }
  .table-head.without-photo,
  .table-row.without-photo {
    grid-template-columns: 26px minmax(260px, 1.6fr) 84px 70px repeat(4, 86px);
    min-width: 880px;
  }
  .product-table {
    overflow-x: auto;
  }
}

/* Product page final overrides */
.products-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: 16px;
}

.products-page-header h1,
.product-form-header h1,
.settings-page-header h1 {
  display: grid;
  grid-template-columns: 20px auto minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
}

.product-toolbar-shell {
  display: grid;
  gap: 12px;
}

.product-toolbar-row,
.product-toolbar-meta,
.product-toolbar-search-group,
.product-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-toolbar-row,
.product-toolbar-meta {
  justify-content: space-between;
}

.product-toolbar-search-group {
  flex: 1;
  min-width: 320px;
}

.product-search-box {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  border: 1px solid #c8d5ea;
  border-radius: 999px;
  background: #ffffff;
}

.product-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.product-toolbar-count,
.product-toolbar-status,
.product-toolbar-total {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f7fc;
}

.table-head,
.table-row {
  display: grid;
  gap: 14px;
  align-items: center;
  padding-inline: 18px;
}

.table-head.with-photo,
.table-row.with-photo {
  grid-template-columns: 26px 58px minmax(220px, 1.4fr) 84px 70px repeat(4, minmax(74px, .72fr));
}

.table-head.without-photo,
.table-row.without-photo {
  grid-template-columns: 26px minmax(260px, 1.6fr) 84px 70px repeat(4, minmax(74px, .72fr));
}

.table-head {
  padding-top: 16px;
  padding-bottom: 8px;
  color: #8c9aae;
}

.table-body {
  padding: 0 12px 2px;
}

.table-row {
  min-height: 72px;
  border-top: 1px solid #edf1f8;
  padding-top: 12px;
  padding-bottom: 12px;
}

.product-thumb-cell {
  width: 46px;
  height: 46px;
  border: 1px solid #d6dfec;
  border-radius: 4px;
  background: #fafbfe;
  overflow: hidden;
}

.image-placeholder-mini {
  width: 32px;
  height: 24px;
  border-radius: 4px;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--blue);
}

.page-badge {
  min-width: 42px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #d3def0;
  border-radius: 999px;
  background: #ffffff;
}

.product-form {
  padding: 22px;
  border-radius: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.image-placeholder-large {
  min-height: 140px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.price-section h2 {
  margin: 0;
  color: #6f7f93;
  font-size: 1.15rem;
  font-weight: 500;
}

.settings-page {
  width: min(100%, 980px);
  margin: 0 auto;
}

@media (max-width: 1180px) {
  .product-form-top-layout,
  .product-form-top-grid,
  .product-form-prices-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .field-name,
  .field-sku,
  .field-gtin,
  .field-segment {
    grid-column: 1;
  }

  .price-row-top-spacer {
    display: none;
  }
}

@media (max-width: 860px) {
  .product-toolbar-search-group {
    min-width: 100%;
  }

  .product-search-box {
    width: 100%;
  }

  .table-head.with-photo,
  .table-row.with-photo {
    min-width: 940px;
  }

  .table-head.without-photo,
  .table-row.without-photo {
    min-width: 880px;
  }

  .product-table {
    overflow-x: auto;
  }
}

.product-toolbar-actions {
  gap: 12px;
}

.customer-table .customer-table-grid {
  grid-template-columns: 26px minmax(320px, 1.8fr) minmax(220px, 1.15fr) minmax(150px, 0.9fr) minmax(170px, 0.95fr);
}

.customer-table .customer-document-cell,
.customer-table .customer-phone-cell {
  white-space: nowrap;
}

.customer-table .customer-city-cell {
  min-width: 0;
}

.customer-table .seller-table-grid {
  grid-template-columns: 26px minmax(320px, 1.7fr) minmax(210px, 1fr) minmax(240px, 1.15fr) minmax(240px, 1.15fr);
}

.customer-table .seller-commission-percent-cell,
.customer-table .seller-commission-rule-cell {
  min-width: 0;
}

.segment-categories-box {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #c7d9f2;
  border-radius: 18px;
  background: #f7fbff;
}

.segment-categories-box .segment-category-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 10px;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.segment-categories-box .segment-category-option input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
}

.segment-categories-box .segment-category-option-text {
  display: grid;
  gap: 4px;
}

.segment-categories-box .segment-category-option-text small {
  color: #6d84a4;
}

.category-name-field,
.segment-name-field {
  max-width: 760px;
}

.payment-method-description-field {
  grid-column: span 2;
  max-width: 760px;
}

.payment-method-status-field {
  grid-column: span 1;
}

.payment-method-default-field {
  grid-column: span 1;
}

.payment-method-type-field {
  grid-column: span 1;
}

.payment-method-order-field {
  grid-column: span 1;
}

.payment-method-availability-field {
  grid-column: 1 / span 1;
}

.payment-method-surcharge-field {
  grid-column: span 1;
}

.payment-method-percent-field {
  grid-column: span 1;
}

.payment-method-percent-field label {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.payment-method-percent-field label span:first-child {
  white-space: nowrap;
}

.payment-method-percent-field .field-required {
  flex: 0 0 auto;
}

.customer-table .payment-method-table-grid {
  grid-template-columns: 26px minmax(230px, 1.35fr) minmax(80px, 0.45fr) minmax(280px, 1.35fr) minmax(170px, 0.95fr) minmax(130px, 0.75fr) minmax(130px, 0.75fr);
}

.user-table .user-table-grid {
  grid-template-columns: minmax(250px, 1.35fr) minmax(240px, 1.2fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr) minmax(120px, 0.6fr);
}

.user-status-badge.is-active {
  color: #1d6d3a;
  border-color: rgba(29, 109, 58, .18);
  background: #edf9f1;
}

.user-status-badge.is-inactive {
  color: #8a5a11;
  border-color: rgba(138, 90, 17, .16);
  background: #fff6e8;
}

.payment-method-default-badge {
  color: var(--blue);
  font-weight: 700;
}

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

.customer-form-wide-field textarea {
  min-height: 108px;
  resize: vertical;
}

.field.is-hidden {
  display: none;
}

.customer-inline-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: max-content !important;
  flex-wrap: nowrap !important;
}

.customer-inline-label .field-hint {
  margin-left: 0 !important;
  flex: 0 0 auto;
}

.customer-highlight-field input,
.customer-highlight-field select {
  background: #ddebff;
}

.field.field-name input,
.field.field-transportadora-nome input,
.field.field-transportadora-contato input,
.field.field-unit input,
.field.field-observacao-interna textarea {
  text-transform: uppercase;
}

.customer-history-card {
  margin-top: 8px;
  border: 1px solid rgba(18, 84, 185, 0.12);
  border-radius: 18px;
  background: #f6f9ff;
  padding: 18px 20px;
}

.customer-history-title {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
}

.customer-history-list {
  display: grid;
  gap: 10px;
}

.customer-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 140px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(18, 84, 185, 0.08);
}

.customer-history-item strong {
  color: #234064;
}

.customer-history-item span {
  color: #5c6f8c;
  font-size: 0.95rem;
}

.customer-history-empty {
  margin: 0;
  color: #5c6f8c;
  font-size: 0.98rem;
}

@media (max-width: 1200px) {
  .customer-table .customer-table-grid {
    min-width: 980px;
  }
}

.product-toolbar-meta-center,
.product-toolbar-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-image-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toolbar-circle-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.toolbar-view-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
}

.toolbar-photo-toggle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 36, 76, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.app-modal {
  width: min(100%, 520px);
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(15, 47, 91, 0.18);
  border: 1px solid rgba(176, 210, 255, 0.8);
  overflow: hidden;
}

.app-modal-compact {
  width: min(100%, 460px);
}

.app-modal-header {
  padding: 26px 28px 10px;
}

.app-modal-header h3 {
  margin: 0;
  font-size: 1.7rem;
  color: var(--blue);
}

.app-modal-body {
  padding: 0 28px 12px;
}

.app-modal-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.app-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 28px 28px;
}

.app-modal-prompt {
  display: grid;
  gap: 14px;
}

.app-modal-input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(176, 210, 255, 0.9);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  background: #f9fbff;
}

.app-modal-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 92, 189, 0.12);
}

.pdv-page {
  width: min(100%, 965px);
  margin: 0 auto;
}

.app-shell:has(.pdv-page) {
  background: #f5f4f2;
}

.app-shell:has(.pdv-page) .app-content {
  padding: 8px 0 0;
  background: #f5f4f2;
}

.app-shell:has(.pdv-page) .app-header {
  background: #1553b0;
  border-bottom: 2px solid #8b1cff;
  min-height: 70px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
}

.app-shell:has(.pdv-page) .brand-button {
  background: transparent;
  min-width: 90px;
  height: 70px;
  border-radius: 0;
}

.app-shell:has(.pdv-page) .top-nav,
.app-shell:has(.pdv-page) .header-search-wrap,
.app-shell:has(.pdv-page) .header-actions-group {
  display: none !important;
}

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

.pdv-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pdv-status-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdv-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
}

.pdv-badge.is-online {
  background: #eefaf2;
  color: #23723f;
}

.pdv-badge.is-offline {
  background: #fff0ef;
  color: #b3362d;
}

.pdv-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.pdv-layout-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pdv-layout-shell-mock {
  gap: 14px;
}

.pdv-stage-card-mock {
  border-radius: 18px;
  border-color: #d1cec9;
}

.pdv-stage-main-mock {
  grid-template-rows: 1fr auto;
  padding: 0;
  gap: 0;
}

.pdv-banner-card,
.pdv-main-card {
  background: #ffffff;
  border: 1px solid rgba(18, 84, 185, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.pdv-banner-card {
  min-height: 516px;
  background: transparent;
  padding: 10px 0 0 0;
  border: 0;
  box-shadow: none;
}

.pdv-banner-inner {
  min-height: 100%;
  border-radius: 18px;
  border: 0;
  background: #d9edf9;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
  color: #f04a3f;
}

.pdv-banner-inner strong {
  text-transform: uppercase;
  font-size: 1.2rem;
}

.pdv-main-card {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.pdv-stage-card {
  min-height: 516px;
  border: 1px solid #d4d0cb;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  display: grid;
}

.pdv-stage-main {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 12px;
  padding: 10px 12px 0;
}

.pdv-search-bar-mock {
  width: min(100%, 340px);
  border-radius: 14px;
  border: 2px solid #d6d6d6;
  justify-self: start;
  height: 40px;
}

.pdv-search-bar-mock .pdv-search-button {
  font-size: 1.15rem;
  font-weight: 700;
  background: #1553b0;
}

.pdv-mock-content,
.pdv-mock-stage-grid {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(275px, .88fr);
  gap: 10px;
  min-height: 0;
  padding: 12px 12px 0;
}

.pdv-mock-left {
  border-right: 1px solid #d6d6d6;
  padding-right: 14px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
}

.pdv-mock-right {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.pdv-mock-title {
  margin: 6px 0 0;
  font-size: 0.98rem;
  text-transform: uppercase;
  color: #111111;
  font-weight: 900;
}

.pdv-mock-product-grid {
  display: grid;
  grid-template-columns: 180px 150px;
  gap: 10px;
}

.pdv-product-image-mock {
  min-height: 166px;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  color: #ef4a42;
  font-size: 0.9rem;
  line-height: 1.25;
  background: #ffffff;
}

.pdv-mock-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-content: start;
}

.pdv-mock-fields label,
.pdv-price-strip-mock label,
.pdv-bottom-meta label {
  gap: 4px;
  color: #a4a4a4;
  font-size: 0.74rem;
  font-weight: 900;
}

.pdv-mock-fields input,
.pdv-price-strip-mock input,
.pdv-bottom-meta select {
  height: 30px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fbfbfb;
  padding: 0 10px;
}

.pdv-qty-box-mock button {
  height: 30px;
}

.pdv-qty-box-mock input {
  height: 30px;
}

.pdv-mock-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111111;
  justify-self: end;
  margin-right: 6px;
}

.pdv-price-strip-mock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.pdv-search-results-mock {
  display: flex;
  max-height: 56px;
  overflow: hidden;
  gap: 6px;
}

.pdv-cart-head-mock {
  padding: 14px 10px 8px;
  border-bottom: 0;
}

.pdv-cart-head-mock h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.pdv-cart-columns-mock {
  grid-template-columns: 56px 90px 110px 110px;
  padding-top: 4px;
  border-bottom: 2px solid #d7d0c5;
  padding-bottom: 6px;
  color: #9a9a9a;
}

.pdv-cart-lines-mock {
  padding: 10px 0 0 0;
  align-content: start;
  min-height: 290px;
}

.pdv-cart-line-mock {
  grid-template-columns: 1fr 56px 90px 110px 110px;
  padding: 10px 10px;
}

.pdv-cart-line-name {
  grid-column: 1 / -1;
  font-size: 0.96rem;
  text-transform: uppercase;
  color: #111111;
}

.pdv-bottom-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 0 4px;
  align-items: end;
}

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

.pdv-bottom-status {
  display: grid;
  gap: 6px;
  color: #7a7a7a;
  font-size: 0.8rem;
  text-align: right;
}

.pdv-action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pdv-ghost-wide,
.pdv-primary-wide {
  min-width: 170px;
  min-height: 36px;
  padding: 8px 18px;
}

.pdv-ghost-wide small,
.pdv-primary-wide small {
  font-size: 0.8rem;
  font-weight: 500;
}

.pdv-grand-total-mock {
  min-width: 180px;
}

.pdv-grand-total-mock span {
  font-size: 1rem;
}

.pdv-grand-total-mock strong {
  font-size: 2.1rem;
}

.pdv-stage-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 10px;
  border-top: 1px solid #d6d6d6;
  margin-top: 6px;
}

.pdv-action-buttons-mock {
  gap: 12px;
}

.pdv-action-buttons-mock .pdv-ghost-wide,
.pdv-action-buttons-mock .pdv-primary-wide {
  border-radius: 999px;
  min-width: 170px;
  height: 36px;
}

.pdv-action-buttons-mock .pdv-primary-wide {
  background: #0f57bf;
  box-shadow: none;
}

.pdv-action-buttons-mock .pdv-ghost-wide {
  background: #ffffff;
  border: 1px solid #0f57bf;
}

.pdv-hidden-support {
  display: none;
}

.pdv-feedback {
  margin: 0 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.pdv-ops-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.pdv-ops-summary {
  display: grid;
  gap: 4px;
}

.pdv-ops-summary strong {
  font-size: 1rem;
  color: #0f172a;
}

.pdv-ops-summary span,
.pdv-ops-summary small {
  color: #64748b;
}

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

.pdv-opening-input {
  width: 120px;
  height: 42px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  padding: 0 12px;
}

.pdv-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  border: 1px solid #cbd7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.pdv-search-input {
  width: 100%;
  border: 0;
  padding: 14px 16px;
  outline: 0;
  font-size: 1rem;
}

.pdv-search-button {
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.pdv-search-results {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdv-result-chip {
  border: 1px solid #d8e2f0;
  background: #f7fbff;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.pdv-result-chip.is-active {
  border-color: var(--blue);
  background: #edf4ff;
}

.pdv-result-chip small {
  color: var(--muted);
}

.pdv-product-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
  gap: 16px;
}

.pdv-product-overview,
.pdv-cart-panel {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  min-height: 540px;
  background: #ffffff;
}

.pdv-product-overview {
  padding: 14px 14px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
}

.pdv-product-overview h2,
.pdv-cart-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  color: #111827;
  text-transform: uppercase;
}

.pdv-product-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pdv-product-image {
  min-height: 220px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: #f04a3f;
  font-weight: 700;
}

.pdv-product-image img {
  max-width: 100%;
  max-height: 196px;
  object-fit: contain;
}

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

.pdv-product-fields label,
.pdv-price-strip label,
.pdv-operators-row label {
  display: grid;
  gap: 6px;
  color: #8794a8;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-product-fields input,
.pdv-price-strip input,
.pdv-operators-row select {
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  background: #ffffff;
  height: 42px;
  padding: 0 12px;
}

.pdv-qty-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.pdv-qty-box button {
  border: 1px solid #ccd8ea;
  background: #f7fbff;
  color: var(--blue);
  cursor: pointer;
}

.pdv-qty-box input {
  border-radius: 0;
  text-align: center;
}

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

.pdv-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pdv-product-footer strong {
  font-size: 3rem;
  color: #0f172a;
}

.pdv-cart-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.pdv-cart-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e4eaf4;
  display: grid;
  gap: 10px;
}

.pdv-cart-columns,
.pdv-cart-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 70px 110px 120px 110px;
  gap: 10px;
  align-items: center;
}

.pdv-cart-columns {
  color: #97a3b6;
  font-size: .78rem;
  font-weight: 800;
}

.pdv-cart-lines {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
}

.pdv-cart-line {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.pdv-cart-line button {
  border: 1px solid #d9e4f6;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue);
  height: 36px;
  cursor: pointer;
}

.pdv-empty,
.pdv-empty-card {
  margin: 0;
  color: var(--muted);
}

.pdv-empty-card {
  border: 1px dashed #c7d7ec;
  border-radius: 18px;
  padding: 24px;
}

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

.pdv-feedback {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.pdv-feedback.is-info {
  background: #edf4ff;
  color: var(--blue);
}

.pdv-feedback.is-success {
  background: #eefaf2;
  color: #23723f;
}

.pdv-feedback.is-error {
  background: #fff0ef;
  color: #b3362d;
}

.pdv-sync-panel {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdff;
  display: grid;
  gap: 12px;
}

.pdv-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdv-sync-head h3 {
  margin: 0;
  color: #0f172a;
}

.pdv-sync-head p {
  margin: 4px 0 0;
  color: #64748b;
}

.pdv-sync-list {
  display: grid;
  gap: 10px;
}

.pdv-sync-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.pdv-sync-main,
.pdv-sync-meta {
  display: grid;
  gap: 4px;
}

.pdv-sync-main span,
.pdv-sync-main small,
.pdv-sync-meta span,
.pdv-sync-meta small {
  color: #64748b;
}

.pdv-sync-status {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-sync-status.is-pendente,
.pdv-sync-status.is-enviando {
  background: #edf4ff;
  color: var(--blue);
}

.pdv-sync-status.is-sincronizado {
  background: #eefaf2;
  color: #23723f;
}

.pdv-sync-status.is-erro,
.pdv-sync-status.is-conflito {
  background: #fff0ef;
  color: #b3362d;
}

.pdv-sync-actions {
  display: flex;
  justify-content: flex-end;
}

.pdv-payments-panel {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 12px;
}

.pdv-payment-list {
  display: grid;
  gap: 10px;
}

.pdv-payment-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 140px 90px 110px;
  gap: 10px;
  align-items: center;
}

.pdv-payment-row select,
.pdv-payment-row input {
  height: 42px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  padding: 0 12px;
}

.pdv-payment-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
  color: #0f172a;
}

.pdv-payment-summary .is-balanced {
  color: #23723f;
}

.pdv-payment-summary .is-unbalanced {
  color: #b3362d;
}

.pdv-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdv-grand-total {
  margin-left: auto;
  text-align: right;
}

.pdv-grand-total span {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.pdv-grand-total strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: #111827;
}

.cash-control-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: 16px;
}

.cash-control-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.cash-control-header h1 {
  margin: 0;
  color: var(--blue);
  font-size: 2rem;
}

.cash-control-header p {
  margin: 4px 0 0;
  color: #64748b;
}

.cash-control-status {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.cash-control-status.is-open {
  background: #eefaf2;
  color: #23723f;
}

.cash-control-status.is-closed {
  background: #fff0ef;
  color: #b3362d;
}

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

.cash-card {
  background: #ffffff;
  border: 1px solid rgba(18, 84, 185, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cash-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.1rem;
}

.cash-info-list,
.cash-summary,
.cash-form-grid,
.cash-movement-list {
  display: grid;
  gap: 10px;
}

.cash-form-grid label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-form-grid input {
  height: 42px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  padding: 0 12px;
}

.cash-movement-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.2fr) 130px 170px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

@media (max-width: 1180px) {
  .app-content,
  .app-shell:has(.dashboard-page) .app-content {
    padding: 16px 14px 24px;
  }

  .app-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    border-bottom: 0;
  }

  .brand-button,
  .brand-image-frame {
    width: 74px;
    min-width: 74px;
    height: 54px;
  }

  .brand-button {
    background: var(--blue);
    border-bottom-right-radius: 20px;
  }

  .top-nav {
    order: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav-item {
    flex: 0 0 auto;
    z-index: 5;
  }

  .top-nav-link {
    white-space: nowrap;
    font-size: 0.94rem;
    padding: 10px 12px;
  }

  .dropdown-menu {
    top: calc(100% + 6px);
    min-width: 200px;
    border-radius: 14px;
  }

  .top-nav-item.is-open .dropdown-menu {
    position: fixed;
    top: 78px;
    left: 12px;
    right: auto;
    min-width: min(260px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .header-actions-group {
    justify-self: end;
    gap: 8px;
  }

  .header-identity-card {
    gap: 10px;
    margin-right: 4px;
  }

  .header-identity-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .header-identity-name {
    font-size: 0.98rem;
  }

  .header-identity-email {
    max-width: 160px;
  }

  .products-page,
  .settings-page {
    width: 100%;
  }

  .products-title-graphic {
    max-width: min(100%, 440px);
    height: 30px;
  }

  .product-form-title-graphic {
    max-width: min(100%, 480px);
    height: 32px;
  }

  .filters-card,
  .product-form,
  .settings-card {
    padding: 18px;
  }

  .product-toolbar-row,
  .product-toolbar-meta {
    align-items: flex-start;
  }

  .product-toolbar-search-group,
  .product-toolbar-actions,
  .product-toolbar-meta-center,
  .product-toolbar-meta-right {
    width: 100%;
  }

  .product-toolbar-search-group {
    min-width: 0;
  }

  .product-search-box {
    width: 100%;
    max-width: none;
  }

  .product-toolbar-actions,
  .product-toolbar-meta-right {
    justify-content: flex-start;
  }

  .toolbar-popover {
    max-width: min(280px, calc(100vw - 32px));
  }

  .product-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-head.with-photo,
  .table-row.with-photo {
    min-width: 940px;
  }

  .table-head.without-photo,
  .table-row.without-photo {
    min-width: 880px;
  }

  .customer-table .customer-table-grid {
    min-width: 980px;
  }

  .customer-table .payment-method-table-grid {
    min-width: 1040px;
  }

  .user-table .user-table-grid {
    min-width: 980px;
  }

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

  .image-field {
    width: 100%;
    max-width: 220px;
    justify-self: start;
  }

  .product-form-top-grid,
  .product-form-prices-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-box-layout,
  .settings-box-grid {
    grid-template-columns: 1fr;
  }

  .settings-override-head,
  .settings-override-row {
    grid-template-columns: minmax(180px, 1.2fr) minmax(110px, 0.7fr) minmax(160px, 1fr) minmax(160px, 1fr);
  }

  .user-form .product-form-top-grid {
    grid-template-areas:
      "name username"
      "email password"
      "role status"
      "permissions permissions";
  }

  .field-name,
  .field.wide,
  .field-sku,
  .field-gtin,
  .field-segment,
  .customer-form-wide-field {
    grid-column: 1 / -1;
  }

  .dashboard-top-grid,
  .dashboard-chart-grid,
  .dashboard-page .dashboard-top-grid,
  .dashboard-page .dashboard-chart-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-page .dashboard-card,
  .dashboard-card {
    min-height: auto;
  }

  .customer-history-item {
    grid-template-columns: 1fr 120px 120px;
  }
}

@media (max-width: 760px) {
  .app-content,
  .app-shell:has(.dashboard-page) .app-content {
    padding: 14px 10px 22px;
  }

  .app-header {
    padding: 8px 10px 10px;
  }

  .brand-button,
  .brand-image-frame {
    width: 66px;
    min-width: 66px;
    height: 48px;
  }

  .top-nav-link {
    font-size: 0.88rem;
    padding: 9px 11px;
  }

  .top-nav-item.is-open .dropdown-menu {
    top: 72px;
    left: 10px;
    min-width: min(240px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .header-icon-btn {
    width: 28px;
    height: 28px;
  }

  .header-icon-image {
    width: 28px;
    height: 28px;
  }

  .header-actions-group {
    gap: 6px;
  }

  .header-identity-meta {
    display: none;
  }

  .header-identity-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-width: 3px;
  }

  .page-header {
    gap: 10px;
  }

  .products-title-graphic {
    max-width: min(100%, 340px);
    height: 26px;
  }

  .product-form-title-graphic {
    max-width: min(100%, 360px);
    height: 28px;
  }

  .filters-card,
  .product-form,
  .settings-card {
    padding: 16px;
    border-radius: 18px;
  }

  .product-toolbar-row,
  .product-toolbar-meta,
  .product-toolbar-search-group,
  .product-toolbar-actions,
  .product-toolbar-meta-center,
  .product-toolbar-meta-right {
    flex-direction: column;
    align-items: stretch;
  }

  .product-toolbar-actions {
    gap: 10px;
  }

  .product-new-button,
  .toolbar-link-button,
  .toolbar-view-toggle {
    justify-content: center;
  }

  .product-toolbar-count,
  .product-toolbar-status,
  .product-toolbar-total {
    width: max-content;
    max-width: 100%;
  }

  .product-form-top-grid,
  .product-form-prices-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .settings-section {
    padding: 16px;
  }

  .settings-section-head {
    flex-direction: column;
  }

  .settings-override-head {
    display: none;
  }

  .settings-override-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-form .product-form-top-grid {
    grid-template-areas:
      "name"
      "username"
      "email"
      "password"
      "role"
      "status"
      "permissions";
  }

  .user-permissions-row,
  .user-permissions-row-header {
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 8px;
  }

  .user-permissions-row {
    padding: 10px;
  }

  .field-name,
  .field.wide,
  .field-sku,
  .field-gtin,
  .field-segment,
  .customer-form-wide-field {
    grid-column: auto;
  }

  .image-field {
    max-width: none;
  }

  .form-actions,
  .app-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .primary-btn,
  .form-actions .ghost-btn,
  .app-modal-footer .primary-btn,
  .app-modal-footer .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .settings-checkbox-grid {
    display: grid;
    gap: 12px;
  }

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

  .customer-history-item {
    grid-template-columns: 1fr;
  }

  .app-modal-overlay {
    padding: 14px;
  }

  .app-modal-header {
    padding: 20px 20px 8px;
  }

  .app-modal-body {
    padding: 0 20px 10px;
  }

  .app-modal-footer {
    padding: 10px 20px 20px;
    gap: 10px;
  }

  .pdv-shell,
  .pdv-layout-shell,
  .pdv-product-panel,
  .pdv-operators-row,
  .pdv-product-grid,
  .pdv-price-strip {
    grid-template-columns: 1fr;
  }

  .pdv-mock-content,
  .pdv-bottom-strip,
  .pdv-bottom-meta,
  .pdv-mock-product-grid,
  .pdv-mock-fields,
  .pdv-price-strip-mock {
    grid-template-columns: 1fr;
  }

  .pdv-mock-left {
    border-right: 0;
    padding-right: 0;
  }

  .pdv-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .pdv-ops-card,
  .pdv-ops-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pdv-banner-card {
    min-height: 220px;
  }

  .pdv-product-footer,
  .pdv-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pdv-grand-total {
    margin-left: 0;
    text-align: left;
  }

  .pdv-cart-columns,
  .pdv-cart-line,
  .pdv-sync-row,
  .pdv-payment-row {
    grid-template-columns: 1fr;
  }

  .cash-control-grid,
  .cash-movement-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .login-card {
    width: 100%;
    padding: 24px 20px 22px;
    border-radius: 24px;
  }

  .products-title-graphic {
    height: 23px;
  }

  .product-form-title-graphic {
    height: 25px;
  }

  .table-head.with-photo,
  .table-row.with-photo {
    min-width: 860px;
  }

  .table-head.without-photo,
  .table-row.without-photo {
    min-width: 820px;
  }

  .user-permissions-row,
  .user-permissions-row-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .user-permissions-row-header {
    display: none;
  }
}

.app-shell:has(.pdv-page-reference) {
  background: #ffffff;
}

.app-shell:has(.pdv-page-reference) .app-header {
  display: none;
}

.app-shell:has(.pdv-page-reference) .app-content {
  padding: 0;
  background: #ffffff;
}

.pdv-page-reference {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.pdv-page-reference .pdv-reference-stage {
  position: relative;
  width: min(100vw, 1366px);
  aspect-ratio: 1366 / 768;
  background: url("./icones/pdv-layout-reference.png") center center / contain no-repeat;
  overflow: hidden;
}

.pdv-page-reference .pdv-reference-search-input,
.pdv-page-reference .pdv-reference-qty-input,
.pdv-page-reference .pdv-reference-value {
  position: absolute;
  border: 0;
  background: transparent;
  color: #6b6b6b;
  font-family: "Glacial Indifference", "Segoe UI", sans-serif;
}

.pdv-page-reference .pdv-reference-search-input {
  left: 27.35%;
  top: 16.45%;
  width: 27.1%;
  height: 6%;
  padding: 0 16px;
  font-size: clamp(12px, 1.65vw, 19px);
}

.pdv-page-reference .pdv-reference-search-input:focus,
.pdv-page-reference .pdv-reference-qty-input:focus {
  outline: none;
}

.pdv-page-reference .pdv-reference-search-button {
  position: absolute;
  left: 53.45%;
  top: 16.35%;
  width: 4.15%;
  height: 6.4%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pdv-page-reference .pdv-reference-product-name {
  position: absolute;
  left: 26.15%;
  top: 24.4%;
  width: 28.5%;
  margin: 0;
  color: #080808;
  font-size: clamp(15px, 2vw, 28px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-page-reference .pdv-reference-product-image {
  position: absolute;
  left: 26.2%;
  top: 34.8%;
  width: 16.9%;
  height: 27.1%;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: #ff2d18;
  font-size: clamp(9px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.2;
}

.pdv-page-reference .pdv-reference-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdv-page-reference .pdv-reference-value {
  display: flex;
  align-items: center;
  font-size: clamp(10px, 1.15vw, 14px);
  padding: 0 10px;
}

.pdv-page-reference .pdv-reference-value.sku {
  left: 43.55%;
  top: 37.35%;
  width: 6.8%;
  height: 4.7%;
}

.pdv-page-reference .pdv-reference-value.unit {
  left: 50.9%;
  top: 37.35%;
  width: 6.55%;
  height: 4.7%;
}

.pdv-page-reference .pdv-reference-qty-btn,
.pdv-page-reference .pdv-reference-qty-input {
  position: absolute;
  top: 46.35%;
  height: 4.35%;
  border: 0;
  background: transparent;
  color: #0f53b3;
  text-align: center;
  font-size: clamp(10px, 1.1vw, 14px);
}

.pdv-page-reference .pdv-reference-qty-btn {
  width: 1.95%;
  cursor: pointer;
}

.pdv-page-reference .pdv-reference-qty-btn.minus {
  left: 43.55%;
}

.pdv-page-reference .pdv-reference-qty-input {
  left: 45.5%;
  width: 2.9%;
  color: #6b6b6b;
}

.pdv-page-reference .pdv-reference-qty-btn.plus {
  left: 48.4%;
}

.pdv-page-reference .pdv-reference-value.subtotal {
  left: 50.9%;
  top: 46.35%;
  width: 6.55%;
  height: 4.35%;
}

.pdv-page-reference .pdv-reference-item-total {
  position: absolute;
  left: 44.45%;
  top: 57.55%;
  width: 12.7%;
  color: #060606;
  text-align: center;
  font-size: clamp(18px, 3vw, 33px);
  line-height: 1;
  font-weight: 900;
}

.pdv-page-reference .pdv-reference-value.price-vj,
.pdv-page-reference .pdv-reference-value.price-at,
.pdv-page-reference .pdv-reference-value.price-pa,
.pdv-page-reference .pdv-reference-value.price-cx {
  top: 69.25%;
  width: 6.95%;
  height: 4.4%;
}

.pdv-page-reference .pdv-reference-value.price-vj {
  left: 26.25%;
}

.pdv-page-reference .pdv-reference-value.price-at {
  left: 34.5%;
}

.pdv-page-reference .pdv-reference-value.price-pa {
  left: 42.6%;
}

.pdv-page-reference .pdv-reference-value.price-cx {
  left: 50.75%;
}

.pdv-page-reference .pdv-reference-value.pieces-pa,
.pdv-page-reference .pdv-reference-value.pieces-cx {
  top: 79.05%;
  width: 7%;
  height: 4.5%;
}

.pdv-page-reference .pdv-reference-value.pieces-pa {
  left: 42.65%;
}

.pdv-page-reference .pdv-reference-value.pieces-cx {
  left: 50.8%;
}

.pdv-page-reference .pdv-reference-order-number {
  position: absolute;
  left: 69.2%;
  top: 14.35%;
  color: #050505;
  font-size: clamp(16px, 2vw, 32px);
  line-height: 1;
  font-weight: 900;
}

.pdv-page-reference .pdv-reference-order-list {
  position: absolute;
  left: 59.75%;
  top: 27.95%;
  width: 32.1%;
  max-height: 52%;
  overflow: hidden;
}

.pdv-page-reference .pdv-reference-order-row {
  padding: 1.2% 0 1.3%;
  border-bottom: 1px solid #bebebe;
}

.pdv-page-reference .pdv-reference-order-line {
  display: grid;
  grid-template-columns: 19% 44% 18% 19%;
  align-items: center;
}

.pdv-page-reference .pdv-reference-order-line.top {
  grid-template-columns: 19% 81%;
  margin-bottom: 0.7%;
}

.pdv-page-reference .pdv-reference-order-line .sku,
.pdv-page-reference .pdv-reference-order-line .qty,
.pdv-page-reference .pdv-reference-order-line .price,
.pdv-page-reference .pdv-reference-order-line .subtotal,
.pdv-page-reference .pdv-reference-order-line .type,
.pdv-page-reference .pdv-reference-order-line .name {
  color: #9d9d9d;
  font-size: clamp(10px, 1.35vw, 17px);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-page-reference .pdv-reference-order-line .qty {
  text-transform: none;
}

.pdv-page-reference .pdv-reference-order-total-label {
  position: absolute;
  right: 9.1%;
  bottom: 7.2%;
  color: #050505;
  font-size: clamp(14px, 1.8vw, 26px);
  line-height: 1;
}

.pdv-page-reference .pdv-reference-order-total-value {
  position: absolute;
  right: 9.05%;
  bottom: 3.55%;
  color: #050505;
  font-size: clamp(18px, 3vw, 36px);
  line-height: 1;
  font-weight: 900;
}

.pdv-page-reference .pdv-reference-action {
  position: absolute;
  bottom: 3.25%;
  width: 15.7%;
  height: 6.1%;
  border: 0;
  background: transparent;
  font-size: clamp(11px, 1.2vw, 18px);
  font-weight: 700;
  cursor: pointer;
}

.pdv-page-reference .pdv-reference-action.cancel {
  left: 26.15%;
  color: #0f53b3;
}

.pdv-page-reference .pdv-reference-action.finish {
  left: 43.1%;
  color: #ffffff;
}

.pdv-page-reference .pdv-reference-action small {
  font-size: .92em;
  font-weight: 500;
}

.pdv-page-reference .pdv-reference-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdv-page-reference .pdv-reference-open-orders {
  position: absolute;
  right: 0.55%;
  top: 13.45%;
  width: 6.85%;
  display: grid;
  gap: 1.3%;
}

.pdv-page-reference .pdv-reference-open-order {
  min-height: 69px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: #dff0ff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #151515;
}

.pdv-page-reference .pdv-reference-open-order span {
  font-size: clamp(9px, 1vw, 14px);
  line-height: 1.05;
}

.pdv-page-reference .pdv-reference-open-order strong {
  font-size: clamp(11px, 1.15vw, 16px);
  line-height: 1.05;
}

.pdv-page-reference .pdv-reference-open-order.is-synced {
  opacity: 0.72;
}

.pdv-page-reference .pdv-reference-feedback {
  position: absolute;
  left: 26.25%;
  bottom: 10.9%;
  max-width: 31%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: clamp(10px, .9vw, 13px);
  font-weight: 700;
}

.pdv-page-reference .pdv-reference-feedback.is-info {
  background: rgba(237, 244, 255, 0.94);
  color: #0f53b3;
}

.pdv-page-reference .pdv-reference-feedback.is-success {
  background: rgba(238, 250, 242, 0.96);
  color: #23723f;
}

.pdv-page-reference .pdv-reference-feedback.is-error {
  background: rgba(255, 240, 239, 0.96);
  color: #b3362d;
}

@media (max-width: 980px) {
  .pdv-page-reference {
    min-height: auto;
  }

  .pdv-page-reference .pdv-reference-stage {
    width: 100vw;
  }

  .pdv-page-reference .pdv-reference-open-orders {
    display: none;
  }
}

.app-shell:has(.pdv-layout-page) .app-header {
  display: none;
}

.app-shell:has(.pdv-layout-page) .app-content {
  padding: 0;
  background: #ffffff;
}

.pdv-layout-page {
  width: 100%;
  height: 100vh;
  margin: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdv-wireframe-header {
  width: 100%;
  height: 64px;
  background: #0b4ea2;
  display: flex;
  align-items: center;
  padding-left: 20px;
  flex-shrink: 0;
}

.pdv-wireframe-logo {
  width: 42px;
  height: 42px;
  background: url("./icones/pdv-header-logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
  padding: 0;
  cursor: pointer;
}

.pdv-wireframe-main {
  height: calc(100vh - 64px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0 12px;
  overflow: hidden;
}

.pdv-wireframe-content {
  flex: 1;
  display: flex;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.pdv-wireframe-panel {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-height: 100%;
  box-shadow: none;
}

.pdv-wireframe-panel-1 {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.pdv-wireframe-panel-2 {
  flex: 1;
  min-width: 0;
}

.pdv-wireframe-panel-3 {
  flex: 1;
  min-width: 0;
}

.pdv-wireframe-panel-4 {
  width: 22%;
  min-width: 220px;
  flex-shrink: 0;
}

.pdv-wireframe-bottom-space {
  height: 60px;
  background: #ffffff;
  flex-shrink: 0;
}

.open-orders-column {
  width: 110px;
  height: 100%;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  font-family: "Glacial Indifference", "Segoe UI", sans-serif;
}

.open-orders-top {
  position: relative;
  width: 100%;
  height: 32px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 6px;
  flex: 0 0 auto;
}

.open-orders-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 28px 0 8px;
  font-size: 11px;
  color: #666666;
  outline: none;
}

.open-orders-search-input::placeholder {
  color: #8a8a8a;
}

.search-button {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 24px;
  height: 32px;
  min-width: 24px;
  min-height: 32px;
  max-width: 24px;
  max-height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #004aad;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  box-shadow: none;
}

.search-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.search-icon circle,
.search-icon line {
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-orders-title {
  text-align: center;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 700;
  color: #8a8a8a;
  letter-spacing: 0.2px;
  margin: 0 0 6px 0;
  padding: 0 2px;
  flex: 0 0 auto;
}

.open-orders-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.open-order-card {
  width: 100%;
  background: #dddddd;
  border: none;
  border-radius: 8px;
  padding: 6px 4px 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.open-order-card:hover {
  background: #d4d4d4;
}

.open-order-card.is-active {
  background: #dbe8fb;
  outline: 1px solid #8fb0df;
}

.open-order-card.is-demo {
  cursor: default;
}

.order-number {
  font-size: 12px;
  font-weight: 700;
  color: #7a7a7a;
  margin-bottom: 2px;
}

.order-date {
  font-size: 11px;
  font-weight: 500;
  color: #8a8a8a;
}

.pdv-left-empty {
  text-align: center;
  font-size: 11px;
  color: #999999;
  margin-top: 10px;
  line-height: 1.25;
}

.pdv-product-column {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px 12px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Glacial Indifference", "Segoe UI", sans-serif;
}

.product-search-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.product-search-wrapper .product-search-input {
  width: 100%;
  height: 34px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  padding: 0 42px 0 14px;
  font-size: 15px;
  color: #555555;
  outline: none;
  box-sizing: border-box;
  background: #ffffff;
}

.product-search-wrapper .product-search-input::placeholder {
  color: #9a9a9a;
}

.product-search-wrapper .product-search-button {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #004aad;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.product-name {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #000000;
  margin: 0 0 18px 2px;
}

.product-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.product-image-box {
  width: 220px;
  height: 205px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-placeholder {
  text-align: center;
  color: #ff2b1f;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 500;
  padding: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-fields {
  width: 125px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

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

.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: #8a8a8a;
  letter-spacing: 0.2px;
}

.field-input {
  width: 100%;
  height: 34px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
  color: #4d4d4d;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
}

.pdv-cart-column,
.pdv-summary-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
  font-family: "Glacial Indifference", "Segoe UI", sans-serif;
}

.pdv-cart-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.pdv-cart-header,
.pdv-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pdv-cart-header h3,
.pdv-summary-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  color: #101010;
}

.pdv-section-kicker {
  display: block;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.pdv-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3fb;
  color: #285da8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pdv-status-chip.is-highlight {
  background: #dff3e8;
  color: #23714c;
}

.pdv-cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.pdv-cart-card {
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fcfcfc;
}

.pdv-cart-card-head,
.pdv-cart-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdv-cart-card-head strong {
  display: block;
  font-size: 15px;
  color: #141414;
}

.pdv-cart-card-head span,
.pdv-cart-card-meta span,
.pdv-cart-prices span,
.pdv-cart-empty span,
.pdv-rule-callout span,
.pdv-summary-grid span {
  color: #737373;
  font-size: 12px;
  line-height: 1.35;
}

.pdv-cart-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdv-price-badge,
.pdv-rule-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #355681;
  font-size: 11px;
  font-weight: 700;
}

.pdv-rule-pill.is-muted {
  background: #f3f3f3;
  color: #7d7d7d;
}

.pdv-icon-button {
  width: 28px;
  height: 28px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #ffffff;
  color: #24549b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pdv-icon-button.danger {
  color: #b13636;
}

.pdv-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdv-qty-control strong,
.pdv-cart-prices strong,
.pdv-summary-grid strong,
.pdv-summary-total strong,
.pdv-cart-empty strong,
.pdv-rule-callout strong {
  color: #111111;
}

.pdv-cart-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pdv-cart-empty {
  min-height: 180px;
  border: 1px dashed #d7d7d7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  gap: 6px;
}

.pdv-summary-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.pdv-summary-grid div {
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #ebeff4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdv-summary-grid strong {
  font-size: 16px;
}

.pdv-rule-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #ddeaf7;
}

.pdv-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-summary-total {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdv-summary-total span {
  color: #6c6c6c;
  font-size: 13px;
  font-weight: 700;
}

.pdv-summary-total strong {
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 960px) {
  .pdv-wireframe-content {
    flex-direction: column;
  }

  .pdv-wireframe-panel,
  .pdv-wireframe-panel-1,
  .pdv-wireframe-panel-4 {
    width: 100%;
    min-width: 0;
    min-height: 160px;
  }

  .pdv-wireframe-main {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
  }

  .pdv-summary-grid {
    grid-template-columns: 1fr;
  }
}

.pdv-page-reference {
  width: 100%;
  max-width: none;
  margin: 0;
}

.app-shell:has(.pdv-page-reference) {
  background: #f7f4ef;
}

.app-shell:has(.pdv-page-reference) .app-content {
  padding: 13px 8px 14px;
  background: #f7f4ef;
}

.app-shell:has(.pdv-page-reference) .app-header {
  min-height: 88px;
  padding: 0 18px;
  background: #0f53b3;
  border-bottom: 0;
  box-shadow: none;
  grid-template-columns: 88px 1fr auto;
}

.app-shell:has(.pdv-page-reference) .top-nav,
.app-shell:has(.pdv-page-reference) .header-search-wrap,
.app-shell:has(.pdv-page-reference) .header-actions-group {
  display: none !important;
}

.app-shell:has(.pdv-page-reference) .brand-button {
  background: transparent;
  min-width: 74px;
  height: 88px;
  border-radius: 0;
}

.app-shell:has(.pdv-page-reference) .brand-image-frame {
  width: 74px;
  height: 88px;
  background: url("./icones/pdv-header-logo.png") center center / contain no-repeat;
}

.pdv-reference-shell {
  width: min(100%, 1366px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 302px 458px minmax(0, 450px) 94px;
  gap: 8px;
  align-items: stretch;
}

.pdv-reference-banner,
.pdv-reference-product-card,
.pdv-reference-order-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
}

.pdv-reference-banner {
  background: #dff0ff;
  min-height: 652px;
  display: grid;
  place-items: center;
  padding: 30px 24px;
}

.pdv-reference-banner-content {
  text-align: center;
  color: #ff2b18;
  display: grid;
  gap: 22px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.pdv-reference-banner-content strong {
  font-size: 1.06rem;
}

.pdv-reference-banner-content p {
  margin: 0;
}

.pdv-reference-product-card {
  min-height: 652px;
  padding: 22px 14px 8px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
}

.pdv-reference-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: stretch;
}

.pdv-reference-search-input {
  width: 100%;
  height: 49px;
  border: 1px solid #c5c5c5;
  border-right: 0;
  border-radius: 0;
  padding: 0 16px;
  font-size: 0.94rem;
  color: #8e8e8e;
}

.pdv-reference-search-input:focus {
  outline: none;
}

.pdv-reference-search-button {
  border: 0;
  background: #0f53b3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center center / 28px 28px no-repeat;
  cursor: pointer;
}

.pdv-reference-product-title {
  margin: 0;
  color: #060606;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.pdv-reference-product-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.pdv-reference-image-box {
  min-height: 210px;
  border: 1px solid #d0d0d0;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: #ff2b18;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
}

.pdv-reference-image-box img {
  max-width: 100%;
  max-height: 182px;
  object-fit: contain;
}

.pdv-reference-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}

.pdv-reference-field {
  display: grid;
  gap: 4px;
}

.pdv-reference-field span {
  color: #999999;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-reference-field input {
  width: 100%;
  height: 34px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  padding: 0 10px;
  color: #5d5d5d;
  font-size: 0.76rem;
  background: #ffffff;
}

.pdv-reference-qty-box {
  display: grid;
  grid-template-columns: 25px 1fr 25px;
}

.pdv-reference-qty-box button,
.pdv-reference-qty-box input {
  height: 34px;
  border: 1px solid #d7d7d7;
  border-radius: 0;
}

.pdv-reference-qty-box button {
  background: #ffffff;
  color: #0f53b3;
  cursor: pointer;
}

.pdv-reference-qty-box input {
  text-align: center;
  padding: 0;
  border-left: 0;
  border-right: 0;
}

.pdv-reference-item-price {
  grid-column: 1 / -1;
  margin-top: 30px;
  color: #050505;
  font-size: 0.94rem;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.pdv-reference-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  align-content: start;
}

.pdv-reference-prices-spacer {
  display: block;
}

.pdv-reference-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.pdv-reference-cancel,
.pdv-reference-finish {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-size: 0.82rem;
  box-shadow: none;
}

.pdv-reference-cancel {
  border-color: #0f53b3;
}

.pdv-reference-cancel small,
.pdv-reference-finish small {
  font-size: 0.78rem;
  font-weight: 500;
}

.pdv-reference-finish[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pdv-reference-feedback {
  margin-top: 8px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  font-weight: 700;
}

.pdv-reference-feedback.is-info {
  background: #edf4ff;
  color: #0f53b3;
}

.pdv-reference-feedback.is-success {
  background: #eefaf2;
  color: #23723f;
}

.pdv-reference-feedback.is-error {
  background: #fff0ef;
  color: #b3362d;
}

.pdv-reference-order-card {
  min-height: 652px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.pdv-reference-order-header {
  padding: 8px 10px 0;
}

.pdv-reference-order-title-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 8px;
}

.pdv-reference-order-title-row h2,
.pdv-reference-order-title-row strong {
  margin: 0;
  color: #060606;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 900;
}

.pdv-reference-order-columns,
.pdv-reference-order-row-top,
.pdv-reference-order-row-bottom {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.8fr) 92px 112px 92px;
  gap: 10px;
  align-items: center;
}

.pdv-reference-order-columns {
  color: #999999;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-reference-order-columns-secondary {
  margin-top: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #bfbfbf;
}

.pdv-reference-order-list {
  padding: 0 10px;
}

.pdv-reference-order-empty {
  min-height: 340px;
}

.pdv-reference-order-row {
  padding: 8px 0 10px;
  border-bottom: 1px solid #c8c8c8;
}

.pdv-reference-order-row-top strong,
.pdv-reference-order-row-top span,
.pdv-reference-order-row-bottom span {
  color: #9a9a9a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-reference-order-row-bottom {
  margin-top: 4px;
}

.pdv-reference-order-row-bottom span:first-child {
  text-transform: none;
}

.pdv-reference-order-total {
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.pdv-reference-order-total span {
  color: #050505;
  font-size: 0.82rem;
  line-height: 1;
}

.pdv-reference-order-total strong {
  color: #050505;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 900;
}

.pdv-reference-open-orders {
  padding-top: 2px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.pdv-reference-open-order-chip {
  min-height: 68px;
  border: 0;
  border-radius: 12px;
  background: #dff0ff;
  color: #111111;
  display: grid;
  place-items: center;
  padding: 8px 4px;
  cursor: default;
  text-align: center;
}

.pdv-reference-open-order-chip span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.1;
}

.pdv-reference-open-order-chip strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.1;
}

.pdv-reference-open-order-chip.is-synced {
  opacity: 0.76;
}

@media (max-width: 1280px) {
  .pdv-reference-shell {
    grid-template-columns: 220px minmax(320px, 1fr) minmax(320px, 1fr);
  }

  .pdv-reference-open-orders {
    grid-column: 2 / 4;
    grid-auto-flow: column;
    justify-content: end;
  }
}

@media (max-width: 980px) {
  .app-shell:has(.pdv-page-reference) .app-content {
    padding: 12px;
  }

  .pdv-reference-shell {
    grid-template-columns: 1fr;
  }

  .pdv-reference-open-orders {
    grid-column: auto;
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .pdv-reference-banner,
  .pdv-reference-product-card,
  .pdv-reference-order-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .pdv-reference-product-body,
  .pdv-reference-actions,
  .pdv-reference-prices {
    grid-template-columns: 1fr;
  }

  .pdv-reference-prices-spacer {
    display: none;
  }

  .pdv-reference-order-columns,
  .pdv-reference-order-row-top,
  .pdv-reference-order-row-bottom {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pdv-reference-order-columns-secondary {
    display: none;
  }
}
