/* Approved MASTER direction: one sidebar, category cards, then one submenu row. */
:root{--master-ink:#142f3c;--master-muted:#6d7e90;--master-orange:#f26718;--master-border:#e1e8ed;--master-bg:#f5f7f9}
body{font-family:Arial,'Segoe UI',sans-serif;color:var(--master-ink);font-size:15px;background:var(--master-bg)}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #468dcd;outline-offset:3px}
.sidebar{width:240px;padding:28px 16px 22px;background:#102e3d;display:flex;flex-direction:column}.sidebar-brand{padding:4px 12px 24px;gap:18px}.sidebar .brand-logo{width:192px;max-width:100%;height:auto}.sidebar-brand>span{font-size:11px;letter-spacing:1.25px;line-height:1.6}
.app-main{margin-left:240px;min-width:0}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar .nav-button{display:flex;align-items:center;justify-content:flex-start;gap:15px;width:100%;height:49px;min-height:49px;padding:0 16px;border:0;border-radius:9px;font-size:15px;line-height:1.2;font-weight:500;text-align:left;color:#c9d8e3;background:transparent}.sidebar .nav-button span{display:inline;font-size:15px}.sidebar .nav-button.active{background:var(--master-orange);color:#fff;font-weight:600}.sidebar .nav-button:hover:not(.active){background:#1c3e50}.sidebar-bottom{margin-top:auto;padding:25px 12px 0;line-height:1.7;font-size:11px;color:#a6c1ce}.sidebar-bottom .version{font-size:11px}.sidebar-bottom p{font-size:11px}.side-message{font-size:12px;margin-bottom:12px}
.master-icon{width:22px;height:22px;flex:0 0 auto}.sidebar .master-icon{width:21px;height:21px}.topbar{height:78px;min-height:78px;background:#fff;border-bottom:1px solid var(--master-border);padding:0 32px}.topbar .app-title{font-size:20px}.breadcrumbs{font-size:12px;font-weight:400;color:var(--master-muted);margin-top:4px}.top-actions{gap:14px}.top-actions .avatar{width:42px;height:42px;font-size:14px}.top-actions .pill{font-size:11px;padding:8px 10px}.header-logo{display:none!important}#content{padding:28px 32px 36px;min-width:0}.app-footer{padding:18px 32px;font-size:11px;gap:12px;border-top:1px solid var(--master-border);color:var(--master-muted)}
.master-shell{width:100%;max-width:1680px;margin:0 auto}.master-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.master-page-heading h1{font:800 30px/1.2 Arial,'Segoe UI',sans-serif;letter-spacing:-.8px;margin:0 0 8px;color:#0e293d}.master-page-heading p{color:var(--master-muted);margin:0;font-size:14px;line-height:1.5}.master-page-heading>button{font-size:12px;min-height:36px;padding:8px 13px}
.master-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 12px}.master-category{display:flex;align-items:center;gap:17px;padding:18px 20px;min-height:84px;text-align:left;border:1px solid var(--master-border);border-radius:11px;background:#fff;color:var(--master-ink);box-shadow:none}.master-category>.master-icon{width:30px;height:30px}.master-category strong{font-size:14px;line-height:1.4;display:block;letter-spacing:.1px}.master-category small{display:block;color:var(--master-muted);margin-top:6px;font-size:12px;line-height:1.4}.master-category.selected{border-color:var(--master-orange);background:#fff8f3;box-shadow:inset 0 -3px var(--master-orange)}.master-category.selected>.master-icon{color:var(--master-orange)}
.master-tabs{display:flex;align-items:stretch;gap:8px;overflow-x:auto;max-width:100%;background:#fff;border:1px solid var(--master-border);border-radius:11px;padding:0 12px;margin-bottom:24px;scrollbar-width:thin}.master-tab{padding:19px 16px 17px;border:0;border-bottom:3px solid transparent;background:transparent;color:#52677b;font-size:13px;font-weight:600;white-space:nowrap;min-height:58px;border-radius:0;flex:0 0 auto}.master-tab.selected{color:#d7520c;border-bottom-color:var(--master-orange)}.master-tab:hover{background:#fafbfc}
.master-section-heading{display:flex;align-items:center;gap:13px;margin:0 0 20px}.master-title-icon{background:white;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;flex-shrink:0}.master-title-icon>.master-icon{width:31px;height:31px}.master-section-heading h2{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin:0 0 6px}.master-section-heading p{margin:0;color:var(--master-muted);font-size:13px;line-height:1.5}.master-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.master-shell .primary{background:var(--master-orange);color:#fff;border:1px solid var(--master-orange)}.master-shell .secondary{background:#fff;color:var(--master-ink);border:1px solid var(--master-border)}.master-shell .primary,.master-shell .secondary{font-size:13px;font-weight:600;min-height:39px;padding:10px 14px;border-radius:7px;line-height:1.3}.master-shell .compact{font-size:12px;padding:7px 10px;min-height:33px}
.master-notice{padding:13px 18px;background:#edf5fb;color:#315e86;border:1px solid #d9e8f4;border-radius:10px;font-size:13px;line-height:1.6;margin-bottom:18px}.master-card{border:1px solid var(--master-border);box-shadow:none;border-radius:12px;padding:22px;margin:0 0 18px;min-width:0;background:#fff}.master-toolbar{display:flex;align-items:center;gap:15px;margin-bottom:20px;flex-wrap:wrap}.master-count{font-size:12px;color:var(--master-muted);white-space:nowrap}.master-search{display:flex;align-items:center;gap:9px;border:1px solid #dce4ec;border-radius:7px;padding:0 12px;min-height:42px;width:340px;max-width:100%;color:#7b8b9d;margin:0}.master-search>.master-icon{width:18px;height:18px}.master-search input{border:0;box-shadow:none;background:transparent;margin:0;padding:11px 0;min-width:0;width:100%;font-size:13px;color:var(--master-ink);height:40px}.master-year{margin:0 0 0 auto;display:flex;align-items:center;gap:10px;font-size:12px}.master-year input{width:92px;margin:0;padding:9px}
.master-table{width:100%;border-collapse:collapse;font-size:13px}.master-table th{padding:12px 14px;background:#f7f9fa;color:#6d7d8c;font-size:11px;letter-spacing:.35px;text-transform:uppercase;white-space:nowrap;text-align:left;border-bottom:1px solid var(--master-border)}.master-table td{padding:16px 14px;border-bottom:1px solid #edf1f4;vertical-align:middle}.master-table tbody tr:last-child td{border-bottom:0}.master-table strong{display:block;font-weight:600;font-size:13px}.master-table small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--master-muted)}.master-table .row-actions{margin:0;flex-wrap:nowrap}.master-status{font-size:11px;background:#eff2f5;color:#5e6b79;padding:6px 9px;border-radius:5px;white-space:nowrap}.master-status.ok{color:#24755e;background:#e8f5ef}.master-table input:not([type=checkbox]){font-size:13px;min-width:160px}.master-components .form-error{white-space:normal;max-width:200px}.master-footnote{font-size:12px;color:var(--master-muted);line-height:1.7;margin:4px 2px 16px}.table-wrap{max-width:100%;overflow-x:auto}
.master-empty{min-height:265px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 22px}.empty-symbol{display:flex;align-items:center;justify-content:center;width:78px;height:78px;border-radius:50%;background:#f2f5f8;color:#8b9bab;margin-bottom:20px}.empty-symbol>.master-icon{width:35px;height:35px}.master-empty h3{font-size:17px;letter-spacing:-.25px;margin:0 0 10px;line-height:1.5}.master-empty p{font-size:13px;line-height:1.7;color:var(--master-muted);max-width:430px;margin:0 0 15px}.master-empty button+button{margin-top:10px}.master-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--master-border);padding-bottom:17px;margin-bottom:18px}.master-panel-heading h3{font-size:15px;margin:0}.master-panel-heading>span{font-size:12px;color:var(--master-muted)}
.master-org-grid{display:grid;grid-template-columns:minmax(230px,1.05fr) minmax(340px,1.8fr) minmax(220px,1fr);gap:16px}.master-org-grid>.card{padding:19px;min-height:405px}.master-org-grid .master-empty{padding:25px 12px;min-height:280px}.master-org-grid .master-empty h3{font-size:16px}.org-chart .empty-symbol{background:#fff3e9}.org-chart .master-empty{min-height:300px}.org-chart-scroll{max-height:650px;overflow:auto;display:flex;flex-wrap:wrap;gap:14px;justify-content:center}.org-branch{min-width:210px;max-width:100%;flex:1 1 200px;padding:15px;border:1px solid var(--master-border);border-radius:10px;text-align:center;background:#fbfcfd}.org-branch h4{margin:0 0 16px;font-size:15px}.org-person-node{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #dfe7ed;border-radius:8px;background:white}.org-person-node span{font-size:10px;color:var(--master-muted);text-transform:uppercase;letter-spacing:.6px}.org-person-node strong{font-size:12px}.org-connector{height:13px;width:1px;background:#b9cbd8;margin:0 auto}.division-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:white;border:1px solid var(--master-border);border-radius:8px;padding:13px;margin-top:10px;color:var(--master-ink)}.division-item strong{display:block;font-size:13px}.division-item small{display:block;color:var(--master-muted);font-size:11px;margin-top:5px}.division-item.selected{background:#fff7f1;border-color:#f6c19c}.master-facts{font-size:13px;line-height:1.5;margin-bottom:22px}.master-facts dt{font-size:11px;color:var(--master-muted);margin-top:13px}.master-facts dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}.master-member{padding:12px 0;border-bottom:1px solid var(--master-border);display:flex;flex-direction:column;gap:8px}.master-member small{font-size:11px;color:var(--master-muted)}
#modal{width:min(640px,calc(100vw - 28px));max-height:90dvh;border-radius:14px;border:1px solid var(--master-border);padding:0;overflow-y:auto}.modal-head{position:sticky;top:0;background:white;z-index:2;border-bottom:1px solid var(--master-border);padding:18px 24px}.modal-head h2{font-size:20px}.modal-head .icon-button{min-width:36px}#modal-body{padding:22px 24px}#modal label{font-size:13px;line-height:1.5}#modal input,#modal select,#modal textarea{font-size:14px;padding:10px 12px;max-width:100%}#modal input[type=checkbox]{width:16px;height:16px;flex:0 0 auto}#modal .form-grid{gap:16px}#modal .master-check{display:flex;gap:9px;align-items:center;margin:0}.master-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.master-days{border:1px solid var(--master-border);border-radius:8px;padding:12px;display:flex;flex-wrap:wrap;gap:13px;margin:15px 0}.master-days legend{font-size:12px}.master-days label{display:flex;gap:6px;align-items:center;margin:0}#modal .form-error{font-size:13px;line-height:1.5;white-space:normal}.pp-banner{background:#fff9f2;border-color:#f4ddc4;font-size:12px;padding:12px 16px}.pp-banner strong{font-size:12px}.pp-banner p{font-size:12px;line-height:1.6}.master-shell .page-heading h1{font-size:25px}.master-shell .page-heading{margin-bottom:18px}
@media(min-width:1600px){.master-tabs{justify-content:space-between}.master-tab{padding-left:20px;padding-right:20px}}
@media(max-width:1300px){.master-category{padding:16px 12px;gap:10px}.master-category strong{font-size:12px}.master-category small{font-size:11px}.master-category>.master-icon{width:25px;height:25px}.master-org-grid{grid-template-columns:minmax(210px,1fr) minmax(300px,1.6fr)}.org-detail{grid-column:1/-1;min-height:170px!important}.org-detail .master-empty{min-height:120px}.org-detail .empty-symbol{display:none}}
@media(max-width:1024px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.app-main{margin-left:210px}#content{padding:22px}.topbar{padding:0 22px}.master-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.master-category strong{font-size:14px}.master-category small{font-size:12px}.master-heading-actions{max-width:45%}.master-section-heading h2{font-size:22px}}
@media(max-width:900px){.sidebar{display:none}.app-main{margin-left:0;width:100%}.topbar{height:68px;min-height:68px;padding:0 16px}.header-copy .app-title{font-size:17px}.breadcrumbs{font-size:10px;max-width:185px;line-height:1.45}.top-actions{gap:7px}.top-actions .pill{font-size:10px;padding:6px}.top-actions .avatar,.top-actions .icon-button{width:33px;height:33px;min-width:33px}.header-logo{display:none!important}.topbar .header-identity{gap:0}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--master-border);z-index:15;height:68px;padding:6px 2px calc(6px + env(safe-area-inset-bottom))}.mobile-nav button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;padding:4px 0;font-size:9px;border:0;background:transparent;color:#6c7f8e}.mobile-nav button span{font-size:9px}.mobile-nav button.active{color:#dc5b10}.mobile-nav .master-icon{width:20px;height:20px}#content{padding:20px 14px 30px}.app-footer{padding:15px 14px 86px;display:block;font-size:10px}.app-footer span{display:block;margin-bottom:5px}.master-page-heading{margin-bottom:20px;align-items:flex-start;gap:8px}.master-page-heading h1{font-size:26px}.master-page-heading p{font-size:12px}.master-page-heading>button{font-size:10px;padding:7px;min-height:32px;white-space:nowrap}.master-categories{gap:9px}.master-category{padding:13px 10px;gap:9px;min-height:76px;border-radius:9px}.master-category strong{font-size:11px}.master-category small{font-size:10px}.master-category>.master-icon{width:23px;height:23px}.master-tabs{border-radius:9px;gap:2px;padding:0 6px;margin-bottom:20px}.master-tab{font-size:12px;padding:14px 10px;min-height:49px}.master-section-heading{flex-wrap:wrap;gap:10px;margin-bottom:16px}.master-title-icon{width:40px;height:40px}.master-title-icon>.master-icon{width:25px;height:25px}.master-section-heading>div:nth-child(2){flex:1;min-width:0}.master-section-heading h2{font-size:21px}.master-section-heading p{font-size:12px}.master-heading-actions{max-width:100%;margin:4px 0 0;width:100%;justify-content:flex-start}.master-card{padding:15px}.master-toolbar{gap:10px}.master-search{width:100%;min-width:0}.master-year{margin-left:0}.master-org-grid{display:flex;flex-direction:column;gap:0}.master-org-grid>.card{min-height:0;padding:16px}.master-org-grid .master-empty,.org-chart .master-empty{min-height:180px}.org-list .master-empty{min-height:140px}.master-empty{min-height:245px;padding:25px 10px}.master-empty h3{font-size:16px}.master-empty p{font-size:12px}.empty-symbol{width:64px;height:64px}.master-checks{grid-template-columns:1fr}.master-notice{font-size:12px;padding:12px}.master-footnote{font-size:11px}#modal-body{padding:18px}.modal-head{padding:16px 18px}#modal .form-grid{grid-template-columns:1fr}.master-shell .primary,.master-shell .secondary{font-size:12px}.master-table{min-width:660px}.master-org-grid .master-search{width:100%}}
@media(max-width:359px){.top-actions .pill{display:none}.master-category{gap:7px}.master-category>.master-icon{width:19px;height:19px}.master-category strong{font-size:10px}.master-category small{font-size:9px}.master-page-heading>button{font-size:9px}.master-page-heading h1{font-size:24px}}
@media(max-width:900px){
 #mobile-nav{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;gap:0;height:68px!important}
 #mobile-nav button{flex:1 1 0!important;width:auto!important;min-width:0;margin:0;font-size:9px}
 #mobile-nav button span{font-size:9px!important}
 .header-logo{display:flex!important;align-items:center;justify-content:center;width:91px!important;min-width:91px;height:34px;background:#102e3d;border-radius:5px;padding:8px!important}
 .header-logo img{display:block!important;width:75px!important;height:auto!important}
 .header-copy{border:0!important;padding-left:9px!important}.header-copy .app-title{display:none!important}.breadcrumbs{max-width:120px;font-size:9px;line-height:1.6}.top-actions .pill{display:none}
}

@media(min-width:901px){#mobile-nav{display:none!important}}
@media(max-width:900px){.top-actions .pill{display:inline-block!important}.breadcrumbs{max-width:100px}.header-identity{flex-direction:row!important;align-items:center!important}}
@media(max-width:359px){#notifications{display:none}.breadcrumbs{max-width:65px}.header-logo{width:80px!important;min-width:80px!important}.header-logo img{width:65px!important}}
/* The previous mobile stylesheet used !important on a transparent logo background. */
@media(max-width:900px){.topbar .header-logo{background:#102e3d!important;border-radius:5px!important}.topbar .header-logo img{filter:none!important}}

.leave-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.leave-policy-grid>div{border:1px solid var(--line,#e3e7ed);border-radius:12px;padding:1rem}.leave-policy-grid strong{font-size:1.5rem;display:block}.leave-policy-grid span{display:block;font-size:.85rem;margin-top:.4rem;color:#657084}.leave-buckets dd{font-weight:600}.master-table td small{max-width:38rem;white-space:normal}.master-table a{text-decoration:underline;text-underline-offset:2px}@media(max-width:700px){.leave-policy-grid{grid-template-columns:1fr}}

/* HRIS batch scheduling 2026-10-31. Existing forms remain compatible. */
#modal:has(#shift-batch-form){width:min(860px,calc(100vw - 24px));max-width:860px}
.shift-batch-form{display:grid;gap:12px;min-width:0}
.shift-batch-form>.form-hint,.shift-batch-form>.form-error{margin:0}
.shift-employee-picker{border:1px solid #d5e0e6;border-radius:12px;padding:12px;min-width:0}
.shift-employee-picker legend{font-weight:700;padding:0 6px}
.shift-picker-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
.shift-picker-toolbar [data-shift-count]{margin-left:auto;font-size:12px;font-weight:700;color:#365568}
.shift-employee-list{max-height:220px;overflow:auto;border:1px solid #e0e8ee;border-radius:8px}
.shift-employee-row{display:flex!important;align-items:flex-start;gap:10px!important;padding:10px 12px;cursor:pointer;border-bottom:1px solid #e8eef2;margin:0!important}
.shift-employee-row:last-child{border-bottom:0}
.shift-employee-row[hidden]{display:none!important}
.shift-employee-row:hover,.shift-employee-row:has(input:checked){background:#f3f7fa}
.shift-employee-row input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:2px 0;accent-color:#f46b0b}
.shift-employee-row strong,.shift-employee-row small{display:block;overflow-wrap:anywhere}
.shift-employee-row strong{font-size:13px;line-height:1.4}
.shift-employee-row small{font-size:11px;color:#5f7688;line-height:1.5;margin-top:2px}
.shift-template-hint{margin:0;padding:10px 12px;border-radius:8px;background:#f1f6fa;color:#244859;font-size:12px;line-height:1.6}
.shift-batch-preview,.shift-batch-result{padding:14px;border:1px solid #d5e0e6;border-radius:12px;min-width:0}
.shift-batch-preview h3,.shift-batch-result h3{margin:0 0 8px;font-size:16px}
.shift-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.shift-summary span{background:#f3f7fa;padding:10px;border-radius:8px;font-size:11px;color:#466577}
.shift-summary b{display:block;font-size:20px;line-height:1.3;color:#122f3e}
.shift-batch-preview details{font-size:12px;margin:12px 0}
.shift-date-list{line-height:1.8;overflow-wrap:anywhere}
.shift-preview-table{max-height:220px;overflow:auto}
.shift-preview-table table{width:100%;min-width:0}
.shift-preview-table th,.shift-preview-table td{font-size:12px;padding:8px;white-space:normal}
.shift-status{font-weight:600;color:#194c35;font-size:13px;line-height:1.7}
.shift-batch-result .form-error{overflow-wrap:anywhere}
.shift-batch-actions{position:sticky;bottom:-1px;background:#fff;padding:12px 0 0;border-top:1px solid #e0e8ee;z-index:2;margin-top:4px!important;flex-wrap:wrap}
.master-table:has([data-profile-open]) th:last-child,.master-table:has([data-profile-open]) td:last-child{position:sticky;right:0;background:#fff;box-shadow:-5px 0 8px -6px #62788b;z-index:1}
.master-table:has([data-profile-open]) th:last-child{background:#f5f8fa;z-index:2}
@media(max-width:560px){.shift-summary{grid-template-columns:repeat(2,1fr)}.shift-employee-list{max-height:190px}.shift-picker-toolbar [data-shift-count]{width:100%;margin-left:0}.shift-batch-actions button{flex:1;min-width:120px}.shift-batch-form .form-grid{grid-template-columns:1fr}}

.wp-selection-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.wp-selection-actions b{margin-left:auto;color:#31536a;font-size:13px}.wp-people{max-height:240px;overflow:auto;border:1px solid #dbe4eb;border-radius:9px;padding:10px;margin-bottom:18px}.wp-person{display:flex;align-items:flex-start;gap:10px;padding:9px;border-bottom:1px solid #edf1f5;cursor:pointer}.wp-person input{width:auto;margin-top:4px}.wp-person span{display:block}.wp-person small{display:block;color:#677e91;font-weight:400;margin-top:4px;line-height:1.5}.wp-person[hidden]{display:none}.wp-pending{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-top:1px solid #dbe4eb;padding:16px 0}.wp-pending small{display:block;color:#677e91}.wp-pending p{margin:8px 0}.wp-preview{background:#f3f8fc;padding:16px;border-radius:10px;margin:16px 0}.wp-preview h3{margin-top:0}#wp-form .form-actions,#wp-decision-form .modal-actions{position:sticky;bottom:-24px;background:white;padding:14px 0;z-index:2;border-top:1px solid #dbe4eb}#wp-form button[hidden]{display:none}.master-table .row-actions{flex-wrap:wrap;max-width:230px}@media(max-width:600px){.wp-pending{display:block}.wp-pending>.row-actions{margin-top:10px}.wp-people{max-height:210px}}
