:root{font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei,sans-serif;color:#223448;background:#f4f6f9;font-synthesis:none;font-size:14px;line-height:1.6}*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin-top:0}h1{font-size:26px;letter-spacing:-.5px;margin-bottom:8px}h2{font-size:18px;margin-bottom:16px}h3{font-size:15px}a{color:#176a61;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{border:1px solid #d8e1e7;background:#fff;border-radius:7px;padding:9px 15px;cursor:pointer;color:#33465a;display:inline-block;line-height:1.5;text-decoration:none}button:hover,.button:hover{border-color:#168677;background:#f0f8f5;text-decoration:none}button:disabled{opacity:.48;cursor:not-allowed}.primary{background:#167568;color:#fff;border-color:#167568}.primary:hover{background:#105d53;color:#fff}.text{border:0;background:none;color:#157566;padding:5px 8px}.danger{color:#b53d47}.block{width:100%}input,select,textarea{border:1px solid #d9e1e8;border-radius:6px;background:#fff;color:#223448;padding:10px 12px;min-width:0;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #9cd5c7;outline-offset:1px}textarea{resize:vertical;min-height:95px;width:100%}button:focus-visible,a:focus-visible{outline:3px solid #82cdb9;outline-offset:2px}input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:#167568}.shell{display:flex;min-height:100vh}aside{width:240px;flex-shrink:0;background:#122d36;color:#cfdddd;padding:30px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:650;line-height:1.5;font-size:16px;padding:0 4px 35px}.brand img{width:38px;height:38px;object-fit:contain}.brand small{display:block;font-size:11px;color:#93b0b4;font-weight:400;margin-top:5px}.brand-mark{background:#259884;color:#fff;display:inline-grid;place-items:center;width:38px;height:38px;border-radius:10px;font-size:21px;flex-shrink:0}nav{display:flex;flex-direction:column;gap:8px}nav a{padding:12px 17px;color:#b8cacf;border-radius:7px}nav a span{margin-right:13px;font-size:18px}nav a:hover,nav a.active{background:#21434b;color:#fff;text-decoration:none}nav a.active{box-shadow:inset 3px 0 #65c6ab}.aside-bottom{margin-top:auto;font-size:12px;padding:16px 10px;color:#89a6ac}.workspace{margin-left:240px;flex:1;min-width:0}header{height:72px;background:#fff;border-bottom:1px solid #e7ebef;padding:0 36px;display:flex;align-items:center;justify-content:space-between;color:#7c8996;font-size:13px}header>div{display:flex;align-items:center;gap:10px;color:#344b5d}.role{font-size:11px;background:#eff4f6;padding:2px 6px;border-radius:4px;color:#748695}main{padding:32px 36px;max-width:1480px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-title p{color:#7d8b98;margin:0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.card,.sheet{background:#fff;border:1px solid #e2e8ed;border-radius:10px;padding:24px;margin-bottom:22px;box-shadow:0 2px 3px #12303a03}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:28px}.stat{padding:23px 26px;background:#fff;border:1px solid #e2e8ed;border-radius:10px}.stat p{color:#6e8091;margin:0}.stat strong{font-size:36px;font-weight:650;display:block;margin:10px 0 4px}.stat small{color:#8a99a6}.stat:nth-child(2){border-top:3px solid #b99e58}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h2{margin-bottom:15px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{background:#f7f9fa;padding:13px 16px;color:#7b8c99;font-weight:500;font-size:12px}td{padding:18px 16px;border-bottom:1px solid #edf0f3;font-size:13px}td small{display:block;color:#85939e;margin-top:4px}td button{padding:5px 8px;margin-right:5px}tbody tr:last-child td{border-bottom:0}.truncate{max-width:250px;overflow:hidden;text-overflow:ellipsis}.badge{font-size:12px;padding:4px 9px;border-radius:5px;white-space:nowrap;background:#edf1f5;color:#6c7e8d}.badge.pending{background:#fff4d9;color:#9d762d}.badge.confirmed{background:#e5f5ee;color:#1d805f}.badge.returned{background:#fcebec;color:#b24e57}.badge.void{background:#eee;color:#888}.toolbar,.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{min-width:260px}.filters input,.filters select{flex:1}.filters label{color:#82909d;display:flex;align-items:center;gap:8px}.filters input[type=date]{width:145px}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px}.pagination span{margin-right:auto;color:#8795a2}.empty{padding:55px 20px;text-align:center;color:#7f8e9b}.empty button{display:block;margin:20px auto}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.customer-card{display:block;text-align:left;padding:24px;border-color:#e2e8ed;border-radius:10px}.customer-card h3{font-size:18px;margin:15px 0 10px}.customer-card p{color:#7b8c98;font-size:13px;overflow-wrap:anywhere}.customer-card .text{font-size:12px;padding:0}.avatar{width:40px;height:40px;border-radius:10px;background:#e8f3f0;color:#238573;display:grid;place-items:center;font-size:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 25px}.wide{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:4px}.field>span{font-size:13px;font-weight:550}.field input,.field select{width:100%}.field textarea{line-height:1.7}.form-grid h2{border-bottom:1px solid #e9eef1;padding-bottom:12px;margin:6px 0 0}.form-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #eee;padding-top:18px}.muted,.hint{color:#7d8c98}.hint{font-size:12px}.check{display:flex;gap:10px;align-items:flex-start;margin:18px 0}.error,.success{padding:15px 19px;border-radius:7px;margin-bottom:20px;overflow-wrap:anywhere}.error{background:#fff0ef;border:1px solid #f2d6d5;color:#a74646}.success{background:#e9f7f0;border:1px solid #cae9dc;color:#247b5d}.float{float:right;cursor:pointer}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.sheet{padding:38px 44px}.sheet-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #264b53;padding-bottom:20px;margin-bottom:22px}.sheet-head strong{color:#5a7780;font-size:13px}.sheet-head h1{font-size:28px;letter-spacing:2px;margin:10px 0 0}.document-no{font-size:11px;text-align:right;color:#8c9aa2;padding-top:15px}.document-no b{display:block;font-size:12px;font-weight:500;color:#354d5c;margin-top:6px}.sheet-meta{display:grid;grid-template-columns:1fr 1fr;gap:13px 25px;font-size:13px}.sheet-meta>div{display:flex;gap:15px;overflow-wrap:anywhere}.sheet-meta span{min-width:70px;color:#82909b;flex-shrink:0}.sheet-section{border-top:1px solid #e8edef;padding-top:20px;margin-top:23px}.sheet-section h3{font-size:13px;color:#45636f;margin-bottom:10px}.sheet-section .pre{font-size:14px;line-height:1.85}.sheet-sign{margin-top:28px;border-top:1px solid #b7c9ca;padding-top:22px}.sheet-sign small{display:block;color:#8c979e;font-size:11px}.signature-image{display:block;max-width:320px;width:100%;height:120px;object-fit:contain;object-position:left}.attachment{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #eee}.attachment a{flex:1;overflow-wrap:anywhere}.attachment span{color:#91a0aa}.attachment+input{margin-top:15px}.share-box{display:flex;gap:24px;background:#f5f9f8;padding:20px;margin-top:20px;align-items:center}.share-box>img{width:180px;max-width:40%;height:auto}.share-box>div{flex:1;min-width:0}.share-box input{width:100%;margin-bottom:10px}.share-box button{margin-right:8px}details summary{cursor:pointer;font-weight:550}.narrow{max-width:640px}.narrow .field{margin-bottom:20px}footer{text-align:center;color:#9aa6ae;font-size:11px;padding:18px 20px 30px}.public-page{max-width:850px;margin:0 auto;padding:22px 18px}.public-brand{color:#5d7681;font-size:13px;display:flex;justify-content:space-between;margin:8px 0 20px}.public-brand span{font-size:12px;color:#94a2ac}.public-footer{text-align:center;color:#92a0aa;font-size:11px}.sign-form .field{margin-bottom:20px}.segmented{display:flex;gap:8px;margin:20px 0}.segmented button{flex:1}.segmented .selected{background:#e8f5ef;color:#176e5c;border-color:#65b59a}.signature canvas{display:block;border:1px dashed #a7c7bf;background:#fcfdfd;border-radius:6px;width:100%;height:auto;aspect-ratio:8/3;touch-action:none;-webkit-user-select:none;user-select:none}.signature small{color:#8d9da5;font-size:11px}.signature .section-title{font-size:13px;margin-bottom:8px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:90px;padding:40px;background:linear-gradient(115deg,#e9f1ed,#f6f8f9 70%)}.login-intro{max-width:430px}.login-intro .brand-mark{margin-bottom:45px}.eyebrow{letter-spacing:3px;font-size:11px;color:#539182}.login-intro h1{font-size:40px;line-height:1.5;margin:12px 0 25px;color:#234c4c}.login-intro>p:last-child{color:#758c8c;line-height:2}.login-card{background:#fff;width:410px;border:1px solid #e1e9e7;border-radius:14px;padding:36px;box-shadow:0 15px 60px #214c3910}.login-card .field{margin-top:20px}.login-card .primary{margin-top:28px}.login-card .hint{margin:20px 0 0}@media(max-width:1100px){aside{width:205px}.workspace{margin-left:205px}main{padding:25px 22px}header{padding:0 22px}.customer-grid{grid-template-columns:repeat(2,1fr)}.page-title{align-items:flex-start;flex-direction:column}.login-page{gap:40px}.login-intro h1{font-size:32px}}@media(max-width:700px){.shell{display:block}aside{position:static;width:100%;padding:14px 16px}.brand{padding:0 0 12px;font-size:14px}.brand small,.aside-bottom{display:none}.brand-mark{width:30px;height:30px;font-size:17px}nav{flex-direction:row;gap:4px;overflow-x:auto}nav a{padding:8px 10px;font-size:12px;white-space:nowrap}nav a span{display:none}.workspace{margin:0}header{height:50px;padding:0 16px;font-size:11px}main{padding:22px 14px}.page-title h1{font-size:23px}.page-title p{font-size:12px}.actions{gap:6px}.actions button,.actions .button{font-size:12px;padding:8px 10px}.stats{gap:8px}.stat{padding:16px 12px}.stat p,.stat small{font-size:10px}.stat strong{font-size:28px}.card{padding:18px 16px}.customer-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;gap:18px}.form-bottom{align-items:stretch;flex-direction:column}.table-wrap{margin:0 -5px}.sheet{padding:22px 18px;border-radius:8px}.sheet-head{display:block}.sheet-head h1{font-size:25px}.document-no{text-align:left;padding:10px 0 0}.document-no b{display:inline;margin-left:8px}.sheet-meta{grid-template-columns:1fr;gap:10px}.sheet-meta>div{font-size:12px}.share-box{padding:14px;flex-direction:column}.share-box>img{max-width:100%}.toolbar{align-items:stretch}.toolbar input{min-width:0;width:100%}.filters{gap:8px}.filters>input{flex-basis:100%}.filters>select{width:45%}.filters label{font-size:11px;flex:1}.public-page{padding:14px 10px}.public-brand{font-size:12px}.public-brand span{font-size:10px}.login-page{padding:24px;display:block}.login-intro{margin:10px auto 30px}.login-intro .brand-mark{margin-bottom:10px}.login-intro h1{font-size:28px}.login-intro>p:last-child{display:none}.login-card{width:100%;max-width:430px;margin:auto;padding:26px}.login-intro .eyebrow{display:none}.pagination{gap:7px;font-size:11px}footer{font-size:10px}}@page{size:A4;margin:14mm 13mm}@media print{body{background:#fff;color:#111;font-size:11pt}aside,header,footer,.no-print,.public-brand,.public-footer,.sign-form,.success,.error{display:none!important}.workspace{margin:0}main,.public-page{padding:0;max-width:none;margin:0}.sheet{border:0;box-shadow:none;margin:0;padding:0;border-radius:0}.sheet-head{display:flex}.sheet-meta{grid-template-columns:1fr 1fr}.sheet-section{break-inside:auto}.sheet-section h3{break-after:avoid}.sheet-sign,.sheet-head{break-inside:avoid}.sheet a{color:#111;text-decoration:none}.sheet-sign small{font-size:8pt}.sheet h1{font-size:22pt}.sheet-section .pre{font-size:10pt;line-height:1.6}.signature-image{height:100px}button{display:none!important}}.sheet-logo{display:block;max-width:130px;height:42px;object-fit:contain;object-position:left;margin-bottom:10px}.sheet-unit{display:flex;align-items:baseline;gap:15px;padding-bottom:18px;border-bottom:1px solid #e8edef;font-size:13px;overflow-wrap:anywhere}.sheet-unit>span{min-width:70px;flex-shrink:0;color:#82909b}.sheet-unit>strong{font-weight:600;min-width:0}.sheet-info-group{margin-top:20px}.sheet-info-group+.sheet-info-group{padding-top:18px;border-top:1px solid #e8edef}.sheet-info-group>h3{font-size:13px;color:#45636f;margin-bottom:12px}@media print{.sheet-info-group,.sheet-unit{break-inside:avoid}}.sheet{padding:24px 28px;font-size:12px;line-height:1.4}.sheet-head{gap:12px;padding-bottom:8px;margin-bottom:8px;border-bottom-width:1px}.sheet-head h1{font-size:20px;margin:0;letter-spacing:1px}.sheet .document-no{font-size:10.67px;padding-top:0}.sheet .document-no b{font-size:11px;margin-top:2px}.sheet-unit{font-size:12px;gap:8px;padding-bottom:5px}.sheet-unit>span,.sheet-meta span{min-width:64px;color:#60717c}.sheet-info-group{margin-top:7px}.sheet-info-group+.sheet-info-group{padding-top:7px}.sheet-info-group>h3,.sheet-section h3,.sheet-sign h3{font-size:12px;margin:0 0 4px}.sheet-meta{font-size:12px;gap:2px 18px;line-height:1.35}.sheet-meta>div{gap:8px;font-size:12px}.sheet-section{margin-top:9px;padding-top:8px}.sheet-section .pre{font-size:12px;line-height:1.4}.sheet-sign{margin-top:10px;padding-top:8px}.sheet-sign p{margin:0 0 4px}.sheet-sign small{font-size:10.67px;color:#60717c;line-height:1.35}.sheet .signature-image{max-width:200px;height:70px}.sheet-file-list{margin:4px 0 0;padding-left:18px;line-height:1.35}.sheet-file-list li{overflow-wrap:anywhere}.attachment-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:348px;margin:6px 0}.attachment-thumbs a{min-width:0;color:inherit;break-inside:avoid}.attachment-thumbs img{display:block;width:100%;height:76px;object-fit:contain;border:1px solid #dce3e8;background:#f8fafb;border-radius:3px}.attachment-thumbs span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.67px;line-height:1.35;margin-top:2px}.attachment-preview-note{font-size:10.67px;color:#60717c;margin:4px 0}.drop-zone{border:1px dashed #a7c7bf;padding:20px 16px;border-radius:8px;text-align:center;background:#f8fbfa}.drop-zone.dragging{border:2px solid #167568;background:#e7f5ef}.drop-zone p{font-size:12px;color:#60717c;margin:6px 0 12px}.upload-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.upload-queue{list-style:none;padding:0;margin:12px 0}.upload-queue li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #edf0f3;flex-wrap:wrap}.upload-queue li>span{flex:1;min-width:120px;overflow-wrap:anywhere}.upload-queue small{color:#60717c}.upload-queue small.danger{color:#b53d47}.upload-panel .error{margin-top:12px}@media(max-width:700px){.sheet{padding:16px 14px}.sheet .document-no{padding-top:5px}}@page{size:A4;margin:10mm 11mm}@media print{.sheet{padding:0;font-size:9pt;line-height:1.35;color:#111}.sheet-head h1{font-size:15pt}.sheet .document-no{padding-top:0;text-align:right}.sheet .document-no,.sheet .document-no b{font-size:8pt;color:#333}.sheet-unit,.sheet-meta,.sheet-meta>div,.sheet-section .pre{font-size:9pt;line-height:1.35}.sheet-info-group>h3,.sheet-section h3,.sheet-sign h3{font-size:9pt;color:#222}.sheet-unit>span,.sheet-meta span{color:#444}.sheet-sign small,.attachment-thumbs span,.attachment-preview-note{font-size:8pt;color:#444}.sheet .signature-image{max-width:48mm;height:18mm}.attachment-thumbs{max-width:88mm;gap:2mm}.attachment-thumbs img{height:18mm}.attachment-thumbs a{break-inside:avoid}}
