/* Scanner pilot */
#view-scan .scan-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
  gap: var(--ui-space-4);
}

#view-scan .scanner-console { padding: var(--ui-space-5); }
#view-scan .scanner-heading h2 {
  margin-block: 5px 4px;
  font-size: var(--ui-title-md);
  line-height: var(--ui-leading-tight);
  letter-spacing: -.03em;
}
#view-scan .scanner-heading p {
  font-size: var(--ui-text-sm);
  line-height: var(--ui-leading-copy);
}
#view-scan .scanner-connection {
  min-height: 32px;
  padding: 6px 10px;
  font-size: var(--ui-text-xs);
}

#view-scan .entry-method-switcher {
  margin-top: var(--ui-space-4);
  border-radius: 12px;
  background: #f7f6f3;
}
#view-scan .entry-method-btn {
  min-height: 42px;
  padding: 8px 12px;
  font-size: var(--ui-text-sm);
}

#view-scan .mode-switcher {
  gap: 6px;
  margin: var(--ui-space-4) 0 var(--ui-space-3);
}
#view-scan .mode-button {
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: var(--ui-surface-muted);
}
#view-scan .mode-button strong { font-size: var(--ui-text-sm); }
#view-scan .mode-button small {
  font-size: var(--ui-text-xs);
  line-height: 1.25;
}
#view-scan .mode-button.active {
  border-color: var(--lococo-focus);
  background: var(--lococo-selected);
  box-shadow: inset 0 0 0 1px rgba(100, 136, 183, .12);
}

#view-scan .scan-settings { gap: var(--ui-space-2); }
#view-scan .commercial-sale-panel {
  gap: var(--ui-space-3);
  margin-top: 2px;
  padding: 12px;
  border: 1px solid var(--lococo-line);
  border-radius: var(--ui-radius-card);
  background: var(--lococo-soft);
}
#view-scan .commercial-sale-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ui-space-3);
}
#view-scan .commercial-sale-panel__heading > div { display: grid; gap: 2px; }
#view-scan .commercial-sale-panel__heading strong { font-size: var(--ui-text-sm); }
#view-scan .commercial-sale-panel__heading span:not(.status-chip),
#view-scan .commercial-sale-help {
  color: var(--ui-text-muted);
  font-size: var(--ui-text-xs);
  line-height: 1.4;
}
#view-scan .commercial-sale-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr .85fr .85fr;
  gap: var(--ui-space-2);
}
#view-scan .commercial-sale-price > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
}
#view-scan .commercial-sale-price select { border-radius: var(--ui-radius-control) 0 0 var(--ui-radius-control); }
#view-scan .commercial-sale-price input { border-left: 0; border-radius: 0 var(--ui-radius-control) var(--ui-radius-control) 0; }

@media (max-width: 1120px) {
  #view-scan .commercial-sale-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  #view-scan .commercial-sale-grid { grid-template-columns: 1fr; }
  #view-scan .commercial-sale-panel { padding: 11px; }
}
#view-scan .camera-entry {
  padding: 12px 14px;
  border-radius: var(--ui-radius-card);
  background: var(--lococo-soft);
}
#view-scan .camera-entry strong { font-size: var(--ui-text-sm); }
#view-scan .camera-entry > div > span {
  font-size: var(--ui-text-xs);
  line-height: 1.4;
}

#view-scan .scan-input-shell input,
#view-scan .sku-entry-form input:not([type="hidden"]) {
  font-family: var(--ui-font-sans);
  letter-spacing: 0;
}
#view-scan .scan-input-shell input {
  min-height: 54px;
  padding-inline: 16px;
  border-width: 1px;
  border-color: var(--lococo-focus);
  border-radius: 12px;
  font-size: var(--ui-text-lg);
  font-weight: 600;
  box-shadow: inset 0 0 0 3px rgba(100, 136, 183, .04);
}
#view-scan .scan-input-shell input::placeholder {
  color: #8a8594;
  font-weight: 500;
}
#view-scan .scan-input-shell .primary-button {
  min-width: 108px;
  border-radius: 12px;
}
#view-scan .input-help {
  font-size: var(--ui-text-xs);
  line-height: 1.4;
}
#view-scan .shortcut-row kbd { font-size: 10px; }
#view-scan .sku-quick-entry-copy strong { font-size: var(--ui-text-md); }
#view-scan .sku-quick-entry-copy span,
#view-scan .packaging-composer-header strong,
#view-scan .packaging-composer-header span,
#view-scan .packaging-line label > span,
#view-scan .packaging-line-total,
#view-scan .packaging-total {
  font-size: var(--ui-text-xs);
}
#view-scan .packaging-total strong { font-size: var(--ui-text-md); }
#view-scan .packaging-line input,
#view-scan .packaging-line select { min-height: 40px; font-size: var(--ui-text-sm); }

/* Products pilot */
#view-products .product-catalog-panel { }
#view-products .catalog-view-heading {
  margin-bottom: var(--ui-space-3);
}
#view-products .catalog-view-heading strong { }
#view-products .catalog-view-heading span {
  line-height: 1.4;
}
#view-products .catalog-view-switch button {
}
#view-products .product-catalog-panel.catalog-mode--compare .catalog-sticky-controls {
}
#view-products .catalog-quick-filters button,
#view-products .catalog-provider-quick-filters button,
#view-products .catalog-search-history .catalog-history-query,
#view-products .catalog-search-history .catalog-history-clear {
  font-size: var(--ui-text-xs);
}
#view-products .catalog-quick-label,
#view-products .catalog-search-history > div > strong,
#view-products .catalog-facet-label {
  font-size: var(--ui-text-xs);
}
#view-products .catalog-provider-quick-filters button strong,
#view-products .catalog-provider-counts > span,
#view-products .catalog-search-history .catalog-history-query small {
  font-size: 10px;
}
#view-products .catalog-facet-browser {
  gap: var(--ui-space-2);
  margin-bottom: var(--ui-space-3);
}
#view-products .catalog-facet-row {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: var(--ui-space-2);
}
#view-products .catalog-facet-chip {
  min-height: 34px;
  border-radius: var(--ui-radius-control);
  font-size: var(--ui-text-xs);
}
#view-products .catalog-facet-chip small { font-size: 10px; }
#view-products #productBrandChips .catalog-brand-chip > span { font-size: var(--ui-text-xs); }
#view-products .catalog-health-action { font-size: 10px; }
#view-products .catalog-category-nav-heading span { font-size: 10px; }
#view-products .catalog-category-all span,
#view-products .catalog-category-item span,
#view-products .catalog-subcategory-item span { font-size: var(--ui-text-xs); }
#view-products .catalog-category-all small,
#view-products .catalog-category-item small,
#view-products .catalog-subcategory-item small,
#view-products .catalog-category-all em,
#view-products .catalog-category-item em,
#view-products .catalog-subcategory-list > div button { font-size: 10px; }
#view-products .catalog-category-trigger { font-size: var(--ui-text-xs); }

@media (max-width: 1024px) {

  .content-area { padding: 10px 12px 30px; }
}

