.trade-invoice{box-sizing:border-box;width:210mm;max-width:100%;min-height:297mm;padding:14mm 13mm!important;margin:20px auto;background:#fff;color:#173749;font:11px/1.45 Arial,"Microsoft YaHei",sans-serif;box-shadow:0 3px 20px #17374920;display:flex;flex-direction:column}.trade-invoice p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.invoice-brand{display:flex;align-items:center;gap:18px;border-bottom:1px solid #315967;padding-bottom:10px}.invoice-brand>img{max-width:36mm;max-height:20mm;object-fit:contain}.invoice-brand h2{font-size:18px;margin:0}.invoice-brand p{font-size:9px}.invoice-heading{display:flex;justify-content:space-between;gap:16px;padding:16px 0 12px}.trade-invoice .invoice-heading h1{font-size:23px;margin:0;text-align:left;border:0;padding:0;letter-spacing:.5px}.invoice-heading>div:last-child{text-align:right}.invoice-heading strong{display:block}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;border:1px solid #cedbdd;border-radius:5px;padding:12px;margin-bottom:13px}.trade-invoice h3{font-size:10px;margin:0 0 6px;text-transform:uppercase}.trade-invoice dl{display:grid;grid-template-columns:auto auto;margin:0;gap:3px 16px}.trade-invoice dd{margin:0;overflow-wrap:anywhere}.trade-invoice dt{font-size:9px}.trade-invoice table{width:100%;border-collapse:collapse;margin:0;font-size:10px;table-layout:fixed}.trade-invoice th{background:#e9f1ed;color:#173749;font-size:8px;font-weight:600;border-top:1px solid #a9c3bb;border-bottom:1px solid #a9c3bb;padding:7px 4px}.trade-invoice td{vertical-align:top;border-bottom:1px solid #d6e1e1;padding:7px 4px;text-align:right;overflow-wrap:anywhere}.trade-invoice th:first-child{width:4%}.trade-invoice th:nth-child(2){width:43%;text-align:left}.trade-invoice td.invoice-description{white-space:pre-wrap;text-align:left}.invoice-summary{display:grid;grid-template-columns:1fr 1.1fr;gap:24px;padding:12px 0}.invoice-summary strong{display:block;font-size:18px;margin-top:4px}.invoice-summary dd{text-align:right}.invoice-summary dt:nth-last-child(2),.invoice-summary dd:last-child{background:#e9f1ed;border-top:1px solid #b9cfca;padding:6px;font-weight:bold}.invoice-packing-total{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:12px;background:#f2f7f4;border:1px solid #cedbdd;margin-top:10px}.invoice-packing-total strong{display:block}.invoice-section{border-top:1px solid #cedbdd;padding:10px 0}.invoice-signatures{display:grid;grid-template-columns:1fr 1fr;gap:25mm;margin-top:18px;min-height:42mm;break-inside:avoid}.invoice-signatures>div{border-top:1px solid #a3b6bf;padding-top:6px}.invoice-signatures img{width:33mm;height:33mm;object-fit:contain}.trade-invoice footer{margin-top:auto;border-top:1px solid #d6e1e1;padding-top:6px;font-size:8px;color:#68838b}.print-dialog:has(.trade-invoice){background:#e9efec;width:min(1050px,96vw);padding:0 20px 20px}.print-dialog:has(.trade-invoice)>.dialog-actions{position:sticky;top:0;background:white;padding:14px;z-index:2;flex-wrap:wrap}.print-dialog>.dialog-actions select{width:auto;margin:0}.invoice-line-editor{grid-template-columns:repeat(4,minmax(100px,1fr))}.invoice-line-editor label{font-size:11px}.invoice-line-editor label input{width:100%;box-sizing:border-box}@media print{@page{size:A4;margin:10mm}.trade-invoice{width:auto;max-width:none;min-height:277mm;padding:0!important;margin:0;box-shadow:none}.print-dialog:has(.trade-invoice){padding:0!important;background:white;width:auto!important}.trade-invoice thead{display:table-header-group}.trade-invoice tr{break-inside:avoid}.invoice-parties,.invoice-heading,.invoice-packing-total{break-inside:avoid}}@media(max-width:650px){.trade-invoice{padding:18px!important;font-size:9px}.invoice-brand h2{font-size:14px}.trade-invoice .invoice-heading h1{font-size:17px}.invoice-parties{gap:12px}.invoice-signatures{gap:12px}.invoice-line-editor{grid-template-columns:1fr 1fr}}
.trade-invoice .invoice-brand{height:auto;padding:0 0 10px;justify-content:flex-start;flex-shrink:0}.trade-invoice footer{padding:6px 0 0;text-align:left}.trade-invoice .invoice-summary dl{column-gap:0;grid-template-columns:1fr 80px}.trade-invoice .invoice-summary dt,.trade-invoice .invoice-summary dd{padding:2px 6px}.trade-invoice .invoice-summary dt:nth-last-child(2),.trade-invoice .invoice-summary dd:last-child{padding:6px}.trade-invoice .invoice-heading strong{font-size:12px}.print-dialog:has(.trade-invoice)>.dialog-actions{margin-top:0;justify-content:flex-end}.print-dialog:has(.trade-invoice)>.dialog-actions button,.print-dialog:has(.trade-invoice)>.dialog-actions select{font-size:12px;padding:9px 12px}@media print{.trade-invoice{display:block;min-height:0}.trade-invoice footer{margin-top:16px}.trade-invoice .invoice-signatures{min-height:42mm}}

@media print{.invoice-summary,.invoice-section{break-inside:avoid}}
.trade-invoice .invoice-brand{display:flex;flex-direction:row-reverse;justify-content:space-between;border-bottom:2px solid #252b31}.trade-invoice .invoice-brand>div{flex:1}.trade-invoice .invoice-brand img{width:150px;max-width:28%;height:90px;object-fit:contain}.trade-invoice table th{background:#252b31;color:white}.trade-invoice .invoice-photo{width:90px;min-width:90px}.trade-invoice .invoice-photo img{display:block;width:80px;height:80px;object-fit:contain;margin:auto}.trade-invoice tbody tr:nth-child(even){background:#f7f8fa}.trade-invoice .invoice-description{white-space:pre-wrap}.trade-invoice .invoice-signatures>div:last-child{margin-left:auto;text-align:right}
.invoice-stamp-toggle{display:flex;justify-content:flex-end;align-items:center;gap:10px}.invoice-stamp-toggle input{width:18px;margin:0}
.trade-invoice th:nth-child(1){width:6%}.trade-invoice th:nth-child(2){width:15%;text-align:center}.trade-invoice th:nth-child(3){width:25%;text-align:left}.trade-invoice th:nth-child(4){width:16%;text-align:left}.trade-invoice .invoice-photo{min-width:0;width:auto}.trade-invoice .invoice-photo img{max-width:100%;width:84px;height:84px}
.invoice-workbench[open]{display:grid;grid-template-columns:minmax(350px,36%) minmax(0,1fr);width:calc(100vw - 24px);max-width:none;height:calc(100vh - 24px);max-height:none;padding:0;overflow:hidden;border:0;background:#17232d;color:#e7edf4}.invoice-editor{padding:26px;overflow:auto;background:linear-gradient(130deg,#253442,#17232e);min-width:0}.invoice-editor h2{font-size:23px;color:#fff}.invoice-editor h3{color:#e4ab57;border-bottom:1px solid #59616a;padding-bottom:10px;margin-top:28px}.invoice-editor label{display:block;color:#bbc8d7;font-size:13px;margin:10px 0}.invoice-editor input,.invoice-editor textarea,.invoice-editor select{box-sizing:border-box;width:100%;background:#17232e;color:#f6f8fb;border:1px solid #536373;border-radius:6px;margin:7px 0 0;padding:10px;min-width:0}.invoice-editor textarea{min-height:64px;resize:vertical}.invoice-editor button{background:#334454;color:#f5f7fa;border:1px solid #526273;margin:4px;padding:10px 14px}.invoice-editor>button:first-of-type{background:#bd822f;border-color:#bd822f}.invoice-editor .muted{color:#b2c0ce;line-height:1.7}.invoice-settings-grid,.invoice-edit-line{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.invoice-edit-line{border:1px solid #516071;padding:12px;border-radius:8px;margin:14px 0}.invoice-edit-line>select,.invoice-edit-line>input[type=file]{grid-column:1/-1}.invoice-company-settings{margin-top:22px;padding:14px;border:1px solid #536373;border-radius:8px}.invoice-company-settings summary{cursor:pointer;color:#edb46c}.invoice-workbench-message{color:#ffdba1;white-space:pre-wrap}.invoice-preview-pane{overflow:auto;min-width:0;position:relative;background:repeating-linear-gradient(45deg,#141e27,#141e27 14px,#17222c 14px,#17222c 28px);padding:0 24px 24px}.invoice-workbench-toolbar{position:sticky;top:0;z-index:3;display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:#182530ef;padding:12px;margin:0 -24px 18px;color:#e2e8f0}.invoice-workbench-toolbar label{font-size:12px;margin:0}.invoice-workbench-toolbar select{display:block;width:auto;margin:4px 0 0;background:#293b49;color:white;border:1px solid #526273}.invoice-workbench-toolbar button{width:auto;background:#b98032;color:white;border:0}.invoice-preview-pane .trade-invoice{margin:0 auto 20px;color:#202b32;font-size:11px}.invoice-stamp-control{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;background:#243643ee;color:#fff;padding:12px;border-radius:6px;width:fit-content;margin-left:auto}.invoice-stamp-control input{width:18px;height:18px;margin:0}.plugin-download-page a.primary{display:inline-block;padding:16px 26px;background:#2267d2;color:white;border-radius:8px;text-decoration:none;font-weight:600;margin:12px 0 20px}.plugin-download-page{max-width:850px}.plugin-download-page p{line-height:1.8}@media(max-width:850px){.invoice-workbench[open]{grid-template-columns:1fr;overflow:auto}.invoice-editor,.invoice-preview-pane{overflow:visible}.invoice-preview-pane{padding:0 12px 12px}.invoice-workbench-toolbar{position:relative;margin:0 -12px 16px}}@media print{body>.invoice-workbench[open]{display:block!important;position:static;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0;background:white;color:black}.invoice-workbench .invoice-preview-pane{display:block;overflow:visible;padding:0;background:white}.invoice-workbench .trade-invoice{margin:0;width:auto;max-width:none;box-shadow:none;padding:0!important}.invoice-workbench::backdrop{display:none}}
.trade-invoice .invoice-heading{justify-content:flex-end;padding:16px 0 12px}.trade-invoice .invoice-heading>div{text-align:right}.trade-invoice .invoice-heading h1{font-family:Georgia,'Times New Roman',serif;text-align:right;font-size:24px;letter-spacing:1px}.trade-invoice .invoice-parties{border:0;border-radius:0;padding:0;gap:14px;align-items:stretch}.trade-invoice .invoice-parties>div{border:1px solid #d6dce1;padding:10px}.trade-invoice .invoice-parties h3{background:#f0f2f5;padding:7px;margin:-10px -10px 10px;letter-spacing:.6px}.trade-invoice tbody td{border:1px solid #e2e5e9}.trade-invoice .invoice-summary dt:nth-last-child(2),.trade-invoice .invoice-summary dd:last-child{background:#f4e9d9;border-top:1px solid #dba652}.trade-invoice .invoice-brand img{max-height:65px;height:65px}.invoice-workbench .invoice-editor>h2{margin-top:0}
.sheet-invoice{font-family:Arial,'Microsoft YaHei',sans-serif;color:#111}.sheet-invoice .invoice-brand{flex-direction:row;border:0;padding-bottom:10px}.sheet-invoice .invoice-brand p{font-size:9px}.sheet-invoice .invoice-heading{display:block;text-align:center;border:1px solid #222;margin:0;padding:10px}.sheet-invoice .invoice-heading h1{font:700 23px Georgia,serif;text-align:center;letter-spacing:0}.sheet-invoice table{margin:0!important}.sheet-invoice table td,.sheet-invoice table th{border:1px solid #222;text-align:center;vertical-align:middle;white-space:pre-wrap;padding:6px}.sheet-invoice .invoice-products th,.sheet-invoice .invoice-shipping th{background:#315896;color:white}.sheet-invoice .invoice-products th:nth-child(1){width:9%}.sheet-invoice .invoice-products th:nth-child(2){width:18%}.sheet-invoice .invoice-products th:nth-child(3){width:17%}.sheet-invoice .invoice-products th:nth-child(4){width:25%}.sheet-invoice .invoice-products th:nth-child(n+5){width:auto}.sheet-invoice .invoice-photo img{width:92px;height:92px;max-width:100%}.sheet-invoice .invoice-meta th{width:14%;background:white;color:#111;font-size:10px}.sheet-invoice .invoice-meta td:nth-child(2){width:48%}.sheet-invoice .invoice-meta td:nth-child(4){width:24%}.sheet-invoice .invoice-meta th:nth-child(3){width:14%}.sheet-invoice .invoice-summary,.sheet-invoice .invoice-packing-total{background:#d7e6f0;border:1px solid #222;margin:0;padding:8px}.sheet-invoice .invoice-summary dl{display:grid;grid-template-columns:1fr 80px}.sheet-invoice .invoice-summary dt,.sheet-invoice .invoice-summary dd{background:transparent!important;border:0!important}.sheet-invoice .invoice-summary strong{display:inline;margin-left:12px;font-size:12px}.sheet-invoice .invoice-shipping caption{background:#fff2cd;border:1px solid #222;font-weight:bold;padding:7px}.sheet-invoice .invoice-shipping th{width:auto}.sheet-invoice .invoice-final-totals{display:grid;grid-template-columns:1fr 120px;margin:0;border:1px solid #222;background:#d7e6f0;gap:0}.sheet-invoice .invoice-final-totals dt,.sheet-invoice .invoice-final-totals dd{padding:6px;text-align:right}.sheet-invoice .invoice-final-totals dt:last-of-type,.sheet-invoice .invoice-final-totals dd:last-child{font-weight:bold;border-top:1px solid #222}.sheet-invoice .invoice-section{background:#fff2cd;border:1px solid #222;padding:8px;font-size:10px;white-space:pre-wrap}.document-settings{border:1px solid #d9e3ed;border-radius:8px;padding:16px;margin:12px 0}.document-settings summary{font-weight:600;cursor:pointer}.document-settings textarea{width:100%;box-sizing:border-box;min-height:60px}.document-settings button{margin:6px}.sheet-invoice .invoice-final-totals,.sheet-invoice .invoice-shipping{break-inside:avoid}
.sheet-invoice .invoice-brand{height:auto!important;min-height:110px;flex:none;align-items:flex-start;padding:0 0 16px!important}.sheet-invoice .invoice-brand>div{min-width:0}.sheet-invoice .invoice-brand p{line-height:1.5;margin:3px 0}.sheet-invoice .invoice-heading{flex:none}

/* TRADEPORTICO_VISUAL_20261110_INVOICE_START */
/* TradePortico visual unification: invoice workspace, screen only.
   Append after the existing invoice-view.css rules. Print layout is unchanged. */
@media screen {
  .invoice-workbench[open] {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 24px 80px #02061766;
  }

  .invoice-workbench::backdrop {
    background: #02061799;
  }

  .invoice-workbench .invoice-editor {
    padding: 24px;
    background: #0f172a;
    color: #e2e8f0;
    border-right: 1px solid #334155;
  }

  .invoice-workbench .invoice-editor > h2 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: -.3px;
  }

  .invoice-workbench .invoice-editor .muted {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
  }

  .invoice-workbench .invoice-editor > h3 {
    margin: 26px 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid #334155;
    color: #93c5fd;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 650;
    letter-spacing: .3px;
  }

  .invoice-workbench .invoice-editor > h3:nth-of-type(n+3) {
    color: #fbbf24;
  }

  .invoice-workbench .invoice-editor label {
    min-width: 0;
    margin: 8px 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
  }

  .invoice-workbench .invoice-editor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 6px 0 0;
    padding: 8px 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    color-scheme: dark;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: none;
  }

  .invoice-workbench .invoice-editor textarea {
    min-height: 72px;
    resize: vertical;
  }

  .invoice-workbench .invoice-editor :is(input, textarea)::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

  .invoice-workbench .invoice-editor :is(input, textarea, select):focus,
  .invoice-workbench .invoice-workbench-toolbar select:focus {
    border-color: #3b82f6;
    outline: 2px solid #3b82f633;
    outline-offset: 0;
  }

  .invoice-workbench :is(.invoice-settings-grid, .invoice-edit-line) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    align-items: start;
  }

  .invoice-workbench .invoice-edit-line {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #111c30;
  }

  .invoice-workbench .invoice-edit-line > span {
    align-self: center;
    min-width: 0;
    padding: 6px 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .invoice-workbench .invoice-editor button {
    min-height: 36px;
    margin: 4px 6px 4px 0;
    padding: 8px 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    filter: none;
  }

  .invoice-workbench .invoice-editor button:hover:not(:disabled) {
    border-color: #475569;
    background: #334155;
    color: #fff;
  }

  .invoice-workbench .invoice-editor > button:first-of-type {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
  }

  .invoice-workbench .invoice-editor > button:first-of-type:hover:not(:disabled) {
    border-color: #1d4ed8;
    background: #1d4ed8;
  }

  .invoice-workbench .invoice-edit-line > button {
    margin: 4px 0;
    min-width: 0;
  }

  .invoice-workbench .invoice-edit-line > button:last-child {
    border-color: #7f3548;
    background: transparent;
    color: #fda4af;
  }

  .invoice-workbench .invoice-edit-line > button:last-child:hover:not(:disabled) {
    border-color: #be596c;
    background: #371b2a;
    color: #fecdd3;
  }

  .invoice-workbench button:focus-visible,
  .invoice-workbench input[type="checkbox"]:focus-visible,
  .business-card > .document-settings > button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
  }

  .invoice-workbench .invoice-workbench-message {
    margin: 12px 0;
    color: #fcd34d;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .invoice-workbench .invoice-preview-pane {
    padding: 0 24px 24px;
    background: #1e293b;
  }

  .invoice-workbench .invoice-workbench-toolbar {
    gap: 10px;
    align-items: end;
    margin: 0 -24px 24px;
    padding: 14px 24px;
    border-bottom: 1px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    box-shadow: 0 4px 14px #0206171a;
  }

  .invoice-workbench .invoice-workbench-toolbar label {
    min-width: 0;
    margin: 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
  }

  .invoice-workbench .invoice-workbench-toolbar select {
    height: 36px;
    max-width: 100%;
    margin: 5px 0 0;
    padding: 6px 30px 6px 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    color-scheme: dark;
    font-size: 12px;
    line-height: 1.5;
  }

  .invoice-workbench .invoice-workbench-toolbar button {
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    filter: none;
  }

  .invoice-workbench .invoice-workbench-toolbar button:hover:not(:disabled) {
    border-color: #1d4ed8;
    background: #1d4ed8;
  }

  .invoice-workbench .invoice-preview-pane > .trade-invoice {
    background: #fff;
    box-shadow: 0 12px 36px #02061755, 0 2px 8px #02061733;
  }

  .invoice-workbench .invoice-stamp-control {
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 12px #02061733;
  }

  .invoice-workbench .invoice-stamp-control input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    accent-color: #2563eb;
  }

  .invoice-workbench,
  .invoice-workbench .invoice-editor,
  .invoice-workbench .invoice-preview-pane {
    scrollbar-gutter: stable;
  }

  .invoice-workbench::-webkit-scrollbar,
  .invoice-workbench .invoice-editor::-webkit-scrollbar,
  .invoice-workbench .invoice-preview-pane::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .invoice-workbench::-webkit-scrollbar-track,
  .invoice-workbench .invoice-editor::-webkit-scrollbar-track,
  .invoice-workbench .invoice-preview-pane::-webkit-scrollbar-track {
    background: transparent;
  }

  .invoice-workbench::-webkit-scrollbar-thumb,
  .invoice-workbench .invoice-editor::-webkit-scrollbar-thumb,
  .invoice-workbench .invoice-preview-pane::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #475569;
  }

  .invoice-workbench::-webkit-scrollbar-thumb:hover,
  .invoice-workbench .invoice-editor::-webkit-scrollbar-thumb:hover,
  .invoice-workbench .invoice-preview-pane::-webkit-scrollbar-thumb:hover {
    background: #64748b;
  }

  .invoice-workbench::-webkit-scrollbar-corner,
  .invoice-workbench .invoice-editor::-webkit-scrollbar-corner,
  .invoice-workbench .invoice-preview-pane::-webkit-scrollbar-corner {
    background: #1e293b;
  }

  .business-card > .document-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
  }

  .business-card > .document-settings > button {
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 13px;
    line-height: 1.5;
    filter: none;
  }

  .business-card > .document-settings > button:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }
}

