:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #dbe3ee;
  --text: #112036;
  --muted: #5f6f85;
  --accent: #1f5eff;
  --accent-soft: #eaf1ff;
  --accent-strong: #0f3fd1;
  --green: #18b968;
  --green-soft: #eafaf1;
  --green-border: #c8f0da;
  --orange: #ff7a21;
  --orange-soft: #fff3e8;
  --orange-border: #ffd8b8;
  --violet: #7c3aed;
  --violet-soft: #f2ebff;
  --shadow: 0 18px 40px rgba(17, 32, 54, 0.08);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.05);
}

/* Market analysis topbar screen. */
.market-analysis-page {
  min-height: 100vh;
  background: #f6f9fd;
  color: #0b1744;
}

.market-analysis-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.market-topbar {
  height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  border-bottom: 1px solid #dfe7f2;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
}

.market-brand,
.market-nav-item,
.market-logout-link {
  color: inherit;
  text-decoration: none;
}

.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 900;
}

.market-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.market-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #18305f;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.market-nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.market-nav-item.is-active {
  color: #1262ff;
}

.market-nav-item.is-active::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1262ff;
  content: "";
}

.market-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.market-update-pill,
.market-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18305f;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.market-update-pill strong {
  color: #1262ff;
}

.market-update-pill svg,
.market-user-pill svg,
.market-logout-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.market-user-pill {
  min-height: 42px;
  padding-left: 12px;
  border-left: 1px solid #dfe7f2;
}

.market-user-pill > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d4deec;
  border-radius: 999px;
  background: #f8fbff;
}

.market-logout-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #1e3a6d;
}

.market-analysis-page .online-market-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 28px;
  overflow: visible;
}

.market-analysis-page .online-market-filter-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  min-height: 96px;
  padding: 16px 22px;
  border-radius: 12px;
}

.market-analysis-page .products-filter-select {
  height: 52px;
}

.market-clear-link {
  justify-self: end;
  min-height: 44px;
  align-self: center;
  flex-direction: row;
  color: #1262ff;
}

.market-analysis-page .online-market-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.market-kpi-card {
  position: relative;
  min-height: 140px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 22px 18px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 32, 54, 0.045), 0 1px 2px rgba(17, 32, 54, 0.03);
  overflow: hidden;
}

.market-kpi-card::after {
  position: absolute;
  right: 22px;
  bottom: 13px;
  left: 22px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.market-kpi-card.tone-blue { color: #1262ff; }
.market-kpi-card.tone-green { color: #13a75b; }
.market-kpi-card.tone-violet { color: #8a2cff; }
.market-kpi-card.tone-orange { color: #ff5a1f; }

.market-kpi-card div {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #0b1744;
}

.market-kpi-card span:not(.market-kpi-icon) {
  color: #18305f;
  font-size: 13px;
  font-weight: 850;
}

.market-kpi-card strong {
  color: #0b1744;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.market-kpi-card small {
  color: #26416f;
  font-size: 13px;
  font-weight: 720;
}

.market-kpi-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, white);
}

.market-kpi-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.market-analysis-page .online-market-main-grid {
  grid-template-columns: minmax(390px, 0.78fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.market-analysis-page .online-market-map-card {
  min-height: 378px;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-radius: 12px;
}

.market-analysis-page .online-market-map-shell {
  min-height: 328px;
  border-radius: 9px;
}

.market-analysis-page .online-market-map-legend {
  right: 50%;
  bottom: 8px;
  transform: translateX(50%);
  min-width: 500px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 20px;
  padding: 10px 18px;
}

.market-analysis-page .online-market-map-legend i {
  width: 16px;
  height: 16px;
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.09);
}

.market-analysis-page .online-market-opportunity-card {
  min-height: 378px;
  padding: 18px 22px;
}

.market-analysis-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
}

.market-score-panel,
.market-presence-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.market-score-heading {
  display: grid;
  gap: 6px;
}

.market-score-heading span {
  color: #142b59;
  font-size: 14px;
  font-weight: 850;
}

.market-score-heading strong {
  color: #1262ff;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.market-score-heading small {
  color: #213b6a;
  font-size: 19px;
}

.market-score-heading b {
  color: #10a35a;
  font-size: 14px;
  font-weight: 850;
}

.market-score-scale {
  position: relative;
  height: 8px;
  margin: 4px 4px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3f2f 0%, #ffad24 40%, #8ac43f 65%, #10a35a 100%);
}

.market-score-marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #14b86a;
  box-shadow: 0 6px 14px rgba(13, 110, 64, 0.28);
}

.market-score-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #344b78;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.market-score-labels span:first-child { text-align: left; }
.market-score-labels span:last-child { text-align: right; }

.market-analysis-page .online-market-zone-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-presence-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
}

.market-presence-tabs button {
  height: 40px;
  border: 0;
  background: #f8fbff;
  color: #304675;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.market-presence-tabs button.is-active {
  outline: 1px solid #1262ff;
  outline-offset: -1px;
  background: #fff;
  color: #1262ff;
}

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

.market-presence-results div {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  text-align: center;
}

.market-presence-results span {
  color: #27416e;
  font-size: 12px;
  font-weight: 800;
}

.market-presence-results strong {
  color: #1262ff;
  font-size: 15px;
  font-weight: 900;
}

.market-presence-results svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.market-analysis-page .online-market-reading {
  margin: 0;
  color: #18305f;
}

.market-analysis-page .online-market-table-card {
  min-height: 300px;
  border-radius: 12px;
}

.market-analysis-page .online-market-table {
  min-width: 1180px;
}

.online-market-table .column-rank { width: 46px; }
.online-market-table .column-population { width: 140px; }
.online-market-table .column-regulatory { width: 112px; }
.online-market-table .column-inhabitants { width: 140px; }
.online-market-table .column-diagnosis { width: 230px; }

.market-analysis-page .online-market-bar {
  width: 150px;
}

.market-analysis-page .online-market-bar b {
  background: #12a765;
}

.market-diagnosis {
  color: #1262ff;
  font-weight: 850;
}

@media (max-width: 1260px) {
  .market-topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .market-nav,
  .market-topbar-actions {
    overflow-x: auto;
  }

  .market-analysis-page .online-market-kpis,
  .market-analysis-page .online-market-main-grid,
  .market-analysis-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .market-analysis-page .online-market-shell {
    padding: 14px;
  }

  .market-analysis-page .online-market-filter-row,
  .market-analysis-page .online-market-zone-stats,
  .market-presence-results {
    grid-template-columns: 1fr;
  }

  .market-analysis-page .online-market-map-legend {
    min-width: 0;
    width: calc(100% - 20px);
    grid-auto-flow: row;
  }
}

/* Product catalog layout mirrors the approved visual reference. */
.catalog-shell-page {
  background:
    radial-gradient(circle at 86% 6%, rgba(31, 94, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(24, 185, 104, 0.06), transparent 30%),
    #f7f9fc;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.catalog-shell-page .catalog-main {
  min-width: 0;
  height: 100vh;
  padding: 24px 40px 42px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-shell-page .catalog-topbar {
  margin-bottom: 16px;
}

.catalog-shell-page .shell-eyebrow:empty {
  display: none;
}

.catalog-shell-page .shell-copy {
  font-size: 17px;
  line-height: 1.45;
}

.catalog-shell-page .products-export-button {
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  box-shadow: none;
}

.detail-shell-heading {
  display: grid;
  gap: 8px;
}

.catalog-shell-page .catalog-topbar .pharmacies-page-heading,
.catalog-shell-page .catalog-topbar .detail-shell-heading {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.catalog-shell-page .catalog-topbar .pharmacies-page-heading h1,
.catalog-shell-page .catalog-topbar .detail-shell-heading h1 {
  margin: 0;
  color: #10203a;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.detail-back-link:hover,
.detail-back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, 0.08), transparent 36%),
    #fff;
  box-shadow: var(--shadow-card);
}

.product-packaging-card {
  min-height: 100%;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe, #f7fafc);
}

.product-packaging-image {
  width: 100%;
  min-height: 280px;
  display: block;
  object-fit: contain;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.5), 0 22px 35px rgba(17, 32, 54, 0.08);
}

.product-packaging-card-inner {
  position: relative;
  min-height: 280px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f8fa, #eef2f7);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.5), 0 22px 35px rgba(17, 32, 54, 0.08);
  overflow: hidden;
}

.product-packaging-card-inner::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 44%),
    linear-gradient(135deg, transparent 54%, rgba(31, 94, 255, 0.05) 54%, rgba(31, 94, 255, 0.05) 58%, transparent 58%);
  content: "";
  pointer-events: none;
}

.product-packaging-topline,
.product-packaging-name,
.product-packaging-strength,
.product-packaging-foot,
.product-packaging-mark {
  position: relative;
  z-index: 1;
}

.product-packaging-topline {
  max-width: 14ch;
  color: #172033;
  font-size: 31px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.product-packaging-name {
  margin-top: 4px;
  color: #1f2937;
  font-size: 24px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-packaging-strength {
  margin-top: 8px;
  color: #1f8a59;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-packaging-band {
  position: absolute;
  right: 0;
  bottom: 54px;
  left: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(31, 126, 84, 0.98), rgba(11, 111, 72, 0.98));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.28) inset;
}

.product-packaging-foot {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-packaging-mark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #196f4d;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(17, 32, 54, 0.15);
}

.product-detail-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 8px 4px 6px 0;
}

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

.product-detail-title-row h1 {
  margin: 0;
  color: #13213c;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.product-detail-title-row p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.detail-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.detail-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}

.detail-chip-good {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: #14965b;
}

.detail-chip-muted {
  border-color: #c9dbf4;
  background: #eef4ff;
  color: #2c67f2;
}

.detail-id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 700;
}

.detail-id-row span + span::before {
  margin-right: 12px;
  color: #c5ceda;
  content: "•";
}

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

.detail-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.detail-metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.detail-metric-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-metric-label {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-metric strong {
  display: block;
  margin-top: 4px;
  color: #173152;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.detail-tabs {
  display: flex;
  gap: 26px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-tabs a {
  padding-bottom: 12px;
  color: #334155;
  font-weight: 700;
}

.detail-tabs a.is-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.product-detail-content {
  padding-top: 24px;
}

.detail-overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 20px;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.detail-summary-grid > .panel-card,
.product-detail-content > .panel-card {
  margin-top: 0;
}

.image-placeholder {
  min-height: 162px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
  color: var(--muted);
}

.detail-overview-grid .image-placeholder {
  min-height: 280px;
  margin-top: 0;
}

.product-overview-art {
  text-align: center;
  padding: 24px;
}

.product-overview-art.has-image {
  gap: 14px;
  border-style: solid;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.product-overview-image {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: contain;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(17, 32, 54, 0.08);
}

.image-placeholder strong {
  color: #334155;
}

.image-placeholder span {
  font-size: 12px;
}

.image-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #64748b;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-grid-wide {
  padding: 18px 0 20px;
  border-bottom: 0;
}

.detail-overview-grid > .detail-grid {
  margin-top: 0;
  padding: 24px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-grid span {
  display: block;
  color: #172554;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.detail-grid strong {
  color: #475569;
  font-weight: 600;
}

.panel-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.panel-title {
  color: #172554;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.chart-frame {
  position: relative;
  height: 172px;
  min-height: 172px;
}

.chart-frame-tall {
  height: 230px;
  min-height: 230px;
}

.chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.product-command-page {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 8px 4px 36px;
  overflow: auto;
}

.product-command-hero {
  position: relative;
  isolation: isolate;
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  gap: 24px;
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-command-identity {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 4px 0 0;
}

.product-command-media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 256px;
  min-height: 256px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #d5deeb;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at 28% 24%, rgba(31, 94, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(24, 185, 104, 0.12), transparent 30%),
    #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 18px 42px rgba(17, 32, 54, 0.08);
  overflow: hidden;
}

.product-command-media::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(31, 94, 255, 0.12);
  border-radius: 12px;
  content: "";
  z-index: 0;
}

.product-command-media > img,
.product-command-media > .product-command-visual,
.product-command-media > .product-command-image-placeholder {
  grid-area: 1 / 1;
}

.product-command-media-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-command-media-art span {
  position: absolute;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.08);
}

.product-command-media-art span:nth-child(1) {
  width: 220px;
  height: 220px;
  right: -72px;
  top: -88px;
}

.product-command-media-art span:nth-child(2) {
  width: 140px;
  height: 140px;
  left: 16%;
  bottom: -76px;
  background: rgba(24, 185, 104, 0.1);
}

.product-command-media-art span:nth-child(3) {
  width: 190px;
  height: 22px;
  right: 92px;
  bottom: 58px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 94, 255, 0.72), rgba(24, 185, 104, 0.58), rgba(255, 122, 33, 0.55));
  filter: blur(18px);
}

