html:has(body.mdi-shell),body.erp-ui.mdi-shell{height:100%;overflow:hidden}
.erp-ui.mdi-shell{--sidebar:#101b16}
body.erp-ui.mdi-shell.dark{--bg:var(--sidebar)}
.erp-ui.mdi-shell #app{height:100dvh;display:grid;grid-template-columns:280px minmax(0,1fr);overflow:hidden}
.erp-ui.mdi-shell .sidebar{position:relative;inset:auto;width:280px;height:100dvh;overflow:hidden;padding:22px 14px 14px;display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid #26342b}
.mdi-sidebar-top{flex-shrink:0}.mdi-sidebar-top .brand{padding:0 9px}.mdi-sidebar-top .workshop{margin:24px 6px 20px;padding:14px 11px}.mdi-sidebar-top .nav-label{margin:0 10px 12px;font-size:10px;letter-spacing:1.5px;color:#8da596}
.erp-ui.mdi-shell .mdi-module-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 4px 12px 0;margin:0;display:block;scrollbar-width:thin;scrollbar-color:#3b5143 transparent;overscroll-behavior:contain}
.mdi-module-list::-webkit-scrollbar{width:5px}.mdi-module-list::-webkit-scrollbar-thumb{background:#3b5143;border-radius:8px}.mdi-module-list::-webkit-scrollbar-track{background:transparent}
.mdi-nav-group{margin-bottom:12px}.erp-ui.mdi-shell .mdi-group-toggle{display:flex;gap:8px;align-items:center;width:100%;padding:10px 8px;background:none;border:0;color:#b3c4b9;font-size:10px;font-weight:750;letter-spacing:.65px;text-transform:uppercase;min-height:40px;text-align:left;border-radius:6px}
.mdi-group-toggle>svg{width:15px;height:15px}.mdi-group-toggle>svg:last-child{width:12px;height:12px}.mdi-group-toggle>span{flex:1}.mdi-group-toggle small{font-size:10px;color:#8da596;background:#26382b;padding:1px 5px;border-radius:4px}.erp-ui.mdi-shell .mdi-group-toggle:hover{background:#1d2d23;color:#f1f5f9}
.erp-ui.mdi-shell .mdi-nav-item{display:flex;width:100%;align-items:center;gap:8px;border-radius:8px;padding:9px 10px;margin:3px 0;min-height:44px;color:#a8b9ae;background:none;text-align:left;font-size:13px;line-height:1.4;font-weight:500}
.erp-ui.mdi-shell .mdi-nav-item>svg{width:16px;height:16px}.mdi-routine-code{display:inline-flex;align-items:center;justify-content:center;min-width:29px;font:700 11px/1.5 ui-monospace,Consolas,monospace;color:#a6bdad;background:#24362a;border-radius:4px;padding:3px 4px}.mdi-routine-title{flex:1}.erp-ui.mdi-shell .mdi-nav-item:hover{background:#203027;color:#f1f5f9}.erp-ui.mdi-shell .mdi-nav-item.active{background:#a3e635;color:#020617;font-weight:750;box-shadow:0 2px 5px #0002}.erp-ui.mdi-shell .mdi-nav-item.active .mdi-routine-code{background:#16220e;color:#a3e635}.erp-ui.mdi-shell .mdi-nav-item.active .count{margin-left:auto;background:#020617;color:#a3e635;border-radius:5px;padding:3px 6px;font-size:11px;font-weight:800}.erp-ui.mdi-shell .mdi-nav-item .count{font-size:11px;background:#24362a;padding:3px 6px;border-radius:4px}
.mdi-sidebar-foot{flex-shrink:0;border-top:1px solid #2a3d30;padding:15px 5px 0;margin-top:5px}.mdi-recents-label{color:#8da596;font-size:10px;font-weight:750;letter-spacing:1.2px;margin-bottom:9px}.mdi-recent-chips{display:flex;gap:6px;flex-wrap:wrap;min-height:31px;margin-bottom:12px}.erp-ui.mdi-shell .mdi-recent-chips button{min-height:30px;min-width:36px;background:#213327;border:1px solid #3a4e3f;color:#c7d6cb;border-radius:5px;padding:4px 7px;font:700 12px ui-monospace,Consolas,monospace}.erp-ui.mdi-shell .mdi-recent-chips button:hover{background:#a3e635;color:#020617;border-color:#a3e635}.mdi-recent-chips>span{font-size:11px;color:#8da596}.mdi-number-form label{font-size:12px;font-weight:650;display:block;color:#c5d4c9;margin-bottom:6px}.mdi-number-form>div{display:flex;align-items:center;border:1px solid #57705e;background:#0b1510;border-radius:7px;overflow:hidden}.mdi-number-form>div:focus-within{border-color:#a3e635;box-shadow:0 0 0 2px #a3e63530}.mdi-number-form>div>span{padding-left:12px;font-size:20px;color:#a3e635}.mdi-number-form input{width:100%;min-width:0;height:44px;background:none;border:0;outline:none;color:#f1f5f9;font:650 16px ui-monospace,Consolas,monospace;padding:8px 10px}.mdi-number-form input::placeholder{color:#789080}.erp-ui.mdi-shell .mdi-number-form button{height:44px;min-width:42px;background:none;color:#a3e635;display:grid;place-items:center}.mdi-foot-actions{display:flex;justify-content:space-between;gap:6px;margin-top:9px}.erp-ui.mdi-shell .mdi-foot-actions button{display:flex;align-items:center;gap:7px;background:none;color:#9cb3a4;font-size:11px;padding:6px 3px;min-height:36px}.mdi-foot-actions svg{width:15px;height:15px}.mdi-sidebar-foot .copyright{font-size:9px;margin-top:8px;display:block;color:#76917f}
.erp-ui.mdi-shell .main{margin:0;width:auto;min-width:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:var(--bg)}
.erp-ui.mdi-shell .topbar{position:relative;top:auto;flex-shrink:0;height:72px;padding:0 28px;border-bottom:1px solid var(--line)}
.mdi-tabs-bar{display:flex;align-items:stretch;gap:0;height:55px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);padding:7px 12px 0}.mdi-tabs-bar #mdi-tabs-list{display:flex;min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#475569 transparent}.mdi-tab-shell{display:flex;align-items:stretch;background:var(--shade);border:1px solid var(--line);border-bottom:0;border-top:2px solid transparent;border-radius:8px 8px 0 0;flex-shrink:0;margin-right:4px;max-width:290px}.erp-ui.mdi-shell .mdi-tab{display:flex;align-items:center;gap:8px;background:none;color:var(--muted);padding:9px 7px 9px 13px;font-size:12px;font-weight:600;min-height:40px;white-space:nowrap}.mdi-tab-code{font:750 11px ui-monospace,Consolas,monospace}.erp-ui.mdi-shell .mdi-tab-close{display:grid;place-items:center;background:none;color:var(--muted);width:32px;min-width:32px;min-height:40px;border-radius:0 6px 0 0}.mdi-tab-close svg{width:14px;height:14px}.mdi-tab-shell.active{background:#a3e635;border-color:#a3e635;border-top-color:#b3f728;box-shadow:0 -1px 6px #00000010}.erp-ui.mdi-shell .mdi-tab-shell.active :is(.mdi-tab,.mdi-tab-close){color:#020617;font-weight:750}.erp-ui.mdi-shell .mdi-tab-close:hover{background:#64748b30}.mdi-tab-pin{align-self:center;padding:0 11px 0 3px;color:var(--muted);font-size:8px}.mdi-tab-shell.active .mdi-tab-pin{color:#26430b}.mdi-dirty-dot{width:6px;height:6px;background:currentColor;border-radius:50%}.erp-ui.mdi-shell .mdi-new-tab{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;flex-shrink:0;border:0;border-left:1px solid var(--line);padding:8px 13px;background:var(--surface);color:var(--label);font-size:12px;font-weight:650;margin-left:5px;margin-bottom:6px;border-radius:5px}.mdi-new-tab:hover{background:var(--shade)}.mdi-new-tab svg{width:16px;height:16px}
#mdi-workspace{position:relative;flex:1;min-height:0;overflow:hidden}.mdi-pane{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#64748b66 transparent}.mdi-pane[hidden],.mdi-modal-cache[hidden],[hidden]{display:none!important}.erp-ui.mdi-shell .content{max-width:1920px;margin:0 auto;padding:28px}.erp-ui.mdi-shell .btn.primary,.erp-ui.mdi-shell .btn.lime{background:#a3e635;color:#020617;border-color:#a3e635;font-weight:750}.erp-ui.mdi-shell .btn.primary:hover,.erp-ui.mdi-shell .btn.lime:hover{background:#b3f728;border-color:#b3f728}.erp-ui.mdi-shell .wb-title .plate{background:#26372b;color:#f8fafc}.erp-ui.mdi-shell.dark .mdi-tab-shell{background:var(--surface);border-color:var(--line)}.erp-ui.mdi-shell.dark .mdi-tab-shell.active{background:#a3e635;border-color:#a3e635;border-top-color:#b3f728}.erp-ui.mdi-shell.dark .mdi-tab-shell:not(.active) .mdi-tab:hover{color:#e2e8f0}
.erp-ui.mdi-shell .scrim{left:280px;top:127px;padding:16px}
.erp-ui.mdi-shell .modal{max-height:calc(100dvh - 155px);max-width:100%;width:640px}
.erp-ui.mdi-shell .modal.large{width:960px}
@media(max-width:1100px){.erp-ui.mdi-shell .scrim{left:250px}}
@media(max-width:800px){.erp-ui.mdi-shell .scrim{left:84px;top:119px;padding:10px}.erp-ui.mdi-shell .modal{max-height:calc(100dvh - 139px)}}
.mdi-picker-item{display:flex;align-items:center;gap:12px;width:100%;min-height:51px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--text);padding:12px 2px;text-align:left}.mdi-picker-item>span{font:750 13px ui-monospace,Consolas,monospace;background:var(--shade);border-radius:5px;padding:5px 8px;color:var(--label)}.mdi-picker-item strong{flex:1;font-size:14px}.mdi-picker-item small{font-size:12px;color:var(--muted)}.mdi-picker-item>svg:last-child{width:15px}.mdi-picker-item:hover{background:var(--shade)}#mdi-picker-query{width:100%;margin-bottom:12px}.mdi-doc-links{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mdi-doc-links a{display:flex;align-items:center;gap:9px;padding:13px;background:var(--shade);border:1px solid var(--line);border-radius:7px;text-decoration:none;font-size:14px}.mdi-checklist{padding:26px;max-width:900px}.mdi-checklist .field{margin-bottom:22px}.mdi-checklist h2{font-size:19px}.mdi-checklist p{color:var(--muted);font-size:14px}.mdi-checklist select,.mdi-checklist textarea{width:100%}.mdi-checklist-items{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.mdi-checklist-items label{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:14px}.mdi-checklist-history{margin-top:24px}.mdi-checklist-history>div:not(.panel-head){padding:16px 24px;border-top:1px solid var(--line)}.mdi-checklist-history p{color:var(--muted);font-size:14px}
@media(max-width:1100px){.erp-ui.mdi-shell #app{grid-template-columns:250px minmax(0,1fr)}.erp-ui.mdi-shell .sidebar{width:250px}.mdi-new-tab span{display:none}.mdi-group-toggle>span{font-size:9px}.erp-ui.mdi-shell .mdi-nav-item{font-size:12px}.erp-ui.mdi-shell .content{padding:22px}}
@media(max-width:800px){.erp-ui.mdi-shell #app{grid-template-columns:84px minmax(0,1fr)}.erp-ui.mdi-shell .sidebar{width:84px;padding:18px 8px 10px}.mdi-sidebar-top .brand{padding:0 9px}.mdi-sidebar-top .brand>div:last-child,.mdi-sidebar-top .workshop,.mdi-sidebar-top .nav-label,.mdi-group-toggle>span,.mdi-group-toggle>small,.mdi-group-toggle>svg:last-child,.mdi-routine-title,.mdi-nav-item>svg,.mdi-nav-item .count,.mdi-recents-label,.mdi-number-form label,.mdi-foot-actions span,.mdi-sidebar-foot .copyright{display:none!important}.erp-ui.mdi-shell .mdi-group-toggle{justify-content:center;min-height:34px;padding:5px}.mdi-nav-group{margin-bottom:6px}.erp-ui.mdi-shell .mdi-nav-item{justify-content:center;padding:4px}.mdi-routine-code{font-size:12px;min-width:38px;padding:5px}.mdi-sidebar-top{padding-bottom:15px}.mdi-sidebar-foot{padding:10px 0 0}.mdi-recent-chips{gap:4px;justify-content:center;margin-bottom:8px}.erp-ui.mdi-shell .mdi-recent-chips button{min-width:26px;font-size:10px;padding:3px;min-height:26px}.mdi-number-form>div>span{display:none}.mdi-number-form input{padding:5px;width:37px;font-size:14px}.erp-ui.mdi-shell .mdi-number-form button{min-width:24px;width:24px}.mdi-foot-actions{justify-content:center;gap:9px}.erp-ui.mdi-shell .topbar{padding:0 16px;height:64px}.erp-ui.mdi-shell .profile{display:none}.erp-ui.mdi-shell .breadcrumb{font-size:11px}.erp-ui.mdi-shell .search-trigger{min-width:44px;padding:10px}.search-trigger>span{display:none}.mdi-tabs-bar{padding-left:6px}.erp-ui.mdi-shell .mdi-tab{font-size:11px;padding-left:9px}.erp-ui.mdi-shell .content{padding:20px 16px}.mdi-checklist-items{grid-template-columns:1fr}}
.erp-ui.mdi-shell .tabs button.active{background:#a3e635;color:#020617;font-weight:750}
.erp-ui.mdi-shell :is(.wb-tabs button.active,.fiscal-tabs button.active){color:#84cc16;border-bottom-color:#a3e635}
.erp-ui.mdi-shell.dark :is(.wb-tabs button.active,.fiscal-tabs button.active){color:#bef264}

/* Compact Shell: tabs are the first row; one category is expanded at a time. */
.erp-ui.mdi-shell .mdi-tabs-bar{height:55px;padding-top:7px;background:var(--surface)}
.erp-ui.mdi-shell .scrim{top:55px}
.erp-ui.mdi-shell .modal{max-height:calc(100dvh - 85px)}
.mdi-sidebar-top .brand{margin-bottom:22px}
.erp-ui.mdi-shell .mdi-operator{display:flex;width:100%;align-items:center;gap:11px;min-height:66px;padding:12px 10px;margin:0 0 20px;background:#19271d;color:#edf2e9;border:1px solid #34483a;border-radius:9px;text-align:left}
.mdi-operator-avatar{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;background:#2c4430;border:1px solid #48634b;border-radius:9px;color:#d5f0c0;font-size:13px;font-weight:800}
.mdi-operator-info{display:flex;flex-direction:column;gap:3px;flex:1}.mdi-operator-info strong{font-size:14px;color:#f0f6eb}.mdi-operator-info small{font-size:11px;color:#acbfae}.mdi-operator>svg{width:15px;height:15px;color:#a6bfa8}
.mdi-sidebar-top .nav-label{padding-top:16px;border-top:1px solid #2d4032;margin-bottom:13px}
.erp-ui.mdi-shell .mdi-module-list{overflow:hidden;flex:1;scrollbar-width:none;padding-right:0}
.erp-ui.mdi-shell .mdi-nav-group{margin-bottom:9px}
.erp-ui.mdi-shell .mdi-group-toggle{min-height:40px}
.erp-ui.mdi-shell .mdi-tab-shell:not(.active){background:var(--surface);border-color:var(--line)}
.erp-ui.mdi-shell .mdi-tab-shell:not(.active) .mdi-tab:hover{background:var(--shade)}
.erp-ui.mdi-shell .wb-bottom{background:#14271b;border-color:#36523c}
.erp-ui.mdi-shell .wb-title .plate{background:#203126;border-color:#405345}
.erp-ui.mdi-shell.dark .tabs button:not(.active){color:var(--muted)}
.erp-ui.mdi-shell.dark .wb-tab-count{background:#2d4032;color:#d9e7cf}
.erp-ui.mdi-shell.dark .wb-summary-checks{background:var(--shade)}
.mdi-profile-summary{display:flex;align-items:center;gap:14px;margin-bottom:18px}.mdi-profile-summary h3{margin:0}.mdi-profile-summary p{margin:4px 0 0}
#mdi-session-lock{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#101b14f5;padding:25px}#mdi-session-lock>section{max-width:460px;background:var(--surface);color:var(--text);border:1px solid var(--line);padding:35px;border-radius:16px}#mdi-session-lock p{color:var(--muted);line-height:1.7}
@media(max-height:760px){.erp-ui.mdi-shell .sidebar{padding-top:14px;padding-bottom:10px}.mdi-sidebar-top .brand{margin-bottom:14px}.erp-ui.mdi-shell .mdi-operator{margin-bottom:12px;min-height:56px;padding:8px 10px}.mdi-sidebar-top .nav-label{padding-top:10px;margin-bottom:7px}.erp-ui.mdi-shell .mdi-group-toggle{min-height:34px;padding-top:7px;padding-bottom:7px}.erp-ui.mdi-shell .mdi-nav-item{min-height:39px;margin:2px 0;padding-top:7px;padding-bottom:7px}.erp-ui.mdi-shell .mdi-nav-group{margin-bottom:5px}.mdi-sidebar-foot{padding-top:10px}.mdi-foot-actions{margin-top:5px}.mdi-sidebar-foot .copyright{display:none}}
@media(max-height:620px){.mdi-sidebar-top .brand{margin-bottom:9px}.erp-ui.mdi-shell .mdi-operator{margin-bottom:8px;min-height:48px}.mdi-sidebar-top .nav-label{padding-top:7px;font-size:9px;margin-bottom:4px}.erp-ui.mdi-shell .mdi-nav-item{min-height:34px;padding:5px 10px}.erp-ui.mdi-shell .mdi-group-toggle{min-height:30px;padding:5px 8px}.mdi-sidebar-foot{padding-top:7px}.mdi-recents-label{margin-bottom:5px}.mdi-recent-chips{margin-bottom:7px;min-height:27px}.erp-ui.mdi-shell .mdi-recent-chips button{min-height:27px}.mdi-number-form label{margin-bottom:3px}.mdi-foot-actions{margin-top:3px}.erp-ui.mdi-shell .mdi-foot-actions button{min-height:30px}}
@media(max-width:800px){.erp-ui.mdi-shell .scrim{top:55px}.erp-ui.mdi-shell .modal{max-height:calc(100dvh - 75px)}.mdi-sidebar-top .brand{margin-bottom:15px}.erp-ui.mdi-shell .mdi-operator{justify-content:center;padding:7px;margin-bottom:13px;min-height:50px}.mdi-operator-info,.mdi-operator>svg{display:none}.mdi-operator-avatar{width:32px;height:32px}.mdi-sidebar-top{padding-bottom:8px}}
