.statistics-workspace{--stat-primary:#444750;--stat-green:#7cae62;--stat-line:#ececf0;--stat-surface:#fff;--stat-muted:#666b74;color:var(--crm-neutral-ink,#34363e);font-size:12px;min-width:0}
.stat-open-values{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.stat-open-values>span{font-size:12px;color:#914b2d;font-weight:400;white-space:nowrap}.stat-open-values b{font-size:14px;margin-left:3px}
.stat-full-page.stat-cancel-dialog,.stat-full-page.stat-overdue-dialog{position:static;display:block;width:100%;max-width:none;max-height:none;margin:0;border:1px solid #e0e3e5;border-radius:12px;overflow:visible;background:#fff}
.stat-full-page .stat-cancel-top,.stat-full-page .dialog-top{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #e5e7e9}
.stat-full-page .stat-cancel-top>button,.stat-full-page .dialog-top>button{width:auto;white-space:nowrap;font-size:12px;flex-shrink:0}
.stat-full-page .overdue-table{max-height:none}.stat-full-page h2{margin:0;font-size:20px}
@media(max-width:600px){.stat-full-page .stat-cancel-top,.stat-full-page .dialog-top{flex-direction:column;align-items:flex-start;padding:16px}.stat-full-page.stat-cancel-dialog,.stat-full-page.stat-overdue-dialog{width:100%;max-width:none}}
@media(min-width:1025px) and (max-width:1450px){#workspace header nav.top-nav button{padding-left:10px;padding-right:10px}}
.stat-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:16px 20px;background:var(--stat-surface);border:1px solid var(--stat-line);border-radius:12px}
.stat-filters label{margin:0;font-size:11px;color:var(--stat-muted);display:flex;flex-direction:column;gap:5px}
.stat-filters :is(select,input[type=date]){font-size:12px;margin:0;padding:8px 10px;height:36px;min-width:130px;width:auto;border-radius:7px;color:inherit}
.stat-filters .stat-product-filter{flex:1;min-width:190px;max-width:330px}.stat-filters .stat-product-filter select{width:100%;min-width:0}
.stat-filters .stat-test-filter{flex-direction:row;align-items:center;align-self:center;margin-left:auto;white-space:nowrap;gap:7px}.stat-test-filter input{margin:0;width:15px;height:15px;accent-color:#444750}
.stat-filters .secondary{min-height:36px;padding:8px 12px;font-size:12px}
.stat-period-line{display:flex;justify-content:space-between;gap:12px;margin:13px 2px;font-size:11px;color:var(--stat-muted)}
.statistic-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.statistic-kpi{background:var(--stat-surface);border:1px solid var(--stat-line);border-radius:12px;padding:17px 20px;display:flex;flex-direction:column;gap:6px;min-width:0;position:relative;overflow:hidden}
.statistic-kpi:before{content:'';position:absolute;top:0;left:20px;right:20px;height:2px;background:#44475022}.statistic-kpi.green:before{background:#74a95f55}.statistic-kpi.amber:before{background:#c4a44e55}.statistic-kpi.red:before{background:#bb5c6055}
.statistic-kpi>span{font-size:12px;font-weight:500}.statistic-kpi>strong{font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-.5px}.statistic-kpi>small{font-size:10px;line-height:1.4;color:var(--stat-muted)}
.statistic-columns{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:16px;margin-bottom:16px;align-items:stretch}
.statistic-panel{min-width:0;background:var(--stat-surface);border:1px solid var(--stat-line);border-radius:12px;padding:18px 20px;margin:0;overflow:hidden}
.stat-panel-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:14px}.stat-panel-title h2{font-size:14px;margin:0;font-weight:600}.stat-panel-title>span{font-size:10px;color:var(--stat-muted)}
.stat-chart-legend{display:flex;align-items:center;gap:6px}.stat-chart-legend i{width:8px;height:8px;border-radius:2px;background:var(--stat-primary);display:inline-block}.stat-chart-legend i.green{background:var(--stat-green);margin-left:6px}
.stat-trend-chart{width:100%;height:215px;display:block;overflow:visible}.stat-trend-chart text{font:11px 'DM Sans',Segoe UI,sans-serif;fill:var(--stat-muted)}.stat-trend>small{font-size:10px;color:var(--stat-muted)}
.stat-channel-list{max-height:240px;overflow:auto;scrollbar-width:thin;padding-right:4px}.stat-channel-row{margin-bottom:12px}.stat-channel-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:5px}.stat-channel-row strong{white-space:nowrap;font-weight:600}.stat-channel-row small{font-size:10px;color:var(--stat-muted);font-weight:400;margin-left:6px}.stat-bar-track{height:5px;border-radius:3px;background:var(--stat-line);overflow:hidden}.stat-bar-track span{display:block;height:100%;background:var(--stat-green);border-radius:3px}
.stat-panel-title input[type=search]{width:190px;font-size:11px;margin:0;padding:7px 10px;border-radius:7px}
.stat-compact-table{overflow-x:auto}.stat-compact-table table{width:100%;border-collapse:collapse;font-size:12px}.stat-compact-table th{padding:9px 6px;font-size:10px;font-weight:500;color:var(--stat-muted);text-align:right;white-space:nowrap;background:transparent}.stat-compact-table td{padding:9px 6px;text-align:right;vertical-align:middle;border-bottom:1px solid var(--stat-line);font-size:12px;color:inherit;white-space:nowrap}.stat-compact-table :is(th,td):first-child{text-align:left;padding-left:0;white-space:normal}.stat-compact-table small{font-size:10px;color:var(--stat-muted)}.stat-compact-table td:first-child small{display:block;margin-top:3px}
.stat-product-link{background:none;border:0;color:inherit;padding:0;text-align:left;font-weight:500;font-size:12px;border-radius:3px}.stat-product-link:hover{text-decoration:underline}.stat-product-pages{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:10px;color:var(--stat-muted)}.stat-product-pages>span{margin-right:auto}.stat-product-pages button{padding:5px 9px;font-size:11px;white-space:nowrap;min-height:29px}.stat-product-pages button:disabled{cursor:default;opacity:.45}
.stat-money{padding:9px 0 17px;display:flex;flex-direction:column;gap:7px}.stat-money.actual{border-top:1px solid var(--stat-line);padding-top:18px}.stat-money>span{font-size:12px}.stat-money strong{font-size:25px;line-height:1.2;font-weight:600;letter-spacing:-.5px}.stat-money.actual strong{color:#447039}.stat-money small{font-size:10px;color:var(--stat-muted)}
.statistics-workspace .stat-note,.stat-empty{font-size:11px;line-height:1.55;color:var(--stat-muted);margin:12px 0 0}.stat-empty{padding:20px 0}.statistic-panel>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:500;font-size:12px;gap:10px}.statistic-panel>summary>span{font-size:10px;color:var(--stat-muted);font-weight:400}.statistic-panel>summary:after{content:'⌄';font-size:15px}.statistic-panel[open]>summary:after{transform:rotate(180deg)}.stat-additional-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:24px;margin-top:20px}.stat-additional-grid h3{font-size:12px;font-weight:600;margin:0 0 12px}.stat-additional-grid p{font-size:11px;line-height:1.6;color:var(--stat-muted)}.stat-breakdown{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px}.stat-breakdown strong{font-weight:500}
.stat-chart-data{margin-top:9px}.stat-chart-data summary{font-size:10px;color:var(--stat-muted);cursor:pointer}.stat-chart-data .stat-compact-table{max-height:200px;margin-top:8px}.stat-loading{padding:30px;text-align:center;background:var(--stat-surface);border-radius:12px}
.stat-panel-title select{margin:0;width:auto;max-width:100%;font-size:11px;padding:6px 9px;border-radius:6px;color:inherit;background:var(--stat-surface);border:1px solid var(--stat-line)}
.stat-period-line{flex-wrap:wrap}.statistics-workspace .stat-kpi-button{color:inherit;text-align:left;background:var(--stat-surface);border:1px solid var(--stat-line);font:inherit;cursor:pointer}.statistics-workspace .stat-kpi-button:hover{border-color:#bb7a7a}.statistics-workspace .stat-kpi-button:focus-visible{outline:2px solid #9a4242;outline-offset:2px}
.stat-cancel-dialog{width:min(1120px,96vw);max-width:96vw;max-height:90dvh;padding:0;border:1px solid #d8d9dc;border-radius:14px;background:#fff;color:#34363e;font:12px 'DM Sans',Segoe UI,sans-serif;overflow:auto;scrollbar-width:thin}.stat-cancel-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;background:#fff;border-bottom:1px solid #ececf0}.stat-cancel-top h2{font-size:18px;margin:0}.stat-cancel-top p{font-size:11px;margin:5px 0 0;color:#666b74}.stat-cancel-top button{padding:7px 12px;font-size:18px}.stat-cancel-body{padding:18px 22px}.stat-cancel-overview{display:flex;gap:15px;align-items:center;flex-wrap:wrap;font-size:12px}.stat-cancel-overview>span{color:#666b74;font-size:11px}
.stat-cancel-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.stat-cancel-filters label{font-size:11px;display:grid;gap:5px;margin:0}.stat-cancel-filters select{font:inherit;padding:8px;width:100%;margin:0;border:1px solid #d8d9dc;border-radius:6px;color:inherit;background:#fff}.stat-cancel-charts{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-bottom:20px}.stat-cancel-charts h3{font-size:13px;margin:0 0 10px}.stat-cancel-charts .stat-breakdown{border-bottom:1px solid #f0f0f2;padding:7px 0}.stat-cancel-charts strong{white-space:nowrap}
.stat-cancel-dialog .stat-cancel-customer{color:#34363e;font-weight:500}
.stat-cancel-dialog .stat-compact-table td{font-size:11px;white-space:normal;text-align:left;border-color:#ececf0;min-width:100px}.stat-cancel-dialog .stat-compact-table th{text-align:left;color:#666b74}.stat-cancel-dialog .stat-compact-table small{display:block;font-size:10px;color:#666b74;margin-top:3px}.stat-cancel-reason+ .stat-cancel-reason{margin-top:8px}.stat-cancel-reason strong{font-weight:500}.stat-cancel-reason summary{font-size:10px;cursor:pointer;margin-top:5px}.stat-cancel-reason p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;max-width:380px}.stat-cancel-dialog .stat-note{font-size:11px;line-height:1.5;color:#666b74;margin-top:15px}
@media(max-width:600px){.stat-cancel-top,.stat-cancel-body{padding:14px}.stat-cancel-filters,.stat-cancel-charts{grid-template-columns:1fr}.stat-cancel-charts{gap:16px}.stat-cancel-top h2{font-size:16px}
.stat-cancel-dialog .stat-compact-table thead{display:none}.stat-cancel-dialog .stat-compact-table table,.stat-cancel-dialog .stat-compact-table tbody{display:block;width:100%}.stat-cancel-dialog .stat-compact-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:14px 0;border-top:1px solid #e2e3e7}.stat-cancel-dialog .stat-compact-table td{display:block;min-width:0;padding:0;border:0;font-size:12px;overflow-wrap:anywhere}.stat-cancel-dialog .stat-compact-table td:first-child{grid-column:1/-1}.stat-cancel-dialog .stat-compact-table td:nth-child(3){grid-column:1/-1;grid-row:3}.stat-cancel-dialog .stat-compact-table td:nth-child(2):before,.stat-cancel-dialog .stat-compact-table td:nth-child(4):before{display:block;font-size:10px;color:#666b74;margin-bottom:3px}.stat-cancel-dialog .stat-compact-table td:nth-child(2):before{content:'Produkt'}.stat-cancel-dialog .stat-compact-table td:nth-child(4):before{content:'Partner'}.stat-cancel-dialog .stat-compact-table .stat-cancel-customer{color:#34363e;font-weight:500;font-size:12px}
}
.stat-trend>.stat-chart-legend{font-size:10px;color:var(--stat-muted);flex-wrap:wrap;gap:6px}.stat-trend>.stat-note{font-size:10px;margin-top:2px}
.stat-money.adjusted{border-top:1px solid var(--stat-line);padding-top:16px}.stat-money.adjusted strong{color:var(--stat-primary)}.stat-money small{line-height:1.5}
.stat-calculation>summary{font-size:11px;cursor:pointer;color:var(--stat-muted);padding:4px 0}.stat-calculation[open]>summary{margin-bottom:10px}.stat-calculation .stat-breakdown{font-size:10px;line-height:1.5}.stat-calculation .stat-breakdown strong{white-space:nowrap}
.stat-risk-columns{grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr)}.stat-risk-columns.single{grid-template-columns:1fr}.stat-segments .stat-compact-table{margin-top:8px}.stat-forecast .stat-money{padding-bottom:8px}.stat-segments .stat-note{font-size:10px}
@media(max-width:800px){.stat-risk-columns{grid-template-columns:1fr}.stat-segments th,.stat-segments td{padding-left:3px;padding-right:3px}.stat-chart-legend{font-size:10px}.stat-panel-title select{min-width:0;max-width:100%}.stat-calculation .stat-breakdown{gap:8px}}
[data-theme=dark] .statistics-workspace{--stat-primary:#c7c2ce;--stat-green:#8cba76;--stat-line:#443d4e;--stat-surface:#2a2631;--stat-muted:#c0b7ca;color:#eee7f3}[data-theme=dark] .stat-money.actual strong{color:#a6d48d}
@media(max-width:1150px){.statistic-columns{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}.stat-filters{gap:10px}.stat-filters .stat-test-filter{margin-left:0}.statistic-panel{padding:16px}.statistic-kpi{padding:15px}.statistic-kpi strong{font-size:25px}}
@media(max-width:800px){.statistic-kpis{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.statistic-columns{grid-template-columns:1fr}.stat-additional-grid{grid-template-columns:1fr}.stat-filters{padding:12px;gap:10px}.stat-filters label{flex:1;min-width:calc(50% - 10px)}.stat-filters :is(input[type=date],select){min-width:0;width:100%}.stat-filters .stat-product-filter{max-width:none;flex-basis:100%}.stat-filters .stat-test-filter{flex:1;min-width:180px}.stat-trend-chart{height:180px}.stat-compact-table{max-width:100%}.stat-compact-table th{font-size:9px;white-space:normal}.stat-compact-table td{font-size:11px;padding:9px 4px}.stat-compact-table td:first-child{min-width:90px}.stat-panel-title input[type=search]{width:150px}.stat-period-line{font-size:10px}.statistic-panel>summary>span{display:none}.stat-channel-list{max-height:200px}}
@media(max-width:600px){.stat-trend-chart text{font-size:20px}.stat-trend-chart g:nth-of-type(even)>text{display:none}}

.stat-data-note{padding:10px 14px;margin:0 0 16px;border-left:3px solid #b9a26b;background:#faf8f1;border-radius:6px;font-size:12px;color:#635b48;line-height:1.5}
