:root{--ink:#172c3b;--muted:#657785;--line:#e2e9ed;--navy:#183345;--teal:#127c77;--bg:#f4f7f8;--amber:#9a6218}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 'Microsoft YaHei','PingFang SC',Arial,sans-serif}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus,select:focus{outline:3px solid #71b5ba;outline-offset:3px}button:disabled{opacity:.45;cursor:default}button,select,input{border-radius:7px}input,select{border:1px solid #ccd8de;background:#fff;color:var(--ink);height:40px;padding:7px 10px;min-width:0}button{border:0;background:none;color:inherit}.primary,.secondary{padding:9px 18px;min-height:40px;white-space:nowrap}.primary{background:var(--teal);color:white}.primary:hover{background:#086560}.secondary{border:1px solid #d3dfe4;background:white}.secondary:hover{background:#edf3f5}.topbar{background:white;border-bottom:1px solid var(--line);padding:20px 34px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand-mark{background:var(--navy);color:white;font-size:22px;font-weight:700;width:44px;height:44px;border-radius:10px;display:grid;place-items:center}.brand strong{display:block;font-size:17px;letter-spacing:.04em}.brand-note{font-size:11px;color:var(--muted);letter-spacing:.08em}.local-tag{border:1px solid #d4e6e1;border-radius:20px;padding:4px 13px;font-size:12px;color:#39735c}.local-tag i{display:inline-block;background:#538d6f;width:6px;height:6px;border-radius:50%;margin-right:7px}.layout{display:grid;grid-template-columns:196px minmax(0,1fr);max-width:1700px;margin:0 auto}aside{border-right:1px solid var(--line);padding:34px 18px;min-height:calc(100vh - 85px)}.nav-label{font-size:11px;letter-spacing:.12em;color:#8a98a0;margin:0 14px 18px}.nav{display:flex;justify-content:space-between;text-decoration:none;color:#627482;padding:12px 14px;margin-bottom:7px;border-radius:7px}.nav span{font-size:10px;opacity:.6}.nav.active{background:#e5eef0;color:var(--navy);font-weight:700}.nav:hover{background:#e9f0f2}.aside-note{margin:58px 14px 0;color:var(--muted);font-size:12px}.aside-note strong{color:#425d6d}.aside-note p{line-height:1.9}main{padding:34px 36px 25px;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--teal);font-weight:700}h1{font-size:27px;letter-spacing:.02em;line-height:1.4;margin:7px 0}p{margin:4px 0;color:var(--muted)}h2{margin:0;font-size:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px 21px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 3px 9px #1c344003}.stat>span{color:var(--muted);font-size:12px}.stat strong{font-size:34px;letter-spacing:-.04em;font-weight:600;line-height:1.4;margin:7px 0 9px;font-variant-numeric:tabular-nums}.stat small{display:block;font-size:10px;width:100%;color:var(--muted)}.stat b{float:right;color:var(--teal)}button.stat:hover{border-color:#82aaa9;background:#fcffff}.stat.amber{background:#fffcf6}.stat.amber strong{color:var(--amber)}.stat.amount strong{font-size:29px}.panel{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:23px;overflow:hidden}.section-heading{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading>span,.section-heading p{font-size:11px;color:var(--muted)}.filters .section-heading{padding-bottom:14px}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 20px;padding:0 22px 18px}label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:500}input,select{width:100%}.filter-bottom{background:#fafcfc;border-top:1px solid #edf1f3;padding:14px 22px;display:flex;justify-content:space-between;align-items:center;gap:14px}.filter-bottom>span{font-size:11px;color:var(--muted)}.actions{display:flex;gap:8px}.inline-select{flex-direction:row;align-items:center;white-space:nowrap;color:var(--muted);font-size:11px}.inline-select select{width:68px;height:34px}.count-badge{font-size:11px;font-weight:400;padding:2px 9px;margin-left:8px;background:#edf3f5;border-radius:4px;color:#526f80}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;text-align:left}th{background:#f6f8f9;color:#697e8b;font-size:11px;font-weight:500;padding:12px 20px;border-bottom:1px solid var(--line)}td{padding:15px 20px;border-bottom:1px solid #edf1f3;max-width:270px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fbfb}.number{text-align:right;font-variant-numeric:tabular-nums}.model-sub{display:block;color:#81929c;font-size:10px;margin-top:2px}.tag{font-size:10px;padding:3px 8px;border-radius:4px;background:#fdf1de;color:#966326;white-space:nowrap}.tag.known{background:#e8f4ef;color:#327758}.suspect{display:block;font-size:10px;color:#a36b22;margin-top:2px}.link{color:#087c79;font-size:12px;padding:0;text-decoration:underline;text-underline-offset:3px}.pagination{padding:16px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.pagination .secondary{font-size:11px;min-height:33px;padding:5px 11px}.rank-controls{display:flex;gap:8px}.rank-controls select{font-size:11px;height:34px;width:auto}.rank-table th:first-child,.rank-table td:first-child{width:60px;color:#8c9ca7}.rank-table th:nth-child(2){width:45%}.month-list{padding:0 22px 20px;display:flex;flex-wrap:wrap;gap:10px}.month-item{border:1px solid var(--line);padding:12px 18px;text-align:left;border-radius:6px;min-width:150px}.month-item:hover{border-color:#83a8a6}.month-item span{font-size:11px;color:var(--muted)}.month-item strong{display:block;font-size:20px;font-variant-numeric:tabular-nums}.month-item small{font-size:10px;color:var(--muted)}footer{display:flex;justify-content:space-between;font-size:10px;color:#83929c;padding:4px 0 15px}#error{border:1px solid #e8b8b8;background:#fff0ed;color:#a03535;padding:14px 18px;border-radius:8px;margin-bottom:20px}#loading{font-size:12px;color:#5e7d87;margin-bottom:14px}#empty{text-align:center;padding:45px 20px;color:#6b818c}#empty p{font-size:12px}#rank-empty{padding:10px 22px 22px}dialog{width:min(660px,calc(100% - 28px));padding:25px;border:1px solid var(--line);border-radius:12px;max-height:88vh;color:var(--ink);box-shadow:0 20px 80px #182e4140}dialog::backdrop{background:#102c4270;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:19px;border-bottom:1px solid var(--line)}.detail-grid{display:grid;grid-template-columns:135px minmax(0,1fr);gap:0;margin:14px 0 0}.detail-grid dt,.detail-grid dd{margin:0;padding:10px 0;border-bottom:1px solid #edf1f3;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px}.detail-grid dt{color:var(--muted)}.detail-grid dd{padding-left:16px}.detail-message{padding:20px 0;color:var(--muted)}[hidden]{display:none!important}@media(min-width:1450px){.filter-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.stat strong{font-size:38px}}@media(max-width:1050px){.layout{grid-template-columns:150px minmax(0,1fr)}main{padding:27px 22px}.stats{gap:10px}.stat{padding:17px 14px}.stat small{font-size:9px}.stat strong{font-size:29px}.rank-heading{align-items:flex-start;flex-direction:column}}@media(max-width:760px){.topbar{padding:15px 18px}.brand strong{font-size:14px}.brand-note{font-size:10px}.local-tag{font-size:10px;padding:3px 8px}.layout{display:block}aside{display:none}main{padding:24px 16px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.page-heading .secondary{padding:8px 12px;font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:17px}.stat strong{font-size:32px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:0 16px 17px}.section-heading{padding:17px 16px}.section-heading>span{display:none}.filter-bottom{padding:13px 16px;align-items:flex-start;flex-direction:column}.actions{align-self:flex-end}.table-scroll{border-top:1px solid #edf1f3}.records-panel table{min-width:770px}th,td{padding:13px 16px}.rank-controls{width:100%;flex-wrap:wrap}.rank-controls select{flex:1;min-width:100px}.rank-table{min-width:540px}.pagination{padding:14px 16px}.month-list{padding:0 16px 17px}.month-item{flex:1}.detail-grid{grid-template-columns:105px minmax(0,1fr)}footer{gap:8px;flex-direction:column}dialog{padding:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:root{--calendar-accent:#127c77}
.calendar-panel .section-heading{align-items:flex-start}.year-controls{display:flex;align-items:flex-end;gap:8px}.year-controls label{gap:4px;font-size:10px;color:var(--muted)}.year-controls input{width:94px;height:36px}.year-controls button{min-height:36px;padding:6px 12px;font-size:11px}.month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 22px 20px}.month-choice{border:1px solid var(--line);border-radius:8px;padding:13px 14px;display:flex;align-items:flex-start;flex-direction:column;background:#fff;text-align:left;transition:background .1s}.month-choice:hover{border-color:#6bada6;background:#f5fbfa}.month-choice .month-name{font-size:12px;font-weight:600}.month-choice strong{font-size:24px;font-weight:600;line-height:1.4;margin:3px 0;font-variant-numeric:tabular-nums}.month-choice small{font-size:10px;color:var(--muted)}.month-choice.selected{border-color:var(--teal);background:#e8f5f2;box-shadow:inset 0 0 0 1px var(--teal)}.month-choice.selected .month-name,.month-choice.selected strong{color:#0e736a}.calendar-caption{display:flex;justify-content:space-between;gap:15px;padding:12px 22px;background:#f7fbfa;border-top:1px solid #e7efeb;font-size:11px;color:#52766c}.monthly-view .filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#rank-empty{text-align:center;padding:35px 20px}#rank-empty strong{color:#6a7e88;font-weight:500}#rank-empty p{font-size:12px}.calendar-panel{margin-bottom:20px}
@media(max-width:1050px){.year-controls{flex-wrap:wrap}.month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.calendar-panel .section-heading{flex-wrap:wrap}.monthly-view .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){aside{display:block;min-height:auto;padding:10px 16px;background:#fff;border-right:0;border-bottom:1px solid var(--line)}aside .nav-label,aside .aside-note{display:none}aside nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}aside .nav{padding:9px 12px;margin:0;font-size:12px}aside .nav span{display:none}.month-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 16px 17px;gap:8px}.month-choice{padding:11px 12px}.month-choice strong{font-size:22px}.calendar-caption{flex-direction:column;gap:2px;padding:11px 16px}.year-controls{width:100%;justify-content:space-between;gap:5px}.year-controls label{flex:1}.year-controls input{width:100%}.year-controls button{padding:6px 10px}.calendar-panel .section-heading{gap:12px}.page-heading{align-items:flex-start}.monthly-view .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.layout{grid-template-columns:240px minmax(0,1fr)}.nav{font-size:12px;padding:10px 12px}.aside-note{margin-top:25px}.rank-table{min-width:740px}.rank-table th:nth-child(2){width:30%}.category-toggle{display:block;margin-top:7px;font-size:10px;color:#6c858c}.category-children>td{padding:0;white-space:normal;max-width:none}.category-box{padding:18px 22px;background:#f3f8f7;border-top:1px solid #d9e8e2}.category-box h3{font-size:13px;margin:0 0 12px}.category-box table{background:white}.category-box th{background:#e9f0ed}.year-controls select{height:36px;font-size:11px;width:115px}.month-choice strong{font-size:21px}.month-choice small{white-space:normal}.monthly-view .filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1050px){.layout{grid-template-columns:200px minmax(0,1fr)}.calendar-panel .section-heading{flex-direction:column}.year-controls{justify-content:flex-start;width:100%}.monthly-view .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.layout{display:block}.nav{font-size:11px}aside nav{grid-template-columns:repeat(2,minmax(0,1fr))}.year-controls{flex-wrap:wrap;justify-content:flex-start}.year-controls label{flex:none}.year-controls input{width:80px}.year-controls select{width:115px}.category-box{padding:12px}.monthly-view .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rank-table{min-width:680px}}
@media(min-width:761px){aside{position:sticky;top:0;height:100vh;align-self:start;overflow-y:auto}}

[hidden]{display:none!important}

.records-panel th,.records-panel td{padding-left:12px;padding-right:12px}.records-panel td:nth-child(3){max-width:230px}.records-panel table{min-width:1050px}

.overall-panel .section-heading{padding-bottom:16px}.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:0 22px 22px}.overview-grid>div{display:flex;flex-direction:column;gap:6px}.overview-grid span{font-size:12px;color:var(--muted)}.overview-grid strong{font-size:27px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.overview-grid small{font-size:11px;color:#966326}.today-overview{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-top:1px solid var(--line);background:#f7fbfa}.today-overview strong{font-size:14px}.today-overview p{font-size:13px;margin:7px 0}.today-overview small{font-size:11px;color:var(--muted)}.scope-summary-title{font-size:15px;margin:22px 0 12px}.overview-error,#daily-error{padding:14px;color:#a03535;background:#fff0ed}.daily-controls{display:flex;align-items:end;gap:12px;padding:20px;flex-wrap:wrap}.daily-controls label{display:grid;gap:6px}.daily-page .daily-batches{min-width:900px}.daily-expanded>td{padding:0;max-width:none;white-space:normal}.daily-detail-box{padding:18px;background:#f3f8f7}.daily-detail-box h3{font-size:13px}.daily-detail-box table{min-width:1150px;background:white}.daily-detail-box td{max-width:280px;white-space:normal;overflow-wrap:anywhere}.daily-page .stat strong{overflow-wrap:anywhere} @media(max-width:760px){.overview-grid{grid-template-columns:1fr;gap:16px;padding:0 16px 18px}.overview-grid strong{font-size:25px}.today-overview{align-items:flex-start;flex-direction:column;padding:16px}.daily-controls{padding:16px}.today-overview a{align-self:flex-end}}

.table-totals-scroll{max-height:min(66vh,680px);overflow:auto;position:relative;overscroll-behavior:contain;scrollbar-gutter:stable}.has-sticky-totals{border-collapse:separate;border-spacing:0}.has-sticky-totals>thead{position:sticky;top:0;z-index:8;background:#f5f8f8;box-shadow:0 2px 0 #bdd6ce}.has-sticky-totals>thead>tr[data-table-totals]>td{background:#eaf3f1;color:#173e3a;font-weight:600;white-space:normal;overflow-wrap:anywhere;padding-top:13px;padding-bottom:13px;border-bottom:1px solid #d5e4df}.has-sticky-totals>thead>tr[data-table-totals]:last-child>td{background:#f4f8f7}.has-sticky-totals>thead>tr[data-table-totals]>td:first-child{min-width:130px;max-width:none;white-space:nowrap;color:#173e3a}.nested-totals-scroll{max-height:420px}.has-sticky-totals>thead>tr[data-table-totals]>td.number{text-align:right;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}@media(max-width:760px){.table-totals-scroll{max-height:65vh}.has-sticky-totals>thead>tr[data-table-totals]>td{padding-top:10px;padding-bottom:10px}.has-sticky-totals>thead>tr[data-table-totals]>td:first-child{min-width:112px}}
/* Compact displays scroll through all rows with the page. Wide tables keep horizontal scrolling. */
.table-totals-scroll {
    overscroll-behavior-y: auto;
}

.has-sticky-totals th.number,.has-sticky-totals td.number{min-width:72px}
.has-sticky-totals td.number{overflow:visible;text-overflow:clip}
@media (min-width:701px) and (max-width:1000px){.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 1280px), (max-height: 800px) {
    .table-totals-scroll {
        max-height: none;
        scrollbar-gutter: auto;
    }

    .has-sticky-totals > thead {
        position: static;
    }
}


/* The same navigation surrounds every signed-in workbench view. */
.workspace-layout.layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    max-width: none;
}
.workspace-layout > main.admin-main {
    width: 100%;
    max-width: none;
}
.workspace-layout > main .table-scroll {
    max-width: 100%;
}
.amount-in-wan {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}
.stat strong .amount-in-wan,
.overview-grid strong .amount-in-wan,
.month-choice strong .amount-in-wan {
    font-size: 0.6em;
}
.workspace-layout > main .pagination {
    flex-wrap: wrap;
    gap: 8px 16px;
}
.workspace-layout > .workspace-sidebar {
    display: block;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 20px 12px 26px;
    border-right: 1px solid var(--line);
    background: var(--bg);
}
.workspace-sidebar #workspace-menu {
    display: block;
}
.workspace-menu-group + .workspace-menu-group {
    margin-top: 16px;
}
.workspace-sidebar .nav-label {
    display: block;
    margin: 0 10px 6px;
}
.workspace-sidebar .nav {
    font-size: 12px;
    padding: 8px 10px;
    margin: 1px 0;
}
.workspace-sidebar [hidden] {
    display: none;
}
.workspace-menu-toggle,
.workspace-ready > .topbar > a {
    display: none;
}
.workspace-ready > .topbar > .local-tag {
    margin-left: auto;
}
@media (max-width: 980px) {
    .workspace-layout.layout {
        grid-template-columns: 174px minmax(0, 1fr);
    }
}
@media (max-width: 700px) {
    .workspace-layout.layout {
        display: block;
    }
    .workspace-layout > .workspace-sidebar {
        z-index: 12;
        height: auto;
        padding: 8px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .workspace-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        background: #e5eef0;
        color: var(--navy);
    }
    .workspace-menu-toggle::after {
        content: '▾';
    }
    .workspace-menu-toggle[aria-expanded="true"]::after {
        content: '▴';
    }
    .workspace-sidebar #workspace-menu {
        display: none;
    }
    .workspace-sidebar.menu-open #workspace-menu {
        display: block;
        max-height: 65vh;
        overflow-y: auto;
        padding: 10px 0;
    }
    .workspace-sidebar .workspace-menu-group:not([hidden]) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-menu-group > .nav-label {
        grid-column: 1 / -1;
    }
    .workspace-layout > main {
        padding-inline: 12px;
    }
    .workspace-layout > main .section-heading,
    .workspace-layout > main .actions {
        flex-wrap: wrap;
    }
    .workspace-layout > main .section-heading > div,
    .workspace-layout > main .pagination > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
