/* These styles belong to the three report workspaces. Master F&I is deliberately outside this scope. */
.report-workspace {
  --report-surface: #11141b;
  --report-soft: rgba(255,255,255,.035);
  --report-border: rgba(255,255,255,.09);
  --report-muted: #989eac;
  --report-good: #37c895;
  --report-blue: #8baeff;
  --report-warn: #eab75d;
  --report-low: #f28e9c;
  width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding-bottom: 24px;
  font-size: 14px; line-height: 1.5;
}
html[data-theme="light"] .report-workspace {
  --report-surface: #fff; --report-soft: #f6f8fb; --report-border: #dee4ed;
  --report-muted: #647084; --report-good: #147b58; --report-blue: #3b62a7; --report-warn: #916313; --report-low: #b93b55;
}
.report-workspace > * + * { margin-top: 18px; }
.report-workspace .reports-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.report-workspace .reports-page-head h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -.7px; color: var(--text); }
.report-workspace .reports-page-head p { margin: 5px 0 0; font-size: 13px; color: var(--report-muted); }
.report-workspace .reports-period { font-size: 13px; color: var(--report-muted); padding: 9px 13px; border: 1px solid var(--report-border); border-radius: 8px; background: var(--report-soft); }
.report-workspace .reports-panel { min-width: 0; border: 1px solid var(--report-border); border-radius: 14px; background: var(--report-surface); overflow: hidden; }
.report-workspace .reports-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--report-border); }
.report-workspace .reports-panel-head h3 { color: var(--text); font-size: 15px; font-weight: 700; margin: 0; }
.report-workspace .reports-caption { color: var(--report-muted); font-size: 12px; margin: 3px 0 0; }
.report-workspace .reports-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.report-workspace .reports-metric { min-width: 0; padding: 18px 20px; border: 1px solid var(--report-border); border-radius: 12px; background: var(--report-surface); }
.report-workspace .reports-metric-label { display: block; color: var(--report-muted); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.report-workspace .reports-metric > strong { display: block; color: var(--text); font-size: 28px; letter-spacing: -.65px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.report-workspace .reports-metric small { display: block; margin-top: 5px; font-size: 11px; color: var(--report-muted); }
.report-workspace .reports-metric-accent { border-top: 2px solid var(--primary); padding-top: 17px; }
.report-workspace .reports-table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.report-workspace .reports-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.report-workspace .reports-table th, .report-workspace .reports-table td { padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--report-border); }
.report-workspace .reports-table th:first-child { width: 25%; min-width: 190px; text-align: left; padding-left: 20px; }
.report-workspace .reports-table thead { background: var(--report-soft); }
.report-workspace .reports-table thead th { color: var(--report-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.report-workspace .reports-table tbody th { font-weight: 650; color: var(--text); }
.report-workspace .reports-table tbody td { color: var(--text); }
.report-workspace .reports-table tbody tr:hover { background: var(--report-soft); }
.report-workspace .reports-table strong { font-weight: 700; }
.report-workspace .reports-table .reports-sales-value strong { font-size: 17px; }
.report-workspace .reports-cell-detail { display: block; font-size: 10px; color: var(--report-muted); margin-top: 2px; white-space: nowrap; }
.report-workspace .reports-table tfoot { background: var(--report-soft); }
.report-workspace .reports-table tfoot th, .report-workspace .reports-table tfoot td { border-bottom: 0; border-top: 1px solid var(--report-border); font-weight: 700; }
.report-workspace .reports-table tfoot th { font-size: 12px; }
.report-workspace .reports-rate { font-weight: 650; }
.report-workspace .reports-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 11px; border-radius: 6px; background: var(--report-soft); color: var(--report-muted); white-space: nowrap; }
.report-workspace .reports-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.report-workspace .reports-status.client { color: var(--report-good); }
.report-workspace .reports-status.queue { color: var(--report-blue); }
.report-workspace .reports-footnote { margin: 0; padding: 12px 20px; font-size: 11px; color: var(--report-muted); line-height: 1.6; }
.report-workspace button { font: inherit; cursor: pointer; }
.report-workspace button:disabled { opacity: .65; cursor: wait; }
.report-workspace button:focus-visible, .report-workspace a:focus-visible, .report-workspace .reports-table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.report-workspace .reports-section-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 650; text-align: left; }
.report-workspace .reports-section-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--report-muted); stroke-width: 1.5; transition: transform .15s; }
.report-workspace .reports-section-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.report-workspace .reports-count { min-width: 27px; text-align: center; border-radius: 6px; padding: 3px 8px; background: var(--report-soft); border: 1px solid var(--report-border); font-size: 12px; font-weight: 650; }
.report-workspace .reports-history { max-height: 420px; overflow-y: auto; }
.report-workspace #historyList { padding: 0; margin: 0; list-style: none; }
.report-workspace #historyList .item { border: 0; border-radius: 0; border-bottom: 1px solid var(--report-border); background: transparent; padding: 14px 20px; gap: 16px; box-shadow: none; }
.report-workspace #historyList .item:last-child { border-bottom: 0; }
.report-workspace #historyList .name { font-size: 13px; line-height: 1.5; }
.report-workspace #historyList .meta { margin-top: 4px; font-size: 11px; color: var(--report-muted); line-height: 1.5; }
.report-workspace .reports-history-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-workspace .reports-history-controls button { padding: 5px 9px; font-size: 11px; color: var(--report-muted); border: 1px solid var(--report-border); border-radius: 6px; background: transparent; }
.report-workspace .reports-history-controls .reports-delete { color: var(--report-low); }
.report-workspace .reports-event-type { color: var(--report-muted); font-size: 11px; font-weight: 500; margin-left: 8px; }
.report-workspace .reports-sold-badge { margin-left: 8px; font-size: 10px; font-weight: 650; color: var(--report-good); }
.report-workspace .reports-empty { padding: 30px 20px; text-align: center; color: var(--report-muted); font-size: 13px; }
.report-workspace .reports-empty strong { font-size: 14px; color: var(--text); display: block; font-weight: 650; }
.report-workspace .reports-empty p { margin: 6px auto 0; max-width: 420px; font-size: 12px; }
.report-workspace .reports-filter-panel { padding: 20px; }
.report-workspace .reports-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.report-workspace .reports-presets button, .report-workspace .reports-secondary, .report-workspace .reports-sort button { color: var(--report-muted); background: transparent; border: 1px solid var(--report-border); border-radius: 7px; padding: 7px 11px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.report-workspace .reports-presets button:hover, .report-workspace .reports-secondary:hover { background: var(--report-soft); color: var(--text); }
.report-workspace .reports-presets button[aria-pressed="true"], .report-workspace .reports-sort button[aria-pressed="true"] { background: rgba(235,10,30,.09); border-color: rgba(235,10,30,.32); color: var(--primary2); }
html[data-theme="light"] .report-workspace .reports-presets button[aria-pressed="true"], html[data-theme="light"] .report-workspace .reports-sort button[aria-pressed="true"] { color: #b31527; }
.report-workspace .reports-date-bar { display: grid; grid-template-columns: minmax(0,230px) minmax(0,230px) auto; align-items: end; gap: 12px; }
.report-workspace .reports-date-bar label { min-width: 0; font-size: 12px; font-weight: 600; color: var(--report-muted); display: flex; flex-direction: column; gap: 6px; margin: 0; }
.report-workspace .reports-date-bar input, .report-workspace #archiveMonthFilter { width: 100%; min-width: 0; height: 40px; padding: 8px 11px; font-size: 13px; border-radius: 7px; background: var(--report-soft)!important; border: 1px solid var(--report-border)!important; color: var(--text)!important; color-scheme: dark; box-shadow: none; }
html[data-theme="light"] .report-workspace .reports-date-bar input, html[data-theme="light"] .report-workspace #archiveMonthFilter { background: #fff!important; border-color: #cbd5e1!important; color-scheme: light; }
.report-workspace .reports-primary { height: 40px; width: fit-content; border: 1px solid var(--primary); background: var(--primary); padding: 8px 18px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #fff; box-shadow: none; }
.report-workspace .reports-primary:hover { filter: brightness(1.08); }
.report-workspace .reports-load-status { color: var(--report-muted); margin: 12px 0 0; font-size: 12px; }
.report-workspace .reports-status-error { color: var(--report-low); }
.report-workspace .reports-support-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 18px; }
.report-workspace #archiveMonthFilter { width: auto; max-width: 190px; height: 34px; font-size: 12px; }
.report-workspace .reports-archives { max-height: 420px; overflow-y: auto; }
.report-workspace .reports-archive { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--report-border); }
.report-workspace .reports-archive:last-child { border-bottom: 0; }
.report-workspace .reports-archive strong { font-size: 13px; font-weight: 650; }
.report-workspace .reports-archive small { display: block; color: var(--report-muted); font-size: 11px; margin-top: 3px; }
.report-workspace .reports-archive a { text-decoration: none; flex-shrink: 0; }
.report-workspace .reports-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.report-workspace .reports-sort > span { font-size: 11px; color: var(--report-muted); margin-right: 4px; }
.report-workspace .reports-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; border-radius: 6px; background: var(--report-soft); border: 1px solid var(--report-border); color: var(--report-muted); font-size: 11px; font-weight: 600; margin-right: 9px; }
.report-workspace #rangeResults > * + * { margin-top: 16px; }
.report-workspace .reports-result-period { color: var(--report-muted); font-size: 12px; margin: 0 0 12px; }
.report-workspace .reports-fi-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.report-workspace .reports-fi-metrics .reports-metric > strong { font-size: 26px; }
.report-workspace .reports-method-note { font-size: 12px; color: var(--report-muted); padding: 13px 16px; border: 1px solid var(--report-border); border-radius: 9px; background: var(--report-soft); margin: 16px 0 20px; }
.report-workspace .reports-unboxed-head { padding: 0 0 12px; border-bottom: 0; }
.report-workspace .reports-fi-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
.report-workspace .reports-fi-person { padding: 20px; }
.report-workspace .reports-fi-person-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-bottom: 18px; }
.report-workspace .reports-person-name { display: flex; min-width: 0; align-items: start; gap: 2px; }
.report-workspace .reports-person-name h3 { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.report-workspace .reports-person-name p { margin: 4px 0 0; font-size: 11px; color: var(--report-muted); }
.report-workspace .reports-person-ppd { text-align: right; flex-shrink: 0; }
.report-workspace .reports-person-ppd strong { display: block; font-size: 29px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.7px; }
.report-workspace .reports-person-ppd > span { display: block; font-size: 10px; margin-top: 4px; color: var(--report-muted); }
.report-workspace .reports-person-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--report-soft); padding: 12px 14px; gap: 12px; margin: 0 0 19px; border-radius: 9px; }
.report-workspace .reports-person-metrics dt { color: var(--report-muted); font-size: 10px; margin-bottom: 5px; }
.report-workspace .reports-person-metrics dd { font-size: 15px; line-height: 1.25; font-weight: 650; color: var(--text); margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-workspace .reports-product-head { font-size: 12px; font-weight: 650; margin-bottom: 13px; }
.report-workspace .reports-product-list { display: grid; gap: 10px; }
.report-workspace .reports-product-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(50px,1.2fr) 42px; gap: 12px; align-items: center; }
.report-workspace .reports-product-name { font-size: 12px; color: var(--report-muted); overflow-wrap: anywhere; line-height: 1.4; }
.report-workspace .reports-product-track { display: block; height: 7px; border-radius: 8px; background: var(--report-soft); overflow: hidden; }
.report-workspace .reports-product-track > span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.report-workspace .reports-product-row > strong { font-size: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.report-workspace .good { color: var(--report-good); } .report-workspace .blue { color: var(--report-blue); } .report-workspace .warn { color: var(--report-warn); } .report-workspace .low { color: var(--report-low); }
.report-workspace .reports-seller-split { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 15px; margin-top: 20px; border-top: 1px solid var(--report-border); font-size: 11px; color: var(--report-muted); }
.report-workspace .reports-seller-split b { color: var(--text); }
.report-workspace .reports-score-plans { padding: 18px 20px; }
.report-workspace .reports-score-plans h4 { margin: 0 0 12px; font-size: 12px; font-weight: 650; }
.report-workspace .reports-plan-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--report-border); font-size: 12px; }
.report-workspace .reports-plan-row:last-child { border-bottom: 0; }
.report-workspace .reports-plan-row small { color: var(--report-muted); font-size: 11px; font-weight: 500; margin-left: 5px; }
.report-workspace .reports-score-products { border-top: 1px solid var(--report-border); }
.report-workspace .reports-score-products .reports-table { min-width: 530px; font-size: 12px; }
.report-workspace .reports-score-products .reports-table th, .report-workspace .reports-score-products .reports-table td { padding: 11px 10px; }
.report-workspace .reports-score-products .reports-table th:first-child { min-width: 130px; padding-left: 20px; }
.report-workspace .reports-score-products .reports-table thead th { white-space: normal; }
@media (max-width: 1250px) { .report-workspace .reports-person-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .report-workspace .reports-fi-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1050px) { .report-workspace .reports-support-grid { grid-template-columns: minmax(0,1fr); } .report-workspace .reports-fi-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) {
  .report-workspace .reports-page-head { align-items: start; flex-direction: column; gap: 10px; }
  .report-workspace .reports-page-head h2 { font-size: 22px; }
  .report-workspace .reports-period { font-size: 12px; padding: 6px 10px; }
  .report-workspace .reports-metrics, .report-workspace .reports-fi-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .report-workspace .reports-metric { padding: 13px 14px; }
  .report-workspace .reports-metric-accent { padding-top: 12px; }
  .report-workspace .reports-metric > strong, .report-workspace .reports-fi-metrics .reports-metric > strong { font-size: 24px; }
  .report-workspace .reports-filter-panel { padding: 16px; }
  .report-workspace .reports-date-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-workspace .reports-primary { grid-column: 1 / -1; width: 100%; }
  .report-workspace .reports-panel-head { padding: 15px 16px; }
  .report-workspace #historyList .item { padding: 14px 16px; flex-wrap: wrap; }
  .report-workspace .reports-fi-person { padding: 16px; }
  .report-workspace .reports-product-row { grid-template-columns: minmax(85px,1fr) minmax(40px,1fr) 38px; gap: 8px; }
  .report-workspace .reports-fi-person-head { gap: 8px; }
  .report-workspace .reports-archive { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .report-workspace *, .report-workspace *::before { transition: none!important; } }