@media (max-width: 700px) {

  .content-area { padding: 8px 9px calc(82px + env(safe-area-inset-bottom)); }
  .panel,
  .scanner-console { border-radius: 10px; }

  #view-scan .scan-layout { grid-template-columns: minmax(0, 1fr); }
  #view-scan .scan-side { grid-template-columns: minmax(0, 1fr); }
  #view-scan .scanner-console { padding: var(--ui-space-4); }
  #view-scan .scanner-heading { gap: var(--ui-space-2); }
  #view-scan .scanner-heading h2 { font-size: 22px; }
  #view-scan .scanner-heading p { font-size: var(--ui-text-sm); }
  #view-scan .entry-method-btn {
    min-width: 0;
    padding-inline: 8px;
    font-size: var(--ui-text-xs);
  }
  #view-scan .mode-switcher {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  #view-scan .mode-button {
    min-width: 0;
    min-height: 54px;
    grid-column: span 2;
    padding: 7px 8px;
  }
  #view-scan .mode-button:nth-child(n + 4) { grid-column: span 3; }
  #view-scan .mode-button strong { font-size: var(--ui-text-xs); }
  #view-scan .mode-button small {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #view-scan .scan-input-shell input {
    min-height: var(--ui-control-lg);
    font-size: var(--ui-text-md);
  }
  #view-scan .scan-input-shell .primary-button { min-height: var(--ui-control-lg); }
  #view-scan .packaging-line label > span { font-size: 10px; }

  #view-products .product-catalog-panel { padding: 8px; }
  #view-products .catalog-view-heading {
    align-items: stretch;
    flex-direction: column;
    gap: var(--ui-space-3);
  }
  #view-products .catalog-view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  #view-products .catalog-view-switch button { width: 100%; }
  #view-products .product-catalog-panel.catalog-mode--compare .catalog-sticky-controls {
    margin: 0 0 9px;
    padding: 7px;
  }
  #view-products .catalog-filter-bar .search-box input { min-height: var(--ui-control-lg); }
  #view-products .catalog-filter-details summary { min-height: var(--ui-control-lg); }
  #view-products .catalog-search-history { margin-top: 6px; padding: 6px 8px; }
  #view-products .catalog-quick-filters { gap: 5px; margin-top: 6px; }
  #view-products .catalog-quick-filters button { min-height: 32px; padding-inline: 9px; }
  #view-products .catalog-facet-browser {
    gap: 6px;
    padding: 8px;
    overflow: hidden;
  }
  #view-products .catalog-facet-row {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
  }
  #view-products .catalog-facet-label { padding-left: 0; }
  #view-products .catalog-facet-track { padding-right: 2px; }
  #view-products .catalog-facet-chip { min-height: 34px; }
  #view-products .product-catalog-panel.catalog-mode--compare .product-card-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* Shared application grammar */
:where(h1, h2, h3, h4, h5, h6, strong, b) { font-weight: 700; }
:where(button, input, select, textarea) { letter-spacing: -.006em; }
:where(table, [class*="metric"], [class*="stock"], [class*="price"], [class*="total"], [class*="quantity"]) {
  font-variant-numeric: tabular-nums;
}
.view table th { font-size: 10px !important; }

.app-shell:not(.quote-document-route) .global-breadcrumb-bar { display: none !important; }
#locationsBreadcrumb { display: none !important; }
#view-inventory > #locationInventoryBreadcrumb {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin: -2px 0 6px;
  color: var(--ui-text-muted);
  font-size: 10px;
}
#view-inventory > #locationInventoryBreadcrumb .breadcrumb-link { color: var(--lococo-ink); font-weight: 600; }

.environment-banner {
  min-height: 30px;
  justify-content: flex-start;
  gap: 8px;
  margin: 4px 14px 0;
  padding: 3px 8px 3px 10px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.25;
}
.environment-banner.production { display: none !important; }
.environment-banner .banner-icon { font-size: 12px; }
.environment-banner .banner-icon {
  width: 17px;
  height: 17px;
  display: grid;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.environment-banner .banner-text { flex: 1; }
.environment-banner .banner-action-btn {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.banner-dismiss-btn { width: 24px; height: 24px; flex-basis: 24px; font-size: 15px; }

.section-toolbar {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 2px 2px 9px;
  border-bottom: 1px solid var(--ui-border);
}
.section-toolbar > div:first-child { gap: 2px; }
.section-toolbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.section-toolbar p {
  max-width: 760px;
  margin: 2px 0 0;
  color: var(--ui-text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.section-toolbar-actions { gap: 7px; }

.panel-kicker,
.hero-kicker,
.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}

.app-shell[data-route="scan"] #view-scan .scanner-heading .panel-kicker,
.app-shell[data-route="scan"] #view-scan .scanner-heading h2,
.app-shell[data-route="products"] #view-products > .section-toolbar .panel-kicker,
.app-shell[data-route="products"] #view-products > .section-toolbar h2,
.app-shell[data-route="locations"] #view-locations > .section-toolbar .panel-kicker,
.app-shell[data-route="locations"] #view-locations > .section-toolbar h2,
.app-shell[data-route="movements"] #view-movements > .section-toolbar .panel-kicker,
.app-shell[data-route="movements"] #view-movements > .section-toolbar h2,
.app-shell[data-route="counts"] #view-counts > .section-toolbar .panel-kicker,
.app-shell[data-route="counts"] #view-counts > .section-toolbar h2,
.app-shell[data-route="backups"] #view-backups > .section-toolbar .panel-kicker,
.app-shell[data-route="backups"] #view-backups > .section-toolbar h2,
.app-shell[data-route="professional_access"] .professional-access-header .panel-kicker,
.app-shell[data-route="professional_access"] .professional-access-header h1 {
  display: none;
}

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

.app-shell.professional-hub-active .topbar {
  display: flex !important;
  min-height: var(--topbar-height);
  height: var(--topbar-height);
}
.app-shell.professional-hub-active .topbar-context { display: flex !important; }
.app-shell.professional-hub-active .content-area { padding-top: 8px; }

.panel,
.scanner-console,
.summary-card-panel,
.activity-timeline-panel,
.professional-hub-panel,
.professional-metrics article,
.product-hero-card,
.quote-detail-layout > main,
.quote-detail-summary {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-panel);
  box-shadow: none;
}

.summary-card-panel,
.activity-timeline-panel,
.professional-hub-panel { background: var(--ui-surface); }

.primary-button,
.secondary-button,
.danger-button {
  min-height: 36px;
  padding-inline: 12px;
  border-radius: var(--ui-radius-control);
  font-size: 11px;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.primary-button:active,
.secondary-button:active,
.danger-button:active { transform: translateY(1px); }
.secondary-button { background: var(--ui-surface); }

.search-box input,
.filter-row select,
.section-toolbar select,
.section-toolbar input,
.quote-center-toolbar input {
  min-height: 36px;
  border-radius: var(--ui-radius-control);
  font-size: 12px;
}

.status-chip,
.count-pill,
.live-pill,
.compact-pill {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

/* Native selection controls keep one baseline across filters, editors and sheets. */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--primary);
  vertical-align: middle;
}

.inline-toggle,
.movement-sensitive-toggle,
.own-price-risk-ack,
.price-level-editor-active,
.wizard-source-option,
.wizard-permission-list label {
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.inline-toggle input[type="checkbox"],
.movement-sensitive-toggle input[type="checkbox"] { margin-top: 1px; }

/* Shared internal record sheet: location, product, supplier and client details. */
.record-sheet-modal {
  width: min(1180px, 96vw);
  max-height: 92dvh;
  border-radius: 14px;
}

.record-sheet-modal .modal-header {
  min-height: 58px;
  padding: 10px 16px;
}

.record-sheet-modal .modal-header h2 {
  margin-top: 2px;
  font-size: 20px;
}

.record-sheet-modal .modal-body {
  max-height: none;
  padding: 0 16px 14px;
}

.record-sheet-modal .modal-footer {
  min-height: 48px;
  padding: 7px 16px;
  border-radius: 0 0 14px 14px;
  background: #fbfaf8;
}

.record-sheet { gap: 0; }

.record-sheet .modal-breadcrumb-nav {
  min-height: 34px;
  gap: 5px;
  margin: 0;
  padding: 7px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 10px;
  font-weight: 500;
}

.record-sheet .modal-breadcrumb-nav a { font-weight: 600; }

.record-sheet-tabs {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ui-border);
  scrollbar-width: none;
}

.record-sheet-tabs::-webkit-scrollbar { display: none; }

.record-sheet-tabs .location-detail-tab {
  min-height: 35px;
  flex: 0 0 auto;
  padding: 7px 1px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.record-sheet-tabs .location-detail-tab.active {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary-deep);
}

.record-sheet .location-tab-panel { padding-top: 10px; }

.record-sheet-actionbar {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--ui-border);
}

.record-sheet-actions-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.record-sheet-danger {
  flex: 0 0 auto;
  margin-left: auto;
  border-color: #e4b9bd;
  background: #fff7f7;
  color: #9f3540;
}

.record-sheet-danger:hover { border-color: #cf8f96; background: #fff0f1; color: #8d2833; }

.record-sheet-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: 10px;
}

.record-sheet-section {
  padding: 12px;
  border-color: var(--ui-border);
  border-radius: 10px;
  background: var(--ui-surface);
}

.record-sheet-section > h3 {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.record-fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface);
}

