:root{--bg:#f5f6f8;--panel:#fff;--border:#d9dde3;--text:#1f2933;--muted:#6b7680;--primary:#1d5fa8;--primary-ink:#fff;--ok:#1e7b45;--warn:#9a6200;--danger:#b42318;--info:#2f5f8a;color:var(--text);background:var(--bg);font-family:Noto Sans TC,Microsoft JhengHei,PingFang TC,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body,h1,h2,h3{margin:0}h2{font-size:1.15rem}h3{margin-bottom:.75rem;font-size:1rem}.topbar{color:#fff;background:#102a43;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;padding:.6rem 1.25rem;display:flex}.brand{font-size:1.05rem;font-weight:700}.pages{gap:.25rem;display:flex}.pages button{color:#c9d6e3;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.45rem .9rem;font-size:.95rem}.pages button.active{color:#fff;background:#ffffff1f;font-weight:600}.context{flex-wrap:wrap;align-items:center;gap:.5rem;margin-left:auto;display:flex}.context select{max-width:14rem}.user{color:#c9d6e3;font-size:.85rem}.main{max-width:1280px;margin:0 auto;padding:1rem 1.25rem 3rem}.tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.25rem;margin-bottom:1rem;display:flex}.tabs button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;padding:.55rem .9rem;font-size:.95rem}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.section{background:var(--panel);border:1px solid var(--border);border-radius:8px;margin-bottom:1rem;padding:1rem 1.1rem}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.section-actions{gap:.5rem;display:flex}.section-note{color:var(--muted);margin-bottom:.75rem;font-size:.85rem}.toolbar{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;vertical-align:top;border-bottom:1px solid #eceff3;padding:.5rem .55rem}.table th{color:#3e4c59;background:#f0f3f6;font-size:.85rem;font-weight:600}.table.compact th,.table.compact td{padding:.35rem .45rem}.table tr.inactive td{color:var(--muted)}.table td.actions{white-space:nowrap}.table td.actions .btn+.btn{margin-left:.35rem}.subrow>td{background:#f8fafc}.nested{gap:.6rem;padding:.5rem .25rem;display:grid}.nested>.btn{justify-self:start}input,select,textarea{font:inherit;border:1px solid var(--border);background:#fff;border-radius:5px;min-width:0;padding:.4rem .5rem}input:disabled,select:disabled{color:var(--muted);background:#f0f2f4}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:2px solid #1d5fa855}textarea{resize:vertical;width:100%;line-height:1.55;overflow:hidden}.payslip-note{max-width:52rem;margin-bottom:.5rem}.note-text{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);background:#fafbfc;border-radius:5px;padding:.5rem .65rem;line-height:1.55}.btn{font:inherit;border:1px solid var(--border);cursor:pointer;color:var(--text);background:#fff;border-radius:6px;padding:.42rem .9rem}.btn:hover{background:#f2f5f8}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--primary);color:var(--primary-ink);border-color:var(--primary)}.btn-primary:hover{background:#174d88}.btn-warn{color:#7a4d00;background:#fff4e0;border-color:#e6b562}.btn-danger{color:#8a1f1f;background:#fdecec;border-color:#e09a9a}.delete-scope{grid-column:1/-1;margin:0;padding-left:1.2rem}.btn-small{padding:.22rem .6rem;font-size:.85rem}.form-panel{background:#f7fafd;border:1px solid #c7d6e6;border-radius:8px;margin-bottom:1rem;padding:.9rem 1rem}.form-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));align-items:start;gap:.7rem 1rem;display:grid}.span-all{grid-column:1/-1}.form-actions{gap:.5rem;margin-top:.9rem;display:flex}fieldset{border:1px dashed #c3ccd6;border-radius:6px;gap:.5rem;margin:0;padding:.6rem .8rem;display:grid}legend{color:#3e4c59;padding:0 .3rem;font-size:.85rem}.conditional{grid-column:1/-1;gap:.6rem;display:grid}.field{gap:.25rem;display:grid}.field-label{color:#3e4c59;font-size:.85rem}.req{color:var(--danger);margin-left:.15rem;font-style:normal}.field.has-error input,.field.has-error select{border-color:var(--danger)}.hint{color:var(--muted);font-size:.78rem}.error{color:var(--danger);white-space:pre-line;font-size:.82rem}.form-error{margin:.6rem 0 0}.check{cursor:pointer;align-items:center;gap:.35rem;display:inline-flex}.checklist{border:1px solid var(--border);background:#fff;border-radius:5px;gap:.3rem;max-height:12rem;padding:.3rem;display:grid;overflow:auto}.rule-pick{border:1px solid var(--border);background:#fff;border-radius:5px;max-height:20rem;display:grid;overflow:auto}.rule-pick-item{cursor:pointer;border-bottom:1px solid #eceff3;align-items:flex-start;gap:.55rem;padding:.45rem .6rem;display:flex}.rule-pick-item:last-child{border-bottom:0}.rule-pick-item input{flex:none;margin-top:.25rem}.rule-pick-item.selected{background:#f3f8fd}.rule-pick-body{overflow-wrap:anywhere;min-width:0}.rule-pick-body .badge{margin-left:.35rem}.rule-pick-meta{margin-top:.15rem;display:block}.inline-group{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.segmented{border:1px solid var(--border);border-radius:6px;display:inline-flex;overflow:hidden}.segmented button{cursor:pointer;font:inherit;background:#fff;border:0;padding:.4rem .8rem}.segmented button.active{background:var(--primary);color:#fff}.badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;margin-left:.25rem;padding:.05rem .45rem;font-size:.75rem;display:inline-block}.badge-ok{color:var(--ok);background:#e3f4ea}.badge-warn{color:var(--warn);background:#fff1d6}.badge-muted{color:var(--muted);background:#eceff3}.badge-danger{color:var(--danger);background:#fde4e1}.badge-info{color:var(--info);background:#e2edf7}.banner{border-radius:6px;margin-bottom:.9rem;padding:.6rem .8rem;font-size:.88rem}.banner-warn{color:#6b4600;background:#fff7e6;border:1px solid #f0cf8a}.banner-info{color:#23466b;background:#eaf2fb;border:1px solid #b9d0ea}.banner-danger{color:#8a1c12;background:#fdeceb;border:1px solid #f2b8b2}.details{grid-template-columns:max-content 1fr;gap:.4rem 1.25rem;margin:0;display:grid}.details dt{color:var(--muted)}.details dd{margin:0}.small{font-size:.85rem}.muted{color:var(--muted)}.loading{text-align:center;color:var(--muted);padding:3rem}.center-card{border:1px solid var(--border);background:#fff;border-radius:10px;gap:.85rem;max-width:420px;margin:8vh auto;padding:1.5rem;display:grid}.toasts{z-index:100;gap:.5rem;max-width:min(420px,90vw);display:grid;position:fixed;bottom:1rem;right:1rem}.toast{color:#fff;white-space:pre-line;border-radius:6px;padding:.65rem .9rem;box-shadow:0 4px 14px #0003}.toast-success{background:var(--ok)}.toast-error{background:var(--danger)}.toast-info{background:var(--info)}.num{text-align:right;white-space:nowrap}.table th.num{text-align:right}.sub-title{border-left:3px solid var(--primary);margin:1.25rem 0 .5rem;padding-left:.5rem;font-size:1rem}.settlement-meta{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem;font-size:.88rem;display:flex}.calc-items{gap:.9rem;display:grid}.calc-item{border:1px solid var(--border);border-radius:6px;padding:.6rem .7rem}.calc-item-head{flex-wrap:wrap;align-items:baseline;gap:.35rem .9rem;margin-bottom:.4rem;display:flex}.calc-item-amount{margin-left:auto;font-weight:600}.seg-fields{flex-wrap:wrap;gap:.4rem .6rem;display:flex}.seg-field{color:#3e4c59;gap:.15rem;font-size:.8rem;display:grid}.seg-field input{width:8rem}.seg-default{grid-template-columns:auto auto;align-items:center;column-gap:.5rem}.seg-default>span:first-child{grid-column:1/-1}.seg-default>span:nth-child(2){color:#1f2933;font-size:.85rem}.detail-lines-scroll{contain:inline-size;border-left:3px solid #c9d7e6;width:100%;padding:.15rem 0 .25rem .6rem;position:relative;overflow-x:auto}.detail-lines{border-collapse:collapse;white-space:nowrap;width:max-content}.detail-lines th{color:var(--muted);text-align:left;background:0 0;border:0;padding:.1rem .4rem;font-size:.75rem;font-weight:500}.detail-lines td{vertical-align:middle;background:0 0;border:0;border-bottom:1px dashed #e3e7ec;padding:.15rem .4rem}.detail-lines .num{text-align:right}.detail-lines input.in-qty{width:5.5rem}.detail-lines input.in-money{width:7.5rem}.detail-lines input.in-note{width:12rem}.detail-lines .line-amount{font-variant-numeric:tabular-nums;min-width:6.5rem}.detail-lines tr.excluded .line-amount{color:var(--muted)}.detail-lines .check{white-space:nowrap}.detail-add{margin-top:.3rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.table tr.needs-input td{background:#fffaf0}.warn-text{color:var(--warn);margin-top:.25rem}.totals{max-width:560px}.totals .details{grid-template-columns:1fr}.totals-row{border-bottom:1px dashed #e3e7ec;justify-content:space-between;padding:.3rem 0;display:flex}.totals-row dt{color:#3e4c59}.totals-row.payable{border-bottom:2px solid var(--text);font-size:1.1rem;font-weight:700}.issue-list{margin:.35rem 0 0;padding-left:1.2rem}.finalize-blockers{color:#6b4600;background:#fff7e6;border:1px solid #f0cf8a;border-radius:6px;width:fit-content;max-width:46rem;margin:-.35rem 0 .75rem auto;padding:.4rem .7rem;font-size:.85rem}.finalize-blockers summary{cursor:pointer}.finalize-blockers-more{white-space:nowrap;margin-left:.35rem;text-decoration:underline}.calc-io-actions{flex-wrap:wrap;gap:.4rem;margin:-.2rem 0 .6rem;display:flex}.import-preview{border:1px solid var(--border);background:#fbfcfd;border-radius:6px;margin-bottom:.9rem;padding:.7rem .8rem}.import-preview-head{margin-bottom:.5rem}.import-preview .table tr.changed td{background:#fffaf0;font-weight:600}.import-preview .table td.num{text-align:right}.import-preview .import-amounts{max-width:40rem;margin-top:.6rem}.import-preview-actions{flex-wrap:wrap;gap:.4rem;margin-top:.6rem;display:flex}@media (width<=760px){.topbar{padding:.5rem .75rem}.context{width:100%;margin-left:0}.main{padding:.75rem .5rem 3rem}.table{white-space:nowrap;display:block;overflow-x:auto}.form-grid{grid-template-columns:1fr}}.tabs-main button{font-size:1rem}.tabs-sub{margin-top:.25rem}.table-scroll{overflow-x:auto}.doctor-layout{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:1rem;display:grid}.doctor-list{background:var(--panel);border:1px solid var(--border);border-radius:8px;gap:.5rem;padding:.75rem;display:grid;position:sticky;top:.75rem}.doctor-list-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.doctor-list ul{gap:.2rem;max-height:60vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.doctor-list li button{text-align:left;cursor:pointer;width:100%;font:inherit;color:var(--text);background:0 0;border:1px solid #0000;border-radius:6px;gap:.05rem;padding:.45rem .55rem;display:grid}.doctor-list li button:hover{background:#f2f5f8}.doctor-list li button.active{background:#e2edf7;border-color:#b9d0ea}.doctor-name{font-weight:600}.doctor-detail{min-width:0}.doctor-basic{margin-bottom:.25rem}.ins-summary{background:#f8fafc;border:1px solid #e3e7ec;border-radius:6px;grid-template-columns:minmax(0,1fr) minmax(0,18rem);gap:.75rem 1rem;margin-bottom:.9rem;padding:.7rem .8rem;display:grid}.employer-box{color:#3e4c59;border:1px dashed #9aa5b1;border-radius:6px;align-self:start;gap:.25rem;padding:.5rem .7rem;font-size:.88rem;display:grid}.calc-start{align-items:end}.calc-start-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.calc-grid{min-width:640px}.calc-grid>thead th:first-child{width:24%}.calc-grid>thead th:nth-child(2){width:34%}.calc-grid>thead th:nth-child(4){width:20%}.calc-grid .calc-category th{color:#12324f;background:#dfe8f2;border-top:2px solid #9fb5cc;font-size:.95rem}.calc-grid .calc-month th{color:#1f3a5a;background:#eef3f8;padding-left:1rem;font-size:.85rem}.calc-grid .calc-cat-subtotal th,.calc-grid .calc-cat-subtotal td{text-align:right;background:#f7f9fb;border-bottom:1px solid #c7d3df;font-weight:600}.table .rule-group th{color:#1f3a5a;background:#e8eef5;font-size:.88rem}.calc-grid>tbody>tr>td.num,.calc-grid>tfoot>tr>td.num{text-align:right;white-space:normal}.calc-grid .calc-amount{white-space:nowrap;font-size:1rem;font-weight:600}.calc-grid .calc-formula{white-space:normal;text-align:right;overflow-wrap:anywhere}.calc-grid .calc-subrow>td{padding:.1rem .55rem .5rem 1.5rem}.calc-grid tfoot th{text-align:right}.calc-grid .calc-subtotal th,.calc-grid .calc-subtotal td{color:#3e4c59;font-size:.88rem}.calc-grid .calc-total th,.calc-grid .calc-total td{border-top:2px solid var(--text);font-size:1.02rem;font-weight:700}.totals-row.pending dd{color:var(--warn);font-weight:600}.btn-link{color:var(--primary);background:0 0;border:0;padding:.2rem;text-decoration:underline}.btn-link:hover{background:0 0}.payments-panel{gap:.75rem;display:grid}.payout-summary{grid-template-columns:max-content max-content;max-width:30rem}.payout-summary dd{text-align:right;font-weight:600}.advance-picker{margin-top:.6rem}.prepaid-lines .subtotal-row td{background:var(--bg);font-weight:600}.prepaid-lines .total-row td{border-top:2px solid var(--border);font-weight:700}.history-filters{margin-bottom:.75rem}.employer-line{margin:.5rem 0 0}.statutory-details{margin-top:1rem}.statutory-details>summary{cursor:pointer;margin-bottom:.5rem;font-weight:600}@media (width<=760px){.main{padding:.75rem .6rem 2.5rem}.doctor-layout{grid-template-columns:1fr}.doctor-list{position:static}.doctor-list ul{max-height:14rem}.ins-summary{grid-template-columns:1fr}.section-actions{flex-wrap:wrap}.stack-on-mobile,.calc-grid{white-space:normal}.stack-on-mobile,.stack-on-mobile tbody{width:100%;display:block}.stack-on-mobile thead{display:none}.stack-on-mobile tbody tr{border-bottom:1px solid #dfe4ea;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.2rem .75rem;padding:.5rem 0;display:grid}.stack-on-mobile tbody td{overflow-wrap:anywhere;border:0;padding:.15rem .2rem;display:block}.stack-on-mobile tbody td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:.72rem;display:block}.stack-on-mobile tbody td:first-child{grid-column:1/-1}.stack-on-mobile tbody td:first-child:before{display:none}.calc-grid{min-width:0}.calc-grid>thead{display:none}.calc-grid>tbody>tr:not(.calc-month):not(.calc-subrow):not(.calc-category):not(.calc-cat-subtotal){border-bottom:1px solid #dfe4ea;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.25rem .75rem;padding:.5rem 0;display:grid}.calc-grid>tbody>tr:not(.calc-month):not(.calc-subrow):not(.calc-category):not(.calc-cat-subtotal)>td{border:0;padding:.15rem .2rem;display:block}.calc-grid,.calc-grid>tbody,.calc-grid>tfoot{width:100%;display:block}.calc-grid .calc-category,.calc-grid .calc-month,.calc-grid .calc-subrow{display:block}.calc-grid .calc-category th,.calc-grid .calc-month th{text-align:left;width:100%;display:block}.calc-grid .calc-cat-subtotal,.calc-grid tfoot tr{justify-content:space-between;align-items:baseline;gap:.75rem;display:flex}.calc-grid .calc-cat-subtotal th,.calc-grid tfoot th{text-align:left;border:0;flex:1}.calc-grid .calc-cat-subtotal td,.calc-grid tfoot td{border:0;flex:none}.calc-grid>tbody>tr>td[data-label=薪酬項目],.calc-grid>tbody>tr>td[data-label=數量／業績]{grid-column:1/-1}.calc-grid>tbody>tr>td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:.72rem;display:block}.calc-grid>tbody>tr>td[data-label=薪酬項目]:before{display:none}.calc-grid .calc-formula{text-align:right}.calc-grid tfoot tr{justify-content:space-between;display:flex}.calc-grid tfoot th,.calc-grid tfoot td{border:0}.calc-grid .calc-subrow>td{padding:0 .2rem .5rem;display:block}.totals{max-width:none}}.payslip-filters,.report-filters{margin-bottom:.9rem}.report-table td.negative{color:#b42318}.report-table tfoot th,.report-table tfoot td{background:#f6f8fa;border-top:2px solid #3e4c59}.report-table tr.clickable{cursor:pointer}.report-table tr.clickable:hover td,.report-table tr.clickable:focus td{background:#eef4fb}.report-table tr.clickable:focus{outline-offset:-2px;outline:2px solid #1d5fa855}.report-table tr.reversal td{color:#8a5300}.payslip-toolbar{flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-bottom:.75rem;display:flex}.payslip-toolbar .settlement-meta{margin:0}.payslip-stage{padding:.25rem 0 2rem;overflow-x:auto}.payslip{color:#111;background:#fff;width:210mm;min-height:297mm;margin:0 auto;padding:14mm;font-family:Noto Sans TC,Microsoft JhengHei,PingFang TC,sans-serif;font-size:10.5pt;line-height:1.45;position:relative;box-shadow:0 2px 12px #0000002a}.payslip.pdf-capture{min-height:0;box-shadow:none;padding-top:0;padding-bottom:2mm}.payslip.pdf-capture .ps-foot{display:none}.ps-watermark{pointer-events:none;z-index:2;-webkit-print-color-adjust:exact;print-color-adjust:exact;background-position:50% 30mm;background-repeat:repeat-y;background-size:100%;position:absolute;inset:0}.ps-head{text-align:center;border-bottom:2px solid #111;margin-bottom:4mm;padding-bottom:3mm}.ps-title{letter-spacing:.08em;font-size:16pt;font-weight:700}.ps-doc{margin-top:1mm;font-size:12.5pt;font-weight:600}.ps-doc-status{color:#b42318;margin-left:2mm}.ps-clinic{color:#333;flex-wrap:wrap;justify-content:center;gap:0 6mm;margin-top:1.5mm;font-size:9pt;display:flex}.ps-meta{border-collapse:collapse;table-layout:fixed;width:100%;margin-bottom:4mm;font-size:10pt}.ps-meta th,.ps-meta td{text-align:left;overflow-wrap:anywhere;border:1px solid #999;padding:1.4mm 2mm}.ps-meta th{white-space:nowrap;background:#f2f2f2;width:22mm;font-weight:600}.ps-table{border-collapse:collapse;table-layout:fixed;width:100%}.ps-col-month{width:16mm}.ps-col-item{width:32mm}.ps-col-qty{width:28mm}.ps-col-amount{width:36mm}.ps-table-detail th,.ps-table-detail td{padding:1.4mm 1.6mm}.ps-c-month{font-variant-numeric:tabular-nums;white-space:nowrap}.ps-line td{font-size:9.5pt;line-height:1.4}.ps-line .num{font-size:10.5pt}.ps-c-formula>div{overflow-wrap:anywhere}.ps-line-rounding td{color:#444;border-bottom-style:dashed}.ps-flag{color:#8a5300;border:1px solid #8a5300;border-radius:1mm;margin-top:.6mm;padding:0 1.2mm;font-size:8pt;display:inline-block}.ps-meta-line{margin-top:.6mm}.ps-table th,.ps-table td{text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #ccc;padding:1.6mm 2mm}.ps-table thead th{color:#333;border-bottom:1.5px solid #111;font-size:9.5pt}.payslip .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;overflow-wrap:normal}.ps-group th{background:#f2f2f2;padding-top:2mm;font-weight:700}.ps-subtotal th,.ps-subtotal td{border-top:1px solid #111;font-weight:700}.ps-month th{text-align:left;border-bottom:1px solid #999;padding-top:2mm;font-weight:700}.ps-month-subtotal th,.ps-month-subtotal td{border-top:1px dashed #999;font-weight:600}.ps-payable th,.ps-payable td{border-top:2px solid #111;border-bottom:3px double #111;padding:2.5mm 2mm;font-size:13pt;font-weight:700}.ps-status{color:#555}.ps-pending .ps-status{color:#8a5300;font-weight:600}.ps-provisional{color:#b42318;margin-left:1mm;font-size:10pt}.ps-seg{border-collapse:collapse;table-layout:fixed;width:100%;font-size:8.6pt;line-height:1.35}.ps-seg th,.ps-seg td{vertical-align:top;text-align:left;overflow-wrap:anywhere;border:1px solid #d5d5d5;padding:1mm 1.4mm}.ps-seg th{white-space:nowrap;background:#fafafa;font-weight:600}.ps-employer{color:#333;border:1px dashed #999;margin-top:4mm;padding:2mm 3mm;font-size:9pt}.ps-note{border:1px solid #999;margin-top:4mm;padding:2mm 3mm}.ps-note-title{margin-bottom:1mm;font-size:10.5pt;font-weight:700}.ps-note-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10pt;line-height:1.6}.ps-foot{color:#666;border-top:1px solid #ccc;margin-top:6mm;padding-top:2mm;font-size:8pt}.ps-payouts{margin-top:5mm}.ps-payouts-title{margin-bottom:1.5mm;font-size:10.5pt;font-weight:700}.ps-payout-totals{border-collapse:collapse;width:100%;margin-top:1.5mm;font-size:9pt}.ps-payout-totals th,.ps-payout-totals td{text-align:left;border:1px solid #d5d5d5;padding:1mm 1.4mm}.ps-payout-totals th{white-space:nowrap;background:#fafafa;font-weight:600}.ps-payout-totals td.num{text-align:right}.ps-muted{color:#666}.ps-small{font-size:8.5pt}@page{size:A4 portrait;margin:12mm 14mm 14mm;@bottom-center{content:"第 " counter(page) " / " counter(pages) " 頁";font-size:8pt;color:#555}}@media print{.no-print,.toasts{display:none!important}:root,body{background:#fff}.main{max-width:none;margin:0;padding:0}.payslip-stage{padding:0;overflow:visible}.payslip{width:auto;min-height:0;box-shadow:none;margin:0;padding:0}.ps-foot{display:none}.ps-table tfoot{display:table-row-group}.ps-head,.ps-meta,.ps-employer,.ps-table tr,.ps-seg tr{break-inside:avoid}.ps-group,.ps-month,.ps-note-title{break-after:avoid}.ps-note-body{orphans:2;widows:2}}.ps-attach-page{box-sizing:border-box;color:#111;background:#fff;width:210mm;height:297mm;margin:8mm auto 0;padding:12mm 14mm 15mm;font-family:Noto Sans TC,Microsoft JhengHei,PingFang TC,sans-serif;position:relative;overflow:hidden;box-shadow:0 2px 12px #0000002a}.ps-attach-area{width:182mm;height:270mm;position:relative;overflow:hidden}.ps-attach-head{box-sizing:border-box;color:#333;white-space:nowrap;text-overflow:ellipsis;border-bottom:.25mm solid #999;width:100%;padding-top:1mm;font-size:10pt;font-weight:600;position:absolute;top:0;left:0;overflow:hidden}.ps-attach-img{object-fit:contain;display:block;position:absolute}.ps-attach-missing{color:#b42318;text-align:center;box-sizing:border-box;border:.3mm solid #b42318;justify-content:center;align-items:center;padding:2mm;font-size:10pt;display:flex;position:absolute}.ps-attach-caption{color:#444;text-align:center;white-space:nowrap;text-overflow:ellipsis;font-size:9pt;line-height:6mm;position:absolute;overflow:hidden}@media print{.ps-attach-page{break-before:page;break-inside:avoid;width:auto;height:270mm;box-shadow:none;margin:0;padding:0}}.att-toolbar{flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.4rem 0;display:flex}.att-count{font-variant-numeric:tabular-nums}.att-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.6rem;margin:.4rem 0 0;padding:0;list-style:none;display:grid}.att-item{background:#fff;border:1px solid #d5dbe5;border-radius:6px;grid-template-columns:72px 1fr;align-items:start;gap:.3rem .6rem;padding:.4rem;display:grid}.att-thumb{cursor:zoom-in;background:#f7f8fa;border:1px solid #e3e7ee;border-radius:4px;justify-content:center;align-items:center;width:72px;height:72px;padding:0;display:flex;overflow:hidden}.att-thumb img{object-fit:contain;max-width:100%;max-height:100%}.att-info{min-width:0}.att-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.att-actions{grid-column:1/-1;justify-content:flex-end;gap:.3rem;display:flex}.att-preview{z-index:50;background:#000000b0;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.att-preview figure{flex-direction:column;align-items:center;gap:.5rem;max-width:92vw;max-height:92vh;margin:0;display:flex}.att-preview img{object-fit:contain;background:#fff;max-width:92vw;max-height:82vh}.att-preview figcaption{color:#fff;flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;display:flex}.statutory-modes{gap:.6rem;margin-bottom:.8rem;display:grid}.mode-switch{flex-wrap:wrap;gap:.4rem 1.2rem;display:flex}.mode-switch label{align-items:center;gap:.3rem;display:inline-flex}.pay-month-chips{flex-wrap:wrap;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.pay-month-chips li{font-variant-numeric:tabular-nums;background:#f3f6fb;border:1px solid #b8c4d6;border-radius:999px;align-items:center;gap:.25rem;padding:.15rem .5rem;display:inline-flex}.chip-remove{cursor:pointer;color:#5a6475;background:0 0;border:0;padding:0 .15rem;font-size:.85em;line-height:1}.chip-remove:hover{color:#b3261e}.pay-month-add{align-items:center;gap:.4rem;display:flex}.pay-month-add input{flex:1;min-width:0}.report-lump td{background:#fafafa;font-style:italic}.ck-sheet{color:#000;background:#fff;width:297mm;min-height:210mm;margin:0 auto;padding:10mm;font-family:Noto Sans TC,Microsoft JhengHei,PingFang TC,sans-serif;font-size:10.5pt;line-height:1.4;box-shadow:0 2px 12px #0000002a}.ck-head{align-items:baseline;gap:4mm;margin-bottom:2mm;display:flex}.ck-head h1{margin:0;font-size:15pt}.ck-sub{margin:0;font-size:9pt}.ck-meta{border-collapse:collapse;width:100%;margin-bottom:3mm;font-size:10pt}.ck-meta th,.ck-meta td{text-align:left;border:1px solid #000;padding:1.2mm 2mm}.ck-meta th{white-space:nowrap;width:1%;font-weight:700}.ck-table{border-collapse:collapse;table-layout:fixed;width:100%;margin-bottom:3mm}.ck-table th,.ck-table td{vertical-align:top;text-align:left;border:1px solid #000;padding:1.5mm 2mm}.ck-table thead th{border-bottom-width:2px;font-weight:700}.ck-col-item,.ck-col-qty{width:62mm}.ck-month{font-variant-numeric:tabular-nums;text-align:center!important}.ck-item strong{font-size:10.5pt}.ck-small{font-size:8.5pt}.ck-basis{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:9.5pt}.ck-basis-list{margin:0;padding:0;list-style:none}.ck-basis-month{font-weight:700}.ck-qty{height:14mm}.ck-na{font-size:13pt;text-align:center!important;vertical-align:middle!important}.ck-blank{align-items:flex-end;gap:2mm;min-height:10mm;display:flex}.ck-blank+.ck-blank{min-height:9mm}.ck-blank-label{white-space:nowrap;font-size:8.5pt}.ck-line{border-bottom:1px solid #000;flex:1;min-width:25mm;height:6mm;display:inline-block}.ck-warn{font-size:8.5pt;font-weight:700}.ck-sign{margin-top:2mm}.ck-note{border:1px solid #000;height:22mm;margin-bottom:4mm;padding:1.5mm 2mm}.ck-sign-grid{grid-template-columns:repeat(4,1fr);gap:4mm 8mm;display:grid}.ck-sign-grid>div{white-space:nowrap;align-items:flex-end;display:flex}@media print{.checklist-stage{padding:0;overflow:visible}.ck-sheet{width:auto;min-height:0;box-shadow:none;margin:0;padding:0}.ck-table thead{display:table-header-group}.ck-head,.ck-meta,.ck-table tr,.ck-sign{break-inside:avoid}.ck-table{break-inside:auto}}
