.ep-workspace{display:grid;gap:14px;min-width:0}.ep-heading,.ep-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.ep-actions{justify-content:flex-start}.ep-actions button,.ep-menu summary{min-height:34px;padding:7px 11px;font-size:13px}.ep-stats,.ep-facts{display:flex;flex-wrap:wrap;gap:12px 24px;margin:14px 0}.ep-stats strong{font-size:20px;margin-left:8px;color:#0f766e}.ep-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.ep-filters label{flex:1 1 120px}.ep-filters label:first-child{flex:2 1 210px}.ep-filters button{margin-bottom:0}.ep-table-wrap{overflow:auto;margin-top:12px}.ep-table-wrap table{min-width:650px;width:100%;table-layout:fixed}.ep-table-wrap th:last-child{width:150px}.ep-table-wrap small,.ep-history small{display:block;color:#657585;line-height:1.7}.ep-form fieldset{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ep-form,.ep-form>fieldset{min-width:0}.ep-form .ep-wide{grid-column:1/-1}.ep-form>.ep-actions{margin-top:14px}.ep-history{padding:10px 0;border-bottom:1px solid #e2e8f0}.ep-message{padding:11px 14px;border-radius:8px;background:#edf8f4;color:#14634a;margin:10px 0}.ep-error,.ep-conflict{background:#fff0ec;color:#963c2e}.ep-conflict{padding:12px;border-radius:8px;margin:10px 0}.ep-warning{color:#805312}.ep-menu{position:relative}.ep-menu summary{cursor:pointer;border:1px solid #d1dce4;border-radius:7px;list-style:none}.ep-menu[open]>div{position:absolute;z-index:20;right:0;top:100%;min-width:220px;background:white;border:1px solid #d1dce4;border-radius:8px;box-shadow:0 8px 22px #1232;padding:8px;display:grid;gap:6px}.ep-detail h4{margin-top:22px}.ep-form label{min-width:0}.ep-form input,.ep-form select{width:100%;box-sizing:border-box}@media(max-width:1100px){.ep-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-table-wrap table{min-width:580px}.ep-table-wrap th:last-child{width:110px}}

@media(min-width:769px){body.pc-ui-preview .ep-workspace button{width:auto;margin:0}body.pc-ui-preview .ep-workspace .ep-heading>.ep-actions{justify-content:flex-end}body.pc-ui-preview .ep-workspace .ep-filters{gap:8px}body.pc-ui-preview .ep-workspace .ep-filters label{flex:1 1 110px}body.pc-ui-preview .ep-workspace .ep-filters label:first-child{flex:2 1 190px}body.pc-ui-preview .ep-workspace .ep-table-wrap td{white-space:normal;overflow-wrap:anywhere}body.pc-ui-preview .support-attendance-page>.table-scroll>table{min-width:620px;table-layout:fixed}body.pc-ui-preview .support-attendance-page>.table-scroll>table th:first-child{width:27%}body.pc-ui-preview .support-attendance-page>.table-scroll>table th:nth-child(2){width:15%}body.pc-ui-preview .support-attendance-page>.table-scroll>table td{overflow-wrap:anywhere;white-space:normal}}

@media(min-width:769px){body.pc-ui-preview .support-attendance-page .attendance-admin-tools{margin:12px 0;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px}body.pc-ui-preview .support-attendance-page .attendance-admin-tools>summary{cursor:pointer;font-weight:600;color:#42616e}body.pc-ui-preview .support-attendance-page .attendance-filter-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}body.pc-ui-preview .support-attendance-page .attendance-filter-strip>.attendance-filter-divider{display:none}body.pc-ui-preview .support-attendance-page .attendance-filter-strip>*{grid-column:auto;margin:0;min-width:0}body.pc-ui-preview .support-attendance-page .attendance-filter-strip>button{width:100%;min-height:36px;margin:0}body.pc-ui-preview .support-attendance-page .attendance-sync-strip{margin-top:12px}body.pc-ui-preview .support-attendance-page>.cards{margin:12px 0}body.pc-ui-preview .support-attendance-page>.cards .stat{padding:10px}}

@media(max-width:768px){
  .ep-workspace,.ep-workspace>*{min-width:0;max-width:100%;box-sizing:border-box}
  .ep-heading,.ep-actions,.ep-stats,.ep-facts,.ep-profile-facts{min-width:0;max-width:100%}
  .ep-facts>span,.ep-profile-facts>span{min-width:0;overflow-wrap:anywhere}
  .ep-actions button,.ep-menu summary{max-width:100%;box-sizing:border-box}
  .ep-filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;min-width:0}
  .ep-filters label,.ep-filters label:first-child{width:100%;min-width:0}
  .ep-filters button{width:100%;margin:0}
  .ep-form fieldset{grid-template-columns:minmax(0,1fr)}
  .ep-table-wrap{max-width:100%;min-width:0;overflow-x:auto}
  .ep-table-wrap table{min-width:580px}
  .ep-menu[open]>div{min-width:0;width:min(220px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box}
  .ep-profile-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .ep-detail .ep-actions{width:100%}
  .ep-detail .ep-actions button{flex:1 1 auto}
}

/* Mobile touch pass: keep filters and record actions usable without widening
   the page; the table itself remains locally scrollable when it has many
   columns. */
@media(max-width:768px){
  .ep-workspace{width:100%;gap:10px}
  .ep-workspace h3{font-size:16px;line-height:1.4}
  .ep-heading{align-items:flex-start}
  .ep-heading>.ep-actions,.ep-detail .ep-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ep-actions button,.ep-menu summary{min-height:40px;margin:0}
  .ep-menu{grid-column:1/-1}
  .ep-menu summary{text-align:center}
  .ep-filters button{min-height:40px}
  .ep-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
  .ep-stats>span{padding:9px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;line-height:1.45;overflow-wrap:anywhere}
  .ep-stats strong{display:block;margin:3px 0 0;font-size:19px}
  .ep-form{display:grid;gap:10px}
  .ep-form>.ep-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .ep-form>.ep-actions button{width:100%;min-height:42px}
  .ep-table-wrap table{min-width:650px}
  .ep-table-wrap th,.ep-table-wrap td{padding:10px 9px;vertical-align:top;overflow-wrap:anywhere}
  .ep-table-wrap th:last-child,.ep-table-wrap td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-6px 0 12px -11px #536675}
  .ep-table-wrap th:last-child{z-index:2;background:#f5f8f9}
  .ep-table-wrap td:last-child .ep-actions{display:flex;width:auto;flex-wrap:wrap;gap:5px}
  .ep-table-wrap td:last-child button{min-height:36px;padding:6px 9px}
  .ep-detail .ep-actions button{min-width:0}
  .ep-detail h4{margin-top:18px;font-size:14px}
  .ep-history{padding:9px 0}
}

/* Employee list and its own dialogs: preserve comfortable controls while avoiding page-height editors. */
.ep-workspace{gap:8px}.ep-workspace>.ep-summary,.ep-workspace>.ep-list{margin:0;padding:12px 16px}.ep-summary .ep-heading h3{margin:0}.ep-stats{margin:8px 0 0;gap:8px 24px}.ep-stats strong{font-size:19px}.ep-filters{gap:8px}.ep-filters .business-list-sort-inline{margin-left:auto;align-self:flex-end}.ep-filters .business-list-sort{margin:0}.ep-table-wrap{margin-top:10px}.ep-summary [data-ep=new]{background:#175dcc;color:white;border-color:#175dcc}
.ep-drafts{position:relative}.ep-drafts summary{cursor:pointer;list-style:none;border:1px solid #d1dce4;border-radius:7px;padding:7px 11px;min-height:34px;box-sizing:border-box;font-size:13px;white-space:nowrap}.ep-drafts[open]>div{position:absolute;z-index:30;right:0;top:100%;width:340px;max-width:calc(100vw - 40px);padding:8px;background:white;border:1px solid #d1dce4;border-radius:8px;box-shadow:0 8px 22px #1232}.ep-drafts[open]>div>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px;border-bottom:1px solid #e2e8f0}.ep-drafts[open]>div>div>span{min-width:0;overflow-wrap:anywhere}.ep-drafts button{flex-shrink:0}
.ep-dialog{width:min(860px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d5dfeb;border-radius:10px;background:#fff;color:#18324d;box-shadow:0 20px 55px #142c4940;overflow:hidden}.ep-dialog::backdrop{background:#142b4760}.ep-dialog>section{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);min-height:0;margin:0;padding:0}.ep-dialog-header{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;padding:12px 18px;border-bottom:1px solid #dce5ef}.ep-dialog-header h3{margin:0;font-size:15px;line-height:1.5}.ep-dialog .ep-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:0;margin:0}.ep-dialog-body{padding:16px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0;overflow-wrap:anywhere}.ep-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;padding:12px 18px;border-top:1px solid #dce5ef;background:#fff}.ep-form>.ep-dialog-footer{justify-content:space-between}.ep-dialog .ep-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.ep-dialog .ep-form label{display:flex;flex-direction:column;gap:5px;margin:0}.ep-dialog .ep-form input,.ep-dialog .ep-form select{height:34px;min-height:34px;margin:0;padding:6px 10px;font:inherit;box-sizing:border-box}.ep-dialog .ep-form input[type=checkbox]{width:auto;height:auto;min-height:0}.ep-dialog .ep-form textarea{width:100%;padding:8px 10px;box-sizing:border-box;resize:vertical;font:inherit;min-height:58px}.ep-dialog button{width:auto;margin:0;min-height:34px;font-size:13px;padding:6px 11px}.ep-dialog [type=submit]{background:#175dcc;border-color:#175dcc;color:white;min-width:108px}.ep-dialog .ep-section-title{margin:5px 0 0;padding:0 0 7px;font-size:14px;border-bottom:1px solid #e2e8f0}.ep-dialog .ep-message{margin:0 0 10px}.ep-dialog [data-workspace-state]{margin:0 0 12px;line-height:1.7}.ep-discard-confirm{padding:12px;margin-bottom:12px;background:#fff5e7;border:1px solid #e7c99f;border-radius:6px}.ep-discard-confirm .ep-actions{margin-top:9px}.ep-discard-confirm [data-ep=confirmDiscard]{border-color:#ba3131;color:#ba3131}.ep-dialog .ep-facts{gap:8px 20px;margin:0 0 14px;line-height:1.6}.ep-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin-bottom:16px}.ep-profile-facts>div{display:grid;grid-template-columns:108px minmax(0,1fr);gap:8px;min-width:0;padding:7px 0;border-bottom:1px solid #edf1f5;line-height:1.65}.ep-profile-facts strong{font-weight:normal;color:#63768d}.ep-profile-facts span{white-space:pre-wrap;overflow-wrap:anywhere}.ep-profile-facts .ep-wide{grid-column:1/-1}.ep-dialog .ep-detail h4{margin:18px 0 8px;padding-bottom:7px;border-bottom:1px solid #dce5ef}.ep-dialog .ep-detail h4:first-child{margin-top:0}.ep-dialog .ep-detail p{line-height:1.7;white-space:pre-wrap}.ep-dialog .ep-history{padding:8px 0}.ep-dialog .ep-history p{margin:6px 0 0}
@media(min-width:769px){body.pc-ui-preview .ep-workspace>.ep-summary,body.pc-ui-preview .ep-workspace>.ep-list{margin:0;padding:12px 16px}body.pc-ui-preview .ep-workspace .ep-filters label{flex:1 1 95px}body.pc-ui-preview .ep-workspace .ep-filters label:first-child{flex:2 1 170px}body.pc-ui-preview .ep-dialog .ep-form input,body.pc-ui-preview .ep-dialog .ep-form select{height:34px}body.pc-ui-preview .ep-workspace .ep-dialog .ep-actions{display:flex;gap:8px}}
@media(max-width:768px){.ep-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ep-dialog>section{max-height:calc(100dvh - 18px)}.ep-dialog-header,.ep-dialog-footer{padding:10px 12px}.ep-dialog-body{padding:12px}.ep-dialog .ep-form fieldset,.ep-profile-facts{grid-template-columns:minmax(0,1fr)}.ep-dialog .ep-form input,.ep-dialog .ep-form select{height:38px}.ep-dialog-footer{flex-wrap:wrap}.ep-dialog-footer>.ep-actions{display:flex;flex-wrap:wrap}.ep-dialog .ep-detail .ep-actions{display:flex}.ep-filters .business-list-sort-inline{margin:0}.ep-drafts[open]>div{left:0;right:auto}.ep-profile-facts>div{grid-template-columns:95px minmax(0,1fr)}}

.ep-workspace .ep-dialog button[data-ep]{background:#fff;color:#175dcc;border:1px solid #cddcf0;font-weight:normal}.ep-workspace .ep-dialog button[data-ep=discardDraft],.ep-workspace .ep-dialog button[data-ep=confirmDiscard]{color:#a52d2d;border-color:#e1bcbc}.ep-workspace .ep-dialog button:disabled{opacity:.55;cursor:not-allowed}

@media(min-width:769px){body.pc-ui-preview .ep-workspace .ep-filters>label{margin-bottom:0}}

.ep-drafts[open]>div>div{flex-wrap:wrap}

.ep-history-changes{display:grid;gap:5px;margin-top:8px}.ep-history-change{display:grid;grid-template-columns:105px minmax(0,1fr) 16px minmax(0,1fr);align-items:start;gap:8px;line-height:1.6}.ep-history-change>strong{font-weight:normal;color:#63768d}.ep-history-change>span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.ep-history-change .ep-change-before{color:#63768d}@media(max-width:600px){.ep-history-change{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}.ep-history-change>strong{grid-column:1/-1}}

/* Employee proof groups reuse the employee dialog's compact two-column form. */
.ep-proof-files,.ep-qualifications{min-width:0}.ep-proof-file,.ep-proof-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.ep-proof-file{padding:5px 0;border-bottom:1px solid #edf1f5}.ep-proof-file>span{min-width:0;overflow-wrap:anywhere}.ep-proof-file small{margin-left:8px;color:#63768d}.ep-proof-file>div,.ep-proof-read-file{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.ep-proof-file>div{flex-shrink:0}.ep-dialog .ep-proof-upload{margin-top:8px}.ep-dialog .ep-proof-upload input{height:auto;min-height:34px;padding:5px 0}.ep-qualification{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:10px 0 14px;margin:0 0 10px;border-bottom:1px solid #dce5ef}.ep-proof-heading{grid-column:1/-1}.ep-qualification-history{padding:8px 0;border-bottom:1px solid #edf1f5}.ep-proof-read-files{display:grid;gap:5px}.ep-proof-read-file>span{min-width:0;overflow-wrap:anywhere}.ep-proof-read-file button,.ep-proof-file button{flex-shrink:0}.ep-dialog .ep-proof-file button{min-height:30px;padding:4px 8px}.ep-qualifications>p{margin:7px 0 0}@media(max-width:600px){.ep-qualification{grid-template-columns:minmax(0,1fr)}.ep-proof-file{align-items:flex-start;flex-wrap:wrap}.ep-proof-file>div{flex-shrink:1}}

/* Employee editing keeps each complete group within reach without changing the form data. */
.ep-dialog .ep-editor-tabs{display:flex;flex:0 0 auto;gap:4px;padding:10px 14px 0;border-bottom:1px solid #dce5ef;background:#fff;overflow-x:auto}
.ep-workspace .ep-dialog .ep-editor-tabs button[role=tab]{flex:1 0 auto;white-space:nowrap;border:0;border-bottom:3px solid transparent;border-radius:0;padding:8px 10px;color:#566c84;min-height:38px}
.ep-workspace .ep-dialog .ep-editor-tabs button[aria-selected=true]{color:#175dcc;border-bottom-color:#175dcc;background:#f2f6fd;font-weight:600}
.ep-tab-count{font-weight:normal;color:#63768d;font-size:12px}.ep-tab-conflict{font-size:12px;color:#a14a16}
.ep-dialog .ep-form fieldset.ep-tab-fields{display:block}
.ep-editor-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;min-width:0}
.ep-editor-panel[hidden]{display:none!important}.ep-editor-panel>.ep-conflict{grid-column:1/-1;margin:0 0 5px}.ep-editor-panel>.ep-conflict p{margin:6px 0}
.ep-dialog .ep-editor-reason{flex:0 0 auto;padding:9px 18px;background:#f8fafc;border-top:1px solid #e2e8f0}.ep-dialog .ep-editor-reason input{width:100%}
.ep-editor-panel .ep-qualifications>.ep-qualification:last-of-type{margin-bottom:6px}.ep-dialog .ep-editor-panel textarea{min-height:54px}
@media(max-width:600px){.ep-dialog .ep-editor-tabs{padding:6px 8px 0}.ep-workspace .ep-dialog .ep-editor-tabs button[role=tab]{flex:0 0 auto;padding:8px}.ep-editor-panel{grid-template-columns:minmax(0,1fr)}.ep-dialog .ep-editor-reason{padding:8px 12px}}

/* Keep the employee overview, feedback and actions together above the list. */
.ep-workspace>.ep-summary.ep-summary-toolbar{display:flex;align-items:center;gap:12px;padding:8px 12px;min-width:0;width:100%;box-sizing:border-box;overflow:visible}
.ep-summary-toolbar>.ep-stats{flex:0 0 auto;align-items:center;flex-wrap:nowrap;gap:12px;margin:0}
.ep-summary-toolbar>.ep-stats>span{white-space:nowrap}
.ep-summary-toolbar>.ep-stats strong{font-size:17px;margin-left:5px}
.ep-summary-toolbar>.ep-actions{flex:0 0 auto;flex-wrap:nowrap;gap:6px;margin-left:auto}
.ep-summary-toolbar>.ep-actions>button,.ep-summary-toolbar>.ep-actions>details>summary{white-space:nowrap}
.ep-summary-toolbar>.ep-message{flex:1 1 0;min-width:0;margin:0;padding:7px 10px;font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:769px){body.pc-ui-preview .ep-workspace>.ep-summary.ep-summary-toolbar{padding:8px 12px}}
@media(min-width:769px) and (max-width:1500px){.ep-summary-toolbar>.ep-stats{gap:10px}.ep-summary-toolbar .ep-stat-hint{display:none}.ep-summary-toolbar>.ep-actions>button,.ep-summary-toolbar>.ep-actions>details>summary{padding-left:8px;padding-right:8px}}
@media(max-width:1250px){.ep-workspace>.ep-summary.ep-summary-toolbar{flex-wrap:wrap}.ep-summary-toolbar>.ep-stats{flex-wrap:wrap}.ep-summary-toolbar>.ep-message{flex-basis:180px;white-space:normal;overflow-wrap:anywhere}.ep-summary-toolbar>.ep-actions{flex-wrap:wrap}}
@media(max-width:768px){.ep-summary-toolbar>.ep-stats{display:flex;gap:8px}.ep-summary-toolbar>.ep-stats>span{padding:0;border:0;background:none;white-space:normal}.ep-summary-toolbar>.ep-stats strong{display:inline;margin:0 0 0 5px}.ep-summary-toolbar>.ep-actions{margin-left:0;flex:1 1 100%}.ep-summary-toolbar>.ep-actions>.ep-menu{flex:0 0 auto}.ep-summary-toolbar>.ep-actions>.ep-menu summary{text-align:left}}

/* Direct probation handling uses the existing employee dialog and saved-draft controls. */
.ep-dialog.ep-employment-dialog{width:min(680px,calc(100vw - 32px))}.ep-employment-context{display:flex;flex-wrap:wrap;gap:5px 16px;padding:10px 12px;margin-bottom:12px;background:#f4f7fb;border:1px solid #dce5ef;border-radius:6px;line-height:1.6}.ep-employment-context>span:last-child{flex-basis:100%}.ep-employment-dialog fieldset>p{margin:0;line-height:1.65}.ep-employment-dialog .ep-conflict{margin-top:0}@media(max-width:600px){.ep-dialog.ep-employment-dialog{width:calc(100vw - 16px)}}

.ep-salary-corrections{margin-top:10px}.ep-salary-corrections summary{cursor:pointer}.ep-salary-corrections>.ep-history{margin:8px 0 0;padding:8px 10px}.ep-deletion-view p,.ep-deletion-view li,.ep-employment-dialog [data-deletion-form] p,.ep-employment-dialog [data-deletion-form] li{overflow-wrap:anywhere}.ep-deletion-list .ep-actions{justify-content:flex-start}.ep-deletion-list .ep-actions button{margin-left:auto}.ep-deletion-responsibilities ul{margin:6px 0;padding-left:22px}.ep-deletion-responsibilities p{margin:6px 0}.ep-row-menu{display:inline-block}.ep-row-menu summary{white-space:nowrap}

@media(min-width:769px){body.pc-ui-preview .ep-workspace .ep-filters>label.ep-scope-filter{flex:0 0 120px}body.pc-ui-preview .ep-workspace .ep-filters>label:has(input[name=search]){flex:2 1 150px}}
@media(min-width:769px) and (max-width:1500px){body.pc-ui-preview .ep-workspace .ep-filters>label{flex:1 1 96px;min-width:96px}body.pc-ui-preview .ep-workspace .ep-filters>label:has(input[name=search]){flex:2 1 140px}body.pc-ui-preview .ep-workspace .ep-filters>label:has(select[name=alert]),body.pc-ui-preview .ep-workspace .ep-filters>label:has(select[name=planned]){flex:0 0 120px}.ep-filters .business-list-sort-inline select{width:150px;min-width:150px}}