.record-fact-grid > span {
  min-height: 52px;
  align-content: center;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.record-fact-grid > span:nth-child(2n) { border-right: 0; }
.record-fact-grid > span:nth-last-child(-n + 2) { border-bottom: 0; }

.record-fact-grid > span strong {
  color: var(--ui-text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
}

.record-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface);
}

.record-metric-grid .summary-card {
  min-height: 66px;
  padding: 10px 11px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.record-metric-grid .summary-card:nth-child(2n) { border-right: 0; }
.record-metric-grid .summary-card:nth-last-child(-n + 2) { border-bottom: 0; }
.record-metric-grid .summary-card:nth-child(-n + 2) { background: #f7f4ff; }
.record-metric-grid .summary-card span { font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.record-metric-grid .summary-card strong { margin-top: 5px; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }

.record-sheet-notice:empty { display: none; }
.record-sheet-notice:not(:empty) { margin-top: 8px; }

.record-sheet-secondary {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.location-record-modal .location-transfer-section {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 9px;
  background: #f4f8ff;
}

.location-record-modal .pending-transfer-list {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(37, 99, 235, .14);
}

.location-record-modal .pending-transfer-card {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 9px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.location-record-modal .transfer-symbol { width: 30px; height: 30px; border-radius: 8px; }
.location-record-modal .pending-transfer-route span { background: var(--ui-surface); }

/* Workbench: scanner */
#view-scan .scanner-heading { align-items: center; }
#view-scan .scanner-heading > div:first-child { display: grid; gap: 0; }
#view-scan .scanner-heading p { max-width: 660px; margin: 0; font-size: 12px; }
#view-scan .scanner-console { padding: 14px; }
#view-scan .entry-method-switcher { margin-top: 10px; }
#view-scan .entry-method-btn { min-height: 36px; }
#view-scan .mode-switcher { margin: 10px 0 8px; }
#view-scan .mode-button { min-height: 54px; padding: 7px 9px; border-radius: 8px; }
#view-scan .scan-input-shell input { min-height: 48px; border-radius: 9px; font-size: 15px; font-weight: 600; }
#view-scan .scan-input-shell .primary-button { border-radius: 9px; }
#view-scan .camera-entry { padding: 9px 11px; border-radius: 9px; }
#view-scan .scan-side .panel { padding: 13px; }
/* Catalog: keep density, remove container inflation */
#view-products > .section-toolbar { min-height: 40px; }
#view-products .product-catalog-panel { border-radius: 10px; }
#view-products .catalog-view-heading { margin-bottom: 8px; }
#view-products .catalog-view-heading strong { }
#view-products .catalog-view-heading span { }
#view-products .catalog-sticky-controls { border-radius: 9px; box-shadow: none; }
#view-products .catalog-facet-browser { margin-bottom: 8px; }
#view-products .purchase-card { }
#view-products .purchase-quote span,
#view-products .purchase-quote small { font-size: 10px; }
#view-products .catalog-facet-more { font-size: 10px; }

/* Lists and product/supplier detail keep their information architecture. */
.product-hero-card {
  gap: 12px;
  padding: 12px 14px;
}
.product-hero-title { font-size: clamp(18px, 2vw, 23px); letter-spacing: -.025em; }
.product-hero-subtitle { font-size: 11px; }
.product-hero-kpis { gap: 6px; }
.product-hero-kpis > div { min-height: 48px; padding: 7px 9px; border-radius: 8px; }
.product-hero-kpis span { font-size: 10px; }
.product-hero-kpis strong { font-size: 12px; }
.product-tabs { border-radius: 9px; }
.product-tabs button { min-height: 34px; font-size: 10px; }
.summary-card-grid { gap: 8px; }
.summary-card-panel { padding: 12px; }

#view-price_lists .commercial-cart:not(.open) { display: none; }
#view-price_lists .commercial-cart.open { display: block; }
#view-price_lists small,
#view-price_lists [class*="meta"],
#view-price_lists [class*="label"],
#view-price_lists .commercial-shortcut-copy strong,
#view-price_lists .commercial-shortcut-heading strong,
#view-price_lists .commercial-shortcut > b,
#view-price_lists .price-list-explorer-bar > strong,
#view-price_lists .commercial-quotes-launch,
#view-price_lists .commercial-quotes-launch b,
#view-price_lists .commercial-cart-launch b,
#view-price_lists .count-pill,
#view-price_lists .commercial-source-confidence strong,
#view-price_lists .commercial-source-confidence span,
#view-price_lists .commercial-source-confidence button,
#view-price_lists .commercial-source-summary,
#view-price_lists .commercial-source-excluded,
#view-price_lists .commercial-source-excluded summary,
#view-price_lists .commercial-source-excluded span,
#view-price_lists .success.own b,
#view-price_lists .warning b,
#view-price_lists .catalog-search-history strong,
#view-price_lists .catalog-search-history button,
#view-price_lists .catalog-history-query,
#view-price_lists .catalog-history-query span,
#view-price_lists .catalog-filter-details summary span,
#view-price_lists .catalog-clear-button,
#view-price_lists .catalog-quick-filters button,
#view-price_lists [class*="kicker"],
#view-price_lists .catalog-category-all span,
#view-price_lists .catalog-category-all small,
#view-price_lists .catalog-category-all em,
#view-price_lists .catalog-category-nav-heading span,
#view-price_lists .commercial-technical-context span,
#view-price_lists .commercial-technical-context small,
#view-price_lists .commercial-page-controls span,
#view-price_lists .commercial-page-controls label { font-size: 10px !important; }

/* Quotes: topbar owns the route title. */
.quote-workspace {
  min-height: calc(100dvh - var(--topbar-height));
  padding: 10px 14px 30px;
  background: transparent;
}
.quote-center { gap: 9px; }
.quote-center-header {
  min-height: 42px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.quote-center-header .panel-kicker { display: none; }
.quote-center-header p { font-size: 12px; }
.quote-center-tabs { gap: 3px; padding: 0; border-bottom: 1px solid var(--ui-border); }
.quote-center-tabs button {
  min-height: 32px;
  padding: 5px 9px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}
.quote-center-tabs button.active {
  border-color: var(--primary);
  background: transparent;
}
.quote-center-tabs button b { font-size: 9px; font-weight: 600; }
.quote-center-tabs button b { font-size: 10px; }
.quote-center-toolbar {
  gap: 8px;
  padding: 6px;
  border-radius: 9px;
  box-shadow: none;
}
.quote-center-toolbar input { min-height: 36px; }
.quote-center-row { border-radius: 9px; }
.quote-center-main { min-height: 60px; padding: 8px 11px; }
.quote-center-main strong { font-size: 12px; }
.quote-center-main small,
.quote-center-main b,
.quote-center-actions button { font-size: 10px; }
.quote-center-actions { padding: 4px 8px; }
.quote-center-list > .operational-empty-state {
  min-height: 190px;
  padding: 34px 20px;
  border: 1px dashed var(--ui-border-strong);
  border-radius: 9px;
  background: transparent;
}

.professional-access-workspace { gap: 9px; padding: 0; }
.professional-access-header {
  min-height: 42px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--ui-border);
}
.professional-access-header p { margin: 0; font-size: 12px; }
.professional-metrics { gap: 1px; border: 1px solid var(--ui-border); border-radius: 10px; overflow: hidden; }
.professional-metrics article { border: 0; border-right: 1px solid var(--ui-border); border-radius: 0; }
.professional-metrics article:last-child { border-right: 0; }
.professional-metrics small,
.professional-hub-tabs b,
.professional-access-toolbar,
.professional-access-toolbar span { font-size: 10px !important; }

#view-supplier_detail .module-kicker,
#view-supplier_detail small,
#view-supplier_detail [class*="metric"] span { font-size: 10px !important; }
#view-movements .summary-card span,
#view-movements .summary-card small,
#view-movements .movement-mobile-card time,
#view-movements .movement-mobile-card small,
#view-movements .movement-table td,
#view-movements .code-pill { font-size: 10px !important; }
#view-backups .arch-node small { font-size: 10px !important; }

/* Shared Lococo tokens for the saved quote journey. Client print remains separate. */
#view-quotes .quote-workspace { color: var(--lococo-ink); font-family: var(--lococo-font-sans); }
#view-quotes :is(.quote-center-row,.quote-center-toolbar,.quote-detail-header,.quote-detail-layout > main,.quote-detail-summary) { border-color: var(--lococo-line); border-radius: var(--lococo-radius-card); }
#view-quotes .quote-center-main:hover { background: var(--lococo-soft); }
#view-quotes .quote-center-tabs button.active { color: var(--lococo-ink); border-color: var(--lococo-ink); }
#view-quotes .quote-center-tabs button b { background: var(--lococo-selected); color: var(--lococo-muted); }
#view-quotes .quote-detail-final strong { color: var(--lococo-ink); }
@media (max-width:920px) {
  #view-quotes .quote-workspace { padding: 8px 8px 20px; }
  #view-quotes .quote-center-header { display: grid; gap: 10px; padding-bottom: 12px; }
  #view-quotes .quote-center-header p { font-size: var(--lococo-text-sm); line-height: 1.5; }
  #view-quotes .quote-center-header .primary-button { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; min-height: 44px; font-size: var(--lococo-text-sm); }
  #view-quotes .quote-center-tabs button { min-height: 44px; font-size: var(--lococo-text-sm); }
  #view-quotes .quote-center-toolbar { padding: 6px; }
  #view-quotes .quote-center-toolbar input { min-height: 44px; font-size: 16px; border-color: var(--lococo-field-line); }
  #view-quotes .quote-center-toolbar label { min-width: 0; }
  #view-quotes .quote-center-main { grid-template-columns: minmax(0,1fr) auto; padding: 12px; gap: 8px; }
  #view-quotes .quote-center-main strong { font-size: 14px; }
  #view-quotes .quote-center-main :is(small,b) { font-size: 12px; }
  #view-quotes .quote-center-main > span:nth-child(2), #view-quotes .quote-center-main > span:nth-child(4) { display: none; }
  #view-quotes .quote-center-main > span:nth-child(3) { text-align: right; }
  #view-quotes .quote-center-main > .status-chip { grid-column: 1/-1; justify-self: start; }
  #view-quotes .quote-center-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px 8px; }
  #view-quotes .quote-center-actions [data-open-quote] { display: none; }
  #view-quotes .quote-center-actions button { min-height: 44px; padding: 4px 2px; font-size: 12px; color: var(--lococo-ink); }
  #view-quotes .quote-detail-header { grid-template-columns: 44px minmax(0,1fr); padding: 12px; gap: 12px; }
  #view-quotes .quote-detail-header .panel-kicker { display: none; }
  #view-quotes [data-back-quotes] { display: grid; place-items: center; order: 0; width: 44px; min-height: 44px; padding: 0; }
  #view-quotes [data-back-quotes] span { display: none; }
  #view-quotes .quote-detail-header-facts { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow: visible; }
  #view-quotes .quote-detail-header-facts :is(span,strong) { min-width: 0; overflow-wrap: anywhere; }
  #view-quotes .quote-detail-header-facts small { font-size: 11px; }
  #view-quotes .quote-detail-header-facts strong { font-size: 13px; }
  #view-quotes .quote-detail-header > .primary-button { grid-column: 1/-1; min-height: 44px; }
  #view-quotes .quote-detail-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  #view-quotes .quote-detail-line { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 12px; }
  #view-quotes .quote-detail-product, #view-quotes .quote-detail-availability { grid-column: 1/-1; }
  #view-quotes .quote-detail-line > div:nth-child(6) { grid-column: auto; }
  #view-quotes .quote-detail-line small, #view-quotes .quote-detail-line span { font-size: 12px; }
  #view-quotes .quote-detail-line strong { font-size: 14px; }
  #view-quotes .quote-detail-product strong { white-space: normal; overflow-wrap: anywhere; }
  #view-quotes .quote-detail-notes { grid-template-columns: minmax(0,1fr); }
  #view-quotes .quote-detail-notes small { font-size: 11px; }
  #view-quotes .quote-detail-notes strong { font-size: 13px; }
  #view-quotes .quote-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12px; }
  #view-quotes .quote-detail-summary :is(small,span) { font-size: 12px; }
  #view-quotes .quote-detail-summary > :is(.panel-kicker,.quote-detail-final,.quote-no-reservation,.quote-detail-actions,.quote-revision-history) { grid-column: 1/-1; }
  #view-quotes .quote-detail-summary .quote-detail-final { grid-row: 2; }
  #view-quotes .quote-detail-actions button { min-height: 44px; }
  #view-quotes .quote-revision-history > div { font-size: 12px; }
}
/* Stock surfaces: one panel, clear totals, no nested-card noise. */
#view-locations .location-ops-summary {
  max-width: none;
  gap: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-surface);
}
#view-locations .location-ops-summary .summary-card {
  min-height: 66px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#view-locations .location-ops-summary .summary-card:last-child { border-right: 0; }
#view-locations .location-ops-summary .summary-card span,
#view-locations .location-ops-summary .summary-card small { font-size: 10px; }
#view-locations .location-ops-summary .summary-card strong { margin-top: 4px; font-size: 21px; }

#view-locations .location-grid { max-width: none; gap: 10px; }
#view-locations .location-card.location-card--operational {
  padding: 13px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-panel);
  box-shadow: none;
}
#view-locations .location-card-eyebrow,
#view-locations .location-path,
#view-locations .location-card-stock > div:first-child span,
#view-locations .location-card-stock > div:first-child small,
#view-locations .location-card-facts > span,
#view-locations .location-card-last,
#view-locations .location-card-last strong { font-size: 10px; }
#view-locations .location-card-stock { gap: 0; margin-top: 11px; }
#view-locations .location-card-stock > div:first-child {
  padding: 10px 12px;
  border: 1px solid var(--lococo-line);
  border-radius: 9px 0 0 9px;
  background: var(--lococo-selected);
}
#view-locations .location-card-stock > div:first-child strong { font-size: 25px; }
#view-locations .location-card-facts {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: var(--ui-surface);
}
#view-locations .location-card-facts > span {
  padding: 7px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
