:root{--ink:#20342d;--muted:#79867f;--green:#237459;--bg:#f5f7f5;--line:#e6ebe7}body{background:var(--bg);color:var(--ink);font-family:Inter,"Microsoft YaHei",sans-serif;font-size:14px}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:25px;color:var(--ink);font-weight:700;text-decoration:none}.brand-mark{background:var(--green);color:white;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-size:27px}.brand small{display:block;font-size:9px;letter-spacing:1.8px;margin-top:4px;color:var(--muted)}.workspace{font-size:12px;margin:32px 0;padding:13px 8px;background:var(--bg);border-radius:7px}.workspace span{display:block;font-size:9px;color:var(--green);margin-top:4px;letter-spacing:1px}.nav-label{font-size:11px;color:#99a49d;margin:0 12px 10px;letter-spacing:2px}nav a{display:flex;align-items:center;gap:12px;color:#6c7b72;text-decoration:none;padding:12px 14px;border-radius:7px;margin:4px 0}nav a:hover{background:#f5f8f6}nav a.active{background:#e9f3ed;color:var(--green);font-weight:600}nav svg{width:19px;height:19px}nav a:last-child{margin-top:25px}.sidebar-bottom{margin-top:auto;font-size:12px;color:#748379}.sidebar-bottom small{display:block;margin:10px 0 0 13px;color:#a0aaa3;font-size:10px}.online-dot{display:inline-block;background:#35926d;width:6px;height:6px;border-radius:50%;margin-right:6px}.shell{margin-left:236px}.topbar{height:76px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fff;color:#8a968f;font-size:12px}.topbar>div{display:flex;gap:20px;align-items:center}.local-badge{background:#f1f5f2;color:#66816f;padding:6px 10px;border-radius:5px;font-size:11px}.avatar{background:#e9eee9;color:#64816c}main{padding:35px 42px;max-width:1580px;margin:auto;min-height:calc(100vh - 130px)}h1{font-size:27px;letter-spacing:-.5px;margin:0 0 9px}h2{font-size:17px;margin:0}h3{font-size:15px}.subtitle{color:var(--muted);font-size:13px;line-height:1.8}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:20px}.btn{border-radius:6px;font-size:12px;box-shadow:none;padding:9px 15px}.btn-primary{background:var(--green);border-color:var(--green)}.btn-primary:hover{background:#195f48;border-color:#195f48}.btn svg{width:15px;height:15px;margin-right:6px}.btn-ghost{border:0;background:transparent;color:var(--green);padding:5px 8px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:21px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#748379;font-size:12px}.stat-icon{display:grid;place-items:center;width:33px;height:33px;background:#f0f6f2;border-radius:8px;color:var(--green)}.stat-icon svg{width:18px;height:18px}.stat-value{font-size:31px;font-weight:600;margin:10px 0 5px;letter-spacing:-1px}.stat-note{font-size:11px;color:#8a978f}.panel{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;overflow:hidden}.panel-head{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:10px}.panel-head small{display:block;color:var(--muted);margin-top:5px;font-size:11px}.grid-two{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:20px}.quick{border:1px solid var(--line);border-radius:8px;padding:19px 10px;text-align:center;background:#fff;cursor:pointer;color:var(--ink)}.quick:hover{border-color:#8ab59a;background:#f8fbf9}.quick svg{width:23px;height:23px;color:var(--green);margin-bottom:10px}.quick span{display:block;font-size:12px}.quick small{color:#9ba69f;font-size:10px}.table{margin:0;color:var(--ink);font-size:12px}.table th{background:#fafcfb!important;color:#88978d;font-size:10px;letter-spacing:.6px;font-weight:500;padding:12px 20px!important;border-bottom:1px solid var(--line)}.table td{padding:16px 20px!important;border-color:var(--line);vertical-align:middle}.cell-title{font-weight:600;color:#31443b;font-size:12px}.cell-sub{font-size:10px;color:#93a096;margin-top:4px}.tag{display:inline-block;font-size:10px;padding:4px 8px;border-radius:4px;background:#eaf4ed;color:#408262;white-space:nowrap}.tag.blue{background:#edf2fa;color:#6382ab}.tag.amber{background:#faf2e5;color:#ac8644}.tag.gray{background:#f0f2f0;color:#7b887e}.toolbar{display:flex;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);align-items:center}.search{max-width:330px}.form-control,.form-select{font-size:12px;border-color:#dfe6df;border-radius:6px;min-height:37px}.form-control:focus,.form-select:focus{border-color:#79a88c;box-shadow:0 0 0 3px #23745912}.form-label{font-size:12px;color:#63766a}.empty{padding:60px 20px;text-align:center;color:#95a097}.table-responsive{overflow:auto}.activity{padding:4px 23px}.activity-row{display:flex;gap:13px;padding:17px 0;border-bottom:1px solid var(--line)}.activity-row:last-child{border:0}.activity-icon{width:32px;height:32px;border-radius:50%;background:#edf5ef;display:grid;place-items:center;color:var(--green);flex-shrink:0}.activity-icon svg{width:15px;height:15px}.activity-row p{margin:0;font-size:12px}.activity-row small{color:#93a096;font-size:10px;display:block;margin-top:5px}.notice{border:1px solid #dfe9df;background:#edf4ed;padding:19px 23px;border-radius:10px;display:flex;gap:15px;align-items:center;margin-top:3px}.notice p{margin:0;font-size:12px;color:#65816c}.notice b{display:block;margin-bottom:5px;color:#395846;font-size:13px}.notice svg{width:24px;height:24px;color:#5c8667;flex-shrink:0}footer{margin:0 42px;padding:20px 0;border-top:1px solid var(--line);color:#9aa69e;font-size:10px;display:flex;justify-content:space-between}dialog{border:0;border-radius:12px;width:min(900px,94vw);max-height:90vh;box-shadow:0 20px 90px #19352533;padding:0;color:var(--ink)}dialog::backdrop{background:#18322766;backdrop-filter:blur(3px)}.modal-heading{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-content-inner{padding:24px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.modal-actions{padding:18px 26px;background:#f8faf8;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line)}.close-button{background:none;border:0;font-size:23px;color:#8b978f;padding:0 5px}.doc-lines{width:100%;margin:20px 0}.doc-lines th{font-size:10px;color:var(--muted);padding:7px}.doc-lines td{padding:5px}.doc-lines input{min-width:60px;width:100%}.doc-lines td:first-child{width:32%}.doc-totals{text-align:right;font-size:18px;font-weight:600;padding:16px 0}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.settings-body{padding:24px}.integration{padding:24px}.integration-logo{background:#edf2fe;border-radius:12px;width:48px;height:48px;color:#507dc9;display:grid;place-items:center;margin-bottom:17px}.integration-logo svg{width:25px}.integration p{color:#8b9990;font-size:12px;line-height:1.9}.integration-step{display:flex;gap:12px;font-size:12px;margin:18px 0;color:#667c6d}.integration-step span{border:1px solid #dce5de;width:23px;height:23px;border-radius:50%;text-align:center;line-height:21px;font-size:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244936;color:white;padding:12px 22px;border-radius:7px;font-size:12px;display:none;z-index:999}.paper{background:white;padding:35px;color:#222;font-family:Arial,"Microsoft YaHei",sans-serif;line-height:1.6}.paper h2{text-align:center;font-size:24px;margin:16px 0 28px}.paper-company{text-align:center;font-size:19px;font-weight:bold}.paper-meta{display:flex;justify-content:space-between;gap:30px;margin:15px 0 25px;font-size:12px}.paper table{width:100%;border-collapse:collapse;font-size:11px;margin:20px 0}.paper th,.paper td{border:1px solid #ccc;padding:9px}.paper-total{text-align:right;font-weight:bold;margin:15px 0}.paper-terms{font-size:12px;white-space:pre-wrap;margin:20px 0}.paper-sign{display:flex;justify-content:space-between;margin-top:50px;font-size:12px}.preview-toolbar{display:flex;justify-content:space-between;gap:12px;background:#f7faf7;padding:15px 26px}#print-area{display:none}.contract-tip{background:#fff7e9;color:#9e7f43;padding:12px;border-radius:6px;font-size:11px}.record-avatar{display:inline-grid;place-items:center;background:#edf3ee;width:34px;height:34px;border-radius:8px;color:#63816d;font-size:12px;margin-right:10px}.company-cell{display:flex;align-items:center}@media(max-width:1100px){main{padding:25px}.topbar{padding:0 25px}.sidebar{width:200px;padding:25px 16px}.shell{margin-left:200px}.grid-two{grid-template-columns:1fr}.cards{gap:12px}.stat{padding:16px}.settings-grid{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:21px}.workspace,.nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;margin-top:12px}nav a{white-space:nowrap;padding:9px 12px;margin:0}nav a:last-child{margin:0}nav svg{display:none}.shell{margin:0}.topbar{height:54px;padding:0 18px}main{padding:23px 18px}.cards{grid-template-columns:1fr 1fr}.page-heading{align-items:flex-start}h1{font-size:23px}.form-grid{grid-template-columns:1fr}.quick-grid{gap:8px;padding:15px}.toolbar{flex-wrap:wrap;padding:15px}.settings-grid{grid-template-columns:1fr}.local-badge{display:none}.paper{padding:20px}.doc-lines{display:block;overflow:auto}footer{margin:0 18px}footer span{display:none}}@media print{@page{size:A4;margin:14mm}body{background:white}.sidebar,.shell,dialog,#toast{display:none!important}#print-area{display:block}.paper{padding:0}.paper tr{break-inside:avoid}.paper thead{display:table-header-group}.paper-sign{break-inside:avoid}.paper h2{font-size:22px}}
.grid-two>div,.panel,.cards>div,.settings-grid>div{min-width:0}@media(max-width:760px){.grid-two{grid-template-columns:minmax(0,1fr)}.page-heading{flex-wrap:wrap}.page-heading>.btn{margin-top:2px}.preview-toolbar{flex-wrap:wrap}.modal-content-inner{padding:20px 16px}.modal-heading{padding:18px 16px}.form-grid{gap:14px}.table-responsive{max-width:100%}.table{min-width:560px}.paper{overflow:auto}}
.price-source{max-width:150px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
/* Keep the shared dialog header reachable while forms or previews scroll. */
.modal-heading{position:sticky;top:0;z-index:20;background:#fff;justify-content:flex-start;gap:14px;box-shadow:0 2px 6px #20342d08}.modal-heading .close-button{order:-1;flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:var(--ink)}.modal-heading .close-button:hover{background:#edf4ed}.modal-heading .close-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.modal-heading h2{margin:0}
.modal-heading{justify-content:space-between}.modal-heading .close-button{order:0}
.quote-images-toggle{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink);padding:12px 14px;background:#f2f7f3;border:1px solid var(--line);border-radius:6px;margin:15px 0}.quote-images-toggle input{accent-color:var(--green);width:16px;height:16px}.quote-image-editor{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.quote-image-thumb{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:white}.quote-image-upload{cursor:pointer;font-size:11px;color:var(--green);border:1px dashed #9db6a6;border-radius:5px;padding:7px 10px}.quote-image-upload input{position:absolute;width:1px;height:1px;opacity:0}.quote-image-upload:focus-within{outline:2px solid var(--green);outline-offset:2px}.paper-product-image{display:block;width:90px;height:90px;object-fit:contain;margin:0 0 8px}@media print{.paper-product-image{width:23mm;height:23mm}}
.template-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:20px}.template-references{padding:0 23px 18px;color:var(--muted);font-size:10px}.template-references a{color:var(--green)}.export-details{border:1px solid var(--line);border-radius:6px;margin:18px 0;padding:14px}.export-details summary{cursor:pointer;font-size:12px;color:var(--green)}.export-details .form-grid{margin-top:18px}.export-letterhead{border-bottom:2px solid #283c32;text-align:center;padding-bottom:16px;font-size:10px}.export-title{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 0}.export-title h2{font-size:22px;text-align:left;margin:0}.export-title span{font-size:12px}.export-parties{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cdd4ce;font-size:11px}.export-parties section{padding:12px}.export-parties section+section{border-left:1px solid #cdd4ce}.export-paper h3{font-size:10px;letter-spacing:.7px;margin:0 0 7px;color:#65736b}.export-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 25px;font-size:10px;margin:18px 0}.export-meta>div{display:flex;justify-content:space-between;gap:12px}.export-meta b{font-weight:500;color:#7b847e}.export-block{font-size:11px;white-space:pre-wrap;margin:18px 0}.export-item-code{color:#7a847d;font-size:9px}.export-paper th{background:#f0f3f0}.export-paper td{vertical-align:middle}.export-money{font-size:11px;width:260px;margin:15px 0 20px auto}.export-money>div{display:flex;justify-content:space-between;padding:5px}.export-grand-total{border-top:1px solid #9aa79f;font-size:13px}.export-contract-clauses section{font-size:11px;white-space:pre-wrap;margin:15px 0;break-inside:avoid}.export-paper .paper-sign{margin-top:30px}.export-paper tfoot{display:table-row-group}@media(max-width:760px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.export-title{flex-wrap:wrap}.export-meta{grid-template-columns:1fr}}@media print{.export-title{display:flex}.export-meta{grid-template-columns:1fr 1fr}.export-paper{overflow:visible}.export-parties,.export-block{break-inside:avoid}}
.paper-requirements{margin:20px 0;border:1px solid #d6ddd7;padding:13px;font-size:11px;break-inside:auto}.paper-requirements h3{font-size:11px;margin:0 0 10px}.paper-requirements>div{display:grid;grid-template-columns:150px 1fr;gap:12px;margin:7px 0;break-inside:avoid}.paper-requirements b{font-weight:500;color:#69776d}.paper-requirements span{white-space:pre-wrap;overflow-wrap:anywhere}.order-requirements .quote-images-toggle{margin-bottom:0}@media(max-width:760px){.paper-requirements>div{grid-template-columns:100px 1fr}}@media print{.paper-requirements>div{grid-template-columns:150px 1fr}}
.paper-line-note{margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;color:#42594a;font-size:11px}
.product-weight-heading{border-top:1px solid var(--line);padding-top:18px;margin-top:2px;font-size:13px}.product-weight-heading small{display:block;margin-top:7px;font-size:11px;color:var(--muted)}.packing-weight-hint{font-size:10px;color:var(--muted);line-height:1.6;margin-top:9px}.packing-weight-hint .btn{font-size:10px;padding:3px 0}
.dimension-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dimension-inputs .form-label{font-size:11px;color:var(--muted)}
.company-entry{padding:17px 0;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.company-entry:last-child{border-bottom:0}.company-entry h3{margin:0 0 7px}.company-entry .subtitle{font-size:11px}.toolbar{flex-wrap:wrap}@media(max-width:760px){.company-entry{flex-wrap:wrap}}
.companies-summary{background:#edf4ed;border:1px solid #dce8dc;border-radius:10px;padding:23px;margin:0 0 24px;display:flex;justify-content:space-between;align-items:center;gap:18px}.company-summary-count{font-size:18px;margin-bottom:7px}.company-summary-count strong{font-size:27px;color:var(--green);margin:0 4px}.companies-summary .subtitle{font-size:12px}#company-manager{scroll-margin-top:20px}#company-manager:focus{outline:2px solid #86b09a;outline-offset:3px}@media(max-width:760px){.companies-summary{flex-wrap:wrap;padding:18px}}
.product-library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}.product-library-label{font-size:10px;letter-spacing:1.7px;color:var(--muted);display:block;margin-bottom:6px}.product-library-toolbar h2{font-size:18px}.product-library-toolbar .tag{margin-left:10px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{background:#fff;border:1px solid #dfe7e1;border-radius:13px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s,border-color .18s}.product-card:hover{border-color:#94b4a2;box-shadow:0 8px 24px #2849360c}.product-card-photo{background:#f1f5f2;position:relative;border-bottom:1px solid var(--line)}.product-card-sku{position:absolute;left:14px;top:14px;border:1px solid #dbe6de;border-radius:5px;background:#ffffffed;padding:4px 9px;font-size:11px;letter-spacing:.5px;color:#567462;pointer-events:none;z-index:1}.product-image-button{display:block;border:0;background:none;padding:32px 22px 22px;width:100%;height:210px;cursor:pointer}.product-image-button img{width:100%;height:100%;object-fit:contain;border-radius:5px}.product-no-photo{display:flex;align-items:center;flex-direction:column;color:#8aa093;padding:18px 0}.product-no-photo svg{width:42px;height:42px;opacity:.65;margin-bottom:10px}.product-no-photo b{font-size:12px;font-weight:500}.product-no-photo small{font-size:10px;margin-top:5px}.product-card-body{padding:20px 20px 12px;flex:1}.product-card-body h2{font-size:17px;line-height:1.5}.product-card-en{color:#8a978e;font-size:11px;margin:4px 0 17px;min-height:17px}.product-card-prices{display:grid;grid-template-columns:1fr 1fr;background:#f1f7f3;border-radius:7px;padding:12px 14px;gap:10px;margin-bottom:17px}.product-card-prices span{display:block;font-size:10px;color:#7e9285;margin-bottom:5px}.product-card-prices strong{font-size:18px;font-weight:600;color:#2b6248}.product-card-info{font-size:11px;margin:0}.product-card-info>div{display:flex;justify-content:space-between;gap:15px;margin:9px 0;align-items:baseline}.product-card-info dt{font-weight:400;color:#8a998e;white-space:nowrap}.product-card-info dd{margin:0;text-align:right;color:#435b4c;overflow-wrap:anywhere}.product-card-packing{margin-top:13px;border-top:1px solid var(--line);padding-top:13px}.product-card-packing summary{font-size:11px;color:#758e7e;cursor:pointer}.product-card-actions{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);gap:10px}.product-card-actions .btn-primary{padding:8px 14px}.product-photo-editor{display:flex;gap:24px;align-items:center;padding:20px;background:#f3f7f4;border:1px dashed #c8d8cd;border-radius:9px}.product-photo-editor-preview{width:120px;height:120px;flex-shrink:0;background:white;border-radius:8px;border:1px solid var(--line);display:grid;place-items:center}.product-photo-editor-preview img{width:100%;height:100%;object-fit:contain;border-radius:8px}.product-photo-editor-preview svg{width:40px;height:40px;color:#9aae9e}.product-photo-editor h3{margin:0 0 7px;font-size:14px}.product-photo-editor p{font-size:11px;color:#7d9083;margin-bottom:10px}.product-photo-editor small{display:block;font-size:10px;color:#97a499;margin-top:9px}.photo-upload-label{position:relative;cursor:pointer}.photo-upload-label input{position:absolute;opacity:0;width:1px;height:1px}.photo-upload-label:focus-within{outline:2px solid var(--green);outline-offset:2px}.product-photo-zoom{padding:30px;text-align:center}.product-photo-zoom img{max-width:100%;max-height:65vh;object-fit:contain}.visual-product-picker{border:1px solid #dbe6de;border-radius:8px;background:#f7faf8;padding:14px;margin:14px 0}.visual-product-picker[hidden]{display:none}.visual-picker-heading{display:flex;justify-content:space-between;gap:15px;font-size:11px;margin-bottom:12px;color:#507760}.visual-picker-heading span{font-size:10px;color:#92a196}.visual-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:330px;overflow:auto}.visual-picker-card{background:white;border:1px solid #dce6df;border-radius:8px;padding:12px;display:flex;align-items:center;flex-direction:column;gap:5px;cursor:pointer;min-width:0}.visual-picker-card:hover{border-color:var(--green);background:#f2f8f3}.visual-picker-card img,.visual-picker-placeholder{width:100%;height:84px;object-fit:contain;display:grid;place-items:center}.visual-picker-placeholder svg{width:33px;height:33px;color:#9aafa1}.visual-picker-card b{font-size:11px;color:#3c6350}.visual-picker-card>span:last-child{font-size:10px;color:#819589;overflow-wrap:anywhere}@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.product-library-toolbar{flex-wrap:wrap}.product-library-toolbar .search{max-width:100%}.product-grid{grid-template-columns:minmax(0,1fr);gap:18px}.product-image-button{height:220px}.product-photo-editor{flex-wrap:wrap;padding:15px;gap:15px}.product-photo-editor-preview{width:100px;height:100px}.visual-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-picker-heading{flex-wrap:wrap}.doc-lines{max-width:100%}}
body.composing main{max-width:none;padding:24px}.composer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;position:sticky;top:0;z-index:30;background:var(--bg);padding:12px 0}.composer-toolbar h1{font-size:24px;margin:0 0 5px}.composer-toolbar .subtitle{font-size:11px}.editor-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:20px;align-items:start}.editor-form-panel,.editor-preview-panel{min-width:0;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.editor-section-heading{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff}.editor-section-heading b{font-size:13px;color:#365641}.editor-section-heading>span{font-size:10px;color:#91a096}.live-preview-status{display:block;font-size:9px;color:#8d9d92;margin-top:4px}.preview-scale-controls{display:flex;gap:3px;align-items:center;flex-shrink:0}.preview-scale-controls .btn{font-size:10px;padding:4px 5px}.preview-scale-controls>span{font-size:10px;color:#7d9184;min-width:28px;text-align:center}.editor-preview-panel{position:sticky;top:100px}.editor-preview-stage{background:#e8ede9;padding:16px;max-height:calc(100vh - 190px);min-height:450px;overflow:auto}.editor-preview-stage #editor-preview-space{position:relative;margin:0 auto}.editor-preview-stage #editor-preview-canvas{width:794px;position:absolute;top:0;left:0;transform-origin:0 0;background:white;box-shadow:0 2px 12px #1c332516}.editor-preview-stage .paper{width:794px;box-sizing:border-box;min-height:1123px;padding:40px;margin:0;overflow:visible}.editor-form-panel .modal-content-inner{padding:20px}.editor-form-panel .form-grid{gap:14px}.editor-form-panel .form-control,.editor-form-panel .form-select{min-width:0}.editor-form-panel .toolbar{gap:8px}.editor-form-panel .toolbar h3{flex-basis:100%;margin-bottom:7px!important}.editor-form-panel .toolbar #product-pick{flex-basis:100%!important}.editor-form-panel #lines{min-width:0}.editor-form-panel .doc-lines{display:block;width:100%;margin:20px 0}.editor-form-panel .doc-lines thead{display:none}.editor-form-panel .doc-lines tbody{display:block;width:100%}.editor-form-panel .doc-lines tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;margin-bottom:15px;background:#f9fbf9;border:1px solid #e0e9e2;border-radius:8px}.editor-form-panel .doc-lines td{display:block;width:auto;padding:0!important;min-width:0}.editor-form-panel .doc-lines td:first-child{grid-column:1/-1;width:auto}.editor-form-panel .doc-lines td[data-label]::before{content:attr(data-label);display:block;color:#7b9081;font-size:10px;margin:4px 0 6px}.editor-form-panel .doc-lines td:last-child{grid-column:3;justify-self:end;align-self:end}.editor-form-panel .doc-lines .line-amount{grid-column:span 2;align-self:center;font-size:15px;color:var(--green);font-weight:600}.editor-form-panel .doc-lines input{min-width:0}.editor-form-panel .price-source{max-width:none;font-size:9px}.editor-form-panel .doc-totals{border-top:1px solid var(--line);padding:17px 0;font-size:17px}.editor-mobile-tabs{display:none}.editor-form-panel .visual-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-form-panel .export-details{background:#fcfdfc}.editor-form-panel .export-details .form-grid{grid-template-columns:1fr 1fr}@media(max-width:1200px){.editor-layout{display:block}.editor-preview-panel{display:none;position:static}.editor-mobile-tabs{display:flex;gap:10px;margin-bottom:15px}.editor-layout.show-preview .editor-form-panel{display:none}.editor-layout.show-preview .editor-preview-panel{display:block}.editor-preview-stage{max-height:calc(100vh - 220px)}.composer-toolbar{position:static}.editor-form-panel .modal-content-inner{padding:22px}}@media(max-width:760px){body.composing main{padding:18px}.composer-toolbar{flex-wrap:wrap}.composer-toolbar .actions{width:100%}.composer-toolbar .actions .btn{flex:1;font-size:11px;padding:8px}.editor-form-panel .modal-content-inner{padding:15px}.editor-form-panel .form-grid,.editor-form-panel .export-details .form-grid{grid-template-columns:minmax(0,1fr)}.editor-form-panel .doc-lines tr{padding:12px;gap:8px}.editor-form-panel .visual-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-preview-panel .editor-section-heading{flex-wrap:wrap;padding:12px}.editor-preview-stage{padding:10px;min-height:300px}.editor-section-heading>span{display:none}}
.editor-preview-stage .export-meta{grid-template-columns:1fr 1fr}.editor-preview-stage .export-title{flex-wrap:nowrap}.editor-preview-stage .paper-requirements>div{grid-template-columns:150px 1fr}#editor-layout{scroll-margin-top:60px}@media(max-width:1200px){.editor-mobile-tabs{position:sticky;top:0;z-index:35;background:var(--bg);padding:10px 0}}

.line-model-field{margin:12px 0;padding:10px 12px;background:#eaf4ed;border:1px solid #bed8c6;border-radius:7px}.line-model-field label{display:block;font-size:12px;font-weight:700;color:#205c3f;margin-bottom:6px}.line-model-field input{font-size:14px;font-weight:600;color:#173d2b;background:#fff}.product-card-model{display:inline-flex;align-items:center;gap:7px;margin:9px 0 3px;padding:6px 10px;border-radius:6px;background:#eaf4ed;color:#205c3f;font-size:12px;font-weight:600}.product-card-model strong{font-size:14px;letter-spacing:.2px}.visual-picker-model{font-size:11px!important;font-weight:700;color:#205c3f!important;background:#eaf4ed;border-radius:4px;padding:3px 6px;max-width:100%;overflow-wrap:anywhere}

.line-count{display:flex;justify-content:space-between;align-items:center;margin:14px 0 2px;padding:10px 14px;background:#e7f1e9;border:1px solid #bad2c1;border-radius:7px;color:#1e5d40;font-size:13px;font-weight:700}
.editor-form-panel .doc-lines tr{position:relative;border:2px solid #cbded0;box-shadow:0 3px 11px #183c2510;background:#fff}
.editor-form-panel .doc-lines tr:nth-child(even){background:#f1f7f2;border-color:#a5c7ad}
.editor-form-panel .doc-lines tr::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#25815c;border-radius:6px 0 0 6px}
.editor-form-panel .doc-lines tr:nth-child(even)::before{background:#4f7196}
.line-card-header{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #d9e6dc}
.line-index{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#267553;color:white;font-size:13px;font-weight:700}
.line-card-summary{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.line-card-summary strong{font-size:14px;color:#244a35;overflow-wrap:anywhere}
.line-card-summary small{font-size:11px;color:#637e6b;overflow-wrap:anywhere}
.line-collapse-button{border:1px solid #a7c5af;border-radius:6px;background:#fff;color:#225f42;padding:6px 11px;font-size:11px;font-weight:700;cursor:pointer}
.line-collapse-button:hover,.line-collapse-button:focus-visible{background:#e4f1e7;outline-color:#267553}
.editor-form-panel .doc-lines tr.is-collapsed{grid-template-columns:minmax(0,1fr);padding-bottom:5px}
.editor-form-panel .doc-lines tr.is-collapsed td:not(:first-child),.editor-form-panel .doc-lines tr.is-collapsed .line-details{display:none!important}
.editor-form-panel .doc-lines tr.is-collapsed .line-card-header{margin-bottom:0;border-bottom:0}
/* Keep browser-generated date, title and URL out of exported PDFs. */
@media print{
  @page{size:A4;margin:0}
  #print-area .paper{padding:14mm;box-decoration-break:clone;-webkit-box-decoration-break:clone}
}
/* Product order: long press the handle, then drag a collapsed or expanded card. */
.line-drag-handle{flex:0 0 30px;width:30px;height:30px;border:1px solid #a7c5af;border-radius:6px;background:#fff;color:#225f42;font-size:18px;line-height:1;cursor:grab;touch-action:none;user-select:none}
.line-drag-handle:focus-visible{outline:2px solid #267553;outline-offset:2px}
.editor-form-panel .doc-lines tr.is-dragging{border-color:#267553;box-shadow:0 8px 24px #183c2533;opacity:.8;z-index:2}
body.reordering-lines,body.reordering-lines *{cursor:grabbing!important;user-select:none!important}
/* Compact product library cards while keeping all fields visible. */
.product-grid{gap:16px}
.product-card-photo{min-height:0}
.product-card-sku{top:10px;left:10px;padding:3px 7px}
.product-image-button{height:148px;padding:12px 16px}
.product-no-photo{padding:5px 0}
.product-no-photo svg{width:32px;height:32px;margin-bottom:5px}
.product-no-photo small{margin-top:2px}
.product-card-body{padding:14px 16px 10px}
.product-card-body h2{font-size:16px;line-height:1.35}
.product-card-model{margin:7px 0 2px;padding:4px 8px}
.product-card-en{margin:2px 0 10px;min-height:0;line-height:1.4}
.product-card-prices{padding:9px 11px;gap:8px;margin-bottom:10px}
.product-card-prices span{margin-bottom:2px}
.product-card-prices strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.product-card-info>div{margin:5px 0;gap:10px}
.product-card-packing{margin-top:9px;padding-top:9px}
.product-card-actions{padding:9px 16px;gap:8px}
.product-card-actions .btn-primary{padding:7px 11px}
@media(max-width:760px){.product-grid{gap:12px}.product-image-button{height:145px}.product-card-body{padding:13px 15px 9px}.product-card-actions{padding:8px 15px}}
.fx-rate-trigger{display:inline-block;margin-top:6px;padding:0;border:0;background:none;color:var(--green);font-size:11px;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.fx-rate-trigger:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.fx-quote-panel{max-width:540px}
.fx-quote-product{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.fx-quote-panel #fx-rate-detail{margin:0 0 16px;padding:11px 13px;background:#f4f7fa;border:1px solid var(--line);border-radius:7px}
.fx-quote-panel #fx-margin{max-width:160px;margin-bottom:15px}
.fx-quote-result{padding:14px;border:1px solid var(--line);border-radius:8px;background:#f7fbf8}
.fx-quote-result span,.fx-quote-result small{display:block}
.fx-quote-result strong{display:block;margin:5px 0;font-size:23px;color:var(--green)}
.fx-quote-result small{color:var(--muted);font-size:11px}
.fx-quote-panel>p:last-child{margin:12px 0 0}
.recover-price-list{display:grid;gap:8px;margin-top:14px;max-height:52vh;overflow:auto}
.recover-price-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;cursor:pointer}
.recover-price-row input{width:18px;height:18px;flex:none;accent-color:var(--green)}
.recover-price-row span{display:grid;gap:2px;min-width:0;flex:1}
.recover-price-row b{font-size:13px}
.recover-price-row small{color:var(--muted);font-size:10px}
.recover-price-row strong{font-size:15px;white-space:nowrap;color:var(--green)}
.line-fx-button{display:block;width:max-content;max-width:100%;margin-top:3px;padding:2px 0;border:0;background:none;color:var(--green);font-size:11px;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.line-fx-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.fx-line-inputs{margin:12px 0 14px}
.fx-line-inputs .form-control{width:100%}
/* A4 export: use the available page area before allowing a second page. */
@media print{
  #print-area .paper{padding:9mm;line-height:1.38}
  .paper h2{font-size:20px;margin:9px 0 14px}
  .paper-company{font-size:17px}
  .paper-meta{gap:18px;margin:9px 0 13px;font-size:11px}
  .paper table{font-size:10px;margin:10px 0}
  .paper th,.paper td{padding:5px 6px}
  .paper-total{margin:9px 0}
  .paper-terms{font-size:11px;margin:10px 0}
  .paper-sign,.export-paper .paper-sign{margin-top:17px}
  .export-letterhead{padding-bottom:8px}
  .export-title{padding:10px 0}
  .export-title h2{font-size:20px;margin:0}
  .export-parties section{padding:8px}
  .export-meta{gap:6px 16px;margin:10px 0}
  .export-block{margin:10px 0}
  .export-money{margin:9px 0 12px auto}
  .export-money>div{padding:3px}
  .export-contract-clauses section{margin:9px 0}
  .paper-requirements{margin:10px 0;padding:9px}
  .paper-requirements>div{margin:4px 0}
  .paper-product-image{width:18mm;height:18mm;margin:0 0 4px}
}
.editor-form-panel .line-cny-reference{font-size:11px;color:#5b715f;font-weight:600;margin:0 0 5px}
.editor-form-panel .line-price-input{position:relative}
.editor-form-panel .line-price-input input{padding-right:48px}
.editor-form-panel .line-currency-suffix{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;font-weight:700;color:#60766a;pointer-events:none}
@media(max-width:1200px){.composer-toolbar{position:sticky;top:0;z-index:30;background:var(--bg);padding:10px 0;border-bottom:1px solid var(--line)}}
