:root{--mw-navy:#123348;--mw-teal:#087d82;--mw-ink:#162f40;--mw-line:#dce5e8;--mw-muted:#657587}[hidden]{display:none!important}
.mw-home{max-width:1100px;margin:auto}.mw-greeting{margin-bottom:20px}.mw-greeting h1{margin:6px 0}.mw-greeting p,.mw-note{color:var(--mw-muted)}.mw-hero{background:linear-gradient(125deg,#102c3e,#17495a);color:white;border-radius:20px;padding:26px;margin-bottom:16px}.mw-hero small{color:#cde5e7;font-size:11px;letter-spacing:.8px}.mw-hero>strong{display:block;font-size:34px;margin:12px 0 20px}.mw-hero h2{color:white;font-size:25px}.mw-split{display:flex;gap:24px}.mw-split>span{flex:1}.mw-split b{display:block;margin-top:5px;font-size:19px}.mw-white{color:var(--mw-navy);background:white;border:0;border-radius:10px;padding:14px 24px;font-weight:700}.mw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.mw-stats.mw-four{grid-template-columns:repeat(2,minmax(0,1fr))}.mw-stats .stat{min-width:0;padding:18px;box-shadow:none}.mw-stats .stat strong{font-size:23px;overflow-wrap:anywhere}.mw-stats .stat .label{font-size:12px}.mw-stats .stat small{font-size:11px}.mw-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.mw-action{background:var(--mw-teal);color:white;border:0;border-radius:13px;min-height:85px;padding:12px 5px;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer}.mw-action span{font-size:25px;line-height:1}.mw-row{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:15px 0;border:0;border-bottom:1px solid var(--mw-line);background:none;text-align:left;color:var(--mw-ink)}button.mw-row{cursor:pointer}.mw-row small,.mw-row>span{display:block;color:var(--mw-muted);font-size:12px;margin-top:5px}.mw-row .badge{display:block;margin-top:5px}.mw-row>div:last-child{text-align:right}.mw-dialog{width:min(740px,96vw);max-height:94dvh;overflow:auto;border:1px solid var(--mw-line);border-radius:20px;color:var(--mw-ink)}.mw-dialog input,.mw-dialog select,.mw-dialog textarea{width:100%;box-sizing:border-box;min-height:44px}.mw-dialog input[type=checkbox]{width:auto;min-height:0}.mw-dialog textarea{min-height:75px}.mw-dialog label small{display:block;color:var(--mw-muted);margin-top:5px}.mw-dialog [hidden]{display:none!important}.mw-request{padding:18px;border:1px solid var(--mw-line);border-radius:12px;margin:12px 0}.mw-request p{white-space:pre-wrap}.mw-request form{display:grid;gap:10px}.mw-request textarea{min-height:70px}.mw-admin-actions{display:flex;flex-wrap:wrap;gap:10px}.mw-admin-actions a{text-decoration:none}#mobileBottom{display:none}#mobileOffline{position:sticky;top:0;z-index:1000;padding:10px;background:#fff0cc;color:#553900;text-align:center;font-size:13px}#mobileOffline[hidden]{display:none}
@media(max-width:980px){body{background:#f5f8f9}#sidebar{position:fixed!important;top:0;left:0;bottom:0;width:280px;z-index:1100;transform:translateX(-105%);transition:transform .18s;box-shadow:10px 0 50px #102c3e30;overflow-y:auto}#sidebar.open{transform:translateX(0)}#workspace{display:block}.main{margin-left:0!important;width:100%;min-width:0}.main>header{height:auto;min-height:60px;padding:10px 16px;gap:12px;position:sticky;top:0;z-index:80;background:#fff;flex-wrap:wrap}#menuToggle{display:block!important}.breadcrumb{font-size:12px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-right{margin-left:auto;gap:8px}.header-right>span{display:none}#mobileInstall,#logout{padding:8px;font-size:11px}.main>main,#content{padding:18px 14px 95px!important;max-width:100%;min-width:0}.main>footer{display:none}.page-head{display:flex;flex-wrap:wrap;gap:12px}.page-head h1{font-size:25px}.page-head p{font-size:13px}.page-head>button{flex:1;min-width:125px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.stat{min-width:0}.stat strong{font-size:23px}.grid-two,.grid-three,.recruitment-layout{grid-template-columns:minmax(0,1fr)!important}.panel{min-width:0;border-radius:15px}.panel-head{gap:10px;flex-wrap:wrap}.panel-head h2{font-size:17px}.panel-body{padding:16px}.table-wrap,.table-scroll{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}table{font-size:12px}.filters{display:flex;flex-wrap:wrap;gap:10px}.filters>*,.filters>label{min-width:135px;flex:1}.filters input,.filters select{max-width:100%;min-height:44px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{min-width:0}.form-grid label.full{grid-column:1/-1}input,select,textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}input:not([type=checkbox]):not([type=radio]),select,button{min-height:42px}dialog{max-width:96vw;max-height:94dvh;width:94vw;border-radius:18px;padding:18px}dialog .dialog-head{gap:8px}dialog .dialog-head h2{font-size:21px}.dialog-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;margin-bottom:0;z-index:5}.dialog-actions button{flex:1}#mobileBottom{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);bottom:0;left:0;right:0;z-index:100;background:#fffffff5;border-top:1px solid var(--mw-line);padding:8px 5px max(8px,env(safe-area-inset-bottom));backdrop-filter:blur(10px)}#mobileBottom button{border:0;background:none;color:#667789;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}#mobileBottom button span{font-size:22px}#mobileBottom button.selected{color:var(--mw-teal);font-weight:700}.mw-hero{padding:22px}.mw-hero>strong{font-size:31px}.mw-stats .stat{padding:15px}.mw-stats .stat strong{font-size:21px}.mw-greeting h1{font-size:27px}.mw-home .panel{margin-top:15px}.premium-tabs,.tabbar{display:flex;flex-wrap:wrap;gap:8px}.login form{width:min(420px,90vw);box-sizing:border-box}#toast{max-width:90vw;bottom:90px;z-index:1500}.mw-stats .stat .stat-icon{display:none}.mw-dialog .form-grid{grid-template-columns:1fr}.mw-admin-actions>*{flex:1}.mw-row strong{font-size:13px}}
@media(max-width:380px){.mw-actions{gap:6px}.mw-stats .stat strong{font-size:18px}.form-grid{grid-template-columns:1fr}.mw-split b{font-size:16px}}

.mw-hero p{color:#d4e8eb}.mw-hero .mw-white{margin-top:8px}.mw-small .mw-stats .stat small{font-size:11px}.mw-dialog::backdrop{background:#102c3e88}
.mw-row>div{min-width:0}.mw-row small{overflow-wrap:anywhere}
.pw-entry{padding:16px 0;border-bottom:1px solid var(--mw-line);overflow-wrap:anywhere}.pw-entry:last-child{border:0}.pw-entry p{font-size:13px}.pw-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.pw-danger{color:#b32736!important;border-color:#e7b8bf!important}.pw-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pw-counts span{background:#f3f7f8;border-radius:10px;padding:12px;font-size:12px}.pw-counts b{display:block;font-size:23px;margin-top:6px}.pw-detail td{white-space:normal;overflow-wrap:anywhere}.pw-detail .table-wrap{overflow:auto}.pw-detail table{table-layout:fixed;width:100%}

/* Mobile controls: allow labels and action groups to grow without overlap. */
@media screen and (max-width:980px){
 button,.button,a.quiet,a.primary{box-sizing:border-box;max-width:100%;height:auto;min-height:44px;line-height:1.35;white-space:normal;overflow-wrap:break-word;vertical-align:middle;touch-action:manipulation}
 td{vertical-align:top}td button,td a.quiet,td a.primary{display:inline-flex;align-items:center;justify-content:center;margin:4px 4px 4px 0;padding:10px 12px;min-width:0;max-width:100%;position:static;white-space:normal}
 td .actions,td .row-actions,td .button-group{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;height:auto;white-space:normal}
 td .actions>*,td .row-actions>*,td .button-group>*{margin:0}
 .filters{align-items:flex-end}.filters>*{min-width:0!important;max-width:100%;box-sizing:border-box}.filters label{flex:1 1 180px;min-width:0!important}.filters input,.filters select{width:100%;min-width:0!important;box-sizing:border-box}
 .dialog-actions,.panel-head .actions,.page-head .actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;height:auto}
 .dialog-actions>*{min-width:0;flex:1 1 130px}
 .header-right{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.header-right button{margin:0;line-height:1.3}
 button:focus-visible,a:focus-visible{outline:3px solid #34a6ae;outline-offset:2px}
}
@media screen and (max-width:600px){.filters>label,.filters>input,.filters>select{flex:1 1 100%!important;width:100%}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid>*{min-width:0}.breadcrumb{flex:1;max-width:none}.main>header .header-right{width:100%;justify-content:flex-end}}

@media screen and (max-width:980px){td:has(>button),td:has(>a.quiet){min-width:190px;white-space:normal!important}.controls-row>*{min-width:0;max-width:100%}.controls-row input,.controls-row select{flex:1 1 160px}.pw-actions>a.quiet{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.pw-entry .ep-between{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px}.pw-entry .pw-actions>*{flex:0 1 auto}}

/* Mobile navigation drawer: isolated scroll, explicit close and outside dismissal. */
.mw-menu-close,#mwMenuBackdrop{display:none}
@media screen and (max-width:980px){
 body.mw-menu-open{overflow:hidden}
 #sidebar{width:min(310px,calc(100vw - 48px));height:100dvh;max-height:100dvh;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;padding:16px 12px}
 #sidebar .brand{flex:0 0 auto;height:90px;margin:0 0 16px;padding:12px 40px 12px 10px}
 #sidebar #nav{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:12px}
 #sidebar #nav button{min-height:44px;height:auto;line-height:1.35;white-space:normal;overflow-wrap:break-word;margin:3px 0;padding:11px 12px;gap:10px;align-items:center;text-align:left}
 #sidebar .nav-icon{flex:0 0 24px;min-width:24px;line-height:1.2}
 #sidebar .sidebar-footer{flex:0 0 auto;padding-top:12px;margin-top:6px;min-height:66px}
 #sidebar .sidebar-footer>div:last-child{min-width:0;overflow-wrap:anywhere}
 #sidebar .mw-menu-close{display:grid;place-items:center;position:absolute;right:10px;top:12px;width:40px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:#173f51;color:#fff;font-size:28px;z-index:2;line-height:1}
 #mwMenuBackdrop{display:block;position:fixed;inset:0;z-index:1090;width:100%;height:100dvh;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#0b233b88;backdrop-filter:blur(2px)}
 #mwMenuBackdrop[hidden]{display:none!important}
}

.queue-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.queue-setup{padding:18px;background:#f2f8fa;border:1px solid var(--mw-line);border-radius:12px}.queue-command{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:10px;background:white;margin:10px 0}.queue-dialog .table-wrap{overflow:auto}.queue-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.lp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.lp-actions button{flex:1 1 145px}.lp-item{display:block;width:100%;text-align:left;padding:15px;border:1px solid var(--mw-line);border-radius:10px;background:white;color:var(--mw-ink);margin:10px 0}.lp-item span,.lp-item small{display:block;margin-top:6px}.lp-dialog [data-lp-error]{color:#a52735;overflow-wrap:anywhere}.lp-dialog button{min-height:44px;white-space:normal;line-height:1.35}.lp-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.queue-dialog td{vertical-align:top}
