/* Original-site measurements: 180px navigation, 50px header, 36px tabs. */
body.classic-ledger{--ledger-side:180px;--ledger-top:50px;font-size:14px}
.classic-ledger .ledger-header{padding:0 12px;gap:18px}
.ledger-home{width:30px;height:30px}.ledger-home svg{width:19px;height:19px}
.classic-ledger .ledger-header #book-picker{width:312px;font-size:14px;font-weight:400;height:32px;padding:0 10px;min-width:180px}
.ledger-period{font-size:14px;gap:12px}.ledger-period select{width:128px;height:30px;font-size:14px;padding:0 7px}
.ledger-header-actions{gap:2px;min-width:0;margin-left:auto}.ledger-header-actions>a{font-size:12px;padding:0 8px}.ledger-header-actions .header-link{font-size:12px;padding:0 7px!important;height:30px;min-width:0}
.ledger-group-head{height:46px;gap:14px;font-size:14px;padding:0 18px!important}.ledger-group-head i{width:20px;height:20px;font-size:16px;display:flex;align-items:center;justify-content:center}.ledger-group-head i svg{width:19px;height:19px}.ledger-group.selected>.ledger-group-head i{width:24px;height:24px;margin-left:-2px;margin-right:-2px}.ledger-group.selected>.ledger-group-head i svg{width:16px;height:16px}.ledger-group-items button{height:42px;font-size:14px;padding-left:52px!important}.ledger-group-items{padding-bottom:0}.ledger-sidebar-foot{font-size:11px;padding:8px}
.ledger-menu{padding-top:0}.pr-page button:disabled{opacity:1}
.ledger-tabs{height:36px}.ledger-open-tab{font-size:14px}.ledger-open-tab button{font-size:14px!important;padding:0 12px!important}.ledger-open-tab>button:last-child{padding:0 9px 0 0!important;font-size:15px!important}.ledger-open-tab.active{background:#f5f5f5;border-bottom:2px solid #ff8045}
body[data-accounting-tab=payroll] main.ledger-content,body[data-accounting-tab=employeeRecords] main.ledger-content{padding:0!important;margin:0;border:0;background:#f5f6f8}
.pr-page{height:calc(100vh - 86px);min-height:500px;display:flex;flex-direction:column;font:14px Arial,'Microsoft YaHei',sans-serif;color:#444;overflow:hidden}
.pr-page button,.pr-page input,.pr-page select{font:14px Arial,'Microsoft YaHei',sans-serif;height:30px;border:1px solid #d4d6db;border-radius:2px;background:white;padding:0 12px;min-width:0;box-sizing:border-box}
.pr-page button{white-space:nowrap}.pr-page button:disabled{color:#b8bcc3;border-color:#e1e3e7;background:#fafafa;cursor:not-allowed}.pr-page button.primary,.pr-person-modal button.primary,.pr-import-modal button.primary{background:#ff8045;border-color:#ff8045;color:white}
.pr-page .spacer{flex:1}.pr-month{height:46px;min-height:46px;display:flex;align-items:center;gap:10px;padding:0 20px;background:#fafafa;border-bottom:1px solid #e5e6e9}.pr-month input{width:150px;height:30px;padding:0 8px}
.pr-tabs{height:42px;min-height:42px;background:#fff;border-bottom:1px solid #e4e6ea;display:flex;padding-left:20px;gap:28px}.pr-tabs button{border:0;border-radius:0;height:42px;padding:0 4px;background:transparent!important;color:#555!important}.pr-tabs button.active{color:#ff8045!important;border-bottom:2px solid #ff8045}.pr-tabs button:disabled{color:#b8bcc3!important}
.pr-workarea{padding:20px 20px 21px;flex:1;min-height:0;display:flex;flex-direction:column}.pr-toolbar{display:flex;align-items:center;gap:10px;height:51px;min-height:51px;background:white;padding:0 0 10px;position:relative;z-index:4}.pr-toolbar>.pr-outline{color:#ff8045;border-color:#ff8045}.pr-toolbar>.primary{color:white}.pr-freeze{white-space:nowrap;font-size:12px;color:#888;cursor:help}.pr-search{display:flex;align-items:center;border:1px solid #d4d6db;border-radius:2px;height:30px;max-width:220px;background:white}.pr-search>span{padding:0 9px;white-space:nowrap;border-right:1px solid #ddd;font-size:12px}.pr-search input{width:160px;border:0!important;outline:none!important;background:transparent;font-size:12px;padding:0 8px}.pr-search button{border:0;padding:0 7px;font-size:20px;color:#999;background:transparent}
.pr-menu{position:relative;height:30px}.pr-menu summary{list-style:none;cursor:pointer;height:30px;display:flex;align-items:center;gap:13px;border:1px solid #ff8045;color:#ff8045;padding:0 10px;border-radius:2px;white-space:nowrap;box-sizing:border-box}.pr-menu summary::-webkit-details-marker{display:none}.pr-menu summary>span{border-left:1px solid #ffd4bf;padding-left:8px}.pr-menu:nth-of-type(2) summary{color:white;background:#ff8045}.pr-menu:nth-of-type(3) summary{color:#888;border-color:#ddd}.pr-menu>div{position:absolute;top:34px;left:0;z-index:20;min-width:180px;padding:5px 0;background:white;border:1px solid #ddd;box-shadow:0 3px 12px #0002}.pr-menu>div button{display:block;width:100%;text-align:left;border:0;border-radius:0;height:34px;padding:0 14px;background:white;color:#555}.pr-menu>div button:hover{background:#fff4ee}.pr-menu[open] summary{box-shadow:0 0 0 1px #ffaf88}
.pr-sheet{flex:1;min-height:0;display:flex;flex-direction:column;background:white;border:1px solid #ddd;overflow:hidden}.pr-grid-scroll{position:relative;overflow:auto;flex:1;min-height:0}.pr-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:14px;white-space:nowrap;color:#444}.pr-grid th,.pr-grid td{height:40px;border-right:1px solid #e2e3e7;border-bottom:1px solid #e2e3e7;padding:0 12px;box-sizing:border-box;background:white;font-weight:400;overflow:hidden;text-overflow:ellipsis}.pr-grid th{height:50px;background:#eee;position:sticky;top:0;z-index:2;text-align:center}.pr-grid th:last-child,.pr-grid td:last-child{border-right:0}.pr-grid .num{text-align:right;font-variant-numeric:tabular-nums}.pr-grid input[type=checkbox]{width:14px;height:14px;min-height:0;padding:0;accent-color:#ff8045;margin:0;vertical-align:middle}.pr-grid .pr-check{width:40px;text-align:center;padding:0;position:sticky;left:0;z-index:1}.pr-grid .pr-name{position:sticky;left:40px;z-index:1}.pr-grid th.pr-check,.pr-grid th.pr-name{z-index:3}.pr-grid .pr-fixed{position:sticky;z-index:2;width:150px;background:#fff}.pr-grid .pr-fixed-1{right:0}.pr-grid .pr-fixed-2{right:150px;box-shadow:-4px 0 4px -4px #aaa}.pr-grid th.pr-fixed{background:#edf5fc;z-index:4}.pr-grid tfoot td{height:37px;background:#fffbe6;position:sticky;bottom:0;border-bottom:0;z-index:2}.pr-grid tfoot .pr-fixed{background:#edf5fc;z-index:3}.pr-grid tfoot .pr-name{z-index:3}.pr-grid tbody tr:hover td{background:#f2f8ff}.pr-grid .pr-link{color:#438fd0;border:0;background:none;padding:0;height:auto}.pr-grid .pr-expand{color:#408dce;border:0;background:transparent;padding:0 0 0 15px;font-size:18px;height:24px}.pr-is-empty .pr-grid{height:100%}.pr-empty-spacer td{height:auto;padding:0;border-bottom:0;background:#fff!important}.pr-empty{position:absolute;top:50px;left:0;right:0;bottom:37px;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;z-index:3;background:white}.pr-empty svg{width:140px;height:100px;margin-bottom:5px}.pr-empty p{font-size:14px;margin:7px 0 10px}.pr-empty small{font-size:12px;color:#999;margin-bottom:18px}.pr-empty button{pointer-events:auto;font-size:14px;padding:0 18px}
.pr-pager{height:48px;min-height:48px;padding:0 14px;display:flex;align-items:center;gap:10px;font-size:12px;color:#888;border-top:1px solid #e6e6e6;background:white}.pr-pager>span{white-space:nowrap}.pr-pager button{height:26px;padding:0 8px;color:#888;border-color:#e2e2e2}.pr-pager button:first-of-type,.pr-pager button:nth-of-type(2){border:0;background:#f6f7fa;font-size:22px;width:24px;padding:0}.pr-pager select{height:27px;width:106px;font-size:12px;padding:0 6px}.pr-pager input{width:42px;height:26px;padding:0 5px;font-size:12px}.pr-pager input::-webkit-inner-spin-button{display:none}
.pr-employee-body{padding:0 20px 21px;flex:1;min-height:0;display:flex;flex-direction:column;background:white}.pr-stats{height:48px;min-height:48px;display:flex;align-items:center;gap:35px;font-size:12px}.pr-stats b{font-weight:400;color:#ff8045}.pr-stats i,.pr-import-form i{border:1px solid #b7bcc5;color:#999;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;font:10px Arial;font-style:normal}.pr-employees .pr-month{height:50px;min-height:50px;background:#fff;border-bottom:0}.pr-employees .pr-toolbar{height:48px;min-height:48px;padding-bottom:5px}.pr-employees .pr-menu summary{color:#555;border-color:#d4d6db}.pr-filters{display:flex;align-items:center;height:48px;min-height:48px;gap:26px;border-bottom:0}.pr-filters>div:first-child{display:flex;align-self:stretch;gap:24px}.pr-filters button{border:0;padding:0;border-radius:0;background:transparent}.pr-filters button.active{border-bottom:2px solid #ff8045;color:#ff8045}.pr-filters .pr-status{display:flex;gap:20px;font-size:12px}.pr-status label{display:flex;align-items:center;gap:5px;white-space:nowrap}.pr-status input{width:14px;height:14px;padding:0;margin:0;accent-color:#ff8045}.pr-filters>button{font-size:12px;color:#bbb}.pr-employee-grid{min-width:3300px}.pr-employee-grid th{height:40px}.pr-employee-grid th,.pr-employee-grid td{width:145px}.pr-employee-grid .pr-check{width:40px}.pr-employee-grid .pr-employee-code{position:sticky;left:40px;width:120px;z-index:1}.pr-employee-grid .pr-employee-name{position:sticky;left:160px;width:150px;z-index:1}.pr-employee-grid th.pr-employee-code,.pr-employee-grid th.pr-employee-name{z-index:3}.pr-employee-empty{position:absolute;top:40px;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;color:#999;font-size:14px}.pr-employees .pr-pager{border-top:1px solid #ddd}
.classic-ledger .pr-person-modal,.classic-ledger .pr-import-modal{width:1000px;max-width:calc(100vw - 40px);padding:0;border-radius:3px;position:relative;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 4px 14px #0004}
.pr-person-modal{height:658px;max-height:calc(100vh - 64px)!important}.pr-person-modal .modal-head,.pr-import-modal .modal-head{height:46px;min-height:46px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid #e5e5e5;margin:0}.classic-ledger .pr-person-modal h2,.classic-ledger .pr-import-modal h2{font-size:16px;font-weight:400;margin:0}.pr-person-modal .modal-head button,.pr-import-modal .modal-head button{border:0;background:transparent;color:#aaa;font-size:18px;padding:0}.pr-person-modal .actions{height:64px;min-height:64px;display:flex;justify-content:center;align-items:center;gap:10px;border-top:1px solid #e5e5e5;margin:0;padding:0}.pr-person-modal .actions button{height:30px;min-width:80px;padding:0 16px;font-size:14px}.pr-person-modal .pr-outline{color:#ff8045;border-color:#ff8045;background:#fff}.pr-person-modal #form-error:empty,.pr-import-modal #form-error:empty{display:none}.pr-person-modal #form-error,.pr-import-modal #form-error{margin:0;padding:4px 20px;font-size:12px}.pr-person-modal #biz-employee-form{display:flex;flex:1;min-height:0;overflow:hidden}.pr-person-nav{width:110px;min-width:110px;border-right:1px solid #e5e5e5;background:#fafafa;overflow:auto}.pr-avatar{width:80px;height:90px;margin:12px 15px 5px;display:flex;align-items:center;justify-content:center}.pr-avatar svg{width:68px;height:68px;fill:#d8dade}.pr-person-nav button{width:100%;height:38px;border:0!important;background:transparent;font-size:12px;border-radius:0}.pr-person-nav button.active{color:#ff8045;background:#fff0e8;border-right:2px solid #ff8045!important}.pr-person-content{flex:1;min-width:0;padding:18px 20px;overflow-y:auto}.pr-person-content section[hidden]{display:none}.pr-person-content h3{font-size:14px;font-weight:400;border-left:3px solid #ff8045;padding-left:8px;margin:0 0 15px}.pr-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:18px}.pr-field{display:flex;align-items:center;min-width:0;font-size:12px;height:30px;gap:8px}.pr-field>span{width:137px;min-width:137px;text-align:right;line-height:1.35}.pr-field>span em{color:#f66;font-style:normal;margin-right:4px}.pr-field>input:not([type=checkbox]),.pr-field>select{width:100%;min-width:0;height:30px;padding:0 8px;font-size:12px;border:1px solid #d9dce2;border-radius:2px;box-sizing:border-box;background:#fff}.pr-field>input:disabled,.pr-field>select:disabled{background:#f5f6f8;color:#aaa}.pr-radio{display:flex;gap:20px}.pr-radio label{display:flex;align-items:center;gap:5px}.pr-radio input{accent-color:#ff8045}.pr-form-note{color:#999;font-size:12px;line-height:1.8;margin:22px 10px 0 145px}.pr-field>input[type=checkbox]{width:15px;height:15px;accent-color:#ff8045}
.pr-import-modal{height:600px;max-height:calc(100vh - 64px)!important}.pr-import-form{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:20px;gap:20px}.pr-import-form>label,.pr-import-options label{display:flex;align-items:center;gap:16px;width:480px;height:30px;font-size:14px}.pr-import-form label>span:first-child{width:100px;text-align:right;flex-shrink:0}.pr-import-form input{height:30px;width:260px;border:1px solid #d6d9df;border-radius:2px;min-width:0;font-size:14px;padding:0 10px;box-sizing:border-box}.pr-file-line input[readonly]{width:260px}.pr-file-button{position:relative;overflow:hidden;height:30px;border:1px solid #cdd0d8;display:flex;align-items:center;justify-content:center;padding:0 14px;white-space:nowrap;border-radius:2px;font-size:14px;cursor:pointer}.pr-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}.pr-import-notes{font-size:12px;line-height:2;color:#999;width:480px;padding-left:116px;box-sizing:border-box}.pr-import-notes button.pr-link{color:#41a5da;border:0;padding:0;background:transparent;font-size:12px;display:inline}.pr-import-options{width:480px;padding-left:116px;box-sizing:border-box;font-size:12px;color:#999}.pr-import-options summary{cursor:pointer}.pr-import-options label{width:364px;margin-top:10px;font-size:12px}.pr-import-options label>span:first-child{width:70px;text-align:left}.pr-import-options input{width:240px}.pr-import-form>.primary{height:32px;padding:0 26px;margin-top:4px;min-width:104px;border-radius:2px}.pr-import-foot{height:46px;min-height:46px;background:#fafafa;border-top:1px solid #eee;color:#41a5da;padding:0 20px;display:flex;align-items:center;font-size:12px}
@media(max-width:1200px){.classic-ledger .ledger-header #book-picker{width:235px}.ledger-header-actions .header-link{display:block}.ledger-header-actions>a{padding:0 4px}.classic-ledger .ledger-header{gap:10px}.pr-toolbar{gap:7px}.pr-freeze{display:none}.pr-search{max-width:185px}.pr-fields{column-gap:10px}.pr-field>span{width:125px;min-width:125px}}
@media(max-width:900px){.ledger-header-actions .header-link:nth-last-child(n+3){display:none}.pr-page{overflow:auto;min-width:780px}.pr-person-modal{max-width:calc(100vw - 20px)!important}.pr-fields{grid-template-columns:1fr}.pr-person-content{padding:15px}.pr-field>span{width:150px;min-width:150px}.pr-form-note{margin-left:0}}
@media print{.pr-page{height:auto;overflow:visible}.pr-workarea,.pr-employee-body{padding:0}.pr-toolbar,.pr-month,.pr-tabs,.pr-filters,.pr-stats,.pr-pager{display:none}.pr-sheet,.pr-grid-scroll{display:block;overflow:visible}.pr-grid{min-width:0!important;font-size:10px}.pr-grid th,.pr-grid td{position:static!important;padding:3px!important}.pr-grid .pr-check{display:none}.pr-grid th,.pr-grid tfoot td{background:#eee!important}}
.pr-payroll .pr-toolbar{border:1px solid #ddd;border-bottom:0;padding:10px 12px;gap:8px}.pr-payroll .pr-empty{padding-left:80px}.pr-payroll .pr-check{width:60px}.pr-payroll .pr-name{left:60px}.pr-freeze svg{width:13px;height:13px;vertical-align:-2px}
.shade:has(.pr-person-modal),.shade:has(.pr-import-modal){background:#0009}
.pr-import-form{justify-content:flex-start;padding-top:180px;padding-bottom:20px;position:relative;gap:20px}.pr-import-notes{line-height:18px}.pr-import-options{position:absolute;top:50px;left:calc(50% - 240px)}.pr-import-form>.primary{min-width:90px;padding:0 15px;height:30px;margin-top:0}.pr-file-button{min-width:112px;color:#ff8045;border-color:#ffb28f}.pr-import-foot{justify-content:center}
@media(max-height:650px){.pr-import-form{padding-top:100px;gap:14px;overflow:auto}.pr-import-options{top:10px}.pr-import-modal{min-height:500px}.pr-page{min-height:460px}}

.pr-person-nav{overflow-x:hidden}.pr-avatar{width:70px;margin-left:15px;margin-right:15px}

.pr-payroll .pr-grid{height:100%}.pr-month .pr-basis{font-size:12px;color:#999;margin-left:8px}.pr-toolbar .pr-freeze{margin-left:5px}

.pr-employees .pr-month{height:62px;min-height:62px;background:#f4f5f8}.pr-employee-body{margin:0 20px 21px;padding:0 12px}.pr-stats{height:42px;min-height:42px;gap:12px;font-size:14px}.pr-stats>span{background:#f7f8fa;padding:5px 12px}.pr-stats b{font-weight:600;color:#444}.pr-filters{height:37px;min-height:37px}.pr-employees .pr-sheet{margin:0 -12px}.pr-employee-grid th{height:38px;text-align:left;font-weight:600}.pr-employee-grid th.pr-check{text-align:center}.pr-employee-empty{top:38px;flex-direction:column;padding-top:60px;color:#666}.pr-employee-empty img{width:140px;height:120px;object-fit:contain;margin-bottom:12px}.pr-employee-empty p{margin:0}.pr-grid-scroll:has(.pr-employee-empty){overflow:hidden}.pr-sheet:has(.pr-employee-empty) .pr-pager{display:none}.pr-import-form input[readonly]{flex-shrink:0}

.pr-filters .pr-status{margin-left:auto}.pr-filters>.spacer{display:none}.pr-employees .pr-search{max-width:260px}.pr-employees .pr-search input{width:200px}