#view-locations .location-card-facts > span:last-child { border-right: 0; }
#view-locations .location-card-facts > span.warning { background: var(--warning-soft); }
#view-locations .location-card-facts b { font-size: 15px; }
#view-locations .location-card-last { margin-top: 8px; }
#view-locations .location-actions { margin-top: 9px; padding-top: 9px; }

/* Operational alignment pass: navigation, inventory and ledger. */

.field-icon {
  display: grid;
  place-items: center;
  color: #77727f;
}
.field-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-inventory > .section-toolbar,
#view-movements > .section-toolbar {
  min-height: 38px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 9px;
}
#view-inventory > .section-toolbar .panel-kicker,
#view-movements > .section-toolbar .panel-kicker { display: none; }
#view-inventory > .section-toolbar h2,
#view-movements > .section-toolbar h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.02em;
}
#view-inventory > .section-toolbar p,
#view-movements > .section-toolbar p {
  margin-top: 2px;
  font-size: 11px;
}

#locationInventorySummary,
#movementSummary {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: var(--ui-surface);
}
#locationInventorySummary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#movementSummary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#locationInventorySummary .summary-card,
#movementSummary .summary-card {
  min-height: 72px;
  padding: 11px 12px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#locationInventorySummary .summary-card:last-of-type,
#movementSummary .summary-card:last-child { border-right: 0; }
#movementSummary .summary-card:first-child { grid-column: auto; }
#locationInventorySummary .inventory-summary-primary,
#movementSummary .summary-card:nth-child(3),
#movementSummary .summary-card:nth-child(4) { background: var(--lococo-selected); }
#locationInventorySummary .summary-card strong,
#movementSummary .summary-card strong { margin-top: 4px; font-size: 19px; }
#locationInventorySummary .inventory-summary-primary strong { font-size: 25px; }
#locationInventorySummary .inventory-summary-last strong { font-size: 12px; line-height: 1.35; }
#locationInventorySummary .transit-resolution-panel {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
}

