.detailed-report{max-width:1500px;margin:0 auto;color:#18372a;font-size:14px}
.detailed-report-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.detailed-report-head h1{font-size:25px;margin:3px 0 5px}.detailed-report-head p{margin:0;color:#536b5b}
.detailed-report-actions{display:flex;gap:9px;flex-wrap:wrap}
.detailed-report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;margin-bottom:15px;background:#fff;border:1px solid #d8e4da;border-radius:12px}
.detailed-report-filters label{display:grid;gap:5px;min-width:145px;color:#345044;font-size:13px;font-weight:700}
.detailed-report-filters input,.detailed-report-filters select{width:100%;height:39px;padding:6px 9px;border:1px solid #cbd9ce;border-radius:7px;background:#fff;color:#193f2b;font-size:14px}
.detailed-report-paper{background:#fff;border:1px solid #d8e4da;border-radius:12px;padding:20px}
.detailed-report-station{display:flex;justify-content:space-between;gap:15px;border-bottom:2px solid #286549;padding-bottom:12px;font-size:16px}
.detailed-report-station strong{font-size:20px}.detailed-report-station span{font-weight:700}
.detailed-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 22px}
.detailed-report-summary>div{padding:11px;border:1px solid #dbe8df;border-radius:8px;background:#f7fbf8}
.detailed-report-summary small{display:block;color:#51675a;font-size:12px}.detailed-report-summary b{display:block;margin-top:4px;font-size:17px;overflow-wrap:anywhere}
.detailed-report-section{margin:22px 0;break-inside:auto}.detailed-report-section h2{margin:0 0 7px;padding:8px 10px;background:#eaf4ed;border-left:4px solid #23754c;font-size:16px}
.detailed-report-section .table-wrap{overflow-x:auto}
.detailed-report-section table{width:100%;border-collapse:collapse;font-size:13px}
.detailed-report-section.wide table{min-width:1250px}
.detailed-report-section th,.detailed-report-section td{border:1px solid #cfddd3;padding:8px 9px;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.detailed-report-section th{background:#f2f7f3;font-weight:800}
.detailed-report-section tbody tr:nth-child(even){background:#fbfdfb}
.detailed-report-section tfoot th{background:#eaf4ed;font-weight:800}
.detailed-report-print-header,.detailed-report-print-title,.detailed-report-print-summary{display:none}
@media(max-width:900px){.detailed-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.detailed-report-paper{padding:12px}.detailed-report-section table{min-width:760px}}
@media(max-width:600px){.detailed-report-head{display:block}.detailed-report-actions{margin-top:12px}.detailed-report-summary{grid-template-columns:1fr 1fr}.detailed-report-filters label{min-width:calc(50% - 5px);flex:1}.detailed-report-station{display:block}.detailed-report-station span{display:block;margin-top:5px}}
@media print{
  @page{size:A4 portrait;margin:9mm 7mm 13mm;@bottom-center{content:'Page ' counter(page);font:9pt Arial,sans-serif}}
  body,.app-shell,.main-area,.page-content{background:#fff!important}
  .sidebar,.topbar,.workspace-panel,.toast,.detailed-report-head,.detailed-report-filters{display:none!important}
  .main-area{margin:0!important;width:100%!important}.page-content{padding:0!important;max-width:none!important}
  .detailed-report{max-width:none;color:#111;font:8.5pt Arial,sans-serif}
  .detailed-report-paper{padding:0;border:0;border-radius:0}
  .detailed-report-station,.detailed-report-summary{display:none!important}
  .detailed-report-print-header{display:flex;justify-content:center;align-items:center;position:relative;min-height:24mm;margin-bottom:3mm;text-align:center}
  .detailed-report-print-header img{position:absolute;left:0;top:2mm;max-width:27mm;max-height:18mm;object-fit:contain}
  .detailed-report-print-header strong{display:block;font-size:15pt;text-transform:uppercase}
  .detailed-report-print-header span{display:block;font-size:8pt;line-height:1.25}
  .detailed-report-print-title{display:flex;justify-content:space-between;align-items:center;margin:2mm 0 3mm;padding:1.5mm 2mm;border:1px solid #222}
  .detailed-report-print-title strong{font-size:12pt}
  .detailed-report-print-title span{font-size:9pt;font-weight:700}
  .detailed-report-print-summary{display:table;width:100%;border-collapse:collapse;margin:0 0 4mm;font-size:8pt}
  .detailed-report-print-summary th,.detailed-report-print-summary td{border:1px solid #333;padding:1mm 1.5mm;text-align:left}
  .detailed-report-print-summary th{background:#dfe7ef!important;font-weight:700}
  .detailed-report-print-summary td{font-weight:700;text-align:right}
  .detailed-report-section{margin:3.5mm 0;break-inside:auto}
  .detailed-report-section.empty{display:none!important}
  .detailed-report-section h2{font-size:10.5pt;text-align:center;margin:0 0 1.5mm;padding:0;background:transparent!important;border:0;break-after:avoid}
  .detailed-report-section .table-wrap{overflow:visible}
  .detailed-report-section table,.detailed-report-section.wide table{width:100%;min-width:0!important;border-collapse:collapse;font-size:7.5pt}
  .detailed-report-section th,.detailed-report-section td{padding:1mm 1.2mm;border:1px solid #333;overflow-wrap:anywhere;line-height:1.15}
  .detailed-report-section thead th,.detailed-report-section tfoot th{background:#dfe7ef!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .detailed-report-section thead{display:table-header-group}
  .detailed-report-section tr{break-inside:avoid}
  .detailed-report-section.is-fuel [data-col='Gross Qty']{display:none}
  .detailed-report.scope-day .detailed-report-section.is-fuel [data-col='Shift'],.detailed-report.scope-shift .detailed-report-section.is-fuel [data-col='Shift']{display:none}
}
