@scope(.invoice-workspace){.workspace{max-width:1750px;margin:0 auto;padding:28px clamp(15px,2.5vw,44px) 30px;display:grid;grid-template-columns:290px minmax(0,1fr) 282px;gap:22px;align-items:start}.control-side{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;scrollbar-width:thin;scrollbar-color:#d7dbdd transparent;display:flex;flex-direction:column;gap:14px;padding-bottom:12px}.panel{background:#fff;border:1px solid #e9ebed;border-radius:19px;padding:19px;box-shadow:0 9px 27px #1c272f06}.panel-title{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.eyebrow{font-size:10px;font-weight:740;letter-spacing:.14em;color:#9aa2a8}.panel-title h2{font-size:15px;letter-spacing:-.38px;margin:7px 0 0;font-weight:700}.quiet-note{font-size:11px;color:#8c969b;line-height:1.75;margin:0}.small-glyph{font-size:12px;color:#929da3}.dropzone{border:1.5px dashed #ccd3d7;background:linear-gradient(160deg,#fafbfc,#f5f7f8);border-radius:14px;min-height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:15px 8px;transition:background .25s,border .25s,transform .25s;outline:none;cursor:pointer}.dropzone:hover,.dropzone.is-drag{background:#f0f4f4;border-color:#657a7c;transform:translateY(-1px)}.drop-glyph{height:34px;width:34px;border-radius:10px;background:#fff;border:1px solid #e5e9ea;box-shadow:0 3px 10px #15272d10;display:grid;place-items:center}.dropzone strong{font-size:12px;font-weight:680}.dropzone small{color:#9ca6ac;font-size:10px}.text-link{background:none;border:0;color:#586b70;padding:0;text-decoration:underline;text-underline-offset:3px;font-weight:600;font-size:11px}.import-sep{height:1px;background:#edf0f1;margin:16px 0}.file-list{display:grid;gap:10px}.file-entry{display:flex;align-items:flex-start;gap:10px;border-radius:11px;background:#f8faf9;padding:10px}.file-symbol{background:#e9efeb;color:#567460;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none;font-weight:800;font-size:10px}.file-entry-main{min-width:0}.file-entry-name{font-size:11px;font-weight:610;max-width:195px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.file-entry-meta{font-size:10px;color:#929ba0;margin-top:4px}.empty-caption{font-size:11px;color:#a0a7ab;padding:3px 0}.demo-bar{display:flex;justify-content:space-between;gap:9px;align-items:center;color:#90999f;font-size:11px;margin-top:13px}.field-grid{display:grid;gap:13px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{color:#747e84;font-size:11px;font-weight:620;display:flex;justify-content:space-between;align-items:center;gap:7px}.field input,.field textarea,.field select,.line-input,.verify-input{border:1px solid #e4e8ea;background:#fafbfb;border-radius:9px;min-height:37px;padding:9px 10px;outline:0;width:100%;transition:border .2s,box-shadow .2s;color:#262b2e;font-size:12px}.field textarea{min-height:59px;resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus,.line-input:focus,.verify-input:focus{background:#fff;border-color:#9da9ab;box-shadow:0 0 0 3px #718e9119}.field input::placeholder,.field textarea::placeholder{color:#aeb5ba}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.group-heading{font-size:11px;font-weight:730;color:#24292c;margin:1px 0 12px}.form-divider{height:1px;background:#edf0f0;margin:19px 0 15px}.tip-icon{width:15px;height:15px;border-radius:100%;border:1px solid #a4acb1;color:#828e95;display:inline-grid;place-items:center;font-size:10px;font-weight:700;flex:none}.details-toggle{padding-top:2px}.details-toggle summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;color:#283037;font-size:12px;font-weight:690}.details-toggle summary:after{content:"⌄";color:#8b969b;font-size:19px}.details-toggle[open] summary:after{transform:rotate(180deg)}.details-body{padding-top:15px}.stage{min-width:0;display:flex;flex-direction:column;align-items:stretch}.stage-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:5px 0 14px;padding:0 4px}.stage-head-left{font-size:11px;color:#7d888e;display:flex;gap:11px;align-items:center}.stage-head-left strong{font-weight:720;letter-spacing:.13em;color:#4f5c62;font-size:10px}.tiny-live{gap:9px;font-size:11px;color:#7e8b91}.tiny-live i{background:#889b96}.stage-actions{display:flex;align-items:center;gap:5px}.mode-tag{border:1px solid #e4e8e9;background:#fff;color:#66747b;border-radius:7px;padding:7px 10px;font-size:10px}.preview-pad{width:100%;padding:18px 14px 44px;border:1px solid #e9eced;border-radius:21px;background:radial-gradient(#d7dde1 .65px,transparent .8px) 0 0/17px 17px,#eff1f2;display:flex;justify-content:center;align-items:flex-start;overflow:visible;box-shadow:inset 0 2px 18px #27313c08}.invoice-sheet{background:#fff;width:100%;max-width:794px;min-height:1080px;display:flex;flex-direction:column;padding:clamp(32px,5.25vw,61px) clamp(27px,4.6vw,58px) 34px;box-shadow:0 23px 65px #141e2d21,0 1px 1px #25333c20;position:relative;transition:box-shadow .2s;color:#202529}.invoice-sheet:hover{box-shadow:0 25px 68px #141e2d26,0 1px 1px #25333c20}.sheet-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:27px;border-bottom:1px solid #23272b}.sheet-logo{display:flex;align-items:center;gap:11px}.sheet-mark{display:grid;place-items:center;width:37px;height:37px;background:#1a1e21;color:#fff;font-size:23px;letter-spacing:-2px;border-radius:9px;font-weight:760}.sheet-business{display:flex;flex-direction:column;gap:4px}.sheet-business strong{font-weight:800;letter-spacing:.028em;font-size:13px}.sheet-business span{letter-spacing:.13em;color:#99a0a5;font-size:8px;font-weight:700}.sheet-tag{text-transform:uppercase;font-size:9px;letter-spacing:.17em;color:#8c9499;text-align:right;line-height:1.7}.sheet-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:27px 0 29px}.sheet-hero h1{font-size:clamp(32px,3.2vw,41px);font-weight:800;letter-spacing:-.075em;margin:0;line-height:1.05}.sheet-hero p{margin:9px 0 0;color:#899198;font-size:10px}.sheet-hero-code{text-align:right;max-width:265px;min-width:0}.sheet-kicker{font-size:9px;letter-spacing:.12em;color:#989fa3;text-transform:uppercase;font-weight:750}.sheet-invoice-id{font-size:11px;font-weight:640;margin-top:7px;overflow-wrap:anywhere;line-height:1.5}.sheet-companies{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:18px 0 28px;border-bottom:1px solid #e3e6e8}.company-title{font-size:10px;color:#8e989d;letter-spacing:.12em;font-weight:750;margin-bottom:11px}.company-name{font-size:13px;font-weight:740;line-height:1.5;margin-bottom:8px;overflow-wrap:anywhere}.company-zh-name{font-size:11px;line-height:1.55;margin:-4px 0 8px;color:#4d595f;overflow-wrap:anywhere}.company-desc{font-size:10.5px;color:#6f797e;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.company-sub{font-size:10px;color:#919a9f;line-height:1.7;margin-top:7px}.sheet-meta{display:grid;grid-template-columns:1.05fr 1.1fr 1.5fr .62fr;border-bottom:1px solid #e3e7e8;padding:18px 0 21px;gap:14px}.sheet-meta-value{font-size:11px;font-weight:650;margin-top:8px;line-height:1.5;overflow-wrap:anywhere}.sheet-meta .sheet-kicker{font-size:8.5px}.sheet-section-head{display:flex;justify-content:space-between;align-items:center;padding:31px 0 13px;gap:10px}.sheet-section-head strong{font-size:12px;letter-spacing:-.012em}.sheet-section-head span{font-size:9px;color:#a2a8aa}.sheet-lines{width:100%;border-collapse:collapse;table-layout:fixed}.sheet-lines thead th{padding:13px 9px;border-top:1px solid #252a2e;border-bottom:1px solid #d9dde0;color:#767f84;font-size:9px;font-weight:660;text-transform:uppercase;text-align:left}.sheet-lines tbody td{padding:16px 9px;border-bottom:1px solid #ebeeee;font-size:11px;line-height:1.65;vertical-align:top;overflow-wrap:anywhere}.sheet-lines th:first-child,.sheet-lines td:first-child{padding-left:0;width:34px;color:#929c9f}.sheet-lines th:nth-child(3),.sheet-lines td:nth-child(3){width:48px;text-align:center}.sheet-lines th:last-child,.sheet-lines td:last-child{padding-right:0;text-align:right;width:104px;white-space:nowrap}.sheet-lines td strong{font-size:11px;font-weight:690;display:block}.sheet-lines td small{color:#9ca5aa;font-size:9px}.sheet-lines tbody td.amount-col{font-weight:690;font-variant-numeric:tabular-nums}.sheet-lines-empty{font-size:11px;color:#abb3b7;text-align:center;padding:24px}.sheet-summary{display:grid;grid-template-columns:1fr minmax(210px,46%);gap:28px;padding:25px 0 30px}.sheet-summary-left{display:flex;align-items:flex-end;color:#939ba0;font-size:10px;line-height:1.85}.sheet-totals{display:grid;gap:12px}.sheet-total-row{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#7b858a;font-size:10px}.sheet-total-row b{color:#353b3f;font-weight:660;font-size:11px;font-variant-numeric:tabular-nums}.sheet-totals-main{border-top:1px solid #202529;margin-top:3px;padding-top:17px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.sheet-totals-main .total-label{font-size:10px;font-weight:730;line-height:1.7}.sheet-totals-main .total-money{font-size:clamp(23px,2.5vw,31px);font-weight:790;letter-spacing:-.065em;white-space:nowrap;animation:numIn .32s ease-out}.sheet-totals-main .total-money small{font-size:12px;letter-spacing:0;margin-right:5px;color:#747d80;font-weight:700}.sheet-reference{border:1px solid #e7e9ea;border-radius:11px;background:#fafbfb;padding:13px 15px;margin-bottom:23px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.sheet-reference .sheet-kicker{font-size:8px;letter-spacing:.08em}.sheet-reference .sheet-meta-value{font-size:11px;margin-top:6px}.reference-header{margin:2px 0 9px;color:#7c898e;font-size:9px;letter-spacing:.11em;font-weight:700}.sheet-bottom{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:1px solid #e6e9ea;padding:24px 0 20px;min-height:150px}.sheet-bottom p{font-size:10px;line-height:1.9;color:#717c81;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.sheet-bottom strong{font-size:10px;font-weight:770;letter-spacing:.05em}.sheet-sig{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:auto;padding-top:30px}.sig-block{font-size:9px;color:#8c9498;letter-spacing:.05em}.sig-line{margin-top:36px;border-top:1px solid #d7dbde;padding-top:8px}.sheet-foot{display:flex;justify-content:space-between;align-items:center;margin-top:37px;padding-top:14px;border-top:1px solid #e7eaec;gap:8px;color:#a0aaaf;font-size:8px;letter-spacing:.08em}.sheet-foot strong{font-size:9px;color:#697279;letter-spacing:.06em}[data-edit]{outline:none;border-radius:3px;transition:box-shadow .12s,background .12s;cursor:text}[data-edit]:hover{box-shadow:inset 0 -1px #aab3b6;background:#f5f7f770}[data-edit]:focus{background:#fff8df;box-shadow:0 0 0 3px #f6db8a55}.stage-hint{font-size:11px;color:#9aa2a8;margin-top:13px;text-align:center;line-height:1.8}.stage-hint strong{color:#676f75;font-weight:650}.amount-hero{font-variant-numeric:tabular-nums;letter-spacing:-.065em;font-size:35px;font-weight:780;margin:2px 0 1px}.amount-hero small{font-size:14px;letter-spacing:0;color:#7d888c;font-weight:650}.amount-copy{font-size:11px;color:#879196}.mini-divider{height:1px;background:#eceeef;margin:17px 0}.compare-rows{display:grid;gap:13px}.compare-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#7d878d}.compare-row b{font-variant-numeric:tabular-nums;color:#292f33;font-weight:700}.compare-row.subdued b{color:#989fa4}.amount-note{padding:12px 13px;border-radius:11px;background:#f6f8f7;display:flex;gap:10px;align-items:flex-start;margin-top:17px}.amount-note strong{font-size:11px;color:#4a7160}.amount-note.warn strong{color:#975b37}.amount-note p{font-size:10px;color:#83918c;line-height:1.55;margin:4px 0 0}.amount-note.warn{background:#fff7ed}.amount-note.warn p{color:#957b65}.line-edit-list{display:grid;gap:9px}.line-card{border:1px solid #e7e9ea;border-radius:12px;padding:11px 11px 10px;background:#fff}.line-card-top{display:flex;justify-content:space-between;gap:7px;align-items:center}.line-label{font-size:11px;font-weight:680;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:139px}.line-amount{font-size:11px;font-weight:740;font-variant-numeric:tabular-nums}.line-card-bottom{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:7px;margin-top:9px}.line-card-bottom select{padding:6px;border:1px solid #e8eaec;background:#fbfcfc;font-size:10px;border-radius:7px;outline:none;min-width:0}.line-input{padding:6px 8px;min-height:31px;text-align:right;font-size:11px}.line-toggle{display:flex;align-items:center;gap:6px;cursor:pointer;color:#9aa3a7;font-size:10px;margin-top:10px}.line-toggle input{accent-color:#1f2a2e}.line-more{display:grid;grid-template-columns:1fr 27px;gap:7px;margin-top:8px;align-items:center}.line-more input{font-size:10px;width:100%;padding:6px;border:1px solid #eaeded;border-radius:7px;outline:none}.line-more button{background:#fff;border:1px solid #eceeef;border-radius:7px;height:29px;color:#99a2a6}.plain-action{border:1px solid #dfe4e6;background:#fff;width:100%;height:35px;border-radius:9px;display:flex;justify-content:center;gap:7px;align-items:center;font-size:11px;font-weight:650;margin-top:12px}.plain-action:hover{background:#f7f9f8}.options-list{display:grid;gap:13px}.option-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#636e73}.switch{position:relative;display:inline-flex;width:31px;height:18px;flex:none}.switch input{opacity:0;width:0;height:0}.switch span{border-radius:50px;position:absolute;inset:0;background:#dfe4e6;transition:background .15s}.switch span:after{content:"";display:block;position:absolute;width:12px;height:12px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s}.switch input:checked+span{background:#202629}.switch input:checked+span:after{transform:translate(13px)}.action-primary{display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:#181d20;color:#fff;border-radius:11px;min-height:46px;width:100%;font-weight:680;font-size:12px;letter-spacing:.015em;transition:background .2s,transform .2s,box-shadow .2s;box-shadow:0 5px 13px #13191f22}.action-primary:hover{background:#333b3e;transform:translateY(-1px);box-shadow:0 8px 16px #13191f25}.action-primary:active{transform:translateY(0)}.secondary-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:12px}.secondary-row button{flex:1;background:#fff;border:1px solid #e4e8ea;height:34px;border-radius:8px;font-size:10px;font-weight:600}.secondary-row button:hover{background:#f6f8f8}.muted-footer{display:flex;gap:7px;justify-content:center;align-items:center;color:#a3aab0;font-size:10px;margin-top:16px}.muted-footer:before{content:"◈";font-size:12px;color:#7b8c88}@keyframes breathe{0%,to{opacity:.55;box-shadow:0 0 0 3px #6aa78a13}50%{opacity:1;box-shadow:0 0 0 6px #6aa78a15}}@keyframes numIn{0%{transform:translateY(5px);opacity:.6}to{transform:translateY(0);opacity:1}}@media(max-width:1400px){.workspace{grid-template-columns:270px minmax(0,1fr) 258px;gap:15px;padding:19px}.panel{padding:15px}.invoice-sheet{padding:37px 33px 28px;min-height:1010px}}@media(max-width:1130px){.header-flow{display:none}.workspace{grid-template-columns:245px minmax(0,1fr);grid-template-areas:"left center" "right center"}.control-side{position:static;max-height:none}.left-side{grid-area:left}.right-side{grid-area:right}.stage{grid-area:center}.invoice-sheet{padding:32px 27px;min-height:980px}}@media(max-width:800px){.shell-head{height:64px;padding:0 15px}.brand{min-width:0}.brand-copy strong{font-size:12px}.brand-copy span{font-size:8px}.header-right{min-width:0}.local-pill{font-size:0;padding:8px}.local-pill i{display:block}.workspace{display:flex;flex-direction:column;padding:13px;gap:12px}.left-side,.right-side,.stage{width:100%;max-width:100%}.control-side{overflow:visible}.stage{order:1}.left-side{order:0}.right-side{order:2}.preview-pad{padding:8px 6px 20px}.invoice-sheet{padding:24px 19px;min-height:850px}.sheet-hero h1{font-size:29px}.sheet-invoice-id{font-size:9px}.sheet-companies{gap:13px}.sheet-meta{gap:6px}.sheet-summary{grid-template-columns:1fr;gap:12px}.sheet-summary-left{display:none}.sheet-meta-value{font-size:9px}.sheet-lines tbody td{font-size:10px;padding:11px 4px}.sheet-lines thead th{font-size:8px;padding:9px 4px}.sheet-lines th:last-child,.sheet-lines td:last-child{width:83px}.sheet-lines th:nth-child(3),.sheet-lines td:nth-child(3){width:31px}.sheet-reference{padding:9px;gap:5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media print{@page{size:A4 portrait;margin:0}html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}#sidro-header,#sidro-footer,.shell-head,.control-side,.stage-head,.stage-hint,.toast{display:none!important}.workspace,.stage,.preview-pad{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;box-shadow:none!important;background:#fff!important;border:0!important}.invoice-sheet{width:210mm!important;min-height:0!important;max-width:none!important;margin:0!important;box-shadow:none!important;border:0!important;padding:15mm 18mm 12mm!important;display:block!important;break-inside:auto!important;position:relative}.sheet-hero h1{font-size:34pt}.sheet-lines tbody tr,.sheet-companies,.sheet-summary,.sheet-bottom,.sheet-reference{break-inside:avoid;page-break-inside:avoid}.sheet-lines thead{display:table-header-group}.sheet-sig,.sheet-foot{margin-top:14mm!important}.bank-placeholder{display:none!important}[data-edit]{outline:0!important;box-shadow:none!important;background:none!important}}.line-tax{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#9ca4a8;font-size:10px;margin-top:10px}.line-tax input{width:75px;height:26px;min-width:0;border:1px solid #edf0f1;background:#fafbfb;border-radius:6px;padding:3px 7px;text-align:right;font-size:10px;outline:none}.line-tax input:focus{border-color:#94a5a9;background:#fff}@media print{.invoice-sheet{width:210mm!important;min-height:0!important;height:auto!important;display:block!important;zoom:.9!important;margin-left:9mm!important;padding:11mm 17mm 9mm!important}.sheet-top{padding-bottom:14px!important}.sheet-hero{padding:16px 0 18px!important}.sheet-companies{padding:9px 0 12px!important}.sheet-meta{padding:10px 0 12px!important}.sheet-section-head{padding:15px 0 8px!important}.sheet-lines tbody td,.sheet-lines thead th{padding:9px 6px!important}.sheet-summary{padding:13px 0 14px!important}.sheet-reference{margin-bottom:11px!important}.sheet-bottom{min-height:0!important;padding:10px 0 4px!important}.sheet-sig{margin-top:7mm!important;padding-top:6px!important}.sig-line{margin-top:20px!important}.sheet-foot{margin-top:6mm!important;padding-top:9px!important}.bank-placeholder{display:none!important}}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f0f2f3;border-radius:11px;padding:4px;margin-bottom:16px}.mode-switch button{border:0;background:transparent;border-radius:8px;min-height:34px;font-size:12px;font-weight:650;color:#6c767c}.mode-switch button[aria-pressed=true]{background:#fff;color:#1c2125;box-shadow:0 1px 4px #1b24281a}body[data-mode=manual] [data-mode-only=tmall],body[data-mode=tmall] [data-mode-only=manual]{display:none!important}.preset-row{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center}.mini-btn{border:1px solid #dfe4e6;background:#fff;border-radius:8px;min-height:37px;padding:0 10px;font-size:11px;font-weight:620;white-space:nowrap}.mini-btn:hover{background:#f7f9f8}.logo-row{display:flex;align-items:center;gap:10px}.logo-thumb{width:44px;height:44px;border:1px dashed #cfd6d9;border-radius:9px;display:grid;place-items:center;overflow:hidden;background:#fafbfb;color:#a5adb1;font-size:10px;flex:none}.logo-thumb img{max-width:100%;max-height:100%;object-fit:contain}.sheet-logo img{max-height:42px;max-width:150px;object-fit:contain;display:block}.sheet-mark.text-mark{width:auto;padding:0 11px;font-size:15px;letter-spacing:0;min-height:37px}.line-card .line-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:9px}.line-card .line-grid label{display:flex;flex-direction:column;gap:3px;font-size:9px;color:#9aa3a7}.line-card .line-grid input{min-height:30px;padding:5px 7px;border:1px solid #e8eaec;background:#fbfcfc;border-radius:7px;text-align:right;font-size:11px;width:100%;outline:none}.line-card .line-grid input:focus{border-color:#94a5a9;background:#fff}.line-card .line-desc{display:grid;gap:6px;margin-top:9px}.line-card .line-desc input{font-size:11px;width:100%;padding:6px 8px;border:1px solid #e8eaec;border-radius:7px;outline:none;background:#fbfcfc}.line-card .line-del{margin-top:8px;text-align:right}.line-card .line-del button{background:#fff;border:1px solid #eceeef;border-radius:7px;height:26px;padding:0 9px;color:#99a2a6;font-size:10px}.sheet-lines.five th:nth-child(3),.sheet-lines.five td:nth-child(3){width:54px;text-align:center}.sheet-lines.five th:nth-child(4),.sheet-lines.five td:nth-child(4){width:84px;text-align:right}.sheet-lines.five th:last-child,.sheet-lines.five td:last-child{width:98px}.sheet-lines.five th:nth-child(4){text-align:right}.sheet-lines th:last-child{text-align:right}.sheet-terms{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;padding:14px 0 6px}@media print{.mode-switch,.preset-row{display:none!important}.sheet-summary{display:flex!important;justify-content:flex-end!important}.sheet-summary-left{display:none!important}.sheet-totals{width:46%!important;min-width:210px}.sheet-terms{padding:8px 0 2px!important}}[data-edit][data-empty]{color:#b3bbc0}@media print{[data-edit][data-empty]{visibility:hidden}}}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#202529;background:#f5f6f7;font-synthesis:none;font-size:13px;-webkit-font-smoothing:antialiased;--muted: #8b959c;--line: #e6e9eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,.button{cursor:pointer;border:1px solid #e0e5e7;background:#fff;padding:9px 12px;border-radius:8px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;transition:background .15s}button:hover,.button:hover{background:#eff2f3}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}.primary{background:#22272a;color:#fff;border-color:#22272a}.primary:hover{background:#3a4146}.wide{width:100%;margin-top:10px;min-height:37px}.icon-button{border:0;background:transparent;padding:5px}.danger{color:#a2483a}.shell-head{min-height:76px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fffffff2;border-bottom:1px solid #e7eaec}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;flex-shrink:0}.brand-emblem{display:grid;place-items:center;background:#22272a;color:#fff;width:36px;height:36px;font-size:22px;font-weight:700;border-radius:10px}.brand strong{display:block;font-size:14px;letter-spacing:.02em}.brand small{display:block;color:#939ba0;font-size:9px;letter-spacing:.12em;margin-top:5px}.shell-head nav{display:flex;align-self:stretch;gap:22px}.shell-head nav button{border:0;border-radius:0;padding:0 4px;color:#8b949a;background:none;position:relative;font-size:12px}.shell-head nav button.active{color:#22272a;font-weight:650}.shell-head nav button.active:after{content:"";height:2px;background:#22272a;position:absolute;bottom:0;left:4px;right:4px}.account{display:flex;align-items:center;gap:12px;color:#79838a;font-size:11px}.workspace{max-width:1920px;margin:auto;padding:28px 28px 32px;display:grid;grid-template-columns:272px minmax(0,1fr) 260px;gap:22px;align-items:start}.control-side{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;scrollbar-width:thin;scrollbar-color:#d7dbdd transparent;display:flex;flex-direction:column;gap:14px;padding-bottom:8px}.panel{background:#fff;border:1px solid #e9ebed;border-radius:18px;padding:19px;box-shadow:0 9px 27px #1c272f05}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:17px}.eyebrow{color:#9aa2a8;font-weight:700;letter-spacing:.14em;font-size:9px}.panel-title h2{font-size:15px;margin:7px 0 0;font-weight:650;letter-spacing:-.3px}.field-grid{display:grid;gap:13px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:11px;color:#7c868d;font-weight:500}.field input,.field select,.field textarea,.chain-row select{background:#fafbfb;border:1px solid #e4e8ea;border-radius:8px;min-height:36px;padding:8px 10px;outline:none;width:100%;font-size:12px;line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9da9ab;background:#fff;box-shadow:0 0 0 3px #718e9119}.field textarea{resize:vertical}.field input[readonly]{color:#9ba3a8}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.group-heading{font-size:11px;font-weight:650;margin:2px 0}.quiet-note{font-size:10px;line-height:1.8;color:#939da3;margin:12px 0 0}.mode-switch{display:flex;gap:3px;background:#f1f3f4;border-radius:9px;padding:4px;margin-bottom:14px}.mode-switch button,.mode-switch label{flex:1;border:0;text-align:center;border-radius:6px;padding:8px;font-size:11px;color:#8c969b;cursor:pointer;background:transparent}.mode-switch .selected{background:#fff;color:#24292c;box-shadow:0 2px 5px #00000008}.dropzone{border:1.5px dashed #cfd6da;border-radius:12px;background:#f9fafb;min-height:145px;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;text-align:center;padding:16px;cursor:pointer;overflow-wrap:anywhere}.dropzone svg{color:#7f8c94}.dropzone strong{font-size:11px;font-weight:600}.dropzone small{font-size:10px;color:#a0a9ae}.dropzone span{font-size:10px;text-decoration:underline;text-underline-offset:3px;color:#5f6f78}.stage{min-width:0}.stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8e999f;font-size:10px;margin:5px 4px 15px}.stage-head b{font-size:9px;letter-spacing:.13em;color:#65727a;font-weight:650}.live{display:flex;align-items:center;gap:7px}.live i{height:5px;width:5px;background:#869d93;border-radius:50%}.preview-pad{padding:22px 20px 40px;border:1px solid #e3e8eb;border-radius:20px;background:radial-gradient(#d5dcdf .65px,transparent .8px) 0 0/17px 17px,#eff1f2;display:flex;justify-content:center;overflow:auto}.invoice-sheet{width:100%;max-width:794px;min-height:960px;background:#fff;box-shadow:0 20px 55px #1727321a,0 1px 2px #17273215;padding:44px 40px 28px;display:flex;flex-direction:column;color:#202529}.sheet-top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #24292d;padding-bottom:24px}.paper-brand{font-size:18px;letter-spacing:.02em}.paper-brand span{font-size:11px;font-weight:600;letter-spacing:.05em}.sheet-top p{font-size:7px;color:#9ba3a8;letter-spacing:.15em;margin:6px 0 0}.sheet-tag{font-size:8px;letter-spacing:.16em;text-align:right;color:#99a1a6;line-height:1.8}.sheet-hero{display:flex;align-items:flex-end;justify-content:space-between;padding:28px 0;gap:16px}.sheet-hero h1{font-size:42px;letter-spacing:-2px;margin:0;line-height:1.02;font-weight:750}.sheet-hero p{font-size:10px;color:#8c969c;margin:12px 0 0}.sheet-hero>div:last-child{text-align:right;max-width:45%;overflow-wrap:anywhere}.invoice-sheet small{font-size:8px;letter-spacing:.1em;color:#98a2a8;font-weight:600}.sheet-hero strong{display:block;font-size:10px;margin-top:8px}.companies{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:16px 0 24px;border-bottom:1px solid #e3e7e9}.companies h3{font-size:12px;margin:11px 0 7px;overflow-wrap:anywhere}.companies p{font-size:10px;color:#7b868c;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.sheet-meta{display:grid;grid-template-columns:1fr .8fr 1.4fr 1fr;gap:14px;padding:20px 0;border-bottom:1px solid #e3e7e9}.sheet-meta strong{display:block;font-size:10px;margin-top:8px;overflow-wrap:anywhere}.sheet-section{display:flex;justify-content:space-between;font-size:11px;font-weight:600;padding:28px 0 12px}.sheet-section span{font-size:8px;color:#a0a8ad;font-weight:400}.sheet-lines{width:100%;border-collapse:collapse;table-layout:fixed}.sheet-lines th{font-size:8px;font-weight:500;color:#879298;text-align:left;border-top:1px solid #242a2e;border-bottom:1px solid #dce2e4;padding:12px 5px}.sheet-lines td{font-size:10px;border-bottom:1px solid #edf0f1;padding:16px 5px;vertical-align:top;overflow-wrap:anywhere}.sheet-lines th:first-child,.sheet-lines td:first-child{width:27px;padding-left:0;color:#a0aaaf}.sheet-lines th:nth-child(3),.sheet-lines td:nth-child(3){width:35px;text-align:center}.sheet-lines th:nth-child(4),.sheet-lines td:nth-child(4){width:65px;text-align:right}.sheet-lines th:last-child,.sheet-lines td:last-child{width:72px;text-align:right;padding-right:0}.sheet-summary{display:grid;grid-template-columns:1fr 55%;gap:20px;padding:24px 0}.sheet-summary p{font-size:10px;color:#879298;display:flex;justify-content:space-between;margin:0 0 12px;gap:10px}.sheet-summary b{font-size:10px;color:#454e54;font-weight:550}.grand-total{display:flex;justify-content:space-between;align-items:flex-end;border-top:1px solid #22272a;padding-top:16px;gap:10px}.grand-total>span{font-size:9px;line-height:1.7;font-weight:600}.grand-total strong{font-size:26px;letter-spacing:-1px;white-space:nowrap}.grand-total strong small{font-size:10px;letter-spacing:0}.sheet-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid #e6e9eb;padding:24px 0;min-height:130px}.sheet-bottom b{font-size:8px;letter-spacing:.05em}.sheet-bottom p{font-size:10px;line-height:1.9;color:#859097;white-space:pre-wrap;overflow-wrap:anywhere}.signatures{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:auto;padding-top:42px}.signatures span{border-top:1px solid #d9dfe2;padding-top:9px;font-size:8px;color:#a0a8ad}.invoice-sheet footer{display:flex;justify-content:space-between;font-size:7px;color:#a0a8ad;letter-spacing:.05em;border-top:1px solid #edf0f1;margin-top:auto;padding-top:14px;gap:16px}.invoice-sheet footer b{color:#7f8a91;font-size:8px}.signatures+footer{margin-top:28px}.stage-hint{text-align:center;font-size:10px;color:#a0a8ae;margin:15px 0}.line-list{display:grid;gap:10px;margin-top:13px}.line-card{border:1px solid #e7ebed;border-radius:11px;padding:11px;display:grid;gap:9px}.line-top{display:flex;justify-content:space-between;align-items:center;font-size:10px}.line-top b{font-weight:600}.line-card .field>span{font-size:10px}.line-card .field input{min-height:30px;padding:5px 7px;font-size:11px}.line-card textarea{font-size:11px}.line-total{font-size:10px;color:#949da3;margin:1px 0;display:flex;justify-content:space-between}.line-total b{color:#4f5b62}.secondary-row{display:flex;justify-content:space-between;margin-top:12px}.secondary-row button{background:none;border:0;padding:3px;color:#859199;font-size:10px}.check{display:flex;align-items:center;gap:8px;color:#78858d;font-size:11px}.check input{accent-color:#24292d}hr{border:0;border-top:1px solid #edf0f1;width:100%;margin:7px 0}.source-text{margin-top:14px;font-size:10px;line-height:1.7;color:#7d8b93}.source-text pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;font-family:inherit}.app-footer{display:flex;justify-content:space-between;padding:20px 32px;border-top:1px solid #e5e9eb;color:#a0a8ad;font-size:9px;letter-spacing:.06em}.page{max-width:1400px;margin:auto;padding:40px 36px 70px;min-height:calc(100vh - 130px)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.page-heading h1{font-size:28px;letter-spacing:-.8px;font-weight:650;margin:10px 0}.page-heading p{color:#8b979e;font-size:12px}.flow-strip{display:flex;align-items:center;gap:20px;color:#7e8a92;padding:18px 22px;border:1px solid #e4e8ea;border-radius:12px;background:#fafbfb;margin-bottom:24px;font-size:11px}.tabs{display:flex;gap:20px;border-bottom:1px solid #e6eaec;margin-bottom:22px}.tabs button{background:none;border:0;border-radius:0;padding:12px 3px;font-size:12px;color:#9aa3a9}.tabs button.active{border-bottom:2px solid #272e32;color:#272e32;font-weight:600}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}.data-table th{font-weight:500;color:#929da4;background:#fafbfb;padding:14px 16px}.data-table td{padding:17px 16px;border-bottom:1px solid #edf0f1;color:#66757e}.data-table td b{color:#303d44;font-weight:550}.table-scroll{overflow:auto}.status{display:inline-block;padding:5px 8px;border-radius:5px;background:#f0f2f3;color:#78858d;font-size:10px}.status.pending{background:#f7f2e8;color:#9b8052}.status.completed{background:#eef4f0;color:#5d816e}.status.draft{background:#f3f5f6;color:#68757d}.status.confirmed{background:#eef4f0;color:#5d816e}.status.rejected{background:#faeeee;color:#ac6d67}.empty{display:grid;place-items:center;min-height:180px;color:#a5aeb4;font-size:12px}.modal-backdrop{position:fixed;inset:0;background:#1a242c55;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:100;display:flex;align-items:center;justify-content:center;padding:30px}.modal{background:#fff;border-radius:18px;max-width:680px;width:100%;max-height:90vh;overflow:auto;padding:26px;box-shadow:0 25px 80px #13232e30}.modal.large{max-width:1180px}.contract-modal{max-width:760px}.template-note{margin:-4px 0 6px;color:#7d8990;font-size:12px;line-height:1.7}.contract-summary{display:grid;grid-template-columns:1fr 1fr;margin:22px 0;border:1px solid #e0e5e7}.contract-summary>div{min-width:0;padding:14px 16px;border-right:1px solid #e0e5e7;border-bottom:1px solid #e0e5e7}.contract-summary>div:nth-child(2n){border-right:0}.contract-summary dt{color:#8b969d;font-size:10px;margin-bottom:6px}.contract-summary dd{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.7}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.section-head h2{font-size:21px;letter-spacing:-.4px;margin:0 0 10px}.request-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:30px}.request-grid h3{font-size:12px;margin:20px 0 12px}.request-grid p{font-size:11px;line-height:1.8;color:#829099}.pdf-canvas{background:#f0f2f3;padding:15px;overflow:auto;border-radius:12px}.pdf-preview{position:relative;width:fit-content;margin:auto;cursor:crosshair;line-height:0}.pdf-preview canvas{max-width:100%;height:auto;display:block}.seal-placeholder{position:absolute;aspect-ratio:1;border:1px dashed #aa6262;color:#aa6262;background:#b85a5a0b;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:10px;pointer-events:none;line-height:1.3}.signature-placeholder{aspect-ratio:3 / 1;border-radius:6px}.position-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#7b8a94}.page-nav{display:flex;gap:8px;margin:-4px 0 8px}.page-nav button{flex:1}.signature-pad{border:1px dashed #b9c2c7;border-radius:10px;padding:8px;background:#fbfcfc}.signature-pad canvas{display:block;width:100%;height:150px;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(to bottom,transparent 0,transparent 36px,#edf0f1 37px)}.signature-pad button{margin-top:7px}.document-frame{width:100%;height:650px;border:1px solid #e4e9ec;border-radius:9px}.download-row{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.hash{font-size:9px!important;font-family:monospace;word-break:break-all;white-space:normal;max-width:340px}.timeline{list-style:none;padding:0 0 0 15px;border-left:1px solid #dfe5e8;margin:20px 0}.timeline li{position:relative;margin-bottom:24px;font-size:11px}.timeline li:before{content:"";position:absolute;left:-19px;top:4px;width:7px;height:7px;background:#9aa9b0;border-radius:50%;box-shadow:0 0 0 4px #fff}.timeline p{font-size:10px;margin:6px 0}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.chain-list{display:grid;gap:10px;margin:20px 0}.chain-row{display:flex;align-items:center;gap:10px}.chain-row>span{font-size:10px;color:#9aa5ac}.chain-row button{flex-shrink:0}.user-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid #edf0f1;font-size:12px}.user-row small{display:block;margin-top:7px;font-size:10px;color:#96a1a8;line-height:1.7}.history-row{width:100%;display:flex;justify-content:space-between;padding:18px 10px;border:0;border-bottom:1px solid #edf0f1;border-radius:0;text-align:left}.history-row span{flex:1}.history-row b{font-weight:500;font-size:11px}.history-row small{display:block;margin-top:6px;color:#9aa4aa}.login-layout{width:min(100%,1080px);max-width:1080px;margin:0 auto;min-height:calc(100vh - 135px);padding:80px 40px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(32px,7vw,100px);align-items:center}.login-copy,.login-panel{min-width:0}.login-copy h1{font-size:46px;font-weight:650;line-height:1.35;letter-spacing:-2px;margin:24px 0}.login-copy>p{font-size:13px;line-height:2;color:#8c989f}.login-features{display:grid;gap:13px;margin-top:38px;font-size:10px;letter-spacing:.02em;color:#a0aab1}.login-panel{background:#fff;border:1px solid #e5e9eb;border-radius:18px;padding:30px;box-shadow:0 12px 45px #243a4905}.login-panel h2{font-size:21px;margin:12px 0}.login-panel .panel-title{margin-bottom:28px}.login-panel .field-grid{gap:18px}.login-panel .primary{margin-top:6px}@media(max-width:1080px){.login-layout{grid-template-columns:minmax(0,620px);justify-content:center;padding:64px 32px}.login-copy{display:none}}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%);background:#272f34;color:#fff;padding:13px 22px;border-radius:10px;z-index:200;box-shadow:0 5px 30px #0002;font-size:12px;max-width:90vw}.toast.error{background:#8c4e42}.error{color:#a45f50}.loading{min-height:100vh;display:grid;place-items:center;color:#89969e}@media(min-width:1700px){.workspace{grid-template-columns:290px minmax(0,1fr) 282px;padding:28px 44px}.invoice-sheet{min-height:1122px;padding:55px}}@media(max-width:1200px){.workspace{grid-template-columns:235px minmax(0,1fr) 225px;gap:14px;padding:22px 16px}.panel{padding:15px}.invoice-sheet{padding:30px 25px;min-height:850px}.sheet-hero h1{font-size:34px}.preview-pad{padding:15px 10px 30px}.sheet-summary{grid-template-columns:1fr 65%}.sheet-meta{grid-template-columns:1fr 1fr}.sheet-lines th:nth-child(4),.sheet-lines td:nth-child(4){width:52px}.grand-total strong{font-size:22px}.shell-head nav{gap:12px}}@media(max-width:980px){.workspace{grid-template-columns:240px minmax(0,1fr)}.workspace>.control-side:last-child{grid-column:1;grid-row:2;position:static;max-height:none}.workspace>.control-side:first-child{position:static;max-height:none}.stage{grid-column:2;grid-row:1/3;position:sticky;top:16px}.shell-head{padding:0 20px;gap:16px}.shell-head nav{gap:10px}.shell-head nav svg{display:none}.account>span{display:none}.invoice-sheet{min-height:850px}.login-layout{gap:50px}.login-copy h1{font-size:38px}}@media(max-width:700px){.shell-head{padding:15px 16px;flex-wrap:wrap;gap:15px}.brand{margin-right:auto}.shell-head nav{order:3;width:100%;justify-content:space-between;height:34px;gap:8px}.shell-head nav button{font-size:11px}.shell-head nav svg{display:block}.workspace{display:flex;flex-direction:column;padding:16px;gap:16px}.control-side,.workspace>.control-side:first-child,.workspace>.control-side:last-child{width:100%;position:static;max-height:none}.stage{width:100%;position:static;order:3}.invoice-sheet{min-width:0;min-height:810px;padding:28px 22px}.sheet-hero h1{font-size:34px}.sheet-summary{grid-template-columns:1fr 65%}.sheet-top{padding-bottom:20px}.companies{gap:16px}.sheet-lines td{font-size:9px}.sheet-lines th:nth-child(4),.sheet-lines td:nth-child(4){width:52px}.sheet-lines th:last-child,.sheet-lines td:last-child{width:58px}.paper-brand{font-size:15px}.paper-brand span{font-size:9px}.page{padding:26px 16px}.page-heading{align-items:flex-start;gap:16px}.page-heading h1{font-size:24px}.page-heading p{font-size:11px;line-height:1.8}.page-heading>.primary{flex-shrink:0}.flow-strip{gap:10px;padding:14px 10px;font-size:9px}.flow-strip svg{width:11px;flex-shrink:0}.admin-grid,.request-grid{grid-template-columns:1fr}.modal-backdrop{padding:12px}.modal{padding:20px;max-height:95vh}.document-frame{height:450px}.login-layout{display:flex;flex-direction:column;gap:30px;padding:45px 24px;align-items:stretch}.login-copy h1{font-size:32px;margin:18px 0}.login-features{display:none}.login-panel{padding:25px}.app-footer{padding:20px 16px;font-size:8px}.app-footer span:last-child{display:none}.tabs{gap:14px}.tabs button{font-size:11px}.sheet-meta{gap:12px}.sheet-bottom{gap:16px}.grand-total strong{font-size:20px}.preview-pad{padding:14px 9px 25px}.data-table td,.data-table th{padding:12px}.toast{font-size:11px}.source-text pre{max-height:180px}}@media print{@page{size:A4;margin:12mm}html,body{background:#fff!important}body *{visibility:hidden}.invoice-sheet,.invoice-sheet *{visibility:visible}.invoice-sheet{position:absolute;left:0;top:0;width:100%;max-width:none;min-height:265mm;box-shadow:none!important;padding:6mm 5mm;background:#fff}.invoice-sheet h1{font-size:40px}.invoice-sheet table{page-break-inside:auto}.invoice-sheet tr,.sheet-bottom,.sheet-summary,.signatures{break-inside:avoid}.sheet-lines thead{display:table-header-group}.sheet-meta{grid-template-columns:1fr .8fr 1.4fr 1fr}.sheet-summary{grid-template-columns:1fr 50%}.shell-head,.control-side,.app-footer,.stage-head,.stage-hint,.toast,.modal-backdrop{display:none!important}.workspace{display:block;padding:0}.stage{position:static}.preview-pad{padding:0;display:block;overflow:visible;background:none;border:0}.invoice-sheet footer{margin-top:auto}}@scope(.invoice-workspace){.line-card{display:block}.field>span{color:#747e84;font-size:11px;font-weight:620}.panel-title svg{margin-top:2px}.group-heading{margin:1px 0 12px}.sheet-hero>div:last-child{max-width:265px}.sheet-hero h1{overflow-wrap:normal}.canvas-edit-hint{white-space:nowrap}.source-text{font-size:10px;color:#839199;line-height:1.7}.source-text pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto}.server-actions{margin-top:14px;padding-top:4px;border-top:1px solid #eceeef}.logo-row input[hidden]{display:none}.line-desc input:focus{border-color:#94a5a9}.switch:focus-within{outline:2px solid #859a9e;outline-offset:3px;border-radius:20px}.sheet-hero h1{font-size:clamp(26px,2.25vw,41px)}}@media(max-width:1400px){.invoice-workspace .stage-head{flex-wrap:wrap}.invoice-workspace .stage-actions{margin-left:auto}.invoice-workspace .sheet-hero{flex-wrap:wrap}.invoice-workspace .sheet-hero-code{margin-left:auto}.invoice-workspace .sheet-hero h1{font-size:clamp(26px,2.3vw,36px)}}@media(max-width:800px){.invoice-workspace .stage{order:1}.invoice-workspace .right-side{order:2}.invoice-workspace .left-side{order:0}.invoice-workspace .stage-head-left{flex-wrap:wrap;gap:7px}.invoice-workspace .canvas-edit-hint{display:none}.invoice-workspace .sheet-hero h1{font-size:26px}.invoice-workspace .sheet-summary{grid-template-columns:1fr}.invoice-workspace .sheet-meta{grid-template-columns:1.05fr 1.1fr 1.5fr .62fr}}@media print{.invoice-workspace .invoice-sheet{position:relative;visibility:visible;min-height:0}.invoice-workspace .invoice-sheet *{visibility:visible}.invoice-workspace .sheet-hero h1{font-size:34pt}.invoice-workspace .sheet-meta{grid-template-columns:1.05fr 1.1fr 1.5fr .62fr}.invoice-workspace .sheet-summary{grid-template-columns:1fr minmax(210px,46%)}[data-edit][data-empty]{visibility:hidden!important}}.entity-caption{display:block;color:#9ba7ae;font-size:10px;margin-top:7px}.position-row{flex-wrap:wrap}.position-row label{font-size:10px;color:#95a0a7}.invoice-workspace .sheet-hero h1{font-size:clamp(32px,3.2vw,41px)}@media(max-width:800px){.invoice-workspace .sheet-hero h1{font-size:29px}}.invoice-workspace{max-width:1750px;margin:0 auto;padding:28px clamp(15px,2.5vw,44px) 30px;display:grid;grid-template-columns:290px minmax(0,1fr) 282px;gap:22px;align-items:start}@media(max-width:1400px){.invoice-workspace{grid-template-columns:270px minmax(0,1fr) 258px;gap:15px;padding:19px}}@media(max-width:1130px){.invoice-workspace{grid-template-columns:245px minmax(0,1fr);grid-template-areas:"left center" "right center"}.invoice-workspace>.left-side{grid-area:left}.invoice-workspace>.right-side{grid-area:right}.invoice-workspace>.stage{grid-area:center;position:static}}@media(max-width:800px){.invoice-workspace{display:flex;flex-direction:column;padding:13px;gap:12px}.invoice-workspace>.stage{order:1}.invoice-workspace>.left-side{order:0}.invoice-workspace>.right-side{order:2}}@media print{.invoice-workspace{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}}.record-search{max-width:360px;margin:0 0 18px}.role-edit{border:0;background:transparent;color:#8e9ba2;font-size:10px;padding:4px 8px}@media(max-width:800px){.invoice-workspace .preview-pad{overflow:auto;justify-content:flex-start}.invoice-workspace .invoice-sheet{min-width:600px;width:600px;flex-shrink:0}.invoice-workspace .sheet-summary{grid-template-columns:1fr minmax(210px,46%)}}@media print{.invoice-workspace .invoice-sheet{min-width:0!important;width:210mm!important}}.request-grid{align-items:start}.brand-logo{display:block;width:40px;height:40px;object-fit:contain;filter:grayscale(1) contrast(1.7)}.brand strong{font-size:17px;letter-spacing:-.4px}.brand small{font-size:9px;letter-spacing:.08em}@media(min-width:1280px){.shell-head{position:sticky;top:0;z-index:90}.invoice-workspace{min-height:calc(100vh - 76px);grid-template-columns:minmax(270px,300px) minmax(0,1fr) minmax(250px,288px);align-items:start}.invoice-workspace>.control-side{top:92px;max-height:calc(100vh - 108px)}.invoice-workspace>.stage{position:sticky;top:92px;max-height:calc(100vh - 108px);overflow:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#d7dbdd transparent}.page{min-height:calc(100vh - 136px);padding-top:44px}}