.location-inventory-panel { padding: 12px; }
.location-inventory-panel .location-inventory-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(150px, .85fr) minmax(150px, .85fr) minmax(180px, 1fr);
  grid-template-areas:
    "search category state sort"
    "toggle toggle toggle toggle";
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.location-inventory-filters > * { width: 100%; min-width: 0; }
.location-inventory-filters .search-box { grid-area: search; min-width: 0; }
#locationInventoryCategoryFilter { grid-area: category; }
#locationInventoryStateFilter { grid-area: state; }
#locationInventorySort { grid-area: sort; }
.location-inventory-filters .inline-toggle {
  width: max-content;
  min-height: 28px;
  grid-area: toggle;
  justify-self: start;
  padding-inline: 2px;
}

.location-inventory-table { table-layout: fixed; }
.location-inventory-table th:nth-child(1) { width: 25%; }
.location-inventory-table th:nth-child(2) { width: 23%; }
.location-inventory-table th:nth-child(3) { width: 12%; }
.location-inventory-table th:nth-child(4) { width: 15%; }
.location-inventory-table th:nth-child(5) { width: 25%; }
.location-inventory-table th:nth-child(4),
.location-inventory-table th:nth-child(5) { white-space: nowrap; }
.location-inventory-table th:last-child { padding-right: 10px; text-align: right; }
.inventory-row-actions {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 5px;
}
.inventory-row-actions > button { min-width: 0; white-space: nowrap; }
.inventory-row-actions .primary-button,
.inventory-row-actions .secondary-button { padding-inline: 9px; }
.inventory-row-actions .inline-action-menu { flex: 0 0 auto; }

#view-movements .movement-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(140px, .8fr) 160px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
#view-movements .movement-filters > * { width: 100%; min-width: 0; }
#view-movements .movement-main-search { min-width: 0; }
#view-movements .movement-sensitive-toggle {
  width: max-content;
  min-height: 36px;
  align-items: center;
  justify-self: end;
  padding: 0 3px;
  white-space: nowrap;
}
.pending-transfers-panel { padding: 13px 14px; }
.pending-transfers-panel .panel-header { margin-bottom: 8px; padding-bottom: 8px; }
.pending-transfers-panel .pending-transfer-list { gap: 0; }
.pending-transfers-panel .pending-transfer-card {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.pending-transfers-panel .transfer-symbol svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pending-transfers-panel .pending-transfer-products {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.pending-transfers-panel .pending-transfer-products > span {
  min-width: 150px;
  flex: 1 1 180px;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: var(--ui-surface-muted);
}

/* Internal records share typography, geometry and flat information surfaces. */
.product-hero-card,
.supplier-profile .product-hero-card,
.supplier-workspace .product-hero-card,
.professional-access-detail,
.professional-access-editor,
.quote-detail-layout > main,
.quote-detail-summary { border-color: var(--ui-border); border-radius: 10px; box-shadow: none; }

.product-hero-kpis,
.supplier-summary-grid,
.professional-detail-summary,
.quote-detail-header-facts {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface);
}
.product-hero-kpis > div,
.supplier-summary-grid > *,
.professional-detail-summary > *,
.quote-detail-header-facts > * {
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-hero-kpis > div:last-child,
.supplier-summary-grid > *:last-child,
.professional-detail-summary > *:last-child,
.quote-detail-header-facts > *:last-child { border-right: 0; }

.product-tabs-bar,
.product-edit-nav {
  overflow-x: auto;
  scrollbar-width: none;
}
.product-tabs-bar::-webkit-scrollbar,
.product-edit-nav::-webkit-scrollbar { display: none; }
.product-edit-section,
.professional-detail-section,
.supplier-directory-card,
.supplier-offer-card,
.quote-detail-notes { border-color: var(--ui-border); border-radius: 9px; box-shadow: none; }

@media (min-width: 1400px) {
  .location-inventory-panel .location-inventory-filters {
    grid-template-columns: minmax(280px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) auto minmax(180px, 1fr);
    grid-template-areas: "search category state toggle sort";
  }
}

@media (max-width: 1320px) {
  #view-movements .movement-filters {
    grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .75fr) minmax(150px, .75fr);
  }
  #view-movements .movement-main-search { grid-column: 1 / 3; }
  #view-movements .compact-search { grid-column: 3; }
  #view-movements #movementTypeFilter { grid-column: 1; grid-row: 2; }
  #view-movements #movementDateFilter { grid-column: 2; grid-row: 2; }
  #view-movements .movement-sensitive-toggle { grid-column: 3; grid-row: 2; justify-self: start; }
  .movement-table { min-width: 1020px; }
  #view-movements .table-wrap { overflow-x: auto; }
}

@media (min-width: 701px) and (max-width: 1320px) {
  .movement-table th:nth-child(6),
  .movement-table td:nth-child(6),
  .movement-table th:nth-child(9),
  .movement-table td:nth-child(9),
  .movement-table th:nth-child(10),
  .movement-table td:nth-child(10) { display: table-cell; }
}

.product-stock-table { min-width: 940px; table-layout: fixed; }
.product-stock-table th:nth-child(1) { width: 19%; }
.product-stock-table th:nth-child(2) { width: 12%; }
.product-stock-table th:nth-child(3) { width: 25%; }
.product-stock-table th:nth-child(4) { width: 10%; }
.product-stock-table th:nth-child(5) { width: 34%; }
.product-stock-table .product-location-actions { justify-content: flex-end; }
.product-stock-table .product-location-actions > button { white-space: nowrap; }

@media (max-width: 1100px) and (min-width: 701px) {
  .location-inventory-table { min-width: 900px; }
  .location-inventory-panel .table-wrap { overflow-x: auto; }
}

@media (max-width: 900px) {
  #locationInventorySummary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #movementSummary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #locationInventorySummary .summary-card,
  #movementSummary .summary-card { border-bottom: 1px solid var(--ui-border); }
  #locationInventorySummary .summary-card:nth-child(2n),
  #movementSummary .summary-card:nth-child(3n) { border-right: 0; }
  .location-inventory-panel .location-inventory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "search search"
      "category state"
      "sort toggle";
  }
  .location-inventory-filters .inline-toggle { width: 100%; min-width: 0; }
  #view-movements .movement-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-movements .movement-main-search { grid-column: 1 / -1; }
  #view-movements .compact-search,
  #view-movements #movementTypeFilter,
  #view-movements #movementDateFilter,
  #view-movements .movement-sensitive-toggle { grid-column: auto; grid-row: auto; }
  #view-movements .movement-sensitive-toggle { width: 100%; justify-self: stretch; }
}

@media (max-width: 1024px) {

  .content-area { padding: 10px 12px 30px; }

}

