.flex-settings {
  position: relative;
}
.flex-settings .action-menu-items {
  min-width: 230px;
  padding: 14px;
}
.flex-settings label {
  display: block;
  margin-bottom: 12px;
}
.flex-settings small {
  display: block;
  color: #60738a;
  line-height: 1.6;
}
.flex-table-tools {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 8px;
  gap: 8px;
}
.flex-table-tools button {
  font-size: 12px;
  padding: 5px 10px;
}
.content .flex-table-expanded {
  position: fixed !important;
  inset: 24px !important;
  background: white !important;
  z-index: 1000;
  box-shadow: 0 0 0 30px #17345180;
  overflow: auto !important;
  padding: 16px !important;
  border-radius: 10px;
}
.flex-table-expanded .flex-table-tools {
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
  padding: 8px;
}
.flex-table-expanded table {
  min-width: 100%;
}
body[data-density="compact"] .content table td,
body[data-density="compact"] .content table th {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
body[data-density="compact"] .content .surface {
  padding-top: 14px;
  padding-bottom: 14px;
}
body[data-density="compact"] .content .form-grid {
  gap: 10px 14px;
}
body[data-form-columns="2"] .content .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body[data-form-columns="3"] .content .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.complete-check-group {
  margin: 12px 0;
  line-height: 1.7;
}
.refund-check-panel pre {
  max-height: 260px;
  white-space: pre-wrap;
  overflow: auto;
}
.content .table-scroll {
  max-width: 100%;
  overscroll-behavior: contain;
}
.content .table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f6fa;
}
.dialog-actions {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  body[data-form-columns="2"] .content .form-grid,
  body[data-form-columns="3"] .content .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .content .flex-table-expanded {
    inset: 8px !important;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head .actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .action-menu-items {
    max-width: 90vw;
  }
  .refund-case-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Table controls share the existing business toolbar; no standalone settings rows. */
.list-toolbar > .flex-table-tools-inline,.section-head > .flex-table-tools-inline{display:inline-flex;align-items:center;flex-wrap:wrap;margin:0 0 0 auto;padding:0;gap:8px;flex:0 0 auto}
.flex-table-tools-compact{display:flex;justify-content:flex-end;gap:8px;margin:0;padding:4px 0;min-height:0}
.flex-column-settings{white-space:nowrap}
#modal.flex-column-dialog{width:min(980px,96vw);max-width:96vw;max-height:90vh;max-height:90svh}
#modal.flex-column-dialog .dialog-content{min-height:0;max-height:65vh;max-height:65svh;overflow:auto;padding-top:12px}
.flex-column-help{margin:0 0 10px;color:#60738a;font-size:13px;line-height:1.5}
.flex-column-actions{display:flex;gap:10px;justify-content:flex-end;margin-bottom:10px}
.flex-column-scroll{overflow:auto;max-height:48vh;max-height:48svh}
.flex-column-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:14px}
.flex-column-table th,.flex-column-table td{padding:9px 10px;border-bottom:1px solid #dfe7f2;text-align:left;vertical-align:middle}
.flex-column-table th{position:sticky;top:0;background:#f4f7fc;z-index:1;white-space:nowrap}
.flex-column-table input[type=checkbox]{width:18px;height:18px;accent-color:#2463eb}
.flex-column-table input[type=number]{width:85px;min-width:70px}
.flex-column-table input[data-column-name]{min-width:110px;width:100%}
.flex-column-table td:last-child{white-space:nowrap}
.flex-column-table button{padding:5px 8px;margin-right:4px}
.flex-column-table input[readonly]{background:#f5f7fa;color:#60738a}
.flex-table-expanded .flex-table-tools{justify-content:flex-end;margin:0 0 8px!important;position:sticky;top:0;z-index:4;background:#fff;padding:6px!important}
@media(max-width:700px){.list-toolbar{flex-wrap:wrap;gap:8px}.list-toolbar>.flex-table-tools-inline{margin-left:auto;gap:5px}.flex-column-table{min-width:650px}#modal.flex-column-dialog .dialog-content{padding:10px}.flex-column-help{font-size:12px}}

/* Trade entry stays compact; product wording gets room before optional attributes. */
.flex-trade-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px 22px!important;align-items:start}
.flex-trade-grid>[hidden]{display:none!important}
.flex-buyer-field{grid-column:span 2}
.flex-buyer-input{display:flex;gap:8px;align-items:stretch}
.flex-buyer-input>input{flex:1;min-width:0;width:auto!important}
.flex-buyer-input>button{flex-shrink:0;white-space:nowrap}
.flex-history-import{align-self:end;border:0!important;padding:8px 0!important;margin:0!important}
.flex-history-import>summary{font-size:13px;padding:0!important;color:#3564a8}
.flex-history-import>label{margin-top:8px}
.content .flex-output-language{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:13px;margin-left:auto}
.flex-output-language select{width:155px;min-height:34px;padding:5px 10px}
.flex-product-table td{vertical-align:top!important}
.flex-product-table td input,.flex-product-table td select,.flex-product-table td textarea{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;font-size:14px}
.flex-product-table .flex-product-line{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:6px;margin:0 0 7px}
.flex-product-line>span{font-size:12px;color:#63748b;padding-top:10px}
.flex-product-line textarea{resize:vertical;min-height:58px;line-height:1.5;padding:8px 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.flex-product-model input{font-family:inherit;letter-spacing:.2px}
.content .flex-product-table th{white-space:normal;line-height:1.4}
.flex-freight-panel{padding-top:14px!important;padding-bottom:14px!important}
.flex-freight-panel .section-head{justify-content:flex-start;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.flex-freight-panel .rc516-freight-input{margin-left:0!important;max-width:300px}
.flex-freight-panel>details{padding:0!important;margin:10px 0!important;border:0!important}
.flex-freight-panel>details>summary{padding:5px 0!important;font-size:13px;color:#3564a8}
.flex-window-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.flex-window-links>a{text-align:center;display:block;padding:12px}
.flex-customer-results{max-height:45vh;overflow:auto;margin-top:12px;display:grid;gap:8px}
.flex-customer-results>button{text-align:left;display:flex;flex-direction:column;gap:5px;padding:12px;white-space:normal}
.flex-customer-results small{color:#63748b}
@media(max-width:900px){.flex-trade-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flex-buyer-field{grid-column:1/-1}}
@media(max-width:600px){.flex-trade-grid{grid-template-columns:minmax(0,1fr)!important}.flex-buyer-input{flex-wrap:wrap}.flex-buyer-input>input{flex-basis:100%}.flex-window-links{grid-template-columns:1fr}.content .flex-output-language{margin-left:0;flex-wrap:wrap}}

/* A single system shell with persistent, independent business pages. */
.jw-workspace-host .main{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.jw-workspace-host .topbar{flex:0 0 56px}
.jw-workspace-host-content{padding:0!important;max-width:none!important;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.jw-system-tabs{display:flex;align-items:stretch;flex:0 0 44px;min-height:44px;overflow-x:auto;overflow-y:hidden;background:#eef2f8;border-bottom:1px solid #dce4f0;padding:0 12px;gap:3px;scrollbar-width:thin}
.jw-system-tab{display:flex;align-items:center;flex:0 0 auto;border-right:1px solid #dce4f0;color:#586d8c}
.jw-system-tab.active{background:#fff;color:#1763e8;box-shadow:inset 0 -3px #1763e8}
.jw-system-tab button{border:0!important;background:transparent!important;border-radius:0;box-shadow:none!important;color:inherit;min-height:42px;font-size:13px}
.jw-system-tab-select{padding:8px 12px!important;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-system-tab-close{padding:5px 8px!important;min-width:28px;font-size:18px!important}
.jw-system-tab-close:hover{color:#c93636;background:#ffeded!important}
.jw-system-pages{position:relative;flex:1;min-height:0;overflow:hidden}
.jw-workspace-page{border:0;display:block;width:100%;height:100%;background:#f4f6fa}
.jw-workspace-page[hidden]{display:none!important}
.jw-workspace-child .app{display:block!important;grid-template-columns:minmax(0,1fr)!important}
.jw-workspace-child .sidebar,.jw-workspace-child .topbar,.jw-workspace-child .mobile-nav{display:none!important}
.jw-workspace-child .main{margin:0!important;width:100%!important;min-height:100dvh}
.jw-workspace-child .content{padding-top:16px}
@media(max-width:800px){.jw-workspace-host .main{height:calc(100dvh - 56px)}.jw-system-tabs{padding:0 6px}.jw-system-tab-select{max-width:180px;padding-left:9px!important;padding-right:7px!important}.jw-workspace-child .content{padding:12px 10px 70px!important}}

/* Width correction: legacy .content margin:auto must not shrink the tab workspace. */
.jw-workspace-host .main > .jw-workspace-host-content{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;align-self:stretch!important;box-sizing:border-box;
}
.jw-workspace-host #jwSystemTabs,.jw-workspace-host #jwSystemPages{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;align-self:stretch;
}
.jw-workspace-child .main > .content{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;box-sizing:border-box;
}
.jw-workspace-child .sticky-actions{
  left:0!important;right:0!important;bottom:0!important;width:auto!important;
  max-width:100%!important;box-sizing:border-box;
}


/* Presentation standard for all business pages except protected declaration entry. */
body.jw-layout-clean:not(.jw-workspace-host) .content{padding:18px 22px 22px!important;overflow-wrap:break-word}
.jw-layout-clean .workspace-ui>.page-head,.jw-layout-clean .workspace-ui>.crm-workspace-head{display:flex;align-items:flex-start;justify-content:flex-start;gap:14px;margin:0 0 16px;min-height:0;padding:0}
.jw-layout-clean .page-head>div:first-child,.jw-layout-clean .crm-workspace-head>div:first-child{min-width:0;flex:1}
.jw-layout-clean .workspace-ui .page-head h1,.jw-layout-clean .workspace-ui .crm-workspace-head h1{font-size:22px;line-height:1.35;margin:0;font-weight:650}
.jw-layout-clean .page-head p{margin:5px 0 0;font-size:12px;line-height:1.6;max-width:720px}
.jw-layout-clean .page-head>.actions,.jw-layout-clean .crm-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto;max-width:65%}
.jw-layout-clean .page-head>.actions>.primary,.jw-layout-clean .crm-head-actions>.primary{order:5}
.jw-layout-clean .workspace-ui button,.jw-layout-clean .workspace-ui a.button{min-height:34px;padding:6px 11px;font-size:13px;line-height:1.4}
.jw-layout-clean .workspace-ui .surface{padding:18px;margin-bottom:16px;border-radius:7px;min-width:0}
.jw-layout-clean .workspace-ui .surface.workspace-list{padding:0;overflow:visible}
.jw-layout-clean .workspace-ui .surface>.form-grid,.jw-layout-clean .workspace-ui .form-grid{gap:14px 18px;align-items:start}
.jw-layout-clean .workspace-ui label{line-height:1.5}
.jw-layout-clean .workspace-ui input:not([type=checkbox]):not([type=radio]),.jw-layout-clean .workspace-ui select{min-height:36px;font-size:13px;box-sizing:border-box}
.jw-layout-clean .workspace-ui textarea{font-size:13px;line-height:1.6;box-sizing:border-box}
.jw-layout-clean .workspace-ui .form-grid>label{min-width:0;gap:5px;font-size:12px}
.jw-layout-clean .workspace-ui .workspace-filter,.jw-layout-clean .crm-filterbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:14px 16px;margin:0;border-bottom:1px solid #e5ebf3;background:#fff}
.jw-layout-clean .workspace-filter>label{flex:0 1 180px;min-width:140px;max-width:280px}
.jw-layout-clean .workspace-filter>label.grow{flex:1 1 300px;max-width:440px}
.jw-layout-clean .workspace-filter>button{flex:0 0 auto;margin-bottom:0}
.jw-layout-clean .workspace-ui .workspace-filter.surface{border:1px solid #e1e7ef;margin-bottom:16px;border-radius:7px}
.jw-layout-clean .workspace-ui .workspace-tabs,.jw-layout-clean .perf-tabs,.jw-layout-clean .dg-tabs{display:flex;gap:4px;overflow-x:auto;flex-wrap:nowrap;margin:0 0 14px;padding:0;border-bottom:1px solid #dfe7f1}
.jw-layout-clean .workspace-tabs>button{flex:0 0 auto;min-height:40px;padding:8px 14px!important}
.jw-layout-clean .workspace-ui .section-head{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:0 0 12px;min-height:34px}
.jw-layout-clean .section-head>h2,.jw-layout-clean .section-head>h3{flex:0 0 auto;margin:0;font-size:15px;line-height:1.5}
.jw-layout-clean .clean-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1;min-width:0;margin-left:auto;flex-wrap:wrap}
.jw-layout-clean .clean-section-actions>.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jw-layout-clean .clean-section-actions>.flex-table-tools{margin:0;padding:0;display:flex;gap:6px}
.jw-layout-clean .workspace-ui .list-toolbar,.jw-layout-clean .crm-selection{padding:8px 16px;min-height:42px;gap:10px;align-items:center}
.jw-layout-clean .list-toolbar .flex-table-tools{margin:0 0 0 auto!important}
.jw-layout-clean .workspace-ui .table-scroll,.jw-layout-clean .crm-table-scroll{min-width:0;max-width:100%;overflow:auto}
.jw-layout-clean .workspace-ui table th{padding:10px 12px;font-size:12px;font-weight:600;line-height:1.5;background:#f2f5f9;color:#536a85;vertical-align:middle}
.jw-layout-clean .workspace-ui table td{padding:10px 12px;font-size:13px;line-height:1.5}
.jw-layout-clean .workspace-ui .review-col-grip{width:10px;right:-4px;cursor:col-resize;touch-action:none;opacity:.55}
.jw-layout-clean .workspace-ui .review-col-grip:hover,.jw-layout-clean .workspace-ui .review-col-grip:focus{opacity:1;background:#b8d2ff}
.jw-layout-clean .workspace-ui .desk-metrics,.jw-layout-clean .workspace-ui .dg-metrics,.jw-layout-clean .workspace-ui .refund-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:0 0 16px;min-width:0}
.jw-layout-clean .workspace-ui .desk-metric,.jw-layout-clean .workspace-ui .dg-metric{padding:14px 16px;min-width:0;min-height:104px}
.jw-layout-clean .desk-metric strong,.jw-layout-clean .dg-metric strong{font-size:27px;line-height:1.35}
.jw-layout-clean .workspace-ui .sticky-actions{position:sticky;top:auto;bottom:0;left:auto;right:auto;margin:16px 0 0;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:12;box-shadow:0 -3px 12px #223a590c}
.jw-layout-clean .sticky-actions>.actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
.jw-layout-clean .workspace-ui .editor-section-nav{position:static!important;top:auto!important;z-index:auto!important;display:flex;flex-wrap:nowrap;overflow:auto;margin:0;padding:8px 0 12px;gap:4px;background:transparent;border-bottom:1px solid #e3eaf2}
.jw-layout-clean .editor-section-nav>button{background:transparent;min-height:30px;padding:5px 10px!important;font-size:12px;flex-shrink:0}
.jw-layout-clean .editor-section-nav>button:hover{background:#edf3ff}
.jw-layout-clean .clean-invoice-editor{padding:0 18px 4px!important}
.jw-layout-clean .clean-invoice-editor>.form-section{padding:16px 0;margin:0}
.jw-layout-clean .clean-invoice-editor>.form-section>h2{font-size:15px;margin:0 0 12px}
.jw-layout-clean .clean-invoice-editor .flex-trade-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 18px!important}
.jw-layout-clean .clean-invoice-editor .flex-buyer-field{grid-column:span 2}
.jw-layout-clean .clean-invoice-editor .flex-history-import{margin:10px 0 0!important;padding:0!important;border:0!important;max-width:520px}
.jw-layout-clean .clean-invoice-editor .u-entry-extra{margin:12px 0 0;padding:10px 0 0;border-top:1px solid #edf1f6}
.jw-layout-clean .u-entry-extra>summary{font-size:12px;line-height:1.5;padding:0;margin:0}
.jw-layout-clean .u-entry-extra[open]>summary{margin-bottom:12px}
.jw-layout-clean .clean-invoice-editor>.form-section>.section-head{align-items:center;gap:16px}
.jw-layout-clean .clean-invoice-editor .clean-section-actions{justify-content:flex-start;gap:12px}
.jw-layout-clean .clean-product-actions,.jw-layout-clean .clean-product-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.jw-layout-clean .clean-product-options{margin-left:auto;justify-content:flex-end}
.jw-layout-clean .clean-product-options .flex-output-language{margin:0!important;display:flex;align-items:center;gap:6px;font-size:12px}
.jw-layout-clean .flex-output-language select{width:142px;min-height:34px!important}
.jw-layout-clean .clean-product-options .flex-table-tools{margin:0;padding:0;gap:6px}
.jw-layout-clean .clean-invoice-editor .fee-row{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;margin:0;padding:12px 0 0;flex-wrap:wrap}
.jw-layout-clean .clean-invoice-editor .fee-row>label{flex:0 0 125px;max-width:125px;font-size:12px}
.jw-layout-clean .clean-invoice-editor .fee-row>strong{font-size:19px;min-height:36px;display:flex;align-items:center;white-space:nowrap;margin:0 0 0 6px}
.jw-layout-clean .clean-payment-section .clean-payment-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr)!important;gap:14px 22px;align-items:start}
.jw-layout-clean .clean-payment-grid>label{margin:0}
.jw-layout-clean .clean-payment-grid textarea{min-height:82px;height:82px;resize:vertical}
.jw-layout-clean .clean-payment-attachments{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.jw-layout-clean .clean-invoice-editor>details{padding:12px 0;border-top:1px solid #e5ebf3}
.jw-layout-clean .clean-invoice-editor>details>summary{font-size:13px;margin:0}
.jw-layout-clean .clean-invoice-editor>details[open]>summary{margin-bottom:14px}
.jw-layout-clean [data-clean-empty]>td{text-align:center;color:#8190a5;height:72px;padding:20px!important;font-size:12px!important;background:#fbfcfe}
.jw-layout-clean .profit-edit-layout{grid-template-columns:minmax(0,1fr) minmax(260px,310px);gap:16px;align-items:start}
.jw-layout-clean .profit-results{top:16px}
.jw-layout-clean .refund-case-layout{gap:16px;align-items:start}
.jw-layout-clean .customer-workspace,.jw-layout-clean .opportunity-workspace{min-width:0}
.jw-layout-clean .customer-view-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.jw-layout-clean .pipeline-summary{gap:12px;flex-wrap:wrap;padding:12px 16px}
.jw-layout-clean .core-guide,.jw-layout-clean .flex-refund-guide{margin:12px 0;padding:10px 14px!important;background:#f8faff;border:1px solid #e5ebf3;border-radius:6px}
.jw-layout-clean .core-guide>summary,.jw-layout-clean .flex-refund-guide summary{font-size:12px;margin:0}
.jw-layout-clean #modal.clean-column-dialog{width:min(800px,96vw)}
.jw-layout-clean .clean-column-dialog .flex-column-table{min-width:570px}
@media(max-width:1100px){.jw-layout-clean .profit-edit-layout{grid-template-columns:minmax(0,1fr)}.jw-layout-clean .profit-results{position:static}.jw-layout-clean .clean-product-options{margin-left:0}.jw-layout-clean .clean-invoice-editor .clean-section-actions{flex-basis:100%;margin-left:0}.jw-layout-clean .clean-payment-section .clean-payment-grid{grid-template-columns:minmax(200px,280px) minmax(0,1fr)!important}}
@media(max-width:760px){body.jw-layout-clean:not(.jw-workspace-host) .content{padding:12px 10px 18px!important}.jw-layout-clean .page-head>.actions,.jw-layout-clean .crm-head-actions{max-width:100%;width:100%;margin-left:0;justify-content:flex-start}.jw-layout-clean .workspace-ui>.page-head,.jw-layout-clean .workspace-ui>.crm-workspace-head{flex-wrap:wrap}.jw-layout-clean .workspace-ui .page-head h1{font-size:20px}.jw-layout-clean .clean-invoice-editor .flex-trade-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.jw-layout-clean .clean-invoice-editor .flex-buyer-field{grid-column:1/-1}.jw-layout-clean .clean-payment-section .clean-payment-grid{grid-template-columns:minmax(0,1fr)!important}.jw-layout-clean .workspace-ui .desk-metrics,.jw-layout-clean .workspace-ui .dg-metrics,.jw-layout-clean .workspace-ui .refund-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.jw-layout-clean .workspace-filter>label,.jw-layout-clean .workspace-filter>label.grow{flex:1 1 140px;max-width:none}.jw-layout-clean .workspace-ui .sticky-actions{align-items:flex-start;flex-direction:column}.jw-layout-clean .sticky-actions>.actions{width:100%}.jw-layout-clean .clean-invoice-editor{padding:0 12px 4px!important}.jw-layout-clean .clean-product-options{justify-content:flex-start}.jw-layout-clean .clean-column-dialog .flex-column-table{min-width:550px}}
@media(max-width:480px){.jw-layout-clean .clean-invoice-editor .flex-trade-grid{grid-template-columns:minmax(0,1fr)!important}.jw-layout-clean .clean-invoice-editor .fee-row>label{flex:1 1 90px;max-width:none}.jw-layout-clean .clean-invoice-editor .fee-row>strong{width:100%;justify-content:flex-end}.jw-layout-clean .clean-product-options .flex-output-language{width:100%}.jw-layout-clean .clean-product-options .flex-table-tools{flex-wrap:wrap}.jw-layout-clean .clean-section-actions{flex-basis:100%;justify-content:flex-start}.jw-layout-clean .workspace-ui .sticky-actions .actions>button{flex:1 1 auto}}
.jw-layout-clean .page-eyebrow{display:none}
body.jw-layout-clean #modal:not(.export-dialog):not(.flex-column-dialog){max-width:96vw;max-height:90svh}
.jw-layout-clean #modal:not(.export-dialog) .dialog-head{padding:16px 20px}
.jw-layout-clean #modal:not(.export-dialog) .dialog-head h2{font-size:18px}
.jw-layout-clean #modal:not(.export-dialog) .dialog-content{padding:18px 20px;overscroll-behavior:contain}
.jw-layout-clean #modal:not(.export-dialog) .dialog-actions{padding:12px 20px;gap:8px;align-items:center;flex-wrap:wrap}
.jw-layout-clean #modal:not(.export-dialog) label{font-size:13px;line-height:1.5}

/* Scoped to the declaration editor; exported forms retain their original layout. */
.jw-declaration-layout .content{min-width:0;max-width:none;padding:20px 24px 90px;background:#f7faff}
.jw-declaration-layout .page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.jw-declaration-layout .page-head h1{font-size:22px;color:#10234b;margin:0}
.jw-declaration-layout .page-head .actions{display:flex;gap:8px;flex-wrap:wrap}
.jw-declaration-layout .page-head p{font-size:12px;color:#71829e}
.jw-declaration-layout .decl-layout-editor{padding:16px;min-width:0;background:#fff;border:1px solid #e1eaf5;border-radius:6px;box-shadow:none}
.jw-declaration-layout .decl-layout-editor .form-grid.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
.jw-declaration-layout .decl-layout-editor label{min-width:0;font-size:13px;color:#546784}
.jw-declaration-layout .decl-layout-editor input,.jw-declaration-layout .decl-layout-editor select,.jw-declaration-layout .decl-layout-editor textarea{width:100%;min-width:0;box-sizing:border-box;font-size:14px;border:1px solid #d6e2f2;border-radius:4px;background:#fff;min-height:34px;color:#142b50}
.jw-declaration-layout .form-section{margin:16px 0;padding:16px 0;border:0;border-top:1px solid #e8eef6;box-shadow:none}
.jw-declaration-layout h2{font-size:16px;color:#11274b;margin:0 0 14px;border-left:3px solid #1670ff;padding-left:8px}
.jw-declaration-layout .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jw-declaration-layout .section-head .actions{display:flex;gap:8px;flex-wrap:wrap}
.jw-declaration-layout .decl-extra{border:0;border-top:1px solid #e7eef8;border-radius:0;background:#fbfdff;padding:12px 0;margin-top:14px}
.jw-declaration-layout summary{cursor:pointer;font-size:13px;color:#294978;padding:6px 0}
.jw-declaration-layout details[open]>summary{margin-bottom:12px}
.jw-declaration-layout .decl-product-table{width:100%;min-width:820px;table-layout:fixed;border-collapse:collapse}
.jw-declaration-layout .decl-product-table th{background:#edf5fd;color:#526a90;font-size:13px;font-weight:500;padding:12px 8px;text-align:left}
.jw-declaration-layout .decl-product-table th:nth-child(1){width:38px}
.jw-declaration-layout .decl-product-table th:nth-child(2){width:140px}
.jw-declaration-layout .decl-product-table th:nth-child(3){width:190px}
.jw-declaration-layout .decl-product-table td{padding:10px 8px;border:1px solid #e5edf7;vertical-align:top;white-space:normal}
.jw-declaration-layout .decl-product-table td label{display:block;margin-bottom:6px}
.jw-declaration-layout .decl-line-details{padding:8px 12px;background:#f8fbff;border:0}
.jw-declaration-layout .decl-line-details .section-head h3{font-size:14px}
.jw-declaration-layout .decl-line-details .elements-inline{margin-top:16px}
.jw-declaration-layout .decl-totals{display:flex;justify-content:space-between;align-items:center;padding:16px 8px;color:#526a90}
.jw-declaration-layout .decl-totals strong{color:#0665ff;font-size:20px}
.jw-declaration-layout .sticky-actions{z-index:20;background:#fff;border-top:1px solid #dce7f3;box-shadow:0 -2px 8px #152b4b08;padding:12px 20px}
.decl-files-dialog{width:min(920px,94vw);max-width:94vw}
.decl-file-toolbar{display:flex;align-items:center;gap:16px;margin:16px 0}
.decl-file-row{display:grid;grid-template-columns:minmax(0,1fr) 200px 190px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e4ecf6}
.decl-file-row a{overflow-wrap:anywhere}.decl-file-row small{color:#6c7d96}
@media(max-width:1050px){.jw-declaration-layout .decl-layout-editor .form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.jw-declaration-layout .content{padding:16px 12px 100px}.jw-declaration-layout .page-head{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.jw-declaration-layout .decl-layout-editor .form-grid.four{grid-template-columns:1fr}.decl-file-row{grid-template-columns:1fr}.jw-declaration-layout .page-head .actions{gap:6px}.jw-declaration-layout .decl-totals{gap:12px;flex-wrap:wrap}}

