#reportSettings .card{padding:8px;margin:8px 0}
#reportSettings .toolbar{gap:6px}
#reportSettings h2,#reportSettings h3,#reportSettings p{margin:0 0 6px}
#reportSettings h3{font-size:1rem}
#reportSettings label{margin:0;gap:3px;font-size:.9rem}
#reportSettings input:not([type=checkbox]),#reportSettings select{padding:4px 6px;min-height:30px}
#reportSettings button{padding:4px 8px;min-height:30px}
#reportSettings button:disabled{opacity:.5;cursor:not-allowed}
#reportSettings .report-tabs{margin:8px 0}
#reportEditor>label{margin-bottom:8px}
.report-settings-controls{display:grid;grid-template-columns:1fr .75fr 1.2fr 1.2fr;gap:6px;margin-bottom:8px}
.report-settings-field{display:grid;gap:3px;min-width:0;font-size:.9rem;font-weight:600}
#reportPopulationToggle{display:flex;justify-content:space-between;align-items:center;gap:6px}
.report-matrix-tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:4px 0}
.report-matrix-scroll{height:300px;max-width:100%;overflow:scroll;position:relative;isolation:isolate;scrollbar-gutter:stable}
#reportSettings .report-matrix{width:max(100%,var(--report-matrix-width));border-collapse:separate;border-spacing:0;table-layout:fixed}
#reportSettings .report-matrix th,#reportSettings .report-matrix td{padding:0!important;height:28px;text-align:center;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--report-border)}
#reportSettings{--report-surface:#fff;--report-header:#f2f5f7;--report-border:#c9d6de;--report-caption:#5f7481}
html[data-content-theme=dark] #reportSettings{--report-surface:#1e293b;--report-header:#0f172a;--report-border:#475569;--report-caption:#cbd5e1}
#reportSettings .report-matrix th{position:sticky;top:0;z-index:3;background:var(--report-header);height:78px}
#reportSettings .report-matrix .report-matrix-device{width:210px;position:sticky;left:0;z-index:2;text-align:left;background:var(--report-surface)}
#reportSettings .report-matrix th.report-matrix-device{z-index:4;background:var(--report-header)}
.report-matrix-device label{display:flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap}
.report-matrix-device label>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.report-matrix-device input,.report-matrix-device small{flex-shrink:0}
.report-matrix-device small{font-size:.8rem;color:var(--report-caption);font-weight:400}
.report-matrix-parameter{display:grid;justify-items:center;gap:0}
.report-matrix-parameter label{display:grid;justify-items:center;gap:0}
.report-matrix-parameter small{color:var(--report-caption)}
.report-matrix-order{display:flex;justify-content:center;gap:2px}
#reportSettings .report-matrix-order button{padding:0;min-width:22px;min-height:20px;background:transparent;border:0;color:inherit}
#reportSettings input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#0ea5e9}
.report-matrix-footer{margin-top:4px}.report-selection-help{font-size:.85rem}
.report-column-preview{display:flex;overflow-x:auto;max-width:100%;margin:4px 0;min-height:42px}
.report-column-preview>div{display:grid;flex:0 0 auto;min-width:120px;border-right:1px solid var(--report-border);text-align:center}
.report-column-preview small{color:var(--report-caption)}
#reportSettings .report-configured th,#reportSettings .report-configured td{padding:3px 6px}
.report-template-actions{display:flex;gap:4px;justify-content:flex-end}
#reportSettings .report-template-actions button{display:inline-flex;align-items:center;justify-content:center;width:32px;padding:4px}
.report-settings-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:850px){.report-settings-controls{grid-template-columns:1fr 1fr}.report-matrix-tools{grid-template-columns:1fr 1fr}.report-matrix-tools>label:last-child{grid-column:1/-1}}
@media(max-width:500px){.report-settings-controls{grid-template-columns:1fr}.report-matrix-tools{grid-template-columns:1fr}.report-matrix-tools>label:last-child{grid-column:auto}}
@media(pointer:coarse){#reportSettings button,#reportSettings .report-matrix-order button{min-width:44px;min-height:44px}#reportSettings .report-matrix td{height:44px}}
