.reports-v2{display:grid;gap:22px;min-width:0}
.reports-v2-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));border-radius:26px;background:radial-gradient(circle at 90% 0,color-mix(in srgb,#7c3aed 15%,transparent),transparent 42%),linear-gradient(135deg,color-mix(in srgb,var(--panel) 94%,#2563eb 6%),var(--panel));box-shadow:var(--shadow);overflow:hidden}
.reports-v2-hero.compact{padding:22px 24px}
.reports-v2-hero h2{margin:6px 0 8px;font-size:clamp(25px,3vw,38px);letter-spacing:-.02em}
.reports-v2-hero p{margin:0;max-width:760px;color:var(--muted);line-height:1.75}
.reports-v2-eyebrow{font-size:12px;font-weight:900;letter-spacing:.08em;color:var(--accent);text-transform:uppercase}
.reports-v2-search{min-width:min(420px,100%);display:flex;align-items:center;gap:10px;padding:0 15px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));border-radius:16px;background:color-mix(in srgb,var(--panel-2) 96%,transparent);box-shadow:0 10px 30px #0000000d}
.reports-v2-search .ui-icon{width:20px;height:20px;color:var(--accent)}
.reports-v2-search input{width:100%;min-height:50px;border:0!important;background:transparent!important;box-shadow:none!important;font-size:14px}
.reports-v2-section{display:grid;gap:14px;min-width:0}
.reports-v2-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px}
.reports-v2-section-head h3{margin:0 0 4px;font-size:18px}
.reports-v2-section-head small{color:var(--muted)}
.reports-v2-count{padding:6px 10px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:12px}
.reports-v2-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reports-v2-category-card{position:relative;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:15px;text-align:right;padding:20px;border:1px solid var(--border);border-radius:19px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 96%,var(--accent) 4%));color:inherit;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.reports-v2-category-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 50%,var(--border));box-shadow:var(--shadow)}
.reports-v2-card-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);flex:0 0 auto}
.reports-v2-report-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);flex:0 0 auto}
.reports-v2-card-copy{display:grid;gap:5px}
.reports-v2-card-copy b{font-size:16px}
.reports-v2-card-copy small{color:var(--muted);line-height:1.55}
.reports-v2-card-count{font-variant-numeric:tabular-nums;padding:5px 9px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:12px}
.reports-v2-card-arrow{opacity:.65}
.reports-v2-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.reports-v2-report-card{display:flex;align-items:flex-start;gap:10px;min-height:132px;padding:14px;text-align:right;border:1px solid var(--border);border-radius:16px;background:var(--panel);color:inherit;cursor:pointer;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.reports-v2-report-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));box-shadow:0 12px 32px #00000010}
.reports-v2-report-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:10px}
.reports-v2-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.reports-v2-report-head b{font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reports-v2-report-head>span{flex:0 0 auto;font-size:11px;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.reports-v2-report-head>span.is-unavailable{background:color-mix(in srgb,var(--muted) 14%,transparent);color:var(--muted)}
.reports-v2-report-card small{color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reports-v2-report-foot{display:flex;align-items:center;gap:6px;margin-top:auto;font-size:12px;color:var(--accent);font-weight:800;line-height:1.5}
.reports-v2-state{min-height:180px;display:flex;align-items:center;justify-content:center;gap:12px;padding:28px;border:1px dashed var(--border);border-radius:18px;color:var(--muted);background:color-mix(in srgb,var(--panel) 75%,transparent)}
.reports-v2-state>div{display:grid;gap:4px}
.reports-v2-state small{color:var(--muted)}
.reports-v2-error{justify-content:flex-start;color:inherit}
.reports-v2-error .ui-icon{color:var(--danger)}
.reports-v2-viewer{display:grid;gap:18px;padding:22px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:22px;background:var(--panel);box-shadow:var(--shadow);min-width:0}
.reports-v2-viewer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.reports-v2-viewer-head h3{margin:5px 0;font-size:23px}
.reports-v2-viewer-head p{margin:0;color:var(--muted);line-height:1.6}
.reports-v2-context{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.reports-v2-context span{padding:5px 9px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:11px}
.reports-v2-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--border);border-radius:17px;background:color-mix(in srgb,var(--panel-2) 82%,transparent)}
.reports-v2-filter-grid .form-field{min-width:0}
.reports-v2-filter-actions{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding-top:3px}
.reports-v2-filter-actions .btn{min-height:39px}
.reports-v2-filter-actions .btn .ui-icon{width:16px;height:16px}
.reports-v2-action-status{color:var(--muted);font-size:12px;margin-inline-start:auto}
.reports-v2-viewer-placeholder{display:grid;place-items:center;min-height:190px;border:1px dashed var(--border);border-radius:16px;background:var(--panel-2)}
.reports-v2-viewer-placeholder>div{display:grid;place-items:center;gap:8px;max-width:640px;text-align:center;color:var(--muted)}
.reports-v2-viewer-placeholder .ui-icon{width:30px;height:30px;color:var(--accent)}
.reports-v2-viewer-placeholder b{color:var(--text)}
.reports-v2 .hidden{display:none!important}
.reports-v2-report-card.is-deferred{opacity:.62;cursor:not-allowed;transform:none}
.reports-v2-report-card.is-deferred:hover{transform:none;border-color:var(--border);box-shadow:none}
.reports-v2-report-card.is-custom-saved{border-color:color-mix(in srgb,#7c3aed 24%,var(--border));background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 95%,#7c3aed 5%))}
.reports-v2-custom-action{border-color:transparent;background:linear-gradient(135deg,#2563eb,#6d28d9 58%,#8b5cf6);color:#fff;box-shadow:0 10px 24px #5b21b620}
.reports-v2-custom-action .reports-v2-report-icon{background:#ffffff20;color:#fff}
.reports-v2-custom-action .reports-v2-report-head>span{background:#ffffff22;color:#fff}
.reports-v2-custom-action small,.reports-v2-custom-action .reports-v2-report-foot{color:#f5f3ff}
.reports-v2-custom-action:hover{transform:translateY(-4px);border-color:#a78bfa;box-shadow:0 16px 34px #5b21b638}
.reports-v2-viewer-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.custom-report-builder{display:grid;gap:16px;padding:18px;border:1px solid color-mix(in srgb,#7c3aed 28%,var(--border));border-radius:20px;background:var(--panel);box-shadow:var(--shadow);min-width:0}
.custom-report-builder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.custom-report-builder-head h3{margin:5px 0;font-size:22px}.custom-report-builder-head p{margin:0;color:var(--muted)}
.custom-report-layout{display:grid;grid-template-columns:minmax(320px,38%) minmax(0,62%);gap:16px;align-items:start;min-width:0}
.custom-report-settings{display:grid;gap:12px;min-width:0}.custom-report-preview{position:sticky;top:16px;display:grid;gap:12px;min-width:0;max-height:calc(100vh - 32px);overflow:auto;padding:15px;border:1px solid var(--border);border-radius:17px;background:var(--panel-2)}
.custom-step,.custom-advanced{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:15px;background:color-mix(in srgb,var(--panel-2) 82%,transparent)}
.custom-step-title{display:flex;align-items:flex-start;gap:10px}.custom-step-title>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:900}.custom-step-title>div{display:grid;gap:2px}.custom-step-title small,.custom-report-meta{color:var(--muted);font-size:11px}
.custom-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.custom-report-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto;padding:4px}.custom-report-picker.compact{max-height:180px}
.custom-report-check{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--border);border-radius:10px;background:var(--panel);cursor:pointer}.custom-report-check input{margin-top:3px}.custom-report-check span{display:grid;gap:2px;min-width:0}.custom-report-check b{font-size:12px}.custom-report-check small{font-size:10px;color:var(--muted)}
.custom-selected{display:flex;flex-wrap:wrap;gap:7px;min-height:36px;padding:7px;border:1px dashed var(--border);border-radius:11px}
.custom-report-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:9px;background:color-mix(in srgb,#7c3aed 10%,var(--panel));border:1px solid color-mix(in srgb,#7c3aed 24%,var(--border));font-size:11px;cursor:grab}.custom-report-chip button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:16px;line-height:1}
.custom-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.custom-filter-toolbar select{min-height:38px}
.custom-filters{display:grid;gap:8px}.custom-filter-row{display:grid;grid-template-columns:minmax(110px,1.2fr) minmax(90px,.7fr) minmax(130px,1.3fr) auto;gap:7px;align-items:start}.custom-filter-row select,.custom-filter-row input{width:100%;min-height:38px}
.custom-filter-value{position:relative}.custom-filter-suggestions{position:absolute;z-index:20;inset-inline:0;top:calc(100% + 4px);display:grid;max-height:190px;overflow:auto;border-radius:10px;background:var(--panel);box-shadow:var(--shadow)}.custom-filter-suggestions:empty{display:none}.custom-filter-suggestions button{border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:right;padding:9px;cursor:pointer}.custom-filter-suggestions button:hover{background:var(--panel-2)}
.custom-advanced summary,.custom-step details summary{cursor:pointer;font-weight:800}.custom-advanced[open]{gap:12px}.custom-advanced .muted{margin:0}
.custom-save-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.custom-save-actions [data-save-status]{color:var(--muted);font-size:11px;margin-inline-start:auto}
.custom-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.custom-preview-head>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.custom-preview-head small{display:block;color:var(--muted);margin-top:3px}
.custom-report-empty{display:grid;place-items:center;min-height:170px;padding:20px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:13px}
.custom-report-table{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:12px}.custom-report-table table{width:100%;border-collapse:collapse;min-width:540px}.custom-report-table th,.custom-report-table td{padding:9px 10px;border-bottom:1px solid var(--border);white-space:nowrap}.custom-report-table th{background:var(--panel);position:sticky;top:0}.custom-report-table .is-negative,.custom-report-compare .is-negative{color:var(--danger);font-weight:800}.custom-report-table .is-positive,.custom-report-compare .is-positive{color:var(--success,#16a34a);font-weight:800}.custom-report-table .is-warning{color:var(--warning,#d97706);font-weight:800}
.custom-report-preview-note{font-size:11px;color:var(--muted);text-align:center}
.custom-report-pagination{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.custom-report-pagination span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.custom-report-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.custom-report-totals>div{display:grid;gap:4px;padding:10px;border:1px solid var(--border);border-radius:11px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 95%,#7c3aed 5%))}.custom-report-totals small{color:var(--muted)}.custom-report-totals b{font-variant-numeric:tabular-nums}
.custom-report-subtotals{border:1px solid var(--border);border-radius:12px;background:var(--panel);overflow:hidden}.custom-report-subtotals>summary{cursor:pointer;font-weight:800;padding:10px 12px}.custom-report-subtotals section{display:grid;gap:7px;padding:0 10px 10px}.custom-report-subtotals .table-wrap{max-width:100%;overflow:auto}.custom-report-subtotals table{width:100%;border-collapse:collapse;min-width:460px}.custom-report-subtotals th,.custom-report-subtotals td{padding:8px;border-bottom:1px solid var(--border);white-space:nowrap}.custom-report-compare{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.custom-report-compare>div{display:grid;gap:4px;padding:10px;border:1px solid var(--border);border-radius:11px;background:var(--panel)}.custom-report-compare small{color:var(--muted)}
.custom-report-chart{display:grid;gap:9px;padding:12px;border:1px solid var(--border);border-radius:13px;background:var(--panel)}
.custom-report-bars>div{display:grid;grid-template-columns:minmax(90px,150px) 1fr auto;gap:8px;align-items:center}.custom-report-bars b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-report-bars span{display:block;height:8px;border-radius:999px;background:color-mix(in srgb,var(--muted) 12%,transparent);overflow:hidden}.custom-report-bars i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#7c3aed)}.custom-report-bars small{min-width:82px;text-align:end;color:var(--muted)}
.custom-report-line{width:100%;height:auto;min-height:190px}.custom-report-line polyline{fill:none;stroke:#6d28d9;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.custom-report-line circle{fill:var(--panel);stroke:#2563eb;stroke-width:3}
.custom-report-chart:has(.custom-report-donut){grid-template-columns:auto 1fr;align-items:center}.custom-report-donut{display:grid;place-items:center;width:160px;aspect-ratio:1;border-radius:50%;position:relative}.custom-report-donut:after{content:"";position:absolute;width:62%;aspect-ratio:1;border-radius:50%;background:var(--panel)}.custom-report-donut span{position:relative;z-index:1;font-weight:900}.custom-report-legend{display:grid;gap:6px}.custom-report-legend span{display:flex;align-items:center;gap:7px;font-size:11px}.custom-report-legend i{width:9px;height:9px;border-radius:50%}
.custom-report-builder{--chart-1:#2563eb;--chart-2:#7c3aed;--chart-3:#8b5cf6;--chart-4:#0ea5e9;--chart-5:#14b8a6;--chart-6:#6366f1}.custom-report-legend .c1{background:var(--chart-1)}.custom-report-legend .c2{background:var(--chart-2)}.custom-report-legend .c3{background:var(--chart-3)}.custom-report-legend .c4{background:var(--chart-4)}.custom-report-legend .c5{background:var(--chart-5)}.custom-report-legend .c6{background:var(--chart-6)}
.custom-report-builder .hidden{display:none!important}
.reports-v2-result{display:grid;gap:15px;min-width:0}
.reports-v2-active-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.reports-v2-active-filters>b{font-size:12px;color:var(--muted)}
.reports-v2-active-filters>div{display:flex;flex-wrap:wrap;gap:7px}
.reports-v2-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,var(--panel-2));border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));font-size:11px;max-width:100%}
.reports-v2-filter-chip small{color:var(--muted)}
.reports-v2-filter-chip.is-muted{color:var(--muted);background:var(--panel-2);border-color:var(--border)}
.reports-v2-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.reports-v2-totals>div{display:grid;gap:5px;padding:14px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(145deg,var(--panel-2),color-mix(in srgb,var(--panel-2) 93%,var(--accent) 7%))}
.reports-v2-totals small{color:var(--muted)}
.reports-v2-totals b{font-size:18px;font-variant-numeric:tabular-nums}
.reports-v2-result-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.reports-v2-table{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.reports-v2-table table,.reports-v2-subtotal-table table{width:100%;border-collapse:separate;border-spacing:0}
.reports-v2-table thead th{position:sticky;top:0;z-index:2;background:var(--panel-2);box-shadow:0 1px 0 var(--border)}
.reports-v2-table th,.reports-v2-table td,.reports-v2-subtotal-table th,.reports-v2-subtotal-table td{padding:10px 11px;vertical-align:top}
.reports-v2-table th{white-space:nowrap}
.reports-v2-table td{overflow-wrap:anywhere;max-width:340px}
.reports-v2-table td.numeric,.reports-v2-subtotal-table td.numeric{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.reports-v2 .is-negative{color:var(--danger)!important;font-weight:800}
.reports-v2-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;cursor:pointer;padding:0}
.reports-v2-sort .ui-icon{width:14px;height:14px;opacity:.55}
.reports-v2-pagination{display:flex;align-items:center;justify-content:center;gap:12px}
.reports-v2-pagination span{min-width:90px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}
.reports-v2-result .reports-v2-state{min-height:120px}
.reports-v2-subtotals{border:1px solid var(--border);border-radius:14px;background:var(--panel-2);overflow:hidden}
.reports-v2-subtotals summary{cursor:pointer;font-weight:800;padding:12px 14px}
.reports-v2-subtotal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 12px 12px}
.reports-v2-subtotal-grid section{min-width:0}
.reports-v2-subtotal-grid h4{margin:6px 0 8px}
.reports-v2-subtotal-table{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.reports-v2-chart-card{display:grid;gap:12px;padding:15px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 95%,#2563eb 5%));overflow:hidden}
.reports-v2-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.reports-v2-chart-head h4{margin:0 0 3px;font-size:15px}
.reports-v2-chart-head small{color:var(--muted)}
.reports-v2-chart-legend{display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:11px}
.reports-v2-chart-legend span{display:flex;align-items:center;gap:5px}
.reports-v2-chart-legend i{width:9px;height:9px;border-radius:999px}
.series-1{background:#3b82f6}.series-2{background:#8b5cf6}.series-3{background:#10b981}
.reports-v2-bar-chart{display:grid;gap:10px}
.reports-v2-bar-row{display:grid;grid-template-columns:minmax(110px,180px) 1fr;gap:12px;align-items:start}
.reports-v2-bar-row>b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reports-v2-bar-series{display:grid;gap:5px}
.reports-v2-bar-line{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:8px;align-items:center}
.reports-v2-bar-track{display:block;height:8px;border-radius:999px;background:color-mix(in srgb,var(--muted) 12%,transparent);overflow:hidden}
.reports-v2-bar-track i{display:block;height:100%;border-radius:inherit;transition:width .2s ease}
.reports-v2-bar-track i.is-negative{background:var(--danger)}
.reports-v2-bar-line small{min-width:110px;text-align:end;color:var(--muted);font-variant-numeric:tabular-nums}
.reports-v2-line-chart{overflow:hidden}
.reports-v2-line-chart svg{display:block;width:100%;height:auto;min-height:190px;color:#3b82f6}
.chart-axis{stroke:color-mix(in srgb,var(--muted) 35%,transparent);stroke-width:1}
.chart-line{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chart-point{fill:var(--panel);stroke:currentColor;stroke-width:3}
.reports-v2-line-labels{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:10px;direction:ltr}
@media(max-width:1100px){
  .reports-v2-report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .custom-report-layout{grid-template-columns:minmax(300px,42%) minmax(0,58%)}
  .reports-v2-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v2-subtotal-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .reports-v2{gap:16px}
  .reports-v2-hero{align-items:stretch;flex-direction:column;padding:18px;border-radius:20px}
  .reports-v2-search{min-width:0;width:100%}
  .reports-v2-category-grid{grid-template-columns:1fr}
  .reports-v2-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v2-category-card{grid-template-columns:auto 1fr auto;padding:16px}
  .reports-v2-card-count{display:none}
  .reports-v2-report-card{min-height:118px;padding:11px;gap:8px}
  .reports-v2-report-icon{width:34px;height:34px;border-radius:10px}
  .reports-v2-report-head{gap:5px}.reports-v2-report-head b{font-size:12px}.reports-v2-report-head>span{font-size:9px;padding:3px 5px}.reports-v2-report-card small{font-size:10px}.reports-v2-report-foot{font-size:10px}
  .custom-report-layout{grid-template-columns:1fr}.custom-report-preview{position:static;max-height:none}.custom-report-builder{padding:12px}.custom-report-builder-head,.custom-preview-head{flex-direction:column}.custom-two{grid-template-columns:1fr}.custom-filter-row{grid-template-columns:1fr 1fr}.custom-filter-value{grid-column:1/-1}.custom-filter-row>.btn{grid-column:1/-1}.custom-report-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-report-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.custom-save-actions .btn{width:100%;justify-content:center}.custom-save-actions [data-save-status]{grid-column:1/-1;margin:0;text-align:center}
  .reports-v2-filter-grid{grid-template-columns:1fr;padding:12px}
  .reports-v2-viewer{padding:15px;border-radius:17px}
  .reports-v2-viewer-head{flex-direction:column}
  .reports-v2-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .reports-v2-filter-actions .btn{justify-content:center;width:100%}
  .reports-v2-action-status{grid-column:1/-1;margin:0;text-align:center}
  .reports-v2-result-meta{align-items:flex-start;flex-direction:column}
  .reports-v2-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v2-table{overflow:auto;overscroll-behavior-inline:contain}
  .reports-v2-table table{min-width:720px}
  .reports-v2-bar-row{grid-template-columns:1fr;gap:5px}
  .reports-v2-bar-line{grid-template-columns:minmax(80px,1fr) auto}
  .reports-v2-chart-head{flex-direction:column}
}
@media(max-width:420px){
  .reports-v2-filter-actions{grid-template-columns:1fr}
  .reports-v2-totals{grid-template-columns:1fr}
  .reports-v2-report-grid{gap:8px}
  .reports-v2-report-card{min-height:112px}
  .custom-report-picker{grid-template-columns:1fr}
  .custom-save-actions{grid-template-columns:1fr}
}


/* Smart custom report wizard */
.smart-report-wizard{padding-bottom:76px}
.smart-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.smart-template-card{display:grid;gap:5px;text-align:start;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:inherit;cursor:pointer;transition:.18s ease}
.smart-template-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));box-shadow:0 8px 24px color-mix(in srgb,var(--accent) 8%,transparent)}
.smart-template-card.active{border-color:color-mix(in srgb,var(--accent) 65%,var(--border));background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,var(--panel)),var(--panel))}
.smart-template-card b{font-size:13px}.smart-template-card small{color:var(--muted);line-height:1.55}
.smart-entities{display:grid;gap:10px}.smart-entity{border:1px solid var(--border);border-radius:14px;background:var(--panel);overflow:hidden}
.smart-entity-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px}
.smart-entity-head>div:first-child{display:grid;gap:3px}.smart-entity-head small{color:var(--muted)}
.smart-mode{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.smart-mode label{display:flex;gap:5px;align-items:center;font-size:12px;cursor:pointer}
.smart-entity-selected{display:grid;gap:9px;padding:0 12px 12px;border-top:1px solid var(--border)}
.smart-selector-search{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding-top:10px}
.smart-selector-search input{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);color:inherit}
.smart-selector-search span{font-size:10px;color:var(--muted)}
.smart-selected-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:25px}
.smart-selected-chips>span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,var(--panel-2));border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));font-size:11px}
.smart-selected-chips button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:16px;line-height:1}
.smart-options{display:grid;gap:4px;max-height:230px;overflow:auto;padding:3px}
.smart-options label{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:9px;cursor:pointer;font-size:12px}.smart-options label:hover{background:var(--panel-2)}
.smart-date-presets{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.smart-date-presets button{border:1px solid var(--border);border-radius:999px;padding:7px 10px;background:var(--panel);color:inherit;cursor:pointer;font-size:11px}
.smart-date-presets button.active{background:color-mix(in srgb,var(--accent) 12%,var(--panel));border-color:color-mix(in srgb,var(--accent) 50%,var(--border));font-weight:800}
.smart-advanced-note{display:grid;gap:7px;padding:12px;margin-top:10px;border-radius:12px;background:var(--panel-2);border:1px dashed var(--border)}.smart-advanced-note small{color:var(--muted);line-height:1.6}
.smart-sticky-actions{position:sticky;bottom:8px;z-index:12;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px auto 0;padding:9px 11px;width:max-content;max-width:calc(100% - 16px);border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:0 12px 32px rgba(0,0,0,.14);backdrop-filter:blur(12px)}
.smart-statement-stack{display:grid;gap:16px}.smart-statement-section{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--panel)}
.smart-statement-section>header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:9px;border-bottom:1px solid var(--border)}.smart-statement-section>header small{color:var(--muted)}
@media(max-width:760px){
  .smart-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-template-card{padding:9px}.smart-template-card b{font-size:11px}.smart-template-card small{font-size:9px}
  .smart-entity-head{align-items:flex-start;flex-direction:column}.smart-selector-search{grid-template-columns:1fr}
  .smart-sticky-actions{position:sticky;bottom:6px;width:calc(100% - 4px);justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.smart-sticky-actions .btn{flex:0 0 auto}
}


/* Final professional smart custom reports UX */
.smart-report-wizard{gap:12px;padding:16px 16px 72px}
.smart-wizard-head{padding-bottom:11px}
.smart-wizard-head h3{font-size:24px;margin:4px 0}
.smart-wizard-head p{font-size:12px}
.smart-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-bottom:4px}
.smart-breadcrumb span{opacity:.6}
.smart-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;padding:5px 3px 11px;margin:0 4px;border-bottom:1px solid var(--border)}
.smart-stepper:before{content:"";position:absolute;top:18px;inset-inline:8%;height:1px;background:var(--border)}
.smart-stepper-item{position:relative;z-index:1;display:grid;justify-items:center;gap:5px;color:var(--muted);font-size:10px;text-align:center}
.smart-stepper-item i{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;font-style:normal;font-weight:800;border:1px solid var(--border);background:var(--panel)}
.smart-stepper-item.active{color:var(--text)}
.smart-stepper-item.active i{color:#fff;border-color:#3b82f6;background:linear-gradient(135deg,#2563eb,#3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,#3b82f6 14%,transparent)}
.smart-stepper-item.complete i{color:#fff;border-color:#2563eb;background:#2563eb}
.smart-report-wizard .custom-report-layout{grid-template-columns:minmax(0,65%) minmax(300px,35%);gap:12px}
.smart-report-wizard .custom-report-settings{gap:10px}
.smart-report-wizard .custom-step{gap:9px;padding:12px}
.smart-template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.smart-template-card{grid-template-columns:auto 1fr;align-items:center;gap:9px;padding:10px;min-height:74px}
.smart-template-card>span:last-child{display:grid;gap:3px;min-width:0}
.smart-template-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--accent) 12%,var(--panel-2));color:var(--accent)}
.smart-template-icon svg{width:18px;height:18px}
.smart-template-card.active .smart-template-icon{background:color-mix(in srgb,var(--accent) 20%,var(--panel-2))}
.smart-template-card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px}
.smart-entities{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.smart-entity{min-width:0}
.smart-entity-head{padding:10px;gap:8px;align-items:flex-start}
.smart-entity-head>div:first-child{min-width:0}
.smart-entity-head b{font-size:12px}
.smart-entity-head small{font-size:9px}
.smart-segmented{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(58px,1fr);padding:2px;border:1px solid var(--border);border-radius:9px;background:var(--panel-2);flex:0 0 auto}
.smart-segmented button{border:0;border-radius:7px;background:transparent;color:var(--muted);padding:5px 8px;font:inherit;font-size:10px;cursor:pointer}
.smart-segmented button.active{background:var(--panel);color:var(--text);box-shadow:0 2px 7px rgba(0,0,0,.12);font-weight:800}
.smart-entity-selected{gap:7px;padding:0 10px 10px}
.smart-selector-search{padding-top:8px}
.smart-selector-search input{min-height:34px}
.smart-options{max-height:190px}
.smart-date-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:0}
.smart-date-presets button{border-radius:9px;padding:7px 5px;min-height:33px;text-align:center}
.smart-custom-range{margin-top:8px}
.smart-date-error{display:block;margin-top:6px;color:#ef4444;font-size:10px}
.smart-advanced-panel{display:grid;gap:10px;padding:12px;border:1px solid color-mix(in srgb,#ef4444 48%,var(--border));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,#ef4444 5%,var(--panel-2)),var(--panel-2));box-shadow:0 8px 24px color-mix(in srgb,#ef4444 6%,transparent)}
.smart-advanced-title{display:flex;align-items:flex-start;gap:9px}
.smart-advanced-title>div{display:grid;gap:3px}
.smart-advanced-title b{color:#f87171}
.smart-advanced-title small{color:var(--muted);font-size:10px;line-height:1.55}
.smart-advanced-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:color-mix(in srgb,#ef4444 13%,var(--panel));color:#ef4444;font-size:20px;font-weight:900}
.smart-advanced-capabilities{padding:8px 10px;border-radius:10px;border:1px dashed color-mix(in srgb,#ef4444 32%,var(--border));color:var(--muted);font-size:9px;line-height:1.6;direction:ltr;text-align:left}
.smart-advanced-open{justify-self:start;border-color:color-mix(in srgb,#ef4444 55%,var(--border))!important;color:#f87171!important}
.smart-advanced-open:hover{background:color-mix(in srgb,#ef4444 9%,var(--panel))!important}
.smart-report-wizard .custom-report-preview{top:10px;padding:12px;border-radius:15px}
.smart-report-wizard .custom-preview-head{padding-bottom:8px;border-bottom:1px solid var(--border)}
.smart-report-wizard .custom-preview-head small{font-size:9px}
.smart-sticky-actions{bottom:6px;padding:7px 9px;border-radius:13px}
.smart-sticky-actions .btn{min-height:34px}
.reports-v2-saved-empty{display:grid;place-items:center;min-height:82px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);font-size:11px;background:color-mix(in srgb,var(--panel-2) 70%,transparent)}
@media(max-width:1180px){
  .smart-report-wizard .custom-report-layout{grid-template-columns:minmax(0,60%) minmax(290px,40%)}
  .smart-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-date-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .smart-report-wizard{padding:11px 11px 70px}
  .smart-wizard-head h3{font-size:20px}
  .smart-report-wizard .custom-report-layout{grid-template-columns:1fr}
  .smart-stepper{gap:2px;padding-inline:0}
  .smart-stepper:before{inset-inline:11%}
  .smart-stepper-item b{font-size:8px}
  .smart-stepper-item i{width:25px;height:25px;font-size:10px}
  .smart-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-template-card{grid-template-columns:1fr;justify-items:start;min-height:98px}
  .smart-entities{grid-template-columns:1fr}
  .smart-date-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .smart-advanced-filters{grid-template-columns:1fr}
  .smart-sticky-actions{width:calc(100% - 2px)}
}
@media(max-width:420px){
  .smart-date-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-template-card{padding:8px}
}


/* True step-by-step smart custom report wizard */
.smart-report-wizard{
  gap:12px;
  padding:16px 16px 28px;
}
.smart-report-wizard .custom-report-layout{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.smart-report-wizard .custom-report-settings{
  gap:10px;
  min-width:0;
}
.smart-wizard-panel{
  min-height:0;
  padding:14px!important;
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border))!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--panel-2) 88%,var(--accent) 2%),var(--panel-2))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.smart-stepper{
  border:1px solid var(--border);
  border-radius:15px;
  padding:9px 8px 12px;
  margin:0;
  background:color-mix(in srgb,var(--panel-2) 84%,transparent);
}
.smart-stepper:before{top:22px;inset-inline:9%}
.smart-stepper-item{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  cursor:pointer;
}
.smart-stepper-item:disabled{cursor:not-allowed;opacity:.48}
.smart-stepper-item.active,.smart-stepper-item.complete{color:var(--text)}
.smart-template-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.smart-template-card{
  min-height:82px;
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));
  background:color-mix(in srgb,var(--panel) 94%,var(--accent) 2%);
}
.smart-template-card.active{
  border-color:color-mix(in srgb,var(--accent) 72%,var(--border));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent),0 10px 24px color-mix(in srgb,var(--accent) 8%,transparent);
}
.smart-entities{gap:9px}
.smart-entity{
  border:1px solid color-mix(in srgb,var(--accent) 16%,var(--border));
  background:color-mix(in srgb,var(--panel) 96%,var(--accent) 1%);
}
.smart-entity-selected{
  border-top:1px solid color-mix(in srgb,var(--accent) 14%,var(--border));
}
.smart-selector-search input,
.smart-report-wizard .form-field input,
.smart-report-wizard .form-field select,
.smart-report-wizard .form-field textarea{
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border))!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 3%,transparent);
}
.smart-selector-search input:focus,
.smart-report-wizard .form-field input:focus,
.smart-report-wizard .form-field select:focus,
.smart-report-wizard .form-field textarea:focus{
  outline:2px solid color-mix(in srgb,var(--accent) 26%,transparent);
  outline-offset:1px;
  border-color:color-mix(in srgb,var(--accent) 62%,var(--border))!important;
}
.smart-options{
  max-height:220px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel-2);
  padding:4px;
}
.smart-options>small{padding:8px;color:var(--muted)}
.smart-date-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
.smart-date-presets button{
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));
  background:var(--panel);
}
.smart-date-presets button.active{
  border-color:color-mix(in srgb,var(--accent) 65%,var(--border));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent);
}
.smart-extra-filter-block{
  display:grid;
  gap:9px;
  margin-top:2px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.smart-extra-filter-block>div:first-child{display:grid;gap:2px}
.smart-extra-filter-block small{color:var(--muted);font-size:10px}
.smart-review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.smart-review-grid>div{
  display:grid;
  gap:4px;
  min-width:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
}
.smart-review-grid small{color:var(--muted);font-size:9px}
.smart-review-grid b{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.smart-save-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.smart-description-field{grid-column:1/-1}
.smart-save-actions{padding-top:2px}
.smart-wizard-alert{
  padding:9px 11px;
  border:1px solid color-mix(in srgb,#ef4444 42%,var(--border));
  border-radius:10px;
  background:color-mix(in srgb,#ef4444 7%,var(--panel));
  color:#f87171;
  font-size:11px;
}
.smart-readonly-note{
  padding:10px;
  border:1px dashed var(--border);
  border-radius:10px;
  color:var(--muted);
  background:var(--panel);
  font-size:11px;
}
.smart-compact-empty{min-height:90px}
.smart-wizard-nav{
  position:static;
  width:100%;
  max-width:none;
  margin:0;
  justify-content:space-between;
  border-radius:12px;
  box-shadow:none;
  backdrop-filter:none;
  background:var(--panel-2);
}
.smart-wizard-nav>span{
  color:var(--muted);
  font-size:10px;
}
.smart-advanced-panel{
  margin-top:0;
}
.smart-report-wizard .custom-report-preview{
  position:sticky;
  top:10px;
  min-width:0;
  width:100%;
  max-height:calc(100vh - 24px);
  overflow:auto;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--accent) 26%,var(--border));
  border-radius:16px;
  background:color-mix(in srgb,var(--panel-2) 92%,var(--accent) 1%);
  box-shadow:0 12px 30px rgba(0,0,0,.07);
}
.smart-report-wizard .custom-preview-head{
  position:sticky;
  top:-14px;
  z-index:3;
  margin:-14px -14px 10px;
  padding:12px 14px;
  background:color-mix(in srgb,var(--panel-2) 96%,transparent);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
}
.smart-preview-actions{display:flex;gap:6px;flex-wrap:wrap}
.smart-report-wizard [data-preview-host]{
  display:grid;
  gap:10px;
  min-width:0;
}
.smart-report-wizard .custom-report-empty{
  min-height:150px;
  border-style:solid;
  background:var(--panel);
}
.smart-report-wizard .custom-report-totals{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.smart-report-wizard .custom-report-totals>div,
.smart-report-wizard .custom-report-compare>div,
.smart-report-wizard .custom-report-chart{
  border-color:color-mix(in srgb,var(--accent) 14%,var(--border));
}
.smart-report-wizard .custom-report-table{
  border-color:color-mix(in srgb,var(--accent) 18%,var(--border));
}
.smart-report-wizard .custom-report-table table{
  min-width:0;
  width:max-content;
  min-width:100%;
}
@media(max-width:1180px){
  .smart-report-wizard .custom-report-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .smart-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .smart-report-wizard .custom-report-layout{grid-template-columns:1fr}
  .smart-report-wizard .custom-report-preview{position:static;max-height:none}
  .smart-report-wizard .custom-preview-head{position:static;margin:-14px -14px 10px}
}
@media(max-width:760px){
  .smart-report-wizard{padding:11px}
  .smart-stepper{padding:7px 3px 10px}
  .smart-stepper:before{top:19px}
  .smart-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-template-card{min-height:92px}
  .smart-entities{grid-template-columns:1fr}
  .smart-date-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .smart-review-grid{grid-template-columns:1fr}
  .smart-save-grid{grid-template-columns:1fr}
  .smart-description-field{grid-column:auto}
  .smart-wizard-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
  .smart-wizard-nav .btn:last-child{justify-self:end}
  .smart-wizard-nav .btn:first-child{justify-self:start}
  .smart-report-wizard .custom-report-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .smart-date-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smart-template-card{padding:8px;grid-template-columns:auto 1fr;min-height:86px}
  .smart-report-wizard .custom-report-totals{grid-template-columns:1fr}
}


/* Saved custom report delete action */
.reports-v2-saved-card-wrap{position:relative;min-width:0}
.reports-v2-saved-card-wrap>.reports-v2-report-card{width:100%;height:100%;padding-inline-end:48px}
.reports-v2-saved-delete{
  position:absolute;
  inset-inline-end:10px;
  top:10px;
  z-index:3;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid color-mix(in srgb,var(--danger) 38%,var(--border));
  border-radius:9px;
  background:color-mix(in srgb,var(--danger) 7%,var(--panel));
  color:var(--danger);
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.reports-v2-saved-delete .ui-icon{width:15px;height:15px}
.reports-v2-saved-delete:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--danger) 70%,var(--border));
  background:color-mix(in srgb,var(--danger) 13%,var(--panel));
}
.reports-v2-saved-delete:disabled{opacity:.55;cursor:wait;transform:none}
@media(max-width:760px){
  .reports-v2-saved-card-wrap>.reports-v2-report-card{padding-inline-end:42px}
  .reports-v2-saved-delete{inset-inline-end:8px;top:8px;width:28px;height:28px}
}


/* OROX Mobile UX Professional Upgrade — Phase 7 — Reports */
@media(max-width:680px){
  .reports-v2,
  .reports-v2-viewer,
  .reports-v2-result,
  .custom-report-builder,
  .custom-report-layout,
  .custom-report-settings,
  .custom-report-preview{
    width:100%;min-width:0;max-width:100%;overflow-x:hidden
  }

  .reports-v2-hero,
  .reports-v2-viewer-head,
  .custom-report-builder-head,
  .custom-preview-head{
    min-width:0;max-width:100%
  }

  .reports-v2-category-card{
    grid-template-columns:auto minmax(0,1fr) auto auto;min-width:0
  }
  .reports-v2-card-count{
    display:inline-flex!important;align-items:center;justify-content:center
  }
  .reports-v2-card-copy,
  .reports-v2-report-copy,
  .reports-v2-report-head{
    min-width:0
  }
  .reports-v2-report-head b,
  .reports-v2-report-card small,
  .reports-v2-card-copy small{
    display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial;
    overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere
  }

  .reports-v2-filter-grid{
    grid-template-columns:1fr;width:100%;min-width:0
  }
  .reports-v2-filter-grid .form-field,
  .reports-v2-filter-grid input,
  .reports-v2-filter-grid select,
  .reports-v2-filter-grid .searchable-select{
    width:100%;min-width:0;max-width:100%
  }
  .reports-v2-filter-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;min-width:0
  }
  .reports-v2-filter-actions .btn,
  .reports-v2-viewer-head-actions .btn{
    min-width:0;min-height:44px;white-space:normal;line-height:1.35
  }
  .reports-v2-viewer-head-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0
  }

  .reports-v2-chart-card,
  .reports-v2-line-chart,
  .custom-report-chart{
    width:100%;min-width:0;max-width:100%;overflow:hidden
  }
  .reports-v2-line-chart svg,
  .custom-report-line{
    display:block;width:100%;max-width:100%;height:auto
  }
  .reports-v2-bar-row,
  .custom-report-bars>div{
    grid-template-columns:1fr;gap:6px;min-width:0
  }
  .reports-v2-bar-row>b,
  .custom-report-bars b{
    white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere
  }
  .custom-report-bars small{
    min-width:0;text-align:start;white-space:normal;overflow-wrap:anywhere
  }

  .reports-v2-table,
  .reports-v2-subtotal-table,
  .custom-report-table,
  .custom-report-subtotals .table-wrap{
    width:100%;min-width:0;max-width:100%;overflow:visible
  }
  .reports-v2-table table,
  .reports-v2-subtotal-table table,
  .custom-report-table table,
  .custom-report-subtotals table{
    display:block;width:100%;min-width:0!important;max-width:100%;
    border-collapse:separate;border-spacing:0
  }
  .reports-v2-table thead,
  .reports-v2-subtotal-table thead,
  .custom-report-table thead,
  .custom-report-subtotals thead{
    display:none
  }
  .reports-v2-table tbody,
  .reports-v2-subtotal-table tbody,
  .custom-report-table tbody,
  .custom-report-subtotals tbody{
    display:grid;width:100%;min-width:0;gap:9px;padding:8px
  }
  .reports-v2-table tr,
  .reports-v2-subtotal-table tr,
  .custom-report-table tr,
  .custom-report-subtotals tr{
    display:grid;width:100%;min-width:0;padding:8px 10px;
    border:1px solid var(--border);border-radius:13px;background:var(--panel)
  }
  .reports-v2-table td,
  .reports-v2-subtotal-table td,
  .custom-report-table td,
  .custom-report-subtotals td{
    display:grid;grid-template-columns:minmax(86px,.8fr) minmax(0,1.2fr);
    gap:8px;align-items:start;width:100%;min-width:0;padding:7px 0;border:0;
    white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
    text-align:start!important
  }
  .reports-v2-table td+td,
  .reports-v2-subtotal-table td+td,
  .custom-report-table td+td,
  .custom-report-subtotals td+td{
    border-top:1px solid var(--border)
  }
  .reports-v2-table td::before,
  .reports-v2-subtotal-table td::before,
  .custom-report-table td::before,
  .custom-report-subtotals td::before{
    content:attr(data-label);color:var(--muted);font-size:10px;font-weight:850;
    line-height:1.45;white-space:normal;overflow-wrap:anywhere
  }
  .reports-v2-table td.numeric,
  .reports-v2-subtotal-table td.numeric{
    font-variant-numeric:tabular-nums
  }

  .custom-report-layout{
    grid-template-columns:1fr!important;gap:12px
  }
  .custom-report-preview{
    position:static!important;top:auto;max-height:none;overflow:visible
  }
  .custom-two,
  .custom-filter-row{
    grid-template-columns:1fr
  }
  .custom-filter-value,
  .custom-filter-row>.btn{
    grid-column:auto
  }
  .custom-report-picker{
    grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0
  }
  .custom-report-check,
  .custom-report-chip,
  .custom-selected{
    min-width:0;max-width:100%;overflow-wrap:anywhere
  }
  .custom-preview-head>div:last-child,
  .custom-save-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;min-width:0
  }
  .custom-preview-head .btn,
  .custom-save-actions .btn{
    width:100%;min-width:0;min-height:44px;white-space:normal
  }
  .custom-save-actions [data-save-status]{
    grid-column:1/-1;margin:0;text-align:center
  }
  .custom-report-compare,
  .custom-report-totals{
    grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
  .custom-report-compare>div,
  .custom-report-totals>div{
    min-width:0
  }
  .custom-report-compare b,
  .custom-report-totals b{
    white-space:normal;overflow-wrap:anywhere
  }

  .smart-report-wizard .custom-report-layout{
    grid-template-columns:1fr!important
  }
  .smart-sticky-actions{
    width:100%;max-width:100%;overflow:visible;flex-wrap:wrap;justify-content:stretch
  }
  .smart-sticky-actions .btn{
    flex:1 1 calc(50% - 7px);min-width:0;min-height:44px;white-space:normal
  }
  .smart-selector-search,
  .smart-advanced-filters,
  .smart-review-grid,
  .smart-save-grid{
    grid-template-columns:1fr
  }
  .smart-selected-chips>span,
  .smart-options label{
    min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere
  }

  .reports-v2-pagination,
  .custom-report-pagination{
    display:grid;grid-template-columns:1fr auto 1fr;gap:7px;width:100%;min-width:0
  }
  .reports-v2-pagination .btn:last-child,
  .custom-report-pagination .btn:last-child{justify-self:end}
  .reports-v2-pagination .btn:first-child,
  .custom-report-pagination .btn:first-child{justify-self:start}

  .reports-v2-state,
  .reports-v2-result-meta,
  .reports-v2-active-filters,
  .reports-v2-context{
    min-width:0;max-width:100%
  }
  .reports-v2-filter-chip,
  .reports-v2-context span{
    max-width:100%;white-space:normal;overflow-wrap:anywhere
  }
}

@media(max-width:430px){
  .reports-v2-report-grid{
    grid-template-columns:1fr
  }
  .reports-v2-filter-actions,
  .reports-v2-viewer-head-actions,
  .custom-preview-head>div:last-child,
  .custom-save-actions{
    grid-template-columns:1fr
  }
  .custom-report-picker{
    grid-template-columns:1fr
  }
  .reports-v2-table td,
  .reports-v2-subtotal-table td,
  .custom-report-table td,
  .custom-report-subtotals td{
    grid-template-columns:minmax(76px,.72fr) minmax(0,1.28fr);gap:7px
  }
  .smart-sticky-actions .btn{
    flex-basis:100%
  }
}
