:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1b1b1b;background:#f1f1f1;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #151515;--green: #c91d32;--green-dark: #a8172a;--mint: #fbe9ec;--orange: #c91d32;--line: #d7d7d7;--muted: #707070;--paper: #ffffff;--shadow: 0 10px 30px rgba(25, 25, 25, .08)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden;background:#f1f1f1}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-shell{height:100vh;min-height:0;padding-bottom:68px;overflow:hidden}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 30px;background:#fffffff5;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar__brand{display:flex;align-items:center;gap:12px}.topbar__logo,.brand-mark{display:grid;place-items:center;background:var(--green);color:#fff;font-family:Georgia,serif;font-weight:700;letter-spacing:-.04em}.topbar__logo{width:38px;height:38px;border-radius:9px}.topbar__brand>div:last-child{display:flex;flex-direction:column;gap:2px}.topbar__brand strong{font-size:15px;color:var(--ink)}.topbar__brand span{color:var(--muted);font-size:11px;letter-spacing:.02em}.topbar__actions,.action-bar__buttons{display:flex;align-items:center;gap:9px}.button{height:38px;padding:0 15px;border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:650;transition:.18s ease}.button:hover:not(:disabled){transform:translateY(-1px)}.button--primary{background:var(--ink);color:#fff;box-shadow:0 5px 14px #1515152e}.button--primary:hover:not(:disabled){background:#000}.button--ghost{background:transparent;color:#444;border-color:var(--line)}.button--ghost:hover:not(:disabled){background:#f7f7f7}.button--soft{height:34px;background:var(--mint);color:var(--green-dark);border-color:#f0c6cd}.button--outline{background:#fff;color:var(--ink);border-color:#ccc}.button--excel{background:var(--green);color:#fff;box-shadow:0 5px 14px #c91d322e}.button--excel:hover:not(:disabled){background:var(--green-dark)}.count-badge{min-width:18px;padding:1px 5px;border-radius:99px;background:var(--mint);color:var(--green-dark);font-size:10px}.workspace{display:grid;grid-template-columns:minmax(700px,1.03fr) minmax(570px,.97fr);height:calc(100vh - 138px);min-height:0;overflow:hidden}.editor-pane{height:100%;min-width:0;overflow-x:hidden;overflow-y:auto;padding:30px 28px 54px 34px}.preview-pane{height:100%;min-width:0;overflow-x:hidden;overflow-y:auto;padding:22px 32px 54px;background:#e7e7e7;border-left:1px solid #d5d5d5}.editor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{margin:0 0 4px;color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.16em}.editor-heading h1{margin:0;color:var(--ink);font-size:24px;letter-spacing:-.03em}.editor-heading__meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:7px;color:var(--muted);font-size:11px}.icon-button{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--green)}.icon-button:hover{background:var(--mint)}.icon-button--danger{color:#a54c48}.form-card{background:#fff;border:1px solid #dddddd;border-radius:12px;box-shadow:var(--shadow);padding:20px;margin-bottom:16px}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}.section-heading>span{color:var(--orange);font-family:Georgia,serif;font-weight:700;font-size:13px;align-self:flex-start;padding-top:3px}.section-heading h2{margin:0;color:var(--ink);font-size:17px;letter-spacing:-.02em}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:11px}.section-action{margin-left:auto}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#5d5d5d;font-size:11px;font-weight:700;letter-spacing:.02em}.field--wide{grid-column:1 / -1}.optional-field-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line)}.optional-field-actions>span{margin-right:2px;color:var(--muted);font-size:11px;font-weight:700}.optional-field-actions .button{height:31px;padding:0 10px;font-size:11px}.optional-field-grid{margin-top:14px}.optional-field-input{display:grid;grid-template-columns:1fr 36px;gap:7px}.optional-field-input .icon-button{height:38px}.signature-field-actions{display:flex;flex-wrap:wrap;gap:9px}.signature-field-actions .empty-state{flex-basis:100%}input,select,textarea{width:100%;min-width:0;border:1px solid #cfcfcf;border-radius:7px;background:#fcfcfc;color:#1b1b1b;padding:9px 10px;outline:none;font-size:13px;font-weight:450;letter-spacing:0;transition:.15s}input,select{height:38px}textarea{resize:vertical;line-height:1.35}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #c91d321f;background:#fff}input::placeholder,textarea::placeholder{color:#a2aeac}.product-card{overflow:hidden;padding-left:0;padding-right:0}.product-card>.section-heading{padding:0 20px}.product-column-labels,.product-row{display:grid;grid-template-columns:40px minmax(84px,.85fr) 66px minmax(138px,1.55fr) 66px minmax(118px,1fr) minmax(112px,.95fr) 32px;align-items:center;gap:8px}.product-column-labels{padding:9px 20px;background:var(--green);border-top:1px solid var(--green-dark);border-bottom:1px solid var(--green-dark);color:#111;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.product-list{overflow-x:auto}.product-row{min-width:760px;padding:12px 20px;border-bottom:1px solid #e5e5e5}.product-row:last-child{border-bottom:0}.row-number{width:27px;height:27px;display:grid;place-items:center;background:var(--mint);color:var(--green-dark);border-radius:7px;font-size:12px;font-weight:800}.image-upload{width:58px;height:58px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:8px;border:1px dashed #bbbbbb;color:var(--green);background:#fafafa}.image-upload img{width:100%;height:100%;object-fit:contain;background:#fff}.image-upload input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}.remove-image{position:absolute;top:2px;right:2px;z-index:2;display:grid;place-items:center;width:19px;height:19px;padding:0;border:0;border-radius:50%;color:#fff;background:#141414d1}.product-row textarea,.product-row input{font-size:12px;padding:8px}.qty-unit-input{display:grid;grid-template-columns:1fr 46px;gap:4px}.qty-unit-input input:last-child{padding-left:4px;padding-right:4px;text-align:center;text-transform:uppercase}.product-row output{color:var(--ink);font-size:11px;font-weight:750;text-align:right;line-height:1.25}.money-input{position:relative}.money-input span{position:absolute;z-index:1;left:9px;top:50%;transform:translateY(-50%);color:#667b76;font-size:9px;font-weight:800;pointer-events:none}.money-input input{padding-left:52px;text-align:right}.row-actions{display:flex;flex-direction:column;gap:2px}.row-actions button{width:27px;height:23px;display:grid;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#777}.row-actions button:hover:not(:disabled){background:var(--mint);color:var(--green-dark)}.row-actions button.danger:hover{background:#fbeceb;color:#aa4945}.add-row-button{width:calc(100% - 40px);height:38px;margin:12px 20px 0;display:flex;justify-content:center;align-items:center;gap:7px;border:1px dashed #d79aa4;border-radius:8px;color:var(--green);background:#fff8f9;font-weight:700;font-size:12px}.add-row-button:hover{background:var(--mint)}.empty-state{padding:14px;border:1px dashed #ccd9d5;border-radius:8px;background:#f8faf9;color:#7b8c89;font-size:12px;text-align:center}.charges-list{display:flex;flex-direction:column;gap:8px}.charge-row{display:grid;grid-template-columns:100px 1fr 160px 36px;align-items:center;gap:8px}.editor-totals{margin-top:16px;margin-left:auto;width:min(100%,360px);border-top:1px solid var(--line)}.editor-totals>div{display:flex;align-items:center;justify-content:space-between;padding:9px 3px;font-size:12px}.editor-totals__grand{color:var(--ink);border-top:1px solid var(--line);font-size:14px!important}.editor-totals__grand strong{font-size:16px}.notes-input{min-height:110px}.preview-toolbar{height:40px;margin:0 auto 12px;max-width:760px;display:flex;align-items:center;justify-content:space-between;color:#666;font-size:11px}.preview-toolbar>div{display:flex;align-items:center;gap:7px}.preview-toolbar strong{color:var(--ink)}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #c91d3224}.paper{width:100%;max-width:760px;min-height:1075px;margin:0 auto;padding:44px 43px 34px;background:#fff;box-shadow:0 16px 38px #14141421;color:#191919;font-family:Arial,Helvetica,sans-serif}.paper__header{display:flex;align-items:flex-start;gap:16px;padding-bottom:19px;border-bottom:2px solid var(--ink)}.brand-mark{flex:0 0 55px;width:55px;height:55px;border-radius:4px;font-size:22px}.paper__company h1{margin:0 0 7px;color:var(--ink);font-family:Georgia,serif;font-size:17px;letter-spacing:.015em}.paper__company p{margin:2px 0;color:#555;white-space:pre-line;font-size:8.5px;line-height:1.35}.paper__title-row{display:flex;justify-content:space-between;align-items:flex-end;margin:24px 0 14px}.paper__title-row h2{margin:0;color:var(--ink);font-family:Georgia,serif;font-size:27px;letter-spacing:.08em}.paper__doc-no{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.paper__doc-no span,.paper__meta-grid span{color:#707070;font-size:7px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.paper__doc-no strong{font-size:9px;color:var(--ink)}.paper__meta-grid{display:grid;grid-template-columns:1.35fr .65fr;margin-bottom:18px;border-top:1px solid #cccccc;border-left:1px solid #cccccc}.paper__meta-grid>div{min-height:40px;display:flex;flex-direction:column;gap:5px;padding:8px 10px;border-right:1px solid #cccccc;border-bottom:1px solid #cccccc}.paper__meta-grid strong{color:#191919;font-size:9px}.paper__meta-grid .contact-lines{white-space:pre-line}.quote-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8px}.quote-table th{height:28px;padding:5px 4px;background:var(--green);color:#111;border:1px solid var(--ink);font-size:7px;letter-spacing:.02em}.quote-table th:nth-child(1){width:5%}.quote-table th:nth-child(2){width:13%}.quote-table th:nth-child(3){width:14%}.quote-table th:nth-child(4){width:32%}.quote-table th:nth-child(5){width:7%}.quote-table th:nth-child(6){width:13%}.quote-table th:nth-child(7){width:16%}.quote-table td{min-height:62px;padding:7px 5px;border:1px solid #bdbdbd;text-align:center;vertical-align:middle;overflow-wrap:anywhere}.quote-table .description-cell{text-align:left;line-height:1.4}.quote-table .item-no{font-weight:700;color:var(--ink)}.quote-table .money-cell{text-align:right;white-space:normal}.quote-table .strong{font-weight:700}.photo-cell{height:64px}.photo-cell img{display:block;width:100%;height:54px;object-fit:contain}.photo-cell span{color:#9aa7a5;font-size:7px}.totals{width:48%;margin:12px 0 20px auto}.total-row{min-height:26px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 8px;border-bottom:1px solid #d5dfdc;font-size:8px}.total-row strong{text-align:right}.total-row--grand{min-height:26px;background:#fff;border-top:0;border-bottom:1px solid #d5d5d5;color:var(--ink);font-size:8px}.negative{color:var(--ink)}.paper-section{margin-top:14px;page-break-inside:avoid}.paper-section h3{margin:0;padding:7px 9px;background:var(--green);color:#111;font-size:8px;letter-spacing:.08em}.paper-section dl{margin:0;border-left:1px solid #cccccc}.paper-section dl>div{display:grid;grid-template-columns:24% 76%;border-bottom:1px solid #cccccc;border-right:1px solid #cccccc}.paper-section dt,.paper-section dd{margin:0;padding:6px 8px;font-size:7.5px;line-height:1.35}.paper-section dt{font-weight:700;color:var(--ink);background:#f3f3f3;border-right:1px solid #cccccc}.paper-notes ol{margin:0;padding:8px 12px 8px 26px;border:1px solid #cccccc;border-top:0}.paper-notes li{padding:2px 0;font-size:7.5px;line-height:1.35}.paper-signatures{display:grid;grid-template-columns:repeat(2,1fr);gap:36px;margin-top:28px;break-inside:avoid}.paper-signatures>div{position:relative;min-height:64px;padding-top:8px;border-top:1px solid #777;color:#555;font-size:8px;font-weight:700}.paper-signatures__buyer{grid-column:2}.paper-signature-image{position:absolute;z-index:1;top:-5px;left:50%;width:145px;height:auto;transform:translate(-44%);pointer-events:none}.paper__footer{display:flex;justify-content:space-between;margin-top:24px;padding-top:9px;border-top:1px solid #cccccc;color:#777;font-size:7px}.action-bar{position:fixed;z-index:40;left:0;right:0;bottom:0;min-height:68px;padding:12px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffffff7;border-top:1px solid #d1dcd8;box-shadow:0 -6px 24px #1c332f14;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.action-bar__status{display:flex;align-items:center;gap:8px;color:#667a76;font-size:11px}.action-bar__status svg{color:var(--green)}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:#15282559;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.history-drawer{position:absolute;top:0;right:0;bottom:0;width:min(420px,92vw);padding:24px;background:#fff;box-shadow:-12px 0 35px #162c2829}.history-drawer>header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}.history-drawer h2{margin:0;color:var(--ink);font-size:22px}.history-empty{display:grid;justify-items:center;padding-top:100px;color:#8a9a97;text-align:center}.history-empty h3{margin:14px 0 5px;color:#526965;font-size:15px}.history-empty p{margin:0;font-size:12px}.quotation-import-panel{display:grid;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.quotation-import-panel>form{display:grid;gap:7px}.quotation-import-panel>form>label{color:var(--ink);font-size:12px;font-weight:700}.quotation-import-panel>form>div{display:grid;grid-template-columns:1fr auto;gap:8px}.quotation-import-panel input[type=text]{min-width:0}.quotation-import-panel .button{justify-content:center}.pdf-import-button input{display:none}.import-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.import-divider:before,.import-divider:after{content:"";flex:1;border-top:1px solid var(--line)}.quotation-import-panel>small{color:var(--muted);font-size:10px;line-height:1.45}.source-history-heading{display:flex;justify-content:space-between;align-items:center;padding-top:17px;color:var(--ink);font-size:12px;font-weight:700}.source-history-heading small{color:var(--muted);font-size:10px;font-weight:400}.history-empty--compact{padding-top:38px}.history-list{padding-top:14px;display:flex;flex-direction:column;gap:8px}.history-item{display:grid;grid-template-columns:1fr 36px 36px;gap:4px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.history-item--source{grid-template-columns:1fr}.history-item__open{display:flex;justify-content:space-between;align-items:center;padding:12px;border:0;background:#fff;color:var(--green);text-align:left}.history-item__open:hover{background:#f7faf9}.history-item__open>span{display:flex;flex-direction:column;gap:4px}.history-item__open strong{color:var(--ink);font-size:12px}.history-item__open small{color:var(--muted);font-size:10px}.history-item__open .record-summary small{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;line-height:1.35}.history-item__open .record-summary small span{min-width:0;overflow-wrap:anywhere}.history-item__open .record-summary small span:last-child{grid-column:1 / -1}.history-item__copy{border:0;border-left:1px solid var(--line);background:#f8faf9;color:var(--green)}.history-item__delete{color:#a54c48}.toast{position:fixed;z-index:100;right:24px;bottom:84px;display:flex;align-items:center;gap:8px;max-width:360px;padding:12px 15px;border-radius:8px;color:#fff;box-shadow:0 9px 28px #1c302d33;font-size:12px;font-weight:700;animation:toast-in .22s ease-out}.toast--success{background:var(--ink)}.toast--error{background:var(--green-dark)}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{0%{transform:translateY(10px);opacity:0}}@media(max-width:1360px){.workspace{grid-template-columns:minmax(620px,1fr) minmax(490px,.85fr)}.editor-pane{padding-left:22px;padding-right:20px}.preview-pane{padding-left:20px;padding-right:20px}.paper{padding-left:30px;padding-right:30px}.product-column-labels,.product-row{grid-template-columns:32px minmax(72px,.75fr) 56px minmax(120px,1.3fr) 52px minmax(90px,.85fr) minmax(82px,.75fr) 28px;gap:6px}.product-column-labels{padding-left:15px;padding-right:15px}.product-row{min-width:590px;padding-left:15px;padding-right:15px}.image-upload{width:52px;height:52px}.product-row output{font-size:10px}}@media(max-width:1040px){body{overflow:auto}.app-shell{height:auto;min-height:100vh;overflow:visible}.workspace{grid-template-columns:1fr}.workspace,.editor-pane,.preview-pane{height:auto;overflow:visible}.preview-pane{border-left:0;border-top:1px solid #d2dcd8}.paper{max-width:790px}}@media(max-width:720px){.topbar{height:auto;padding:12px 15px;flex-wrap:wrap}.topbar__actions{width:100%;overflow-x:auto}.topbar__actions .button{flex:1 0 auto}.editor-pane,.preview-pane{padding:20px 12px 40px}.field-grid{grid-template-columns:1fr}.field--wide{grid-column:auto}.charge-row{grid-template-columns:90px 1fr 36px}.charge-row .money-input{grid-column:1 / 3}.preview-pane{overflow-x:hidden}.paper{min-width:680px}.action-bar{padding:10px 12px}.action-bar__status{display:none}.action-bar__buttons{width:100%}.action-bar__buttons .button{flex:1;padding:0 8px;font-size:11px}}.paper.paper--modern{padding:0 43px 34px;font-family:Arial,Helvetica,sans-serif}.paper.paper--modern[lang=zh-CN]{font-family:Microsoft YaHei,PingFang SC,Arial,sans-serif}.paper--modern[lang=ru] .paper__title-row h2{font-size:25px;letter-spacing:0}.paper--modern[lang=es] .paper__title-row h2{font-size:32px}.paper--modern:before{content:"";display:block;height:9px;margin:0 -43px 30px;background:var(--green)}.paper--modern .paper__header{align-items:center;gap:22px;padding:0 0 23px;border-bottom:2px solid var(--ink)}.paper--modern .brand-mark{flex-basis:68px;width:68px;height:68px;border-radius:0;font:700 27px Georgia,serif}.paper--modern .paper__company{padding-left:0;border-left:0}.paper--modern .paper__company h1{margin-bottom:8px;font-family:Arial,Helvetica,sans-serif;font-size:20px;letter-spacing:.01em}.paper--modern .paper__company p{margin:3px 0;color:#333;font-size:10px;line-height:1.35}.paper--modern .paper__title-row{align-items:flex-end;margin:27px 0 20px}.paper--modern .paper__title-row h2{padding-left:0;border-left:0;font-family:Arial,Helvetica,sans-serif;font-size:36px;line-height:1;letter-spacing:.04em}.paper--modern .paper__doc-no{min-width:175px;padding:2px 0;background:#fff;border-top:0;border-left:0}.paper--modern .paper__doc-no span,.paper--modern .paper__meta-grid span{font-size:8px}.paper--modern .paper__doc-no strong{margin-top:2px;font-size:10px}.paper--modern .paper__meta-grid{grid-template-columns:repeat(6,1fr);gap:0;margin-bottom:23px;border:0;border-top:1px solid #d7d7d7;border-bottom:1px solid #d7d7d7}.paper--modern .paper__meta-grid>div{grid-column:span 2;min-height:50px;gap:5px;padding:11px 12px 9px;background:#fff;border:0;border-left:1px solid #d7d7d7}.paper--modern .paper__meta-grid>div:nth-child(1),.paper--modern .paper__meta-grid>div:nth-child(4),.paper--modern .paper__meta-grid>div:nth-child(6){padding-left:0;border-left:0}.paper--modern .paper__meta-grid>div:nth-child(4){grid-column:span 4}.paper--modern .paper__meta-grid>div:nth-child(-n+5){border-bottom:1px solid #d7d7d7}.paper--modern .paper__meta-grid strong{font-size:10px;line-height:1.3}.paper--modern .quote-table{font-size:9.5px}.paper--modern .quote-table th{height:36px;padding:7px 5px;background:var(--green);color:var(--ink);border:0;border-right:1px solid rgba(0,0,0,.3);font-size:8.5px}.paper--modern .quote-table th:last-child{border-right:0}.paper--modern .quote-table td{height:90px;padding:8px 6px;border:0;border-bottom:1px solid #d7d7d7;font-size:10px}.paper--modern .photo-cell{height:90px}.paper--modern .photo-cell img{height:74px}.paper--modern .photo-cell span{font-size:8px}.paper--modern .totals{width:100%;margin:11px 0 20px;border-top:0}.paper--modern .total-row{min-height:34px;justify-content:flex-end;gap:50px;padding:7px 0;border-bottom:1px solid #d7d7d7;font-size:10px}.paper--modern .total-row strong{min-width:120px;font-size:11px}.paper--modern .total-row--grand{background:#fff;font-size:11px}.paper--modern .total-row--grand strong{font-size:14px}.paper--modern .paper-section{margin-top:24px}.paper--modern .paper-section h3{display:flex;align-items:center;gap:10px;padding:0 0 8px;background:#fff;color:var(--ink);border-left:0;font-size:10px;letter-spacing:.09em}.paper--modern .paper-section h3:before{content:"";width:5px;height:16px;background:var(--green)}.paper--modern .paper-section dl{display:grid;grid-template-columns:repeat(2,1fr);gap:0;padding-top:0;border:0;border-top:1px solid #d7d7d7}.paper--modern .paper-section dl>div{display:block;min-height:49px;padding:10px 11px 9px 0;background:#fff;border:0;border-bottom:1px solid #d7d7d7}.paper--modern .paper-section dl>div:nth-child(2n){padding-left:15px;border-left:1px solid #d7d7d7}.paper--modern .paper-section dt,.paper--modern .paper-section dd{padding:0;border:0;background:transparent;font-size:9px}.paper--modern .paper-section dt{color:#666;font-size:8px;letter-spacing:.03em;text-transform:uppercase}.paper--modern .paper-section dd{margin-top:5px;color:var(--ink);font-size:10px}.paper--modern .paper-notes ol{padding:9px 12px 9px 27px;border:0;border-top:1px solid #d7d7d7;border-bottom:1px solid #d7d7d7}.paper--modern .paper-notes li{font-size:9.5px}.paper--modern .paper-signatures{margin-top:34px}.paper--modern .paper-signatures--with-signature>div:first-child{min-height:80px}.paper--modern .paper__footer{margin-top:30px;padding-top:10px;border-top:2px solid var(--ink);font-size:8px}@page{size:A4 landscape;margin:0}@media print{:root,body,#root{width:210mm;min-height:0!important;margin:0!important;padding:0!important;background:#fff}.topbar,.editor-pane,.preview-toolbar,.action-bar,.drawer-backdrop,.toast{display:none!important}.app-shell,.workspace,.preview-pane{display:block!important;width:210mm!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;border:0!important;overflow:visible!important}#quotation-preview{position:static;width:210mm;max-width:none;min-height:0;margin:0;padding:0 13mm 5mm;box-sizing:border-box;box-shadow:none;break-after:auto;page-break-after:auto;-webkit-print-color-adjust:exact;print-color-adjust:exact}#quotation-preview.paper--modern:before{height:2.4mm;margin:0 -13mm 4mm}#quotation-preview .paper__header{padding-top:0;padding-bottom:12px}#quotation-preview .paper__title-row{margin:16px 0 12px}#quotation-preview .paper__meta-grid{margin-bottom:14px}#quotation-preview .paper__meta-grid>div{min-height:39px;padding-top:7px;padding-bottom:6px}#quotation-preview .quote-table th{height:29px}#quotation-preview .quote-table td,#quotation-preview .photo-cell{height:68px}#quotation-preview .photo-cell img{height:56px}#quotation-preview .totals{margin:7px 0 12px}#quotation-preview .total-row{min-height:28px;padding-top:4px;padding-bottom:4px}#quotation-preview .paper-section{margin-top:13px}#quotation-preview .paper-section dl>div{min-height:38px;padding-top:7px;padding-bottom:6px}#quotation-preview .paper-signatures{margin-top:20px}#quotation-preview .paper-signatures--with-signature>div:first-child{min-height:80px}#quotation-preview .paper-signatures>div{min-height:48px}#quotation-preview .paper__footer{margin-top:16px}.quote-table tr,.totals,.paper-section{break-inside:avoid}}.source-badge{padding:6px 10px;border:1px solid #efc2ca;border-radius:99px;background:#fff7f8;color:var(--green-dark);font-size:11px;font-weight:700}.editor-card{margin-bottom:16px;padding:20px;border:1px solid #ddd;border-radius:12px;background:#fff;box-shadow:var(--shadow)}.editor-card>h2,.card-heading h2{margin:0;color:var(--ink);font-size:17px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.card-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.option-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:10px 0 16px}.option-row .field{max-width:160px}.toggle{display:inline-flex;align-items:center;gap:7px;color:#454545;font-size:12px;font-weight:700}.toggle input{width:16px;height:16px;min-width:16px;accent-color:var(--green)}.item-list,.package-editor-list{display:flex;flex-direction:column;gap:10px}.item-card{display:grid;grid-template-columns:32px 1fr 36px;gap:10px;padding:12px;border:1px solid #e0e0e0;border-radius:10px;background:#fcfcfc}.item-index{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:var(--mint);color:var(--green-dark);font-size:12px;font-weight:800}.item-fields{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(210px,1.8fr);gap:8px}.item-fields .inline-fields{grid-column:1 / -1;display:grid;grid-template-columns:100px 70px 110px 1fr;gap:8px;align-items:center}.item-fields output{color:var(--green-dark);font-size:12px;font-weight:700;text-align:right}.image-picker{grid-column:1 / -1;width:fit-content;display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:11px;font-weight:700;cursor:pointer}.image-picker input{display:none}.packing-output-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px;padding:13px 14px;border:1px solid #e4e4e4;border-radius:10px;background:#fafafa}.language-control{display:flex;flex-direction:column;gap:7px;color:#5d5d5d;font-size:11px;font-weight:700}.language-segments{display:flex;gap:4px;padding:4px;border-radius:9px;background:#ececec}.language-segments button{min-width:76px;height:38px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#666}.language-segments button strong{font-size:12px}.language-segments button small{font-size:8px;font-weight:800;letter-spacing:.06em}.language-segments button.active{background:#fff;color:var(--green-dark);box-shadow:0 2px 9px #0000001a}.output-switches{min-height:45px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px}.output-switches .field{width:90px}.packing-product-list{display:flex;flex-direction:column;gap:14px}.packing-product-card{overflow:hidden;scroll-margin-top:90px;border:1px solid #d9d9d9;border-radius:12px;background:#fff;box-shadow:0 4px 14px #1414140b}.packing-product-card:focus-within{border-color:#dd8794;box-shadow:0 0 0 3px #c91d3214,0 8px 20px #1414140f}.packing-product-card__head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px 10px 15px;border-bottom:1px solid #e2e2e2;border-left:4px solid var(--green);background:linear-gradient(90deg,#fff7f8 0,#fafafa 38%,#fafafa)}.packing-product-card__head>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.packing-product-card__head>div:first-child span{color:var(--green);font-size:9px;font-weight:850;letter-spacing:.12em}.packing-product-card__head>div:first-child strong{overflow:hidden;color:var(--ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.packing-progress{display:flex;align-items:center;gap:7px;flex-shrink:0}.packing-progress>span{padding:5px 7px;border-radius:6px;background:#ededed;color:#666;font-size:9px;font-weight:800}.packing-progress>span.is-complete{background:#e6f5ed;color:#177049}.packing-progress .icon-button{width:32px;height:32px}.packing-product-card__body{padding:15px}.packing-core-grid{display:grid;grid-template-columns:1.15fr 1.15fr .9fr .7fr .55fr;gap:9px}.packing-core-grid.has-price{grid-template-columns:1.05fr 1.05fr .8fr .65fr .5fr .75fr}.packing-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:13px}.language-panel{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #e1e1e1;border-radius:10px;background:#fbfbfb}.language-panel>header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid #e3e3e3}.language-panel>header span{color:var(--ink);font-size:12px;font-weight:800}.language-panel>header small{padding:3px 6px;border-radius:5px;font-size:8px;font-weight:850;letter-spacing:.08em}.language-panel--zh>header small{background:var(--mint);color:var(--green-dark)}.language-panel--en>header small{background:#ededed;color:#555}.language-panel textarea{min-height:62px;background:#fff}.language-panel .field:first-of-type textarea{min-height:74px}.packing-text-editor{margin-top:13px;padding:12px;border:1px solid #e1e1e1;border-radius:10px;background:#fbfbfb}.packing-text-editor>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px;padding-bottom:10px;border-bottom:1px solid #e3e3e3}.packing-text-editor>header>div:first-child{display:flex;flex-direction:column;gap:3px}.packing-text-editor>header strong{color:var(--ink);font-size:12px}.packing-text-editor>header span{color:var(--muted);font-size:10px}.packing-text-actions{display:flex;align-items:center;gap:8px}.compact-segments{display:flex;gap:3px;padding:3px;border-radius:8px;background:#ececec}.compact-segments button{height:32px;padding:0 11px;border:0;border-radius:6px;background:transparent;color:#666;font-size:11px;font-weight:750}.compact-segments button.active{background:#fff;color:var(--green-dark);box-shadow:0 2px 7px #00000017}.packing-text-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.packing-text-fields textarea{min-height:66px;background:#fff}.packing-product-bottom{display:grid;grid-template-columns:1fr auto;gap:11px;align-items:stretch;margin-top:12px}.packing-product-bottom textarea{min-height:70px}.product-package-section{margin-top:15px;padding-top:14px;border-top:1px solid #eadfe1}.product-package-title{display:flex;align-items:baseline;gap:9px;margin-bottom:11px}.product-package-title strong{color:var(--ink);font-size:12px}.product-package-title span{color:var(--muted);font-size:10px}.product-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-package-grid .field--wide{grid-column:span 2}.product-package-grid textarea{min-height:70px}.packing-image-picker{position:relative;width:150px;min-height:70px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px dashed #d4929d;border-radius:9px;background:#fff8f9;color:var(--green-dark);cursor:pointer}.packing-image-picker>span{z-index:1;display:flex;align-items:center;gap:6px;padding:8px;font-size:10px;font-weight:800}.packing-image-picker img{position:absolute;top:4px;right:4px;bottom:4px;left:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain;background:#fff}.packing-image-picker img+input,.packing-image-picker input{display:none}.danger{color:#aa4945}.package-editor{border:1px solid #ddd;border-radius:10px;overflow:hidden}.package-editor__head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#f5f5f5;color:var(--ink);font-size:13px}.package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.package-grid .field--wide{grid-column:span 2}.derived{display:flex;flex-direction:column;gap:6px;color:#5d5d5d;font-size:11px;font-weight:700}.derived strong{height:38px;display:flex;align-items:center;padding:0 10px;border-radius:7px;background:var(--mint);color:var(--green-dark);font-size:15px}.allocation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border-top:1px dashed #ddd}.allocation-grid>span{grid-column:1 / -1;color:var(--ink);font-size:11px;font-weight:800}.allocation-grid label{display:grid;grid-template-columns:1fr 80px;gap:6px;align-items:center;color:#555;font-size:11px}.package-totals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:18px;padding:9px 12px;background:#fff7f8;color:var(--green-dark);font-size:11px;font-weight:800}.shipping-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}.shipping-option{min-height:38px;display:grid;grid-template-columns:145px 1fr;gap:8px;align-items:center}.preview-heading{width:100%;margin:0 auto 12px;display:flex;justify-content:space-between;align-items:center;color:#666;font-size:11px}.preview-heading>div{display:flex;gap:7px}.preview-heading strong{color:var(--ink)}.preview-heading__actions{display:flex;align-items:center;gap:10px}.preview-heading__actions .button{min-height:34px;padding:0 11px}.paper-wrap{overflow-x:auto;padding-bottom:30px}.preview-modal{position:fixed;z-index:200;top:0;right:0;bottom:0;left:0;display:grid;grid-template-rows:auto 1fr;background:#e7e7e7}.preview-modal__toolbar{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 22px;background:#fff;border-bottom:1px solid #d8d8d8;box-shadow:0 3px 14px #00000014}.preview-modal__toolbar>div{display:flex;flex-direction:column;gap:3px}.preview-modal__toolbar strong{color:var(--ink);font-size:15px}.preview-modal__toolbar span{color:var(--muted);font-size:10px}.preview-modal__canvas{overflow:auto;padding:28px}.preview-modal__canvas .paper{margin:0 auto;box-shadow:0 8px 30px #00000024}.paper{padding-top:0}#packing-list-preview{width:1120px;max-width:none;min-height:792px;padding:30px 34px 26px}.paper:before{content:"";display:block;height:9px;margin:0 -43px 28px;background:var(--green)}#packing-list-preview:before{margin:0 -34px 20px}#packing-list-preview .paper__header{border-bottom-color:#eadfe1}#packing-list-preview .paper__footer{border-top-color:#eadfe1}.paper__header{align-items:center;gap:20px}.paper .brand-mark{flex:0 0 66px;width:66px;height:66px;font-size:27px}.paper__company{flex:1}.paper__company h1{font-family:Arial,sans-serif;font-size:19px}.paper__company p{font-size:9px}.paper__title-row h2{font-family:Arial,sans-serif;font-size:34px}.paper__meta-grid{grid-template-columns:repeat(4,1fr)}.paper-section h3{display:flex;align-items:center;gap:8px;padding:0 0 7px;background:#fff;color:var(--ink);font-size:9px;letter-spacing:.09em}.paper-section h3:before{content:"";width:5px;height:14px;background:var(--green)}.document-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:7.3px}.document-table th{padding:6px 3px;border:0;background:var(--green);color:var(--ink);font-size:6.8px;line-height:1.2}.document-table thead th:not(:last-child){border-right:1px solid rgba(0,0,0,.3)}.document-table thead tr:nth-child(2) th:last-child{border-right:1px solid rgba(0,0,0,.3)}.document-table td{padding:6px 4px;border:0;border-bottom:1px solid #d7d7d7;text-align:center;vertical-align:middle;overflow-wrap:anywhere}.document-table .description-cell{text-align:left}.document-table small{display:block;margin-top:3px;color:#777;font-size:6px}.photo-cell img{width:48px;height:42px;object-fit:contain}.packing-section{page-break-inside:auto}.packing-table{font-size:6.8px}.packing-table th{padding:6px 2px;font-size:6.2px}.packing-table td{height:38px;padding:5px 3px;line-height:1.25}.packing-table tbody tr:hover td{background:#fafafa}.packing-table .description-cell{white-space:pre-line}.packing-table .packing-empty{height:70px;color:#777;font-style:italic}.packing-table tfoot th,.packing-table tfoot td{height:32px;border:0;border-bottom:1px solid #d7d7d7;background:#fff;color:var(--ink);font-weight:800}.packing-table .col-customer-marks{width:8%}.packing-table .col-code,.packing-table .col-model{width:6%}.packing-table .col-description{width:15%}.packing-table .col-photo{width:6%}.packing-table .col-product-qty{width:5%}.packing-table .col-price,.packing-table .col-amount{width:7%}.packing-table .col-material,.packing-table .col-usage{width:12%}.packing-table .col-brand{width:5%}.packing-table .col-packages{width:4%}.packing-table .col-total-weight{width:5%}.packing-table .col-size{width:3%}.packing-table .col-cbm{width:5%}.packing-table .col-remark{width:11%}.paper--bilingual .paper__company h1,.paper--bilingual .paper__title-row h2,.paper--bilingual .paper__doc-no span,.paper--bilingual .paper__meta-grid span,.paper--bilingual .paper-section h3,.paper--bilingual .document-table th,.paper--bilingual .paper-notes h3,.paper--bilingual .paper-signature span{white-space:pre-line;line-height:1.25}.paper-notes{margin-top:15px}.paper-notes h3{font-size:8px}.paper-notes p{white-space:pre-line;font-size:7.5px}.paper-signature{display:flex;width:210px;margin:24px 0 0 auto;flex-direction:column;align-items:center;break-inside:avoid;text-align:center;font-size:7px;font-weight:700}.paper-signature img{position:static;display:block;width:155px;height:66px;margin:0 auto -2px;object-fit:cover;object-position:center 56%;transform:none}.paper-signature span{display:block;width:100%;padding-top:6px;border-top:1px solid #777}.notice{position:fixed;z-index:100;right:24px;bottom:88px;max-width:560px;padding:12px 16px;border-radius:9px;color:#fff;box-shadow:0 10px 30px #0003;font-size:12px}.notice--success{background:#1e614d}.notice--error{background:#a13232}.history-drawer{overflow-y:auto}.history-item .icon-button{height:100%;border:0;border-left:1px solid var(--line);border-radius:0}.import-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:18px;padding:4px;border-radius:9px;background:#eee}.import-tabs button{height:34px;border:0;border-radius:7px;background:transparent;color:#666;font-size:12px;font-weight:700}.import-tabs button.active{background:#fff;color:var(--green-dark);box-shadow:0 2px 8px #00000014}.source-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px}.import-hint{color:var(--muted);font-size:11px}.source-entry{width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left}.source-entry>span{display:flex;flex-direction:column;gap:4px}.source-entry strong{color:var(--ink);font-size:12px}.source-entry small{color:var(--muted);font-size:10px}@media(max-width:1260px){.package-grid,.product-package-grid{grid-template-columns:repeat(3,1fr)}.allocation-grid{grid-template-columns:repeat(2,1fr)}.packing-output-toolbar{align-items:stretch;flex-direction:column}.output-switches{justify-content:flex-start}}@media(max-width:720px){.form-grid,.shipping-options,.packing-language-grid,.packing-text-fields{grid-template-columns:1fr}.package-grid,.product-package-grid{grid-template-columns:repeat(2,1fr)}.item-fields{grid-template-columns:1fr}.item-fields .inline-fields,.item-fields textarea{grid-column:1}.shipping-option{grid-template-columns:125px 1fr}.packing-core-grid,.packing-core-grid.has-price{grid-template-columns:repeat(2,minmax(0,1fr))}.packing-product-bottom{grid-template-columns:1fr}.packing-image-picker{width:100%}.language-segments{overflow-x:auto}.language-segments button{min-width:70px}.packing-text-editor>header,.packing-text-actions{align-items:stretch;flex-direction:column}.preview-heading{align-items:flex-start}.preview-heading__actions{align-items:flex-end;flex-direction:column}}@media print{.preview-heading,.notice,.preview-modal{display:none!important}:root,body,#root,.app-shell,.workspace,.preview-pane{width:297mm!important}#packing-list-preview{position:static;width:297mm;max-width:none;min-height:0;margin:0;padding:0 8mm 5mm;box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}#packing-list-preview:before{height:2.4mm;margin:0 -8mm 4mm}#packing-list-preview .paper__header{padding-bottom:7px}#packing-list-preview .paper__title-row{margin:8px 0 7px}#packing-list-preview .paper__title-row h2{font-size:24px}#packing-list-preview .paper__meta-grid{margin-bottom:8px}#packing-list-preview .paper__meta-grid>div{min-height:28px;padding:4px 6px}#packing-list-preview .paper-section{margin-top:7px}#packing-list-preview .packing-table th{padding-top:4px;padding-bottom:4px}#packing-list-preview .packing-table td{height:30px;padding-top:3px;padding-bottom:3px}#packing-list-preview tr,#packing-list-preview .paper-signature{break-inside:avoid}}
