.trend-page{min-width:0;padding:20px}.trend-page>.admin-panel-heading{padding:0 0 18px;margin-bottom:18px}.trend-page .admin-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.trend-subtitle{margin:5px 0 0;color:#61717b;font-size:13px}.trend-view-tabs{display:flex;gap:4px}.trend-view-tabs .is-active{background:#1d4b65;color:white;border-color:#1d4b65}.trend-filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin:18px 0;padding:16px;background:#f5f8fa;border:1px solid #e0e8ed;border-radius:12px}.trend-page label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#435864;min-width:0}.trend-page input,.trend-page select{font:inherit;min-height:36px;padding:7px 9px;border:1px solid #cedae1;border-radius:7px;background:white;min-width:0;width:100%}.trend-filter-actions{display:flex;align-items:end;gap:6px}.trend-status{font-size:13px;color:#566d7b;min-height:20px}.trend-status.is-error{color:#b42318}.trend-kpis{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:16px 0 24px}.trend-kpi{border:1px solid #dce6ec;border-radius:10px;padding:16px;background:white}.trend-kpi span{display:block;font-size:12px;color:#617587}.trend-kpi strong{display:block;font-size:25px;margin-top:6px;color:#183e55;font-variant-numeric:tabular-nums}.trend-chart-toolbar,.trend-summary-heading{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.trend-chart-toolbar label{min-width:180px}.trend-note{color:#667b87;font-size:12px;line-height:1.6}.trend-legend{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto;padding:8px 0 16px}.trend-series{border:1px solid #d5e1e8;border-left:5px solid var(--series-color);border-radius:7px;padding:9px 12px;background:white;color:#264556;font:inherit;font-size:12px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.trend-series[aria-pressed=false]{opacity:.5;text-decoration:line-through}.trend-series:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.trend-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,580px),1fr));gap:16px}.trend-chart{margin:0;padding:18px;border:1px solid #dce6ec;border-radius:12px;min-width:0;background:white}.trend-chart figcaption strong{display:block;font-size:15px;color:#244557}.trend-chart figcaption small{display:block;margin-top:5px;color:#667b87}.trend-chart svg{display:block;width:100%;height:auto;margin-top:16px;min-height:160px}.trend-axis{font:16px Inter,Arial,sans-serif;fill:#526b7b}.trend-chart [data-trend-line],.trend-chart [data-trend-bars]{font-size:13px;color:#677b88;overflow-x:auto}.trend-summary-heading{justify-content:space-between;margin:24px 0 12px}.trend-summary-heading h3{margin:0}.trend-page .admin-table-wrap{overflow:auto}.trend-page .admin-table{font-size:12px}.trend-page th{white-space:nowrap}.trend-page td{font-variant-numeric:tabular-nums}.trend-page [data-trend-table] td{min-width:85px;max-width:350px}.trend-page [data-trend-table] td:nth-child(15){min-width:240px;white-space:normal}.trend-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:14px 0}.trend-pager label{flex-direction:row;align-items:center}.trend-pager select{width:75px}.trend-pager span{font-size:12px;color:#576d7b}.trend-page[aria-busy=true] .trend-chart-grid{opacity:.6}.trend-page [hidden]{display:none!important}@media(max-width:1100px){.trend-filters{grid-template-columns:repeat(3,minmax(130px,1fr))}.trend-chart-grid{grid-template-columns:1fr}}@media(max-width:650px){.trend-page{padding:12px}.trend-legend{max-height:260px}.trend-chart svg{min-width:560px}.trend-axis{font-size:18px}.trend-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.trend-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.trend-kpi{padding:12px}.trend-kpi strong{font-size:21px}.trend-page .admin-panel-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.trend-page .admin-heading-actions{flex-wrap:wrap;gap:6px}.trend-chart{padding:10px}.trend-chart-toolbar label{min-width:135px;flex:1}.trend-pager{justify-content:flex-start;gap:8px}}

.trend-customer-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:10px}.trend-customer-toolbar>label{min-width:150px}.trend-customer-toolbar form{display:flex;gap:7px;align-items:end;flex-wrap:wrap}.trend-customer-toolbar input{max-width:150px}.trend-customer-count{color:#36566b;font-size:13px;font-weight:600}
.trend-week-scroll{max-height:65dvh;border:1px solid #dce6ec;border-radius:9px;overscroll-behavior:contain}.trend-page .trend-week-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.trend-page .trend-week-table th,.trend-page .trend-week-table td{min-width:110px;padding:9px 11px;white-space:nowrap;text-align:right;border-bottom:1px solid #e0e8ed;background:white}.trend-page .trend-week-table thead th{position:sticky;top:0;z-index:2;background:#f0f5f8}.trend-page .trend-week-table tr>:first-child{text-align:left;position:sticky;left:0;min-width:210px;max-width:260px;white-space:normal;z-index:1}.trend-page .trend-week-table thead tr>:first-child{z-index:3}.trend-page .trend-week-table small{display:block;color:#647985;font-size:11px;font-weight:400;margin-top:3px;white-space:normal}.trend-page .trend-week-table tfoot th,.trend-page .trend-week-table tfoot td{font-weight:700;background:#eef6f1;border-top:2px solid #c9dcd0}.trend-week-cell{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#17664c;font:600 13px Inter,sans-serif;cursor:pointer;min-height:32px;min-width:36px;padding:3px 5px}.trend-week-cell:hover{background:#e8f4ee;border-radius:4px}.trend-week-cell:focus-visible{outline:2px solid #168259;outline-offset:2px}.trend-no-week{color:#80939e}
.trend-customer-dialog{padding:0;border:1px solid #ccdce3;border-radius:12px;width:min(1180px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;max-height:90dvh;color:#243f50;box-shadow:0 20px 80px #18372a35}.trend-customer-dialog::backdrop{background:#142b3c80}.trend-customer-dialog-content{display:flex;flex-direction:column;max-height:89vh;max-height:89dvh}.trend-customer-dialog header{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:16px;border-bottom:1px solid #dce6ec;flex-shrink:0}.trend-customer-dialog header h3{margin:0;font-size:17px}.trend-customer-dialog header p{margin:5px 0 0;font-size:12px;color:#617587}.trend-customer-dialog header button{flex-shrink:0}.trend-customer-detail-body{padding:0 16px 12px;overflow:auto;min-height:0}.trend-customer-dialog footer{padding:0 16px;flex-shrink:0;border-top:1px solid #dce6ec}.trend-customer-detail-table tfoot{font-weight:700;background:#eef6f1}.trend-customer-detail-table th,.trend-customer-detail-table td{white-space:nowrap}.trend-customer-detail-table td:first-child{white-space:pre-line;min-width:190px;max-width:260px}.trend-customer-detail-table td:last-child{white-space:normal;min-width:180px}.trend-detail-scroll-hint{font-size:11px;color:#617587;margin:6px 0 10px}.trend-customer-help{margin:6px 0;color:#435864;font-size:12px}.trend-customer-help summary{cursor:pointer}
@media(max-width:900px){
 .trend-page .trend-week-table,.trend-page .trend-customer-detail-table{display:table!important}.trend-page .trend-week-table thead,.trend-page .trend-customer-detail-table thead{display:table-header-group!important}.trend-page .trend-week-table tbody,.trend-page .trend-customer-detail-table tbody{display:table-row-group!important}.trend-page .trend-week-table tfoot,.trend-page .trend-customer-detail-table tfoot{display:table-footer-group!important}.trend-page .trend-week-table tr,.trend-page .trend-customer-detail-table tr{display:table-row!important}.trend-page .trend-week-table th,.trend-page .trend-week-table td,.trend-page .trend-customer-detail-table th,.trend-page .trend-customer-detail-table td{display:table-cell!important}.trend-page .trend-week-table td::before,.trend-page .trend-customer-detail-table td::before{display:none!important}
}
@media(max-width:650px){.trend-view-tabs{flex-wrap:wrap}.trend-customer-toolbar{gap:8px}.trend-customer-toolbar>label{flex:1;min-width:135px}.trend-page .trend-week-table tr>:first-child{min-width:145px;max-width:180px}.trend-page .trend-week-table th,.trend-page .trend-week-table td{padding:7px}.trend-customer-dialog header{padding:12px}.trend-customer-dialog header h3{font-size:15px}.trend-customer-detail-body{padding:0 10px 10px}.trend-customer-dialog footer{padding:0 10px}.trend-customer-toolbar input,.trend-customer-toolbar select{font-size:16px}}

.trend-import-button{display:inline-flex;align-items:center;gap:7px}.trend-import-panel{padding:16px;margin:0 0 18px;border:1px solid #cedee5;border-radius:10px;background:#f5f8fa}.trend-import-panel[hidden]{display:none}.trend-import-panel input{max-width:520px}.trend-import-actions{display:flex;gap:8px;flex-wrap:wrap}.trend-import-panel .trend-status{margin-bottom:0}
.trend-import-actions .primary-button{background:#006d68;border-color:#006d68;color:#fff}.trend-import-actions button:disabled{opacity:.55;cursor:wait}
