.workspace-tabs {
  position: fixed;
  top: 72px;
  left: 220px;
  right: 0;
  height: 42px;
  z-index: 16;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 6px 18px 0;
  background: #e8eff0;
  border-bottom: 1px solid #cfdadd;
  overflow-x: auto;
}
.workspace-tab {
  min-width: 125px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 13px;
  color: #546970;
  background: #dce6e8;
  border: 1px solid #ccd9db;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  cursor: pointer;
  white-space: nowrap;
}
.workspace-tab.active { color: #086873; background: #fff; font-weight: 700; }
.workspace-tab button { border: 0; background: transparent; color: #839397; padding: 2px 4px; }
.workspace-tab button:hover { color: #b54242; }
.sidebar { top: 114px; }
.main { padding-top: 140px; }
.sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; opacity: .9; }
.sync-status i { width: 8px; height: 8px; border-radius: 50%; background: #f0b54a; box-shadow: 0 0 0 3px rgba(255,255,255,.13); }
.sync-status.online i { background: #78dcaa; }
.sync-status.offline i { background: #ff7474; }
.frequency-legend { margin: 9px 2px 0; color: #60747b; font-size: 12px; }
.supplier-picker { display: flex; align-items: center; gap: 10px; flex: 1; }
.supplier-picker label { font-weight: 700; white-space: nowrap; }
.supplier-picker input { flex: 1; max-width: 560px; }
.filterbar-dates { flex-wrap: wrap; }
.sales-customer-filter { position: relative; display: flex; align-items: center; min-width: min(330px,100%); flex: 1 1 330px; }
.sales-customer-filter input { width: 100%; padding-right: 34px; }
.sales-customer-filter #sales-customer-clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); padding: 1px 7px; border: 0; font-size: 20px; }
.sales-customer-filter .suggestions { left: 0; top: calc(100% + 4px); width: max(100%,min(560px,85vw)); }
.delete-record { color: #bb3f3f; margin-left: 5px; padding: 6px 9px; white-space: nowrap; }
.delete-record.confirming { background: #bb3f3f; border-color: #bb3f3f; color: #fff; }
.delete-cancel { padding: 6px 8px; margin-left: 3px; white-space: nowrap; }
.report-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 15px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.report-controls label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.report-controls input { width: 115px; }
.report-controls .segmented { display: inline-flex; }
.report-range { color: var(--muted); font-size: 13px; margin-left: auto; }
.report-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 8px 0 16px; }
.report-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; box-shadow: 0 3px 12px rgba(19,59,67,.04); }
.report-card span { display: block; color: var(--muted); font-size: 13px; }
.report-card strong { display: block; margin-top: 8px; color: var(--teal-dark); font-size: clamp(19px,2.2vw,27px); font-variant-numeric: tabular-nums; }
.report-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: start; }
.report-panel { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.report-panel table { width: 100%; table-layout: fixed; }
.report-panel th,.report-panel td { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.report-panel:last-child th:nth-child(1) { width: 13%; }
.report-panel:last-child th:nth-child(2) { width: 43%; }
.report-panel:last-child th:nth-child(3) { width: 16%; }
.report-panel:last-child th:nth-child(4) { width: 28%; }
.report-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; }
.report-panel-head h3 { margin: 3px 0; font-size: 18px; }
.report-month-bars { display: grid; gap: 8px; margin-bottom: 18px; }
.report-bar-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 110px; gap: 9px; align-items: center; font-size: 12px; }
.report-bar-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.report-bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: #eef3f4; }
.report-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#49bdc2,#0b8693); }
.report-bar-track i.negative { background: #d84848; }
.report-drill-month,.report-drill-customer { padding: 0; border: 0; background: transparent; color: var(--teal-dark); text-align: left; font-weight: 700; }
.report-drill-customer { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.report-drill-month:hover,.report-drill-customer:hover { text-decoration: underline; }
@media(max-width:1100px){.report-layout{grid-template-columns:1fr}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.report-cards{grid-template-columns:1fr}.report-range{margin-left:0}.report-panel{padding:10px}.report-bar-row{grid-template-columns:42px minmax(0,1fr) 98px}}
.date-presets { display: flex; gap: 4px; padding: 3px; background: #eef3f4; border-radius: 7px; }
.date-presets button { border: 0; border-radius: 5px; padding: 7px 9px; background: transparent; color: #60747b; font-size: 13px; }
.date-presets button:hover,.date-presets button.active { color: #086873; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 700; }
.sortable-table th[data-sales-sort],.sortable-table th[data-purchase-sort] { cursor: pointer; user-select: none; }
.sortable-table th[data-sales-sort]:hover,.sortable-table th[data-purchase-sort]:hover { background: #e2f1f2; color: #086873; }
.sortable-table th.sort-asc::after { content: " ▲"; color: #0d8791; font-size: 11px; }
.sortable-table th.sort-desc::after { content: " ▼"; color: #0d8791; font-size: 11px; }
.frequency-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 7px; }
.frequency-legend .red { background: #dd4a4a; }
.frequency-legend .yellow { background: #e5ac29; }
.frequency-legend .blue { background: #3e83d8; }
.frequency-legend .none { background: #c9d2d4; }
.product-popover { position: fixed; right: auto; width: min(660px, 80vw); z-index: 60; }
.product-option { position: relative; border-left: 7px solid transparent; padding: 10px 12px; }
.product-option.frequency-red { border-left-color: #d94141; background: #fff2f1; }
.product-option.frequency-yellow { border-left-color: #e5a515; background: #fff9df; }
.product-option.frequency-blue { border-left-color: #3e83d8; background: #eef6ff; }
.product-option:hover { filter: brightness(.975); }
.frequency-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 6px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.frequency-red .frequency-badge { color: #aa2020; background: #ffd9d5; }
.frequency-yellow .frequency-badge { color: #8d6500; background: #ffe99f; }
.frequency-blue .frequency-badge { color: #1c65a9; background: #d5eaff; }
.product-option .history-note { display: block; margin-top: 3px; font-weight: 700; color: #52666d; }
.print-sheet { min-height: 0; padding: 12px 16px; overflow: auto; }
.ndf-template { width: 100%; min-width: 920px; margin: 0 auto; color: #111; font-family: "SimSun", "宋体", serif; }
.ndf-title { height: 62px; position: relative; display: flex; align-items: center; }
.ndf-title h2 { width: 86%; margin: 0; text-align: center; font-size: 27px; line-height: 1.15; font-weight: 700; }
.ndf-title img { position: absolute; right: .5%; top: 0; width: 11.2%; height: 58px; object-fit: contain; }
.ndf-meta { height: 48px; display: grid; grid-template-columns: 14.4% 51.3% 7.1% 27.2%; align-items: center; border-bottom: 1px solid #111; font-size: 16px; }
.ndf-meta > * { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ndf-meta strong { padding-left: 8px; }
.ndf-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ndf-table th,.ndf-table td { height: 42px; border: 1px solid #111; padding: 4px 7px; font-size: 14px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ndf-table th { font-size: 15px; font-weight: 700; }
.ndf-table td:nth-child(2),.ndf-table td:last-child { text-align: left; }
.ndf-total { height: 46px; display: grid; grid-template-columns: 19% 54.5% 12% 14.5%; align-items: center; border: 1px solid #111; border-top: 0; font-size: 15px; }
.ndf-total > * { padding: 0 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndf-contact { height: 48px; display: grid; grid-template-columns: 8.3% 43.2% 6.2% 42.3%; align-items: center; border-bottom: 1px solid #666; font-size: 14px; }
.ndf-contact > * { padding: 0 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media(max-width: 980px) {
  .workspace-tabs { left: 0; }
  .sync-status span { display: none; }
}
@media(max-width: 640px) {
  .main { padding-top: 132px; }
  .product-popover { width: calc(100vw - 42px); }
  .supplier-picker { display: grid; }
}
@media print {
  @page { size: landscape; margin: 5mm; }
  .workspace-tabs { display: none !important; }
  .ndf-template { width: 100%; min-width: 0; }
  .print-sheet { padding: 0; overflow: visible; }
}

select { border: 1px solid #cbd8da; border-radius: 6px; padding: 9px 10px; background: #fff; color: var(--ink); outline: none; }
select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,135,145,.12); }
.template-actions { display: flex; gap: 9px; }
.template-editor-layout { display: grid; grid-template-columns: 430px minmax(0,1fr); gap: 16px; align-items: start; }
.template-form { display: grid; gap: 12px; }
.template-group { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.template-group h3 { grid-column: 1/-1; margin: 0 0 2px; color: var(--teal-dark); font-size: 16px; }
.template-group label,.edit-form label { display: grid; gap: 6px; color: #52666d; font-size: 13px; }
.template-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.template-group textarea,.edit-form textarea { resize: vertical; }
.check-label { display: flex!important; align-items: center; gap: 8px!important; }
.check-label input { width: auto; }
.file-label input { display: none; }
.file-label span { display: inline-flex; width: max-content; border: 1px dashed #87b9bd; border-radius: 6px; padding: 8px 12px; color: var(--teal-dark); background: #f2fbfb; cursor: pointer; }
.template-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.template-preview-panel { position: sticky; top: 132px; min-width: 0; background: #e9eeee; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.template-preview-head { padding: 10px 13px; background: #fff; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.template-preview-head strong { color: var(--ink); font-size: 14px; }
.template-preview { padding: 18px; overflow: auto; max-height: calc(100vh - 190px); }
.template-preview .ndf-template { box-shadow: 0 5px 20px rgba(16,47,53,.15); }

html:has(#print-dialog[open]),body:has(#print-dialog[open]) { overflow: hidden; }
.print-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden; }
.print-sheet { background: #e9eeee; overflow: hidden; }
.ndf-template { width: var(--paper-width,241mm); min-width: 0; min-height: var(--paper-height,140mm); box-sizing: border-box; padding: var(--margin-top,4mm) var(--margin-right,5mm) var(--margin-bottom,4mm) var(--margin-left,5mm); background: white; color: #111; font-family: var(--print-font,"SimSun","宋体",serif); font-size: var(--print-font-size,13px); }
.ndf-content { position: relative; transform: translate(var(--offset-x,0mm),var(--offset-y,0mm)); }
.ndf-title { height: 48px; position: relative; display: flex; align-items: center; }
.ndf-title h2 { width: calc(100% - var(--logo-width,27mm) - 19mm); margin: 0 0 0 19mm; text-align: center; font-size: var(--print-title-size,27px); line-height: 1.1; font-weight: 700; }
.ndf-title img { position: absolute; top: 0; height: 46px; object-fit: contain; filter: grayscale(1) contrast(1.25); }
.ndf-title .ndf-longpan-logo { left: 0; width: 18mm; }
.ndf-title .ndf-lesso-logo { right: 0; width: var(--logo-width,27mm); }
.ndf-meta { height: 32px; display: grid; grid-template-columns: 14.4% 51.3% 7.1% 27.2%; align-items: center; border-bottom: 1px solid #111; font-size: var(--print-font-size,13px); }
.ndf-meta > * { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ndf-meta strong { padding-left: 5px; }
.ndf-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ndf-table th,.ndf-table td { height: var(--row-height,26px); border: 1px solid #111; padding: 2px 5px; font-size: var(--print-font-size,13px); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ndf-table th { font-weight: 700; }
.ndf-table td:nth-child(2),.ndf-table td:last-child { text-align: left; }
.ndf-total { min-height: 31px; display: grid; grid-template-columns: 19% 54.5% 12% 14.5%; align-items: center; border: 1px solid #111; border-top: 0; font-size: var(--print-font-size,13px); }
.ndf-total > * { padding: 0 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndf-contact { min-height: 31px; display: grid; grid-template-columns: max-content minmax(0,1.1fr) max-content minmax(0,.9fr); align-items: center; border-bottom: 1px solid #777; font-size: var(--print-font-size,13px); }
.ndf-contact > * { padding: 0 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndf-contact strong { overflow: visible; text-overflow: clip; }
.ndf-footer { padding-top: 5px; font-size: calc(var(--print-font-size,13px) - 1px); line-height: 1.5; white-space: pre-wrap; }

.product-filterbar select { min-width: 210px; }
.category-visual { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; }
.category-card { flex: 0 0 auto; min-width: 120px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 10px 12px; cursor: pointer; }
.category-card:hover,.category-card.active { border-color: var(--teal); background: var(--teal-soft); }
.category-card strong { display: block; color: var(--teal-dark); }
.category-card span { color: var(--muted); font-size: 12px; }
.edit-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 16px; }
.edit-form .span-2 { grid-column: 1/-1; }
.product-dialog { max-width: min(820px,94vw); }
.category-dialog { max-width: min(900px,94vw); }
.category-manager { display: grid; grid-template-columns: minmax(280px,1fr) minmax(320px,1fr); gap: 18px; margin-top: 14px; }
.category-list { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.category-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #edf1f2; }
.category-list-item:hover { background: var(--teal-soft); }
.category-list-item span { color: var(--muted); font-size: 12px; }

.identity-logo { display: block; object-fit: contain; padding: 4px; background: #f1f7ff; }
.topbar { gap: 12px; }
.identity { min-width: 205px; }
.topnav button { min-width: 72px; padding: 8px 9px; white-space: nowrap; }
.global-search { width: min(270px,23vw); }
.link-button { white-space: nowrap; }
.account-button { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-layer { background: radial-gradient(circle at 22% 35%, #2678ad 0, transparent 36%), linear-gradient(125deg,#071b47,#0b4783 57%,#086d8c); padding: 24px; overflow: auto; }
.login-layout { width: min(1020px,100%); display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,410px); align-items: center; gap: clamp(24px,7vw,90px); }
.login-brand { text-align: center; color: #fff; padding: 10px 0; }
.login-brand img { display: block; width: min(315px,55vw); height: min(315px,55vw); object-fit: contain; margin: 0 auto 10px; padding: 12px; border-radius: 50%; background: radial-gradient(circle,rgba(245,250,255,.96) 0,rgba(227,243,255,.8) 62%,rgba(227,243,255,0) 73%); filter: drop-shadow(0 15px 30px rgba(0,10,45,.3)); }
.login-brand p { margin: 8px 0 0; font-size: 22px; letter-spacing: .3em; font-weight: 700; }
.login-brand h1 { margin: 0 0 24px; font-size: clamp(40px,6vw,70px); font-weight: 800; letter-spacing: .18em; }
.login-brand span { display: inline-block; border: 1px solid rgba(255,255,255,.36); border-radius: 99px; padding: 8px 17px; color: #e7f7ff; font-size: 14px; }
.login-card { width: 100%; padding: 34px; gap: 15px; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 24px 75px rgba(0,11,47,.32); }
.login-card h2 { margin: -9px 0 0; font-size: 29px; }
.login-card .eyebrow { color: #176693; }
.login-card .login-note { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.login-card label { font-size: 14px; font-weight: 700; }
.login-card input { width: 100%; padding: 12px; }
.login-card .primary { background: #0d598f; padding: 12px; margin-top: 4px; }
.login-card .primary:hover { background: #0b4773; }
.account-layout { display: grid; grid-template-columns: 280px minmax(320px,590px); gap: 18px; align-items: start; }
.account-profile,.settings-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(20,57,64,.04); }
.account-profile { display: flex; align-items: center; gap: 14px; }
.account-profile img { width: 58px; height: 58px; object-fit: contain; }
.account-profile strong,.account-profile span { display: block; }
.account-profile span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.settings-card { display: grid; gap: 14px; }
.settings-card h3 { margin: 0; }
.settings-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-card label:not(.check-label) { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.settings-card input:not([type=checkbox]) { width: 100%; }
.admin-tip { background: #eaf4f9; border-left: 4px solid #1675aa; padding: 12px 15px; border-radius: 5px; color: #426272; font-size: 13px; line-height: 1.6; }
.admin-layout { display: grid; grid-template-columns: minmax(550px,1fr) minmax(300px,360px); gap: 18px; align-items: start; }
.admin-list-wrap { margin-top: 0; }
.admin-table { min-width: 540px; }
.admin-table td { vertical-align: middle; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.settings-card .check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.settings-card .check-label input { width: auto; }
.sale-order-grid { table-layout: fixed; min-width: 100%; border-left: 1px solid #c9d7dc; }
.sale-order-grid col.sale-col-no { width: 52px; }
.sale-order-grid col.sale-col-product { width: var(--sale-product-width,280px); }
.sale-order-grid col.sale-col-unit { width: 52px; }
.sale-order-grid col.sale-col-history { width: var(--sale-history-width,76px); }
.sale-order-grid col.sale-col-quantity { width: var(--sale-quantity-width,64px); }
.sale-order-grid col.sale-col-original { width: var(--sale-original-width,75px); }
.sale-order-grid col.sale-col-discount { width: var(--sale-discount-width,70px); }
.sale-order-grid col.sale-col-price { width: var(--sale-price-width,75px); }
.sale-order-grid col.sale-col-amount { width: var(--sale-amount-width,85px); }
.sale-order-grid col.sale-col-remark { width: var(--sale-remark-width,110px); }
.sale-order-grid col.sale-col-action { width: 42px; }
.sale-order-grid th,.sale-order-grid td { border-right: 1px solid #c9d7dc; }
.sale-order-grid th { border-top: 1px solid #c9d7dc; }
.sale-order-grid td:last-child,.sale-order-grid th:last-child { border-right: 0; }
.sale-order-grid td { height: 45px; }
.sale-order-grid input { min-width: 0; width: 100%; }
.sale-order-grid .product-search { min-width: 0; }
.sale-order-grid td[data-sale-numeric],.sale-order-grid input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.auto-customer-note { margin: 8px 2px 3px; color: #5c7681; font-size: 12px; }
.customer-dialog { max-width: min(820px,94vw); }
.data-table .openable-row { cursor: pointer; }
.data-table .openable-row:hover { background: #eaf7f7; }
.workspace-tab[draggable="true"] { cursor: grab; user-select: none; }
.workspace-tab.dragging { opacity: .45; }
.workspace-tab.drop-before { box-shadow: inset 3px 0 0 #0d8791; }
.workspace-tab.drop-after { box-shadow: inset -3px 0 0 #0d8791; }
.print-count-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #e7f4f5; color: #126d78; font-size: 12px; white-space: nowrap; }
@media(max-width:980px) { .bill-meta > .print-count-badge { display: inline-flex; } }
#print-count { font-size: 12px; font-weight: 500; color: var(--muted); vertical-align: middle; margin-left: 8px; }
.operation-busy { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5,29,35,.48); cursor: progress; }
.operation-busy-card { display: grid; justify-items: center; gap: 10px; min-width: 245px; padding: 25px 30px; border-radius: 12px; background: #fff; color: #183039; box-shadow: 0 18px 50px rgba(0,0,0,.22); text-align: center; }
.operation-busy-card small { color: #65787f; }
.operation-spinner { width: 32px; height: 32px; border: 3px solid #c7e7e9; border-top-color: #0d8791; border-radius: 50%; animation: operation-spin .7s linear infinite; }
@keyframes operation-spin { to { transform: rotate(360deg); } }

@media(max-width:1100px){.template-editor-layout{grid-template-columns:1fr}.template-preview-panel{position:static}.category-manager{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}}
@media(max-width:640px){.template-grid-2,.edit-form{grid-template-columns:1fr}.edit-form .span-2{grid-column:auto}.template-actions{flex-direction:column}.login-layer{position:fixed;padding:20px;display:block}.login-layout{grid-template-columns:1fr;gap:14px}.login-brand img{width:130px;height:130px}.login-brand p{font-size:15px}.login-brand h1{font-size:37px;margin-bottom:12px}.login-brand span{font-size:11px}.login-card{padding:22px}.account-layout{grid-template-columns:1fr}}
@media print {
  html,body { width: var(--paper-width,241mm); height: auto; min-height: 0; margin: 0; padding: 0; overflow: visible !important; background: white; }
  .print-dialog { position: static !important; inset: auto !important; display: block !important; width: var(--paper-width,241mm) !important; max-width: none !important; max-height: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
  .print-sheet { width: var(--paper-width,241mm); margin: 0 !important; padding: 0 !important; border: 0 !important; background: white; overflow: visible !important; }
  .ndf-template { width: var(--paper-width,241mm); min-width: 0; min-height: var(--paper-height,140mm); box-shadow: none; }
  #print-sheet .ndf-template { zoom: 1 !important; }
  .ndf-content { break-inside: avoid; }
}
