/* Ledger shell and voucher grid derived from the user-provided reference. */
.classic-account-cell>select[data-line=account_id]{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;left:0;bottom:0}.classic-account-cell{position:relative}.cv-subject-input{width:100%;height:62px!important;border:0!important;background:transparent;font-size:16px!important;padding:12px!important}.cv-subject{position:relative}.cv-subject-popup{position:absolute;left:0;right:0;top:100%;background:white;border:1px solid #d9dce4;border-radius:3px;box-shadow:0 4px 12px #0003;z-index:20;min-width:300px}.cv-subject-popup[hidden]{display:none}.cv-subject-popup [role=listbox]{max-height:230px;overflow:auto}.cv-subject-popup [role=option]{display:block;background:white;border:0;width:100%;text-align:left;padding:10px 14px!important;border-radius:0}.cv-subject-popup [aria-selected=true],.cv-subject-popup [role=option]:hover{background:#e9ebf1}.cv-subject-popup footer{display:flex;border-top:1px solid #d5d8de}.cv-subject-popup footer button{flex:1;background:white;border:0;color:#4099ee;border-right:1px solid #ddd;padding:12px!important}.classic-voucher-grid tbody td.classic-account-cell{overflow:visible}
.cv-page{min-height:calc(100vh - 150px);display:flex;gap:18px}.cv-body{flex:1;min-width:0}.cv-with-timeline{gap:18px}.cv-timeline{flex:0 0 90px;position:relative;padding-top:60px;border-right:1px solid #cbd0d5;display:flex;flex-direction:column;gap:24px;align-items:flex-end}.cv-timeline button{border:0;background:transparent;color:#aeb1b6;margin-right:-8px;position:relative;font-size:15px}.cv-timeline button.active{color:#fff;background:#f5ad20;font-weight:600}.cv-timeline button.active:after{content:'';position:absolute;right:-9px;top:7px;width:13px;height:13px;border:2px solid #f5ad20;border-radius:50%;background:white}.cv-toolbar{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;background:#fff;border:1px solid #ddd;border-bottom:0;flex-wrap:wrap}.cv-toolbar input[type=month]{width:145px}.cv-toolbar select{max-width:260px}.cv-toolbar>input:not([type=month]){width:220px}.cv-toolbar button{color:#ff8045;border-color:#ff8045;background:white;white-space:nowrap}.cv-toolbar button.primary{color:white}.cv-checkbox{display:flex;align-items:center;gap:7px;white-space:nowrap}.cv-checkbox input{width:18px;height:18px;accent-color:#ff8045}.cv-sheet{background:white;border:1px solid #e0e1e4;display:flex;flex-direction:column;min-height:calc(100vh - 246px)}.cv-grid-scroll{overflow:auto;flex:1;position:relative}.cv-grid{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}.cv-grid th{background:#efefef;border:1px solid #e3e4e8;padding:12px 10px;font-size:14px;text-align:center;color:#444;position:static}.cv-grid td{border:1px solid #ececf0;padding:10px 12px;height:42px}.cv-grid tbody tr:hover{background:#eef7ff}.cv-grid th:first-child,.cv-grid td:first-child{border-left:0}.cv-grid th:last-child,.cv-grid td:last-child{border-right:0}.cv-grid .link{border:0;background:none;padding:0!important;color:#4099ee}.cv-grid .num{text-align:right;font-variant-numeric:tabular-nums}.cv-grid tfoot{background:#fffbe7;font-weight:600}.cv-empty{min-height:450px;height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#555}.cv-empty img{width:158px;height:140px;object-fit:contain}.cv-empty p{margin:18px}.cv-pagination{display:flex;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid #eee;color:#888}.cv-pagination button{font-size:20px;min-width:36px;background:#f4f5f8}.cv-pagination>span:not(.spacer){white-space:nowrap}.cv-pagination select{width:140px}.cv-caption{font-size:12px;color:#8d949d;line-height:1.8;margin:10px 0}.cv-detail-layout{display:flex;gap:12px}.cv-detail-layout>.cv-sheet{flex:1;min-width:0}.cv-account-panel{flex:0 0 245px;border:1px solid #ddd;background:#fff;max-height:calc(100vh - 215px);overflow-y:auto}.cv-account-panel>div{padding:14px;border-bottom:1px solid #ddd}.cv-account-panel button{display:block;text-align:left;border:0;background:none;width:100%;padding:10px 12px}.cv-account-panel button.active{background:#eaf5ff;color:#4099ee}.cv-report-paper{max-width:1200px;background:white;margin:5px auto 20px;min-height:calc(100vh - 180px);border:1px solid #d5d8df}.cv-report-paper .cv-toolbar{border:0;border-bottom:1px solid #ddd}.cv-report-heading{text-align:center;padding:12px 10px;color:#777;font-size:12px}.cv-report-heading h2{margin:0 0 8px;font-size:20px;color:#444}.cv-report-paper .cv-sheet{min-height:0;border:0}.cv-report-paper .cv-grid{white-space:normal;table-layout:fixed;font-size:13px}.cv-report-paper .cv-grid th{background:#e9ebf1}.cv-report-paper .cv-grid td{height:28px;padding:5px 9px;border-color:#d5d8df}.cv-report-paper .cv-grid td:nth-child(2){width:50px;text-align:center}.cv-report-paper .cv-caption{padding:0 12px}.cv-subtabs{display:flex;align-items:stretch;margin-top:6px}.cv-subtabs button{background:#e8eaf0;border:1px solid #d5d8df;padding:9px 18px;margin-right:4px}.cv-subtabs button.active{background:#fff;color:#ff8045;border-bottom-color:white}.cv-folder-board{background:white;padding:30px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:28px;border:1px solid #e1e3e7;min-height:480px;align-content:start}.cv-folder{position:relative;border:1px solid #d8dbe1;box-shadow:0 2px 3px #0002;border-radius:6px;padding:28px 18px 20px;background:linear-gradient(130deg,#f7f8fa 0,#fff 35%)}.cv-folder h3{margin-top:0;font-size:16px;font-weight:400}.cv-folder p{font-size:13px;color:#999}.cv-folder button{float:right;color:#4099ee;background:none;border:0}.cv-report-paper:has([aria-label='unused']){margin:0}
@media print{.cv-timeline,.cv-toolbar,.cv-pagination,.cv-account-panel,.cv-subtabs,.cv-caption{display:none!important}.cv-page,.cv-body,.cv-detail-layout{display:block;min-height:0}.cv-sheet{min-height:0;border:0}.cv-grid-scroll{overflow:visible}.cv-report-paper{margin:0;border:0;max-width:100%;min-height:0}.cv-grid th,.cv-grid td{font-size:10px;padding:3px!important}.cv-grid thead{display:table-header-group}.cv-grid tr{break-inside:avoid}.cv-empty{min-height:0;height:80px}.cv-empty img{display:none}}
body.classic-ledger{background:#f4f5f8;color:#555;font:14px 'Microsoft YaHei','PingFang SC',sans-serif;--ledger-side:208px;--ledger-top:60px;--orange:#ff8045}
.classic-ledger button,.classic-ledger input,.classic-ledger select{border-radius:2px;color:#555;border-color:#d1d4db}
.classic-ledger button.primary{background:var(--orange);border-color:var(--orange);color:#fff}
.classic-ledger button:hover{border-color:#ff9c73;color:#ff8045}.classic-ledger button.primary:hover{color:#fff;background:#ff7437}
.classic-ledger input:focus,.classic-ledger select:focus{outline:1px solid #4d9ff9}
.classic-ledger .ledger-header{position:fixed;top:0;left:0;right:0;z-index:12;height:var(--ledger-top);background:#fff;color:#555;padding:0 16px 0 6px;justify-content:initial;gap:14px;border-bottom:1px solid #ddd;white-space:nowrap}
.ledger-home{width:36px;height:36px;border:1px solid var(--orange);color:var(--orange)!important;display:flex;align-items:center;justify-content:center;font-size:30px;border-radius:50%;flex-shrink:0}
.ledger-header #book-picker{font-size:17px;font-weight:600;color:#333;border:0;border-bottom:1px solid #ddd;width:365px;height:44px;padding:0 20px;min-width:160px;background:#fff}
.ledger-period{display:flex;align-items:center;gap:10px;font-size:16px}.ledger-period select{font-size:17px;width:156px;height:36px;background:#fff;padding:0 10px}
.ledger-header-actions{margin-left:auto;display:flex;gap:10px;align-items:center}
.ledger-header-actions>a{display:flex;align-items:center;padding:0 16px;height:36px;border:1px solid #d1d4db;border-radius:2px;color:#555;background:#fff}
.ledger-header-actions>a.ledger-back{color:var(--orange);border-color:var(--orange)}
.ledger-header-actions .header-link{border:0;background:none;padding:4px 0;font-size:14px}
.ledger-sidebar{position:fixed;top:var(--ledger-top);bottom:0;left:0;width:var(--ledger-side);background:#35404e;color:#aab3be;z-index:11;display:flex;flex-direction:column}
.ledger-menu{display:block;padding:8px 0 50px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#858c97 #35404e}
.ledger-group-head{display:flex;align-items:center;gap:16px;width:100%;height:54px;border:0;background:none;color:#aeb7c1!important;border-radius:0!important;text-align:left;font-size:17px;padding:0 16px!important}
.ledger-group-head i{font-size:21px;width:20px;text-align:center;font-style:normal}.ledger-group-head b{margin-left:auto;font-size:14px;font-weight:400}
.ledger-group.selected>.ledger-group-head{color:#ff8a45!important}.ledger-group.selected>.ledger-group-head i{background:var(--orange);color:#fff;border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center;margin-left:-6px;margin-right:-8px}
.ledger-group-items{padding:0 0 4px;background:#202a36}.ledger-group-items[hidden]{display:none}
.ledger-group-items button{display:block;width:100%;height:50px;padding:0 16px 0 55px!important;border:0!important;background:none!important;text-align:left;font-weight:400!important;color:#9eabb9!important;white-space:nowrap;border-radius:0!important;font-size:17px}
.ledger-group-items button.active{color:#fff!important}.ledger-group-items button:hover{color:#fff!important;background:#293545!important}
.ledger-sidebar-foot{border-top:1px solid #505866;padding:10px 16px;background:#303b49;font-size:12px;text-align:center}
.ledger-main{margin-left:var(--ledger-side);padding-top:var(--ledger-top);min-height:100vh}
.ledger-tabs{height:43px;background:#fff;display:flex;align-items:stretch;border-bottom:1px solid #dfe1e5;overflow-x:auto;scrollbar-width:none;position:sticky;top:var(--ledger-top);z-index:9}
.ledger-open-tab{display:flex;border-right:1px solid #e4e4e4;align-items:stretch;flex-shrink:0}.ledger-open-tab.active{background:#f5f6f8;border-bottom:2px solid var(--orange)}
.ledger-open-tab button{border:0!important;background:none!important;padding:0 18px;color:#555;font-size:17px;white-space:nowrap}.ledger-open-tab button[aria-label^=关闭]{padding:0 16px 0 0;font-size:22px}.ledger-open-tab.active button{color:#ff8045}
.classic-ledger main.ledger-content{margin:0;min-height:calc(100vh - 103px);padding:22px 24px;background:#fff;border-top:14px solid #f4f5f8}
.classic-ledger main.entry-content{padding:0 24px 70px;border-top:0;background:#f4f5f8}
.entry-tip{height:36px;display:flex;align-items:center;justify-content:space-between;color:#429af0;font-size:14px;overflow:hidden;white-space:nowrap}
.entry-tip a{color:#429af0;cursor:pointer}.voucher-paper{background:#fff;border:1px solid #d8dae1;padding:14px 30px 35px;min-height:650px}
.entry-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;min-height:36px}
.entry-primary-actions{display:flex;gap:10px;white-space:nowrap}.entry-primary-actions button{height:36px;padding:0 16px;font-size:16px}
.entry-pager{display:flex;align-items:center}.entry-pager>button{height:36px;padding:0;width:36px;border-radius:0;background:#f0f1f5;color:#a5a9b3}.entry-pager>button+button{border-left:0}
.entry-pager>button.entry-keyboard{border:0;background:#fff;color:#555;width:50px;font-size:27px;margin-left:8px}
.entry-meta{display:flex;align-items:center;gap:24px;margin:0 0 14px;font-size:16px;white-space:nowrap}
.entry-meta label{display:flex;align-items:center;gap:5px}.entry-meta input,.entry-meta select{height:36px;padding:0 10px;font-size:16px}
.entry-meta .voucher-number{width:67px;text-align:center;background:#fff}.entry-meta input[type=date]{width:172px}.entry-meta input[name=attachment_count]{width:76px;text-align:center}
.entry-meta #classic-template{width:180px}.entry-meta .entry-meta-spacer{flex:1}.entry-meta button.link{border:0;color:#4098ec;background:none;padding:4px 0;font-size:16px}
.classic-voucher-scroll{overflow-x:auto}.classic-voucher-grid{table-layout:fixed;min-width:1120px;width:100%;border-collapse:collapse;color:#555}
.classic-voucher-grid .classic-index-col{width:44px}.classic-voucher-grid .classic-summary-col{width:275px}.classic-voucher-grid .classic-amount-col{width:260px}
.classic-voucher-grid th,.classic-voucher-grid td{border:1px solid #d0d2d8;padding:0;position:static;white-space:normal}
.classic-voucher-grid thead th{height:32px;background:#f4f5f8;text-align:center;font-size:17px;font-weight:600;color:#444}
.classic-voucher-grid thead th[rowspan]{height:63px}.classic-voucher-grid .digit-heading{height:29px;padding:0}
.digit-heading span{width:calc(100% / 12);display:inline-flex;justify-content:center;align-items:center;border-right:1px solid #cbd0d8;height:29px;font-size:16px}.digit-heading span:last-child{border:0}
.classic-voucher-grid tbody td{height:66px;background:#fff}.classic-voucher-grid .line-index{text-align:center;font-size:17px;position:relative}
.classic-row-tools{display:none;position:absolute;left:0;top:42px;z-index:4;white-space:nowrap;background:white;box-shadow:0 2px 5px #0002}.classic-row-tools button{padding:0!important;width:24px;height:24px;font-size:18px;margin:0;border:0!important}.line-index:hover .classic-row-tools{display:flex}
.classic-voucher-grid input.classic-summary{width:100%;height:65px;border:0;border-radius:0;padding:8px 10px;font-size:17px;color:#444;background:transparent}
.classic-voucher-grid input.classic-summary:focus{box-shadow:0 0 5px #409eff;outline:1px solid #409eff;position:relative;z-index:3}
.classic-voucher-grid .classic-account-cell>select{min-width:0;max-width:none;border:0;width:100%;background:transparent;height:62px;font-size:17px;padding:0 12px;appearance:none}
.classic-account-extras{display:flex;flex-wrap:wrap;gap:6px;padding:0 8px 5px}.classic-account-extras:has(label:not([hidden])){margin-top:-7px}
.classic-account-extras label{display:flex;align-items:center;font-size:11px;gap:4px;max-width:100%;color:#777}.classic-account-extras label[hidden]{display:none}
.classic-account-extras label select,.classic-account-extras label input{min-width:0;max-width:165px;font-size:11px;padding:2px 4px;height:25px;width:auto}
.classic-money{height:65px;position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 12 - 1px),#d8dce5 calc(100% / 12 - 1px),#d8dce5 calc(100% / 12))}
.classic-money:before,.classic-money:after{content:'';position:absolute;top:0;bottom:0;width:1px;background:#e9a5ac;left:calc(100% * 10 / 12);pointer-events:none}.classic-money:after{left:calc(100% * 6 / 12);background:#9dc2ef}
.classic-money>input{border:0!important;position:absolute;inset:0;z-index:2;color:transparent;background:transparent;width:100%!important;height:100%;text-align:right;font-size:19px;padding:0 6px;border-radius:0;caret-color:#333}
.classic-money>input:focus{color:#333;background:#fff;outline:1px solid #409eff}
.digit-value{display:grid;grid-template-columns:repeat(12,1fr);height:100%;align-items:center;font-size:20px;color:#333;font-variant-numeric:tabular-nums}
.digit-value>span{text-align:center}.classic-money input:focus+.digit-value{visibility:hidden}.amount-overflow{display:block;padding:0 8px;text-align:right;font-size:16px;line-height:65px}
.classic-voucher-grid tfoot th,.classic-voucher-grid tfoot td{height:67px;background:#f4f5f8;font-weight:600}
.classic-voucher-grid tfoot th{text-align:left;padding-left:6px;font-size:19px}.classic-voucher-grid tfoot td{background:#f4f5f8 repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 12 - 1px),#d8dce5 calc(100% / 12 - 1px),#d8dce5 calc(100% / 12))}
#classic-uppercase{font-size:15px;font-weight:400;margin-left:8px}.entry-footer{display:flex;align-items:center;gap:16px;margin-top:14px;color:#888;font-size:13px}.entry-footer #voucher-totals{margin-left:auto;font-size:12px}.entry-footer .ok{background:transparent}
.classic-ledger .modal{border-radius:4px}.classic-ledger .modal h2{font-size:18px}.classic-ledger .notice{border-color:#eee4ce;background:#fffaf1;color:#8b7049}
.classic-ledger .tablewrap{border-radius:0}.classic-ledger .card{border-radius:3px}.classic-ledger h2{font-size:21px}.classic-ledger .reporthead h2{font-size:25px}
@media(max-width:1550px){.ledger-header #book-picker{width:260px}.ledger-header-actions{gap:8px}.ledger-header-actions>a{padding:0 10px}.ledger-header-actions .header-link{font-size:12px}.voucher-paper{padding-left:20px;padding-right:20px}.entry-meta{gap:14px}.entry-primary-actions{gap:7px}.entry-primary-actions button{padding:0 11px}.classic-voucher-grid .classic-summary-col{width:240px}.classic-voucher-grid .classic-amount-col{width:225px}}
@media(max-width:1250px){.ledger-header #book-picker{width:200px}.ledger-header-actions .header-link{display:none}.ledger-header-actions>a{font-size:12px}.ledger-header{gap:10px!important}.ledger-period{font-size:14px}.ledger-period select{width:145px;font-size:14px}.entry-tools,.entry-meta{flex-wrap:wrap}.entry-primary-actions{margin-left:auto}.classic-ledger{--ledger-side:190px}.classic-voucher-grid{min-width:1100px}.classic-ledger main.entry-content{padding-left:16px;padding-right:16px}}
.classic-ledger .cv-page{font-family:Arial,'Microsoft YaHei',sans-serif}.classic-ledger .cv-toolbar .spacer,.classic-ledger .cv-pagination .spacer{flex:1}.classic-ledger .cv-toolbar button{color:#ff8045;border-color:#ff8045}.classic-ledger .cv-toolbar button.primary{color:white}.classic-ledger .cv-timeline button{white-space:nowrap;font-size:13px}.classic-ledger .cv-empty p{font-family:Arial,'Microsoft YaHei',sans-serif}.classic-ledger .cv-subject-input{font-family:Arial,'Microsoft YaHei',sans-serif}
.classic-ledger main.ledger-content:has(.cv-page){background:#f4f5f8;border-top:0}.classic-ledger .cv-subtabs+.cv-toolbar+.cv-sheet{min-height:calc(100vh - 300px)}
.cw-stock-steps{padding:26px;background:linear-gradient(140deg,#fbfcfc,#eaf1f5);border:1px solid #d8dce3}.cw-stock-steps h2{font-size:20px;font-weight:400;margin-bottom:26px}.cw-stock-steps>div{display:flex;justify-content:space-evenly}.cw-stock-steps button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:15px;font-size:16px;padding:15px}.cw-stock-steps button b{background:#b8bec3;color:white;border-radius:15px;padding:14px 24px;font-size:30px;box-shadow:0 4px 0 #dce1e5}.cw-stock-steps button.active b{background:#ff8045;box-shadow:0 4px 0 #ffd8c2}.cw-stock-steps button.active{color:#ff8045;border-bottom:2px solid #ff8045}.cw-stock-setup{padding:34px;background:white;border:1px solid #ddd;min-height:550px}.cw-setup-columns{display:grid;grid-template-columns:1fr 1fr;gap:7%;max-width:1250px;margin:10px auto 30px}.cw-setup-columns>section{padding:20px;background:#f4f5f8;border:1px solid #d8dce4}.cw-choice{border:1px solid #ddd;background:white;padding:24px;display:inline-block;text-align:left;margin:10px;max-width:380px;vertical-align:top;min-height:150px}.cw-choice.active{border:1px solid #ff8045!important;background:#fffbf8}.cw-choice p{font-size:14px;color:#999;line-height:1.9}.cw-stock-flow{display:grid;grid-template-columns:repeat(2,1fr);gap:30px;margin:10px auto 35px;max-width:1250px}.cw-stock-flow article{padding:24px;background:#f5f6f9;border:1px solid #dce1e8;min-height:200px}.cw-stock-flow p{color:#999;margin-bottom:30px}.cw-settings{background:white;border:1px solid #ddd;padding:18px 28px}.cw-settings h3{border-top:1px solid #eee;padding-top:26px;margin-top:26px}.cw-settings .cv-toolbar{border:0}.cw-fields{display:flex;flex-wrap:wrap;gap:30px;padding:15px}.cw-fields label{display:flex;align-items:center;gap:12px}.cw-fields input:not([type=checkbox]){width:210px}.cw-source-details{padding:18px;background:white;border:1px solid #e1e4e9;margin-top:20px}.cw-source-details summary{cursor:pointer;color:#4099ee;padding:8px}.cw-narrow{max-width:1080px;background:white;padding:18px;border:1px solid #ddd;margin:auto}.cw-welcome{background:#fff;border:1px solid #ddd;padding:28px;margin-bottom:20px}.cw-welcome h2{font-size:22px}.cw-welcome p{color:#999}.cw-print-label{display:none}
.cw-stock-flow{grid-template-columns:1fr 1.2fr 1fr;max-width:1400px;gap:28px}.cw-stock-flow article{min-height:280px;display:flex;flex-direction:column;align-items:flex-start}.cw-stock-flow article button:last-child{margin-top:auto}.cw-stock-flow article button{margin-bottom:10px}.cw-account-panel{background:white;padding:18px;border:1px solid #ddd;max-width:1250px;margin:auto}
.cw-stock-steps>div>button{position:relative;flex:1}.cw-stock-steps>div>button:not(:last-child):after{content:'';position:absolute;right:0;top:55px;width:20px;height:24px;background:linear-gradient(90deg,#e4e7e9,#bcc2c6);clip-path:polygon(0 0,100% 50%,0 100%)}.cw-stock-steps button b{background:transparent!important;box-shadow:none!important;padding:0;color:#aeb3b6;width:100px;height:85px}.cw-stock-steps button.active b{color:#ff8045}.cw-stock-steps svg{width:100%;height:100%}
@media print{.cw-stock-steps,.cw-source-details,.cw-settings .cv-toolbar,.cv-subtabs{display:none!important}.cw-print-label{display:block;margin-top:18px;font-size:11px}.cv-grid th,.cv-grid td{white-space:normal}.cw-narrow{border:0;max-width:100%;padding:0}}
@media print{.ledger-header,.ledger-sidebar,.ledger-tabs,.entry-tip,.entry-tools,.entry-meta button,.classic-row-tools{display:none!important}.ledger-main{padding:0;margin:0}.classic-ledger main.ledger-content{border:0;margin:0;padding:0}.voucher-paper{border:0;padding:0}.classic-voucher-scroll{overflow:visible}.classic-account-extras{display:none}.classic-voucher-grid{min-width:0}.classic-voucher-grid .classic-summary-col{width:20%}.classic-voucher-grid .classic-amount-col{width:22%}.classic-money input{display:none}.classic-voucher-grid tbody td{height:45px}}
