.ep3-page{width:100%;max-width:none;box-sizing:border-box;margin:12px 0 48px;padding:0 14px;color:#173e35;font:14px/1.5 Inter,"Microsoft YaHei",Arial,sans-serif}.ep3-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 18px}.ep3-kicker{font-size:12px;color:#138164;font-weight:650}.ep3-head h1{font-size:26px;line-height:1.2;margin:5px 0}.ep3-head h1 small{font-size:15px;color:#668278}.ep3-head p,.ep3-section-head p{font-size:13px;color:#71857e;margin:5px 0 0}.ep3-btn{border:1px solid #cbded5;background:#fff;color:#28584a;border-radius:8px;padding:8px 13px;cursor:pointer;transition:background .15s,transform .12s,border .15s}.ep3-btn:hover{background:#eef7f2;border-color:#8bbca8}.ep3-btn:active{transform:translateY(1px)}.ep3-btn:disabled{opacity:.45;cursor:default}.ep3-primary{background:#0f785b;color:#fff;border-color:#0f785b}.ep3-primary:hover{background:#0b654b;color:#fff}.ep3-toolbar{display:flex;align-items:end;gap:12px;margin-bottom:14px}.ep3-toolbar label,.ep3-fee-form label{display:grid;gap:4px;color:#617a71;font-size:11px}.ep3-toolbar input,.ep3-fee-form input,.ep3-fee-form select,.ep3-filters input,.ep3-filters select{height:36px;border:1px solid #d6e3de;border-radius:7px;padding:0 10px;color:#23493e;background:#fff;font:13px inherit}.ep3-updated{margin-left:auto;font-size:11px;color:#82938d}.ep3-alert,.ep3-good{padding:11px 14px;border-radius:9px;margin-bottom:14px;display:flex;gap:14px;align-items:center;font-size:12px}.ep3-alert{background:#fff7e7;border:1px solid #eedcae;color:#765a20}.ep3-alert b{white-space:nowrap}.ep3-good{background:#edf7f1;color:#287052;border:1px solid #d5e9de}.ep3-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.ep3-kpi{background:#fff;border:1px solid #dce8e3;border-radius:11px;min-height:120px;padding:15px 17px;box-shadow:0 2px 8px #123a3007;display:flex;flex-direction:column;position:relative}.ep3-kpi label{font-size:12px;color:#5e786f}.ep3-kpi strong{font-size:24px;line-height:1.25;margin:8px 0 4px;font-variant-numeric:tabular-nums;color:#173e35}.ep3-kpi span{font-size:11px;color:#7b8d86;margin-top:auto}.ep3-kpi-primary{border-color:#a8d3bf;background:linear-gradient(135deg,#fff,#f2faf6)}.ep3-kpi-primary strong{font-size:29px;color:#087752}.ep3-clickable{cursor:pointer}.ep3-clickable:hover{border-color:#82b99f;background:#f8fcfa}.ep3-progress{height:4px;background:#e7efeb;border-radius:5px;margin-top:8px;overflow:hidden}.ep3-progress i{display:block;height:100%;background:#21a478;border-radius:5px;transition:width .25s}.ep3-link{border:0;background:none;color:#13805f;padding:0;font:inherit;cursor:pointer}.ep3-link:hover{text-decoration:underline}.ep3-main{display:block}.ep3-ranking,.ep3-drawer{background:#fff;border:1px solid #dce8e3;border-radius:12px;min-width:0}.ep3-ranking{padding:18px}.ep3-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}.ep3-section-head h2{font-size:18px;margin:0}.ep3-section-head>span{font-size:11px;color:#789087}.ep3-table-wrap{overflow:auto} .ep3-ranking table{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.ep3-ranking th{background:#eef5f1;color:#526d63;font-size:11px;font-weight:650;text-align:left;padding:10px 8px;white-space:nowrap}.ep3-ranking th:first-child{border-radius:7px 0 0 7px}.ep3-ranking th:last-child{border-radius:0 7px 7px 0}.ep3-ranking td{border-bottom:1px solid #e9efec;padding:10px 8px;vertical-align:middle;color:#34554a;font-size:12px}.ep3-ranking td:first-child{min-width:190px}.ep3-ranking td small{display:block;font-size:10px;color:#87968f;margin:2px 0 0 22px}.ep3-ranking .num{text-align:right;white-space:nowrap}.ep3-employee:hover{background:#f7fbf9}.ep3-expand,.ep3-store-link{border:0;background:none;padding:2px 0;color:#214b3e;font:600 13px inherit;text-align:left;cursor:pointer}.ep3-expand:hover,.ep3-store-link:hover{color:#05815d}.ep3-profit{color:#087955!important;font-weight:700}.ep3-profit small{font-weight:400}.ep3-store{background:#fbfdfc}.ep3-store td{padding-top:7px;padding-bottom:7px}.ep3-store td:first-child{padding-left:20px}.ep3-store-link{font-size:11px}.ep3-store .ep3-status{margin-left:22px}.ep3-store .num[data-action=fees]{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.ep3-unassigned,.ep3-company{display:flex;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px solid #e9efec}.ep3-unassigned>div,.ep3-company>div{display:grid;gap:3px;margin-right:auto}.ep3-unassigned b,.ep3-company b{font-size:12px}.ep3-unassigned span,.ep3-company span{font-size:10px;color:#7c8e87}.ep3-unassigned>strong{font-variant-numeric:tabular-nums;color:#795e22}.ep3-status-badge,.ep3-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:12px;background:#f1f4f3;color:#698078;font-size:10px;white-space:nowrap}.ep3-status-badge.pending,.ep3-status.pending,.ep3-status.not-started,.ep3-status.partial{background:#fff2d5;color:#946818}.ep3-status-badge.ok,.ep3-status.verified,.ep3-status.complete{background:#e7f5ed;color:#237553}.ep3-status.exception{background:#fdeceb;color:#a94d43}.ep3-drawer{padding:17px;min-height:0;max-height:72vh;overflow:auto;margin-top:14px;animation:ep3-in .18s ease-out}.ep3-drawer[hidden]{display:none}.ep3-drawer-empty,.ep3-drawer-loading,.ep3-empty,.ep3-error{display:grid;align-content:center;justify-items:center;text-align:center;min-height:340px;color:#687f76}.ep3-drawer-empty p,.ep3-empty p,.ep3-error p{max-width:340px;font-size:12px}.ep3-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #e4ece8}.ep3-drawer-head h3{font-size:17px;margin:0 0 3px}.ep3-drawer-head p{font-size:11px;color:#73877f;margin:0}.ep3-close{float:left;margin-right:8px;border:0;border-radius:6px;background:#f2f6f4;color:#547067;font-size:19px;line-height:25px;width:28px;cursor:pointer}.ep3-filters{display:flex;gap:6px;padding:12px 0}.ep3-filters input{min-width:80px;flex:1}.ep3-filters select{width:110px}.ep3-order-list article,.ep3-expenses article{display:grid;grid-template-columns:minmax(90px,1.2fr) auto auto;gap:7px 9px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1ef}.ep3-order-list article a{color:#10785b;font-size:11px;font-weight:650}.ep3-order-list small,.ep3-expenses small{display:block;font-size:9px;color:#82918b;margin-top:3px}.ep3-order-list article>span{justify-self:end}.ep3-order-list article>b,.ep3-expenses article>strong{text-align:right;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.ep3-provenance{grid-column:1/-1!important}.ep3-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:12px;font-size:10px;color:#73877f}.ep3-pagination div{display:flex;gap:5px}.ep3-pagination .ep3-btn{padding:5px 8px;font-size:10px}.ep3-expenses article{grid-template-columns:1.2fr .8fr .8fr auto}.ep3-expenses article>div b{font-size:11px}.ep3-original,.ep3-expenses article>strong{font-size:11px;text-align:right;font-variant-numeric:tabular-nums}.ep3-coverage{margin:9px 0 15px;border-top:1px solid #e8efec}.ep3-coverage>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf1ef;font-size:10px;gap:8px}.ep3-drawer h4{font-size:12px;margin:16px 0 5px}.ep3-fee-form{border-top:1px solid #e2ebe7;margin-top:16px;padding-top:12px;display:grid;gap:9px}.ep3-fee-form input,.ep3-fee-form select{width:100%;box-sizing:border-box}.ep3-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ep3-check{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important}.ep3-check input{width:auto!important;height:auto!important}.ep3-form-actions{display:flex;justify-content:flex-end;gap:8px}.ep3-form-message{font-size:11px;color:#a94d43}.ep3-empty-cell{padding:24px!important;text-align:center!important;color:#84948d!important;font-size:11px!important}.ep3-error{color:#9a4a43}.ep3-error h2{color:#26483e}.ep3-error .ep3-btn{margin-top:12px}@keyframes ep3-in{from{opacity:.5;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1200px){.ep3-page{padding:0 14px}.ep3-main{grid-template-columns:minmax(0,1fr) minmax(310px,36%)}.ep3-ranking{padding:13px}.ep3-ranking td,.ep3-ranking th{padding-left:6px;padding-right:6px}.ep3-kpis{gap:8px}.ep3-kpi{padding:12px}.ep3-kpi strong{font-size:21px}.ep3-kpi-primary strong{font-size:25px}}
@media(max-width:900px){.ep3-main{grid-template-columns:1fr}.ep3-drawer{min-height:380px}.ep3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ep3-toolbar{flex-wrap:wrap}.ep3-updated{margin-left:0}}
@media(max-width:560px){.ep3-page{padding:0 9px;margin-top:6px}.ep3-head{align-items:flex-start}.ep3-head h1{font-size:20px}.ep3-head p{font-size:11px}.ep3-alert{align-items:flex-start;flex-direction:column;gap:4px}.ep3-kpis{grid-template-columns:1fr 1fr;gap:7px}.ep3-kpi{min-height:106px;padding:10px}.ep3-kpi strong{font-size:18px}.ep3-kpi-primary strong{font-size:20px}.ep3-kpi span{font-size:9px}.ep3-section-head{align-items:flex-start;flex-direction:column}.ep3-ranking{padding:9px}.ep3-drawer{padding:11px}.ep3-pagination{align-items:flex-start;flex-direction:column;gap:8px}.ep3-expenses article{grid-template-columns:1fr 1fr}.ep3-expenses article .ep3-status{justify-self:start}.ep3-toolbar input{max-width:140px}}

.ep3-assignment{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #e9efec}.ep3-assignment>div{display:grid;gap:3px}.ep3-assignment b{font-size:12px}.ep3-assignment small{font-size:10px;color:#7d9088}.ep3-assignment select{border:1px solid #d7e4de;border-radius:7px;padding:7px;color:#254b40;background:white}.ep3-audit{padding:10px 0;border-bottom:1px solid #e7eeeb;display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:11px}.ep3-audit small,.ep3-audit pre{grid-column:1/-1;color:#758880;font-size:10px;white-space:pre-wrap}
@media(max-width:560px){.ep3-assignment{grid-template-columns:1fr 1fr}.ep3-assignment>div{grid-column:1/-1}}

.edsp-mount{margin:16px 0 30px}.edsp{background:#fff;border:1px solid #dce8e3;border-radius:12px;padding:18px;color:#173e35}.edsp>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.edsp h2{font-size:18px;margin:0}.edsp header p{font-size:12px;color:#71857e;margin:5px 0 0}.edsp button{border:1px solid #cbded5;background:#fff;color:#28584a;border-radius:7px;padding:7px 10px;cursor:pointer}.edsp-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px 0}.edsp-filters label{display:grid;gap:4px;color:#617a71;font-size:11px}.edsp-filters select{min-width:130px;height:34px;border:1px solid #d6e3de;border-radius:7px;padding:0 8px;background:white;color:#23493e}.edsp-filters .edsp-check{display:flex;align-items:center;gap:6px}.edsp-filters>span{margin-left:auto;color:#71857e;font-size:12px}.edsp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.edsp-kpis article{border:1px solid #e0ebe6;border-radius:9px;background:#f8fbf9;padding:12px;display:grid;gap:5px}.edsp-kpis span,.edsp-kpis small{font-size:11px;color:#71857e}.edsp-kpis b{font-size:21px;font-variant-numeric:tabular-nums}.edsp-table{overflow:auto}.edsp table{width:100%;border-collapse:collapse;font-size:12px}.edsp th{background:#eef5f1;color:#526d63;text-align:left;padding:9px}.edsp td{padding:9px;border-bottom:1px solid #e9efec}.edsp .num{text-align:right;white-space:nowrap}.edsp td button{border:0;padding:0;background:none;font-weight:650;text-align:left}.edsp td small{display:block;color:#83928c;font-size:10px;margin-top:3px}.edsp-employee{background:#fbfdfc}.edsp-employee.open{background:#e9f6ef}.edsp-store{background:#f5faf7}.edsp-store td:first-child{padding-left:22px}.edsp-day td:first-child{padding-left:42px;color:#526d63}.edsp-day.empty{color:#98a59f}.edsp-day-open{margin-left:7px!important;color:#0f785b!important;font-size:11px}.edsp .partial{color:#9a6b17}.edsp-detail{margin-top:14px;padding:12px;border:1px solid #dce8e3;border-radius:9px;max-height:55vh;overflow:auto}.edsp-detail h3{margin:0 0 8px;font-size:14px}.edsp-detail article{display:grid;grid-template-columns:1fr 1fr auto auto;gap:10px;padding:8px 0;border-bottom:1px solid #edf1ef;font-size:11px}.edsp-detail a{color:#0f785b}.edsp-loading,.edsp-error{padding:24px;color:#71857e}.edsp-error{color:#a94d43}@media(max-width:650px){.edsp{padding:11px}.edsp-kpis{grid-template-columns:1fr}.edsp-filters>span{margin-left:0}.edsp-detail article{grid-template-columns:1fr 1fr}.edsp-detail article>*{min-width:0}}

.edsp>header>div{min-width:0}.edsp-detail>header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #e5ece8;padding-bottom:8px}.edsp-detail>header p{margin:3px 0;color:#71857e;font-size:11px}.edsp-order-filters{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0}.edsp-order-filters input,.edsp-order-filters select{height:32px;border:1px solid #d6e3de;border-radius:6px;padding:0 8px;color:#23493e;background:#fff}.edsp-order-filters input{flex:1;min-width:120px}.edsp-order-list article{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1ef;font-size:11px}.edsp-order-list small{display:block;color:#82918b;font-size:10px;margin-top:3px}.edsp-order-list strong{text-align:right;white-space:nowrap}.edsp-order-list a{color:#0f785b;white-space:nowrap}.edsp-detail footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:10px;font-size:11px;color:#71857e}.edsp-detail footer span{margin-right:auto}@media(max-width:650px){.edsp-order-list article{grid-template-columns:1fr auto}.edsp-order-list article a{grid-column:1/-1}.edsp-detail footer{flex-wrap:wrap}.edsp-detail footer span{flex-basis:100%}}
.edsp-reconcile{padding:9px 11px;margin:9px 0;border-radius:7px;background:#edf7f1;color:#287052;font-size:11px}.edsp-reconcile:has(+ header){border:1px solid #d5e9de}

.edsp-warn{padding:9px 11px;margin:0 0 10px;border:1px solid #eedcae;border-radius:7px;background:#fff7e7;color:#765a20;font-size:11px}

.edsp:has(.edsp-detail:not([hidden]))::before{content:"";position:fixed;inset:0;background:#10231f70;z-index:1998}.edsp-detail:not([hidden]){position:fixed;z-index:1999;right:18px;top:18px;bottom:18px;width:min(680px,calc(100vw - 36px));max-height:none;box-sizing:border-box;margin:0;background:#fff;box-shadow:0 12px 50px #10231f40;border-radius:12px}.edsp-detail>header{position:sticky;top:-12px;background:#fff;z-index:1;padding-top:2px}.edsp-order-list{overflow:auto;max-height:calc(100% - 190px)}@media(max-width:650px){.edsp-detail:not([hidden]){inset:8px;width:auto;border-radius:9px}.edsp-order-list{max-height:calc(100% - 220px)}}

.edsp-order-lines{color:#516e63!important;white-space:normal;line-height:1.45}

/* V3.1 visual refresh: neutral finance workspace, restrained status colors */
.ep3-page{color:#2b394b;font-family:Inter,"Microsoft YaHei",Arial,sans-serif}
.ep3-head{padding-top:0}
.ep3-kicker{color:#68788b}
.ep3-head h1,.ep3-section-head h2{color:#263548}
.ep3-head p,.ep3-section-head p,.ep3-updated{color:#778497}
.ep3-btn{border-color:#d9e0e7;background:#fff;color:#43546a}
.ep3-btn:hover{background:#f5f7f9;border-color:#c5ced8}
.ep3-primary,.ep3-primary:hover{background:#176f51;color:#fff;border-color:#176f51}
.ep3-kpi{border-color:#e2e7ec;box-shadow:0 2px 8px #23334708}
.ep3-kpi label,.ep3-kpi span{color:#748195}
.ep3-kpi strong{color:#34465a}
.ep3-kpi-primary{background:#fff;border-color:#dbe3e9}
.ep3-kpi-primary strong{color:#16734f}
.ep3-progress{background:#e7ebef}
.ep3-progress i{background:#23936b}
.ep3-ranking,.ep3-drawer{border-color:#e1e6eb;color:#34465a}
.ep3-ranking{padding:16px}
.ep3-section-head{margin-bottom:12px}
.ep3-table-wrap{overflow:visible;min-width:0}
.ep3-ranking table{table-layout:fixed}
.ep3-profit-table th{background:#f3f5f7;color:#657387;font-size:12px;padding:12px 10px}
.ep3-profit-table td{color:#526176;border-bottom:1px solid #e9edf1;padding:13px 10px;font-size:13px}
.ep3-profit-table td:first-child{min-width:0}
.ep3-profit-table .ep3-employee{background:#fafbfc}
.ep3-profit-table .ep3-employee.is-open{background:#f3f6f8}
.ep3-profit-table .ep3-store{background:#fff}
.ep3-profit-table .ep3-store td:first-child{padding-left:22px}
.ep3-identity{display:flex;align-items:center;gap:10px;min-width:0}
.ep3-identity>div{min-width:0}
.ep3-identity>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ep3-identity>div>small{display:block;color:#7a8798;font-size:11px;margin-top:3px}
.ep3-expand{display:inline-flex;align-items:center;gap:8px;min-width:0;color:#2c3c50;font:inherit;background:none;border:0;padding:2px;cursor:pointer}
.ep3-expand strong{font-size:15px}
.ep3-store-count{flex:none;background:#eef1f4;color:#647387;border-radius:12px;padding:3px 8px;font-size:10px}
.ep3-store-link{flex:none;border:1px solid #dce3e9;border-radius:7px;background:#fff;color:#536277;padding:6px 9px;font-size:11px;cursor:pointer}
.ep3-store-link:hover{background:#f5f7f9;color:#34465a}
.ep3-toggle-cell{text-align:right}
.ep3-expand-icon{width:30px;height:30px;justify-content:center;border-radius:50%;background:#f1f4f6}
.ep3-expand-icon:hover{background:#e8edf1}
.ep3-profit{color:#16734f!important;font-size:18px!important;font-weight:700!important;font-variant-numeric:tabular-nums}
.ep3-profit small{color:#9a6b17;font-size:10px;font-weight:500}
.ep3-rate{font-variant-numeric:tabular-nums;color:#526176}
.ep3-progress-inline{display:block;width:min(100%,90px);height:4px;margin-top:5px}
.ep3-unassigned{border-color:#e8edf1;color:#536277}
.ep3-unassigned span,.ep3-company span{color:#7b8798}
.ep3-unassigned>strong{color:#596a7e}
.ep3-status-badge.ok,.ep3-status.verified,.ep3-status.complete{background:#e9f4ee;color:#26724f}
.ep3-status-badge.pending,.ep3-status.pending,.ep3-status.not-started,.ep3-status.partial{background:#fff4df;color:#946818}
.ep3-status.exception{background:#fdeeed;color:#a64e49}
.ep3-drawer{color:#34465a;border-color:#e0e6ec}
.ep3-drawer-head{border-color:#e4e9ee}
.ep3-filters{gap:8px}
.ep3-filters input,.ep3-filters select{border-color:#dce3e9;color:#43546a}
.ep3-order-list article{border-color:#e9edf1}
.ep3-order-list article a,.ep3-link{color:#176f51}
.ep3-pagination{color:#788598}
.ep3-error{color:#a64e49}

.edsp-mount{margin:14px 0 28px;min-width:0}
.edsp{background:transparent;border:0;border-radius:0;padding:0;color:#2b394b}
.edsp>header{align-items:center;margin-bottom:12px}
.edsp h2{font-size:19px;color:#263548}
.edsp header p{color:#778497;font-size:12px}
.edsp button{border:1px solid #d9e0e7;background:#fff;color:#43546a;border-radius:7px;padding:7px 10px;font-size:12px}
.edsp button:hover{background:#f5f7f9;border-color:#c5ced8}
.edsp>header>button{background:#fff}
.edsp-filters{padding:11px 0 13px;gap:10px;border-top:1px solid #e5e9ee}
.edsp-filters label{color:#6f7d90;font-size:12px}
.edsp-filters select{border-color:#d9e0e7;color:#3f5065}
.edsp-filters>span{color:#7a8798}
.edsp-kpis{gap:10px;margin-bottom:12px}
.edsp-kpis article{background:#fff;border:1px solid #e2e7ec;border-radius:10px;padding:12px 14px}
.edsp-kpis span,.edsp-kpis small{color:#748195}
.edsp-kpis b{color:#34465a;font-size:22px;font-variant-numeric:tabular-nums}
.edsp-kpis article:nth-child(2) b{color:#16734f;font-size:26px}
.edsp-kpis article:nth-child(3) b{color:#526176}
.edsp-table{overflow:visible;border:1px solid #e1e6eb;border-radius:10px;background:#fff}
.edsp table{table-layout:fixed;width:100%;color:#34465a;font-size:13px}
.edsp th{background:#f3f5f7;color:#657387;padding:12px 10px;font-size:12px;font-weight:650}
.edsp th:nth-child(1){width:36%}
.edsp th:nth-child(2){width:15%}
.edsp th:nth-child(3){width:24%}
.edsp th:nth-child(4){width:25%}
.edsp td{padding:12px 10px;border-color:#e9edf1;color:#536176;vertical-align:middle}
.edsp td:first-child{min-width:0}
.edsp td small{color:#7c899a}
.edsp .num,.edsp .edsp-profit{font-variant-numeric:tabular-nums}
.edsp .edsp-profit{color:#16734f;font-size:16px;font-weight:700;white-space:nowrap}
.edsp-employee{background:#fafbfc;font-weight:600}
.edsp-employee.open{background:#f3f6f8}
.edsp-store{background:#fff}
.edsp-store.open{background:#fbfcfd}
.edsp-day{background:#f8fafb}
.edsp-day.empty{color:#9aa4b0}
.edsp-day td:first-child{padding-left:28px;color:#526176}
.edsp-toggle{display:inline-flex;align-items:center;gap:8px;padding:0!important;border:0!important;background:none!important;color:#2d3d51!important;text-align:left!important;font:inherit!important}
.edsp-toggle strong{font-size:14px;font-weight:650}
.edsp-chevron{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;border-radius:50%;background:#eef1f4;color:#56677a;font-size:14px}
.edsp-store-count{display:inline-block;margin-left:7px;padding:3px 8px;border-radius:12px;background:#eef1f4;color:#647387;font-size:10px}
.edsp-store td:first-child{padding-left:22px}
.edsp-store td:first-child>small{display:block;margin:4px 0 0 32px;font-size:11px;color:#7b8798}
.edsp-store .edsp-toggle{max-width:100%}
.edsp-store .edsp-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edsp-day-open{margin-left:9px!important;border:1px solid #dce3e9!important;background:#fff!important;color:#45576c!important;font-size:11px!important;padding:6px 9px!important;white-space:nowrap}
.edsp-profit-label{display:inline-block!important;margin:0 6px 0 0!important;padding:3px 7px;border-radius:10px;background:#e9f4ee;color:#26724f!important;font-size:10px!important}
.edsp-real-profit{display:inline-block;padding:3px 6px;border-radius:8px;background:#eef1f5;color:#536276;font-size:11px}
.edsp-verified{margin-left:5px;color:#9a6b17;font-size:11px}
.edsp .partial,.edsp-warn{color:#946818}
.edsp-kpis article:nth-child(2) small,.edsp-kpis article:nth-child(3) small{color:#946818}
.edsp-detail{border-color:#dfe5eb;box-shadow:0 12px 50px #23334722}
.edsp:has(.edsp-detail:not([hidden]))::before{background:#17253866}
.edsp-detail:not([hidden]){right:18px;top:18px;bottom:18px;width:min(620px,calc(100vw - 36px));border-radius:12px}
.edsp-detail>header{top:-12px;background:#fff}
.edsp-day-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 0}
.edsp-day-summary article{display:grid;gap:5px;padding:10px 12px;border:1px solid #e3e8ed;border-radius:8px;background:#f8fafb}
.edsp-day-summary article span{font-size:11px;color:#778497}
.edsp-day-summary article strong{font-size:17px;color:#16734f;font-variant-numeric:tabular-nums}
.edsp-day-summary article:nth-child(3) strong{font-size:14px;color:#536176}
.edsp-reconcile{background:#f5f7f9;border:1px solid #e3e8ed;color:#526176;line-height:1.5}
.edsp-order-list{max-height:calc(100% - 285px)}
.edsp-order-list article{border-color:#e9edf1}
.edsp-order-list strong{color:#16734f;font-size:14px}
.edsp-order-list a{color:#176f51;font-size:12px}
.edsp-detail footer{background:#fff;color:#718095}
.edsp-error{color:#a64e49}

@media(max-width:760px){
  .ep3-page{padding:0 10px;margin-top:6px}
  .ep3-head{align-items:flex-start}
  .ep3-head h1{font-size:21px}
  .ep3-toolbar{gap:8px}
  .ep3-updated{width:100%;margin:0}
  .ep3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ep3-table-wrap{overflow:visible}
  .ep3-profit-table,.ep3-profit-table tbody{display:block;width:100%}
  .ep3-profit-table thead{display:none}
  .ep3-profit-table tr{position:relative;display:grid;grid-template-columns:1fr 1fr;margin:8px 0;padding:8px 10px;border:1px solid #e2e7ec;border-radius:9px;background:#fff}
  .ep3-profit-table td{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px;border:0;font-size:12px}
  .ep3-profit-table td:first-child{grid-column:1/-1;padding-right:42px}
  .ep3-profit-table td[data-label]::before{content:attr(data-label);color:#7a8798;font-size:10px;font-weight:500}
  .ep3-profit-table td:first-child::before{content:none}
  .ep3-profit-table .ep3-toggle-cell{position:absolute;top:8px;right:9px;padding:0}
  .ep3-profit-table .ep3-toggle-cell::before{content:none}
  .ep3-profit-table .ep3-profit{font-size:15px!important}
  .ep3-profit-table .ep3-store{margin-left:12px;background:#fbfcfd}
  .ep3-profit-table .ep3-store td:first-child{padding-left:4px}
  .ep3-identity{flex-wrap:wrap}
  .edsp-mount{margin-top:12px}
  .edsp>header{align-items:flex-start}
  .edsp>header p{max-width:42ch}
  .edsp-filters label{min-width:calc(50% - 10px)}
  .edsp-filters select{min-width:0;width:100%}
  .edsp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .edsp-kpis article:nth-child(2){grid-column:span 2}
  .edsp-table{overflow:visible}
  .edsp table,.edsp tbody{display:block;width:100%}
  .edsp thead{display:none}
  .edsp tr{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin:7px 0;padding:8px 10px;border:1px solid #e2e7ec;border-radius:9px;background:#fff}
  .edsp td{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border:0;font-size:12px}
  .edsp td[data-label]::before{content:attr(data-label);color:#7a8798;font-size:10px;font-weight:500}
  .edsp-employee td:first-child,.edsp-store td:first-child,.edsp-day td:first-child{grid-column:1/-1;padding-left:0}
  .edsp-employee td:first-child::before,.edsp-store td:first-child::before,.edsp-day td:first-child::before{content:none}
  .edsp-store{margin-left:10px!important;background:#fbfcfd!important}
  .edsp-store td:first-child{padding-left:0!important}
  .edsp-day{margin-left:20px!important;background:#f8fafb!important}
  .edsp-day td:first-child{padding-left:0!important}
  .edsp-day td:last-child{grid-column:1/-1;flex-wrap:wrap}
  .edsp-day-open{margin-left:auto!important}
  .edsp-profit{font-size:14px!important}
  .edsp-detail:not([hidden]){inset:8px;width:auto;border-radius:9px}
  .edsp-order-list{max-height:calc(100% - 310px)}
}

.ep3-profit-table .ep3-employee{cursor:pointer}
.ep3-profit-table .ep3-employee td:not(.ep3-toggle-cell){cursor:pointer}
.ep3-expand:focus-visible,.ep3-store-link:focus-visible,.edsp button:focus-visible{outline:3px solid #91b7d0;outline-offset:2px}
.edsp-employee,.edsp-store{cursor:pointer}
.edsp-day{cursor:default}

/* Reduce outer gutters only while the V3.1 profit module is active. */
body:not(.auth-mode) #appView:has(#erpModuleView:not([hidden]) .ep3-page) > .content{padding-left:8px!important;padding-right:8px!important}
body:not(.auth-mode) #erpModuleView:not([hidden]):has(.ep3-page){width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box}
.ep3-page{width:100%;max-width:none;box-sizing:border-box;margin:10px 0 36px;padding:0 8px}

/* Daily store profit V2 styles */
.edsp-v2{--edsp-ink:#23354b;--edsp-muted:#738196;--edsp-line:#e4eaf0;--edsp-positive:#16856c;--edsp-negative:#bd4b52;color:var(--edsp-ink);font:inherit;display:grid;gap:14px;margin:18px 0 32px}
.edsp-v2 button,.edsp-v2 input,.edsp-v2 select{font:inherit;color:inherit}
.edsp-head,.edsp-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.edsp-head h2,.edsp-section-head h3,.edsp-drawer h3{margin:0;color:#153e51}
.edsp-head p,.edsp-section-head p{margin:5px 0 0;color:var(--edsp-muted);font-size:12px}
.edsp-v2 button{border:1px solid #d8e2e9;border-radius:8px;background:#fff;cursor:pointer;padding:8px 11px;font-weight:650}
.edsp-v2 button:hover{border-color:#76a99b;color:#0e725f}
.edsp-v2 button:disabled{opacity:.45;cursor:default}
.edsp-export,.edsp-modes button.active{background:#126d5c!important;border-color:#126d5c!important;color:#fff!important}
.edsp-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px;background:#f8fafb;border:1px solid var(--edsp-line);border-radius:12px}
.edsp-modes{display:flex;gap:4px;margin-right:4px}.edsp-modes button{padding:7px 13px}
.edsp-controls input,.edsp-controls select,.edsp-detail-controls input,.edsp-detail-controls select{min-height:36px;padding:6px 9px;border:1px solid #d8e2e9;border-radius:8px;background:#fff}
.edsp-controls label{display:flex;align-items:center;gap:6px;color:var(--edsp-muted);font-size:12px}
.edsp-controls label select{max-width:210px}
.edsp-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.edsp-kpis article,.edsp-panel{min-width:0;padding:15px 16px;border:1px solid var(--edsp-line);border-radius:12px;background:#fff;box-shadow:0 3px 12px #1b324508}
.edsp-kpis article{display:grid;gap:5px;align-content:start}
.edsp-kpis article span{color:var(--edsp-muted);font-size:12px}
.edsp-kpis article b{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
.edsp-kpis article small,.edsp-v2 td small{font-size:11px;color:var(--edsp-muted)}
.edsp-kpis .edsp-kpi-profit{border-color:#b9d9d0;background:#f7fbf9}
.edsp-v2 .loss{color:var(--edsp-negative)!important}
.edsp-section-head>span{white-space:nowrap;color:var(--edsp-muted);font-size:12px}
.edsp-legend{display:flex;align-items:center;gap:6px;margin-top:12px;color:var(--edsp-muted);font-size:11px}
.edsp-legend i{width:9px;height:9px;border-radius:2px}.edsp-legend .positive{background:var(--edsp-positive);margin-left:8px}.edsp-legend .negative{background:var(--edsp-negative);margin-left:8px}
.edsp-chart-scroll{overflow-x:auto}.edsp-chart{display:block;max-width:none;margin-top:3px}
.edsp-chart .axis{stroke:#dce5ea;stroke-width:1;stroke-dasharray:3 4}.edsp-chart rect.positive{fill:#16856c}.edsp-chart rect.negative{fill:#bd4b52}.edsp-chart rect.zero{fill:#aab6c1}.edsp-chart text{fill:#718095;font-size:10px}
.edsp-section-head button{font-size:12px}.edsp-section-head button span{color:#16856c}
.edsp-table-scroll{overflow:auto;margin-top:12px}
.edsp-table{width:100%;min-width:680px;border-collapse:collapse;font-size:13px}
.edsp-table th{text-align:left;padding:10px 12px;background:#f4f7f8;color:#637388;font-size:11px;font-weight:700}
.edsp-table td{padding:11px 12px;border-top:1px solid #edf0f2;vertical-align:middle}
.edsp-table td:first-child{display:flex;align-items:center;gap:8px;min-width:260px}
.edsp-table td:first-child small,.edsp-table td.money small{display:block;color:var(--edsp-muted);font-size:11px;font-weight:450}
.edsp-table .edsp-employee{background:#fbfcfd;font-weight:650}.edsp-table .edsp-store td:first-child{padding-left:26px}.edsp-table .edsp-day td:first-child{padding-left:58px;color:#52677b}
.edsp-table .edsp-day{background:#fff}
.edsp-table .money{font-weight:750;font-variant-numeric:tabular-nums}
.edsp-expand{width:26px;height:26px;padding:0!important;color:#166d5c!important;font-size:17px!important;line-height:1}
.edsp-detail-link{margin-left:12px;padding:5px 8px!important;font-size:11px!important}
.edsp-empty,.edsp-loading,.edsp-error{padding:24px;text-align:center;color:var(--edsp-muted)}
.edsp-error{color:#a7343c;background:#fff7f7;border-radius:9px}
.edsp-diagnostics{padding:16px;border:1px solid var(--edsp-line);border-radius:12px;background:#f9fbfc}
.edsp-diagnostics article{padding:10px 0;border-top:1px solid var(--edsp-line)}.edsp-diagnostics h4{margin:4px 0 6px}.edsp-diagnostics p{margin:4px 0;color:#5f6e80;font-size:12px;overflow-wrap:anywhere}.edsp-source{padding-left:10px}
.edsp-drawer{position:fixed;z-index:10020;top:0;right:0;bottom:0;width:min(760px,94vw);padding:18px;background:#fff;box-shadow:-10px 0 36px #112b3d26;display:flex;flex-direction:column;gap:12px}
.edsp-drawer[hidden],.edsp-diagnostics[hidden]{display:none!important}
.edsp-drawer>header,.edsp-drawer>footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.edsp-drawer>header p{margin:5px 0 0;color:var(--edsp-muted);font-size:12px}.edsp-drawer>header button{font-size:22px}
.edsp-detail-controls{display:flex;flex-wrap:wrap;gap:7px}.edsp-detail-controls input{flex:1;min-width:150px}
.edsp-orders{overflow:auto;flex:1;display:grid;align-content:start;gap:8px}
.edsp-order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px;border:1px solid var(--edsp-line);border-radius:10px}
.edsp-order-main{display:grid;gap:4px}.edsp-order-main>span,.edsp-lines{font-size:11px;color:var(--edsp-muted)}.edsp-order-main em{font-size:11px;color:#a65c17;font-style:normal}.edsp-order-profit{display:grid;align-content:center;text-align:right;gap:4px}.edsp-order-profit span{font-size:11px;color:var(--edsp-muted)}.edsp-order-profit b{font-variant-numeric:tabular-nums}.edsp-order>a{grid-column:1/-1;color:#176c5d;font-size:11px;text-decoration:none}.edsp-drawer>footer{padding-top:8px;border-top:1px solid var(--edsp-line)}

@media(max-width:1100px){.edsp-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.edsp-v2{gap:10px}.edsp-head{align-items:flex-start}.edsp-head h2{font-size:18px}.edsp-head p{max-width:34ch}.edsp-controls{gap:6px}.edsp-controls label{width:calc(50% - 4px);justify-content:space-between}.edsp-controls label select{max-width:62%;min-width:0}.edsp-controls input[data-value]{flex:1;min-width:120px}.edsp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.edsp-kpis article{padding:11px}.edsp-kpis article b{font-size:19px}.edsp-kpis article:last-child{grid-column:span 2}.edsp-panel{padding:12px}.edsp-section-head{align-items:flex-start}.edsp-section-head h3{font-size:16px}.edsp-table{min-width:0}.edsp-table thead{display:none}.edsp-table,.edsp-table tbody{display:block}.edsp-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:7px 0;padding:10px;border:1px solid var(--edsp-line);border-radius:9px}.edsp-table td{display:block;border:0;padding:4px!important;min-width:0}.edsp-table td:first-child{grid-column:1/-1;min-width:0;flex-wrap:wrap}.edsp-table td:not(:first-child)::before{content:attr(data-label);display:block;color:var(--edsp-muted);font-size:10px;font-weight:500}.edsp-table .edsp-store td:first-child{padding-left:4px!important}.edsp-table .edsp-day td:first-child{padding-left:4px!important}.edsp-detail-link{margin:5px 0 0}.edsp-drawer{inset:6px;width:auto;padding:12px;border-radius:12px}.edsp-detail-controls>*{flex:1}.edsp-order{grid-template-columns:minmax(0,1fr)}.edsp-order-profit{text-align:left;display:flex;align-items:center}.edsp-order>a{grid-column:auto}}
