.od-dialog{width:min(1100px,94vw);max-height:90vh;border:1px solid #ccd7e1;border-radius:18px;padding:24px;color:#20334e;background:#f5f8fb}.od-dialog::backdrop{background:#10213999}.od-dialog header{display:flex;justify-content:space-between;align-items:center}.od-dialog button,.od-dialog input,.od-dialog select,.od-dialog textarea{font:inherit;border:1px solid #cbd7e1;border-radius:7px;padding:9px;background:white;color:inherit}.od-dialog button{cursor:pointer}.od-layout{display:grid;grid-template-columns:225px 1fr;gap:24px;margin-top:20px}.od-layout nav{display:flex;flex-direction:column;gap:8px}.od-layout nav button{text-align:left}.od-layout nav .selected{background:#2d2b83;color:white}.od-card{padding:15px;border:1px solid #dce4ed;border-radius:10px;background:white;margin:12px 0}.od-layout form{display:grid;gap:12px}.od-layout label{display:flex;flex-direction:column;gap:6px}.od-layout fieldset label{flex-direction:row;align-items:center;margin:8px}.od-dialog button:disabled{opacity:.5}@media(max-width:650px){.od-layout{grid-template-columns:1fr}.od-layout nav{flex-direction:row;overflow:auto}.od-dialog{padding:14px}}
/* Library layout; print picker keeps its compact shell. */
.od-dialog{box-sizing:border-box;font:14px Arial,sans-serif;background:#f5f7fb;color:#26334f}
.od-library{width:min(1200px,96vw);padding:28px;border-radius:22px}
.od-library>header{padding-bottom:22px;border-bottom:1px solid #dce3ed;gap:20px}
.od-library>header h2{font-size:26px;letter-spacing:-.5px;margin:0}
.od-library .od-layout{grid-template-columns:210px minmax(0,1fr);gap:24px;margin-top:22px;min-height:320px}
.od-library .od-layout>nav{border-right:1px solid #dbe2ec;padding-right:16px;gap:5px}
.od-layout>nav h3{font-size:11px;letter-spacing:.06em;color:#69768b;margin:5px 10px 14px}
.od-library .od-layout>nav button{border:0;background:transparent;padding:13px 10px;font-size:13px;line-height:1.5;border-radius:9px}
.od-library .od-layout>nav .selected{background:#eceef5;color:#302c80;font-weight:700;box-shadow:inset 3px 0 #302c80}
.od-dialog button:focus-visible{outline:2px solid #508f93;outline-offset:2px}
.od-content{min-width:0}.od-content>h3{font-size:18px;margin:5px 0 20px}
.od-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.od-toolbar>span{font-weight:700;font-size:13px}.od-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.od-tools small{color:#758198;margin-right:6px}.od-tools button{font-size:12px;padding:9px 11px}
.od-table-wrap{max-width:100%;overflow:auto}.od-table-wrap table{width:100%;border-spacing:3px;table-layout:fixed;font-size:13px}
.od-table-wrap th{background:#302c80;color:white;border-radius:7px;text-align:left;padding:11px;font-size:11px;text-transform:uppercase;letter-spacing:.03em}
.od-table-wrap th:first-child{width:65px}.od-table-wrap th:last-child{width:110px}
.od-table-wrap td{border:1px solid #dce3ed;border-radius:7px;padding:12px 11px;overflow-wrap:anywhere}.od-table-wrap td button{font-size:12px}
.od-empty-cell{height:90px;text-align:center;color:#758198}
.od-empty{border:1px solid #dce3ed;border-radius:12px;padding:24px;color:#68778e;background:#fff;line-height:1.6}.od-empty strong{color:#26334f}.od-error{border-left:3px solid #b35b54}
/* Electronic-design entry reuses the corporate card and command hierarchy. */
.od-library .od-electronic{overflow:hidden;border:1px solid var(--line,#dce3e5);border-radius:10px;background:var(--paper,#fff);color:var(--ink,#1b3155)}
.od-electronic .od-electronic-heading{display:block;padding:13px 16px;background:#2d2b83;color:#fff;border:0}
.od-electronic-heading h3{margin:0;font-size:15px;line-height:1.4;color:inherit}
.od-electronic-heading p{margin:4px 0 0;font-size:12px;line-height:1.5;color:#e6e9ff}
.od-electronic-existing{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}
.od-electronic-existing strong{font-size:13px;color:inherit}.od-electronic-existing p{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted,#667177)}
.od-electronic-new{padding:14px 16px 16px;border-top:1px solid var(--line,#dce3e5);background:var(--erp-surface-muted,#f7fafb)}
.od-electronic-new h4{margin:0 0 12px;font-size:14px;color:inherit}
.od-electronic-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) auto;align-items:end;gap:12px}
.od-electronic-fields>label{min-width:0;font-size:12px;font-weight:700;color:inherit}
.od-dialog .od-electronic-fields select{box-sizing:border-box;width:100%;min-width:0;height:36px;min-height:36px;padding:6px 10px;border:1px solid var(--line,#dce3e5);border-radius:6px;background:var(--paper,#fff);color:inherit;font:inherit;font-weight:500}
.od-electronic .standard-command-set{display:flex;flex-shrink:0;min-width:0;max-width:100%;margin:0}
.od-dialog .od-electronic .standard-icon-command.od-electronic-open{--erp-command-height:48px;--erp-command-icon-size:32px;--erp-command-label-size:14px;min-width:200px;padding:7px 16px 7px 8px;gap:10px;border-radius:8px}
.od-electronic .od-electronic-open b{display:block}
.od-electronic .standard-icon-command.od-electronic-open .command-icon svg{width:22px;height:22px}
.od-electronic .standard-icon-command:disabled{cursor:not-allowed}
:root[data-theme=dark] .od-electronic-new{background:#132e43}
@media(max-width:850px){.od-electronic-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.od-electronic-fields>.standard-command-set{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:480px){.od-electronic-existing{flex-wrap:wrap}.od-electronic-fields{grid-template-columns:minmax(0,1fr)}.od-electronic .od-electronic-heading,.od-electronic-existing,.od-electronic-new{padding:12px}}
.od-notice{font-size:12px;color:#7b879c;line-height:1.6;border-top:1px solid #dce3ed;padding-top:16px;margin:22px 0 0}
.od-layout fieldset{border:1px solid #dce3ed;border-radius:10px}.od-layout textarea{min-height:80px;resize:vertical}
[data-theme=dark] .od-dialog{background:#202b3d;color:#e1e7f0}
[data-theme=dark] .od-dialog button,[data-theme=dark] .od-dialog input,[data-theme=dark] .od-dialog select,[data-theme=dark] .od-dialog textarea,[data-theme=dark] .od-empty{background:#263447;color:#e1e7f0;border-color:#45536a}
[data-theme=dark] .od-library .od-layout>nav .selected{background:#353455;color:#dedfff}[data-theme=dark] .od-empty strong{color:#e1e7f0}
@media(max-width:650px){.od-library{padding:16px}.od-library>header h2{font-size:22px}.od-library .od-layout{grid-template-columns:1fr;gap:16px}.od-library .od-layout>nav{flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid #dbe2ec;padding:0 0 10px}.od-layout>nav h3{display:none}.od-library .od-layout>nav button{flex:0 0 145px;font-size:12px}.od-table-wrap table{min-width:570px}.od-toolbar{align-items:flex-start}}
/* Corporate file picker; keep the native input, keyboard and disabled behavior. */
.od-dialog input[type=file]{width:100%;min-width:0;box-sizing:border-box;padding:7px;background:var(--erp-surface,#fff);color:#26334f;font-size:13px;font-weight:500;cursor:pointer}
.od-dialog input[type=file]::file-selector-button{font:inherit;font-weight:700;color:#fff;border:1px solid #397f82;border-radius:7px;min-height:38px;padding:8px 15px 8px 39px;margin-right:12px;cursor:pointer;background-color:#438f92;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V3m-5 5 5-5 5 5M4 15v5a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;transition:background-color .15s ease}
.od-dialog input[type=file]:hover:not(:disabled)::file-selector-button{background-color:#34777b}
.od-dialog input[type=file]:focus-visible{outline:2px solid #438f92;outline-offset:3px}
.od-dialog input[type=file]:disabled{opacity:.55;cursor:not-allowed}
.od-dialog input[type=file]:disabled::file-selector-button{cursor:not-allowed}
[data-theme=dark] .od-dialog input[type=file]{background:#263447;color:#e1e7f0}
@media(max-width:650px){.od-dialog input[type=file]::file-selector-button{margin-right:8px;padding-right:10px}}
/* Scoped corporate design editor: do not inherit full-width checkbox geometry. */
.od-library .od-content .od-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;border:1px solid #dce3ed;border-radius:12px;background:#fff;align-items:start}
.od-library .od-editor>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;margin:0;font-size:13px;font-weight:600;color:#26334f}
.od-library .od-editor>label>input,.od-library .od-editor>label>select,.od-library .od-editor>label>textarea{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;padding:7px 10px;font-size:13px;font-weight:400;border-radius:7px}
.od-library .od-editor>label>textarea{height:76px;min-height:76px;resize:vertical}
.od-library .od-editor .od-wide,.od-library .od-editor .od-menu-options,.od-editor-actions,.od-editor-status{grid-column:1/-1}
.od-library .od-editor .od-menu-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px;margin:0;min-width:0;background:#f5f7fb}
.od-menu-options legend{padding:0 6px;font-size:13px;font-weight:700;color:#302c80}
.od-library .od-editor .od-menu-options>label{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;margin:0;padding:10px 12px;min-width:0;border:1px solid #dce3ed;border-radius:7px;background:white;font-size:13px;font-weight:500;cursor:pointer;line-height:1.4}
.od-library .od-editor .od-menu-options input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px;min-height:18px;margin:0;padding:0;accent-color:#438f92;cursor:pointer}
.od-menu-options>label:has(input:checked){border-color:#438f92!important;background:#eef9f8!important}
.od-editor-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid #dce3ed}
.od-editor-actions button{min-height:36px;font-size:13px;font-weight:600}
.od-dialog .od-editor-actions .od-primary{background:#438f92;color:white;border-color:#397f82}
.od-editor-status:empty{display:none}.od-editor-status{margin:0;font-size:13px;color:#a43c36}
.od-editor input:focus-visible,.od-editor select:focus-visible,.od-editor textarea:focus-visible{outline:2px solid #438f92;outline-offset:2px}
[data-theme=dark] .od-library .od-editor{background:#202b3d;border-color:#45536a}
[data-theme=dark] .od-library .od-editor>label,[data-theme=dark] .od-menu-options legend{color:#e1e7f0}
[data-theme=dark] .od-library .od-editor .od-menu-options{background:#202b3d}
[data-theme=dark] .od-library .od-editor .od-menu-options>label{background:#263447;border-color:#45536a}
[data-theme=dark] .od-menu-options>label:has(input:checked){background:#21484b!important}
@media(max-width:650px){.od-library .od-content .od-editor{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}.od-library .od-editor .od-menu-options{grid-template-columns:minmax(0,1fr)}.od-editor-actions{flex-wrap:wrap}}
.od-fr-editor .od-fr-tools{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}
.od-fr-tools .od-native-launch{display:inline-flex;align-items:center;justify-content:center;font:inherit;text-decoration:none;border:1px solid #397f82;border-radius:7px;padding:9px;background:#438f92;color:#fff;cursor:pointer}
.od-fr-tools>button.od-primary{background:#438f92;color:#fff;border-color:#397f82}
.od-fr-tools [hidden]{display:none!important}
.od-fr-tools .od-native-launch:focus-visible{outline:2px solid #508f93;outline-offset:2px}
.od-fr-file{display:flex;align-items:center;gap:12px;min-width:0;padding:8px;border:1px solid #cad7e2;border-radius:10px;background:white;position:relative}
.od-fr-file>span{overflow-wrap:anywhere;min-width:0;font-weight:400}
.od-fr-file-field{display:flex;flex-direction:column;gap:6px;font-weight:600}
.od-fr-file .od-primary{flex-shrink:0;background:#438f92;color:white;border-color:#397f82}
.od-dialog .od-fr-file input.od-fr-file-input[type=file]{display:none!important;min-width:0;min-height:0;padding:0;border:0;opacity:0!important;pointer-events:none}
.od-fr-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;font-size:13px;font-weight:700;white-space:nowrap}
.od-fr-upload svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.od-fr-file-field>small{font-weight:400;color:#758198;font-size:12px}
.od-fr-editor .od-fr-advanced{margin:0;padding:16px;background:#f7f9fc}
.od-fr-advanced[open]>summary{padding-bottom:14px;border-bottom:1px solid #dce3ed}
.od-fr-import-body{display:grid;gap:14px;padding-top:14px;min-width:0}
.od-fr-file-actions{display:flex;gap:8px;flex-wrap:wrap}
.od-fr-file-actions button{min-height:36px;font-size:13px;font-weight:600}
[data-theme=dark] .od-fr-editor .od-fr-advanced{background:#202b3d;border-color:#45536a}
[data-theme=dark] .od-fr-advanced>summary{color:#e1e7f0}
@media(max-width:650px){.od-fr-file{flex-wrap:wrap}.od-fr-file>span{flex:1 1 120px}.od-fr-file-actions button{max-width:100%;white-space:normal;text-align:left}}
[data-theme=dark] .od-fr-file{background:#202b3d;border-color:#45536a}
.od-fr-editor details{margin-top:16px;padding:16px;border:1px solid #dce3ed;border-radius:12px;overflow-wrap:anywhere}
.od-fr-editor details summary{cursor:pointer;font-weight:700;color:#1b315a}
.od-fr-editor .od-editor-status{white-space:pre-wrap}
.od-fr-editor .od-editor-status{color:#426e70}
.od-design-tabs{display:flex;gap:4px;width:fit-content;max-width:100%;flex-wrap:wrap;padding:4px;margin-bottom:18px;border-radius:10px;background:#e8edf3}
.od-design-tabs [role=tab]{border:0;background:transparent;color:#69768b;font-size:13px;padding:10px 14px}
.od-design-tabs [aria-selected=true]{background:#fff;color:#26334f;font-weight:700;box-shadow:0 1px 4px #172d4d18}
.od-design-badge{display:block;margin-top:7px;color:#65788b;font-size:11px;line-height:1.5}
.od-table-wrap td:last-child>button{margin:3px 4px 3px 0;max-width:100%;white-space:normal}
.od-content:has(.od-design-tabs) .od-table-wrap th:last-child{width:200px}
.od-library .od-table-wrap td{padding:8px 10px;vertical-align:middle}
.od-library .od-design-badge{margin-top:4px;line-height:1.3}
.od-library .od-row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.od-library .od-row-actions button{flex:0 0 auto;margin:0;min-height:28px;height:auto;padding:5px 8px;font-size:11px;line-height:16px;white-space:nowrap;border-radius:6px}
.od-library .od-row-actions .od-delete{color:#a3413a;border-color:#dfb6b1;background:#fff8f7}
.od-library .od-row-actions .od-delete:hover:not(:disabled){background:#fce8e5;border-color:#bd746c}
[data-theme=dark] .od-library .od-row-actions .od-delete{color:#f3b7af;background:#382c33;border-color:#865951}
[data-theme=dark] .od-design-tabs{background:#182438}
[data-theme=dark] .od-design-tabs [aria-selected=true]{background:#353455;color:#eef3ff}
[data-theme=dark] .od-design-badge{color:#a9bacd}
.od-fr-editor .od-editor-status.od-status-error{color:#a43c36}
.od-dialog.od-pdf{width:min(1100px,95vw);height:90vh;max-height:90vh;display:flex;flex-direction:column}
.od-pdf iframe{flex:1;min-height:0;width:100%;border:1px solid #dce3ed;border-radius:10px;background:white}
.od-pdf>a{align-self:flex-end;margin:8px 0;color:#477f84}

/* Shared print family only: saved documents, basic print and PDF preview.
   Commands retain corporate-commands.css metrics and the shared SVG factory. */
.od-dialog.od-print-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--erp-border,#d4e1e6);border-top:3px solid var(--erp-accent,#078f91);border-radius:12px;color:var(--ink,#062e5b);background:var(--erp-surface,#fff);font-family:var(--ui-font,Arial,sans-serif);overflow:auto}
.od-print-dialog::backdrop{background:rgba(6,30,53,.5)}
.od-print-dialog .od-print-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 20px;border-bottom:1px solid var(--erp-border,#d4e1e6);background:var(--erp-surface,#fff)}
.od-print-identity{display:flex;align-items:center;gap:12px;min-width:0}
.od-print-mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--erp-border,#d4e1e6);border-radius:8px;color:var(--erp-accent,#078f91);background:var(--brand-turquoise-pale,#e7f6f5)}
.od-print-mark .command-icon{display:grid;place-items:center;width:24px;height:24px}
.od-print-mark svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.od-print-caption{min-width:0}
.od-print-caption small{display:block;margin-bottom:4px;color:var(--erp-accent,#078f91);font-size:10px;font-weight:750;letter-spacing:1.4px}
.od-print-dialog .od-print-caption h2{margin:0;color:var(--ink,#062e5b);font-size:18px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.od-print-dialog .od-print-body{display:grid;gap:14px;padding:18px 20px}
.od-print-dialog .od-print-status{display:block;margin:0;padding:10px 12px;border:1px solid var(--erp-border,#d4e1e6);border-left:3px solid var(--erp-accent,#078f91);border-radius:6px;color:var(--ink,#062e5b);background:var(--erp-surface-muted,#f3f6f7);font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.od-print-dialog .od-print-status[data-state=warning]{border-color:#e4d09d;border-left-color:#ab791c;color:#765119;background:#fff8e8}
.od-print-dialog .od-print-status[data-state=error]{border-color:#e4c0bd;border-left-color:#ae4841;color:#993e37;background:#fff3f1}
.od-print-dialog .od-print-status[data-state=error]::before,.od-print-dialog .od-print-status[data-state=warning]::before{content:'!';display:inline-grid;place-items:center;width:16px;height:16px;margin-right:7px;border:1px solid currentColor;border-radius:50%;font-size:10px;font-weight:800}
.od-print-dialog .od-print-field{display:grid;gap:7px;margin:0;color:var(--ink,#062e5b);font-size:12px;font-weight:650}
.od-print-dialog .od-print-field select{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;margin:0;padding:6px 10px;border:1px solid var(--erp-border,#d4e1e6);border-radius:6px;color:var(--ink,#062e5b);background:var(--erp-surface,#fff);font-family:inherit;font-size:12px;font-weight:500}
.od-print-dialog select:focus-visible,.od-print-dialog button:focus-visible{outline:2px solid var(--erp-focus-border,#6654ff);outline-offset:2px}
.od-print-dialog .od-print-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0;padding:12px 20px;border-top:1px solid var(--erp-border,#d4e1e6)}
.od-print-dialog .od-print-note{margin:0;padding:0 20px 16px;color:var(--muted,#667986);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.od-print-dialog .od-print-note:empty{display:none}
.od-label-screens{box-sizing:border-box;width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--erp-border,#d4e1e6);border-radius:16px;background:var(--erp-surface,#fff);color:var(--ink,#1c3359)}
.od-label-screens[open]{display:flex;flex-direction:column;gap:10px}.od-label-screens>h2,.od-label-screens>p{margin:0}.od-label-screens>section{min-height:0;overflow:auto}.od-label-screens footer{flex:none;justify-content:flex-end;gap:8px}.od-label-screens table{width:100%}.od-label-screens td{padding:7px}.od-label-screens input[type=checkbox]{width:18px;height:18px;accent-color:#4941a1}.od-label-screens small{display:block;color:var(--muted,#627080);font-size:11px}.od-screen-summary{max-width:360px;white-space:normal;overflow-wrap:anywhere}
.od-label-screens::backdrop{background:#16294c66}
.od-print-dialog .od-print-command:not(.standard-icon-command){min-height:32px;padding:6px 10px;border-radius:4px;border:1px solid var(--erp-border,#d4e1e6);color:var(--ink,#062e5b);background:var(--erp-surface,#fff);font-size:12px;font-weight:650}
.od-print-dialog .od-print-command.primary:not(.standard-icon-command){border-color:var(--erp-accent,#078f91);color:#fff;background:linear-gradient(135deg,#0aa7a5,#087d86)}
.od-print-dialog .od-print-command:disabled{cursor:default;opacity:.5}
.od-dialog.od-print-dialog.od-pdf{width:min(1100px,calc(100vw - 32px));height:calc(100dvh - 48px);max-height:calc(100dvh - 32px);overflow:hidden}
.od-print-dialog.od-pdf .od-print-header,.od-print-dialog.od-pdf .od-print-actions{flex:0 0 auto}
.od-print-dialog.od-pdf iframe{box-sizing:border-box;flex:1;min-height:0;width:calc(100% - 32px);margin:16px;border:1px solid var(--erp-border,#d4e1e6);border-radius:6px;background:white}
[data-theme=dark] .od-print-dialog .od-print-status[data-state=warning]{border-color:#77633f;border-left-color:#d5ae53;color:#f0d5a3;background:#332e25}
[data-theme=dark] .od-print-dialog .od-print-status[data-state=error]{border-color:#805452;border-left-color:#e48c84;color:#f1b9b3;background:#37282e}
:root[data-theme=dark] .od-dialog.od-print-dialog{--erp-surface-muted:#112d42}
:root[data-theme=dark] .od-print-dialog .standard-command-set .standard-icon-command:not(.primary){color:var(--ink,#eef7f8)}
@media(max-width:650px){.od-dialog.od-print-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.od-print-dialog .od-print-header{padding:14px;gap:8px}.od-print-identity{gap:8px}.od-print-dialog .od-print-caption h2{font-size:16px}.od-print-dialog .od-print-body{padding:14px}.od-print-dialog .od-print-actions{padding:12px 14px;gap:6px}.od-print-dialog .od-print-note{padding:0 14px 14px}.od-dialog.od-print-dialog.od-pdf{width:calc(100vw - 24px);height:calc(100dvh - 24px)}.od-print-dialog.od-pdf iframe{width:calc(100% - 20px);margin:10px}}

/* Labels: compact settings above a full-width PDF, with fixed commands and internal scroll. */
.od-dialog.od-print-dialog.od-label-workspace[open]{display:flex;flex-direction:column;width:min(1480px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.od-label-workspace [hidden]{display:none!important}
.od-label-workspace .od-print-header{flex:none;padding:8px 12px;gap:8px}
.od-label-workspace .od-print-caption small{font-size:9px;margin-bottom:2px}
.od-label-workspace .od-print-caption h2{font-size:18px}
.od-label-workspace .od-print-body{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;gap:8px;padding:8px 12px;overflow:auto}
.od-label-settings{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px 12px;flex:none;min-width:0}
.od-label-settings>.od-print-status,.od-label-settings>.od-label-items,.od-label-settings>p{grid-column:1/-1}
.od-label-workspace .od-print-status{padding:4px 8px;font-size:12px;line-height:1.4;border-radius:6px}
.od-label-workspace .od-print-field{gap:3px;min-width:0;font-size:11px}
.od-label-workspace .od-print-field select{height:32px;min-height:32px;padding:4px 8px;font-size:12px;text-overflow:ellipsis}
.od-label-workspace .od-label-items{max-height:132px;overflow:auto;min-width:0;scrollbar-gutter:stable;border:1px solid var(--erp-border,#d4e1e6);border-radius:8px;padding:2px}
.od-label-workspace .od-label-items table{width:100%;min-width:650px;table-layout:fixed;border-collapse:separate;border-spacing:3px;font-size:12px;margin:0}
.od-label-workspace .od-label-items th{position:sticky;top:0;z-index:1;background:var(--document-header-bg,#2d2b83);color:var(--document-header-fg,#fff);font-size:7pt;font-weight:700;text-align:left;border-radius:6px;padding:3px 7px;white-space:nowrap}
.od-label-workspace .od-label-items td{padding:3px 7px;height:30px;line-height:1.25;border:1px solid var(--erp-border,#d4e1e6);border-radius:6px;background:var(--erp-surface,#fff);color:var(--ink,#062e5b);overflow-wrap:anywhere}
.od-label-workspace .od-label-items th:nth-child(1){width:42px}.od-label-workspace .od-label-items th:nth-child(2){width:16%}.od-label-workspace .od-label-items th:nth-child(4){width:65px}.od-label-workspace .od-label-items th:nth-child(5){width:18%}.od-label-workspace .od-label-items th:nth-child(6){width:92px}
.od-label-workspace .od-label-items :is(th,td):first-child{text-align:center}
.od-label-workspace .od-label-items input[type=checkbox]{appearance:auto;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;vertical-align:middle;accent-color:var(--erp-accent,#4c9899)}
.od-label-workspace .od-label-items input[type=number]{box-sizing:border-box;width:100%;min-width:0;height:28px;min-height:28px;padding:2px 6px;border:1px solid var(--erp-border,#d4e1e6);border-radius:5px;background:var(--erp-surface,#fff);color:inherit;font:inherit;text-align:right}
.od-label-workspace .od-label-items input:focus-visible{outline:1px solid var(--erp-focus-border,#6654ff);outline-offset:1px}
.od-label-workspace .od-label-items input:disabled{opacity:.5}
.od-label-preview{display:flex;flex-direction:column;flex:1;min-height:200px;min-width:0;overflow:hidden;border:1px solid var(--erp-border,#d4e1e6);border-radius:8px;background:var(--erp-surface-muted,#f3f6f7)}
.od-label-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:5px 8px;border-bottom:1px solid var(--erp-border,#d4e1e6);background:var(--erp-surface,#fff);font-size:12px;color:var(--ink,#062e5b)}
.od-label-preview-bar .standard-command-set{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.od-label-preview-bar a{text-decoration:none}
.od-label-preview-surface{position:relative;flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center}
.od-label-workspace .od-label-preview iframe{display:block;flex:1;min-height:0;min-width:0;width:100%;height:100%;border:0;background:var(--erp-surface-muted,#f3f6f7)}
.od-label-preview-empty{align-self:center;margin:16px;color:var(--muted,#667986);text-align:center;font-size:13px;line-height:1.5}
.od-label-workspace .od-print-actions{flex:none;padding:6px 12px;gap:6px;background:var(--erp-surface,#fff)}
.od-label-workspace .od-print-actions:empty{display:none}
.od-label-workspace .od-print-note{flex:none;padding:0 12px 6px;font-size:11px;line-height:1.4}
@media(max-width:650px){.od-label-settings{grid-template-columns:minmax(0,1fr)}.od-label-preview-bar{flex-wrap:wrap}.od-label-preview-bar .standard-command-set{justify-content:flex-start}.od-label-workspace .od-print-body{padding:6px}.od-label-workspace .od-print-actions{padding:6px}.od-label-workspace .od-print-header{padding:6px 8px}.od-label-workspace .od-label-items{max-height:110px}}

/* Product label selection: preview on the left, full-height product list on the right. */
.od-label-workspace:has(.od-label-items) .od-print-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
.od-label-workspace .od-label-settings:has(>.od-label-items){grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.od-label-settings:has(>.od-label-items)>:not(.od-label-items){flex:none}
.od-label-workspace .od-label-settings>.od-label-items{flex:1;min-height:0;max-height:none}
.od-label-workspace:has(.od-label-items) .od-label-preview{grid-column:1;grid-row:1;min-height:0}
@media(max-width:650px){
 .od-label-workspace:has(.od-label-items) .od-print-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,.45fr) minmax(0,.55fr)}
 .od-label-workspace .od-label-settings:has(>.od-label-items){grid-column:1;grid-row:2;gap:5px}
}