@media screen and (max-width: 1100px) {
  .invoice-workbench .invoice-editor {
    padding: 20px;
  }
}

@media screen and (max-width: 850px) {
  .invoice-workbench .invoice-editor {
    padding: 20px 16px;
    border-right: 0;
    border-bottom: 1px solid #334155;
  }

  .invoice-workbench .invoice-preview-pane {
    padding: 0 12px 16px;
  }

  .invoice-workbench .invoice-workbench-toolbar {
    margin: 0 -12px 16px;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .invoice-workbench .invoice-edit-line {
    padding: 10px;
  }

  .invoice-workbench :is(.invoice-settings-grid, .invoice-edit-line) {
    gap: 0 10px;
  }

  .invoice-workbench .invoice-edit-line > label:has(input[aria-label="产品名称（中文）"]),
  .invoice-workbench .invoice-edit-line > label:has(input[aria-label="英文产品名"]),
  .invoice-workbench .invoice-edit-line > label:has(input[aria-label="产品详情"]) {
    grid-column: 1 / -1;
  }
}

@supports not selector(::-webkit-scrollbar) {
  @media screen {
    .invoice-workbench,
    .invoice-workbench .invoice-editor,
    .invoice-workbench .invoice-preview-pane {
      scrollbar-width: thin;
      scrollbar-color: #475569 #1e293b;
    }
  }
}
/* TRADEPORTICO_VISUAL_20261110_INVOICE_END */
