/* Shared report controls inherit the active skin; keep phone layout rules together. */
.list-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:16px 4px;color:var(--muted);font-size:14px}
.list-pagination button{min-height:40px}
[data-automatic-backup-status]{overflow-wrap:anywhere;line-height:1.65}
.attendance-compact-list{display:none}
.attendance-info-dialog{max-width:480px;width:calc(100% - 28px)}
.attendance-info-dialog dl>div{padding:8px 0;border-bottom:1px solid var(--line)}
.attendance-info-dialog dt{font-size:12px;color:var(--muted)}
.attendance-info-dialog dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.ledger-detail-table td[data-label="说明"],.attendance-history-table td[data-label="说明"]{white-space:normal;overflow-wrap:anywhere;max-width:30em}
@media(max-width:900px){
 body[data-page=ledgerstats] .ledger-statistics,body[data-page=payroll] .payroll-panel,body[data-page=mypayroll] .my-payroll-panel{min-width:0}
 body[data-page=ledgerstats] .ledger-statistics .table-wrap,body[data-page=payroll] .payroll-panel .table-wrap,body[data-page=mypayroll] .my-payroll-panel .table-wrap{max-width:100%;min-width:0}
 body[data-page=ledgerstats] .ledger-statistics table,body[data-page=payroll] .payroll-summary-table,body[data-page=mypayroll] .my-payroll-table{width:100%!important;min-width:0!important;table-layout:fixed}
 body[data-page=ledgerstats] .ledger-statistics :is(th,td),body[data-page=payroll] .payroll-summary-table :is(th,td),body[data-page=mypayroll] .my-payroll-table :is(th,td){padding:7px 4px!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
 body[data-page=payroll] .payroll-summary-table td:first-child,body[data-page=payroll] .payroll-summary-table th:first-child{width:20%;position:static!important}
 body[data-page=payroll] .payroll-person{padding:4px 0;min-width:0;white-space:normal!important;overflow-wrap:anywhere;font-size:13px}
 body[data-page=payroll] .payroll-person .compact-text{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
 body[data-page=payroll] .payroll-person .mobile-clip{white-space:normal;overflow:visible;max-width:none}
 body[data-page=payroll] .payroll-person .clip-full{display:inline!important}
 body[data-page=payroll] .payroll-person .clip-short{display:none!important}
 body[data-page=ledgerstats] .ledger-detail-table,body[data-page=payroll] .attendance-history-table{display:block;width:100%!important;min-width:0!important;table-layout:auto;border-collapse:separate}
 body[data-page=ledgerstats] .ledger-detail-table thead,body[data-page=payroll] .attendance-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-page=ledgerstats] .ledger-detail-table tbody,body[data-page=payroll] .attendance-history-table tbody{display:block;width:100%}
 body[data-page=ledgerstats] .ledger-detail-table tbody tr,body[data-page=payroll] .attendance-history-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;margin:0 0 12px;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--skin-surface,var(--panel))}
 body[data-page=ledgerstats] .ledger-detail-table td,body[data-page=payroll] .attendance-history-table td{display:block!important;position:static!important;min-width:0!important;max-width:none!important;width:auto!important;padding:6px 2px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;line-height:1.5;border:0;box-shadow:none!important}
 body[data-page=ledgerstats] .ledger-detail-table td::before,body[data-page=payroll] .attendance-history-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:3px}
 body[data-page=ledgerstats] .ledger-detail-table td:is([data-label="项目"],[data-label="说明"],[data-label="操作"]),body[data-page=payroll] .attendance-history-table td:is([data-label="项目"],[data-label="说明"],[data-label="操作"]){grid-column:1/-1}
 body[data-page=ledgerstats] .ledger-detail-table td[data-label="操作"],body[data-page=payroll] .attendance-history-table td[data-label="操作"]{display:flex!important;flex-wrap:wrap;gap:7px;align-items:center}
 body[data-page=ledgerstats] .ledger-detail-table td[data-label="操作"]::before,body[data-page=payroll] .attendance-history-table td[data-label="操作"]::before{width:100%}
 body[data-page=ledgerstats] .ledger-detail-table td button,body[data-page=payroll] .attendance-history-table td button{white-space:normal;min-height:36px;padding:6px 10px;font-size:13px}
 body[data-page=ledgerstats] .ledger-detail-table .picture-gallery{display:flex;flex-wrap:wrap;max-width:100%;overflow:visible}
 body[data-page=ledgerstats] .ledger-detail-table .image-thumb{flex:0 0 40px}
 body[data-page=payroll] [data-attendance-page]>.table-wrap{display:none}
 body[data-page=payroll] .attendance-compact-list{display:grid;gap:7px}
 body[data-page=payroll] .attendance-two-lines{min-width:0;border:1px solid var(--line);border-radius:6px;padding:6px 8px;background:var(--skin-surface,var(--panel));line-height:1.3}
 body[data-page=payroll] .attendance-line-one{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:7px;align-items:center;min-height:25px;font-size:12px}
 body[data-page=payroll] .attendance-line-one>time,body[data-page=payroll] .attendance-line-one>span{white-space:nowrap}
 body[data-page=payroll] .attendance-project-info{display:block;min-width:0!important;width:100%;min-height:25px!important;padding:2px 0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;transform:none!important;font-size:13px;text-align:left;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 body[data-page=payroll] .attendance-line-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:5px;align-items:center;min-height:30px;font-size:12px}
 body[data-page=payroll] .attendance-line-two>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-page=payroll] .attendance-line-two small{font-size:11px;color:var(--muted)}
 body[data-page=payroll] .attendance-compact-actions{display:flex;gap:5px;white-space:nowrap}
 body[data-page=payroll] .attendance-compact-actions button{min-width:0!important;min-height:28px!important;padding:4px 7px!important;margin:0!important;font-size:11px!important;line-height:1.2;white-space:nowrap!important;transform:none!important}
}

.ledger-compact-list{display:none}
@media(max-width:900px){
 body[data-page=ledgerstats] .ledger-detail-desktop{display:none}
 body[data-page=ledgerstats] .ledger-compact-list{display:grid;gap:7px}
 body[data-page=ledgerstats] .ledger-two-lines{min-width:0;border:1px solid var(--line);border-radius:6px;padding:6px 8px;background:var(--skin-surface,var(--panel));line-height:1.3}
 body[data-page=ledgerstats] .ledger-line-one{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:7px;align-items:center;min-height:25px;font-size:12px}
 body[data-page=ledgerstats] .ledger-line-one>time,body[data-page=ledgerstats] .ledger-line-one>span{white-space:nowrap}
 body[data-page=ledgerstats] .ledger-project-info{display:block;min-width:0!important;width:100%;min-height:25px!important;padding:2px 0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;transform:none!important;font-size:13px;text-align:left;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 body[data-page=ledgerstats] .ledger-line-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:5px;align-items:center;min-height:30px;font-size:12px}
 body[data-page=ledgerstats] .ledger-line-two>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-page=ledgerstats] .ledger-line-two small{font-size:11px;color:var(--muted)}
 body[data-page=ledgerstats] .ledger-compact-actions{display:flex;gap:5px;white-space:nowrap}
 body[data-page=ledgerstats] .ledger-compact-actions button{min-width:0!important;min-height:28px!important;padding:4px 7px!important;margin:0!important;font-size:11px!important;line-height:1.2;white-space:nowrap!important;transform:none!important}

}
@media(max-width:900px){body[data-role] .mobile-dock[data-items="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-role] .mobile-dock[data-items="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-role] .mobile-dock[data-items="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-role] .mobile-dock[data-items="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}}.mobile-profile[hidden]{display:none!important}