.product-command-media img {
  position: relative;
  z-index: 1;
  width: min(72%, 520px);
  max-height: 178px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(15, 23, 42, 0.12));
}

.product-command-media img[hidden] {
  display: none !important;
}

.product-command-media.is-empty {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(31, 94, 255, 0.08), transparent 36%),
    #fff;
}

.product-command-media.is-empty .product-command-media-control,
.product-command-media.is-empty .product-command-media-dots,
.product-command-media.is-empty .product-command-media-caption {
  display: none;
}

.product-command-image-placeholder {
  position: relative;
  z-index: 1;
  width: min(82%, 360px);
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(96, 112, 137, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #607089;
  text-align: center;
  box-shadow: 0 14px 28px rgba(17, 32, 54, 0.06);
}

.product-command-image-placeholder[hidden] {
  display: none !important;
}

.product-command-image-placeholder-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f5eff;
}

.product-command-image-placeholder-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-command-image-placeholder strong {
  color: #173152;
  font-size: 17px;
  line-height: 1.1;
}

.product-command-image-placeholder > span:not(.product-command-image-placeholder-icon) {
  max-width: 28ch;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.product-command-media-control {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f5eff;
  box-shadow: 0 8px 18px rgba(17, 32, 54, 0.08);
  transform: translateY(-50%);
  z-index: 3;
}

.product-command-media-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-command-media-control.is-left {
  left: 22px;
}

.product-command-media-control.is-right {
  right: 22px;
}

.product-command-media-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  z-index: 3;
}

.product-command-media-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.product-command-media-dots span.is-active {
  background: #1f5eff;
}

.product-command-kicker,
.detail-section-heading span {
  color: #607089;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-command-title-block {
  display: grid;
  gap: 13px;
}

