/* Report controls and layout. All table appearance comes from tables.css. */
.report-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.report-heading h1{font-size:calc(28px * var(--ui-font-scale,1));letter-spacing:-.7px;margin-top:5px}.report-back{display:inline-block;color:var(--muted);margin-bottom:8px}
.report-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px;background:var(--ui-surface, #fff);border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:20px}

.report-filter-actions{display:flex;align-items:end;gap:8px}.report-filters>.report-check{display:flex;align-items:center;gap:8px;min-height:40px}.report-check input{accent-color:var(--color-accent-text)}
.report-panel{background:var(--ui-surface, #fff);border:1px solid var(--ui-border, #dce5f1);border-radius:10px;overflow:hidden;min-width:0}
.report-table-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid var(--line)}
.report-search{display:flex;align-items:center;gap:12px;flex:1 1 400px;max-width:520px;min-width:0;color:var(--muted);font-size:calc(13px * var(--ui-font-scale,1))}.report-search input{flex:1;min-width:0;background:var(--ui-surface, #fafbfd)}
.report-size{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:calc(13px * var(--ui-font-scale,1))}.report-size select{width:72px}
.report-scroll{overflow:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#c6d4e7 #f4f7fb}

.report-link{color:var(--color-accent-text);font-weight:550}.report-link:hover{text-decoration:underline}
.report-status{display:inline-flex;align-items:center;border-radius:5px;padding:4px 9px;font-size:calc(12px * var(--ui-font-scale,1));font-weight:550}.report-status.success{color:#197759;background:#eaf7f1}.report-status.progress{color:#956417;background:#fff5df}.report-status.neutral{color:var(--ui-muted, #6c7e97);background:var(--ui-accent-soft, #f0f3f7)}
.report-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid transparent;background:transparent;border-radius:6px;color:var(--ui-muted, #6880a0);vertical-align:middle}.report-icon:hover{background:var(--ui-accent-soft, var(--color-accent-soft));color:var(--color-accent-text);border-color:var(--ui-border, #dce9ff)}
.report-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:calc(13px * var(--ui-font-scale,1))}.report-pagination nav{display:flex;gap:6px}.report-pagination button,.report-pagination nav span{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:5px;background:var(--ui-surface, #fff)}.report-pagination nav span{color:var(--color-accent-text);background:var(--ui-accent-soft, var(--color-accent-soft));border-color:var(--ui-border, #e1ecff)}
.report-pagination button{color:var(--color-text)}
.report-pagination button:not(:disabled):hover{background:var(--color-accent-soft);color:var(--color-accent-text)}
.report-pagination button:disabled{opacity:1;color:var(--color-muted);background:var(--color-surface-soft);cursor:not-allowed}
.report-export{display:flex;justify-content:flex-end;margin-bottom:12px}.report-export .btn{gap:8px}
.report-empty{padding:64px 24px;text-align:center;color:var(--muted)}.report-empty strong{font-size:calc(16px * var(--ui-font-scale,1));font-weight:550;color:var(--ui-text, #344963)}.report-empty p{margin-top:8px;font-size:calc(14px * var(--ui-font-scale,1))}
.report-detail{padding:24px}.report-detail dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:24px}.report-detail dt{color:var(--muted);font-size:calc(13px * var(--ui-font-scale,1));margin-bottom:8px}.report-detail dd{margin:0;font-size:calc(15px * var(--ui-font-scale,1))}
.report-pivot{padding:20px}.report-pivot header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.report-pivot h2{font-size:calc(18px * var(--ui-font-scale,1))}.report-pivot-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(min-width:1500px){.report-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.report-heading{gap:12px;align-items:start}.report-heading h1{font-size:calc(25px * var(--ui-font-scale,1))}.report-heading .sample-label{white-space:nowrap;font-size:calc(11px * var(--ui-font-scale,1))}.report-filters{grid-template-columns:1fr;padding:16px;gap:14px}.report-table-tools{padding:14px;flex-wrap:wrap;gap:12px}.report-search{width:100%;max-width:none;flex-basis:100%}.report-search input{width:100%}.report-size{margin-left:auto}.report-pagination{padding:12px 14px}.report-detail dl,.report-pivot-controls{grid-template-columns:1fr}}
.report-table-tools .report-export{order:3;margin:0;gap:8px;flex-wrap:wrap}.report-table-tools .report-size{margin-left:auto}.report-table-tools .report-export .btn{min-height:36px}
@media(max-width:600px){.report-table-tools .report-size{margin-left:0}.report-table-tools .report-export{margin-left:auto}}
.report-filter-field{display:grid;gap:7px;font-size:calc(13px * var(--ui-font-scale,1));font-weight:550;color:var(--ui-muted, #526680);min-width:0}.report-multiselect{position:relative;font-weight:400;color:var(--ui-text, #20324d)}.report-multiselect summary{height:40px;border:1px solid var(--ui-border, #dce5f1);border-radius:6px;padding:8px 11px;background:var(--ui-surface, #fff);list-style:none}.report-multiselect summary:after{content:'⌄';float:right}.report-multiselect>div{position:absolute;top:45px;left:0;right:0;z-index:5;background:var(--ui-surface, #fff);border:1px solid var(--line);padding:8px;border-radius:7px;box-shadow:0 8px 25px #263c5b18}.report-multiselect label{display:flex;align-items:center;gap:9px;padding:9px}.report-multiselect input{accent-color:var(--color-accent-text)}

/* Text-labelled server pagination; arrow-only table controls keep their compact width. */
.report-pagination--labelled{flex-wrap:wrap;gap:12px}.report-pagination--labelled .actions{flex-wrap:wrap}.report-pagination--labelled .btn{width:auto}
