/* Scoped worker layout. Admin phase 1/2 styles remain intact. */
body.wm-active{--wm-navy:#102c47;--wm-orange:#eb6b14;--wm-line:#e2e8f0;background:#f2f6fa;color:#172b43;font-family:"Source Sans 3",system-ui,sans-serif}
body.wm-active #sidebar,body.wm-active #sidebar-toggle,body.wm-active #nav-overlay{display:none!important}
body.wm-active .top{background:#102c47;color:#fff;border:0;min-height:64px;position:sticky;top:0;padding:10px 22px;z-index:40}
body.wm-active .top .brand-slogan,body.wm-active #live-date{display:none!important}
body.wm-active .top .brand-text strong{color:#fff;font-size:21px}
body.wm-active .top .brand-mark{width:34px;height:34px;object-fit:contain;background:transparent}
body.wm-active .top .userbox,body.wm-active .top .ghost{color:#fff}
body.wm-active #app-view{width:100%;max-width:none;margin:0;padding:0}
body.wm-active #screen{min-width:0;width:100%;max-width:1000px;margin:0 auto;padding:22px 24px 110px;box-sizing:border-box}
#wm-root{line-height:1.5}#wm-root h1,#wm-root h2,#wm-root h3,.wm-dialog h2{font-family:Barlow,system-ui,sans-serif;line-height:1.2;color:#102c47;font-weight:700;margin:0 0 8px}
#wm-root h1{font-size:30px}#wm-root h2{font-size:21px;margin:23px 0 14px}#wm-root h3{font-size:18px}
#wm-root p{margin:6px 0 10px}.wm-muted,.wm-help{color:#5d6e82}.wm-help{font-size:14px;line-height:1.45;margin:7px 0 15px}.wm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.wm-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 18px}.wm-eyebrow{color:#657790;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.wm-heading>div{min-width:0}.wm-heading .wm-button{flex-shrink:0}
.wm-welcome{background:linear-gradient(125deg,#102c47,#235777);border-radius:19px;padding:26px 24px;color:#fff;margin-bottom:18px;box-shadow:0 8px 22px #15324914}
#wm-root .wm-welcome h1{color:#fff;margin:6px 0 8px}.wm-welcome>p{font-size:14px;opacity:.8}.wm-welcome>span{font-size:16px;color:#dae7f1}
.wm-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#fff;color:#18344f;border:1px solid #d4dfeb;min-height:46px;border-radius:11px;padding:10px 15px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;box-sizing:border-box;text-align:center;white-space:normal;line-height:1.35}
.wm-button svg,.wm-link svg,.wm-stats svg,.wm-driver svg,.wm-message svg,.wm-pay-lines svg,.wm-checkbox svg{width:22px;height:22px;flex:0 0 22px}
.wm-primary{background:#e9640b;border-color:#e9640b;color:#fff}.wm-primary:hover{background:#c95003}.wm-danger{color:#b32828}
.wm-button:disabled{opacity:.5;cursor:wait}.wm-button:focus-visible,#wm-bottom button:focus-visible,.wm-link:focus-visible{outline:3px solid #287acb;outline-offset:3px}
.wm-wide{width:100%;margin-top:15px}.wm-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.wm-quick{border:1px solid #dce5ee;background:#fff;border-radius:16px;padding:18px 15px;display:flex;gap:14px;align-items:center;text-align:left;cursor:pointer;box-shadow:0 2px 5px #102c4705;color:#173958;font:inherit;min-height:108px}
.wm-quick b{display:block;line-height:1.3;font-size:16px}.wm-quick>svg:first-child{width:30px;height:30px;flex-shrink:0;color:#e9640b}.wm-quick>svg:last-child{width:16px;height:16px;margin-left:auto;flex-shrink:0;color:#8c9dae}
.wm-quick.receipt>svg:first-child{color:#2578bd}.wm-quick.pay>svg:first-child{color:#187f69}.wm-quick.doc>svg:first-child{color:#7062bd}
.wm-card{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:19px;margin:12px 0;box-shadow:0 2px 5px #102c4704;min-width:0;overflow-wrap:anywhere}
.wm-section-title{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.wm-section-title h2{margin:0!important}.wm-section-title .wm-button{border:0;background:transparent;color:#2669a7}
.wm-plan-card{display:flex;gap:14px;align-items:flex-start}.wm-plan-dot{background:#1b8299;width:5px;border-radius:4px;align-self:stretch;flex:0 0 5px}.wm-plan-card p{font-size:15px}.wm-plan-day h2{display:flex;justify-content:space-between;gap:12px}.wm-plan-day h2 small{color:#5c7188;font:500 14px system-ui}.wm-plan-day.is-today{border-left:3px solid #ed791f;padding-left:13px}.wm-plan-day>.wm-muted{padding:5px 0 13px;border-bottom:1px solid #dde5ee}
.wm-empty{display:flex;align-items:center;gap:14px;color:#60738a;background:#f8fbff;box-shadow:none}.wm-empty svg{width:24px;height:24px;flex-shrink:0;color:#6c8199}.wm-empty p{margin:0!important}
.wm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce5ef;border-radius:14px;background:#fff;margin:12px 0 20px;overflow:hidden}
.wm-stats>div{padding:17px 14px;border-right:1px solid #e3eaf1}.wm-stats>div:last-child{border:0}.wm-stats span{display:block;font-size:12px;color:#5a708a;line-height:1.25;min-height:30px}.wm-stats b{display:block;font-size:23px;color:#193956;margin-top:6px}
.wm-message{display:flex;align-items:flex-start;gap:9px;border-radius:11px;padding:13px 15px;margin:12px 0;font-size:14px;background:#eaf1f9;color:#294c73;line-height:1.5;overflow-wrap:anywhere}
.wm-message:empty{display:none}.wm-message.warn,.wm-warning{background:#fff5e7;border:1px solid #f1d3ae;color:#864d16}.wm-message.bad{background:#fff0ef;border:1px solid #f3cac6;color:#a1302b}.wm-message.good{background:#ecf8f1;border:1px solid #cbe6d4;color:#216544}#wm-duplicates .wm-message{display:block}
.wm-link-list{background:#fff;border:1px solid #dce5ef;border-radius:15px;overflow:hidden;margin:22px 0}.wm-link{display:flex;align-items:center;gap:14px;padding:17px;width:100%;min-height:65px;border:0;border-bottom:1px solid #e6ebf2;background:#fff;cursor:pointer;text-align:left;color:#213e5c;font:inherit;text-decoration:none;box-sizing:border-box}.wm-link:last-child{border-bottom:0}.wm-link>b{font-size:15px}.wm-link>span:nth-child(2){flex:1;min-width:0}.wm-link small{display:block;color:#6a7e92;font-size:13px;line-height:1.4}.wm-link>svg:last-child{margin-left:auto;width:17px;height:17px}.wm-link-icon{display:flex;background:#f0f5fb;border-radius:10px;padding:9px;color:#3b668a}
#wm-bottom{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:50;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,740px);border:1px solid #dce5ef;border-bottom:0;background:#fffffffa;backdrop-filter:blur(10px);padding:6px 5px max(8px,env(safe-area-inset-bottom));border-radius:17px 17px 0 0;box-shadow:0 -4px 22px #203d5010;box-sizing:border-box}
#wm-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:0;color:#63788f;min-height:52px;font:500 11px system-ui;border-radius:11px;padding:5px 2px;cursor:pointer}
#wm-bottom svg{width:23px;height:23px}#wm-bottom button[aria-current]{color:#d75906;background:#fff3e8;font-weight:700}
#wm-network{position:fixed;z-index:60;top:0;left:0;right:0;background:#a43428;color:#fff;text-align:center;padding:7px;font-size:13px}#wm-network[hidden]{display:none}
.wm-month{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e8eff7;border-radius:12px;padding:6px;margin:15px 0}.wm-month .wm-button{background:#fff;border:0;min-height:43px;padding:8px 12px}.wm-month label{min-width:0;flex:1}.wm-month input{display:block;border:0;background:transparent;text-align:center;font:600 17px system-ui;color:#163553;width:100%;min-width:0;padding:7px;box-sizing:border-box}.wm-month>strong{font-size:15px;text-align:center}
.wm-entry-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wm-entry{margin:0}.wm-entry-top{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 12px}.wm-entry-top b{font-size:14px}.wm-entry-hours{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.wm-entry-hours>strong{font-size:30px;color:#12324f}.wm-entry-hours small{font-size:16px;font-weight:500;color:#597088}
.wm-status{display:inline-flex;gap:4px;align-items:center;font-size:11px;font-weight:600;line-height:1.3;padding:5px 8px;border-radius:6px;white-space:normal;max-width:50%}.wm-status.good{background:#e5f5ec;color:#24764c}.wm-status.warn{background:#fff1dc;color:#945111}.wm-status.bad{background:#fde9e7;color:#a63b34}.wm-driver{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.3;border:1px solid #d7e5f4;border-radius:9px;padding:7px;background:#f0f6fc;color:#285878}.wm-driver svg{width:20px;height:20px}.wm-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.wm-entry-actions .wm-button{min-height:43px;font-size:14px;padding:8px 12px}
.wm-history{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px solid #e3eaf0;margin-top:14px;padding-top:14px}.wm-history p,.wm-history small{width:100%;margin:0}.wm-history>span:not(.wm-status){font-size:13px;color:#5a7085}.wm-certificate{display:flex;gap:15px;align-items:center;justify-content:space-between}.wm-certificate>div{min-width:0}.wm-certificate p{font-size:13px;color:#5c7084}
.wm-pay-card{padding:0;overflow:hidden}.wm-pay-hero{background:#143753;color:#fff;padding:25px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.wm-pay-hero>strong{font-size:36px;font-weight:700;line-height:1.2}.wm-pay-hero small{font-size:13px;color:#cdddea}.wm-pay-hero>.wm-status{max-width:100%}.wm-pay-lines{padding:6px 21px;margin:0}.wm-pay-lines>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #e7edf2}.wm-pay-lines dt{display:flex;align-items:center;gap:10px;color:#536b83;font-size:15px}.wm-pay-lines dd{margin:0;text-align:right;font-weight:700;font-size:18px}.wm-pay-card>details,.wm-pay-card>.wm-help,.wm-pay-card>.wm-message{margin:17px 21px}.wm-card summary{font-weight:600;cursor:pointer;padding:4px 0;min-height:32px}.wm-report-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #e5ebf1;padding:15px 0}
.wm-dialog{box-sizing:border-box;border:0;border-radius:20px;padding:23px;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 24px 80px #0a25424d;color:#17334f;background:#fff}.wm-dialog::backdrop{background:#0a2135a6;backdrop-filter:blur(3px)}.wm-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.wm-dialog-head h2{font-size:25px;margin:0}.wm-dialog-head .wm-button{font-size:23px;padding:4px;width:44px;min-width:44px}
.wm-dialog label,#wm-root form label{display:block;margin-top:16px;margin-bottom:7px;color:#294761;font-weight:600;font-size:15px}.wm-dialog input:not([type=checkbox]),.wm-dialog select,.wm-dialog textarea,#wm-root form input,#wm-root form select{display:block;box-sizing:border-box;border:1px solid #ccdae7;background:#fcfdff;border-radius:10px;min-height:49px;padding:12px;width:100%;max-width:100%;font:400 16px system-ui;color:#1b3852}.wm-dialog textarea{resize:vertical;min-height:92px}.wm-dialog input:focus,.wm-dialog select:focus,.wm-dialog textarea:focus{outline:2px solid #9abddc;outline-offset:1px}.wm-dialog .wm-checkbox{display:flex;align-items:center;gap:12px;background:#f4f8fc;border:1px solid #dce7f2;border-radius:12px;padding:15px;min-height:30px;cursor:pointer}.wm-checkbox input{width:24px;height:24px;margin:0;accent-color:#e76b13;flex-shrink:0}.wm-checkbox svg{color:#4f7293}.wm-original{border-radius:11px;background:#edf4fb;padding:16px;margin:14px 0}.wm-presets{display:flex;gap:9px;margin-bottom:16px}.wm-presets .wm-button{flex:1;background:#f4f8fc;border-color:#dce5ef}
body.wm-active .ordex-simple{font-family:inherit}body.wm-active .ordex-simple .so-head{align-items:flex-start}body.wm-active .ordex-simple .so-kpis{min-width:0}body.wm-active .ordex-simple .so-card{border-radius:15px}body.wm-active .ordex-simple .so-primary{background:#e9640b;border-color:#e9640b;color:#fff}body.wm-active .ordex-simple input,body.wm-active .ordex-simple select,body.wm-active .ordex-simple textarea{font-size:16px;box-sizing:border-box;max-width:100%}body.wm-active .so-dialog{max-height:calc(100dvh - 28px);width:min(700px,calc(100vw - 20px));box-sizing:border-box}body.wm-active .so-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.wm-active .wm-legacy{min-width:0}body.wm-active .wm-legacy .card{max-width:100%;box-sizing:border-box}body.wm-active .wm-legacy table{max-width:100%}
@media(max-width:700px){body.wm-active .top{min-height:57px;padding:9px 15px;gap:10px}body.wm-active .top #session-box,body.wm-active .top #lang-bar{display:none!important}body.wm-active #screen{padding:17px 15px 105px}#wm-root h1{font-size:27px}.wm-heading{flex-wrap:wrap;gap:8px}.wm-heading>.wm-button{width:100%}.wm-welcome{padding:23px 20px;border-radius:16px}.wm-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wm-quick{padding:17px 13px;min-height:96px;gap:10px}.wm-quick b{font-size:14px}.wm-quick>svg:first-child{width:25px;height:25px}.wm-quick>svg:last-child{width:13px}.wm-stats>div{padding:14px 10px}.wm-stats b{font-size:21px}.wm-stats span{font-size:11px}.wm-entry-list{grid-template-columns:1fr;gap:11px}.wm-card{padding:17px}.wm-pay-card{padding:0}.wm-pay-hero{padding:23px 21px}.wm-pay-hero>strong{font-size:31px}.wm-pay-lines{padding:2px 18px}.wm-pay-lines dt{font-size:14px}.wm-pay-lines dd{font-size:16px}.wm-month{gap:4px}.wm-month .wm-button{padding:8px 10px}.wm-dialog{padding:19px;width:calc(100vw - 18px);max-height:calc(100dvh - 20px);border-radius:17px}.wm-dialog-head h2{font-size:23px}.wm-certificate{flex-wrap:wrap}.wm-certificate .wm-button{width:100%}body.wm-active .so-grid{grid-template-columns:1fr}body.wm-active .wm-legacy table{display:block;overflow-x:auto}body.wm-active .wm-legacy .row{flex-wrap:wrap}body.wm-active .wm-legacy input,body.wm-active .wm-legacy select{font-size:16px;max-width:100%;box-sizing:border-box}#wm-bottom{border-radius:0;border-left:0;border-right:0}}
@media(prefers-reduced-motion:reduce){body.wm-active *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{#wm-bottom,#wm-network,body.wm-active .top{display:none!important}body.wm-active #screen{padding:0}.wm-card{box-shadow:none;break-inside:avoid}}

/* Final employee shell, overriding only pre-existing high-specificity brand rules. */
body.wm-active .top{background:#102c47!important;color:#fff!important;min-height:64px!important;padding:10px 18px!important;box-sizing:border-box;box-shadow:0 1px 0 #193c59}
body.wm-active .top .brand{width:auto!important;flex:1!important;display:flex!important;gap:10px;color:#fff!important}
body.wm-active .top .brand-text,body.wm-active #session-box,body.wm-active #lang-bar{display:none!important}
#wm-brand-label{display:block!important;font:700 20px system-ui;letter-spacing:-.5px;color:#fff}
#wm-account{display:flex;align-items:center;justify-content:center;border:1px solid #456079;background:#24455f;color:#fff;min-width:44px;min-height:44px;border-radius:12px;cursor:pointer}
#wm-account svg{width:22px;height:22px}
.wm-quick{position:relative;min-width:0;flex-direction:column;align-items:flex-start;gap:10px;padding:17px;overflow-wrap:anywhere}
.wm-quick b{font-size:16px;max-width:100%;padding-right:0}.wm-quick>svg:last-child{position:absolute;right:13px;top:18px}.wm-quick>svg:first-child{height:27px;width:27px}
@media(max-width:520px){.wm-quick{min-height:116px}.wm-quick b{font-size:15px}body.wm-active #screen{padding:18px 16px 110px!important}#wm-root h1{font-size:27px}}

.wm-cert-actions{display:flex;flex-wrap:wrap;gap:7px}.wm-certificate{flex-wrap:wrap}.wm-certificate>div:first-child{flex:1;min-width:140px}

/* Isolate the compact checkbox from legacy global form control sizes. */
body.wm-active .wm-dialog label.wm-checkbox{display:flex!important;flex-direction:row!important;align-items:center!important;text-align:left!important;gap:12px!important}
body.wm-active .wm-checkbox input[type=checkbox]{display:inline-block!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;margin:0!important;padding:0!important;flex:0 0 24px!important;accent-color:#e9640b}
body.wm-active .wm-checkbox span{display:flex;align-items:center;gap:7px}
body.wm-active .wm-month-picker{position:relative;display:flex!important;align-items:center;justify-content:center;min-height:48px;border:1px solid #d5e2ee;border-radius:10px;background:#f7faff;flex:1;overflow:hidden}
body.wm-active .wm-month-picker strong{font-size:16px;color:#193953;text-align:center;padding:5px;pointer-events:none;text-transform:capitalize}
body.wm-active .wm-month-picker input{position:absolute!important;inset:0!important;opacity:0!important;width:100%!important;height:100%!important;min-height:0!important;cursor:pointer}
body.wm-active .wm-month-picker:focus-within{outline:2px solid #9abddc;outline-offset:2px}