.product-command-title-block h1 {
  max-width: 25ch;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #10213a;
  font-size: clamp(26px, 1.85vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.product-command-title-block p {
  max-width: 64ch;
  margin: 7px 0 0;
  color: #52627a;
  font-size: 14px;
  line-height: 1.45;
}

.product-command-statuses {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.product-command-chip {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  color: #52627a;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.product-command-chip.is-good {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: #137a4f;
}

.product-command-chip.is-warn {
  border-color: var(--orange-border);
  background: var(--orange-soft);
  color: #a4470f;
}

.product-command-chip.is-muted {
  border-color: #d6dee9;
  background: #f1f5f9;
  color: #64748b;
}

.product-command-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 12px 26px rgba(17, 32, 54, 0.055);
}

.command-data-grid > div,
.command-status-grid > div {
  min-width: 0;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.product-command-meta-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 15px 18px;
}

.product-command-meta-item + .product-command-meta-item {
  border-left: 1px solid #e5ebf3;
}

.product-command-meta-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f5eff;
}

.product-command-meta-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-command-meta dt,
.price-command-metrics span,
.command-data-grid > div > span,
.command-status-grid .status-control-copy span {
  display: block;
  margin-bottom: 6px;
  color: #607089;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-command-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #18314f;
  font-size: 13px;
  font-weight: 800;
}

.product-command-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(15, 35, 62, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 35, 62, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #eef6f8, #f8fbff 44%, #edf3ff);
  background-size: 32px 32px, 32px 32px, auto;
  z-index: 1;
}

.product-command-visual[hidden] {
  display: none !important;
}

.product-command-media-caption {
  position: absolute;
  right: 72px;
  bottom: 38px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #173152;
  font-size: 11px;
  pointer-events: none;
}

.product-command-media-caption span,
.product-command-media-caption strong {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(31, 94, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(17, 32, 54, 0.06);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-command-media-caption span {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #1f5eff;
  font-weight: 900;
}

.product-command-media-caption strong {
  min-width: 0;
  padding: 7px 11px;
  font-weight: 800;
}

.product-command-visual::before {
  position: absolute;
  inset: 22px;
  border: 2px solid rgba(31, 94, 255, 0.2);
  border-radius: 8px;
  content: "";
}

.product-command-visual::after {
  position: absolute;
  right: 36px;
  bottom: 48px;
  left: 36px;
  height: 54px;
  background:
    linear-gradient(90deg, #1f5eff 0 18%, transparent 18% 24%, #18b968 24% 52%, transparent 52% 58%, #ff7a21 58% 74%, transparent 74% 80%, #7c3aed 80%);
  border-radius: 6px;
  content: "";
  opacity: 0.85;
}

.product-command-visual-label,
.product-command-visual-grid,
.product-command-visual-code {
  position: relative;
  z-index: 1;
}

.product-command-visual-label {
  display: grid;
  gap: 7px;
  color: #173152;
}

.product-command-visual-label span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-command-visual-label strong {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: 0;
}

.product-command-visual-grid {
  align-self: center;
  justify-self: end;
  width: 148px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.product-command-visual-grid span {
  aspect-ratio: 1;
  border: 1px solid rgba(31, 94, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.product-command-visual-code {
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(16, 33, 58, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #173152;
  font-size: 13px;
  font-weight: 900;
}

.product-command-price-grid,
.product-command-grid {
  display: grid;
  gap: 20px;
}

.product-command-price-grid {
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.product-command-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.detail-command-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 10px 24px rgba(15, 23, 42, 0.035);
}

.detail-section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.detail-section-heading h2 {
  margin: 0;
  color: #13213c;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.price-command-metrics,
.command-data-grid,
.command-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.price-command-metrics {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  align-items: stretch;
}

.price-command-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.command-data-grid > div,
.command-status-grid > div {
  padding: 14px;
}

.price-command-primary,
.price-command-secondary > div {
  min-width: 0;
  padding: 17px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
}

.price-command-primary {
  min-height: 118px;
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
}

.price-command-secondary > div {
  min-height: 58px;
}

.price-command-secondary-wide {
  grid-column: 1 / -1;
}

.price-command-metrics strong,
.command-data-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #24324a;
  font-size: 15px;
  line-height: 1.35;
}

.price-command-primary strong {
  color: #0f3fd1;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.chart-subtitle {
  margin-top: 18px;
  color: #32415a;
  font-size: 13px;
  font-weight: 800;
}

.price-comparison-frame {
  flex: 1 1 auto;
  margin-top: 10px;
  height: 214px;
  min-height: 214px;
}

.price-history-panel .chart-frame-tall {
  flex: 1 1 auto;
  height: 326px;
  min-height: 326px;
}

.quality-command-layout {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.product-command-page .muted {
  margin: 0;
  color: #5f6f85;
  font-weight: 700;
}

.status-control-tile {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
}

.status-control-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.status-control-copy span {
  margin-bottom: 0;
}

.status-control-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0;
  text-transform: none;
}

.status-control-tile.is-good {
  border-color: var(--green-border);
  background: #f4fcf7;
}

.status-control-tile.is-good .status-control-mark {
  background: #18a957;
}

.status-control-tile.is-good .status-control-mark::before {
  width: 12px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.status-control-tile.is-warn {
  border-color: var(--orange-border);
  background: #fff8f1;
}

.status-control-tile.is-warn .status-control-mark {
  background: #f97316;
}

.status-control-tile.is-warn .status-control-mark::before {
  content: "!";
}

.status-control-tile.is-muted {
  border-color: #dce4ef;
  background: #f8fafc;
}

.status-control-tile.is-muted .status-control-mark {
  background: #94a3b8;
}

.status-control-tile.is-muted .status-control-mark::before {
  content: "-";
}

.status-control-tile strong {
  color: #1d314f;
  font-size: 15px;
}

.classification-panel .command-data-grid,
.access-panel .command-status-grid {
  grid-template-columns: 1fr;
}

.access-panel,
.classification-panel,
.ingredients-panel {
  grid-column: span 2;
}

.quality-panel {
  grid-column: span 3;
}

.lineage-panel {
  grid-column: span 3;
}

.lineage-panel .command-data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ingredient-browser {
  min-height: 0;
  padding: 14px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.ingredient-browser-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ingredient-browser-header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ingredient-browser-header span {
  color: #607089;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredient-browser-header strong {
  color: #1d314f;
  font-size: 14px;
}

.ingredient-search {
  flex: 0 1 210px;
  min-width: 140px;
}

.ingredient-search input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #fff;
  color: #1d314f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
}

.ingredient-search input:focus {
  border-color: rgba(31, 94, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.ingredient-list {
  counter-reset: ingredient;
  max-height: 230px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow: auto;
  list-style: none;
}

.ingredient-list li {
  counter-increment: ingredient;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #e4ebf4;
  border-radius: 9px;
  background: #fff;
  color: #20314d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.ingredient-list li::before {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f5eff;
  content: counter(ingredient);
  font-size: 11px;
  font-weight: 900;
}

.ingredient-list li[hidden] {
  display: none !important;
}

.ingredient-empty {
  margin: 10px 0 0;
  color: #607089;
  font-size: 13px;
  font-weight: 800;
}

.quality-layout {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
}

.quality-ring {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(#fff 58%, transparent 60%),
    conic-gradient(var(--green) var(--score), #e2e8f0 0);
}

.quality-ring canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.quality-ring strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
}

.quality-bars {
  display: grid;
  gap: 12px;
}

.quality-bars label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #344255;
  font-size: 13px;
  font-weight: 700;
}

.quality-bars progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e5edf7;
}

.quality-bars progress::-webkit-progress-bar {
  background: #e5edf7;
}

.quality-bars progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), #5aa0ff);
  border-radius: 999px;
}

.quality-bars progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), #5aa0ff);
  border-radius: 999px;
}

.products-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
}

.products-results {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.products-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.products-kpi-grid .kpi-card {
  min-width: 0;
  min-height: 198px;
  display: block;
  padding: 20px 22px 14px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.kpi-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.products-kpi-grid .kpi-icon {
  position: static;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
}

.products-kpi-grid .kpi-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products-kpi-grid .kpi-copy {
  min-width: 0;
  padding: 5px 0 0;
}

.products-kpi-grid .kpi-copy span {
  overflow: hidden;
  color: #24324a;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-kpi-grid .kpi-copy strong {
  margin-top: 10px;
  color: #111d35;
  font-size: clamp(27px, 1.7vw, 34px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.sparkline-canvas {
  position: absolute;
  right: 20px;
  bottom: 12px;
  left: 20px;
  display: block;
  width: calc(100% - 40px) !important;
  height: 44px !important;
}

.kpi-meta {
  position: absolute;
  top: 112px;
  left: 22px;
  margin: 0;
  color: #62718a;
  font-size: 14px;
  font-weight: 650;
}

.kpi-meta.kpi-change {
  color: var(--green);
}

.kpi-meta span {
  display: inline;
  color: #62718a;
}

.products-filter-form {
  display: grid;
  gap: 14px;
}

.products-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.products-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, max-content) auto;
  gap: 16px;
  align-items: center;
}

.products-filter-pill {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #26354d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.products-filter-pill:hover {
  border-color: #c5d3e6;
  box-shadow: 0 5px 14px rgba(31, 53, 83, 0.07);
  transform: translateY(-1px);
}

.products-filter-pill > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-filter-pill select {
  width: auto;
  min-width: 48px;
  margin-left: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #586780;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.products-filter-select {
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px;
}

.products-filter-select > span {
  color: #26354d;
  font-size: 13px;
  font-weight: 700;
}

.products-filter-select select {
  width: auto;
  max-width: calc(100% - 88px);
  margin: 0 0 0 auto;
  color: #1e2d45;
  font-size: 13px;
  text-overflow: ellipsis;
}

.products-filter-toggle {
  min-height: 42px;
  width: max-content;
  justify-self: start;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px;
  cursor: pointer;
}

.filter-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
}

.products-filter-pill .filter-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.filter-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9e1ec;
  box-shadow: inset 0 0 0 1px rgba(72, 91, 118, 0.08);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.filter-switch-track::before {
  position: absolute;
  top: 4px;
  left: 6px;
  color: #fff;
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 150ms ease;
}

.filter-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 48, 73, 0.28);
  content: "";
  transition: transform 150ms ease;
}

.filter-switch input:checked + .filter-switch-track {
  background: #2871ed;
  box-shadow: inset 0 0 0 1px rgba(20, 80, 185, 0.15);
}

.filter-switch input:checked + .filter-switch-track::before {
  opacity: 1;
}

.filter-switch input:checked + .filter-switch-track::after {
  transform: translateX(16px);
}

.filter-switch input:focus-visible + .filter-switch-track {
  outline: 3px solid rgba(40, 113, 237, 0.24);
  outline-offset: 2px;
}

.products-filter-apply {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #2871ed;
  color: #fff;
  font-weight: 750;
}

.products-clear-link {
  justify-self: end;
  padding: 8px 11px;
  border-radius: 9px;
  color: #52627a;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.products-clear-link:hover {
  background: #edf3fb;
  color: #1f63c8;
}

.products-table-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.products-table-card .toolbar-button {
  min-width: 0;
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #dce4ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  color: #34445d;
  font-size: 14px;
  font-weight: 700;
}

.products-table-card .toolbar-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.products-table-card .toolbar-button span {
  font-size: 14px;
}

.products-table-card .toolbar-button-icon {
  width: 48px;
  padding: 0;
}

.products-table-scroll {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.products-table {
  width: 100%;
  min-width: 1066px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #34445d;
  font-size: 13px;
}

.products-table .column-product { width: 250px; }
.products-table .column-cn { width: 105px; }
.products-table .column-lab { width: 135px; }
.products-table .column-price { width: 130px; }
.products-table .column-status { width: 90px; }
.products-table .column-supply { width: 130px; }

.products-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 58px;
  padding: 0 12px;
  color: #24324a;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.products-table th a {
  color: inherit;
  text-decoration: none;
}

.products-table-sort-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #24324a;
  outline: none;
}

.products-table-sort-link:hover,
.products-table-sort-link:focus-visible {
  color: var(--accent-strong);
}

.products-table-sort-link.is-active {
  color: var(--accent-strong);
}

.products-table th:first-child,
.products-table td:first-child {
  padding-left: 24px;
}

.pharmacies-table .column-pharmacy {
  width: 330px;
}

.pharmacies-table .column-code {
  width: 110px;
}

.pharmacies-table .column-owner {
  width: 180px;
}

.pharmacies-table .column-locality {
  width: 250px;
}

.pharmacies-table .column-province {
  width: 130px;
}

.pharmacies-table .column-region {
  width: 150px;
}

.pharmacies-table .column-contact {
  width: 130px;
}

.pharmacies-table .column-online-sale {
  width: 92px;
}

.pharmacies-table .column-status {
  width: 76px;
}

.pharmacies-table .column-time {
  width: 170px;
}

.pharmacy-name {
  display: block;
  overflow: hidden;
  color: #2871ed;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-name:hover,
.pharmacy-name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pharmacies-online-products-table .column-product {
  width: 320px;
}

.pharmacies-online-products-table .column-brand {
  width: 150px;
}

.pharmacies-online-products-table .column-price {
  width: 120px;
}

.pharmacies-online-products-table .column-register {
  width: 120px;
}

.pharmacies-online-products-table .column-availability {
  width: 145px;
}

.pharmacies-online-products-table .column-time {
  width: 120px;
}

.pharmacies-online-products-table .column-links,
.pharmacies-online-products-table .column-status {
  width: 94px;
}

.products-table td {
  height: 54px;
  padding: 6px 12px;
  border-top: 1px solid #e3e9f1;
  font-weight: 600;
  vertical-align: middle;
}

.products-table tr.product-row {
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.products-table tr.product-row:hover td {
  background: #f7fbff;
}

.products-table tr.product-row:focus {
  outline: none;
}

.products-table tr.product-row:focus td,
.products-table tr.product-row:focus-visible td {
  background: #eef4ff;
}

.products-table thead th {
  box-shadow: inset 0 -1px 0 rgba(219, 227, 238, 0.9);
}

.sort-indicator {
  color: #697993;
  font-size: 11px;
  line-height: 1;
}

.product-name {
  display: block;
  overflow: hidden;
  color: #2871ed;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  min-width: 44px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.status-icon-badge {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  vertical-align: middle;
}

.status-icon-badge svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.status-good {
  border: 1px solid var(--green-border);
  background: var(--green-soft);
  color: #139657;
}

.status-warn {
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: #e46816;
}

.status-muted {
  border: 1px solid #d5dde9;
  background: #f4f7fb;
  color: #697993;
}

.product-row:focus .product-name,
.product-row:hover .product-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pharmacy-product-category {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #697993;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-product-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.products-pagination-shell {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 8px 22px;
  border-top: 1px solid #dce4ef;
  color: #596982;
  font-size: 14px;
  font-weight: 650;
}

.products-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-page-size select {
  height: 38px;
  min-width: 82px;
  padding: 0 12px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  color: #596982;
}

.products-page-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.products-page-link,
.products-page-nav strong,
.products-page-arrow {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #24324a;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.products-page-link {
  border: 1px solid #dce4ef;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.products-page-link:hover,
.products-page-link:focus-visible {
  border-color: #c5d3e6;
  box-shadow: 0 5px 14px rgba(31, 53, 83, 0.07);
  transform: translateY(-1px);
}

.products-page-nav strong {
  border: 1px solid #d6e3ff;
  background: linear-gradient(180deg, #f4f8ff, #eaf1ff);
  color: #2871ed;
}

.products-page-gap {
  min-width: 28px;
  display: grid;
  place-items: center;
  color: #8b98ab;
  font-size: 15px;
  font-weight: 800;
}

.products-page-arrow {
  min-width: 42px;
  padding: 0;
  border: 1px solid #d6e3ff;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: var(--accent-strong);
  box-shadow: 0 5px 14px rgba(31, 53, 83, 0.07);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

.products-page-arrow:hover:not(:disabled),
.products-page-arrow:focus-visible:not(:disabled) {
  border-color: #b8cdf6;
  box-shadow: 0 8px 18px rgba(31, 53, 83, 0.11);
  transform: translateY(-1px);
}

.products-page-arrow:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.products-page-arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1320px) {
  .product-command-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    min-height: 266px;
  }

  .product-command-media {
    height: 240px;
    min-height: 240px;
  }

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

  .access-panel,
  .classification-panel,
  .ingredients-panel,
  .quality-panel,
  .lineage-panel {
    grid-column: 1 / -1;
  }

  .lineage-panel .command-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .products-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-clear-link {
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .catalog-shell-page .catalog-main {
    padding: 20px 20px 32px;
  }

  .catalog-shell-page .catalog-topbar {
    margin-bottom: 18px;
  }

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

  .product-command-hero,
  .product-command-price-grid,
  .product-command-grid {
    grid-template-columns: 1fr;
  }

  .product-command-hero {
    min-height: 0;
  }

  .product-command-media {
    height: 240px;
    min-height: 240px;
  }

  .product-command-media img {
    width: min(78%, 420px);
    max-height: 160px;
  }

  .product-command-media-caption {
    right: 54px;
    bottom: 36px;
    left: 16px;
  }

  .product-command-visual {
    min-height: 240px;
  }

  .product-packaging-card-inner {
    min-height: 240px;
  }

  .product-detail-title-row {
    flex-direction: column;
  }

  .detail-chip-group {
    justify-content: flex-start;
  }

  .detail-metadata-grid,
  .detail-overview-grid,
  .detail-summary-grid,
  .product-command-meta,
  .price-command-metrics,
  .price-command-secondary,
  .lineage-panel .command-data-grid,
  .quality-layout {
    grid-template-columns: 1fr;
  }

  .access-panel,
  .classification-panel,
  .ingredients-panel,
  .quality-panel,
  .lineage-panel {
    grid-column: auto;
  }

  .product-command-meta-item + .product-command-meta-item {
    border-top: 1px solid #e5ebf3;
    border-left: 0;
  }

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

  .ingredient-browser-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ingredient-search {
    flex-basis: auto;
  }

  .ingredient-list {
    grid-template-columns: 1fr;
  }

  .detail-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .products-shell {
    gap: 18px;
  }

  .products-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pharmacies-kpi-grid {
    grid-template-columns: 1fr;
  }

  .products-filter-row {
    grid-template-columns: 1fr;
  }

  .products-pagination-shell {
    grid-template-columns: 1fr;
  }

  .products-page-nav {
    justify-self: start;
    flex-wrap: wrap;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 94, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(440px, 100%);
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.login-brand,
.catalog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-brand {
  gap: 14px;
}

.catalog-brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #63a4ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.24);
}

.catalog-brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark-rings {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.brand-mark-letter {
  position: relative;
  z-index: 1;
  font-size: 18px;
}

.brand-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.brand-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.login-card h1 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.catalog-topbar h1 {
  margin: 0;
  color: #10203a;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

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

.primary-button,
.shell-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(31, 94, 255, 0.22);
}

.catalog-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.catalog-layout.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.catalog-sidebar {
  padding: 28px 22px;
  border-right: 1px solid rgba(219, 227, 238, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.9));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: padding 180ms ease;
}

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

.catalog-nav-item,
.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  color: #344255;
  font-weight: 600;
}

.catalog-nav-item {
  gap: 12px;
}

.catalog-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
}

.catalog-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.catalog-nav-item.is-active .catalog-nav-icon {
  color: var(--accent-strong);
}

.catalog-layout.sidebar-collapsed .catalog-sidebar {
  padding-inline: 14px;
}

.catalog-layout.sidebar-collapsed .catalog-brand,
.catalog-layout.sidebar-collapsed .catalog-sidebar-footer {
  gap: 18px;
}

.catalog-layout.sidebar-collapsed .brand-name,
.catalog-layout.sidebar-collapsed .brand-subtitle,
.catalog-layout.sidebar-collapsed .sidebar-note,
.catalog-layout.sidebar-collapsed .sidebar-link {
  display: none;
}

.catalog-layout.sidebar-collapsed .catalog-nav-item {
  justify-content: center;
  padding-inline: 0;
  text-align: center;
  gap: 0;
}

.catalog-layout.sidebar-collapsed .catalog-nav-label {
  display: none;
}

.catalog-layout.sidebar-collapsed .catalog-nav-icon {
  width: 22px;
  height: 22px;
}

.catalog-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.sidebar-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-link {
  width: fit-content;
  padding-inline: 0;
  color: var(--accent);
}

.sidebar-logout-link {
  width: fit-content;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(17, 32, 54, 0.04);
  color: #344255;
  font-weight: 700;
}

.sidebar-collapse-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  border-radius: 14px;
  background: var(--accent-soft);
}

.catalog-layout.sidebar-collapsed .sidebar-collapse-link {
  justify-content: center;
}

.sidebar-collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease;
}

.sidebar-collapse-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-layout.sidebar-collapsed .sidebar-collapse-icon {
  transform: rotate(180deg);
}

.catalog-main {
  padding: 28px 32px 32px;
}

.catalog-main > :last-child {
  flex: 1 1 auto;
  min-height: 0;
}

.catalog-topbar {
  position: relative;
  z-index: 10000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.catalog-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.online-scope-info {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.online-scope-info-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1262ff;
  box-shadow: var(--shadow-card);
  cursor: help;
  list-style: none;
  user-select: none;
}

.online-scope-info-trigger::-webkit-details-marker {
  display: none;
}

.online-scope-info-trigger span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.online-scope-info-trigger:focus-visible {
  outline: 2px solid rgba(18, 98, 255, 0.28);
  outline-offset: 2px;
}

.online-scope-info-panel {
  position: absolute;
  z-index: 10001;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 36px));
  padding: 12px 13px;
  border: 1px solid #d7e2f1;
  border-radius: 12px;
  background: #ffffff;
  color: #17315e;
  box-shadow: 0 18px 32px rgba(17, 32, 54, 0.14);
}

.online-scope-info-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #0f1c33;
  font-size: 13px;
  font-weight: 850;
}

.online-scope-info-panel p {
  margin: 0;
  color: #334a73;
  font-size: 13px;
  line-height: 1.45;
}

.online-scope-info:not([open]) .online-scope-info-panel {
  display: none;
}

.products-topbar-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.products-export-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #344255;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.products-export-icon,
.products-export-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-export-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-eyebrow,
.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

.shell-copy {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}

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

.products-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 18px;
}

.products-snapshot-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.products-snapshot-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(221, 231, 243, 0.95);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.products-snapshot-pill.is-topbar {
  min-height: 48px;
  padding: 0 16px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.products-snapshot-pill strong {
  color: #172554;
}

.snapshots-shell {
  display: grid;
  gap: 18px;
}

.snapshots-table-card .products-table {
  min-width: 1180px;
}

.snapshots-table-card .column-snapshot {
  width: 125px;
}

.snapshots-table-card .column-run {
  width: 170px;
}

.snapshots-table-card .column-time {
  width: 165px;
}

.snapshots-table-card .column-count {
  width: 96px;
}

.snapshots-table-card .column-manifest {
  width: 160px;
}

.snapshots-table-card td {
  vertical-align: top;
}

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

.products-kpi-grid .kpi-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 234, 242, 0.95);
  border-radius: 16px;
  padding: 20px 22px 14px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 58px;
  gap: 12px;
  align-items: start;
  min-height: 194px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at right center, rgba(31, 94, 255, 0.05), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

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

.pharmacies-kpi-grid .kpi-card {
  min-height: 194px;
  grid-template-rows: auto auto 58px;
}

.pharmacies-kpi-grid .kpi-context {
  align-content: start;
}

.pharmacies-filter-row {
  grid-template-columns: repeat(3, minmax(140px, 1fr)) max-content max-content auto;
  gap: 10px;
}

.pharmacies-filter-row .products-filter-toggle {
  width: max-content;
  justify-self: start;
  gap: 10px;
  padding-inline: 10px;
}

.pharmacy-detail-shell {
  gap: 18px;
}

.pharmacy-detail-heading {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.pharmacy-detail-heading h1 {
  margin: 0;
  color: #10203a;
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.pharmacy-detail-heading p {
  margin: 0;
  color: #41516a;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.pharmacy-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.pharmacy-detail-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #d5dde9;
  border-radius: 10px;
  background: #f4f7fb;
  color: #617089;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pharmacy-detail-badge span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pharmacy-detail-badge svg,
.products-snapshot-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacy-detail-badge.badge-good {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: #139657;
}

.pharmacy-detail-badge.badge-warn {
  border-color: var(--orange-border);
  background: var(--orange-soft);
  color: #e46816;
}

.pharmacy-detail-badge.badge-violet {
  border-color: #ddd0ff;
  background: var(--violet-soft);
  color: var(--violet);
}

.pharmacy-detail-badge.badge-muted {
  border-color: #d5dde9;
  background: #f4f7fb;
  color: #697993;
}

.products-snapshot-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: #4a5d78;
}

.pharmacy-detail-async-anchor[hidden] {
  display: none !important;
}

.pharmacy-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pharmacy-detail-info-card,
.pharmacy-detail-map-card {
  min-width: 0;
  min-height: 238px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 14px 28px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.pharmacy-detail-info-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}

.pharmacy-detail-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pharmacy-detail-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--accent);
}

.pharmacy-detail-card-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacy-detail-card-title h2 {
  margin: 0;
  color: #13213c;
  font-size: 19px;
  line-height: 1.2;
}

.pharmacy-detail-info-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
  padding-top: 16px;
}

