/* Phase 6 report surfaces, using the application's existing palette. */
.report-page { min-width:0; }
.migration-preview-banner { display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 18px;margin:0 0 16px;border:1px solid #b6913c;border-radius:12px;background:var(--surface);font-size:13px; }
.migration-preview-banner nav { display:flex;flex-wrap:wrap;gap:8px;margin-left:auto; }
.migration-preview-banner a { color:var(--accent); }
.import-review-note { padding:12px 16px;border-left:4px solid #b6913c;background:var(--surface-alt);font-size:13px;margin:14px 0; }
.report-page h3 { margin:24px 0 10px; }
.report-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; border:0; padding:12px 0 20px; margin:0; }
.report-filters label,.report-edit-picker label { display:grid; gap:6px; min-width:140px; flex:1 1 140px; font-size:12px; }
.report-filters .input,.report-filters .select { width:100%; }
.report-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:16px 0 22px; }
.report-metrics article { border:1px solid var(--border); border-radius:12px; padding:18px; background:var(--surface); display:grid; gap:9px; }
.report-metrics span,.report-metrics small { font-size:12px; color:var(--text-secondary); }
.report-metrics strong { font-size:23px; line-height:1.25; color:var(--text-primary); }
.report-grid { min-width:0; margin-bottom:18px; }
.report-grid .table-scroll { max-width:100%; border:1px solid var(--border); border-radius:10px; }
.report-table { width:100%; white-space:nowrap; }
.report-table caption { text-align:left; padding:12px; color:var(--text-secondary); font-size:12px; }
.report-page table.report-table td { max-width:350px; white-space:normal; overflow-wrap:anywhere; min-width:90px; }
.report-table th input { min-width:135px; font-weight:400; }
/* Codes and dates stay on one line; long text gets enough width so rows stay short. */
.report-page table.report-table td:is([data-col="number"],[data-col="dwo"],[data-col="date"],[data-col="tank-equipment"],[data-col="tank"]) { white-space:nowrap; overflow-wrap:normal; max-width:none; }
.report-page table.report-table td[data-col="parameters"] { min-width:300px; max-width:420px; }
.report-page table.report-table td:is([data-col="origin"],[data-col="lots"],[data-col="lot"]) { min-width:140px; overflow-wrap:break-word; }
@media print { .report-page table.report-table td[data-col] { min-width:0; white-space:normal; } }
.report-grid .toolbar { padding-top:12px; }
.report-edit-picker { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:18px 0; }
.report-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px 0; }
.report-chart { min-width:0; box-shadow:none; }
.report-chart h3 { margin-top:0; }
.report-bar-row { margin:15px 0; }
.report-bar-row>b { font-size:12px; display:block; margin-bottom:6px; overflow-wrap:anywhere; }
.report-bar-row>div { display:grid; grid-template-columns:minmax(0,1fr) 85px; align-items:center; gap:8px; margin:4px 0; }
.report-bar-row>div>span:last-child { font-size:12px; font-variant-numeric:tabular-nums; }
.report-bar { display:block; height:13px; min-width:0; border-radius:3px; background:#2e8b57; }
.report-bar-secondary { background:#5287b8; }
.report-export-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; margin:24px 0; }
.report-export-grid h3 { margin-top:0; }
.report-export-grid > article { display:flex;flex-direction:column;align-items:flex-start;gap:8px; }
.report-export-grid > article h3 { margin:0; }
.report-export-grid > article p { margin:0 0 12px; }
.report-export-grid > article .btn { margin-top:auto; }
.report-filters { min-width:0; border-bottom:1px solid var(--border);margin-bottom:18px; }
.report-filters label { color:var(--text-secondary);font-weight:600; }
.report-filters label input,.report-filters label select { font-weight:400; }
.report-page > .card-head { padding-bottom:14px;border-bottom:1px solid var(--border); }
.report-page > .card-head h2 { font-size:20px;letter-spacing:-.02em; }
.report-export-grid p,.report-period { color:var(--text-secondary); font-size:13px; line-height:1.6; }
.report-dashboard { margin:20px 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px){
  .migration-preview-banner { padding:12px;gap:8px; }
  .migration-preview-banner nav { margin-left:0;width:100%; }
  .migration-preview-banner nav a { flex:1 1 auto; }
  .report-export-grid { grid-template-columns:minmax(0,1fr); }
  .report-page .card-head { flex-direction:column; align-items:stretch; gap:12px; }
  .report-filters label { min-width:0; flex-basis:calc(50% - 12px); }
  .report-filters button { width:100%; }
  .report-chart-grid { grid-template-columns:1fr; }
  .report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-metrics article { padding:12px; }
  .report-metrics strong { font-size:19px; overflow-wrap:anywhere; }
}
@media print {
  @page { size:A4 landscape; margin:10mm; }
  .no-print,.app-header,.tabs,.tab-bar,.report-filters,.report-page>.card-head>.toolbar { display:none!important; }
  .app-shell { max-width:none!important; padding:0!important; }
  .report-page { border:0!important; box-shadow:none!important; padding:0!important; }
  .report-analysis { background:#fff!important; color:#111!important; }
  .report-analysis h3 { break-after:avoid; color:#111; }
  .report-chart-grid { break-inside:avoid; }
  .report-chart,.report-metrics article { break-inside:avoid; background:#fff!important; }
  .report-bars { print-color-adjust:exact; }
  .report-grid .table-scroll { overflow:visible!important; border:0; }
  .report-table { min-width:0!important; width:100%!important; font-size:8px!important; white-space:normal; }
  .report-analysis table.report-table { table-layout:fixed; }
  .report-table th,.report-table td { padding:5px!important; min-width:0!important; max-width:none; white-space:normal!important; overflow-wrap:anywhere; }
  .report-table thead { display:table-header-group; }
  .report-table tr { break-inside:avoid; }
  .report-metrics strong { font-size:17px; }
}
