.wm-dialog{white-space:normal;box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line,#dce4ef);border-radius:22px;background:var(--card,#fff);color:var(--text,#202d40);box-shadow:0 28px 90px #10182f40;overflow:hidden;text-align:left}.wm-dialog[open]{display:flex;flex-direction:column}.wm-dialog.wm-wide{width:min(960px,calc(100vw - 32px))}.wm-dialog::backdrop{background:#111a36a6;backdrop-filter:blur(4px)}.wm-head,.wm-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;flex-shrink:0;background:var(--card,#fff)}.wm-head{border-bottom:1px solid var(--line,#dce4ef)}.wm-head h2{margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere;min-width:0}.wm-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border-radius:12px;background:var(--soft,#eef0fb);color:var(--primary,#4b479f);font-size:24px;border:0}.wm-content{padding:22px;overflow:auto;overscroll-behavior:contain;min-height:0;min-width:0;scrollbar-gutter:stable}.wm-foot{border-top:1px solid var(--line,#dce4ef);justify-content:flex-end;flex-wrap:wrap}.wm-content>form,.wm-content>.card,.wm-content>.settings-record-body,.wm-content>.location-card-body{margin:0!important;max-height:none!important;box-shadow:none}.wm-content form{min-width:0}.wm-content input:not([type=checkbox]):not([type=radio]),.wm-content select,.wm-content textarea{max-width:100%;min-width:0;box-sizing:border-box}.wm-content label{min-width:0;overflow-wrap:anywhere}.wm-content [hidden],.wm-dialog [hidden]{display:none!important}.wm-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%;padding:12px;border:1px solid #e8be74;border-radius:12px;background:#fffaef;font-size:13px}.wm-confirm span{flex:1 1 100%}.wm-discard{background:#a92c2c;color:#fff}.wm-error{margin:14px 22px 0;padding:12px;border:1px solid #e6b2b2;border-radius:12px;background:#fff2f2;color:#982222;overflow-wrap:anywhere;font-size:13px}.wm-editor>summary{cursor:pointer}.wm-editor.er-status-editor{min-width:0;max-width:none}.wm-editor.er-status-editor>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;background:var(--soft,#eef0fb);color:var(--primary,#4b479f);padding:8px 12px;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:600}.wm-editor.er-status-editor>summary::-webkit-details-marker{display:none}.wm-editor.er-status-editor>summary:after{content:'↗';font-size:14px}.wm-editor.er-status-editor[open]{width:auto}.wm-editor.er-status-editor .wm-content form{display:grid;gap:16px;padding:0;border:0}.wm-locked{overflow:hidden}.wm-dialog :focus-visible{outline:2px solid var(--primary,#4b479f);outline-offset:3px}.wm-content .employee-name-cell{margin-bottom:16px}.wm-content form>button[type=submit]:last-child{position:sticky;bottom:0;z-index:1}.wm-content .production-form,.wm-content .cash-form,.wm-content .stock-editor-form{margin:0;padding:0;border:0}.wm-content .production-card{padding:0}.employee-editor-wrap #employee-editor>summary[hidden]{display:none!important}
@media(max-width:600px){.wm-dialog,.wm-dialog.wm-wide{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.wm-head,.wm-foot{padding:14px;gap:10px}.wm-head h2{font-size:18px}.wm-content{padding:16px 14px}.wm-content .role-name-grid,.wm-content .location-form-grid,.wm-content .stock-form-grid,.wm-content .approval-grid,.wm-content .production-form,.wm-content .role-permission-grid,.wm-content .access-module-grid,.wm-content .location-form,.wm-content .policy-form,.wm-content .users-form,.wm-content .cash-form{grid-template-columns:minmax(0,1fr)}.wm-content .policy-choice-row{flex-wrap:wrap}.wm-error{margin:12px 14px 0}.wm-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}.wm-confirm button{flex:1 1 100%}.wm-content .table-wrap{max-width:100%;overflow:auto}}
@media(prefers-reduced-motion:no-preference){.wm-dialog[open]{animation:wm-enter .16s ease-out}@keyframes wm-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

[data-editor-panel]>.wm-editor>summary,.wm-editor.production-cancel>summary,.wm-editor.production-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:12px 16px;border:1px solid var(--line,#dce4ef);border-radius:12px;background:var(--soft,#eef0fb);color:var(--primary,#4b479f);font-weight:650;min-height:44px;box-sizing:border-box}
[data-editor-panel]>.wm-editor>summary:after,.wm-editor.production-cancel>summary:after,.wm-editor.production-card>summary:after{content:"↗"}
[data-editor-panel]>.wm-editor>summary::-webkit-details-marker,.wm-editor.production-cancel>summary::-webkit-details-marker,.wm-editor.production-card>summary::-webkit-details-marker{display:none}