.pharmacy-detail-info-kpi {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f8fbff;
}

.pharmacy-detail-info-kpi-icon {
  grid-row: span 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--accent);
}

.pharmacy-detail-info-kpi-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacy-detail-info-kpi-label {
  min-width: 0;
  overflow: hidden;
  color: #53627a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pharmacy-detail-info-kpi strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #13213c;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.pharmacy-detail-info-kpi small {
  min-width: 0;
  overflow: hidden;
  color: #6d7d95;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 0;
}

.pharmacy-detail-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.pharmacy-detail-list dt,
.pharmacy-detail-list dd {
  min-width: 0;
  margin: 0;
}

.pharmacy-detail-list dt {
  color: #1d2d45;
  font-size: 13px;
  font-weight: 750;
}

.pharmacy-detail-list dd,
.pharmacy-detail-list a {
  overflow-wrap: anywhere;
  color: #12213a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.pharmacy-detail-list a {
  color: #1264ff;
  text-decoration: none;
}

.pharmacy-detail-list a:hover,
.pharmacy-detail-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pharmacy-detail-map-card {
  padding: 0;
}

.pharmacy-detail-map-shell {
  min-height: 238px;
  height: 100%;
}

.pharmacy-detail-map-viewport .leaflet-control-zoom {
  margin-top: 14px;
  margin-left: auto;
  margin-right: 16px;
}

.pharmacy-detail-map-empty {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 450;
  max-width: min(280px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(221, 228, 239, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(16, 32, 56, 0.16);
}

.pharmacy-detail-map-empty > span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--accent);
}

.pharmacy-detail-map-empty svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacy-detail-map-empty strong {
  min-width: 0;
  overflow: hidden;
  color: #13213c;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-detail-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pharmacy-detail-summary {
  padding: 0;
}

.pharmacy-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: inherit;
  background: #e3e9f1;
}

.pharmacy-detail-grid > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.pharmacy-detail-grid span {
  color: #697993;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.pharmacy-detail-grid strong,
.pharmacy-detail-grid a {
  overflow: hidden;
  color: #162033;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-detail-grid a {
  color: #2871ed;
  text-decoration: none;
}

.pharmacy-detail-grid a:hover,
.pharmacy-detail-grid a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pharmacies-map-card {
  grid-column: span 2;
  display: grid;
  gap: 0;
  min-height: 194px;
  padding: 0;
  border: 1px solid rgba(229, 234, 242, 0.95);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, rgba(31, 94, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(24, 185, 104, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pharmacies-map-shell {
  position: relative;
  min-height: 194px;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #dce8e6;
}

.pharmacies-map-viewport {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.pharmacies-map-viewport .leaflet-control-zoom {
  margin-top: 10px;
  margin-left: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 223, 235, 0.96);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(22, 35, 56, 0.16);
}

.pharmacies-map-viewport .leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  border: 0;
  color: #223149;
  font-size: 18px;
  line-height: 30px;
}

.pharmacies-map-viewport .leaflet-control-zoom a + a {
  border-top: 1px solid rgba(214, 223, 235, 0.96);
}

.pharmacies-map-viewport .leaflet-control-attribution {
  margin-right: 8px;
  margin-bottom: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #43536a;
  font-size: 10px;
  line-height: 1.25;
  box-shadow: 0 5px 16px rgba(22, 35, 56, 0.12);
}

.pharmacies-map-viewport .leaflet-control-attribution a {
  color: #264766;
}

.pharmacies-map-pin {
  position: relative;
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 1px 2px rgba(22, 35, 56, 0.2);
}

.pharmacies-map-pin.is-inactive {
  background: var(--orange);
}

.pharmacies-map-pin:hover,
.pharmacies-map-pin:focus-visible {
  box-shadow:
    0 1px 3px rgba(22, 35, 56, 0.28),
    0 0 0 2px rgba(37, 99, 235, 0.16);
}

.pharmacies-map-pin.is-selected {
  z-index: 500 !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #fff;
  box-shadow:
    0 2px 6px rgba(22, 35, 56, 0.36),
    0 0 0 4px rgba(37, 99, 235, 0.32),
    0 0 0 8px rgba(37, 99, 235, 0.12);
}

.pharmacies-popup-card {
  display: grid;
  gap: 8px;
  color: #1d2b3e;
}

.pharmacies-popup-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.pharmacies-popup-card > span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.pharmacies-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #66758a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.pharmacies-popup-chip {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.pharmacies-popup-chip.is-inactive {
  background: rgba(249, 115, 22, 0.13);
  color: #c2410c;
}

.products-kpi-grid .kpi-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.products-kpi-grid .kpi-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.products-kpi-grid .tone-green .kpi-icon {
  background: var(--green-soft);
  color: var(--green);
}

.products-kpi-grid .tone-orange .kpi-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.products-kpi-grid .tone-violet .kpi-icon {
  background: var(--violet-soft);
  color: var(--violet);
}

.kpi-card .kpi-copy {
  padding-left: 0;
  min-height: 0;
}

.kpi-card .kpi-copy span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.kpi-card .kpi-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
  color: #111827;
  letter-spacing: 0;
}

.products-kpi-grid .kpi-context {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.products-kpi-grid .kpi-meta,
.products-kpi-grid .kpi-reference {
  position: static;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.products-kpi-grid .kpi-meta {
  color: #1fae63;
}

.products-kpi-grid .tone-orange .kpi-meta {
  color: #64748b;
}

.products-kpi-grid .kpi-reference {
  color: #74839a;
}

.products-kpi-grid .sparkline-frame {
  position: relative;
  align-self: end;
  min-height: 58px;
}

.products-kpi-grid .sparkline-canvas {
  position: static;
  display: block;
  width: 100% !important;
  height: 58px !important;
}

.products-filter-row {
  flex: 0 0 auto;
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) repeat(4, max-content) auto;
  gap: 14px;
  align-items: stretch;
  overflow: visible;
}

.products-filter-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  color: #334155;
  font-weight: 700;
}

.products-filter-pill input,
.products-filter-pill select {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  color: #334155;
}

.products-filter-pill input {
  width: 100%;
}

.products-search-filter {
  gap: 9px;
  width: 100%;
}

.products-search-filter input {
  font-size: 14px;
}

.products-filter-dropdown {
  position: relative;
  display: block;
  padding: 0;
}

.products-filter-dropdown:hover,
.products-filter-dropdown.is-open {
  z-index: 40;
  transform: none;
}

.products-filter-dropdown-summary {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  user-select: none;
}

.products-filter-dropdown-label {
  color: #26354d;
  flex: 0 0 auto;
}

.products-filter-dropdown-value {
  margin-left: auto;
  color: #586780;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.products-filter-dropdown-caret {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6b7c95;
  transition: transform 160ms ease, color 160ms ease;
}

.products-filter-dropdown.is-open .products-filter-dropdown-caret {
  transform: rotate(180deg);
  color: #245be2;
}

.products-filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(680px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(219, 227, 238, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(17, 32, 54, 0.14);
}

.products-filter-dropdown-panel[hidden],
.products-filter-option.is-filtered-out,
.products-filter-options-empty[hidden] {
  display: none !important;
}

.products-filter-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fbff;
}

.products-filter-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e2d45;
  font-size: 14px;
}

.products-filter-search-icon {
  display: grid;
  place-items: center;
  color: #71829d;
  flex: 0 0 auto;
}

.products-filter-search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products-filter-dropdown-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #6a7a92;
  font-size: 12px;
  font-weight: 700;
}

.products-filter-options {
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.products-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #24324a;
  font-size: 13px;
  font-weight: 650;
  white-space: normal;
  cursor: pointer;
}

.products-filter-option:hover {
  background: #f7fbff;
  border-color: #dbe3ee;
}

.products-filter-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.products-filter-option span {
  line-height: 1.35;
}

.products-filter-options-empty {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.products-filter-dropdown-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.products-filter-secondary {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  color: #46607d;
  font-weight: 700;
}

.products-clear-link {
  align-self: center;
  justify-self: end;
  color: var(--accent);
  font-weight: 700;
}

.products-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: end;
}

.products-search-form {
  display: grid;
  gap: 14px;
}

.products-search-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #304056;
}

.products-search-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.products-table-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.toolbar-button {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 6px;
  min-width: 96px;
  min-height: 84px;
  padding: 12px 14px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #334155;
  box-shadow: var(--shadow-card);
  font-weight: 600;
  cursor: pointer;
}

