/* OpsControl canonical UI — Phase 2 Workforce */
#manager-employees{position:relative}
#manager-employees>.oc-workforce-head~div:first-of-type{}
.oc-workforce-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.oc-workforce-head h1{margin:0 0 4px!important}
.oc-workforce-head .oc-workforce-title p{margin:0;color:var(--oc-muted);font-size:13px}
.oc-workforce-tabs{display:flex;gap:2px;border-bottom:1px solid var(--oc-border);margin:0 -26px 14px;padding:0 26px}
.oc-workforce-tab{border:0;background:transparent;padding:12px 14px;min-height:44px;color:#445873;font-weight:700;font-size:12px;border-radius:8px 8px 0 0;cursor:pointer;position:relative}
.oc-workforce-tab.active{color:#077cc4;background:#f7fbff}
.oc-workforce-tab.active::after{content:"";position:absolute;height:3px;left:8px;right:8px;bottom:-1px;border-radius:3px;background:var(--oc-blue)}
.oc-workforce-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid #cfeafb;background:#eef8ff;border-radius:10px;margin-bottom:14px;color:#175d8c;font-size:11px}
.oc-workforce-hint b{font-size:11px}.oc-workforce-hint button{border:0;background:transparent;color:#6b7b90;font-size:18px;cursor:pointer}
.oc-workforce-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;align-items:start}
.oc-common-title,.oc-actions-title{font-size:13px;font-weight:800;color:var(--oc-text);margin:0 0 9px}
.oc-common-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:9px;margin-bottom:14px}
.oc-task-card{border:1px solid var(--oc-border);background:#fff;border-radius:10px;padding:12px;min-height:124px;display:flex;flex-direction:column;gap:5px;box-shadow:var(--oc-shadow-soft);cursor:pointer;text-align:left}
.oc-task-card:hover{transform:translateY(-1px);border-color:#b9dff7}
.oc-task-card .oc-task-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f5ff;color:#078ee0;font-size:17px;font-weight:900}
.oc-task-card:nth-child(2) .oc-task-icon{background:#eaf9ef;color:#1f9a59}
.oc-task-card:nth-child(3) .oc-task-icon{background:#f1edff;color:#6552c8}
.oc-task-card:nth-child(4) .oc-task-icon{background:#fff5df;color:#b87500}
.oc-task-card:nth-child(5) .oc-task-icon{background:#fff0ef;color:#c4322d}
.oc-task-card b{font-size:12px;color:var(--oc-text)}
.oc-task-card span{font-size:10px;line-height:1.35;color:var(--oc-muted)}
.oc-today-card{border:1px solid var(--oc-border);background:#fff;border-radius:10px;box-shadow:var(--oc-shadow-soft);overflow:hidden}
.oc-today-head{padding:12px 13px;border-bottom:1px solid var(--oc-border);display:flex;align-items:center;justify-content:space-between;gap:10px}
.oc-today-head b{font-size:13px}.oc-today-head span{font-size:10px;color:var(--oc-muted)}
.oc-action-row{display:grid;grid-template-columns:24px 28px 1fr 16px;gap:7px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1f5;font-size:11px;color:#30445f;cursor:pointer}
.oc-action-row:last-child{border-bottom:0}
.oc-action-row:hover{background:#fafcff}
.oc-action-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#fff1ef;color:#c4322d;font-size:10px;font-weight:900}
.oc-action-row.warn .oc-action-dot{background:#fff6e3;color:#b87500}.oc-action-row.info .oc-action-dot{background:#eaf5ff;color:#1478d4}
.oc-action-count{font-weight:900;color:#30445f}
.oc-officer-panel{border:1px solid var(--oc-border);border-radius:10px;background:#fff;box-shadow:var(--oc-shadow-soft);overflow:hidden}
.oc-officer-toolbar{padding:11px 12px;border-bottom:1px solid var(--oc-border)}
.oc-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.oc-toolbar-top h2{font-size:14px;margin:0}
.oc-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.oc-filter-chip{border:1px solid var(--oc-border);background:#f7f9fb;color:#52657f;border-radius:7px;padding:6px 9px;font-size:10px;font-weight:700;cursor:pointer}
.oc-filter-chip.active{background:#e9f5ff;border-color:#b9dff7;color:#0876bb}
.oc-officer-search{margin-left:auto;width:210px}
.oc-officer-search input{width:100%;height:34px!important;min-height:34px!important;font-size:11px}
.oc-workforce-table-wrap{overflow:auto}
.oc-workforce-table{border-collapse:collapse;width:100%;min-width:760px;font-size:11px}
.oc-workforce-table th{background:#f5f7fa;color:#68768d;text-align:left;padding:8px 10px;font-size:9px;text-transform:uppercase;letter-spacing:.04em;position:sticky;top:0}
.oc-workforce-table td{padding:9px 10px;border-top:1px solid #edf1f5;vertical-align:middle;color:#344964}
.oc-workforce-person{display:flex;align-items:center;gap:8px;min-width:160px}
.oc-workforce-person .employee-avatar{width:30px!important;height:30px!important;font-size:9px!important}
.oc-workforce-person b{display:block;color:#17263d;font-size:11px}.oc-workforce-person small{display:block;color:#78879a;font-size:9px;margin-top:2px}
.oc-row-actions{display:flex;gap:4px;justify-content:flex-end}.oc-row-actions button{width:30px;height:30px;min-height:30px!important;border-radius:7px!important;padding:0!important}
.oc-table-empty{padding:28px;text-align:center;color:var(--oc-muted)}
.oc-workforce-main>#employeeSummary{display:none!important}
#manager-employees>.oc-legacy-heading{display:none!important}
#manager-employees #employeeList{margin-top:0!important}
#manager-employees #employeeList>.employee-card{display:none!important}

#employeeFormCard,#employeeDetailCard,#availabilityCard,#siaFormCard{
  position:fixed!important;top:72px!important;right:0!important;bottom:0!important;width:min(520px,94vw)!important;
  max-height:calc(100vh - 72px)!important;overflow:auto!important;margin:0!important;padding:20px!important;
  border-radius:14px 0 0 14px!important;z-index:1200!important;box-shadow:-18px 0 50px rgba(19,42,72,.18)!important;
}
#employeeDetailCard{width:min(600px,96vw)!important}
#employeeFormCard::before,#employeeDetailCard::before,#availabilityCard::before,#siaFormCard::before{content:"";position:fixed;inset:72px 0 0 0;background:rgba(5,19,38,.28);z-index:-1;pointer-events:none}
#employeeFormCard .grid-2,#availabilityCard .grid-2,#siaFormCard .grid-2{grid-template-columns:1fr 1fr!important}
.oc-tab-panel-note{padding:10px 12px;border:1px dashed var(--oc-border-strong);border-radius:9px;background:#fbfcfe;margin:0 0 10px;font-size:10px;color:var(--oc-muted)}

@media(max-width:1180px){
  .oc-workforce-layout{grid-template-columns:1fr}.oc-today-card{order:-1}
  .oc-common-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}
}
@media(max-width:820px){
  .oc-workforce-tabs{margin:0 -14px 12px;padding:0 14px;overflow:auto}
  .oc-common-grid{grid-template-columns:1fr 1fr}
  #employeeFormCard,#employeeDetailCard,#availabilityCard,#siaFormCard{top:64px!important;max-height:calc(100vh - 64px)!important;width:100%!important;border-radius:0!important}
}
@media(max-width:560px){
  .oc-workforce-head{display:block}.oc-workforce-head>.actions{margin-top:10px!important}
  .oc-common-grid{grid-template-columns:1fr 1fr}.oc-task-card{min-height:112px}
  .oc-officer-search{width:100%;margin-left:0}.oc-toolbar-top{align-items:flex-start;flex-direction:column}
  #employeeFormCard .grid-2,#availabilityCard .grid-2,#siaFormCard .grid-2{grid-template-columns:1fr!important}
}