@media (max-width: 700px) {

  .content-area { padding: 8px 9px calc(82px + env(safe-area-inset-bottom)); }
  .environment-banner {
    min-height: 36px;
    margin: 4px 8px 0;
    padding: 5px 7px 5px 9px;
    font-size: 10px;
  }
  .environment-banner .banner-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .environment-banner .banner-action-btn { display: none; }
  .section-toolbar { align-items: stretch; margin-bottom: 8px; padding-bottom: 8px; }
  .section-toolbar p { font-size: 11px; }
  .section-toolbar-actions { width: 100%; }
  .section-toolbar-actions .primary-button { margin-left: auto; }
  .primary-button,
  .secondary-button,
  .danger-button { min-height: 42px; font-size: 12px; }
  .panel,
  .scanner-console,
  .summary-card-panel,
  .activity-timeline-panel,
  .professional-hub-panel,
  .product-hero-card { border-radius: 10px; }
  #view-scan .scanner-console { padding: 10px; }
  #view-scan .scanner-heading p { font-size: 11px; }
  #view-scan .mode-button { min-height: 50px; }
  #view-scan .mode-button small { font-size: 10px; }
  #view-scan .scan-input-shell { grid-template-columns: minmax(0, 1fr) auto; }
  #view-scan .scan-input-shell input { min-height: 48px; font-size: 15px; }
  #view-scan .scan-input-shell .primary-button { min-width: 84px; min-height: 48px; }
  .quote-workspace { padding: 7px 8px calc(82px + env(safe-area-inset-bottom)); }
  .quote-center-header { align-items: center; flex-direction: row; gap: 8px; padding: 0 0 7px; }
  .quote-center-header p { font-size: 11px; }
  .quote-center-header .primary-button { flex: 0 0 auto; min-height: 40px; font-size: 11px; }
  .quote-center-tabs { overflow-x: auto; }
  .quote-center-toolbar { padding: 4px; }
  .quote-center-toolbar input { min-height: 42px; font-size: 15px; }
  .product-hero-card { padding: 10px; }
  .product-hero-title { font-size: 19px; }
  .professional-access-header { align-items: center; gap: 8px; }
  .professional-access-header p { font-size: 11px; }
  .professional-metrics { grid-template-columns: 1fr 1fr; }
  .professional-metrics article:nth-child(2) { border-right: 0; }
  .professional-metrics article:nth-child(-n + 2) { border-bottom: 1px solid var(--ui-border); }
  #view-locations .section-toolbar p { display: none; }
  #view-locations .section-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }
  #view-locations .section-toolbar-actions .search-box { grid-column: 1 / -1; }
  #view-locations .section-toolbar-actions select { width: 100%; }
  #view-locations .section-toolbar-actions .primary-button {
    width: 100%;
    grid-column: 1 / -1;
    margin-left: 0;
  }
  #view-locations .location-ops-summary { grid-template-columns: 1fr 1fr; }
  #view-locations .location-ops-summary .summary-card { border-right: 1px solid var(--ui-border); }
  #view-locations .location-ops-summary .summary-card:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
  }
  #view-locations .location-ops-summary .summary-card:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  #view-locations .location-ops-summary .summary-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    border-top: 0;
    border-left: 1px solid var(--ui-border);
    border-right: 0;
  }
  #view-locations .location-card-stock { grid-template-columns: 1fr; gap: 7px; }
  #view-locations .location-card-stock > div:first-child { border-radius: 9px; }
  #view-locations .location-card-facts { border: 1px solid var(--ui-border); border-radius: 9px; }

  .app-shell.price-list-detail-active .content-area {
    padding-inline: 7px;
  }
  .price-list-explorer-bar {
    min-height: 76px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 5px;
    padding: 4px 1px 5px;
  }
  .price-list-explorer-bar::after {
    content: "";
    width: 100%;
    height: 0;
    flex-basis: 100%;
    order: 4;
  }
  .price-list-explorer-back { order: 1; }
  .price-list-explorer-title {
    min-width: 0;
    flex: 1 1 120px;
    order: 2;
  }
  .price-list-explorer-title > strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .price-list-explorer-title > small,
  .price-list-explorer-title .status-chip { display: none; }
  .price-list-explorer-bar > .primary-button { min-height: 34px; order: 3; }
  .price-list-more { display: block; order: 3; }
  .price-list-view-toggle { order: 5; }
  .price-list-explorer-bar .price-list-edit-launch { order: 6; }
  .price-list-explorer-bar .commercial-quotes-launch { order: 7; }
  .price-list-explorer-bar .commercial-cart-launch { order: 8; }
  .price-list-explorer-bar [data-share-public-list],
  .price-list-explorer-bar [data-open-list-accesses] { order: 9; }
  .commercial-page-controls label::before { display: none; }

  .record-sheet-modal {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
  .record-sheet-modal .modal-header {
    min-height: 54px;
    padding: 8px 12px;
  }
  .record-sheet-modal .modal-header h2 { font-size: 18px; }
  .record-sheet-modal .modal-body { padding: 0 10px 10px; }
  .record-sheet-modal .modal-footer {
    min-height: 54px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .record-sheet .modal-breadcrumb-nav {
    min-height: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .record-sheet-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
  }
  .record-sheet-tabs .location-detail-tab { min-height: 42px; }
  .record-sheet-actionbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 8px;
  }
  .record-sheet-actions-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-sheet-actions-main button { width: 100%; }
  .record-sheet-danger {
    width: 100%;
    margin-left: 0;
  }
  .record-sheet-grid { grid-template-columns: 1fr; }
  .record-sheet-section { padding: 10px; }
  .record-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .record-fact-grid > span {
    min-height: 58px;
    padding: 8px;
    font-size: 11px;
  }
  .record-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-metric-grid .summary-card { min-height: 62px; padding: 9px; }
  .record-metric-grid .summary-card strong { font-size: 17px; }
  .location-record-modal .location-transfer-section__header {
    align-items: flex-start;
  }
  .location-record-modal .pending-transfer-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .location-record-modal .pending-transfer-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-inventory > .section-toolbar,
  #view-movements > .section-toolbar { align-items: flex-start; }
  #view-inventory > .section-toolbar h2,
  #view-movements > .section-toolbar h2 { font-size: 15px; }
  #locationInventorySummary,
  #movementSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #locationInventorySummary .summary-card,
  #movementSummary .summary-card {
    min-height: 66px;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
  }
  #locationInventorySummary .summary-card:nth-child(2n),
  #movementSummary .summary-card:nth-child(2n) { border-right: 0; }
  .location-inventory-panel .location-inventory-filters,
  #view-movements .movement-filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .location-inventory-panel .location-inventory-filters > *,
  #view-movements .movement-filters > * { width: 100%; min-width: 0; flex: none; }
  .location-inventory-filters .search-box,
  #view-movements .movement-main-search { grid-column: 1 / -1; }
  .location-inventory-filters .inline-toggle,
  #view-movements .movement-sensitive-toggle { min-height: 42px; }
  .inventory-row-actions::before { grid-column: 1 / -1; }
  .inventory-row-actions .primary-button,
  .inventory-row-actions .secondary-button { min-height: 42px; }

  .product-hero-card { align-items: stretch; }
  .product-hero-actions,
  .professional-detail-actions,
  .quote-detail-actions { width: 100%; }
  .product-hero-actions > button,
  .professional-detail-actions > button,
  .quote-detail-actions > button { min-height: 42px; }
  .product-edit-grid,
  .professional-access-editor form,
  .professional-access-create form { grid-template-columns: 1fr; }
  .professional-access-detail,
  .professional-access-editor { width: 100%; max-height: 100dvh; border-radius: 0; }
}

/* Operational shell and commercial registry v4. */

#view-dashboard .hero-panel {
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(100, 136, 183, .1), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(237,243,250,.92));
}
#view-dashboard .hero-panel::after {
  width: 160px;
  height: 160px;
  right: -58px;
  bottom: -105px;
  border-width: 22px;
}
#view-dashboard .hero-panel h2 {
  max-width: 720px;
  margin: 5px 0 4px;
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
#view-dashboard .hero-panel p { font-size: 12px; }
#view-dashboard .kpi-grid { gap: 10px; margin: 10px 0; }
#view-dashboard .kpi-card { min-height: 106px; padding: 11px 13px; }
#view-dashboard .kpi-card::after { width: 58px; height: 58px; }
#view-dashboard .kpi-icon { width: 28px; height: 28px; }
#view-dashboard .kpi-label { margin-top: 6px; }
#view-dashboard .kpi-card strong { margin-top: 2px; font-size: 23px; }
#view-dashboard .kpi-note { margin-top: 4px; }