.toolbar-button svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-button span {
  font-size: 14px;
  line-height: 1;
}

.products-table-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.products-table-meta strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.products-table-shell {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
  border-radius: 22px;
  border: 1px solid rgba(219, 227, 238, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.products-table-header {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr 1fr 1.5fr 1fr 1fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  padding: 10px 2px 14px;
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  color: #74839a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.products-table-empty {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(219, 227, 238, 0.85);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(255, 255, 255, 0.95));
}

.products-table-empty h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.products-empty-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.products-pagination-shell {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 8px 0;
  color: #475569;
  font-weight: 700;
}

.products-page-size {
  display: flex;
  align-items: center;
  gap: 12px;
}

.products-page-size select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

.products-page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-page-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
}

.products-page-button svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.products-table-empty p {
  margin: 10px 0 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.6;
}

.pharmacy-contact-stack {
  display: grid;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.pharmacies-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.pharmacies-table tbody tr:hover td {
  background: #f7fbff;
}

.pharmacies-table tbody tr.is-selected td {
  background: #eef4ff;
  box-shadow: inset 0 1px 0 rgba(37, 99, 235, 0.16), inset 0 -1px 0 rgba(37, 99, 235, 0.16);
}

.pharmacies-table tbody tr.is-selected td:first-child {
  box-shadow:
    inset 3px 0 0 var(--accent-strong),
    inset 0 1px 0 rgba(37, 99, 235, 0.16),
    inset 0 -1px 0 rgba(37, 99, 235, 0.16);
}

.shell-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.shell-card-accent {
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.shell-card h2 {
  margin: 10px 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.milestone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.milestone-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: #304056;
  font-weight: 600;
}

@media (max-width: 960px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  }

  .catalog-topbar,
  .shell-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .products-kpi-grid {
    grid-template-columns: 1fr;
  }

  .products-search-card {
    grid-template-columns: 1fr;
  }

  .products-filter-row {
    grid-template-columns: 1fr;
  }

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

  .pharmacy-detail-info-card,
  .pharmacy-detail-map-card {
    min-height: auto;
  }

  .pharmacy-detail-map-shell {
    min-height: 260px;
  }

  .pharmacy-detail-info-kpis {
    grid-template-columns: 1fr;
  }

  .pharmacy-detail-list {
    grid-template-columns: 1fr;
  }

  .pharmacy-detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pharmacy-detail-filter-row {
    flex-wrap: wrap;
  }

  .pharmacies-map-card {
    grid-column: auto;
  }

  .pharmacies-map-shell {
    min-height: 194px;
  }

  .products-filter-pill {
    width: 100%;
    justify-content: space-between;
  }

  .products-filter-toggle {
    width: max-content;
    max-width: 100%;
    justify-self: start;
  }

  .products-filter-dropdown-panel {
    width: min(100%, calc(100vw - 32px));
  }

  .products-filter-pill input {
    width: 100%;
    flex: 1;
  }

  .products-clear-link {
    justify-self: start;
  }

  .products-pagination-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .products-page-nav {
    justify-content: flex-start;
  }

  .products-table-header {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar-button {
    min-width: 84px;
  }
}

/* Keep the reference layout after shared scaffold declarations above. */
@media (min-width: 961px) {
  .products-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

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

  .pharmacies-kpi-grid .kpi-card {
    grid-column: span 1;
  }

  .pharmacies-map-card {
    grid-column: span 2;
    min-height: 194px;
  }

  .products-filter-row {
    grid-template-columns: minmax(220px, 1fr) repeat(4, max-content) auto;
    gap: 16px;
  }

  .pharmacies-filter-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) max-content max-content auto;
    gap: 10px;
  }

  .products-filter-pill {
    min-height: 42px;
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .products-filter-dropdown-summary {
    padding: 5px 10px;
  }

  .products-filter-dropdown-panel {
    width: min(680px, calc(100vw - 64px));
  }

  .products-table-card {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pharmacy-detail-page .catalog-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .products-pagination-shell {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 8px 22px;
  }
}

@media (min-width: 961px) and (max-width: 1320px) {
  .products-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .products-filter-row {
    grid-template-columns: minmax(220px, 1fr) repeat(4, max-content) auto;
  }

  .pharmacies-filter-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) max-content max-content auto;
    gap: 10px;
  }
}

@media (min-width: 1321px) {
  .pharmacies-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Pharmacy registry dashboard reference treatment. */
.pharmacies-page .catalog-main {
  padding: 28px 34px 28px;
}

.pharmacies-page .catalog-topbar {
  align-items: center;
  margin-bottom: 18px;
}

.pharmacies-page .products-snapshot-pill.is-topbar {
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 12px;
}

.pharmacies-page .products-snapshot-pill.is-topbar > span:not(.products-snapshot-icon) {
  color: #24324a;
  font-size: 14px;
}

.pharmacies-page .products-snapshot-pill strong {
  color: var(--accent);
}

.pharmacies-page .products-shell {
  gap: 18px;
}

.pharmacies-page .pharmacies-kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pharmacies-overview-left {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.pharmacies-kpi-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pharmacies-page .pharmacies-kpi-cards .kpi-card {
  min-height: 242px;
  padding: 24px 22px 18px;
  border-radius: 14px;
  border-color: #dfe7f2;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 32, 54, 0.07), 0 1px 2px rgba(17, 32, 54, 0.04);
}

.pharmacies-page .products-kpi-grid .kpi-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.pharmacies-page .kpi-card .kpi-copy span {
  color: #4b5b74;
  font-size: 15px;
  font-weight: 800;
}

.pharmacies-page .kpi-card .kpi-copy strong {
  margin-top: 8px;
  color: #0f1c33;
  font-size: 34px;
  font-weight: 850;
}

.pharmacies-page .products-kpi-grid .kpi-context {
  gap: 5px;
}

.pharmacies-page .products-kpi-grid .kpi-meta {
  color: var(--accent);
  font-size: 14px;
}

.pharmacies-page .products-kpi-grid .tone-green .kpi-meta {
  color: #0e9f5b;
}

.pharmacies-page .products-kpi-grid .kpi-reference {
  color: #596a83;
  font-size: 13px;
}

.pharmacies-page .products-kpi-grid .sparkline-frame {
  min-height: 28px;
}

.pharmacies-page .products-kpi-grid .sparkline-canvas {
  height: 28px !important;
}

.pharmacies-online-summary {
  min-height: 66px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid #cdeedd;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.96), rgba(247, 255, 251, 0.96));
  color: #08764a;
}

.pharmacies-online-summary-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a65d;
}

.pharmacies-online-summary svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacies-online-summary strong,
.pharmacies-online-summary span {
  display: block;
  min-width: 0;
}

.pharmacies-online-summary strong {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

.pharmacies-online-summary span {
  margin-top: 3px;
  color: #4c637b;
  font-size: 13px;
  font-weight: 700;
}

.pharmacies-online-summary-cta {
  position: relative;
  justify-self: end;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  align-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(19, 148, 85, 0.2);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #ffffff, #f4fff9);
  color: #0a8752;
  text-decoration: none;
  box-shadow:
    0 12px 22px rgba(11, 118, 74, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.58);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, color 120ms ease;
}

.pharmacies-online-summary-cta::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  content: "";
}

.pharmacies-online-summary-cta:hover,
.pharmacies-online-summary-cta:focus-visible {
  border-color: rgba(245, 158, 11, 0.56);
  color: #07633d;
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(11, 118, 74, 0.2),
    0 0 0 4px rgba(245, 158, 11, 0.16);
}

.pharmacies-online-summary-cta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pharmacies-online-summary-cta-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacies-page .pharmacies-map-card {
  position: relative;
  grid-column: auto;
  min-height: 318px;
  border-radius: 14px;
  border-color: #dfe7f2;
  background: #fff;
}

.pharmacies-page .pharmacies-map-shell {
  min-height: 318px;
  background: #e8f0ef;
}

.pharmacies-page .pharmacies-map-viewport .leaflet-control-zoom {
  margin-top: 16px;
  margin-left: 16px;
}

.pharmacies-marker-cluster {
  background: transparent;
}

.pharmacies-marker-cluster div {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: #18b968;
  box-shadow:
    0 0 0 3px rgba(24, 185, 104, 0.13),
    0 5px 14px rgba(17, 32, 54, 0.16);
  color: #fff;
}

.pharmacies-marker-cluster span {
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.pharmacies-marker-cluster-small div {
  background: #22c979;
}

.pharmacies-marker-cluster-medium div {
  background: #16ad63;
}

.pharmacies-marker-cluster-large div {
  background: #0d8f52;
}

.pharmacies-page .pharmacies-filter-form {
  gap: 12px;
}

.pharmacies-page .pharmacies-filter-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(560px, 1.65fr) 1px minmax(270px, 0.58fr) 1px max-content;
  gap: 20px;
  align-items: center;
  padding: 14px 24px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.pharmacies-filter-group {
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 28px;
}

.pharmacies-filter-location-group {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
}

.pharmacies-filter-location-group .products-filter-select {
  align-self: stretch;
  display: grid;
  justify-self: stretch;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.pharmacies-filter-location-group .products-filter-select select {
  margin: 0;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.pharmacies-filter-state-group {
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 12px;
}

.pharmacies-filter-divider {
  width: 1px;
  height: 44px;
  justify-self: center;
  background: #dfe7f2;
}

.pharmacies-page .products-filter-select {
  min-height: 48px;
  display: grid;
  grid-template-rows: 15px 34px;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pharmacies-page .products-filter-select:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

.pharmacies-page .products-filter-select > span {
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
}

.pharmacies-page .products-filter-select select {
  box-sizing: border-box;
  display: block;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 34px;
  padding: 0 36px 0 12px;
  border: 1px solid #d7e1ee;
  border-radius: 9px;
  background: #fff;
  color: #1f2f47;
  font-size: 13px;
  font-weight: 750;
}

.pharmacies-page .products-clear-link {
  align-self: center;
  justify-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.pharmacies-page .products-clear-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pharmacies-page .products-clear-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacies-page .products-search-filter {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: #dfe7f2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.pharmacies-page .products-search-filter input {
  color: #23334c;
  font-size: 14px;
  font-weight: 650;
}

.pharmacies-page .products-search-filter input::placeholder {
  color: #8a95a6;
}

.pharmacies-page .products-table-card {
  border-radius: 14px;
  border-color: #dfe7f2;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 32, 54, 0.055), 0 1px 2px rgba(17, 32, 54, 0.035);
}

.pharmacies-page .products-table {
  min-width: 1180px;
  font-size: 13px;
}

.pharmacies-table .column-pharmacy { width: 305px; }
.pharmacies-table .column-code { width: 118px; }
.pharmacies-table .column-province { width: 150px; }
.pharmacies-table .column-locality { width: 170px; }
.pharmacies-table .column-web { width: 250px; }
.pharmacies-table .column-online-sale { width: 120px; }
.pharmacies-table .column-status { width: 110px; }

.pharmacies-page .products-table th {
  height: 50px;
  color: #15243c;
  font-size: 12px;
  font-weight: 850;
}

.pharmacies-page .products-table td {
  height: 42px;
  color: #1e2f4a;
  font-size: 13px;
  font-weight: 650;
}

.pharmacy-web-link {
  min-width: 0;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.pharmacy-web-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pharmacy-web-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pharmacy-web-link:hover,
.pharmacy-web-link:focus-visible,
.pharmacy-name:hover,
.pharmacy-name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pharmacy-web-empty {
  color: #66758a;
  font-weight: 750;
}

.pharmacies-page .status-badge {
  min-width: 46px;
  height: 26px;
  font-size: 12px;
}

.status-bad {
  border: 1px solid #ffd2d2;
  background: #fff0f0;
  color: #e22d2d;
}

.pharmacies-page .products-pagination-shell {
  min-height: 56px;
}

@media (max-width: 1180px) {
  .pharmacies-page .pharmacies-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pharmacies-page .pharmacies-map-card,
  .pharmacies-page .pharmacies-map-shell {
    min-height: 300px;
  }

  .pharmacies-page .pharmacies-filter-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pharmacies-filter-location-group,
  .pharmacies-filter-state-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .pharmacies-filter-divider {
    display: none;
  }

  .pharmacies-page .products-clear-link {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .pharmacies-page .catalog-main {
    padding: 18px 16px 24px;
  }

  .pharmacies-page .catalog-topbar {
    align-items: stretch;
  }

  .pharmacies-kpi-cards,
  .pharmacies-page .pharmacies-filter-row {
    grid-template-columns: 1fr;
  }

  .pharmacies-filter-location-group,
  .pharmacies-filter-state-group {
    grid-template-columns: 1fr;
  }

  .pharmacies-online-summary {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .pharmacies-online-summary-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pharmacies-page .products-snapshot-pill.is-topbar {
    width: fit-content;
  }
}

/* Medicines catalog dashboard. */
.products-page .catalog-main {
  padding: 28px 34px 28px;
}

.products-page .catalog-topbar {
  align-items: center;
  margin-bottom: 18px;
}

.products-page .products-snapshot-pill.is-topbar {
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 12px;
}

.products-page .products-snapshot-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.products-page .products-snapshot-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.products-page .products-snapshot-pill.is-topbar > span:not(.products-snapshot-icon) {
  color: #24324a;
  font-size: 14px;
}

.products-page .products-snapshot-pill strong {
  color: var(--accent);
}

.products-page .products-shell {
  gap: 18px;
}

.products-page .products-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products-page .products-kpi-grid .kpi-card {
  min-height: 184px;
  padding: 24px 22px 16px;
  border-radius: 14px;
  border-color: #dfe7f2;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 32, 54, 0.07), 0 1px 2px rgba(17, 32, 54, 0.04);
}

.products-page .products-kpi-grid .kpi-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.products-page .kpi-card .kpi-copy span {
  color: #4b5b74;
  font-size: 15px;
  font-weight: 800;
}

.products-page .kpi-card .kpi-copy strong {
  margin-top: 8px;
  color: #0f1c33;
  font-size: 34px;
  font-weight: 850;
}

.products-page .products-kpi-grid .kpi-context {
  gap: 5px;
}

.products-page .products-kpi-grid .kpi-meta {
  color: var(--accent);
  font-size: 14px;
}

.products-page .products-kpi-grid .tone-green .kpi-meta {
  color: #0e9f5b;
}

.products-page .products-kpi-grid .tone-orange .kpi-meta {
  color: #f05f16;
}

.products-page .products-kpi-grid .kpi-reference {
  color: #596a83;
  font-size: 13px;
}

.products-page .products-kpi-grid .sparkline-frame {
  min-height: 28px;
}

.products-page .products-kpi-grid .sparkline-canvas {
  height: 28px !important;
}

.products-page .products-filter-form {
  gap: 12px;
}

.products-page .medicines-filter-form {
  gap: 12px;
}

.products-page .medicines-filter-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1px minmax(570px, 1.45fr) 1px max-content;
  gap: 14px;
  align-items: center;
  padding: 14px 24px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.medicines-filter-group {
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 28px;
}

.medicines-filter-laboratory-group {
  grid-template-columns: minmax(0, 1fr);
}

.medicines-filter-state-group {
  grid-template-columns: repeat(5, minmax(106px, 1fr));
  gap: 10px;
}

.products-page .medicines-filter-divider {
  width: 1px;
  height: 44px;
  justify-self: center;
  background: #dfe7f2;
}

.products-page .products-filter-select {
  min-height: 48px;
  display: grid;
  grid-template-rows: 15px 34px;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-page .products-filter-select:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

.products-page .products-filter-select > span,
.products-page .products-filter-dropdown-label {
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

.products-page .products-filter-select select {
  box-sizing: border-box;
  display: block;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 34px;
  padding: 0 36px 0 12px;
  border: 1px solid #d7e1ee;
  border-radius: 9px;
  background: #fff;
  color: #1f2f47;
  font-size: 13px;
  font-weight: 750;
}

.products-page .medicines-laboratory-filter {
  position: relative;
  min-height: 48px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-page .medicines-laboratory-filter:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

.products-page .products-filter-dropdown-summary {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-rows: 15px 34px;
  gap: 3px 8px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.products-page .products-filter-dropdown-label {
  grid-column: 1 / -1;
}

.products-page .products-filter-dropdown-value {
  box-sizing: border-box;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d7e1ee;
  border-radius: 9px;
  background: #fff;
  color: #1f2f47;
  font-size: 13px;
  font-weight: 750;
}

.products-page .products-filter-dropdown-caret {
  align-self: center;
  justify-self: center;
  margin-top: 15px;
  color: #1f2f47;
}

.products-page .products-filter-dropdown-panel {
  left: 0;
}

.products-page .products-clear-link {
  align-self: center;
  justify-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.products-page .products-clear-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-page .products-clear-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products-page .products-search-filter {
  min-height: 44px;
  border-radius: 12px;
  border-color: #dfe7f2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.products-page .products-table-card {
  border-radius: 14px;
  border: 1px solid #dfe7f2;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 32, 54, 0.055), 0 1px 2px rgba(17, 32, 54, 0.035);
}

.products-page .products-table {
  min-width: 1400px;
  font-size: 13px;
}

.products-table .column-market {
  width: 110px;
}

.products-table .column-online-price {
  width: 140px;
}

.products-page .products-table .column-product {
  width: 320px;
}

.products-page .products-table .column-lab {
  width: 170px;
}

.products-page .products-table th {
  height: 50px;
  color: #15243c;
  font-size: 12px;
  font-weight: 850;
}

.products-page .products-table td {
  height: 42px;
  color: #1e2f4a;
  font-size: 13px;
  font-weight: 650;
}

.product-category {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #61718a;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.online-market-summary,
.online-market-price,
.online-market-muted {
  font-weight: 750;
}

.online-market-summary {
  color: #24324a;
}

.online-market-price {
  color: var(--accent);
}

.online-market-muted {
  color: #66758a;
}

/* Price explorer. */
.price-explorer-page .catalog-main {
  padding: 22px 30px 24px;
}

.price-explorer-page .catalog-topbar {
  align-items: center;
  margin-bottom: 12px;
}

.price-explorer-page .products-snapshot-pill.is-topbar {
  min-height: 42px;
}

.catalog-shell-page .products-snapshot-pill.is-topbar {
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(221, 231, 243, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.catalog-shell-page .products-snapshot-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.catalog-shell-page .products-snapshot-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.catalog-shell-page .products-snapshot-pill.is-topbar > span:not(.products-snapshot-icon) {
  color: #24324a;
  font-size: 14px;
}

.catalog-shell-page .products-snapshot-pill strong {
  color: var(--accent);
}

.price-explorer-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-bottom: 18px;
}

.price-explorer-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.price-explorer-search-field {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #dee6f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.03);
}

.price-explorer-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10203a;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-explorer-clear {
  position: absolute;
  right: 126px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #40516a;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.price-explorer-clear:hover,
.price-explorer-clear:focus-visible {
  background: #eef4ff;
  color: var(--accent);
}

.price-explorer-search-button {
  min-height: 40px;
  border-radius: 9px;
  padding-inline: 14px;
}

.price-explorer-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 86px;
  max-height: 322px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(17, 32, 54, 0.13), 0 2px 8px rgba(17, 32, 54, 0.06);
}

.price-explorer-suggestions[hidden] {
  display: none !important;
}

.price-explorer-suggestions-state {
  padding: 13px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.price-explorer-suggestion {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #10203a;
  text-decoration: none;
}

.price-explorer-suggestion:hover,
.price-explorer-suggestion:focus-visible,
.price-explorer-suggestion.is-active {
  border-color: #d3e0ff;
  background: #f3f7ff;
  outline: 0;
}

.price-explorer-suggestion-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.price-explorer-suggestion-title {
  overflow: hidden;
  color: #10203a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-explorer-suggestion-meta {
  overflow: hidden;
  color: #66758d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-explorer-suggestion-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.price-explorer-suggestion-chip,
.price-explorer-suggestion-price {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.price-explorer-suggestion-chip {
  background: #eef4ff;
  color: var(--accent);
}

.price-explorer-suggestion-price {
  background: #ecfdf4;
  color: var(--green);
}

.price-explorer-product-card,
.price-explorer-range-card,
.price-explorer-simulation-card,
.price-explorer-metric,
.price-explorer-table-card {
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 32, 54, 0.045), 0 1px 2px rgba(17, 32, 54, 0.03);
}

.price-explorer-product-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px 26px;
}

.price-explorer-product-media {
  width: 104px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f3f7fc);
  overflow: hidden;
}

.price-explorer-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.price-explorer-product-media.is-empty {
  border: 1px dashed #cbd5e1;
}

.price-explorer-image-placeholder {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #64748b;
}

.price-explorer-image-placeholder svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.price-explorer-product-main {
  min-width: 0;
}

.price-explorer-product-main h2 {
  margin: 0;
  overflow: hidden;
  color: #243a5e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-explorer-product-main p {
  margin: 4px 0 12px;
  overflow: hidden;
  color: #71829a;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-explorer-product-meta {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(260px, 1.2fr) repeat(5, minmax(96px, auto));
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 12px 0 8px;
  border-top: 1px solid #edf2f8;
}

.price-explorer-product-meta div {
  min-width: 0;
  position: relative;
}

.price-explorer-product-meta div + div::before {
  position: absolute;
  top: 3px;
  bottom: 2px;
  left: -10px;
  width: 1px;
  background: #edf2f8;
  content: "";
}

.price-explorer-product-meta dt {
  margin: 0 0 4px;
  color: #7b8aa1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.price-explorer-product-meta dd {
  overflow: hidden;
  margin: 0;
  color: #243a5e;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-explorer-product-pill {
  min-width: 36px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #5c6b82;
  font-size: 11px;
  font-weight: 760;
}

.price-explorer-product-pill.is-positive {
  border-color: #cfeede;
  background: #effbf5;
  color: #15834d;
}

.price-explorer-product-pill.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.price-explorer-product-pill.is-muted {
  border-color: #dfe7f2;
  background: #f4f7fb;
  color: #64748b;
}

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

.price-explorer-metric {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.price-explorer-metric-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.price-explorer-metric.tone-green .price-explorer-metric-icon {
  background: #e8fbf1;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.price-explorer-metric.tone-orange .price-explorer-metric-icon {
  background: #fff1e5;
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.price-explorer-metric.tone-violet .price-explorer-metric-icon {
  background: #f0e7ff;
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.price-explorer-metric-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-explorer-metric > div > span {
  display: block;
  color: #243a5e;
  font-size: 12px;
  font-weight: 760;
}

.price-explorer-metric strong {
  display: block;
  margin-top: 5px;
  color: #0f1c33;
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.price-explorer-metric.tone-green strong {
  color: var(--green);
}

.price-explorer-metric.tone-orange strong {
  color: var(--orange);
}

.price-explorer-metric.tone-violet strong {
  color: var(--violet);
}

.price-explorer-metric small {
  display: block;
  margin-top: 6px;
  color: #66758a;
  font-size: 11px;
  font-weight: 650;
}

.price-explorer-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 12px;
}

.price-explorer-range-card,
.price-explorer-simulation-card {
  min-width: 0;
  padding: 14px;
}

.price-explorer-range-card {
  min-height: 174px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
}

.price-explorer-range-card h2,
.price-explorer-simulation-card h2,
.price-explorer-table-header h2 {
  margin: 0;
  color: #243a5e;
  font-size: 13px;
  font-weight: 800;
}

.price-explorer-range-legend {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: #5e6e86;
  font-size: 11px;
  font-weight: 650;
}

.price-explorer-range-legend span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 7px;
  align-items: center;
}

.price-explorer-range-legend b {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
}

.price-explorer-range-legend em {
  color: #64748b;
  font-style: normal;
  line-height: 1;
}

.price-explorer-range-legend strong {
  grid-column: 2;
  color: #243a5e;
  font-weight: 760;
  line-height: 1;
}

.price-explorer-range-legend .is-green {
  background: var(--green);
}

.price-explorer-range-legend .is-blue {
  background: var(--accent);
}

.price-explorer-range-legend .is-orange {
  background: var(--orange);
}

.price-explorer-range-track {
  position: relative;
  height: 56px;
  align-self: end;
  margin: 20px 18px 0;
}

.price-explorer-range-track::before {
  position: absolute;
  top: 31px;
  right: 0;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--violet), var(--orange));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 8px 18px rgba(31, 94, 255, 0.1);
  content: "";
}

.range-dot,
.range-own,
.range-median {
  position: absolute;
  top: 25px;
  z-index: 2;
  transform: translateX(-50%);
}

.range-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.range-dot.is-min {
  left: 0;
  background: var(--green);
}

.range-dot.is-max {
  left: 100%;
  background: var(--orange);
}

.range-median {
  width: 2px;
  height: 38px;
  top: 7px;
  border-left: 2px dashed rgba(31, 94, 255, 0.42);
}

.range-own {
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(31, 94, 255, 0.34);
}

.range-own strong {
  position: absolute;
  bottom: 26px;
  left: 50%;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.price-explorer-range-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.price-explorer-range-values span:first-child {
  color: var(--green);
}

.price-explorer-range-values span:last-child {
  color: var(--orange);
}

.price-explorer-simulation-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(240px, 1fr);
  gap: 14px;
}

.price-explorer-simulation-input {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 2px;
}

.price-explorer-simulation-input label,
.price-explorer-simulation-input label > span:first-child {
  display: grid;
  gap: 8px;
  color: #52637a;
  font-size: 11px;
  font-weight: 760;
}

.price-explorer-money-input {
  height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid #bcd0ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 10px 22px rgba(31, 94, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.price-explorer-money-input:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12), 0 14px 26px rgba(31, 94, 255, 0.12);
}

.price-explorer-money-input b {
  justify-self: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
}

.price-explorer-money-input input {
  width: 100%;
  min-width: 0;
  padding-left: 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10203a;
  font-size: 22px;
  font-weight: 850;
}

.price-explorer-simulation-results {
  display: grid;
  gap: 8px;
}

.price-explorer-result {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eef4ff;
}

.price-explorer-result.is-green {
  background: linear-gradient(90deg, var(--green-soft), #effaf4);
}

.price-explorer-result.is-blue {
  background: linear-gradient(90deg, #eef4ff, #f5f8ff);
}

.price-explorer-result > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
}

.price-explorer-result.is-green > span {
  color: var(--green);
}

.price-explorer-result svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.price-explorer-result small {
  color: #607089;
  font-size: 11px;
  font-weight: 680;
}

.price-explorer-result strong {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.1;
}

.price-explorer-result.is-green strong {
  color: var(--green);
}

.price-explorer-comparison-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.price-explorer-comparison-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
}

.price-explorer-comparison-list dt,
.price-explorer-comparison-list dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.price-explorer-comparison-list dt {
  color: #64748b;
}

.price-explorer-comparison-list dd {
  color: #243a5e;
}

.price-explorer-diagnosis {
  grid-column: 1 / -1;
  margin: 0;
  color: #34445d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.price-explorer-empty-inline {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  border: 1px dashed #d7e1ee;
  border-radius: 10px;
  color: #64748b;
  font-weight: 750;
}

.price-explorer-table-card {
  flex: 1 1 auto;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.price-explorer-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.price-explorer-table-header div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.price-explorer-table-header span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
}

.price-explorer-table-card .toolbar-button {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
}

.price-explorer-table {
  min-width: 1180px;
  font-size: 12px;
}

.price-explorer-table th {
  height: 44px;
  font-size: 11px;
  font-weight: 760;
}

.price-explorer-table td {
  height: 40px;
  font-size: 12px;
  font-weight: 620;
}

.price-explorer-table .sort-indicator {
  font-size: 10px;
}

.price-explorer-table .column-pharmacy { width: 260px; }
.price-explorer-table .column-province { width: 170px; }
.price-explorer-table .column-locality { width: 180px; }
.price-explorer-table .column-price { width: 150px; }
.price-explorer-table .column-availability { width: 190px; }
.price-explorer-table .column-captured { width: 160px; }
.price-explorer-table .column-link { width: 90px; }

.price-explorer-availability {
  color: #64748b;
  font-weight: 680;
}

.price-explorer-availability.is-known::before {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

/* Online market analysis. */
.online-market-page .catalog-main {
  padding: 24px 32px 24px;
}

.online-market-page .catalog-topbar {
  align-items: center;
  margin-bottom: 14px;
}

.online-market-heading h1 {
  margin: 0 0 6px;
  color: #10203a;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.online-market-heading p {
  margin: 0;
  color: #596a83;
  font-size: 15px;
  font-weight: 650;
}

.online-market-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-bottom: 18px;
}

.online-market-filter-row {
  min-height: 58px;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 14px;
  padding: 8px 14px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.online-market-page .products-filter-select {
  min-height: 42px;
}

.online-market-page .products-search-filter {
  min-height: 42px;
  background: #fff;
}

.online-market-overview {
  display: grid;
  gap: 12px;
}

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

.online-market-kpis .price-explorer-metric {
  min-height: 104px;
  grid-template-columns: 50px minmax(0, 1fr);
  padding: 14px 16px;
  border-radius: 12px;
}

.online-market-kpis .price-explorer-metric-icon {
  width: 46px;
  height: 46px;
}

.online-market-kpis .price-explorer-metric strong {
  font-size: 22px;
}

.online-market-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 12px;
}

.online-market-map-card,
.online-market-map-shell {
  min-height: 404px;
  border-radius: 12px;
}

.online-market-map-card {
  grid-column: auto;
}

.online-market-map-legend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 480;
  min-width: 210px;
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 30px rgba(17, 32, 54, 0.12);
  color: #273850;
  font-size: 12px;
  font-weight: 700;
}

.online-market-map-legend strong {
  font-size: 14px;
  font-weight: 850;
}

.online-market-map-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.online-market-map-legend b,
.online-market-map-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.online-market-map-legend .is-physical {
  background: #94a3b8;
}

.online-market-map-legend .is-online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 185, 104, 0.16);
}

.online-market-map-legend i {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #facc15, #ef4444);
}

.pharmacies-map-pin.is-online {
  width: 16px !important;
  height: 16px !important;
  border: 3px solid rgba(255, 255, 255, 0.96);
  background: var(--green);
  box-shadow:
    0 4px 12px rgba(17, 32, 54, 0.22),
    0 0 0 5px rgba(24, 185, 104, 0.16);
}

.online-market-opportunity-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 32, 54, 0.045), 0 1px 2px rgba(17, 32, 54, 0.03);
}

.online-market-opportunity-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.online-market-opportunity-card h2,
.online-market-pharmacy-ranking h3 {
  margin: 0;
  color: #14233d;
  font-size: 15px;
  font-weight: 850;
}

.online-market-opportunity-card header .products-filter-select {
  width: min(260px, 52%);
}

.online-market-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #cdeedd;
  border-radius: 10px;
  background: linear-gradient(90deg, #ecfdf5, #f8fffb);
}

.online-market-score span {
  color: #5b6b82;
  font-size: 12px;
  font-weight: 760;
}

.online-market-score strong {
  grid-column: 1;
  color: #0c9254;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.online-market-score small {
  color: #0b6d43;
  font-size: 14px;
}

.online-market-score b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #d7f8e6;
  color: #08764a;
  font-size: 12px;
}

.online-market-zone-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.online-market-zone-stats div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 9px;
}

.online-market-zone-stats span {
  color: #52637a;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.online-market-zone-stats strong {
  color: #13223c;
  font-size: 20px;
  font-weight: 880;
}

.online-market-reading {
  padding: 13px 15px;
  border: 1px solid #cdeedd;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0fdf6, #f9fffc);
}

.online-market-reading strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #08764a;
  font-size: 13px;
  font-weight: 850;
}

.online-market-reading svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.online-market-reading p {
  margin: 8px 0 0;
  color: #34445d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.online-market-pharmacy-ranking {
  display: grid;
  gap: 8px;
}

.online-market-pharmacy-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto 30px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #edf2f8;
  border-radius: 9px;
  color: #34445d;
  font-size: 11px;
  font-weight: 750;
}

.online-market-pharmacy-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.online-market-pharmacy-row strong,
.online-market-pharmacy-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-market-pharmacy-row strong {
  color: var(--accent);
  font-size: 12px;
}

.online-market-pharmacy-row a,
.online-market-pharmacy-row em {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent);
  text-decoration: none;
}

.online-market-pharmacy-row svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.online-market-empty-note {
  margin: 0;
  padding: 12px;
  border: 1px dashed #d7e1ee;
  border-radius: 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.online-market-table-card {
  min-height: 318px;
  flex: 1 1 auto;
}

.online-market-table {
  min-width: 1260px;
  font-size: 12px;
}

.online-market-table th {
  height: 44px;
  font-size: 11px;
}

.online-market-table td {
  height: 44px;
}

.online-market-table .column-zone { width: 260px; }
.online-market-table .column-province { width: 145px; }
.online-market-table .column-total { width: 110px; }
.online-market-table .column-online { width: 105px; }
.online-market-table .column-presence { width: 160px; }
.online-market-table .column-products { width: 170px; }
.online-market-table .column-priced { width: 185px; }
.online-market-table .column-price { width: 140px; }
.online-market-table .column-opportunity { width: 138px; }
.online-market-table .column-diagnosis { width: 150px; }

.online-market-zone-name {
  display: block;
  overflow: hidden;
  color: #14233d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-market-zone-name + span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-market-bar {
  width: 82px;
  height: 6px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: #e8eef7;
  vertical-align: middle;
  overflow: hidden;
}

.online-market-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.online-market-price {
  color: var(--accent);
  font-weight: 850;
}

@media (max-width: 1420px) {
  .online-market-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .online-market-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .online-market-page .catalog-main {
    padding: 18px 16px 24px;
  }

  .online-market-filter-row,
  .online-market-kpis,
  .online-market-zone-stats {
    grid-template-columns: 1fr;
  }

  .online-market-opportunity-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .online-market-opportunity-card header .products-filter-select {
    width: 100%;
  }

  .online-market-pharmacy-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 1320px) {
  .products-page .products-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-explorer-analysis,
  .price-explorer-simulation-card {
    grid-template-columns: 1fr;
  }

  .price-explorer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-explorer-product-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
  }
}

@media (max-width: 1100px) {
  .products-page .medicines-filter-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .medicines-filter-state-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .products-page .medicines-filter-divider {
    display: none;
  }

  .products-page .products-clear-link {
    justify-self: start;
  }

  .price-explorer-search,
  .price-explorer-metrics,
  .price-explorer-comparison-list {
    grid-template-columns: 1fr;
  }

  .price-explorer-product-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-explorer-clear {
    display: none;
  }

  .price-explorer-suggestions {
    right: 0;
  }
}

@media (max-width: 720px) {
  .products-page .catalog-main {
    padding: 18px 16px 24px;
  }

  .products-page .catalog-topbar {
    align-items: stretch;
  }

  .products-page .products-kpi-grid,
  .products-page .medicines-filter-row,
  .medicines-filter-state-group {
    grid-template-columns: 1fr;
  }

  .products-page .products-snapshot-pill.is-topbar {
    width: fit-content;
  }

  .price-explorer-page .catalog-main {
    padding: 16px 14px 20px;
  }

  .price-explorer-product-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price-explorer-product-media {
    width: 116px;
    height: 76px;
  }

  .price-explorer-range-legend,
  .price-explorer-range-values {
    grid-template-columns: 1fr;
  }

  .price-explorer-product-meta {
    grid-template-columns: 1fr;
  }

  .price-explorer-range-legend {
    display: grid;
  }

  .price-explorer-range-values {
    display: grid;
    gap: 6px;
  }
}

/* Final overrides for market analysis filters inside the shared sidebar shell. */
.market-analysis-page .online-market-filter-row {
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 18px;
  overflow: hidden;
}

.market-analysis-page .online-market-filter-row .products-filter-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 54px;
  box-sizing: border-box;
}

.market-analysis-page .online-market-filter-row .products-filter-select > span {
  flex: 0 0 auto;
}

.market-analysis-page .online-market-filter-row .products-filter-select select {
  min-width: 0;
  max-width: 62%;
}

.market-analysis-page .market-clear-link {
  width: max-content;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: #1262ff;
  overflow: hidden;
}

.market-analysis-page .market-clear-link .products-clear-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
}

.market-analysis-page .market-clear-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Compact market analysis refinements, aligned with the price explorer surface. */
.market-analysis-page .catalog-main {
  padding: 22px 30px 24px;
}

.market-analysis-page .catalog-topbar {
  margin-bottom: 12px;
}

.market-analysis-page .online-market-shell {
  gap: 12px;
}

.market-analysis-page .online-market-filter-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px;
  border-color: #dfe7f2;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17, 32, 54, 0.035);
}

.market-analysis-page .online-market-filter-row .products-filter-select {
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
}

.market-analysis-page .online-market-filter-row .products-filter-select > span,
.market-analysis-page .online-market-filter-row .products-filter-select select {
  font-size: 12px;
  font-weight: 700;
}

.market-analysis-page .online-market-filter-row .products-filter-select select {
  max-width: 70%;
}

.market-analysis-page .market-clear-link {
  min-height: 40px;
  max-width: none;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 720;
}

.market-analysis-page .market-clear-link .products-clear-link-icon,
.market-analysis-page .market-clear-link svg {
  width: 16px;
  height: 16px;
}

.market-analysis-page .online-market-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.market-analysis-page .market-kpi-card {
  min-height: 96px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(17, 32, 54, 0.045), 0 1px 2px rgba(17, 32, 54, 0.03);
}

.market-analysis-page .market-kpi-card::after {
  right: 16px;
  bottom: 10px;
  left: 16px;
  height: 3px;
  opacity: 0.55;
}

.market-analysis-page .market-kpi-icon {
  width: 42px;
  height: 42px;
}

.market-analysis-page .market-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.market-analysis-page .market-kpi-card div {
  gap: 5px;
}

.market-analysis-page .market-kpi-card span:not(.market-kpi-icon) {
  color: #243a5e;
  font-size: 12px;
  font-weight: 720;
}

.market-analysis-page .market-kpi-card strong {
  color: #0f1c33;
  font-size: 21px;
  font-weight: 820;
}

.market-analysis-page .market-kpi-card small {
  color: #66758a;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
}

.market-analysis-page .online-market-main-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 14px;
  align-items: stretch;
}

.market-analysis-page .online-market-map-card,
.market-analysis-page .online-market-map-shell {
  min-height: 348px;
  border-radius: 12px;
}

.market-analysis-page .online-market-map-legend {
  right: 12px;
  bottom: 12px;
  min-width: 0;
  grid-auto-flow: row;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #34445d;
  font-size: 11px;
  font-weight: 650;
  transform: none;
}

.market-analysis-page .online-market-map-legend span {
  gap: 8px;
}

.market-analysis-page .online-market-map-legend b,
.market-analysis-page .online-market-map-legend i {
  width: 9px;
  height: 9px;
}

.market-analysis-page .online-market-map-legend i {
  height: 22px;
  background: linear-gradient(180deg, #22c55e, #facc15, #ef4444);
  box-shadow: none;
}

.market-analysis-page .online-market-opportunity-card {
  min-height: 348px;
  gap: 10px;
  padding: 14px;
}

.market-summary-card {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 30px rgba(17, 32, 54, 0.06), 0 1px 2px rgba(17, 32, 54, 0.03);
}

.market-summary-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.market-summary-copy strong {
  display: block;
  color: #253858;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.01em;
}

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

.market-summary-score {
  display: grid;
  gap: 5px;
  min-height: 92px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #dbe7f6;
  border-radius: 15px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.market-summary-score.tone-online {
  border-color: #ccebd8;
  background: linear-gradient(180deg, #fbfffc 0%, #f5fbf7 100%);
}

.market-summary-score span,
.market-analysis-page .market-summary-metrics > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.market-summary-score span {
  color: #64748b;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-summary-score strong {
  color: #2563eb;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.market-summary-score.tone-online strong,
.market-summary-score.tone-online b {
  color: #16a34a;
}

.market-summary-score small {
  color: #5f7089;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.market-summary-score b {
  color: #2563eb;
  font-size: 12px;
  font-weight: 820;
}

.market-summary-scale {
  position: relative;
  height: 9px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 42%, #84cc16 72%, #16a34a 100%);
  overflow: hidden;
}

.market-summary-scale-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.market-summary-scale-marker {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.market-summary-scale-marker.is-online {
  background: #16a34a;
  box-shadow: 0 5px 12px rgba(22, 163, 74, 0.22);
}

.market-summary-scale-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -9px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.market-summary-scale-labels span:nth-child(2) {
  text-align: center;
}

.market-summary-scale-labels span:last-child {
  text-align: right;
}

.market-analysis-page .market-summary-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-analysis-page .market-summary-metrics div {
  min-height: 72px;
  align-content: center;
  padding: 13px 15px;
  border-radius: 13px;
}

.market-analysis-page .market-summary-metrics > div > span {
  font-size: 13px;
  line-height: 1.2;
}

.market-analysis-page .market-summary-metrics strong {
  color: #2563eb;
  font-size: 21px;
  font-weight: 850;
}

.market-summary-reading,
.market-summary-gap-reading {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #d7eedd;
  border-radius: 14px;
  background: #f4fbf7;
  color: #294055;
  font-size: 13px;
  line-height: 1.45;
}

.market-summary-gap-reading {
  display: block;
}

.market-summary-gap-reading p {
  margin: 0;
}

.market-summary-card .help-popover {
  flex: 0 0 auto;
}

.market-summary-card .help-popover-trigger {
  width: 20px;
  height: 20px;
}

.market-summary-card .help-popover-panel {
  left: 0;
  right: auto;
}

.market-analysis-page .market-analysis-card-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.market-analysis-page .market-score-panel,
.market-analysis-page .market-presence-panel {
  gap: 8px;
}

.market-analysis-page .market-score-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: end;
}

.market-analysis-page .market-score-label-row,
.market-analysis-page .market-table-header-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.market-analysis-page .market-score-label-row {
  justify-self: start;
}

.market-analysis-page .market-table-header-with-help {
  font-weight: inherit;
}

.market-analysis-page .market-score-label-row > span {
  color: #243a5e;
  font-size: 13px;
  font-weight: 760;
}

.market-analysis-page .market-score-heading strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent);
  font-size: 30px;
  font-weight: 820;
}

.market-analysis-page .market-score-heading small {
  color: #52637a;
  font-size: 14px;
  font-weight: 700;
}

.market-analysis-page .market-score-heading b {
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.market-analysis-page .help-popover {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.market-analysis-page .help-popover-trigger {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e2f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1262ff;
  box-shadow: 0 8px 18px rgba(17, 32, 54, 0.08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  list-style: none;
  user-select: none;
}

.market-analysis-page .help-popover-trigger::-webkit-details-marker {
  display: none;
}

.market-analysis-page .help-popover-trigger:focus-visible {
  outline: 2px solid rgba(18, 98, 255, 0.28);
  outline-offset: 2px;
}

.market-analysis-page .help-popover-trigger span {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 1.4px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.market-analysis-page .help-popover-panel {
  position: absolute;
  z-index: 10001;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 36px));
  padding: 12px 13px;
  border: 1px solid #d7e2f1;
  border-radius: 12px;
  background: #ffffff;
  color: #17315e;
  box-shadow: 0 18px 32px rgba(17, 32, 54, 0.14);
  letter-spacing: normal;
  text-transform: none;
}

.market-analysis-page .help-popover-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #0f1c33;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.market-analysis-page .help-popover-panel p {
  margin: 0;
  color: #334a73;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.market-analysis-page .help-popover[data-popover-floating] .help-popover-panel,
.online-scope-info[data-popover-floating] .online-scope-info-panel {
  position: fixed;
  top: var(--popover-top);
  left: var(--popover-left);
  right: auto;
  width: var(--popover-width, min(360px, calc(100vw - 36px)));
}

.market-analysis-page .help-popover:not([open]) .help-popover-panel {
  display: none;
}

.market-analysis-page .online-market-table .market-table-header-with-help {
  justify-content: center;
}

.market-analysis-page .market-score-scale {
  height: 7px;
  margin: 0 8px;
}

.market-analysis-page .market-score-marker {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.market-analysis-page .market-score-labels {
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
}

.market-analysis-page .online-market-zone-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.market-analysis-page .online-market-zone-stats div {
  min-height: 64px;
  gap: 5px;
  padding: 9px 10px;
}

.market-analysis-page .online-market-zone-stats .market-score-metric-label {
  gap: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 680;
}

.market-analysis-page .online-market-zone-stats > div > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 680;
}

.market-analysis-page .online-market-zone-stats strong {
  color: #243a5e;
  font-size: 16px;
  font-weight: 760;
}

.market-analysis-page .market-presence-tabs button {
  height: 34px;
  font-size: 11px;
  font-weight: 720;
}

.market-analysis-page .market-presence-panel .products-filter-select {
  min-height: 36px;
  height: 36px;
}

.market-analysis-page .market-presence-results {
  gap: 8px;
}

.market-analysis-page .market-presence-results div {
  min-height: 56px;
  gap: 4px;
  padding: 7px 8px;
}

.market-analysis-page .market-presence-results span {
  color: #64748b;
  font-size: 11px;
  font-weight: 680;
}

.market-analysis-page .market-presence-results strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
}

.market-analysis-page .market-presence-results svg {
  width: 18px;
  height: 18px;
}

.market-analysis-page .help-popover-panel {
  max-width: 320px;
}

.market-analysis-page .online-market-reading {
  padding: 9px 11px;
  color: #34445d;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.market-analysis-page .online-market-table-card {
  min-height: 300px;
}

.market-analysis-page .online-market-table {
  min-width: 1080px;
  font-size: 13px;
}

.market-analysis-page .online-market-table th {
  height: 42px;
  font-size: 11px;
  font-weight: 720;
}

.market-analysis-page .online-market-table td {
  height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.market-analysis-page .online-market-table .product-row {
  cursor: pointer;
}

.market-analysis-page .online-market-table .product-row.is-selected td {
  background: #eef4ff;
}

.market-analysis-page .online-market-table .product-row.is-selected:hover td {
  background: #e6efff;
}

.market-analysis-page .online-market-zone-name {
  font-size: 13px;
  font-weight: 720;
}

.market-analysis-page .online-market-zone-name + span {
  font-size: 11px;
  font-weight: 620;
}

.market-analysis-page .online-market-bar {
  width: 88px;
  height: 6px;
  margin-right: 8px;
}

.market-analysis-page .online-market-table td > strong {
  color: #243a5e;
  font-weight: 720;
}

.market-analysis-page .market-diagnosis {
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
}

@media (max-width: 1180px) {
  .market-analysis-page .online-market-filter-row {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .market-analysis-page .market-clear-link {
    justify-self: start;
  }
}

@media (max-width: 1420px) {
  .market-analysis-page .online-market-kpis {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .market-analysis-page .online-market-main-grid {
    grid-template-columns: 1fr;
  }

  .market-analysis-page .online-market-map-card,
  .market-analysis-page .online-market-map-shell {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .market-analysis-page .catalog-main {
    padding: 16px 14px 20px;
  }

  .market-analysis-page .online-market-kpis,
  .market-analysis-page .online-market-zone-stats,
  .market-analysis-page .market-summary-header,
  .market-analysis-page .market-presence-results {
    grid-template-columns: 1fr;
  }

  .market-analysis-page .market-summary-score {
    min-width: 0;
    text-align: left;
  }

  .market-analysis-page .market-summary-metrics {
    grid-template-columns: 1fr;
  }

  .market-analysis-page .market-summary-score-grid {
    grid-template-columns: 1fr;
  }

  .market-summary-card {
    padding: 18px;
  }

  .market-summary-score {
    min-height: 108px;
  }

  .market-summary-score strong {
    font-size: 36px;
  }

  .market-analysis-page .market-score-heading {
    grid-template-columns: 1fr;
  }

  .market-analysis-page .market-score-heading strong {
    grid-row: auto;
    grid-column: auto;
  }
}
