/* Kebarick HR & Payroll v16.4.3 — Employee Experience
   Only visual/interaction upgrades. Database and server controls remain unchanged. */
body.server-authenticated #app .master-directory {min-width:0;overflow:visible;}
body.server-authenticated #app .master-directory-head {display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:17px 19px!important;}
body.server-authenticated #app .master-directory-head h2 {font:800 19px/1.3 'Manrope','DM Sans',sans-serif!important;letter-spacing:-.025em;}
body.server-authenticated #app .master-directory-head p {font-size:12px!important;line-height:1.5!important;}
body.server-authenticated #app .master-view-tabs {margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
body.server-authenticated #app .master-view-tabs .btn {white-space:nowrap;min-height:40px;padding:9px 13px!important;font:700 12px/1.35 'DM Sans',sans-serif!important;}
body.server-authenticated #app .kv-employee-guide {font:500 12px/1.5 'DM Sans',sans-serif;color:#52716c;background:#eff8f5;border-bottom:1px solid #d4eae5;padding:10px 19px;margin:0;}
body.server-authenticated #app .master-toolbar {display:grid!important;grid-template-columns:minmax(220px,2.1fr) repeat(3,minmax(135px,1fr));align-items:center;gap:10px!important;padding:16px 19px 9px!important;min-width:0;}
body.server-authenticated #app .master-toolbar .master-search {display:flex;gap:7px;min-width:0;}
body.server-authenticated #app .master-toolbar :is(input,select) {font:500 13px 'DM Sans',sans-serif!important;min-height:43px!important;min-width:0;width:100%;}
body.server-authenticated #app .master-toolbar .master-search input {min-width:0;flex:1;}
body.server-authenticated #app .master-toolbar #masterSearchButton {font:700 12px 'DM Sans',sans-serif!important;min-height:43px;flex-shrink:0;}
body.server-authenticated #app .kv-employee-filter-tools {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:3px 19px 14px;border-bottom:1px solid #e2eae8;}
body.server-authenticated #app .kv-reset-filters {min-height:33px!important;padding:7px 13px!important;font:700 11px 'DM Sans',sans-serif!important;}
body.server-authenticated #app .kv-employee-filter-note {color:#5a7570;font:500 11px/1.45 'DM Sans',sans-serif;}
body.server-authenticated #app .kv-employee-columns{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #dce8e4;background:#f7fbfa;padding:12px 19px;color:#244d48;}
body.server-authenticated #app .kv-employee-columns[hidden]{display:none!important;}
body.server-authenticated #app .kv-employee-columns strong{font:800 12px 'DM Sans',sans-serif;}
body.server-authenticated #app .kv-column-switch{display:flex;gap:7px;align-items:center;cursor:pointer;font:600 12px 'DM Sans',sans-serif;}
body.server-authenticated #app .kv-column-switch input{width:16px;height:16px;accent-color:#078278;}
body.server-authenticated #app .kv-employee-columns small{width:100%;color:#5e7671;line-height:1.4;font-size:11px;}
body.server-authenticated #peopleTable{min-width:0;width:100%;}
body.server-authenticated #peopleTable .master-table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable;}
body.server-authenticated #peopleTable .kv-employee-data-grid{border-collapse:separate;border-spacing:0;min-width:900px;table-layout:auto;}
body.server-authenticated #peopleTable .master-register .kv-employee-data-grid{min-width:1020px;}
body.server-authenticated #peopleTable table :is(th,td){padding:12px 11px!important;vertical-align:middle;white-space:nowrap;font:500 12px/1.35 'DM Sans',sans-serif;}
body.server-authenticated #peopleTable table thead th{position:sticky;top:0;background:#eef5f2;z-index:3;font-weight:750;color:#285e56;border-bottom:1px solid #d2e3de;}
body.server-authenticated #peopleTable table tbody tr:hover{background:#f4faf8;}
body.server-authenticated #peopleTable table td:first-child {font-weight:700;}
body.server-authenticated #peopleTable table :is(th,td)[hidden],body.server-authenticated #peopleTable table .kv-column-hidden {display:none!important;}
body.server-authenticated #peopleTable .master-table-scroll:not(.master-register) .kv-employee-data-grid :is(th:first-child,td:first-child) {position:sticky;left:0;z-index:2;background:#fff;min-width:240px;box-shadow:1px 0 0 #e0eeea;}
body.server-authenticated #peopleTable .master-table-scroll:not(.master-register) .kv-employee-data-grid thead th:first-child {z-index:5;background:#eef5f2;}
body.server-authenticated #peopleTable .master-register .kv-employee-data-grid :is(th:first-child,td:first-child) {position:sticky;left:0;z-index:4;background:#fff;min-width:106px;box-shadow:1px 0 0 #e0eeea;}
body.server-authenticated #peopleTable .master-register .kv-employee-data-grid :is(th:nth-child(2),td:nth-child(2)){position:sticky;left:106px;z-index:3;background:#fff;min-width:180px;box-shadow:1px 0 0 #e0eeea;}
body.server-authenticated #peopleTable .master-register .kv-employee-data-grid thead :is(th:first-child,th:nth-child(2)){z-index:6;background:#eef5f2;}
body.server-authenticated #peopleTable .kv-employee-data-grid :is(button.master-name,button.master-inline-name){text-align:left;}
body.server-authenticated #peopleTable .kv-employee-data-grid :is(button,select):focus-visible{outline:2px solid #008f82;outline-offset:2px;}
/* Protected employee profile: fast section navigation and readable form density */
body.server-authenticated #app .record-page-head{padding:20px 22px!important;min-width:0;}
body.server-authenticated #app .record-page-head h1{font:800 clamp(21px,2vw,29px)/1.25 'Manrope','DM Sans',sans-serif!important;}
body.server-authenticated #app .record-page-head .record-head-actions{display:flex;flex-wrap:wrap;gap:8px;}
body.server-authenticated #app .kv-profile-sections{display:flex;align-items:center;gap:14px;min-width:0;border:1px solid #d5e9e3;border-radius:13px;background:#f7fbfa;padding:10px 14px;margin:0 0 16px;}
body.server-authenticated #app .kv-profile-sections>strong{font:800 12px 'DM Sans',sans-serif;color:#14685c;white-space:nowrap;}
body.server-authenticated #app .kv-profile-section-links{display:flex;align-items:center;gap:7px;min-width:0;overflow:auto;scrollbar-width:thin;padding:3px;}
body.server-authenticated #app .kv-profile-link{flex:none;font:700 11px 'DM Sans',sans-serif;border:1px solid #cce4de;border-radius:9px;background:#fff;color:#25645a;padding:10px 12px;cursor:pointer;}
body.server-authenticated #app .kv-profile-link:hover,body.server-authenticated #app .kv-profile-link.active{background:#087f75;color:#fff;border-color:#087f75;}
body.server-authenticated #app .record-page-section{scroll-margin-top:115px;min-width:0;}
body.server-authenticated #app .record-page-section h2{font:800 16px 'Manrope','DM Sans',sans-serif;}
body.server-authenticated #app .record-page-form :is(input,select,textarea){min-height:41px;font:500 12px 'DM Sans',sans-serif;}
/* Registration wizard: clearer state, smaller voids, reliable fixed footer */
#modal.employee-form-open .modal-card {width:min(1260px,calc(100vw - 32px))!important;height:min(92dvh,900px)!important;max-height:92dvh!important;}
#modal.employee-form-open .employee-form-head{padding:17px 24px!important;flex:none;}
#modal.employee-form-open .employee-form-head h2{font:800 clamp(21px,2.4vw,26px)/1.2 'Manrope','DM Sans',sans-serif!important;}
#modal.employee-form-open .employee-form-head p{font:500 12px/1.5 'DM Sans',sans-serif!important;max-width:850px;}
#modal.employee-form-open .employee-form-layout{grid-template-columns:214px minmax(0,1fr)!important;min-height:0;}
#modal.employee-form-open .employee-form-main{padding:22px 27px!important;overflow-y:auto;min-height:0;}
#modal.employee-form-open .employee-form-panel{max-width:1060px;}
#modal.employee-form-open .employee-fields{gap:15px 17px!important;align-items:start!important;}
#modal.employee-form-open .employee-fields label{align-self:start;}
#modal.employee-form-open .employee-fields :is(input,select,textarea){min-height:46px!important;font:500 13px/1.4 'DM Sans',sans-serif!important;}
#modal.employee-form-open .employee-fields :is(input,select,textarea)::placeholder{font-size:12px;}
#modal.employee-form-open .employee-fields label>span{font:800 11px/1.35 'DM Sans',sans-serif!important;margin-bottom:7px!important;}
#modal.employee-form-open .employee-section-title{margin:0 0 22px!important;align-items:start;}
#modal.employee-form-open .employee-section-title h3{font:800 19px/1.3 'Manrope','DM Sans',sans-serif!important;}
#modal.employee-form-open .employee-section-title p{font:500 12px/1.45 'DM Sans',sans-serif!important;margin-top:4px;}
#modal.employee-form-open .employee-form-foot{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px!important;padding:13px 20px!important;flex:none;}
#modal.employee-form-open .employee-form-foot>span:empty{display:none!important;}
#modal.employee-form-open .employee-form-foot button{min-height:40px!important;min-width:auto!important;padding:9px 17px!important;font:750 12px 'DM Sans',sans-serif!important;}
#modal.employee-form-open .employee-form-foot .employee-save-draft{margin-right:auto!important;color:#136e62;border-color:#83c9b9;}
#modal.employee-form-open .employee-form-foot [hidden]{display:none!important;}
#modal.employee-form-open .kv-draft-help{font:500 11px/1.4 'DM Sans',sans-serif!important;color:#4c7068;padding:9px 23px;margin:0;background:#f2f8f6;border-top:1px solid #daeae5;}
#modal.employee-form-open .employee-stepper{padding:12px!important;overflow-y:auto;}
#modal.employee-form-open .employee-stepper button{min-height:43px!important;font:700 12px 'DM Sans',sans-serif!important;}
#modal.employee-form-open .kv-employee-progress{display:grid;gap:7px;padding:11px 10px 16px;border-bottom:1px solid #d9e9e5;margin-bottom:12px;}
#modal.employee-form-open .kv-progress-label{font:800 12px/1.4 'DM Sans',sans-serif;color:#17685d;}
#modal.employee-form-open .kv-progress-track{height:7px;background:#d5eae4;border-radius:20px;overflow:hidden;}
#modal.employee-form-open .kv-progress-fill{display:block;height:100%;width:12.5%;background:#087f75;border-radius:20px;transition:width .12s ease;}
#modal.employee-form-open .kv-employee-progress small{font:500 10px/1.45 'DM Sans',sans-serif;color:#557d74;}
#modal.employee-form-open .employee-stepper [aria-current="step"]{box-shadow:0 0 0 1px #7bc4b5;}
#modal.employee-form-open .employee-subsection{margin-top:20px!important;}
#modal.employee-form-open .employee-subsection :is(h4,p){line-height:1.5;}
@media(max-width:1150px){body.server-authenticated #app .master-toolbar{grid-template-columns:minmax(180px,1fr) repeat(2,minmax(125px,.65fr));}body.server-authenticated #app #masterStatus{grid-column:2/-1;} }
@media(max-width:800px){body.server-authenticated #app .master-toolbar{grid-template-columns:1fr 1fr;}body.server-authenticated #app .master-toolbar .master-search{grid-column:1/-1;}body.server-authenticated #app #masterStatus{grid-column:auto;}#modal.employee-form-open{padding:0!important;}#modal.employee-form-open .modal-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;}#modal.employee-form-open .employee-form-layout{grid-template-columns:minmax(0,1fr)!important;display:flex!important;flex-direction:column!important;}#modal.employee-form-open .employee-stepper{display:flex;gap:7px;overflow:auto;flex:none;padding:8px 12px!important;}#modal.employee-form-open .kv-employee-progress{flex:0 0 170px;border-bottom:0;border-right:1px solid #d9e9e5;margin:0;padding:7px 9px;}#modal.employee-form-open .employee-stepper>button{flex:0 0 45px;}#modal.employee-form-open .employee-form-main{padding:16px!important;flex:1;}#modal.employee-form-open .kv-draft-help{padding:7px 14px;}}
@media(max-width:560px){body.server-authenticated #app .master-toolbar{grid-template-columns:1fr;}body.server-authenticated #app .master-toolbar .master-search{grid-column:auto;}body.server-authenticated #app .master-toolbar #masterStatus{grid-column:auto;}body.server-authenticated #app .kv-profile-sections{display:block;}body.server-authenticated #app .kv-profile-sections>strong{display:block;margin-bottom:8px;}#modal.employee-form-open .employee-fields{grid-template-columns:1fr!important;}#modal.employee-form-open .employee-form-foot{justify-content:space-between!important;}#modal.employee-form-open .employee-form-foot .employee-save-draft{margin-right:0!important;}#modal.employee-form-open .employee-form-foot #employeeNextBtn,#modal.employee-form-open .employee-form-foot #employeeSubmitBtn{flex:1;}#modal.employee-form-open .employee-form-head{padding:14px 16px!important;}#modal.employee-form-open .employee-form-head p{font-size:11px!important;}}
@media(prefers-reduced-motion:reduce){#modal.employee-form-open .kv-progress-fill{transition:none;}}