.price-list-home {
  max-width: none;
  padding: 2px 0 36px;
}
.price-list-home-header {
  min-height: 54px;
  align-items: center;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--ui-border);
}
.price-list-home-header h2 {
  margin: 0 0 3px;
  font-size: var(--ui-title-md);
  letter-spacing: -.025em;
}
.price-list-home-header p {
  margin: 0;
  color: var(--ui-text-muted);
  font-size: var(--ui-text-sm);
}
.price-list-home-actions { gap: 7px; }
.price-list-home-actions .primary-button,
.price-list-home-actions .secondary-button { min-height: 36px; }
.commercial-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 160px)) minmax(240px, 1fr);
  gap: 0;
  margin: 10px 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
}
.commercial-review-summary > span {
  min-height: 52px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 11px 13px;
  border-right: 1px solid var(--ui-border);
  white-space: nowrap;
}
.commercial-review-summary > span b {
  color: var(--ui-text);
  font-size: 16px;
}
.commercial-review-summary > span small {
  margin: 0;
  color: var(--ui-text-muted);
  font-size: 10px;
}
.commercial-review-summary > p {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 10px 13px;
  color: var(--ui-text-muted);
  font-size: 10px;
  text-align: right;
}
.price-list-home-search {
  width: min(100%, 520px);
  margin: 0 0 10px;
}
.price-list-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-surface);
}
.price-list-home-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, .8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color .12s ease;
}
.price-list-home-card:last-child { border-bottom: 0; }
.price-list-home-card:hover {
  transform: none;
  background: #faf9f7;
  box-shadow: none;
}
.price-list-home-card.is-archived { background: var(--ui-surface-muted); }
.price-list-home-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.price-list-home-card-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 9px;
  background: var(--lococo-selected);
  color: var(--lococo-ink);
  font-size: 16px;
}
.price-list-home-card-top { margin-bottom: 3px; }
.price-list-home-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-list-home-card .price-list-home-identity p {
  min-height: 0;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ui-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-list-home-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 0;
  margin: 0;
  color: var(--ui-text-muted);
  font-size: 10px;
}
.price-list-home-meta span {
  min-height: 36px;
  padding: 4px 12px;
  border-left: 1px solid var(--ui-border);
}
.price-list-home-meta strong { font-size: 12px; }
.price-list-home-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}
.price-list-home-card-actions .primary-button,
.price-list-home-card-actions .secondary-button {
  min-height: 34px;
  padding-inline: 11px;
  flex: 0 0 auto;
}
.price-list-home-card-actions .text-button { min-height: 34px; padding-inline: 7px; }

.commercial-review {
  max-width: none;
  padding: 2px 0 36px;
}
.commercial-review-header {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ui-border);
}
.commercial-review-header h2 {
  margin: 0 0 3px;
  font-size: var(--ui-title-md);
  letter-spacing: -.025em;
}
.commercial-review-header p {
  max-width: 920px;
  margin: 0;
  color: var(--ui-text-muted);
  font-size: var(--ui-text-sm);
}
.commercial-review-header > button { min-height: 34px; }
.commercial-review-controls {
  position: sticky;
  top: 0;
  z-index: 3;
  grid-template-columns: minmax(280px, 1fr) 200px auto;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-card);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 14px rgba(43, 38, 61, .04);
}
.commercial-review-controls select { height: 40px; border-color: var(--ui-border); }
.commercial-review-list { gap: 7px; }
.commercial-review-row {
  min-height: 84px;
  grid-template-columns: 64px minmax(280px, 1fr) minmax(210px, .55fr) 150px;
  gap: 12px;
  padding: 9px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-card);
}
.commercial-review-image { width: 64px; height: 64px; border-radius: 8px; }
.commercial-review-copy h3 { font-size: 13px; }
.commercial-review-copy p { margin-top: 3px; line-height: 1.35; }
.commercial-review-state { gap: 5px; }
.commercial-review-actions button { min-height: 32px; }

.price-list-wizard { max-width: none; padding-top: 0; }
.price-list-wizard-header {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ui-border);
}
.price-list-wizard-header > div { text-align: left; }
.price-list-wizard-header h2 { margin: 1px 0 0; font-size: var(--ui-title-md); }
.price-list-wizard-progress { margin: 12px auto 16px; }
.price-list-wizard-body {
  min-height: 420px;
  padding: 18px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-panel);
  box-shadow: none;
}
.price-list-wizard-footer {
  bottom: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-card);
  box-shadow: 0 8px 20px rgba(43, 38, 61, .08);
}

@media (max-width: 1160px) {
  .price-list-home-card { grid-template-columns: minmax(230px, 1fr) minmax(240px, .8fr); }
  .price-list-home-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .commercial-review-row { grid-template-columns: 64px minmax(220px, 1fr) minmax(180px, .55fr); }
  .commercial-review-actions {
    grid-column: 2 / -1;
    display: flex;
    justify-content: flex-end;
  }
  .commercial-review-actions button { width: auto; }
}

@media (max-width: 700px) {

  .price-list-home { padding-top: 0; }
  .price-list-home-header { align-items: stretch; }
  .price-list-home-header p { font-size: 11px; }
  .price-list-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .price-list-home-actions .primary-button { grid-column: 1 / -1; }
  .commercial-review-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commercial-review-summary > span {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 8px;
  }
  .commercial-review-summary > span b { font-size: 14px; }
  .commercial-review-summary > span small { overflow: hidden; text-overflow: ellipsis; }
  .commercial-review-summary > p { display: none; }
  .price-list-home-search { width: 100%; }
  .price-list-home-grid { border-radius: var(--ui-radius-card); }
  .price-list-home-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .price-list-home-meta { border-top: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
  .price-list-home-meta span { padding-inline: 8px; border-left: 0; border-right: 1px solid var(--ui-border); }
  .price-list-home-meta span:last-child { border-right: 0; }
  .price-list-home-card-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .price-list-home-card-actions .primary-button,
  .price-list-home-card-actions .secondary-button { width: 100%; }
  .price-list-home-card-actions .text-button { grid-column: 1 / -1; }
  .commercial-review-header { grid-template-columns: 1fr; gap: 8px; }
  .commercial-review-header > button { width: max-content; }
  .commercial-review-header p { font-size: 11px; }
  .commercial-review-controls { position: relative; grid-template-columns: 1fr; }
  .commercial-review-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
  }
  .commercial-review-image { width: 58px; height: 58px; }
  .commercial-review-state,
  .commercial-review-actions { grid-column: 1 / -1; }
  .commercial-review-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .commercial-review-actions button { width: 100%; min-height: 40px; }
  .price-list-wizard-header { grid-template-columns: 1fr auto; }
  .price-list-wizard-header > button { grid-column: 1 / -1; }
  .price-list-wizard-body { min-height: 0; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Physical hierarchy: a deposit owns its sectors visually, as it already does in data. */
#view-locations .location-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
#view-locations .location-family {
  min-width: 0;
  display: grid;
  gap: 9px;
}
#view-locations .location-family.has-children {
  padding: 10px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ui-surface) 90%, var(--primary-soft));
}
#view-locations .location-family__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 3px 8px;
  border-bottom: 1px solid var(--ui-border);
}
#view-locations .location-family__header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
#view-locations .location-family__header > div:last-child { text-align: right; }
#view-locations .location-family__header span {
  color: var(--ui-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
#view-locations .location-family__header strong {
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 800;
}
#view-locations .location-family__root > .location-card {
  border-color: color-mix(in srgb, var(--primary) 22%, var(--ui-border));
  background: var(--ui-surface);
}
#view-locations .location-family__children {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--primary) 25%, var(--ui-border));
}
#view-locations .location-tree-branch {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}
#view-locations .location-tree-branch > .location-tree-branch {
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px solid var(--ui-border);
}
#view-locations .location-card.location-card--nested {
  border-radius: 11px;
  background: var(--ui-surface);
}
#view-locations .location-card--nested .location-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
#view-locations .location-card--nested .location-card-stock > div:first-child strong { font-size: 21px; }
#view-locations .location-card--nested .location-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }

.price-list-public-ready {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--ui-border));
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 920px) {
  #view-locations .location-family__children { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  #view-locations .location-family.has-children { padding: 8px; border-radius: 12px; }
  #view-locations .location-family__header { align-items: flex-start; }
  #view-locations .location-family__header > div:last-child { text-align: left; }
  #view-locations .location-family__children {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  #view-locations .location-tree-branch > .location-tree-branch {
    margin-left: 8px;
    padding-left: 7px;
  }
  #view-locations .location-card--nested .location-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
