.reports-dropdown { position: relative; }
.reports-dropdown summary { cursor:pointer; padding:4px 8px; border-radius:3px; font-weight:600; white-space:nowrap; }
.reports-dropdown[open] summary { background:#15395e; }
.reports-dropdown > div { position:absolute; top:100%; left:0; z-index:50; width:340px; max-width:90vw; padding:4px; background:#091321; border:1px solid #345476; border-radius:3px; white-space:normal; }
.commands .reports-dropdown button { display:block; text-align:left; width:100%; white-space:normal; }
.reports-dropdown p { font-size:10px; line-height:1.4; padding:2px 3px; white-space:normal; color:#a6b9ce; }
#measurementReportDialog { width:98vw; max-width:98vw; height:94vh; max-height:94vh; padding:0; border:1px solid #345476; border-radius:3px; background:#091321; color:#e5edf7; }
#measurementReportDialog::backdrop { background:#000a; }
.report-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:7px; border-bottom:1px solid #345476; }
.report-toolbar strong { margin-right:auto; }
#measurementReportBody { overflow:auto; height:calc(100% - 48px); padding:8px; }
.measurement-report { font:11px "Segoe UI",Arial,sans-serif; }
.measurement-report h1 { font-size:16px; margin:4px 0 8px; }
.measurement-report h2 { font-size:13px; margin:18px 0 5px; }
.measurement-report p { margin:5px 0 8px; line-height:1.4; }
.measurement-report table { border-collapse:collapse; font-size:10px; width:max-content; }
.measurement-report th,.measurement-report td { border:1px solid #345476; padding:2px 3px; text-align:right; white-space:nowrap; }
.measurement-report th { background:#10233a; color:#e5edf7; }
.measurement-report td:first-child,.measurement-report td:last-child { text-align:left; }
.measurement-report tbody tr:nth-child(even) { background:#0d1b2d; }
.report-table-wrap { overflow-x:auto; }
.report-note { color:#a6b9ce; }
.report-warning { border-left:3px solid #e9ad48; padding:5px 8px; color:#ffcf82; background:#251d13; }
.measurement-report a { color:#8fc8ff; }
@media (max-width:980px) { .commands { overflow:visible; } }
@media (max-width:650px) { .commands .reports-dropdown button { display:block; } }
@media print {
  @page { size:A3 landscape; margin:10mm; }
  body:has(#measurementReportDialog[open]) { height:auto; overflow:visible; background:white; }
  body:has(#measurementReportDialog[open]) > :not(#measurementReportDialog) { display:none!important; }
  #measurementReportDialog[open] { position:static; width:auto; max-width:none; height:auto; max-height:none; overflow:visible; border:0; color:black; background:white; }
  .report-toolbar { display:none; }
  #measurementReportBody,.report-table-wrap { height:auto; overflow:visible; padding:0; }
  .measurement-report { color:black; }
  .measurement-report th { background:#ddd; color:black; }
  .measurement-report tbody tr:nth-child(even) { background:#f4f4f4; }
  .measurement-report th,.measurement-report td { border-color:#777; }
  .measurement-report thead { display:table-header-group; }
  .measurement-report tr { break-inside:avoid; }
  .report-note { color:#333; }
  .report-warning { color:#111; background:#fff; border-color:#555; }
}
