/* Step 212 — Reports & Analysis shares the real Inventory/Deals/Write Check shell.
   Scope exclusively to Reports. Presentation-only; preserve report engine math and IDs. */
#main-app .ld212-reports-shell{
 --r-bg:var(--ld166-bg);--r-panel:var(--ld166-panel);--r-panel-alt:var(--ld166-panel-2);
 --r-text:var(--ld166-text);--r-muted:var(--ld166-muted);--r-line:var(--ld166-line);
 --r-border:var(--ld166-border);--r-input:var(--ld166-input);--r-soft:var(--ld166-soft);
 --r-accent:var(--ld166-highlight);--r-profit:var(--ld166-green);
 --r-grid:rgba(69,162,197,.16);--r-table-head:#0a3045;
}
#main-app .ld212-reports-shell[data-ld166-theme="day"]{
 --r-grid:rgba(43,117,170,.14);--r-table-head:#e9f2fb;
}
#main-app .ld212-reports-shell .ld212-reports-page{padding:13px 18px 28px;min-width:0}
#main-app .ld212-reports-shell .ld212-reports-header{min-height:98px;padding:3px 2px 10px 4px}
#main-app .ld212-reports-shell .ld166-heading h1{font-size:33px!important}
#main-app .ld212-reports-shell .ld212-subtitle{color:var(--r-muted);font-size:12px;line-height:1.45;margin:7px 0 0}
#main-app .ld212-reports-shell .ld166-header-tools{gap:7px}
#main-app .ld212-reports-shell .ld212-header-search{width:365px;max-width:100%}
#main-app .ld212-reports-shell .ld212-header-search .ld141-search{width:100%;min-width:0;max-width:none;display:flex;align-items:center;gap:7px;height:36px;border:1px solid var(--r-border);border-radius:10px;background:var(--r-input);padding:0 10px;color:var(--r-muted)}
#main-app .ld212-reports-shell .ld212-header-search .ld141-search input{background:transparent!important;color:var(--r-text)!important;box-shadow:none!important;border:0!important;outline:none!important;flex:1;min-width:0;font-size:12px!important;height:30px!important;padding:0!important}
#main-app .ld212-reports-shell .ld212-header-search input::placeholder{color:var(--r-muted)!important;opacity:1}
#main-app .ld212-reports-shell .ld212-top-actions{gap:7px;align-items:center}
#main-app .ld212-reports-shell .ld212-top-actions #ld141-filter-toggle{width:auto;height:35px;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:7px 11px!important;border-radius:9px!important;background:var(--r-panel)!important;border:1px solid var(--r-border)!important;color:var(--r-text)!important;font-size:13px!important;font-weight:800!important}
#main-app .ld212-reports-shell .ld212-top-actions #ld141-filter-toggle::after{content:' Filters';font-size:10px;margin-left:5px}
#main-app .ld212-reports-shell .ld212-top-actions #ld139-csv,
#main-app .ld212-reports-shell .ld212-top-actions #ld139-print{width:auto;height:35px;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:7px 11px!important;border-radius:9px!important;background:var(--r-panel)!important;border:1px solid var(--r-border)!important;color:var(--r-text)!important;font-size:13px!important;font-weight:800!important}
#main-app .ld212-reports-shell .ld212-top-actions #ld139-csv::after{content:' CSV';font-size:10px;margin-left:4px}
#main-app .ld212-reports-shell .ld212-top-actions #ld139-print::after{content:' Print';font-size:10px;margin-left:4px}
#main-app .ld212-reports-shell .ld212-top-actions #ld139-csv:hover,
#main-app .ld212-reports-shell .ld212-top-actions #ld139-print:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141,
#main-app .ld212-reports-shell .ld141 *{box-sizing:border-box}
#main-app .ld212-reports-shell .ld141{max-width:none;margin:0!important;padding:0!important;overflow:visible;isolation:auto;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--r-text)!important;font-family:inherit;font-size:12px}
#main-app .ld212-reports-shell .ld212-library{background:var(--r-panel);border:1px solid var(--r-line);border-radius:11px;padding:12px 14px 11px;margin:0 0 13px;box-shadow:var(--ld166-shadow)}
#main-app .ld212-reports-shell .ld212-library-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
#main-app .ld212-reports-shell .ld212-library-caption span{font-size:11px;color:var(--r-accent);letter-spacing:1px;font-weight:850}
#main-app .ld212-reports-shell .ld212-library-caption small{color:var(--r-muted);font-size:11px}
#main-app .ld212-reports-shell .ld212-report-tabs{display:flex;flex-wrap:wrap;gap:5px}
#main-app .ld212-reports-shell .ld212-report-tabs .ld141-menu-item{width:auto;min-width:0;height:32px;min-height:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--r-border)!important;border-radius:7px!important;padding:0 9px!important;color:var(--r-text)!important;background:var(--r-input)!important;white-space:nowrap;font-size:11px!important;font-weight:750!important;box-shadow:none!important;letter-spacing:0}
#main-app .ld212-reports-shell .ld212-report-tabs .ld141-menu-icon{color:var(--r-accent)!important;font-size:14px;width:13px}
#main-app .ld212-reports-shell .ld212-report-tabs .ld141-menu-item:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld212-report-tabs .ld141-menu-item.active{border-color:var(--r-accent)!important;background:var(--r-soft)!important;color:var(--r-accent)!important;box-shadow:inset 0 -2px 0 var(--r-accent)!important}
#main-app .ld212-reports-shell .ld141-main{padding:0!important;min-width:0}
#main-app .ld212-reports-shell .ld141-main-heading{margin:0 0 12px;padding:8px 4px 5px;gap:12px;align-items:center}
#main-app .ld212-reports-shell .ld141-eyebrow{font-size:10px!important;letter-spacing:.8px;color:var(--r-accent)!important;font-weight:800}
#main-app .ld212-reports-shell .ld141-main-heading h1{font-size:22px!important;line-height:1.15;color:var(--r-text)!important;letter-spacing:-.35px;margin:0 0 4px!important}
#main-app .ld212-reports-shell .ld141-main-heading p:not(.ld141-eyebrow){color:var(--r-muted)!important;font-size:12px;line-height:1.45}
#main-app .ld212-reports-shell .ld141-heading-actions{padding:0;align-items:center}
#main-app .ld212-reports-shell .ld141-mini,
#main-app .ld212-reports-shell .ld141-heading-actions .ld141-export{border:1px solid var(--r-border)!important;border-radius:8px!important;background:var(--r-panel)!important;color:var(--r-text)!important;font-size:11px!important;font-weight:800!important;padding:9px 11px!important;box-shadow:none!important}
#main-app .ld212-reports-shell .ld141-heading-actions .ld141-export{color:#fff!important;background:linear-gradient(90deg,#07b2ee,#0877d2)!important;border-color:#078ece!important}
#main-app .ld212-reports-shell .ld141-mini:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-filters{background:var(--r-panel);border:1px solid var(--r-border);border-top:2px solid var(--r-accent);border-radius:10px;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));padding:13px;margin:0 0 14px}
#main-app .ld212-reports-shell .ld141-field,#main-app .ld212-reports-shell .ld141-sort-label{color:var(--r-muted)!important;font-size:11px!important}
#main-app .ld212-reports-shell .ld141-field span{color:var(--r-text)}
#main-app .ld212-reports-shell .ld141-field select,#main-app .ld212-reports-shell .ld141-field input,#main-app .ld212-reports-shell .ld141-sort-label select{background:var(--r-input)!important;color:var(--r-text)!important;border:1px solid var(--r-border)!important;border-radius:7px;font-size:11px!important;height:35px}
#main-app .ld212-reports-shell .ld141-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;background:transparent!important;border:0!important;overflow:visible;margin:0 0 13px}
#main-app .ld212-reports-shell .ld141-metric{display:flex;min-height:106px;padding:12px 14px!important;border:1px solid var(--r-accent)!important;border-radius:10px!important;background:var(--r-panel)!important;color:var(--r-text)!important;box-shadow:var(--ld166-shadow)!important;transition:background-color .15s}
#main-app .ld212-reports-shell .ld141-metric:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-metric>span{color:var(--r-muted)!important;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.3px}
#main-app .ld212-reports-shell .ld141-metric>strong{color:var(--r-text)!important;font-size:26px;white-space:normal;overflow-wrap:anywhere;line-height:1.18;margin:7px 0}
#main-app .ld212-reports-shell .ld141-metric.green>strong{color:var(--r-profit)!important}
#main-app .ld212-reports-shell .ld141-metric.purple>strong{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-metric>small{color:var(--r-muted)!important;font-size:10px}
#main-app .ld212-reports-shell .ld141-metric>i{background:var(--r-soft);color:var(--r-accent);border-radius:7px}
#main-app .ld212-reports-shell .ld141-panel{background:var(--r-panel)!important;border:1px solid var(--r-line)!important;border-top:2px solid var(--r-accent)!important;box-shadow:var(--ld166-shadow);border-radius:10px!important}
#main-app .ld212-reports-shell .ld141-panel-head{padding:13px 15px 10px;border-bottom:1px solid var(--r-line)}
#main-app .ld212-reports-shell .ld141-panel-head h3{color:var(--r-text)!important;font-size:14px!important}
#main-app .ld212-reports-shell .ld141-panel-head p{color:var(--r-muted)!important;font-size:11px!important}
#main-app .ld212-reports-shell .ld141-dashboard-grid,#main-app .ld212-reports-shell .ld141-bottom-grid{gap:10px;margin-bottom:12px}
#main-app .ld212-reports-shell .ld141-revenue-inner{min-height:255px}
#main-app .ld212-reports-shell .ld141-plot-total span,#main-app .ld212-reports-shell .ld141-legend,#main-app .ld212-reports-shell .ld141-activity>p,#main-app .ld212-reports-shell .ld141-bar-slot>small{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-plot-total strong{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-plot{border-color:var(--r-line);background:repeating-linear-gradient(to top,transparent,transparent 32px,var(--r-grid) 33px,transparent 34px)}
#main-app .ld212-reports-shell .ld141-bar-paid{background:linear-gradient(#24adf4,#0678c7)}
#main-app .ld212-reports-shell .ld141-bar-unpaid{background:linear-gradient(#36d2a3,#119866)}
#main-app .ld212-reports-shell .ld141-swatch.purple{background:#128dea}
#main-app .ld212-reports-shell .ld141-swatch.green{background:#24b782}
#main-app .ld212-reports-shell .ld141-activity{border-color:var(--r-line)}
#main-app .ld212-reports-shell .ld141-activity-row{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-activity-row:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-activity-row>span{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-activity-row em small,#main-app .ld212-reports-shell .ld141-activity-foot{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-vehicle-art{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-vehicle-info>span,#main-app .ld212-reports-shell .ld141-vehicle-info>div,#main-app .ld212-reports-shell .ld141-vehicle-controls{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-vehicle-info>strong,#main-app .ld212-reports-shell .ld141-vehicle-info b{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-vehicle-controls{border-color:var(--r-line)}
#main-app .ld212-reports-shell .ld141-mini-table,#main-app .ld212-reports-shell .ld141-detail .ld139-table{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-mini-table th,#main-app .ld212-reports-shell .ld141-detail .ld139-table th{background:var(--r-table-head)!important;color:var(--r-text)!important;font-size:10px!important;font-weight:800}
#main-app .ld212-reports-shell .ld141-mini-table td,#main-app .ld212-reports-shell .ld141-detail .ld139-table td{border-color:var(--r-line)!important;color:var(--r-text)!important;background:transparent!important}
#main-app .ld212-reports-shell .ld141-mini-table tr:hover td,#main-app .ld212-reports-shell .ld141-detail .ld139-table tbody tr:hover td{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-table-link,#main-app .ld212-reports-shell .ld141-detail .ld139-table .ld139-open{color:var(--r-accent)!important}
#main-app .ld212-reports-shell .ld141-pill.success{background:rgba(24,154,96,.13);color:var(--r-profit)}
#main-app .ld212-reports-shell .ld141-pill.pending{background:rgba(204,147,30,.12);color:var(--r-text)}
#main-app .ld212-reports-shell .ld141-buyer-row{color:var(--r-text)!important;border-color:var(--r-line)!important}
#main-app .ld212-reports-shell .ld141-buyer-row:hover{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-buyer-avatar{background:var(--r-soft)!important;border:1px solid var(--r-accent);color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-buyer-row small,#main-app .ld212-reports-shell .ld141-buyers-foot{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-buyer-row>b{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-emptycopy,#main-app .ld212-reports-shell .ld141-provenance{color:var(--r-muted)!important;border-color:var(--r-line)!important}
#main-app .ld212-reports-shell .ld141-report-kpis{gap:9px}
#main-app .ld212-reports-shell .ld141-report-kpi{background:var(--r-panel)!important;color:var(--r-text)!important;border:1px solid var(--r-accent)!important;border-radius:10px;min-height:98px}
#main-app .ld212-reports-shell .ld141-report-kpi>span,#main-app .ld212-reports-shell .ld141-report-kpi>small{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-report-kpi>strong{color:var(--r-text)!important;white-space:normal;overflow-wrap:anywhere}
#main-app .ld212-reports-shell .ld141-reportchart .ld139-bar{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-reportchart .ld139-bar-track{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld141-reportchart .ld139-bar-track i{background:linear-gradient(90deg,#00afef,#048cc6)!important}
#main-app .ld212-reports-shell .ld141-reportchart .ld139-bar strong{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-detail .ld139-table-more{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld141-detail .ld139-table-more button{background:var(--r-panel)!important;border-color:var(--r-border)!important;color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld141-warnings{color:var(--r-text)!important;border-color:#b8832f;background:rgba(219,164,70,.1)}
#main-app .ld212-reports-shell .ld141 .ld139-results{min-width:0}
@media(max-width:1250px){#main-app .ld212-reports-shell .ld141-dashboard-grid,#main-app .ld212-reports-shell .ld141-bottom-grid{grid-template-columns:1fr}#main-app .ld212-reports-shell .ld141-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){#main-app .ld212-reports-shell .ld212-reports-page{padding:11px}#main-app .ld212-reports-shell .ld212-reports-header{flex-wrap:wrap;gap:10px}#main-app .ld212-reports-shell .ld166-header-tools{width:100%;align-items:stretch}#main-app .ld212-reports-shell .ld212-header-search{width:100%}#main-app .ld212-reports-shell .ld212-top-actions{justify-content:flex-start}}
@media(max-width:720px){#main-app .ld212-reports-shell .ld212-reports-page{padding:9px}#main-app .ld212-reports-shell .ld166-heading h1{font-size:23px!important}#main-app .ld212-reports-shell .ld212-report-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}#main-app .ld212-reports-shell .ld212-report-tabs .ld141-menu-item{flex:none}#main-app .ld212-reports-shell .ld212-library-caption small{display:none}#main-app .ld212-reports-shell .ld141-metrics,#main-app .ld212-reports-shell .ld141-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#main-app .ld212-reports-shell .ld141-metric{min-height:98px;padding:10px!important}#main-app .ld212-reports-shell .ld141-metric>strong{font-size:19px}#main-app .ld212-reports-shell .ld141-report-kpi>strong{font-size:18px}#main-app .ld212-reports-shell .ld141-revenue-inner{grid-template-columns:1fr}#main-app .ld212-reports-shell .ld141-activity{border-left:0;border-top:1px solid var(--r-line)}#main-app .ld212-reports-shell .ld141-main-heading{flex-wrap:wrap}#main-app .ld212-reports-shell .ld141-heading-actions{width:100%;justify-content:flex-start}#main-app .ld212-reports-shell .ld141-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#main-app .ld212-reports-shell .ld212-top-actions #ld139-print::after,#main-app .ld212-reports-shell .ld212-top-actions #ld139-csv::after{display:none}}
@media print{#main-app .ld212-reports-shell{position:static!important;display:block!important;background:#fff!important;color:#14253a!important;overflow:visible!important;min-height:0!important}#main-app .ld212-reports-shell .ld166-sidebar,#main-app .ld212-reports-shell .ld212-reports-header,#main-app .ld212-reports-shell .ld212-library,#main-app .ld212-reports-shell .ld141-heading-actions,#main-app .ld212-reports-shell .ld141-filters{display:none!important}#main-app .ld212-reports-shell .ld166-page{padding:0!important}#main-app .ld212-reports-shell .ld141-panel,#main-app .ld212-reports-shell .ld141-metric,#main-app .ld212-reports-shell .ld141-report-kpi{border:1px solid #b5cbd9!important;background:#fff!important;box-shadow:none!important}#main-app .ld212-reports-shell .ld141 h1,#main-app .ld212-reports-shell .ld141 h2,#main-app .ld212-reports-shell .ld141 h3,#main-app .ld212-reports-shell .ld141 p,#main-app .ld212-reports-shell .ld141 span,#main-app .ld212-reports-shell .ld141 strong,#main-app .ld212-reports-shell .ld141 td{color:#14253a!important}#main-app .ld212-reports-shell .ld141-detail .ld139-table-wrap{max-height:none!important;overflow:visible!important}}
/* Lifetime Values is one of the report library's analysis subpages. Match both themes. */
#main-app .ld212-reports-shell .ld142-values{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld142-head h2,#main-app .ld212-reports-shell .ld142-panel h3,#main-app .ld212-reports-shell .ld142-value,#main-app .ld212-reports-shell .ld142-result-stats strong,#main-app .ld212-reports-shell .ld142-method strong{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld142-head p,#main-app .ld212-reports-shell .ld142-note,#main-app .ld212-reports-shell .ld142-foot,#main-app .ld212-reports-shell .ld142-method p,#main-app .ld212-reports-shell .ld142-load{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld142-brow{color:var(--r-accent)!important}
#main-app .ld212-reports-shell .ld142-kpis>div,#main-app .ld212-reports-shell .ld142-panel{background:var(--r-panel)!important;color:var(--r-text)!important;border:1px solid var(--r-border)!important;border-top:2px solid var(--r-accent)!important;border-radius:10px}
#main-app .ld212-reports-shell .ld142-kpis span,#main-app .ld212-reports-shell .ld142-kpis small,#main-app .ld212-reports-shell .ld142-field,#main-app .ld212-reports-shell .ld142-result-stats small,#main-app .ld212-reports-shell .ld142-panel header p{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld142-kpis strong{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld142-panel header,#main-app .ld212-reports-shell .ld142-tabs,#main-app .ld212-reports-shell .ld142-foot{border-color:var(--r-line)!important}
#main-app .ld212-reports-shell .ld142-tabs button,#main-app .ld212-reports-shell .ld142-secondary{color:var(--r-text)!important;background:var(--r-panel)!important;border:1px solid var(--r-border)!important;border-radius:7px!important}
#main-app .ld212-reports-shell .ld142-tabs button.active{color:var(--r-accent)!important;background:var(--r-soft)!important;border-color:var(--r-accent)!important}
#main-app .ld212-reports-shell .ld142-tabs span{color:var(--r-muted)!important;background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld142-field input,#main-app .ld212-reports-shell .ld142-field select,#main-app .ld212-reports-shell .ld142-search input{background:var(--r-input)!important;color:var(--r-text)!important;border-color:var(--r-border)!important}
#main-app .ld212-reports-shell .ld142-extra{background:var(--r-soft)!important;border-color:var(--r-border)!important}
#main-app .ld212-reports-shell .ld142-extra p{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld142-range,#main-app .ld212-reports-shell .ld142-comps td,#main-app .ld212-reports-shell .ld142-comps td b{color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld142-range-graphic{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld142-range-graphic span{background:linear-gradient(90deg,#078dd7,#00bfea,#28bf9d)!important}
#main-app .ld212-reports-shell .ld142-comps th{background:var(--r-table-head)!important;color:var(--r-text)!important}
#main-app .ld212-reports-shell .ld142-comps td{border-color:var(--r-line)!important}
#main-app .ld212-reports-shell .ld142-comps tr:hover td{background:var(--r-soft)!important}
#main-app .ld212-reports-shell .ld142-comps td small{color:var(--r-muted)!important}
#main-app .ld212-reports-shell .ld142-textbtn{color:var(--r-accent)!important}
#main-app .ld212-reports-shell .ld142-caution{color:var(--r-text)!important;background:rgba(212,156,65,.11)!important}
@media print{#main-app .ld212-reports-shell .ld142-panel,#main-app .ld212-reports-shell .ld142-kpis>div{background:#fff!important;color:#102030!important;box-shadow:none!important}}
@media(max-width:720px){
 #main-app .ld212-reports-shell .ld141-metric>span{max-width:calc(100% - 26px);overflow-wrap:anywhere;line-height:1.35;white-space:normal}
 #main-app .ld212-reports-shell .ld141-metric>strong{font-size:18px;overflow-wrap:anywhere;max-width:100%}
 #main-app .ld212-reports-shell .ld141-report-kpi>span{overflow-wrap:anywhere;line-height:1.35}
}
