/* ERP shell: all overrides are scoped to the application, never the WP theme. */
:root:not([data-dz-theme=dark]){--dz-bg:#f4f6f8;--dz-surface:#fff;--dz-field:#f8fafb;--dz-border:#e0e7ec;--dz-text:#20353d;--dz-muted:#627580;--dz-accent:#126c59;--dz-button:#126c59;color-scheme:light}
.dz-erp-workspace{--dz-radius:12px;background:var(--dz-bg)}
.dz-erp-workspace a,.dz-erp-workspace h1,.dz-erp-workspace h2,.dz-erp-workspace h3,.dz-erp-workspace input,.dz-erp-workspace button,.dz-erp-workspace select,.dz-erp-workspace textarea{font-family:'Segoe UI',Arial,sans-serif}
.dz-skyboot-icon{display:inline-block;width:20px;min-width:20px;text-align:center;font-size:20px;line-height:1}
.dz-erp-workspace .dz-sidebar nav a .dz-skyboot-icon{font-size:18px;opacity:.9}
.dz-erp-workspace .dz-module-card>.dz-skyboot-icon{margin-left:auto;font-size:16px;opacity:.5}
.dz-erp-workspace [hidden]{display:none!important}
.dz-erp-workspace .dz-sidebar{width:254px;padding:22px 14px 12px;background:#142f31;border-right:0;scrollbar-width:thin;scrollbar-color:#52716d transparent}
.dz-erp-workspace .dz-brand{background:transparent;margin:0 12px 22px;padding:0;text-decoration:none}
.dz-erp-workspace .dz-brand img{max-width:170px;height:50px;object-fit:contain;object-position:left center}
.dz-erp-workspace .dz-brand>span{display:block;margin-top:8px;color:#91ada8;font-size:9px;letter-spacing:2px}
.dz-erp-workspace .dz-module-search{display:flex;align-items:center;gap:8px;margin:0 4px 20px;padding:0 10px;background:#213e40;border:1px solid #46605e;border-radius:8px;color:#b9d0cc;flex-shrink:0}
.dz-erp-workspace .dz-module-search svg{width:16px;flex-shrink:0}
.dz-erp-workspace .dz-module-search input{width:100%;min-width:0;background:transparent;color:#fff;border:0;padding:10px 0;font-size:12px;min-height:40px}
.dz-erp-workspace .dz-module-search input::placeholder{color:#b9cbc7}
.dz-erp-workspace .dz-sidebar nav{display:block}
.dz-erp-workspace .dz-nav-group{margin-bottom:18px}
.dz-erp-workspace .dz-nav-caption{color:#99b8b1;font:600 10px/1.5 'Segoe UI',sans-serif;letter-spacing:1.2px;text-transform:uppercase;margin:0 0 6px;padding:0 12px}
.dz-erp-workspace .dz-sidebar nav a{padding:9px 12px;gap:12px;min-height:40px;margin:2px 0;color:#d0deda;font-size:12px;border-radius:7px}
.dz-erp-workspace .dz-sidebar nav a svg{width:18px;height:18px;flex-shrink:0;opacity:.8}
.dz-erp-workspace .dz-sidebar nav a[aria-current]{background:#c8eada;color:#153e34;box-shadow:none;font-weight:650}
.dz-erp-workspace .dz-sidebar nav a:hover{background:#2a4d48;color:#fff}
.dz-erp-workspace .dz-sidebar-note{padding:14px 12px 0;border-top:1px solid #36514e;color:#c5d7d1;display:flex;align-items:center;gap:7px}
.dz-erp-workspace .dz-sidebar-note small{margin-left:auto;color:#a0bbb2;font-size:10px}
.dz-online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a3dcb8}
.dz-erp-workspace .dz-nav-empty{padding:0 14px;color:#d4e5df;font-size:12px}
.dz-erp-workspace .dz-workarea{margin-left:254px}
.dz-erp-workspace .dz-toolbar{height:68px;padding:0 32px;position:sticky;top:0;z-index:30}
.dz-toolbar-label>span{padding:0 12px;opacity:.5}.dz-toolbar-label>strong{font-weight:500;color:var(--dz-text)}
.dz-toolbar-currency{font-size:10px;letter-spacing:1px;padding:5px 8px;border:1px solid var(--dz-border);border-radius:5px;color:var(--dz-muted)}
.dz-erp-workspace .dz-toolbar-right{gap:14px}.dz-erp-workspace .dz-avatar{border-radius:9px;background:#d7ece3;color:#1c5948}
.dz-erp-workspace .dz-main{padding:30px 32px 48px;max-width:1660px}
.dz-erp-workspace .dz-page-heading{margin-bottom:24px}.dz-erp-workspace h1{font-size:28px;letter-spacing:-.7px;font-weight:650}.dz-erp-workspace h2{font-size:17px;letter-spacing:-.2px}
.dz-erp-workspace .dz-page-heading p:last-child{margin:8px 0 0}.dz-erp-workspace .dz-date{border:0;padding:0;font-size:12px}
.dz-erp-workspace .dz-panel{border-radius:var(--dz-radius);padding:24px;margin-bottom:22px;box-shadow:0 2px 5px #152d3803}
.dz-erp-workspace .dz-panel>p{color:var(--dz-muted);max-width:880px}
.dz-launchpad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.dz-erp-workspace .dz-module-card{display:flex;gap:12px;align-items:center;background:var(--dz-surface);border:1px solid var(--dz-border);border-radius:10px;padding:18px 16px;min-width:0;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.dz-module-card strong{font-size:13px;color:var(--dz-text);display:block}.dz-module-card small{font-size:11px;line-height:1.5;display:block;margin-top:4px}
.dz-module-card>svg{margin-left:auto;min-width:16px;width:16px;opacity:.5}
.dz-module-icon{width:38px;height:38px;min-width:38px;display:grid;place-items:center;background:#e7f3ec;border-radius:10px;color:#22755a}
.dz-erp-workspace .dz-module-card:hover{border-color:var(--dz-accent);box-shadow:0 3px 12px #123d350c}
.dz-erp-workspace .dz-cards{gap:16px;margin-bottom:18px}.dz-erp-workspace .dz-card{min-height:116px;border-radius:10px;padding:20px}.dz-erp-workspace .dz-card:after{display:none}.dz-erp-workspace .dz-card strong{font-size:28px;letter-spacing:-.7px}.dz-erp-workspace .dz-card span{font-size:12px}
:root:not([data-dz-theme=dark]) .dz-erp-workspace .dz-card.danger strong{color:#b43843}
:root:not([data-dz-theme=dark]) .dz-erp-workspace .dz-card.warn strong{color:#946211}
.dz-erp-workspace .dz-secondary-cards{gap:12px}.dz-erp-workspace .dz-secondary-cards .dz-card{min-height:90px;padding:16px}
.dz-erp-workspace .button,.dz-erp-workspace button:not(.dz-icon-button):not(.dz-backdrop){font-size:12px;min-height:40px;border-radius:7px;font-weight:550}
.dz-erp-workspace .button-primary,.dz-erp-workspace button.button-primary{background:var(--dz-button)!important;color:var(--dz-bg)!important}
.dz-erp-workspace input,.dz-erp-workspace select,.dz-erp-workspace textarea{min-height:43px;border-radius:7px}
.dz-erp-workspace .dz-erp-form{gap:18px}.dz-erp-workspace .dz-erp-form label{gap:7px;font-size:12px;font-weight:550;color:var(--dz-text)}
.dz-erp-workspace th{font-size:10px;font-weight:650;padding:13px 16px}.dz-erp-workspace td{font-size:12px;padding:16px;line-height:1.6}.dz-erp-workspace tbody tr:hover{background:var(--dz-field)}
.dz-erp-workspace .dz-erp-table td:last-child{min-width:185px;max-width:290px}.dz-erp-workspace .dz-erp-table td .button{margin:0 5px 6px 0;padding:6px 10px;min-height:32px;font-size:11px}
.dz-erp-workspace .dz-erp-table td form{display:inline-flex;max-width:100%;margin:0}.dz-erp-workspace .dz-erp-table td details form{display:grid;margin:8px 0}
.dz-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dz-list-heading h2{margin:0}.dz-list-heading .dz-help{margin:5px 0 0}
.dz-list-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:18px}.dz-list-tools label{display:grid;gap:6px;font-size:11px;color:var(--dz-muted)}.dz-list-tools label:first-child{flex:1;min-width:160px}.dz-list-tools input{width:100%}
.dz-workflow-steps{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 22px;padding:14px 18px;border:1px solid var(--dz-border);border-radius:10px;background:var(--dz-surface)}
.dz-workflow-steps>span{font-size:10px;letter-spacing:1px;color:var(--dz-muted);text-transform:uppercase;margin-right:8px}
.dz-workflow-steps a{display:flex;align-items:center;gap:8px;color:var(--dz-muted);font-size:12px;padding:5px 8px;border-radius:5px}.dz-workflow-steps a[aria-current]{background:var(--dz-field);color:var(--dz-accent);font-weight:650}.dz-workflow-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid var(--dz-border);font-size:10px}
.dz-erp-workspace details.dz-editor{margin:0 0 22px;border:1px solid var(--dz-border);border-radius:12px;background:var(--dz-surface);scroll-margin-top:85px}
.dz-erp-workspace details.dz-editor>summary{padding:20px 24px;font-size:14px;font-weight:600;color:var(--dz-text)}
.dz-erp-workspace details.dz-editor[open]>summary{border-bottom:1px solid var(--dz-border);margin-bottom:20px}
.dz-erp-workspace .dz-editor>.dz-panel{border:0;border-radius:0;box-shadow:none;margin:0 0 12px;padding:12px 24px 24px}
.dz-erp-workspace .dz-editor .dz-panel:last-child{margin-bottom:0}
.dz-status-pill{display:inline-flex;padding:3px 9px;background:var(--dz-field);border:1px solid var(--dz-border);border-radius:20px;font-size:10px;font-weight:600;white-space:nowrap}
.dz-status-pill[data-status=posted],.dz-status-pill[data-status=accepted]{background:#e2f2e9;color:#236247;border-color:#c5dfcf}.dz-status-pill[data-status=draft]{background:#fff4d9;color:#785714;border-color:#f0e1b5}.dz-status-pill[data-status=void]{background:#fbe9e9;color:#903a40;border-color:#e9cece}
.dz-empty-state{text-align:center;padding:36px!important;color:var(--dz-muted)}
.dz-empty-state strong{display:block;color:var(--dz-text);font-size:15px;margin-bottom:8px}
.dz-skip{position:fixed;left:270px;top:-80px;z-index:100;background:var(--dz-surface);padding:12px 20px;border:2px solid var(--dz-accent);border-radius:6px}.dz-skip:focus{top:12px}
.dz-elementor-dashboard{margin-bottom:24px}.dz-elementor-dashboard:empty{display:none}
@media(max-width:1250px){.dz-launchpad{grid-template-columns:repeat(2,minmax(0,1fr))}.dz-erp-workspace .dz-main{padding:24px}.dz-erp-workspace .dz-toolbar{padding:0 24px}.dz-toolbar-label{font-size:11px}}
@media(max-width:900px){.dz-erp-workspace .dz-workarea{margin-left:0}.dz-erp-workspace .dz-sidebar{width:254px}.dz-erp-workspace .dz-toolbar{height:64px}.dz-erp-workspace .dz-main{padding:22px 18px}.dz-skip{left:18px}.dz-erp-workspace .dz-toolbar-right{gap:8px}}
@media(max-width:600px){.dz-erp-workspace .dz-toolbar{padding:0 12px}.dz-toolbar-currency{display:none}.dz-erp-workspace .dz-main{padding:22px 14px}.dz-erp-workspace h1{font-size:25px}.dz-launchpad{gap:10px}.dz-erp-workspace .dz-module-card{padding:13px 10px;gap:8px}.dz-module-card small,.dz-module-card>svg,.dz-erp-workspace .dz-module-card>.dz-skyboot-icon{display:none}.dz-module-card strong{font-size:12px}.dz-module-icon{width:30px;height:32px;min-width:30px}.dz-erp-workspace .dz-panel{padding:18px}.dz-workflow-steps{gap:4px;padding:12px}.dz-workflow-steps>span{width:100%;margin-bottom:6px}.dz-workflow-steps a{font-size:11px;padding:5px}.dz-list-heading{align-items:flex-start;flex-wrap:wrap}.dz-list-tools{gap:10px}.dz-list-tools label{flex:1;min-width:120px}.dz-erp-workspace .dz-editor>.dz-panel{padding:8px 16px 20px}.dz-erp-workspace details.dz-editor>summary{padding:18px 16px}.dz-erp-workspace .dz-line-editor{grid-template-columns:1fr 1fr}.dz-erp-workspace .dz-line-editor>label:nth-child(-n+2){grid-column:1/-1}}
@media print{.dz-erp-workspace .dz-toolbar,.dz-erp-workspace .dz-sidebar,.dz-launchpad,.dz-workflow-steps,.dz-skip{display:none!important}.dz-erp-workspace .dz-workarea{margin:0}.dz-erp-workspace .dz-main{padding:0}}

.dz-erp-workspace .dz-record-actions{margin:0}.dz-erp-workspace .dz-record-actions>summary{padding:4px 0;font-size:11px}.dz-erp-workspace .dz-record-actions>div{padding-top:8px}.dz-elementor-dashboard .elementor-heading-title{color:var(--dz-text)}

.dz-erp-workspace .dz-erp-form label:has(input[type=checkbox]){display:flex;align-items:center;align-self:end;min-height:43px;gap:9px}.dz-erp-workspace .dz-erp-form input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0}

/* Accounting workspace */
.dz-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}.dz-report-card{display:block!important;color:inherit;text-decoration:none;border-top:3px solid #087f8c!important}.dz-report-card:hover{border-color:#087f8c;box-shadow:0 8px 24px #12334212}.dz-report-card>svg,.dz-report-card>i{color:#087f8c}.dz-report-card p{color:#526375;line-height:1.6;min-height:48px}.dz-report-card strong{color:#087f8c;font-size:13px}.dz-report-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.dz-report-filters label{flex:1;min-width:160px}.dz-report-filters select,.dz-report-filters input{width:100%}.dz-report-heading{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid #dce5eb;padding-bottom:20px;margin-bottom:20px}.dz-report-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.2px;color:#087f8c}.dz-report-heading h2{font-size:25px;margin:8px 0}.dz-report-heading small{color:#607080;line-height:1.7}.dz-report-metrics{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.dz-report-metrics>div{flex:1;min-width:160px;background:#f0f6f7;border:1px solid #e0e9eb;border-radius:9px;padding:15px}.dz-report-metrics small,.dz-report-metrics strong{display:block}.dz-report-metrics strong{font-size:21px;margin-top:7px;font-variant-numeric:tabular-nums}.dz-accounting-report td{font-variant-numeric:tabular-nums}.dz-report-notes{font-size:12px;color:#526375;margin-top:20px;line-height:1.7}.dz-report-controls{margin-bottom:20px}.dz-report-controls .button{white-space:normal}.dz-accounting-report .dz-table-scroll{max-height:70vh}.dz-accounting-report thead th{position:sticky;top:0;background:#edf4f5;z-index:1}
@media(max-width:640px){.dz-report-heading{display:block}.dz-report-filters>*{width:100%}.dz-report-grid{grid-template-columns:1fr}.dz-report-controls.dz-print-actions{display:flex;flex-wrap:wrap}.dz-report-metrics>div{min-width:120px}}
@media print{body:has(.dz-accounting-report) .dz-report-controls,body:has(.dz-accounting-report) .dz-page-header,body:has(.dz-accounting-report) .dz-topbar,body:has(.dz-accounting-report) .dz-sidebar{display:none!important}.dz-accounting-report{padding:0!important;border:0!important;box-shadow:none!important;max-width:none!important}.dz-accounting-report .dz-table-scroll{overflow:visible!important;max-height:none!important}.dz-accounting-report table{width:100%!important;font-size:8pt;table-layout:auto}.dz-accounting-report th,.dz-accounting-report td{white-space:normal!important;padding:5px!important;overflow-wrap:anywhere}.dz-accounting-report thead{display:table-header-group}.dz-accounting-report thead th{position:static}.dz-accounting-report tr{break-inside:avoid}.dz-report-heading{break-after:avoid}.dz-report-metrics>div{background:white}.dz-report-notes{font-size:8pt}}

.dz-journal-line{grid-template-columns:2fr 1.4fr 1.4fr 1fr 1fr}@media(max-width:1000px){.dz-journal-line{grid-template-columns:1fr 1fr}}

/* Keep ledger labels readable on screen; fit every column on printed pages. */
@media screen{.dz-accounting-report th{white-space:nowrap;word-break:normal;overflow-wrap:normal}.dz-accounting-report td{word-break:normal;overflow-wrap:break-word}}
@media print{.dz-accounting-report table{min-width:0!important}.dz-accounting-report th,.dz-accounting-report td{word-break:normal}.dz-accounting-report .dz-report-heading{display:flex!important}.dz-accounting-report{color:#17283f!important;background:#fff!important}}
/* Compact voucher workspace, inspired by the existing desktop ERP. */
.dz-voucher{padding:0!important;overflow:hidden;border:1px solid var(--dz-border)}
.dz-voucher>h2{margin:0!important;padding:14px 20px;background:var(--dz-field);font-size:18px!important;border-bottom:1px solid var(--dz-border)}
.dz-voucher>form{display:block!important;padding:0 20px 18px}
.dz-voucher-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--dz-border)}
.dz-voucher-toolbar span{margin-left:auto;font-size:11px;color:var(--dz-muted)}
.dz-voucher-header{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 0;max-width:760px}
.dz-voucher label{font-size:12px!important;gap:6px!important}
.dz-voucher input,.dz-voucher select{min-height:38px!important;padding:8px 10px!important}
.dz-voucher-grid{overflow:auto;border:1px solid var(--dz-border);min-height:150px;background:var(--dz-surface)}
.dz-voucher-grid table{min-width:580px;table-layout:fixed;margin:0}
.dz-voucher-grid th:first-child{width:50%}
.dz-voucher-grid th:last-child:empty{width:44px}
.dz-voucher-grid th,.dz-voucher-grid td{padding:10px!important;word-break:normal!important;vertical-align:top}
.dz-voucher-grid td label{font-size:0!important;gap:0!important}
.dz-voucher-grid td label input,.dz-voucher-grid td label select{font-size:13px!important}
.dz-voucher-party{margin:8px 0 0!important}
.dz-voucher-party summary{font-size:11px;padding:4px 0}
.dz-voucher-party label{font-size:12px!important;margin-top:10px}
.dz-voucher-total{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:14px 0;font-weight:600;flex-wrap:wrap}
.dz-voucher-total output{font-size:18px;min-width:115px;text-align:right;font-variant-numeric:tabular-nums}
.dz-voucher-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.dz-voucher-options{padding:8px 0}.dz-voucher-options select{max-width:650px}
.dz-voucher-narration{border-top:1px solid var(--dz-border);padding-top:16px;margin-top:12px}
.dz-voucher-narration input{width:100%}
@media(max-width:640px){.dz-voucher>form{padding:0 12px 14px}.dz-voucher-header{grid-template-columns:1fr}.dz-voucher-toolbar span{width:100%;margin-left:0}.dz-voucher-total{gap:10px}.dz-voucher-total output{min-width:95px;font-size:16px}}
.dz-voucher-grid td .dz-voucher-party label{font-size:12px!important;gap:6px!important}.dz-voucher-grid:has([name="amount"]) table{min-width:0}.dz-voucher-grid:has([name="amount"]) th:first-child{width:65%}

/* Native dropdown sections also work with keyboard input and without JavaScript. */
.dz-erp-workspace .dz-sidebar .dz-nav-group{margin:0 0 6px}
.dz-erp-workspace .dz-sidebar .dz-nav-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;padding:13px 12px;margin:0;border-radius:7px;color:#d0deda;font-size:11px;letter-spacing:.6px}
.dz-nav-caption::-webkit-details-marker{display:none}
.dz-erp-workspace .dz-sidebar .dz-nav-caption:hover,.dz-erp-workspace .dz-sidebar .dz-nav-caption:focus-visible{background:#2a4d48;color:#fff}
.dz-erp-workspace .dz-sidebar .dz-nav-caption:focus-visible{outline:2px solid #c8eada;outline-offset:-2px}
.dz-nav-chevron{font-size:21px;line-height:1;transform:rotate(0deg)}
.dz-nav-group[open]>.dz-nav-caption .dz-nav-chevron{transform:rotate(90deg)}
.dz-erp-workspace .dz-sidebar .dz-nav-items{margin:2px 0 10px 12px;padding-left:6px;border-left:1px solid #36514e}
