/* Calculator header and two compact control rows. */
.calculator-page .script-result-table tbody tr { height:auto; }
.calculator-page .script-result-table tbody td { height:auto; padding:5px 6px; font-size:13px; line-height:1.25; font-variant-numeric:tabular-nums; }
.calculator-page .script-result-table thead th { padding:7px 6px; font-size:10px; line-height:1.25; white-space:normal; overflow-wrap:anywhere; }
.calculator-page .script-result-table .table-sort-trigger { width:100%; padding:0; align-items:center; white-space:normal; font-size:inherit; gap:3px; }
.calculator-page .script-result-table .table-sort-trigger > span { flex:1; min-width:0; white-space:pre-line; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.calculator-page .script-result-table .table-sort-trigger > svg { flex:0 0 10px; width:10px; }
.calculator-page .script-result-table .calculator-number-cell { white-space:nowrap; }
.calculator-page .script-result-table .calculator-text-cell { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calculator-page .script-product-presentation { min-height:32px; gap:7px; padding:0; }
.calculator-page .script-product-presentation img, .calculator-page .script-product-presentation > span, .calculator-page .script-product-presentation > a { width:32px; height:32px; min-width:32px; }
.calculator-page .script-product-presentation b, .calculator-page .script-product-primary { font-size:12px; line-height:1.2; }
.calculator-page .script-product-presentation small { font-size:10px; line-height:1.2; }
.calculator-page .script-manual-price { width:100%; min-width:0; max-width:100%; height:30px; padding:4px 6px; font-size:13px; }
.app-shell .calculator-page > .page-header { display:flex; align-items:center; gap:12px 24px; margin:0 0 10px; min-height:0; padding:0; }
.calculator-page > .page-header > div:first-child { display:grid; grid-template-columns:auto auto; column-gap:16px; row-gap:2px; align-items:center; }
.calculator-page > .page-header h1 { grid-column:1; grid-row:1 / 3; margin:0; font-size:28px; line-height:1.1; }
.calculator-page > .page-header .eyebrow { grid-column:2; grid-row:1; margin:0; font-size:11px; }
.calculator-page > .page-header p:not(.eyebrow) { grid-column:2; margin:0; max-width:650px; font-size:12px; line-height:1.35; }
.app-shell .calculator-page > .calc-scope.panel { display:flex; flex-wrap:wrap; align-items:end; gap:8px 16px; padding:12px 14px; }
.calculator-page > .calc-scope .calc-main-fields { display:flex !important; flex:0 0 auto; gap:10px; padding:0; margin:0; }
.calculator-page > .calc-scope .calc-main-fields .ops-field { width:140px; min-width:0; }
.calculator-page > .calc-scope .calc-main-fields .ops-field:first-child { width:100px; }
.calculator-page > .calc-scope .calc-main-fields input, .calculator-page > .calc-scope .calc-main-fields select { min-height:32px; height:32px; padding:5px 9px; }
.app-shell .calculator-page > .calc-scope .calc-scope-footer { display:flex; flex:1 1 480px; align-items:center; gap:12px; min-height:32px; padding:0; margin:0; border:0; background:none; }
.calculator-page .calc-scope-footer .advanced-toggle { min-height:32px; padding:5px 8px; white-space:nowrap; }
.calculator-page .calc-scope-footer .calc-status { margin-left:auto; white-space:nowrap; }
.calculator-page .calc-scope-footer .result-notices { padding:0; border:0; background:none; font-size:12px; gap:6px 12px; }
.calculator-page > .calc-scope > .advanced-params, .calculator-page > .calc-scope > .internal-api-error, .calculator-page > .calc-scope > .internal-api-warning { flex:1 0 100%; width:100%; margin:0; }
.app-shell .calculator-page .calc-workspace { margin-top:0; }
.calculator-page .calc-result-controls { display:flex; flex:1 1 auto; align-items:center; gap:12px; min-width:0; }
.calculator-page .calc-result-controls .calc-selection.panel { flex:0 0 auto; min-height:0; padding:0; margin:0; border:0; box-shadow:none; background:none; }
.calculator-page .calc-result-controls .calc-selection .ops-section-head { gap:0; }
.calculator-page .calc-result-controls .calc-selection h2,
.calculator-page .calc-result-controls .calc-selection small { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.calculator-page .calc-result-controls .calc-tabs { display:flex; flex:1 1 auto; flex-wrap:nowrap; align-items:center; gap:12px; min-height:0; margin:0; padding:0; border:0; background:none; }
.calculator-page .calc-result-controls .calc-tabs > div:first-child { display:flex; flex:0 0 auto; flex-wrap:nowrap; height:32px; }
.calculator-page .calc-result-controls .calc-selection .segmented-control button { font-size:12px; padding:6px 8px; min-height:32px; }
.calculator-page .calc-result-controls .calc-manual-count { font-size:11px; white-space:nowrap; color:#64748b; }
.calculator-page .calc-result-controls .calc-tabs > .calc-ready-duplicate { display:none; }
.calculator-page .calc-result-controls .calc-tabs > .calc-state-message { display:flex; font-size:11px; white-space:nowrap; }
.calculator-page .calc-result-controls .calc-tabs button { min-height:32px; padding:6px 8px; font-size:12px; white-space:nowrap; }
.calculator-page .calc-result-controls .calc-inline-params { display:flex; margin-left:auto; gap:8px; }
.calculator-page .calc-result-controls .calc-inline-params label { display:flex; align-items:center; gap:5px; font-size:11px; white-space:nowrap; }
.calculator-page .calc-result-controls .calc-inline-params input { width:54px; min-width:0; height:30px; padding:4px; }
.calculator-page .table-column-toolbar { display:flex; align-items:center; gap:10px; padding:10px 14px; }
.calculator-page .table-column-toolbar > .table-toolbar-spacer { display:none; }
.calculator-page .table-column-toolbar > .table-column-picker { flex:0 0 auto; }
.calculator-page .table-column-toolbar .button { min-height:32px; padding:6px 9px; font-size:12px; white-space:nowrap; }
.calculator-page .calc-workspace > .calc-result-controls { padding:10px 14px; }
@media(max-width:1600px) {
 .calculator-page .calc-result-controls { flex-wrap:wrap; }
 .calculator-page .calc-result-controls .calc-tabs { flex-wrap:wrap; }
 .calculator-page .calc-result-controls .calc-inline-params { margin-left:0; }
}
@media(max-width:700px) {
 .calculator-page > .page-header { flex-wrap:wrap; }
 .calculator-page > .page-header > div:first-child { grid-template-columns:1fr; }
 .calculator-page > .page-header h1, .calculator-page > .page-header .eyebrow, .calculator-page > .page-header p:not(.eyebrow) { grid-column:1; grid-row:auto; }
 .calculator-page > .calc-scope .calc-main-fields { flex-wrap:wrap; flex:1 1 100%; }
 .app-shell .calculator-page > .calc-scope .calc-scope-footer { flex:1 1 100%; flex-wrap:wrap; }
 .calculator-page .calc-result-controls .calc-inline-params { flex-wrap:wrap; }
 .calculator-page .table-column-toolbar { flex-wrap:wrap; }
 .calculator-page .calc-result-controls { flex-basis:100%; }
}

.calculator-page .result-notices,
.podsort-page .result-notices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 14px;
  border: 1px solid #d4deec;
  border-radius: 10px;
  background: #f8fbff;
  color: #25344f;
  font-size: 13px;
  line-height: 1.35;
}
.result-notices__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.result-notices__partial { padding: 2px 7px; border-radius: 6px; background: #fff1d8; color: #8a4b10; font-size: 11px; font-weight: 700; }
.result-notices__stale,
.result-notices__inbound { padding: 2px 7px; border-radius: 6px; background: #fff1d8; color: #8a4b10; font-size: 11px; font-weight: 700; }
.result-notices__dates { color: #725122; font-size: 12px; }
.podsort-stale-option {
  padding: 8px 14px;
  border: 1px solid #e7d19b;
  border-radius: 10px;
  background: #fffaf0;
  color: #62461d;
}
.podsort-stale-option label { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; cursor: pointer; font-size: 13px; font-weight: 650; }
.podsort-stale-option input { margin: 0; width: 16px; height: 16px; accent-color: #a96813; }
.podsort-stale-option small { color: #806c4f; font-size: 11px; font-weight: 400; }
.podsort-storage-disclosure { border: 1px solid #d4deec; border-radius: 10px; background: #fff; }
.podsort-storage-disclosure > summary { display: list-item; margin-left: 28px; padding: 9px 12px 9px 0; cursor: pointer; color: #2457ad; font-size: 13px; font-weight: 650; }
.podsort-storage-disclosure > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.podsort-storage-disclosure > .storage-status-panel { margin: 0; border: 0; border-top: 1px solid #d4deec; box-shadow: none; }
.podsort-error-notice { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.podsort-error-notice summary { margin-top: 5px; cursor: pointer; font-weight: 650; }
.podsort-error-notice__body { max-height: 45vh; margin-top: 8px; overflow: auto; white-space: pre-wrap; font-weight: 400; }
.podsort-inbound-recovery { display: block; margin-top: 8px; }
.result-notices__detail { position: relative; }
.result-notices__detail summary {
  display: list-item;
  cursor: pointer;
  color: #2457ad;
  font-weight: 600;
  white-space: nowrap;
}
.result-notices__detail summary:hover { text-decoration: underline; }
.result-notices__detail summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 3px; }
.result-notices__body {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  box-sizing: border-box;
  width: min(570px, calc(100vw - 48px));
  max-height: min(52vh, 480px);
  overflow: auto;
  padding: 12px 16px;
  border: 1px solid #c7d6ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 40px #1d376026;
  color: #26344d;
  font-weight: 400;
  white-space: normal;
}
.result-notices__body ul { margin: 0; padding-left: 18px; }
.result-notices__body li + li { margin-top: 6px; }
.result-notices__body small { display: block; margin-top: 8px; color: #64748b; }
.calculator-page .calc-selection.panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 7px 14px;
}
.calculator-page .calc-selection .ops-section-head { display: flex; align-items: center; gap: 16px; min-height: 0; margin: 0; padding: 0; border: 0; }
.calculator-page .calc-selection h2 { margin: 0; font-size: 14px; white-space: nowrap; }
.calculator-page .calc-selection small { margin: 0; color: #64748b; font-size: 12px; }
.calculator-page .calc-selection .segmented-control button { min-height: 32px; }

/* Results workspaces keep their filters in the document flow on desktop. */
@media (min-width: 901px) {
  .app-shell .calculator-page,
  .app-shell .podsort-page,
  .app-shell .ops-page:has(> .ops-filter-panel .rnp-filters) {
    box-sizing: border-box;
    padding-right: 0 !important;
  }

  .app-shell.app-shell .calculator-page > .calc-scope,
  .app-shell.app-shell .podsort-page > .ops-filter-panel,
  .app-shell.app-shell .ops-page:has(> .ops-filter-panel .rnp-filters) > .ops-filter-panel {
    position: static !important;
    z-index: auto !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    scrollbar-gutter: auto !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: auto !important;
  }

  .app-shell .calculator-page > .calc-scope::after,
  .app-shell .podsort-page > .ops-filter-panel::after,
  .app-shell .ops-page:has(> .ops-filter-panel .rnp-filters) > .ops-filter-panel::after {
    content: none !important;
    display: none !important;
  }

  .app-shell .calculator-page > .calc-scope .calc-main-fields > .ops-field:first-child,
  .app-shell .podsort-page > .ops-filter-panel .podsort-filters > .ops-field:nth-child(2),
  .app-shell .ops-page:has(> .ops-filter-panel .rnp-filters) > .ops-filter-panel .rnp-filters > .ops-field:first-child {
    grid-column: auto !important;
  }
  .app-shell .calculator-page > .calc-scope .advanced-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .app-shell .calculator-page > .calc-scope .file-inputs { flex-direction: row; }
  .app-shell .calculator-page > .calc-scope .file-inputs label { width: 240px; }

  .app-shell:has(.calculator-page) .filter-dock-toggle,
  .app-shell:has(.podsort-page) .filter-dock-toggle,
  .app-shell:has(.ops-page > .ops-filter-panel .rnp-filters) .filter-dock-toggle {
    display: none;
  }

  body.sphere-table-fullscreen .app-shell:has(.calculator-page) .table-viewport.is-fullscreen,
  body.sphere-table-fullscreen .app-shell:has(.podsort-page) .table-viewport.is-fullscreen,
  body.sphere-table-fullscreen .app-shell:has(.ops-page > .ops-filter-panel .rnp-filters) .table-viewport.is-fullscreen {
    right: 0;
  }
}
@media (min-width: 1700px) {
  .calculator-page, .podsort-page { gap: 10px; }
  .calculator-page .page-header, .podsort-page .page-header { margin-bottom: 2px; }
  .calculator-page .page-header p, .podsort-page .page-header p { margin-bottom: 0; }
  .calculator-page .calc-scope, .podsort-page > .ops-filter-panel { padding-top: 12px; padding-bottom: 0; }
  .calculator-page .calc-main-fields, .podsort-page .podsort-filters { gap: 8px 12px; }
  .calculator-page .calc-scope-footer, .podsort-page .ops-filter-footer { min-height: 44px; }
  .calculator-page .calc-selection.panel { min-height: 42px; }
  .podsort-stale-option { padding-top: 6px; padding-bottom: 6px; }
  .calculator-page .calc-workspace, .podsort-page .podsort-workspace { margin-top: 0; }
}
@media (max-width: 700px) {
  .calculator-page .result-notices, .podsort-page .result-notices { gap: 7px 14px; }
  .result-notices__body { position: static; width: min(100%, calc(100vw - 48px)); max-height: 52vh; margin-top: 8px; }
  .result-notices__detail[open] { flex-basis: 100%; }
  .calculator-page .calc-selection.panel, .calculator-page .calc-selection .ops-section-head { align-items: flex-start; }
  .calculator-page .calc-selection .ops-section-head { flex-wrap: wrap; gap: 7px 12px; }
}

/* Dense report controls; all rules stay inside RNP. */
.app-shell .rnp-page { gap: 12px; }
.rnp-page > .page-header { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 12px 24px; margin: 0 0 10px; padding: 0; min-height: 0; }
.rnp-page > .page-header > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 16px; row-gap: 2px; }
.rnp-page > .page-header .eyebrow { grid-column: 2; grid-row: 1; margin: 0; font-size: 11px; }
.rnp-page > .page-header h1 { grid-column: 1; grid-row: 1 / 3; margin: 0; font-size: 28px; line-height: 1.1; }
.rnp-page > .page-header p:not(.eyebrow) { grid-column: 2; margin: 0; max-width: 510px; font-size: 12px; line-height: 1.35; }
.rnp-page > .page-header .page-actions { margin: 0; }
.rnp-page .rnp-report-switch .button { min-height: 36px; padding: 8px 12px; }
.app-shell .rnp-page > .rnp-visible-filters { padding: 12px 16px; overflow: visible; }
.rnp-page .rnp-filters { display: flex !important; flex-wrap: wrap !important; align-items: end; gap: 10px 12px; }
.rnp-page .rnp-filters > .ops-field { flex: 1 1 210px; min-width: 0; }
.rnp-page .rnp-filters > .ops-field:nth-child(-n+2) { flex: 0 1 154px; }
.rnp-page .rnp-filters input[type=date] { min-width: 0; width: 100%; }
.rnp-page .rnp-filter-tools { display: flex; flex: 1 1 360px; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 12px; min-width: 0; }
.rnp-page .rnp-filter-tools .economics-quick-ranges { margin: 0; flex: 0 0 auto; }
.rnp-page .rnp-filter-tools .filter-data-status { margin: 0 0 0 auto; white-space: normal; font-size: 11px; }
.rnp-page .rnp-filter-tools .metric-picker-wrap { flex: 0 0 auto; }
.rnp-page .rnp-filter-tools .metric-picker { right: 0 !important; left: auto !important; }
.rnp-page .rnp-filter-tools .sphere-rnp-status {
  display: inline-flex; flex: 0 0 144px; box-sizing: border-box; width: 144px;
  min-height: 36px; margin: 0; padding: 5px 8px; gap: 6px;
  border: 1px solid #d5e8e2; border-radius: 6px; background: #f5faf8;
  white-space: normal; font-size: 10px; line-height: 1.3;
}
.rnp-page .sphere-rnp-status > svg { flex: 0 0 12px; width: 12px; height: 12px; }
.rnp-page .rnp-status-copy { display: grid; gap: 1px; min-width: 0; }
.rnp-page .rnp-status-label { font-weight: 600; }
.rnp-page .rnp-status-detail { white-space: nowrap; }
@media (min-width: 1200px) {
  .app-shell .rnp-page > .rnp-visible-filters { padding: 12px; }
  .rnp-page .rnp-filters { flex-wrap: nowrap !important; gap: 8px; padding: 0; }
  .rnp-page .rnp-filters > .ops-field { flex: 1 1 140px; }
  .rnp-page .rnp-filters > .ops-field:nth-child(-n+2) { flex: 0 0 128px; }
  .rnp-page .rnp-filters > .ops-field:nth-child(4) { flex-basis: 170px; }
  .rnp-page .rnp-filter-tools { display: contents; }
  .rnp-page .rnp-filter-tools .economics-quick-ranges { display: flex; flex-wrap: nowrap; gap: 4px; }
  .rnp-page .rnp-filter-tools .metric-picker-wrap { margin: 0; }
  .rnp-page .rnp-filter-tools .button { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
  .rnp-page .rnp-filter-tools .filter-data-status { margin: 0; font-size: 10px; }
}
@media (max-width: 900px) {
  .rnp-page .rnp-filter-tools .metric-picker { left: 16px !important; right: 16px !important; width: auto; }
}
.rnp-page .rnp-visible-filters .internal-api-error { margin-top: 8px; }
.rnp-page .metric-chip-row { margin: 0; gap: 5px; }
.rnp-page .ops-chart-panel > .ops-section-head { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
.rnp-page .rnp-chart-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.rnp-page .rnp-chart-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; font-size: 12px; }
.rnp-page .rnp-chart-toggle svg { width: 16px; height: 16px; }
.rnp-page #rnp-chart-body[hidden] { display: none; }
.rnp-page .ops-table-panel > .ops-section-head { padding: 12px 16px; }
.rnp-page .rnp-table-viewport > .table-column-toolbar:has(.rnp-matrix-heading) {
  min-height: 52px; padding: 10px 16px; background: #fff;
}
.rnp-page .rnp-matrix-heading { min-width: 0; margin-right: auto; }
.rnp-page .rnp-matrix-heading h2 { margin: 0; font-size: 12px; line-height: 1.3; }
.rnp-page .rnp-matrix-heading p { margin: 3px 0 0; font-size: 9px; line-height: 1.3; color: #748198; }
.rnp-page .rnp-matrix-heading ~ .table-fullscreen-trigger { flex-shrink: 0; }
.rnp-page .rnp-matrix-table td:not(.rnp-sticky-photo):not(.rnp-sticky-product):not(.rnp-metric-cell):not(.rnp-spark-cell),
.rnp-page .rnp-daily-table td,
.rnp-page .rnp-daily-table tfoot th { font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rnp-page .rnp-matrix-table td:not([class]),
.rnp-page .rnp-matrix-table td.heat-soft,
.rnp-page .rnp-matrix-table td.negative { min-width: 92px; padding: 8px 10px; }
.rnp-page .rnp-matrix-table th, .rnp-page .rnp-daily-table thead th { font-size: 12px; }
.rnp-page .rnp-matrix-table .table-sort-trigger { font-size: inherit; }
.rnp-page .rnp-current-stock b { font-size: 14px; }
.rnp-page .rnp-current-stock small, .rnp-page .rnp-sticky-product .mono { font-size: 12px; }
.rnp-page .rnp-metric-cell { font-size: 12px; white-space: normal; }
@media (max-width: 700px) {
  .rnp-page > .page-header { gap: 10px; }
  .rnp-page > .page-header > div:first-child { column-gap: 12px; }
  .rnp-page > .page-header p:not(.eyebrow) { max-width: 280px; }
  .rnp-page .rnp-filters > .ops-field:nth-child(-n+2) { flex: 1 1 130px; }
  .rnp-page .rnp-filter-tools { flex-basis: 100%; }
  .rnp-page .rnp-filter-tools .filter-data-status { flex-basis: 100%; margin-left: 0; }
}

/* Product identity uses the row group's available height instead of ellipsis. */
.rnp-page .rnp-matrix-table .rnp-sticky-product > b,
.rnp-page .rnp-matrix-table .rnp-sticky-product > small {
  display: block; max-width: 100% !important; white-space: normal;
  overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
}
.rnp-page .rnp-matrix-table .rnp-sticky-product > b {
  margin-bottom: 6px; font-size: 13px; line-height: 1.4; color: #475569;
}
.rnp-page .rnp-matrix-table .rnp-sticky-product > small:not(.mono) {
  font-size: 14px; line-height: 1.45; color: #1e293b; text-wrap: pretty;
}
.rnp-page .rnp-matrix-table .rnp-sticky-product > small.mono {
  margin-top: 8px; font-size: 13px; line-height: 1.4; color: #64748b;
}
@media (min-width: 1200px) {
  .rnp-page .rnp-filters > .ops-field:nth-child(3) { max-width: 320px; }
  .rnp-page .rnp-filters > .ops-field:nth-child(4) { max-width: 300px; }
}


/* Fit the matrix to its viewport. Rowspan cells must be styled by class,
   not their DOM index, because later metric rows omit the identity cells. */
.rnp-page .rnp-table-viewport > .ops-table-scroll {
  overflow: auto; scrollbar-gutter: stable;
}
.rnp-page .rnp-matrix-table {
  table-layout: fixed; width: 100%; min-width: 900px;
}
.rnp-page .rnp-matrix-table th,
.rnp-page .rnp-matrix-table td {
  box-sizing: border-box; min-width: 0 !important; max-width: none !important;
  width: auto; padding: 7px 4px; white-space: normal !important;
  overflow-wrap: anywhere;
}
.rnp-page .rnp-matrix-table th:first-child,
.rnp-page .rnp-matrix-table td.rnp-sticky-photo {
  width: 36px !important; padding-left: 3px !important; padding-right: 3px !important;
}
.rnp-page .rnp-matrix-table th:nth-child(2),
.rnp-page .rnp-matrix-table td.rnp-sticky-product {
  width: 140px !important; left: 36px !important;
  padding-left: 6px !important; padding-right: 6px !important;
}
.rnp-page .rnp-matrix-table .rnp-metric-head,
.rnp-page .rnp-matrix-table .rnp-metric-cell {
  width: 82px !important; left: 176px !important; padding: 7px 4px;
}
.rnp-page .rnp-matrix-table .rnp-spark-head,
.rnp-page .rnp-matrix-table .rnp-spark-cell { width: 72px !important; }
.rnp-page .rnp-matrix-table .metric-spark { width: 100%; max-width: 64px; gap: 1px; }
.rnp-page .rnp-matrix-table thead th:nth-last-child(3) { width: 88px; }
.rnp-page .rnp-matrix-table thead th:nth-last-child(2) { width: 72px; }
.rnp-page .rnp-matrix-table thead th:last-child { width: 64px; }
.rnp-page .rnp-matrix-table td:not(.rnp-sticky-photo):not(.rnp-sticky-product):not(.rnp-metric-cell):not(.rnp-spark-cell) {
  min-width: 0; padding: 7px 4px; white-space: normal;
}
.rnp-page .rnp-matrix-table .table-sort-trigger {
  padding: 5px 2px; gap: 2px; flex-wrap: wrap;
}
.rnp-page .rnp-matrix-table .table-sort-trigger > span { min-width: 0; }
.rnp-page .rnp-matrix-table thead th { font-size: 10px; overflow-wrap: normal; }
.rnp-page .rnp-matrix-table .table-sort-trigger > span { white-space: normal; overflow-wrap: anywhere; flex: 0 0 auto; max-width: 100%; }
.rnp-page .rnp-matrix-table thead th:nth-child(n+5):nth-last-child(n+4) .table-sort-trigger > span { white-space: nowrap; }
.rnp-page .rnp-matrix-table .rnp-current-stock small {
  max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}

.rnp-page .rnp-matrix-table .rnp-number {
  display: inline-block; white-space: nowrap; font-size: 12px;
  font-variant-numeric: tabular-nums; line-height: 1.4;
}
.rnp-page .rnp-matrix-table td:not(.rnp-sticky-photo):not(.rnp-sticky-product):not(.rnp-metric-cell):not(.rnp-spark-cell) {
  padding-left: 1px; padding-right: 1px; text-align: right;
}
.rnp-page .rnp-matrix-table tbody td,
.rnp-page .rnp-matrix-table tbody td:not(.rnp-sticky-photo):not(.rnp-sticky-product):not(.rnp-metric-cell):not(.rnp-spark-cell),
.rnp-page .rnp-matrix-table .rnp-sticky-product > b,
.rnp-page .rnp-matrix-table .rnp-sticky-product > small,
.rnp-page .rnp-matrix-table .rnp-sticky-product > small:not(.mono),
.rnp-page .rnp-matrix-table .rnp-sticky-product > small.mono,
.rnp-page .rnp-matrix-table .rnp-current-stock small,
.rnp-page .rnp-daily-table td,
.rnp-page .rnp-daily-table tfoot th { font-size: 12px; }

/* Digitization: compact controls with an on-demand card customizer. */
.digitization-finance-disclosure { border: 1px solid #e5d8b7; border-radius: 8px; background: #fffbf2; color: #725522; }
.digitization-finance-disclosure > summary { padding: 8px 12px; font-size: 12px; line-height: 1.35; cursor: pointer; }
.digitization-finance-disclosure > summary small { margin-left: 12px; font-size: 11px; color: #66758d; text-decoration: underline; }
.digitization-finance-disclosure.is-method-note { border-color: #dce4ee; background: #f8fafc; color: #65748b; }
.digitization-finance-details { padding: 0 12px 10px; color: #526078; font-size: 12px; line-height: 1.5; }
.digitization-finance-details ul { margin: 0; padding-left: 18px; }
.digitization-finance-details ul + ul { margin-top: 8px; }
.digitization-finance-details li + li { margin-top: 4px; }
.digitization-finance-disclosure > .finance-coverage-notice { margin: 0; padding: 0 12px 10px; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #526078; font-size: 12px; line-height: 1.5; }
.digitization-finance-disclosure > .finance-coverage-notice strong { display: none; }
.digitization-finance-disclosure > .finance-coverage-notice p { margin: 0 0 6px; }
.digitization-finance-disclosure > .finance-coverage-notice small { font-size: 11px; }
.digitization-finance-disclosure > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 8px; }
.app-shell .report-format-digitization { gap: 12px; }
.report-format-digitization > .page-header { display: flex; align-items: center; gap: 12px 24px; margin: 0 0 10px; padding: 0; min-height: 0; }
.report-format-digitization > .page-header > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 16px; }
.report-format-digitization > .page-header h1 { grid-column: 1; grid-row: 1 / 3; margin: 0; font-size: 28px; line-height: 1.1; }
.report-format-digitization > .page-header .eyebrow { grid-column: 2; margin: 0; font-size: 10px; }
.report-format-digitization > .page-header p:not(.eyebrow) { grid-column: 2; margin: 0; max-width: 480px; font-size: 12px; line-height: 1.35; }
.report-format-digitization > .page-header .page-actions { margin: 0 0 0 auto; flex-shrink: 0; }
.app-shell .report-format-digitization > .report-filter-panel { padding: 12px 16px; overflow: visible; }
.report-format-digitization .rnp-filters { display: flex !important; flex-wrap: wrap !important; align-items: end; gap: 10px 12px; padding: 0; }
.report-format-digitization .rnp-filters > .ops-field { flex: 0 1 150px; min-width: 0; margin: 0; }
.report-format-digitization input[type=date] { width: 100%; min-width: 0; }
.report-format-digitization .economics-quick-ranges { display: flex; flex-wrap: nowrap; align-items: center; align-self: end; gap: 4px; margin: 0; height: 36px; }
.report-format-digitization #digitization-filter-settings { margin: 0 0 0 auto; flex: 0 0 auto; }
.report-format-digitization .filter-data-status { align-self: end; display: inline-flex; align-items: center; min-height: 36px; margin: 0; font-size: 11px; }
.digitization-cards-control { position: relative; }
.digitization-cards-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.digitization-cards-trigger > svg { width: 16px; height: 16px; }
.digitization-cards-popover { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; box-sizing: border-box; width: min(520px, calc(100vw - 40px)); overflow: auto; overscroll-behavior: contain; border: 1px solid #c7d6ee; border-radius: 12px; background: #fff; box-shadow: 0 14px 40px #1d37602b; }
.digitization-cards-popover.opens-above { top: auto; bottom: calc(100% + 8px); }
.digitization-cards-popover:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.digitization-cards-popover .digitization-filter-customizer { margin: 0; padding: 14px; border: 0; background: #fff; }
.digitization-cards-popover .digitization-filter-customizer > header { padding-right: 30px; align-items: start; }
.digitization-cards-popover .digitization-filter-customizer > header b { font-size: 14px; }
.digitization-cards-popover .digitization-filter-customizer > header small { font-size: 11px; line-height: 1.4; }
.digitization-cards-popover .digitization-filter-metrics { max-height: none; overflow: visible; grid-template-columns: 1fr; }
.digitization-cards-popover .digitization-metric-option { min-width: 0; }
.digitization-cards-popover .digitization-filter-metrics .digitization-metric-option > label > em { font-size: 12px; line-height: 1.35; white-space: normal; }
.digitization-cards-popover .digitization-filter-metrics .digitization-metric-option > label > small { font-size: 10px; }
.digitization-cards-popover .digitization-filter-customizer > footer button,
.digitization-cards-popover .digitization-nonzero-toggle { font-size: 11px; }
.digitization-cards-popover label:has(input:focus-visible) { outline: 2px solid #2563eb; outline-offset: -2px; }
.digitization-cards-popover .digitization-metric-option label { min-width: 0; }
.digitization-cards-popover .digitization-filter-customizer > footer { position: sticky; bottom: -14px; background: #fff; margin: 8px -14px -14px; padding: 12px 14px; border-top: 1px solid #e5ebf4; z-index: 1; }
.digitization-cards-close { position: absolute; top: 7px; right: 7px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #526481; font-size: 24px; line-height: 1; cursor: pointer; }
.digitization-cards-close:hover { background: #edf3fb; }
@media (min-width: 1200px) {
  .report-format-digitization .rnp-filters { flex-wrap: nowrap !important; gap: 8px; }
  .report-format-digitization .rnp-filters > .ops-field { flex: 0 1 140px; }
}
@media (max-width: 700px) {
  .report-format-digitization > .page-header { flex-wrap: wrap; gap: 10px; }
  .report-format-digitization > .page-header > div:first-child { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .report-format-digitization > .page-header .eyebrow { display: none; }
  .report-format-digitization > .page-header h1 { font-size: 24px; }
  .report-format-digitization > .page-header .page-actions { margin-left: 0; }
  .report-format-digitization .rnp-filters > .ops-field { flex: 1 1 120px; }
  .report-format-digitization .filter-data-status { flex-basis: 100%; min-height: 20px; }
  .digitization-cards-popover { width: min(520px, calc(100vw - 56px)); }
}



/* Podsort: compact header, filters, options and result controls. */
.podsort-page .script-result-table tbody tr { height:auto; }
.podsort-page .script-result-table tbody td { height:auto; padding:5px 6px; font-size:13px; line-height:1.3; font-variant-numeric:tabular-nums; }
.podsort-page .script-result-table tbody td.calculator-number-cell { white-space:nowrap; }
.podsort-page .script-result-table tbody td.calculator-text-cell { white-space:normal; overflow-wrap:anywhere; }
.podsort-page .script-result-table thead th { padding:7px 6px; font-size:10px; line-height:1.25; white-space:normal; overflow-wrap:anywhere; }
.podsort-page .script-result-table .table-sort-trigger { width:100%; padding:0; align-items:center; gap:3px; font-size:inherit; white-space:normal; }
.podsort-page .script-result-table .table-sort-trigger > span { flex:1; min-width:0; white-space:pre-line; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.podsort-page .script-result-table .table-sort-trigger > svg { flex:0 0 10px; width:10px; }
.podsort-page .script-product-presentation { min-height:34px; gap:7px; padding:0; }
.podsort-page .script-product-presentation img, .podsort-page .script-product-presentation > span, .podsort-page .script-product-presentation > a { width:34px; height:34px; min-width:34px; }
.podsort-page .script-product-presentation b, .podsort-page .script-product-primary { font-size:12px; line-height:1.25; }
.podsort-page .script-product-presentation small { font-size:10px; line-height:1.2; }
.podsort-page .podsort-expand-button { gap:5px; padding:0; font-size:12px; }
.podsort-page .podsort-expand-button b { min-width:0; overflow-wrap:anywhere; white-space:normal; }
.podsort-page .podsort-expand-button small { flex:0 0 auto; font-size:10px; }
.podsort-page .podsort-cluster-name { font-size:12px; }
.app-shell .podsort-page > .page-header { display:flex; align-items:center; gap:12px 24px; margin:0 0 10px; min-height:0; padding:0; }
.podsort-page > .page-header > div:first-child { display:grid; grid-template-columns:auto auto; column-gap:16px; row-gap:2px; align-items:center; }
.podsort-page > .page-header h1 { grid-column:1; grid-row:1 / 3; margin:0; font-size:28px; line-height:1.1; }
.podsort-page > .page-header .eyebrow { grid-column:2; grid-row:1; margin:0; font-size:11px; }
.podsort-page > .page-header p:not(.eyebrow) { grid-column:2; margin:0; max-width:650px; font-size:12px; line-height:1.35; }
.app-shell .podsort-page > .ops-filter-panel { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 14px 0; overflow:visible; }
.app-shell .podsort-page .podsort-filters { display:flex !important; flex:1 1 auto; flex-wrap:wrap; align-items:start; gap:10px; padding:0; margin:0; }
.podsort-page .podsort-filters > .ops-field { flex:0 0 140px; width:140px; min-width:0; }
.podsort-page .podsort-filters > .ops-field:first-child { flex-basis:96px; width:96px; }
.podsort-page .podsort-filters > .ops-field:nth-child(4) { flex-basis:240px; width:240px; }
.podsort-page .podsort-filters input, .podsort-page .podsort-filters select { min-height:32px; height:32px; padding:5px 9px; }
.podsort-page .podsort-filters .search-select-control { min-height:32px; }
.podsort-page .podsort-filters > .cluster-selector-field { flex:0 1 430px; width:430px; }
.podsort-page .cluster-selector-control { display:flex; gap:6px; }
.podsort-page .cluster-selector-control select { width:220px; min-width:100px; flex:1 1 auto; }
.podsort-page .cluster-selector-control button { flex:0 0 auto; min-height:32px; padding:5px 8px; white-space:nowrap; }
.podsort-page .cluster-selector-chips { margin-top:3px; min-height:0; gap:3px; }
.podsort-page .cluster-selector-chips:has(em) { display:none; }
.podsort-page .cluster-selector-chips button { padding:2px 5px; font-size:10px; }
.podsort-page > .ops-filter-panel > .calc-status { margin-left:auto; white-space:nowrap; }
.podsort-page .podsort-secondary-controls { display:flex; flex:1 0 calc(100% + 28px); align-items:center; flex-wrap:wrap; gap:6px 12px; min-width:0; padding:8px 14px; margin:0 -14px; border-top:1px solid #e1e8f1; background:#f8fafc; border-radius:0 0 10px 10px; }
.app-shell .podsort-page .podsort-secondary-controls > .ops-filter-footer { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:10px; min-height:0; border:0; margin:0; padding:0; background:none; }
.podsort-page .podsort-filters > .ops-field:nth-child(4) input { padding-left:32px; }
.podsort-page .podsort-secondary-controls .ops-check { font-size:11px; white-space:nowrap; }
.podsort-page .podsort-secondary-controls .podsort-stale-option { border:0; border-radius:5px; margin:0; padding:4px 6px; }
.podsort-page .podsort-secondary-controls .podsort-stale-option label { font-size:11px; gap:5px; white-space:nowrap; }
.podsort-page .podsort-secondary-controls .podsort-stale-option small { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.podsort-page .podsort-secondary-controls .result-notices { display:flex; flex:1 1 auto; border:0; background:none; margin:0; padding:0; gap:6px 10px; font-size:11px; min-width:0; }
.podsort-page .podsort-secondary-controls .result-notices__dates { max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.podsort-page .podsort-secondary-controls .result-notices__detail { position:relative; }
.podsort-page .podsort-secondary-controls .result-notices__detail[open] { flex-basis:auto; }
.podsort-page .podsort-secondary-controls .result-notices__detail > summary { font-size:11px; white-space:nowrap; }
.podsort-page .podsort-secondary-controls .result-notices__body { position:absolute; top:100%; right:0; z-index:35; width:min(560px,80vw); max-height:360px; overflow:auto; padding:12px; margin:6px 0 0; background:#fff; border:1px solid #d4deec; border-radius:8px; box-shadow:0 6px 20px #172b4d24; white-space:normal; }
.podsort-page .podsort-secondary-controls .podsort-storage-disclosure { position:relative; border:0; background:none; margin-left:auto; }
.podsort-page .podsort-secondary-controls .podsort-storage-disclosure > summary { padding:4px 0; margin-left:14px; font-size:11px; white-space:nowrap; }
.podsort-page .podsort-secondary-controls .podsort-storage-disclosure > .storage-status-panel { position:absolute; right:0; top:100%; z-index:40; width:min(760px,85vw); max-height:65vh; overflow:auto; border:1px solid #d4deec; border-radius:8px; background:#fff; box-shadow:0 6px 20px #172b4d24; }
.podsort-page .podsort-result-controls { display:flex; flex:1 1 auto; min-width:0; }
.podsort-page .podsort-result-controls .calc-tabs { display:flex; flex:1 1 auto; align-items:center; flex-wrap:wrap; gap:8px 16px; border:0; padding:0; margin:0; min-height:0; }
.podsort-page .podsort-result-controls .calc-tabs > div:first-child { display:flex; flex-wrap:wrap; height:auto; }
.podsort-page .podsort-result-controls .calc-tabs button { min-height:32px; padding:6px 9px; font-size:12px; white-space:nowrap; }
.podsort-page .podsort-result-controls .calc-inline-params { display:flex; flex-wrap:wrap; margin-left:auto; gap:10px; }
.podsort-page .podsort-result-controls .calc-inline-params label { display:flex; align-items:center; gap:5px; font-size:11px; white-space:nowrap; }
.podsort-page .podsort-result-controls .calc-inline-params input { width:54px; min-width:0; height:30px; padding:4px; }
.podsort-page .podsort-result-controls .calc-tabs > span { font-size:10px; white-space:nowrap; }
.podsort-page .table-column-toolbar { display:flex; align-items:center; gap:10px; padding:9px 14px; }
.podsort-page .table-column-toolbar > .table-toolbar-spacer { display:none; }
.podsort-page .table-column-toolbar > .table-column-picker { flex:0 0 auto; }
.podsort-page .table-column-toolbar .button { min-height:32px; padding:6px 9px; font-size:12px; white-space:nowrap; }
.podsort-page .podsort-workspace > .podsort-result-controls { padding:9px 14px; }
@media(max-width:1600px) {
 .podsort-page .podsort-result-controls .calc-inline-params { margin-left:0; }
 .podsort-page .podsort-secondary-controls .result-notices { flex-basis:100%; order:1; }
}
@media(max-width:700px) {
 .podsort-page > .page-header { flex-wrap:wrap; }
 .podsort-page > .page-header > div:first-child { grid-template-columns:1fr; }
 .podsort-page > .page-header h1, .podsort-page > .page-header .eyebrow, .podsort-page > .page-header p:not(.eyebrow) { grid-column:1; grid-row:auto; }
 .podsort-page .podsort-filters > .ops-field:nth-child(4), .podsort-page .podsort-filters > .cluster-selector-field { flex:1 1 100%; width:100%; }
 .podsort-page .cluster-selector-control { flex-wrap:wrap; }
 .podsort-page .podsort-secondary-controls { flex-basis:calc(100% + 28px); }
 .app-shell .podsort-page .podsort-secondary-controls > .ops-filter-footer { flex:1 1 100%; }
 .podsort-page .podsort-secondary-controls .podsort-storage-disclosure { position:static; }
 .podsort-page .podsort-secondary-controls .podsort-storage-disclosure > .storage-status-panel { position:fixed; top:20vh; right:3vw; width:94vw; }
 .podsort-page .podsort-secondary-controls .result-notices__detail { position:static; }
 .podsort-page .podsort-secondary-controls .result-notices__body { position:fixed; top:25vh; right:3vw; width:94vw; max-height:60vh; }
 .podsort-page .table-column-toolbar { flex-wrap:wrap; }
 .podsort-page .podsort-result-controls { flex-basis:100%; }
}
