/* v2.3 — one saved view across device and project reports. */
.report-view-control{display:inline-flex;align-items:stretch;gap:5px;padding:4px;border-radius:13px;background:var(--surface-2);flex:0 0 auto;max-width:100%}
.report-view-control .btn{min-height:44px;min-width:78px;padding:10px 12px;border:0;white-space:normal;background:transparent;color:var(--muted);font-size:13px;box-shadow:none}
.report-view-control .btn.active{background:var(--surface);color:var(--text);box-shadow:inset 0 0 0 1.5px var(--lime),0 0 13px color-mix(in srgb,var(--lime) 14%,transparent)}
.report-view-control svg{width:18px;height:18px}
.reports-grid[data-report-view]{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:18px;align-items:stretch}
.reports-grid[data-report-view]>.empty-state{grid-column:1/-1}
.reports-grid .report-card{display:flex;flex-direction:column;min-width:0;padding:19px;gap:16px;border:0;border-radius:18px;background:var(--surface);box-shadow:var(--card-shadow)}
.report-card .report-card-art{height:112px;min-height:112px;flex:0 0 auto;margin:0;padding:19px;border-radius:12px;overflow:hidden}
.report-card .report-card-art strong{font-size:23px;line-height:1.2}
.report-card .report-card-art small{font-size:9px;letter-spacing:1px}
.report-card .report-card-main{min-width:0;flex:1}
.report-card .report-card-main h3{font-size:19px;line-height:1.35;overflow-wrap:anywhere;margin:0 0 8px;align-self:auto}
.report-card .report-card-main p,.report-card .report-card-main small{font-size:13px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere;margin:5px 0 0;display:block}
.report-card .report-card-main .report-file-label{font-size:12px}
.report-card .report-card-main .badge{margin-bottom:9px}
.report-card .report-card-tools{display:flex;flex-direction:column;gap:10px;min-width:0;width:100%;margin-top:auto}
.report-card .report-actions,.device-photo-report .report-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;min-width:0;width:100%;margin:0;grid-column:auto}
.report-card .report-manage-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;width:100%;border:0;padding:0;margin:0;grid-column:auto}
.report-card .report-actions .btn,.report-card .report-manage-actions .btn{min-width:0;min-height:46px;height:auto;padding:10px 9px;font-size:13px;line-height:1.35;gap:7px;white-space:normal;overflow-wrap:anywhere;flex:none;position:static;margin:0}
.report-card .report-actions .btn:not(.icon-button),.report-card .report-manage-actions .btn{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center}
.report-card .report-actions .btn span,.report-card .report-manage-actions .btn span{display:block;flex:1 1 auto;min-width:0;overflow-wrap:anywhere;white-space:normal}
.report-card .report-actions .btn svg,.report-card .report-manage-actions .btn svg{width:18px;height:18px;flex:0 0 18px}
.report-card .report-actions .icon-button{width:44px;min-width:44px;height:46px;min-height:46px;padding:10px}
.report-card .report-manage-actions .btn-ghost{color:var(--danger);background:transparent}
.report-card .report-manage-actions .btn-ghost:hover{background:var(--danger-bg)}
.reports-grid.reports-list[data-report-view]{grid-template-columns:minmax(0,1fr)}
.reports-list[data-report-view] .report-project-card{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(255px,300px);align-items:center;gap:20px}
.reports-list .report-card .report-card-art{min-height:110px;height:110px;padding:12px;grid-row:auto}
.reports-list .report-card .report-card-art strong{font-size:17px}
.reports-list .report-card .report-card-art small{font-size:7px;letter-spacing:.4px}
.reports-list .report-card .report-card-line{max-width:48px}
.reports-list .report-card .report-card-tools{margin:0}
.reports-list[data-report-view] .device-photo-report{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,300px);align-items:center;gap:20px}
.reports-list .device-photo-report .report-actions{margin:0}
.report-library-toolbar>.search-field{min-width:min(240px,100%);flex:1 1 240px;max-width:none}
.report-library-toolbar .report-sort-control{flex:0 1 185px;min-width:150px}
.device-photo-reports>.section-header{flex-wrap:wrap}
.device-photo-reports>.section-header>div:first-child{min-width:0;flex:1 1 240px}
.report-project-picker .modal-body{min-width:0}
.report-project-picker .report-project-picker-list{display:grid;gap:10px;min-width:0}
.report-project-picker .report-project-option{display:flex;align-items:center;gap:13px;min-height:79px;width:100%;padding:16px;text-align:left;color:var(--text);background:var(--surface);border:0;box-shadow:inset 0 0 0 1px var(--line);border-radius:13px}
.report-project-picker .report-project-option:hover,.report-project-picker .report-project-option:focus-visible{box-shadow:inset 0 0 0 1.5px var(--lime),0 0 12px color-mix(in srgb,var(--lime) 15%,transparent)}
.report-project-option>span{flex:1;min-width:0}
.report-project-option strong{display:block;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
.report-project-option small{display:block;font-size:13px;color:var(--muted);margin-top:4px;line-height:1.4;overflow-wrap:anywhere}
.report-project-picker .notice p{margin-top:7px;line-height:1.6}
@media(max-width:1100px){
 .reports-list[data-report-view] .report-project-card{grid-template-columns:76px minmax(0,1fr)}
 .reports-list .report-project-card .report-card-tools{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}
 .reports-list .report-project-card .report-card-art{height:98px;min-height:98px}
}
@media(max-width:600px){
 .reports-grid,.reports-grid[data-report-view]{grid-template-columns:minmax(0,1fr);gap:14px}
 .reports-grid .report-card{padding:17px;gap:14px}
 .report-card .report-card-art{height:96px;min-height:96px;padding:17px}
 .report-card .report-card-art strong{font-size:22px}
 .report-card .report-card-main h3{font-size:18px}
 .report-card .report-card-main p,.report-card .report-card-main small{font-size:13px}
 .reports-list[data-report-view] .report-project-card{display:flex;align-items:stretch;gap:12px}
 .reports-list .report-project-card .report-card-art{display:none}
 .reports-list .report-project-card .report-card-tools{display:flex;grid-column:1/-1}
 .reports-list[data-report-view] .device-photo-report{display:flex;align-items:stretch;gap:13px}
 .report-card .report-actions .btn,.report-card .report-manage-actions .btn{font-size:13px;min-height:46px;gap:6px;padding:10px 8px}
 .report-card .report-actions .icon-button{min-height:46px;height:46px;width:44px;min-width:44px}
 .report-library-toolbar .report-sort-control{font-size:14px;min-height:48px;flex:1 1 150px}
 .report-library-toolbar>.search-field{flex-basis:100%}
 .report-view-control{margin-left:0}
 .report-view-control .btn{font-size:13px;min-height:44px;padding:9px 10px;min-width:73px}
 .report-project-picker .report-project-option{padding:14px;gap:11px}
}
