:root{font-family:Inter,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;color:#17202b;background:#f4f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(180deg,#fff 0,#f4f6f8)}button,input,textarea{font:inherit}.page-shell{width:min(980px,calc(100% - 40px));margin:0 auto;padding:32px 0 28px}.invoice-card{padding:34px;border:1px solid #dce2e8;border-radius:22px;background:#fff;box-shadow:0 20px 55px #20304017}.invoice-header{padding-bottom:20px}.header-top{display:flex;align-items:flex-start;gap:30px}.header-main{flex:1;min-width:0}.title-row{display:flex;align-items:center;gap:16px;margin-bottom:12px}.logo-slot{display:flex;align-items:center;justify-content:flex-start;width:145px;height:70px;flex:0 0 145px}.logo-slot img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}.title-input,.title-row h1{width:220px;margin:0;padding:0;border:0;background:transparent;color:#111827;font-size:42px;font-weight:800;letter-spacing:5px;line-height:1.2;outline:none}.header-main>label,.address-row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;width:100%;margin-top:5px;color:#697586;font-size:14px;font-weight:600}.header-main>label input,.address-row input{min-width:0;width:100%;height:38px;padding:8px 10px;border:0;border-bottom:1px solid #d8e0e8;background:transparent;color:#1f2937;font-size:16px;line-height:22px;outline:none}.header-main input:focus,.address-row input:focus{border-color:#259b75}.desktop-address{margin-top:5px}.mobile-address{display:none}.order-code{display:flex;flex:0 0 285px;flex-direction:column;gap:6px;width:285px;padding-top:82px;margin-right:18px}.order-code svg{display:block;width:calc(100% - 80px);max-width:calc(100% - 80px);height:34px;margin-left:80px;overflow:hidden}.order-number-field{display:block;width:calc(100% - 80px);margin-left:80px}.order-number-field input{width:100%;min-width:0;padding:9px 10px;border:1px solid #cfd8e2;border-radius:8px;background:#fff;color:#1f2937;font-size:17px;font-weight:700;text-align:center;outline:none}.items-section{margin-top:24px}.section-heading{margin:0 0 13px}.section-heading h2{margin:0;color:#16202b;font-size:18px}.table-scroll{overflow-x:auto;border:1px solid #d8e0e8;border-radius:12px}table{width:100%;min-width:700px;border-collapse:collapse;table-layout:fixed}.spec-column{width:48%}.quantity-column{width:11%}.price-column{width:16%}.amount-column{width:25%}th{padding:12px 13px;background:#f1f4f7;color:#647181;font-size:12px;letter-spacing:.5px;text-align:right}th:first-child,td:first-child{text-align:left}td{padding:9px 8px;border-top:1px solid #e2e7ec;text-align:right}.items-section td:first-child input{min-width:220px;text-align:left}.items-section input{width:100%;min-width:64px;padding:9px;border:1px solid #d8e0e8;border-radius:7px;background:#fff;color:#1f2a36;text-align:right;outline:none}.items-section input:focus,.remark textarea:focus,.totals input:focus{border-color:#54d2aa;box-shadow:0 0 0 3px #54d2aa1a}.quantity-input{max-width:82px;margin-left:auto;padding-right:4px!important}.quantity-input::-webkit-inner-spin-button{margin-left:6px;margin-right:0}.price-input{padding-right:18px!important;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.price-input::-webkit-inner-spin-button,.price-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.line-total{color:#111827;font-size:16px;font-weight:700;white-space:nowrap}.row-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.row-actions button,.export-actions button{border-radius:9px;padding:9px 14px;font-weight:600;cursor:pointer}.add-button{border:1px solid #52aa8c;background:#e7f7f1;color:#17694e}.subtract-button{border:1px solid #d7aeb8;background:#fff2f4;color:#9a4053}.subtract-button:disabled,.export-actions button:disabled{opacity:.45;cursor:not-allowed}.settlement{display:grid;grid-template-columns:1fr 370px;gap:70px;margin-top:28px;padding-top:24px;border-top:1px solid #dce2e8}.remark{display:flex;flex-direction:column;gap:9px}.remark span{color:#647181;font-size:12px;font-weight:600}.remark textarea{width:100%;min-height:117px;padding:12px 14px;resize:vertical;border:1px solid #d8e0e8;border-radius:10px;background:#fff;color:#1f2a36;outline:none}.totals{display:flex;flex-direction:column;gap:4px;font-size:16px}.totals>div,.totals>label{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:center;column-gap:16px;width:100%;color:#667483}.totals>div>strong{width:130px;color:#24313f;text-align:right}.totals>label>div{display:flex;align-items:center;justify-content:flex-end;width:130px;line-height:30px;white-space:nowrap}.totals input{width:105px;height:30px;margin-left:5px;padding:4px 18px 4px 8px;border:1px solid #d8e0e8;border-radius:7px;background:#fff;color:#1f2a36;line-height:22px;text-align:right;outline:none}.custom-label-input{justify-self:start;width:125px!important;margin:0!important;padding-left:0!important;border-left:0!important;text-align:left!important}.totals .paid{margin-top:5px;padding:11px 0 0;border-top:3px solid #263445}.totals .paid strong{color:#dc2626;font-size:30px;font-weight:900}.export-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}.export-actions button{padding:11px 18px}.image-button{border:1px solid #53a98c;background:#e8f8f2;color:#17694e}.pdf-button{border:1px solid #d5a3a9;background:#fff0f1;color:#a33c4b}.footer-note{color:#7a8794;font-size:12px;text-align:center}@media(max-width:760px){.page-shell{width:min(100% - 24px,980px);padding-top:16px}.invoice-card{padding:20px}.header-top{flex-direction:column;gap:0}.header-main{width:100%}.title-input,.title-row h1{width:190px;font-size:36px}.desktop-address{display:none}.mobile-address{display:grid;width:100%;margin-top:2px}.order-code{align-self:center;flex:0 0 auto;width:260px;height:auto;min-height:0;gap:6px;padding-top:0;margin:12px auto 0}.order-code svg{width:180px;height:28px;margin:0 auto}.order-number-field{width:180px;height:34px;margin:0 auto}.order-number-field input{height:34px;padding:5px 10px}.invoice-header{padding-bottom:4px}.items-section{margin-top:4px}table{min-width:620px}.settlement{grid-template-columns:1fr;gap:20px}.export-actions{flex-direction:column}.export-actions button{width:100%}}.invoice-card.is-exporting{width:680px!important;height:940px!important;min-height:940px!important;padding:28px!important;display:flex!important;flex-direction:column!important;overflow:hidden;border-color:transparent!important;border-radius:0;box-shadow:none!important}.is-exporting .header-top{display:flex;flex-direction:row;gap:24px}.is-exporting .header-main{display:block;flex:1;width:auto}.is-exporting .title-row{width:auto}.is-exporting .mobile-address{display:none!important}.is-exporting .desktop-address{display:grid!important}.is-exporting .order-code{position:static;align-self:auto;flex:0 0 260px!important;width:260px!important;height:auto!important;gap:6px;padding-top:82px;margin:0 18px 0 0}.is-exporting .order-code svg{width:185px!important;max-width:185px!important;height:34px!important;margin:0 auto!important;transform:none!important}.is-exporting .order-number-field{width:180px;height:auto;margin:0 auto;transform:translate(6px)}.is-exporting .order-number-field input{width:180px!important;min-width:180px!important;height:auto;padding:9px 0!important;text-align:center!important}.is-exporting .items-section{flex:1;display:flex;flex-direction:column;margin-top:20px}.is-exporting table{min-width:0}.is-exporting .items-section td:first-child input{min-width:150px}.is-exporting .row-actions{display:none!important}.is-exporting .table-scroll{border-color:transparent!important}.is-exporting .settlement{grid-template-columns:1fr;gap:12px;margin-top:auto;padding-top:12px}.is-exporting input,.is-exporting textarea{border-color:transparent!important;background:transparent!important;box-shadow:none!important}.is-exporting input::placeholder,.is-exporting textarea::placeholder{color:transparent!important;opacity:0}.is-exporting .totals input{height:30px!important;min-height:30px!important;padding-top:3px!important;padding-bottom:3px!important}
