/* Reports consume the approved local tokens. Every rule is report-scoped except the active print composition. */
.reports-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px;}
.reports-kpis .metric-card{min-height:132px;}
.reports-kpis .metric-card--warning{border-color:#d99a21;}
.reports-kpis .metric-card--warning .metric-card__detail{color:var(--amber);}
.reports-catalog .table-card__head{border-bottom:0;}
.reports-catalog table{width:calc(100% - 36px);margin:0 18px 18px;}
.reports-catalog th,.reports-catalog td{padding:12px 10px;}
.reports-catalog td{padding:0 10px;height:44px;}
.reports-catalog tbody tr:nth-child(even){background:var(--surface-subtle);}
.reports-catalog .text-button{min-height:44px;white-space:normal;text-align:left;}
.reports-activity,.reports-preparation,.reports-charts{margin-top:16px;}
.reports-preparation{display:grid;gap:14px;}
.reports-preparation p,.reports-activity p{margin:0;}
#report-form{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,1fr) minmax(180px,1fr) auto auto;align-items:end;gap:12px;}
#report-error{padding:12px 14px;border-left:4px solid var(--danger);background:var(--danger-bg);color:var(--danger);border-radius:4px;}
.reports-scope-note{font:400 12px/18px Inter,sans-serif;color:var(--muted);overflow-wrap:anywhere;}
.reports-activity ol{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:10px;}
.reports-activity li{display:grid;grid-template-columns:30px 1fr auto;align-items:start;gap:12px;position:relative;}
.reports-activity__badge{display:grid;place-items:center;min-height:30px;border-radius:50%;background:var(--navy-800);color:#fff;font:600 10px/16px Inter,sans-serif;}
.reports-activity li>span:last-child,.reports-activity li p{color:var(--muted);font:400 12px/18px Inter,sans-serif;}
.reports-source-chart{height:292px;min-height:292px;padding:14px 16px;gap:0;}
.reports-source-chart h3{font:600 18px/26px Inter,sans-serif;}
.reports-source-chart .chart-sub{font:400 14px/20px Inter,sans-serif;margin:0 0 6px;}
.reports-source-plot{overflow:auto;min-height:160px;}
.reports-source-plot svg{display:block;max-width:none;margin:auto;}
.reports-source-plot text{font:400 12px Inter,sans-serif;fill:var(--muted);}
.reports-source-chart .chart-legend{margin-top:auto;gap:30px;}
.reports-dashboard-link{display:inline-flex;align-items:center;min-height:44px;color:var(--navy-950);font-weight:600;}
.modal.modal--report{width:min(1120px,calc(100vw - 32px));}
.report-dialog-head h2{font:600 20px/28px Inter,sans-serif;}
#report-preview-body{background:#edf1f7;padding:24px;display:block;}
.report-dialog-actions{background:#fff;}
#report-sheet{background:#fff;box-shadow:0 4px 20px #14244b12;border:1px solid var(--line);border-radius:8px;overflow:hidden;}
.report-brand{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--navy-950);color:#fff;padding:24px 28px;}
.report-brand img{width:188px;height:auto;max-height:38px;object-fit:contain;flex:none;}
.report-brand div{display:grid;gap:4px;text-align:right;font:400 12px/18px Inter,sans-serif;}
.report-brand strong{font-weight:600;}
.report-sheet-content{padding:28px;}
.report-sheet-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;}
.report-sheet-heading h2{font:700 28px/36px Inter,sans-serif;}
.report-sheet-heading p{margin:0 0 6px;}
.report-scope{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px;margin:24px 0;padding:16px 0;border-block:1px solid var(--line);}
.report-scope dt{font:500 11px/16px Inter,sans-serif;text-transform:uppercase;color:var(--muted);}
.report-scope dd{margin:4px 0 0;font-weight:600;}
.report-preview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px;}
.report-preview-summary>div{background:var(--surface-accent);border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:8px;}
.report-preview-summary span{font-size:12px;line-height:18px;color:var(--muted);}
.report-preview-summary strong{font:600 24px/30px Inter,sans-serif;}
.report-preview-chart{border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:24px;break-inside:avoid;}
.report-preview-chart h3{margin:0 0 16px;font:600 16px/22px Inter,sans-serif;}
.report-rank{margin-top:12px;}
.report-rank>div:first-child{display:flex;justify-content:space-between;gap:16px;margin-bottom:6px;}
.report-table-scroll{max-width:100%;overflow-x:auto;}
.report-data-table{min-width:640px;}
.report-data-table caption{text-align:left;font-weight:600;padding:0 0 12px;}
.report-data-table th,.report-data-table td{padding:10px 12px;}
.report-data-table th{white-space:normal;}
.report-data-table tbody tr:nth-child(even){background:var(--surface-subtle);}
.report-data-table tr{break-inside:avoid;}
.report-method{margin:20px 0 0;color:var(--muted);font:400 12px/18px Inter,sans-serif;}
.report-footer{margin-top:24px;border-top:2px solid var(--red-600);padding-top:14px;display:grid;gap:6px;color:var(--muted);font:400 11px/16px Inter,sans-serif;}
.report-footer strong{color:var(--navy-950);}
@media(max-width:1440px){#report-form{grid-template-columns:1.5fr 1fr 1fr;}#report-form .button{width:100%;}}
@media(max-width:860px){.reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}#report-form{grid-template-columns:repeat(2,minmax(0,1fr));}.report-preview-summary{grid-template-columns:repeat(2,minmax(0,1fr));}.report-brand{padding:20px;}.report-sheet-content{padding:20px;}}
@media(max-width:720px){.reports-catalog table{width:calc(100% - 28px);margin-inline:14px;}.reports-catalog .table-card__head{align-items:start;flex-direction:column;}.report-sheet-heading{flex-direction:column;}.report-scope{grid-template-columns:1fr;gap:12px;margin:18px 0;}.report-brand{flex-direction:column;align-items:start;gap:12px;}.report-brand div{text-align:left;}.report-dialog-actions .button{width:100%;white-space:normal;}.report-dialog-actions{justify-content:stretch;}#report-preview-body{padding:12px;}.report-sheet-content{padding:16px;}.report-sheet-heading h2{font-size:24px;line-height:32px;}.modal.modal--report{width:calc(100vw - 32px);max-height:calc(100dvh - 32px);}.modal.modal--report>div{max-height:calc(100dvh - 32px);}.report-dialog-head{padding:10px 14px;}.report-dialog-head h2{font-size:18px;line-height:24px;}}
@media(max-width:420px){.reports-kpis,#report-form{grid-template-columns:1fr;}.report-preview-summary{gap:8px;}.report-preview-summary>div{padding:10px;}.report-preview-summary strong{font-size:22px;}}
@page{size:A4 portrait;margin:14mm;}
@media(max-width:720px){.reports-catalog td{height:auto;padding:6px 0;}}
@media print{
  body[data-print-report]{background:#fff!important;overflow:visible!important;}
  body[data-print-report]>:not(#report-dialog){display:none!important;}
  body[data-print-report] #report-dialog{position:static!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
  body[data-print-report] #report-dialog::backdrop{display:none!important;}
  body[data-print-report] #report-dialog>div{display:block!important;max-height:none!important;}
  body[data-print-report] .report-dialog-head,body[data-print-report] .report-dialog-actions{display:none!important;}
  body[data-print-report] #report-preview-body{padding:0!important;display:block!important;max-height:none!important;height:auto!important;overflow:visible!important;background:#fff!important;}
  body[data-print-report] #report-sheet{border:0;box-shadow:none;overflow:visible;border-radius:0;font-size:11px;line-height:16px;print-color-adjust:exact;-webkit-print-color-adjust:exact;}
  body[data-print-report] .report-brand{padding:18px;break-inside:avoid;}
  body[data-print-report] .report-sheet-content{padding:18px 0 0;}
  body[data-print-report] .report-sheet-heading{flex-direction:row;break-inside:avoid;}
  body[data-print-report] .report-sheet-heading h2{font-size:22px;line-height:28px;}
  body[data-print-report] .report-scope{grid-template-columns:1.2fr 1fr 1fr;margin:16px 0;padding:12px 0;}
  body[data-print-report] .report-preview-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px;break-inside:avoid;}
  body[data-print-report] .report-preview-summary strong{font-size:20px;line-height:26px;}
  body[data-print-report] .report-preview-chart{margin-bottom:16px;}
  body[data-print-report] .report-rank{margin-top:8px;}
  body[data-print-report] .report-table-scroll{overflow:visible!important;}
  body[data-print-report] .report-data-table{min-width:0;table-layout:fixed;}
  body[data-print-report] .report-data-table th{font-size:8px;line-height:12px;letter-spacing:0;}
  body[data-print-report] .report-data-table td{font-size:10px;line-height:14px;overflow-wrap:anywhere;}
  body[data-print-report] .report-data-table th,body[data-print-report] .report-data-table td{padding:7px 5px;}
  body[data-print-report] .report-method,body[data-print-report] .report-footer{font-size:10px;line-height:15px;}
}
