/* NAMA ERP — HR / Employees (Area A) — إضافات صغيرة فوق العدّة المشتركة */
.emp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.emp-head h2{font-size:20px;font-weight:700;color:var(--maroon-deep,#4A0B28);margin:0}
.emp-head .pill{margin-inline-start:4px}
.emp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
@media (max-width:900px){.emp-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.emp-stats{grid-template-columns:1fr}}
.emp-stats .stat .s-val{font-size:22px}
.emp-stat{cursor:pointer;border-radius:16px;transition:transform .15s}
.emp-stat:hover{transform:translateY(-1px)}
.emp-stat.on .stat{outline:2px solid var(--maroon,#640F36);outline-offset:-2px}
.emp-hint{font-size:12px;color:var(--muted,#93707f);margin:-4px 0 12px}
.emp-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:1px solid var(--line-2,#E4D8DE);background:#fff}
.emp-cell{display:flex;align-items:center;gap:10px}
.emp-cell .n{font-weight:600}
.emp-cell .c{font-size:11px;color:var(--muted,#93707f)}
.emp-row{cursor:pointer}
.emp-link{color:var(--maroon,#640F36);font-weight:600}
.emp-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.emp-pager{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-top:12px;font-size:13px}
.emp-tbl-wrap{overflow:auto}
.emp-tbl-wrap .tbl{min-width:820px}
.emp-actions-inline{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
/* الملف الشخصي */
.emp-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--maroon,#640F36);font-weight:600;margin-bottom:10px}
.emp-back svg{width:15px;height:15px}
.emp-profile-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:18px 20px;margin-bottom:16px}
.emp-photo{width:88px;height:88px;border-radius:22px;object-fit:cover;border:1px solid var(--line-2,#E4D8DE);background:var(--card-2,#fff);flex:0 0 auto}
.emp-photo.ph{display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:700;color:#3A2A08;background:linear-gradient(150deg,#E9CF86,#C9A24B)}
.emp-profile-head .info{flex:1;min-width:220px}
.emp-profile-head h2{font-size:20px;margin:0 0 2px;color:var(--maroon-deep,#4A0B28)}
.emp-profile-head .sub{font-size:13px;color:var(--text-dim,#6b4d59)}
.emp-profile-head .pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.emp-profile-head .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.emp-section{padding:16px 18px;margin-bottom:14px}
.emp-section h4{margin:0 0 12px;font-size:12px;letter-spacing:.4px;color:var(--muted,#93707f);text-transform:uppercase}
.emp-tab-tools{display:flex;justify-content:flex-end;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.emp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:760px){.emp-grid2{grid-template-columns:1fr}}
.emp-total{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-radius:12px;margin-top:10px;
  background:linear-gradient(135deg,#640F36,#4A0B28);color:#fff;font-weight:700}
.emp-total .v{font-size:18px;direction:ltr}
/* أيام العمل (وردية) */
.emp-wd{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.emp-wd label{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--line-2,#E4D8DE);border-radius:20px;font-size:12.5px;cursor:pointer;user-select:none}
.emp-wd label:has(input:checked){background:var(--maroon-tint,#F6EAF0);border-color:var(--maroon,#640F36);color:var(--maroon,#640F36)}
.emp-wd input{accent-color:var(--maroon,#640F36)}
/* الفريق والصلاحيات */
.emp-roles{display:flex;flex-wrap:wrap;gap:4px}
.emp-perm-tbl{width:100%;border-collapse:collapse;font-size:13px}
.emp-perm-tbl th,.emp-perm-tbl td{padding:8px 10px;border-bottom:1px solid var(--line,#EFE6EA);text-align:start}
.emp-perm-tbl th:not(:first-child),.emp-perm-tbl td:not(:first-child){text-align:center;width:80px}
.emp-perm-tbl input[type=radio],.emp-perm-tbl input[type=checkbox]{accent-color:var(--maroon,#640F36);width:16px;height:16px;cursor:pointer}
.emp-modal-list{max-height:52vh;overflow:auto;margin-top:8px}
.emp-modal-list .tbl{font-size:13px}
.emp-modal-search{width:100%;max-width:none;margin-bottom:8px}
.emp-check-list{display:flex;flex-direction:column;gap:2px}
.emp-key{font-size:11px;color:var(--muted,#93707f);font-family:var(--en,monospace);direction:ltr;display:inline-block}

/* الرسوم البيانية */
.emp-charts{margin-bottom:14px}
.emp-chart{padding:14px 16px}
