.content-shell:has(> .app-view[data-view="reports"]:not([hidden])) > .view-heading { display:none; }
.reporting-workspace { margin-bottom: 24px; overflow: hidden; }
.reporting-layout { display:grid; grid-template-columns:300px minmax(0,1fr); align-items:start; gap:18px; overflow:visible; }
.reporting-sidebar { position:sticky; top:16px; max-height:calc(100dvh - 160px); overflow:auto; background:var(--surface-subtle,#f7f8fc); }
.reporting-sidebar-heading { padding:18px 16px 12px; }
.reporting-sidebar-heading h2 { margin:0; font-size:1rem; }
.reporting-sidebar-heading p { margin:6px 0 0; font-size:.8125rem; }
.reporting-tree { padding:8px; }
.reporting-tree-section { --reporting-accent:var(--blue); min-width:0; }
.reporting-tree-section[data-reporting-section="equipment-health"] { --reporting-accent:var(--teal); }
.reporting-tree-section[data-reporting-section="supplies"] { --reporting-accent:var(--amber); }
.reporting-tree-section[data-reporting-section="usage"] { --reporting-accent:var(--brand-text,var(--brand)); }
.reporting-tree-category,.reporting-tree-item { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.reporting-tree-category { padding:8px 10px; font-size:.8125rem; font-weight:650; line-height:1.4; }
.reporting-tree-category::before { content:""; width:6px; height:6px; flex:0 0 6px; margin:0 3px 3px 0; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg); }
.reporting-tree-category[aria-expanded="false"]::before { margin-bottom:0; transform:rotate(-45deg); }
.reporting-tree-icon { display:grid; place-items:center; width:1.25rem; height:1.25rem; flex:0 0 auto; color:var(--reporting-accent); }
.reporting-tree-icon svg { width:100%; height:100%; stroke-width:1.5; }
.reporting-icon-back { fill:currentColor; fill-opacity:.2; stroke:currentColor; }
.reporting-icon-body { fill:currentColor; stroke:currentColor; }
.reporting-icon-detail { fill:none; stroke:var(--surface,#fff); stroke-width:1.5; }
.reporting-icon-solid { fill:var(--surface,#fff); stroke:none; }
.reporting-icon-fold { fill:var(--surface,#fff); fill-opacity:.55; stroke:none; }
.reporting-tree-item-icon[data-reporting-icon="dashboard"] { color:var(--blue); }
.reporting-tree-item-icon[data-reporting-icon="report"] { color:var(--brand-text,var(--brand)); }
.reporting-tree-group { padding:0 0 6px 40px; }
.reporting-tree-item { padding:8px 10px; font-size:.8125rem; line-height:1.4; }
.reporting-tree-copy { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:1; min-width:0; }
.reporting-tree-label { min-width:0; overflow-wrap:anywhere; }
.reporting-tree-kind { flex:0 0 auto; color:var(--muted); font-size:.6875rem; font-weight:400; }
.reporting-tree-item:hover,.reporting-tree-category:hover { background:var(--surface-hover,#edf0f7); }
.reporting-tree-item[aria-current="true"] { background:var(--blue-soft); border-color:color-mix(in srgb,var(--blue) 40%,var(--blue-soft)); color:var(--blue); }
.reporting-tree-item[aria-current="true"] .reporting-tree-kind { color:var(--blue); }
.reporting-tree :is(button):focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.reporting-content { min-width:0; overflow:visible; }
.reporting-controls [hidden] { display:none !important; }
.reporting-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px 24px 18px; }
.reporting-controls label { display: grid; gap: 6px; flex: 1 1 200px; font-size: 13px; font-weight: 600; }
.reporting-controls input, .reporting-controls select { width: 100%; min-width: 0; }
.reporting-month-picker { position:relative; display:grid; gap:6px; flex:1 1 270px; min-width:0; font-size:13px; font-weight:600; }
.reporting-range-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; height:auto; text-align:left; white-space:normal; line-height:1.4; }
.reporting-range-trigger::after { content:"▾"; flex:0 0 auto; color:var(--muted); }
.reporting-range-trigger[aria-expanded="true"] { border-color:var(--brand); }
.reporting-month-calendar { position:absolute; z-index:60; top:calc(100% + 8px); right:0; box-sizing:border-box; width:330px; max-width:calc(100vw - 48px); padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface,#fff); color:var(--ink); box-shadow:0 12px 32px rgb(25 35 56 / .16); }
.reporting-calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.reporting-calendar-heading strong { font-size:15px; }
.reporting-calendar-nav { display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:7px; background:var(--surface,#fff); color:var(--ink); font:inherit; font-size:24px; cursor:pointer; }
.reporting-calendar-months [role="row"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:6px; }
.reporting-calendar-months button { min-height:40px; padding:8px 4px; border:1px solid transparent; border-radius:7px; background:var(--surface-subtle,#f7f8fc); color:var(--ink); font:inherit; font-weight:500; cursor:pointer; }
.reporting-calendar-months button:hover:not(:disabled),.reporting-calendar-nav:hover:not(:disabled) { background:var(--surface-hover,#edf0f7); }
.reporting-calendar-months button.in-range { background:var(--blue-soft); color:var(--blue); }
.reporting-calendar-months button.range-start,.reporting-calendar-months button.range-end { border-color:var(--brand); background:var(--brand); color:#fff; font-weight:650; }
.reporting-calendar-months button:disabled,.reporting-calendar-nav:disabled { opacity:.4; cursor:default; }
.reporting-month-picker :is(button):focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.reporting-calendar-guidance { margin:12px 0 0; font-size:12px; font-weight:400; line-height:1.5; }
.reporting-controls .reporting-view-choice { flex: 0 1 170px; }
.reporting-status { margin: 0; padding: 0 24px 18px; font-size: 13px; }
.reporting-status:empty { display: none; }
.reporting-status[data-loading="true"] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.reporting-error { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:start; gap:12px; margin:0 24px 24px; padding:16px; border:1px solid var(--red-border,#fecaca); border-left:4px solid var(--red); border-radius:10px; background:var(--red-soft); color:var(--ink); }
.reporting-error[hidden] { display:none; }
.reporting-error-icon { width:24px; height:24px; color:var(--red); }
.reporting-error-copy { min-width:0; overflow-wrap:anywhere; }
.reporting-error h3 { margin:0; color:var(--red); font-size:.9375rem; line-height:1.5; }
.reporting-error p { margin:5px 0 0; font-size:.8125rem; line-height:1.6; }
.reporting-error .reporting-error-reference { margin-top:10px; color:var(--ink-secondary,var(--ink)); font-size:.75rem; }
.reporting-error .button { align-self:center; height:auto; min-height:40px; white-space:normal; }
.reporting-error .button svg { width:18px; height:18px; flex:0 0 18px; }
.reporting-error .button:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.reporting-frame-host { position:relative; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.reporting-frame-host iframe { display: block; width: 100%; height: max(660px, 78vh); border: 0; color-scheme: light; }
.reporting-frame-host[data-loading="true"] > iframe { opacity:0; pointer-events:none; }
.reporting-loading { position:absolute; inset:0; z-index:1; display:grid; place-items:center; padding:24px; }
.reporting-loading[hidden] { display:none; }
.reporting-loading-card { display:flex; flex-direction:column; align-items:center; gap:14px; width:min(100%,440px); box-sizing:border-box; padding:32px 24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); text-align:center; box-shadow:0 8px 24px rgb(25 35 56 / .04); }
.reporting-loading-symbol { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--brand-soft); color:var(--brand-strong,var(--brand)); }
.reporting-loading-spinner,.reporting-controls [data-reporting-refresh][aria-busy="true"]::before { content:""; display:inline-block; box-sizing:border-box; width:32px; height:32px; border:3px solid currentColor; border-right-color:transparent; border-radius:50%; animation:reporting-spin .8s linear infinite; }
.reporting-loading-card strong { font-size:1rem; line-height:1.5; }
.reporting-loading-card p { margin:0; color:var(--muted); font-size:.8125rem; line-height:1.6; overflow-wrap:anywhere; }
.reporting-loading-steps { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:4px; }
.reporting-loading-step { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; color:var(--muted); font-size:.6875rem; line-height:1.5; }
.reporting-loading-step::before { content:""; flex:0 0 6px; width:6px; height:6px; border-radius:50%; background:var(--line-strong,var(--line)); }
.reporting-loading-step[data-state="active"] { border-color:var(--brand-border,#c4b5fd); background:var(--brand-soft); color:var(--brand-strong,var(--brand)); }
.reporting-loading-step[data-state="active"]::before { background:currentColor; }
.reporting-loading-step[data-state="complete"] { color:var(--green); }
.reporting-loading-step[data-state="complete"]::before { content:"✓"; width:12px; height:12px; flex-basis:12px; background:transparent; font-size:12px; font-weight:700; line-height:1; }
.reporting-controls [data-reporting-refresh][aria-busy="true"]::before { flex:0 0 16px; width:16px; height:16px; border-width:2px; }
@keyframes reporting-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .reporting-loading-spinner,.reporting-controls [data-reporting-refresh][aria-busy="true"]::before { animation:none; } }
@media (max-width: 700px) { .reporting-controls { padding: 16px; } .reporting-error { grid-template-columns:24px minmax(0,1fr); margin:0 16px 16px; } .reporting-error .button { grid-column:2; justify-self:start; max-width:100%; } .reporting-frame-host iframe { height: 75vh; min-height: 520px; } }
@media (max-width: 900px) { .reporting-layout { grid-template-columns:minmax(0,1fr); } .reporting-sidebar { position:static; max-height:none; } .reporting-tree { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; } }
@media (max-width: 500px) { .reporting-tree { grid-template-columns:minmax(0,1fr); } .reporting-month-calendar { left:0; right:auto; width:100%; max-width:none; } }
