#xw-invoice-generator-v14 .v15-source-note{display:block;margin-top:3px;color:#b87410;font-size:8.5px;font-weight:560;line-height:1.25}
#xw-invoice-generator-v14 .v15-source-note.confirmed{color:#159665}
#xw-invoice-generator-v14 .v15-short-name{color:#172b49;font-size:10px;font-weight:680;line-height:1.35}
#xw-invoice-generator-v14 .v15-edit-value{display:block;width:100%;max-width:100%;border:0;background:transparent;color:#253851;font:inherit;font-weight:650;line-height:1.3;cursor:pointer;padding:0;text-align:center;white-space:normal;overflow-wrap:anywhere}
#xw-invoice-generator-v14 .v15-edit-value:hover{color:#176fe7;text-decoration:underline}
#xw-invoice-generator-v14 #scheme1ProductCard td.scheme1-en{display:table-cell}
#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table{min-width:1002px!important}
#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table th,#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table td{padding-left:6px;padding-right:6px}
#xw-invoice-generator-v14 .v15-product-help{display:flex;align-items:center;gap:8px;margin-left:8px;color:#8190a5;font-size:9px;font-weight:500}
#xw-invoice-generator-v14 .v15-product-help::before{content:'';width:6px;height:6px;border-radius:50%;background:#e5a23a}
#xw-invoice-generator-v14 .v15-product-backdrop{position:fixed;inset:0;z-index:9998;display:none;background:rgba(22,35,55,.5);backdrop-filter:blur(1px)}
#xw-invoice-generator-v14 .v15-product-backdrop.open{display:block}
#xw-invoice-generator-v14 .v15-product-modal{position:fixed;z-index:9999;left:50%;top:50%;width:min(1040px,calc(100vw - 48px));height:min(700px,calc(100vh - 48px));display:none;transform:translate(-50%,-50%);overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 22px 70px rgba(17,34,58,.24)}
#xw-invoice-generator-v14 .v15-product-modal.open{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#xw-invoice-generator-v14 .v15-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #e4eaf1}
#xw-invoice-generator-v14 .v15-modal-head h3{margin:0;color:#152743;font-size:18px}
#xw-invoice-generator-v14 .v15-modal-head p{margin:5px 0 0;color:#7b8ba1;font-size:11px}
#xw-invoice-generator-v14 .v15-modal-close{border:0;background:transparent;color:#5c6c82;font-size:14px;cursor:pointer;padding:8px}
#xw-invoice-generator-v14 .v15-modal-body{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0}
#xw-invoice-generator-v14 .v15-product-list{overflow:auto;border-right:1px solid #e4eaf1;background:#f7f9fc;padding:12px}
#xw-invoice-generator-v14 .v15-product-option{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;gap:10px;align-items:center;margin-bottom:8px;padding:9px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;cursor:pointer}
#xw-invoice-generator-v14 .v15-product-option:hover{background:#fff;border-color:#dce5f0}
#xw-invoice-generator-v14 .v15-product-option.active{background:#fff;border-color:#76aaf2;box-shadow:0 0 0 2px rgba(23,111,231,.08)}
#xw-invoice-generator-v14 .v15-option-thumb{width:40px;height:40px;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden;background:#fff}
#xw-invoice-generator-v14 .v15-option-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#xw-invoice-generator-v14 .v15-product-option strong{display:block;overflow:hidden;color:#172b49;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
#xw-invoice-generator-v14 .v15-product-option span{display:block;margin-top:3px;color:#8492a7;font-size:9px}
#xw-invoice-generator-v14 .v15-form-panel{overflow:auto;padding:18px 22px 24px}
#xw-invoice-generator-v14 .v15-product-summary{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #dfe7f0;border-radius:10px;background:#f8fafc}
#xw-invoice-generator-v14 .v15-summary-thumb{width:52px;height:52px;border:1px solid #e1e7ef;border-radius:7px;background:#fff;overflow:hidden}
#xw-invoice-generator-v14 .v15-summary-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#xw-invoice-generator-v14 .v15-product-summary h4{margin:0;color:#162a48;font-size:13px}
#xw-invoice-generator-v14 .v15-product-summary p{margin:4px 0 0;color:#73839a;font-size:10px}
#xw-invoice-generator-v14 .v15-source-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#fff3df;color:#ad6a09;font-size:9px;font-weight:720;white-space:nowrap}
#xw-invoice-generator-v14 .v15-source-badge.confirmed{background:#e8f8f0;color:#13885d}
#xw-invoice-generator-v14 .v15-original-title{margin-top:12px;padding:10px 12px;border-left:3px solid #cbd8e8;background:#f7f9fc;color:#5e6f86;font-size:10px;line-height:1.45}
#xw-invoice-generator-v14 .v15-original-title strong{color:#364a65}
#xw-invoice-generator-v14 .v15-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
#xw-invoice-generator-v14 .v15-field{min-width:0}
#xw-invoice-generator-v14 .v15-field.full{grid-column:1/-1}
#xw-invoice-generator-v14 .v15-field label{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#53657c;font-size:10px;font-weight:700}
#xw-invoice-generator-v14 .v15-field input,#xw-invoice-generator-v14 .v15-field select{width:100%;height:42px;box-sizing:border-box;border:1px solid #ccd8e6;border-radius:8px;background:#fff;color:#1b2f4c;font:inherit;font-size:11px;padding:0 12px;outline:0}
#xw-invoice-generator-v14 .v15-field input:focus,#xw-invoice-generator-v14 .v15-field select:focus{border-color:#176fe7;box-shadow:0 0 0 3px rgba(23,111,231,.1)}
#xw-invoice-generator-v14 .v15-field-tip{margin-top:5px;color:#8a99ad;font-size:9px;line-height:1.4}
#xw-invoice-generator-v14 .v15-property-chips{display:flex;flex-wrap:wrap;gap:8px}
#xw-invoice-generator-v14 .v15-property-chip{position:relative}
#xw-invoice-generator-v14 .v15-property-chip input{position:absolute;opacity:0;pointer-events:none}
#xw-invoice-generator-v14 .v15-property-chip span{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:34px;box-sizing:border-box;border:1px solid #cbd7e5;border-radius:7px;background:#fff;color:#4f6078;font-size:10px;cursor:pointer;padding:0 11px}
#xw-invoice-generator-v14 .v15-property-chip input:checked+span{border-color:#176fe7;background:#edf5ff;color:#176fe7;font-weight:720}
#xw-invoice-generator-v14 .v15-form-note{margin-top:16px;padding:10px 12px;border-radius:8px;background:#fff7e8;color:#9b660f;font-size:10px;line-height:1.5}
#xw-invoice-generator-v14 .v15-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;border-top:1px solid #e4eaf1;background:#fbfcfe}
#xw-invoice-generator-v14 .v15-modal-foot-note{color:#8190a5;font-size:10px}
#xw-invoice-generator-v14 .v15-modal-actions{display:flex;gap:10px}
#xw-invoice-generator-v14 .v15-button{height:40px;border:1px solid #cbd7e5;border-radius:8px;background:#fff;color:#263851;font-size:11px;font-weight:720;cursor:pointer;padding:0 16px}
#xw-invoice-generator-v14 .v15-button.primary{border-color:#176fe7;background:#176fe7;color:#fff}
#xw-invoice-generator-v14 .v15-button:hover{filter:brightness(.98)}
@media(max-width:850px){#xw-invoice-generator-v14 .v15-product-modal{width:calc(100vw - 24px);height:calc(100vh - 24px)}#xw-invoice-generator-v14 .v15-modal-body{grid-template-columns:1fr}#xw-invoice-generator-v14 .v15-product-list{display:none}#xw-invoice-generator-v14 .v15-form-grid{grid-template-columns:1fr}}

/* V17：低噪音状态、材质单选、材质与用途统一英文在前中文在后 */
#xw-invoice-generator-v14 .v17-required-mark{display:inline-block;margin-left:4px;color:#d97706;font-size:11px;font-weight:800;line-height:1;vertical-align:middle}
#xw-invoice-generator-v14 #scheme1ProductCard td.v17-pending{position:relative;background:#fffaf0}
#xw-invoice-generator-v14 #scheme1ProductCard td.v17-pending::after{content:'';position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:#e59a26}
#xw-invoice-generator-v14 #scheme1ProductCard td.v17-missing{position:relative;color:#a96509;background:#fffaf0}
#xw-invoice-generator-v14 #scheme1ProductCard td.v17-missing::after{content:'';position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:#e59a26}
#xw-invoice-generator-v14 .v17-missing-link{color:#a96509}
#xw-invoice-generator-v14 .xw-section-toolbar{min-height:54px;box-sizing:border-box;padding:8px 12px 8px 14px;gap:18px;background:rgba(251,252,254,.96)}
#xw-invoice-generator-v14 .xw-section-toolbar .section-title{min-width:0;flex-wrap:wrap;gap:7px}
#xw-invoice-generator-v14 .xw-section-toolbar .section-title strong{color:#172b49;font-size:13px}
#xw-invoice-generator-v14 .xw-section-toolbar .section-title .pill{padding:4px 8px;border-radius:999px}
#xw-invoice-generator-v14 .xw-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
#xw-invoice-generator-v14 .invoice-basics-edit,#xw-invoice-generator-v14 .scheme1-edit-products{height:34px;border-radius:9px;color:#fff!important;font-size:10.5px;line-height:1;white-space:nowrap;box-shadow:0 1px 2px rgba(23,111,231,.16)}
#xw-invoice-generator-v14 .invoice-basics-edit:hover,#xw-invoice-generator-v14 .scheme1-edit-products:hover{border-color:#0b62de;background:#0b62de;color:#fff!important}
#xw-invoice-generator-v14 .invoice-basics-edit:focus-visible,#xw-invoice-generator-v14 .scheme1-edit-products:focus-visible{outline:3px solid rgba(23,111,231,.2);outline-offset:2px;color:#fff!important}
#xw-invoice-generator-v14 #generateBtn.btn.primary,#xw-invoice-generator-v14 #downloadBtn.btn.primary{color:#fff!important;-webkit-text-fill-color:#fff!important}
#xw-invoice-generator-v14 #generateBtn.btn.primary:hover,#xw-invoice-generator-v14 #generateBtn.btn.primary:active,#xw-invoice-generator-v14 #generateBtn.btn.primary:disabled,#xw-invoice-generator-v14 #downloadBtn.btn.primary:hover,#xw-invoice-generator-v14 #downloadBtn.btn.primary:active,#xw-invoice-generator-v14 #downloadBtn.btn.primary:disabled{color:#fff!important;-webkit-text-fill-color:#fff!important}
#xw-invoice-generator-v14 .scheme1-product-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
#xw-invoice-generator-v14 .scheme1-grand-total{display:inline-flex;align-items:center;height:34px;padding:0 11px;border:1px solid #cfe0f5;border-radius:9px;background:#f2f7ff;color:#075fbe;font-size:11.5px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
#xw-invoice-generator-v14 .scheme1-filter-control{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #e3e8ef;border-radius:10px;background:#f1f3f6}
#xw-invoice-generator-v14 .scheme1-filter-control button{height:28px;border:0;border-radius:7px;background:transparent;color:#66758a;font-size:10.5px;font-weight:680;line-height:1;cursor:pointer;padding:0 11px;white-space:nowrap}
#xw-invoice-generator-v14 .scheme1-filter-control button:hover{color:#263851}
#xw-invoice-generator-v14 .scheme1-filter-control button.active{background:#fff;color:#172b49;box-shadow:0 1px 3px rgba(30,48,72,.14)}
#xw-invoice-generator-v14 .scheme1-filter-control button span{color:inherit;font-size:inherit;font-weight:760}
#xw-invoice-generator-v14 .scheme1-product-actions>.btn{height:34px;border-radius:9px;font-size:10.5px;padding:0 13px;white-space:nowrap}
#xw-invoice-generator-v14 .scheme1-product-actions .scheme1-edit-products{color:#fff!important}
#xw-invoice-generator-v14 .v15-product-summary{grid-template-columns:54px minmax(0,1fr)}
#xw-invoice-generator-v14 .v17-quick-picks{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
#xw-invoice-generator-v14 .v17-quick-pick{height:27px;border:1px solid #d1dce8;border-radius:999px;background:#fff;color:#506078;font-size:9.5px;cursor:pointer;padding:0 10px}
#xw-invoice-generator-v14 .v17-quick-pick:hover{border-color:#8cb6ef;color:#176fe7}
#xw-invoice-generator-v14 .v17-quick-pick.active{border-color:#176fe7;background:#edf5ff;color:#176fe7}

/* V18：左侧逐项确认工作流。状态标记仅反馈，不承担点击操作。 */
#xw-invoice-generator-v14 .v18-list-progress{position:sticky;top:-12px;z-index:2;margin:-12px -12px 10px;padding:11px 12px;border-bottom:1px solid #e4eaf1;background:#f7f9fc;color:#607188;font-size:10px;font-weight:700}
#xw-invoice-generator-v14 .v18-option-status{display:inline-flex!important;align-items:center!important;justify-content:center;width:18px;height:18px;margin:0!important;border-radius:50%;box-sizing:border-box;font-size:11px!important;font-weight:800;line-height:1}
#xw-invoice-generator-v14 .v18-option-status.pending{width:8px;height:8px;justify-self:center;background:#e59a26}
#xw-invoice-generator-v14 .v18-option-status.draft{width:10px;height:10px;justify-self:center;border:2px solid #e59a26;background:#fff}
#xw-invoice-generator-v14 .v18-option-status.confirmed{justify-self:center;background:#e5f7ef;color:#159665!important}
#xw-invoice-generator-v14 .v15-modal-foot-note strong{color:#435774;font-weight:750}

/* V19：经确认的宽版双栏编辑器。保留常用选项，增加单价与模板附加字段。 */
#xw-invoice-generator-v14 .v15-product-modal{width:min(1180px,calc(100vw - 48px));height:min(700px,calc(100vh - 48px));border-radius:16px}
#xw-invoice-generator-v14 .v15-modal-head{padding:18px 26px}
#xw-invoice-generator-v14 .v15-modal-head h3{font-size:20px;line-height:1.25}
#xw-invoice-generator-v14 .v15-modal-head p{font-size:11px}
#xw-invoice-generator-v14 .v15-modal-body{grid-template-columns:310px minmax(0,1fr)}
#xw-invoice-generator-v14 .v15-product-list{padding:14px;background:#f6f8fb}
#xw-invoice-generator-v14 .v18-list-progress{top:-14px;margin:-14px -14px 10px;padding:12px 14px;background:#f6f8fb}
#xw-invoice-generator-v14 .v15-product-option{grid-template-columns:46px minmax(0,1fr) 20px;gap:11px;margin-bottom:6px;padding:10px 11px;border-radius:10px}
#xw-invoice-generator-v14 .v15-option-thumb{width:44px;height:44px}
#xw-invoice-generator-v14 .v15-product-option strong{font-size:11.5px}
#xw-invoice-generator-v14 .v15-product-option span{font-size:9.5px}
#xw-invoice-generator-v14 .v15-form-panel{padding:20px 26px 24px}
#xw-invoice-generator-v14 .v15-product-summary{grid-template-columns:60px minmax(0,1fr);gap:14px;padding:13px 16px;border-radius:11px}
#xw-invoice-generator-v14 .v15-summary-thumb{width:58px;height:58px}
#xw-invoice-generator-v14 .v15-product-summary h4{font-size:14px}
#xw-invoice-generator-v14 .v15-product-summary p{font-size:10.5px}
#xw-invoice-generator-v14 .v15-original-title{margin-top:12px;padding:10px 13px;font-size:10.5px}
#xw-invoice-generator-v14 .v15-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px;row-gap:14px;margin-top:15px}
#xw-invoice-generator-v14 .v15-field label{min-height:18px;margin-bottom:6px;font-size:10.5px}
#xw-invoice-generator-v14 .v15-field label>span{color:#8190a5;font-weight:550}
#xw-invoice-generator-v14 .v15-field input,#xw-invoice-generator-v14 .v15-field select{height:40px;border-radius:8px;font-size:11px}
#xw-invoice-generator-v14 .v17-quick-picks{gap:6px;margin-top:7px;min-height:27px}
#xw-invoice-generator-v14 .v17-quick-pick{height:27px;padding:0 10px;font-size:9.5px}
#xw-invoice-generator-v14 .v19-inline-action{border:0;background:transparent;color:#176fe7;font:inherit;font-weight:700;cursor:pointer;padding:0}
#xw-invoice-generator-v14 .v19-inline-action:hover{text-decoration:underline}
#xw-invoice-generator-v14 .v19-property-picks{max-width:100%}
#xw-invoice-generator-v14 .v19-price-row{display:grid;grid-template-columns:78px minmax(90px,130px) minmax(170px,1fr) minmax(150px,190px);gap:8px;align-items:center}
#xw-invoice-generator-v14 .v19-price-row>select,#xw-invoice-generator-v14 .v19-price-row>input{min-width:0}
#xw-invoice-generator-v14 .v36-item-total{height:40px;border:1px solid #d7e2f0;border-radius:8px;background:#f6f9fd;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;box-sizing:border-box;white-space:nowrap}
#xw-invoice-generator-v14 .v36-item-total span{color:#66758b;font-size:11px}
#xw-invoice-generator-v14 .v36-item-total strong{color:#13233a;font-size:13px;font-weight:760;font-variant-numeric:tabular-nums}
#xw-invoice-generator-v14 .v19-apply-all{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px;min-height:40px!important;margin:0!important;border:1px solid #d7e1ec;border-radius:8px;background:#f8fafc;color:#53657c!important;font-size:9.5px!important;font-weight:650!important;padding:0 11px;cursor:pointer}
#xw-invoice-generator-v14 .v19-apply-all input{flex:0 0 auto;width:14px!important;height:14px!important;margin:0;padding:0;box-shadow:none!important}
#xw-invoice-generator-v14 .v19-template-fields{grid-column:1/-1;margin-top:1px;border:1px solid #e0e7ef;border-radius:10px;background:#f8fafc;overflow:hidden}
#xw-invoice-generator-v14 .v19-template-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid #e3eaf2;color:#30445f;font-size:10.5px}
#xw-invoice-generator-v14 .v19-template-head span{color:#8795a8;font-size:9.5px;font-weight:500}
#xw-invoice-generator-v14 .v19-template-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px}
#xw-invoice-generator-v14 .v19-template-row label{color:#53657c;font-size:10px;font-weight:700}
#xw-invoice-generator-v14 .v19-template-row input{width:100%;height:38px;box-sizing:border-box;border:1px solid #ccd8e6;border-radius:8px;background:#fff;color:#1b2f4c;font:inherit;font-size:11px;padding:0 12px;outline:0}
#xw-invoice-generator-v14 .v19-template-row input:focus{border-color:#176fe7;box-shadow:0 0 0 3px rgba(23,111,231,.1)}
#xw-invoice-generator-v14 .v19-template-row span{display:inline-flex;align-items:center;height:24px;border-radius:999px;background:#eaf2ff;color:#176fe7;font-size:9px;font-weight:700;padding:0 9px;white-space:nowrap}
#xw-invoice-generator-v14 .v32-source-input{position:relative;min-width:0}
#xw-invoice-generator-v14 .v32-source-input>input{padding-right:50px}
#xw-invoice-generator-v14 .v35-weight-input>input{font-variant-numeric:tabular-nums;padding-right:88px}
#xw-invoice-generator-v14 .v35-weight-input::after{content:'kg';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#71839a;font-size:10px;font-weight:700;pointer-events:none}
#xw-invoice-generator-v14 .v35-weight-input .v32-lingxing-tag{right:34px}
#xw-invoice-generator-v14 .v32-lingxing-tag{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;height:21px;box-sizing:border-box;border-radius:5px;background:#e8f2ff;color:#176fe7;font-size:9px;font-weight:700;line-height:1;padding:0 7px;pointer-events:none}
#xw-invoice-generator-v14 .v32-lingxing-tag[hidden]{display:none}
#xw-invoice-generator-v14 .v19-template-row .v32-lingxing-tag{height:21px;background:#e8f2ff;color:#176fe7;padding:0 7px}
#xw-invoice-generator-v14 .v15-modal-foot{padding:14px 26px}
#xw-invoice-generator-v14 .v15-button{height:40px}
#xw-invoice-generator-v14 .v19-product-context{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.45fr);align-items:stretch;border:1px solid #dfe7f0;border-radius:11px;background:#f8fafc;overflow:hidden}
#xw-invoice-generator-v14 .v19-product-context .v15-product-summary{padding:9px 13px;border:0;border-radius:0;background:transparent}
#xw-invoice-generator-v14 .v19-product-context .v15-summary-thumb{width:48px;height:48px}
#xw-invoice-generator-v14 .v19-product-context .v15-product-summary{grid-template-columns:50px minmax(0,1fr);gap:11px}
#xw-invoice-generator-v14 .v19-product-context .v15-original-title{display:flex;align-items:flex-start;min-width:0;margin:0;padding:10px 14px;border:0;border-left:1px solid #e1e8f0;background:transparent;white-space:normal;overflow:hidden}
#xw-invoice-generator-v14 .v19-product-context .v15-original-title strong{flex:0 0 auto;margin-right:6px}
#xw-invoice-generator-v14 .v19-product-context .v15-original-title span{display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.45}
#xw-invoice-generator-v14 .v19-property-field{align-self:end}
#xw-invoice-generator-v14 .v19-property-field .v17-quick-picks{flex-wrap:nowrap;gap:7px;min-height:40px;margin-top:0;align-items:center;overflow-x:auto;scrollbar-width:none}
#xw-invoice-generator-v14 .v19-property-field .v17-quick-picks::-webkit-scrollbar{display:none}
#xw-invoice-generator-v14 .v19-property-field .v17-quick-pick{min-width:54px;height:32px;padding:0 13px;white-space:nowrap}
#xw-invoice-generator-v14 .v19-confirm-all{border-color:#176fe7;color:#176fe7;white-space:nowrap}
#xw-invoice-generator-v14 .v19-confirm-all:hover{background:#edf5ff}
#xw-invoice-generator-v14 .v19-confirm-all:disabled{border-color:#cfd9e6;background:#f2f5f8;color:#93a1b3;cursor:default}
#xw-invoice-generator-v14 .v15-modal-actions .v15-button{white-space:nowrap}
#xw-invoice-generator-v14 .v33-suggest-top{border-color:#bed5f4;background:#f3f8ff;color:#176fe7;font-weight:720}
#xw-invoice-generator-v14 .v33-suggest-top:hover{border-color:#8bb6ef;background:#eaf3ff}
#xw-invoice-generator-v14 .v33-suggest-button{border-color:#8eb8f2;background:#edf5ff;color:#176fe7}
#xw-invoice-generator-v14 .v33-suggest-button:hover{background:#e5f1ff}
#xw-invoice-generator-v14 .v33-suggest-button:disabled,#xw-invoice-generator-v14 .v33-suggest-top:disabled{cursor:wait;opacity:.68}
#xw-invoice-generator-v14 .v33-ai-suggestion-badge{display:inline-flex;align-items:center;justify-content:center;margin-top:5px;border-radius:999px;background:#f0ebff;color:#6d4bd2;font-size:8.5px;font-weight:720;line-height:1;padding:4px 7px;white-space:nowrap}
#xw-invoice-generator-v14 #v15English{padding-right:128px}
#xw-invoice-generator-v14 .v33-ai-input-tag{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;height:21px;box-sizing:border-box;border-radius:5px;background:#f0ebff;color:#6d4bd2;font-size:8.5px;font-weight:720;line-height:1;padding:0 7px;pointer-events:none;white-space:nowrap}
#xw-invoice-generator-v14 .v33-ai-input-tag[hidden]{display:none}
#xw-invoice-generator-v14 .v34-declaration-label{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
#xw-invoice-generator-v14 .v34-declaration-label .v34-label-title{color:#53657c;font-weight:700;white-space:nowrap}
#xw-invoice-generator-v14 .v34-chinese-meaning{min-width:0;overflow:hidden;color:#7b8ba0!important;font-size:9.5px;font-weight:560!important;text-align:right;text-overflow:ellipsis;white-space:nowrap}
#xw-invoice-generator-v14 .v34-chinese-meaning[hidden]{display:none}
#xw-invoice-generator-v14 .v34-generate-name{justify-self:end;white-space:nowrap}
#xw-invoice-generator-v14 .v34-generate-name:disabled{cursor:wait;opacity:.62;text-decoration:none}
#xw-invoice-generator-v14 #v17MaterialOptions{flex-wrap:nowrap;gap:4px;overflow:visible}
#xw-invoice-generator-v14 #v17MaterialOptions .v17-quick-pick{min-width:0;padding:0 7px;font-size:9px}
@media(max-width:1050px){#xw-invoice-generator-v14 .v15-product-modal{width:calc(100vw - 20px);height:calc(100vh - 20px)}#xw-invoice-generator-v14 .v15-modal-body{grid-template-columns:270px minmax(0,1fr)}#xw-invoice-generator-v14 .v19-price-row{grid-template-columns:74px 100px;align-items:start}#xw-invoice-generator-v14 .v19-apply-all,#xw-invoice-generator-v14 .v36-item-total{grid-column:1/-1;min-height:34px!important}}
@media(max-width:1050px){#xw-invoice-generator-v14 .v19-product-context{grid-template-columns:1fr}#xw-invoice-generator-v14 .v19-product-context .v15-original-title{border-left:0;border-top:1px solid #e1e8f0}}
@media(max-width:760px){#xw-invoice-generator-v14 .v15-modal-body{grid-template-columns:1fr}#xw-invoice-generator-v14 .v15-product-list{display:none}#xw-invoice-generator-v14 .v15-form-grid{grid-template-columns:1fr}#xw-invoice-generator-v14 .v19-template-fields{grid-column:auto}#xw-invoice-generator-v14 .v19-template-row{grid-template-columns:1fr}#xw-invoice-generator-v14 .v15-modal-head,#xw-invoice-generator-v14 .v15-form-panel,#xw-invoice-generator-v14 .v15-modal-foot{padding-left:16px;padding-right:16px}#xw-invoice-generator-v14 .v15-modal-foot{align-items:flex-start;flex-direction:column}#xw-invoice-generator-v14 .v15-modal-actions{width:100%;overflow-x:auto}}
@media(max-width:1120px){#xw-invoice-generator-v14 .scheme1-product-toolbar{align-items:flex-start;flex-direction:column;gap:8px;padding-top:10px;padding-bottom:10px}#xw-invoice-generator-v14 .scheme1-product-actions{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:1px}}
@media(max-width:620px){#xw-invoice-generator-v14 .scheme1-product-actions{gap:6px}#xw-invoice-generator-v14 .scheme1-product-actions>.btn{padding:0 10px}#xw-invoice-generator-v14 .scheme1-filter-control button{padding:0 9px}}
@media(max-width:620px){#xw-invoice-generator-v14 .invoice-basics-toolbar{align-items:flex-start;flex-direction:column;gap:8px;padding-top:10px;padding-bottom:10px}#xw-invoice-generator-v14 .invoice-basics-toolbar .xw-section-actions{width:100%;justify-content:flex-start}}

/* V37：货物属性由货代模板规则决定；商品编辑只保留本次需要维护的数据。 */
#xw-invoice-generator-v14 #scheme1ProductCard table.v37-no-product-property col:nth-child(7),
#xw-invoice-generator-v14 #scheme1ProductCard table.v37-no-product-property th:nth-child(7),
#xw-invoice-generator-v14 #scheme1ProductCard table.v37-no-product-property td:nth-child(7){display:none}
#xw-invoice-generator-v14 #scheme1ProductCard table.v37-no-product-property{min-width:1105px!important}
#xw-invoice-generator-v14 .v37-commerce-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px;align-items:end}
#xw-invoice-generator-v14 .v37-price-field{grid-column:1/-1}
#xw-invoice-generator-v14 .v37-price-control{display:grid;grid-template-columns:82px 120px minmax(190px,220px) minmax(20px,1fr) minmax(170px,190px);gap:10px;align-items:center}
#xw-invoice-generator-v14 .v37-price-control>select,#xw-invoice-generator-v14 .v37-price-control>input{min-width:0}
#xw-invoice-generator-v14 .v37-commerce-row .v36-item-total{grid-column:5;height:40px;min-width:0;padding:0 10px;gap:7px}
#xw-invoice-generator-v14 .v37-commerce-row .v36-item-total span{flex:0 0 auto}
#xw-invoice-generator-v14 .v37-commerce-row .v36-item-total strong{flex:0 0 auto;white-space:nowrap}
#xw-invoice-generator-v14 .v37-commerce-row .v19-apply-all{min-width:0}
#xw-invoice-generator-v14 .v37-property-field input[readonly]{background:#f5f7fa;color:#293b53;font-weight:720;cursor:default}
#xw-invoice-generator-v14 .v37-template-fields-hidden{display:none!important}
@media(max-width:1050px){#xw-invoice-generator-v14 .v37-commerce-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px}#xw-invoice-generator-v14 .v37-price-field{grid-column:1/-1}#xw-invoice-generator-v14 .v37-price-control{grid-template-columns:70px 84px minmax(140px,1fr) minmax(125px,145px);gap:8px}#xw-invoice-generator-v14 .v37-commerce-row .v36-item-total{grid-column:auto}}
@media(max-width:760px){#xw-invoice-generator-v14 .v37-commerce-row{grid-template-columns:1fr}#xw-invoice-generator-v14 .v37-price-field{grid-column:auto}#xw-invoice-generator-v14 .v37-price-control{grid-template-columns:72px minmax(88px,110px) minmax(145px,1fr)}#xw-invoice-generator-v14 .v37-price-control>.v36-item-total{grid-column:1/-1}}
.v15-modal .v15-required-error{border-color:#ff3b30!important;box-shadow:0 0 0 3px rgba(255,59,48,.13)!important}
.v15-modal .v19-property-picks.v15-required-error{border-radius:10px;padding:3px}
.v15-modal .v15-field-error>label{color:#d70015!important}
.v15-modal .v15-field-error>label::after{content:attr(data-error-text);margin-left:7px;color:#d70015;font-size:9px;font-weight:750}

/* Readable invoice tables: keep density, never trade legibility for fitting more columns. */
#xw-invoice-generator-v14 .scheme1-main-head strong{font-size:15px;line-height:1.4}
#xw-invoice-generator-v14 .scheme1-main-head span,#xw-invoice-generator-v14 .scheme1-status{font-size:11.5px;line-height:1.45}
#xw-invoice-generator-v14 .scheme1-section-head strong{font-size:15px;line-height:1.4}
#xw-invoice-generator-v14 .scheme1-section-head span{font-size:11.5px;line-height:1.45}
#xw-invoice-generator-v14 .scheme1-table{font-size:11.5px;line-height:1.45}
#xw-invoice-generator-v14 .scheme1-table th{height:38px;font-size:11.5px;font-weight:720}
#xw-invoice-generator-v14 .scheme1-table th,#xw-invoice-generator-v14 .scheme1-table td{padding:9px 10px}
#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table{min-width:1180px!important}
#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table th,#xw-invoice-generator-v14 #scheme1ProductCard .scheme1-table td{padding:9px 8px}
#xw-invoice-generator-v14 .scheme1-product-cell{gap:9px}
#xw-invoice-generator-v14 .scheme1-product-cell strong{font-size:11.5px;line-height:1.35}
#xw-invoice-generator-v14 .scheme1-product-cell span{font-size:10.5px;line-height:1.35}
#xw-invoice-generator-v14 .scheme1-cn,#xw-invoice-generator-v14 .scheme1-en,#xw-invoice-generator-v14 .v15-edit-value{font-size:11.5px;line-height:1.45}
#xw-invoice-generator-v14 .scheme1-cn-stack{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:2px}
#xw-invoice-generator-v14 .scheme1-cn-stack strong{display:block;max-width:100%;overflow:hidden;color:#10233e;font-size:11.5px;font-weight:720;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
#xw-invoice-generator-v14 .scheme1-cn-stack span{display:block;max-width:100%;overflow:hidden;color:#74839a;font-size:10px;font-weight:500;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
#xw-invoice-generator-v14 .scheme1-box-table{min-width:1460px}
#xw-invoice-generator-v14 .scheme1-box-table td{padding-top:8px;padding-bottom:8px;font-size:11.5px}
#xw-invoice-generator-v14 .scheme1-box-table .scheme1-box-meta{font-size:11.5px}
#xw-invoice-generator-v14 .scheme1-box-product{grid-template-columns:36px 125px minmax(175px,1fr);gap:9px;min-height:46px}
#xw-invoice-generator-v14 .scheme1-mini-thumb{width:35px;height:35px}
#xw-invoice-generator-v14 .scheme1-box-product strong{font-size:12px;line-height:1.35}
#xw-invoice-generator-v14 .scheme1-box-product span{font-size:10.5px;line-height:1.4;color:#66778f}
#xw-invoice-generator-v14 .scheme1-box-product>div:nth-child(3)>span{font-size:11px;color:#5f7087}
#xw-invoice-generator-v14 .scheme1-qty-item,#xw-invoice-generator-v14 .scheme1-links a{min-height:46px;font-size:11.5px}
#xw-invoice-generator-v14 .scheme1-folder{width:27px;height:24px;font-size:11px}
#xw-invoice-generator-v14 .scheme1-summary,#xw-invoice-generator-v14 .scheme1-source-note{font-size:11.5px;line-height:1.5}

/* V59: the summary name is the editable Chinese customs name used by the product table and Excel. */
#xw-invoice-generator-v14 .v59-summary-name-field{min-width:0}
#xw-invoice-generator-v14 .v59-summary-name-input{height:34px!important;border-color:#cbd8e8!important;background:#fff!important;color:#162a48!important;font-size:13px!important;font-weight:720!important;padding-left:10px!important;padding-right:48px!important;text-overflow:ellipsis}
#xw-invoice-generator-v14 .v59-summary-name-input:hover{border-color:#9fb9dc!important}
#xw-invoice-generator-v14 .v59-summary-name-input:focus{border-color:#176fe7!important;box-shadow:0 0 0 3px rgba(23,111,231,.1)!important}
#xw-invoice-generator-v14 .v59-summary-name-field .v32-lingxing-tag{right:7px;height:20px;padding:0 6px}
#xw-invoice-generator-v14 .v59-summary-name-field #v15SummaryMeta{margin-top:4px}