/* Density pass v10: operational rows, finance and supplier surfaces. */
@media (min-width: 1180px) {
  #view-locations .location-family__children {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-locations .location-card.location-card--operational {
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(430px, 1.45fr) auto;
    grid-template-areas:
      "identity stock actions"
      "identity movement actions";
    align-items: center;
    column-gap: 16px;
    row-gap: 5px;
    padding: 11px 12px;
  }

  #view-locations .location-card-head {
    grid-area: identity;
    align-self: stretch;
    align-items: center;
  }

  #view-locations .location-card-stock {
    grid-area: stock;
    margin-top: 0;
  }

  #view-locations .location-card-last {
    grid-area: movement;
    margin-top: 0;
  }

  #view-locations .location-actions {
    grid-area: actions;
    width: max-content;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  #view-locations .location-actions .primary-button,
  #view-locations .location-actions .secondary-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding-inline: 12px;
  }

  #view-locations .location-card--nested .location-icon {
    width: 38px;
    height: 38px;
  }
}

/* Finance is a control surface: joined summaries and content-sized actions. */
#view-finance .section-toolbar {
  min-height: 44px;
  margin-bottom: 10px;
}

#view-finance .finance-grid {
  grid-template-columns: minmax(300px, 1.15fr) repeat(2, minmax(220px, .9fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-surface);
}

#view-finance .finance-rate-card,
#view-finance .finance-stat-card {
  min-height: 96px;
  gap: 4px;
  padding: 12px 15px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-finance .finance-grid > article:last-child { border-right: 0; }
#view-finance .finance-rate-card > strong { font-size: 34px; letter-spacing: -.045em; }
#view-finance .finance-stat-card > strong { font-size: 25px; line-height: 1; }
#view-finance .finance-rate-card > span,
#view-finance .finance-stat-card > span,
#view-finance .finance-rate-card > small,
#view-finance .finance-stat-card > small { font-size: 10px; }
#view-finance .finance-rate-card .text-button { width: max-content; font-size: 10px; }

#view-finance .internal-price-list-card {
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: var(--ui-radius-card);
  box-shadow: none;
}

#view-finance .internal-price-list-card h3 { font-size: 15px; }
#view-finance .internal-price-list-card p,
#view-finance .internal-price-list-card small { font-size: 10px; line-height: 1.4; }
#view-finance .internal-price-list-actions > * { width: max-content; }

#view-finance .price-intelligence-section { gap: 10px; margin-top: 13px; }
#view-finance .price-intelligence-heading h3 { font-size: 16px; }
#view-finance .price-intelligence-heading p { font-size: 11px; }
#view-finance .price-intelligence-controls select { min-height: 36px; font-size: 11px; }

#view-finance .price-intelligence-kpis {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
}

#view-finance .price-intelligence-kpis button {
  min-height: 76px;
  gap: 3px;
  padding: 9px 11px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-finance .price-intelligence-kpis button:nth-child(4n) { border-right: 0; }
#view-finance .price-intelligence-kpis button:nth-last-child(-n + 4) { border-bottom: 0; }
#view-finance .price-intelligence-kpis strong { font-size: 20px; }
#view-finance .price-intelligence-results { padding: 12px; border-radius: var(--ui-radius-card); box-shadow: none; }

/* Supplier directory keeps the information, but removes dashboard-card inflation. */
#view-supplier_detail .product-page-wrapper { gap: 8px; }
#view-supplier_detail .supplier-workspace-hero,
#view-supplier_detail .supplier-profile .product-hero-card {
  padding: 10px 12px;
}

#view-supplier_detail .supplier-hub-icon,
#view-supplier_detail .supplier-avatar--hero {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 10px;
  font-size: 19px;
}

#view-supplier_detail .supplier-workspace .product-hero-title,
#view-supplier_detail .supplier-profile .product-hero-title { font-size: 19px; }
#view-supplier_detail .product-hero-ids { font-size: 10px; }
#view-supplier_detail .product-hero-kpis > div { min-height: 44px; padding: 6px 8px; }

#view-supplier_detail .supplier-directory-grid { gap: 9px; }
#view-supplier_detail .supplier-directory-card {
  padding: 12px;
  border-radius: var(--ui-radius-card);
  box-shadow: none;
}

#view-supplier_detail .supplier-directory-card__head { gap: 9px; }
#view-supplier_detail .supplier-directory-card__head h2 { font-size: 16px; }
#view-supplier_detail .supplier-directory-card__head p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
}

#view-supplier_detail .supplier-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 9px;
  font-size: 16px;
}

#view-supplier_detail .supplier-directory-card__metrics {
  margin-top: 9px;
  border-radius: 8px;
}

#view-supplier_detail .supplier-directory-card__metrics > div { padding: 7px 8px; }
#view-supplier_detail .supplier-directory-card__metrics span { font-size: 10px; }
#view-supplier_detail .supplier-directory-card__metrics strong { margin-top: 2px; font-size: 14px; }
#view-supplier_detail .supplier-directory-card__footer { margin-top: 8px; }
#view-supplier_detail .supplier-directory-card__footer .text-button { width: max-content; }
#view-supplier_detail .supplier-global-rules { margin-top: 9px; }

@media (max-width: 920px) {
  #view-finance .finance-grid { grid-template-columns: 1fr 1fr; }
  #view-finance .finance-rate-card { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--ui-border); }
  #view-finance .finance-stat-card:nth-child(2) { border-right: 1px solid var(--ui-border); }
  #view-finance .internal-price-list-card { align-items: flex-start; flex-direction: column; }
  #view-finance .price-intelligence-heading { align-items: stretch; flex-direction: column; }
  #view-finance .price-intelligence-controls { width: 100%; }
  #view-finance .price-intelligence-controls select { min-width: 0; flex: 1; }
  #view-finance .price-intelligence-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-finance .price-intelligence-kpis button:nth-child(4n) { border-right: 1px solid var(--ui-border); }
  #view-finance .price-intelligence-kpis button:nth-child(2n) { border-right: 0; }
  #view-finance .price-intelligence-kpis button:nth-last-child(-n + 4) { border-bottom: 1px solid var(--ui-border); }
  #view-finance .price-intelligence-kpis button:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 700px) {
  #view-finance .section-toolbar-actions { width: 100%; }
  #view-finance .section-toolbar-actions > * { flex: 1; }
  #view-finance .finance-grid { grid-template-columns: 1fr 1fr; }
  #view-finance .finance-rate-card,
  #view-finance .finance-stat-card { min-height: 84px; padding: 10px; }
  #view-finance .finance-rate-card > strong { font-size: 30px; }
  #view-finance .internal-price-list-actions { width: 100%; justify-content: space-between; }
  #view-finance .internal-price-list-actions .primary-button { flex: 0 1 auto; }
  #view-finance .price-intelligence-controls { flex-direction: column; }
  #view-finance .price-intelligence-controls select { width: 100%; }
  #view-finance .price-intelligence-result-meta { align-items: flex-end; }

  #view-supplier_detail .supplier-directory-grid { grid-template-columns: 1fr; }
  #view-supplier_detail .supplier-directory-card { padding: 11px; }
}

/* Product overview keeps purchase references separate from its recorded cost. */
.product-replacement-body { padding: 16px; }
.product-replacement-price { display: block; color: #142f4e; font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
.product-replacement-facts { margin: 0; display: grid; gap: 12px; }
.product-replacement-facts > div { display: grid; grid-template-columns: minmax(120px, .9fr) minmax(0, 1.2fr); gap: 12px; }
.product-replacement-facts dt { color: #64748b; font-size: 12px; }
.product-replacement-facts dd { margin: 0; color: #29445e; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.product-profit-detail { margin-top: 5px; }
.product-profit-detail summary { color: #55708b; font-size: 11px; cursor: pointer; }
.product-profit-detail .tier-margin-detail { display: block; margin-top: 6px; }
@media (max-width: 480px) { .product-replacement-facts > div { grid-template-columns: 1fr; gap: 3px; } }

.product-stock-minimum { gap: 10px; align-items: flex-start; }.product-stock-minimum button { flex: none; }

.product-supplier-comparison > summary { cursor: pointer; padding: 14px 18px; color: var(--text-secondary, #526176); font-size: 13px; font-weight: 600; }
.product-stock-minimum { flex-wrap: wrap; }
.product-stock-minimum > span:not(.status-chip) { flex: 1 1 220px; }
@media (max-width: 480px) {
  .product-stock-minimum > span:not(.status-chip) { flex-basis: 100%; }
}
