.employees-page .dashboard { padding-top: 22px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs svg { width: 14px; }
.breadcrumbs strong { color: var(--text); }

.employees-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.employees-heading h2 { margin: 0 0 5px; font-size: 28px; }
.employees-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.employees-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.employees-stats article { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.employees-stats article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: var(--purple); background: var(--purple-soft); }
.employees-stats article div { display: grid; gap: 3px; }
.employees-stats small { color: var(--muted); font-size: 11px; }
.employees-stats strong { font-size: 20px; }

.employee-tools { margin-bottom: 18px; box-shadow: none; }
.employee-tools-top { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.employee-tools-top h3, .table-toolbar h3 { margin: 0 0 3px; font-size: 16px; }
.employee-tools-top p, .table-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.employee-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 20px; }
.employee-filters[hidden] { display: none; }
.employee-filters label { display: grid; gap: 7px; color: var(--text); font-size: 12px; font-weight: 700; }
.employee-filters input, .employee-filters select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--text); background: #fff; }
.employee-filters input:focus, .employee-filters select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(98,67,159,.1); }
.input-wrap { position: relative; }
.input-wrap input { padding-inline-start: 38px; }
.input-wrap svg { position: absolute; inset-inline-start: 12px; top: 50%; width: 17px; color: var(--muted); transform: translateY(-50%); }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.employees-table-panel { overflow: hidden; box-shadow: none; }
.table-toolbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions .btn { min-height: 38px; padding-inline: 11px; font-size: 11px; }
.table-scroll { overflow-x: auto; }
.employees-table { width: 100%; min-width: 1060px; border-collapse: collapse; }
.employees-table th { height: 52px; padding: 0 12px; color: #68768b; background: #f8f9fc; border-bottom: 1px solid var(--line); font-size: 11px; text-align: right; white-space: nowrap; }
.employees-table th:first-child { width: 46px; text-align: center; }
.employees-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.employees-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--purple); }
.employee-profile-cell { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.employee-profile-cell > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--purple); background: var(--purple-soft); font-weight: 800; }
.employee-profile-cell div, .employee-contact { display: grid; gap: 3px; }
.employee-profile-cell small { color: #07815e; font-size: 10px; font-weight: 700; }
.employee-contact { min-width: 165px; }
.employee-contact small { color: var(--muted); }
.employee-actions-cell { position: relative; width: 70px; text-align: center; }
.employee-menu-trigger { width: 38px; height: 38px; display: grid; place-items: center; margin: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; }
.employee-menu-trigger:hover, .employee-menu-trigger[aria-expanded="true"] { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.employee-menu-trigger svg { width: 17px; }
.employee-actions-menu { position: fixed; z-index: 120; top: 0; left: 0; width: 230px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 16px 42px rgba(26,35,54,.22); text-align: right; }
.employee-actions-menu[hidden] { display: none; }
.employee-actions-menu button { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.employee-actions-menu button[hidden] { display: none !important; }
.employee-actions-menu button:hover { color: var(--purple); background: var(--purple-soft); }
.employee-actions-menu button.danger:hover { color: #b92c3d; background: #fff0f2; }
.employee-actions-menu svg { width: 16px; }
.employee-actions-menu button:disabled { color: #087a5b; background: #edf9f5; cursor: default; }
.employee-confirm-dialog { width: min(470px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 8px; background: transparent; }
.employee-confirm-dialog::backdrop { background: rgba(10, 21, 41, .58); backdrop-filter: blur(3px); }
.employee-confirm-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(19, 29, 51, .24); }
.confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; color: #087a5b; background: #e5f7f1; }
.confirm-icon svg { width: 23px; }
.employee-confirm-card small { color: var(--purple); font-size: 10px; font-weight: 800; }
.employee-confirm-card h3 { margin: 4px 0 8px; font-size: 20px; }
.employee-confirm-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.employee-confirm-card p strong { color: var(--text); }
.employee-confirm-card footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .employee-confirm-card { grid-template-columns: 1fr; padding: 20px; }
  .employee-confirm-card footer { display: grid; grid-template-columns: 1fr; }
  .employee-confirm-card footer .btn { width: 100%; }
}
.confirm-icon.warning { color: #9a6710; background: #fff3d7; }
.confirm-icon.danger { color: #b42335; background: #fff0f2; }
.warning-dialog .employee-confirm-card small { color: #9a6710; }
.danger-dialog .employee-confirm-card { border-color: #f1c5cb; }
.danger-dialog .employee-confirm-card small,
.danger-dialog .employee-confirm-card h3 { color: #b42335; }
.delete-warning-note,
.delete-danger-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 7px; font-size: 10px; }
.delete-warning-note { color: #805509; background: #fff7e4; }
.delete-danger-note { color: #a41f31; background: #fff0f2; }
.delete-warning-note svg,
.delete-danger-note svg { width: 18px; flex: 0 0 auto; }
.delete-danger-note div { display: grid; gap: 2px; }
.delete-danger-note strong { font-size: 10px; }
.delete-danger-note span { color: #8c4a54; font-size: 8px; }
.warning-action,
.delete-forever { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 0; border-radius: 7px; color: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.warning-action { background: #a66c06; }
.delete-forever { background: #b42335; box-shadow: 0 8px 20px rgba(180,35,53,.2); }
.warning-action svg,
.delete-forever svg { width: 16px; }
@media (max-width: 520px) {
  .warning-action,
  .delete-forever { width: 100%; }
}
.employee-status.terminated{color:#9d2635;background:#fde8eb}.termination-dialog{width:min(700px,calc(100vw - 28px));max-height:92vh;padding:0;border:0;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(19,29,51,.25)}.termination-dialog::backdrop{background:rgba(10,21,41,.62);backdrop-filter:blur(3px)}.termination-card{display:grid;max-height:92vh;overflow:auto}.termination-card>header{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}.termination-card>header>span{width:44px;height:44px;display:grid;place-items:center;border-radius:7px;color:#b42335;background:#fff0f2}.termination-card>header>span svg{width:20px}.termination-card header small{color:#b42335;font-size:9px;font-weight:800}.termination-card header h3{margin:3px 0 4px;font-size:19px}.termination-card header p{margin:0;color:var(--muted);font-size:10px}.termination-employee{display:flex;align-items:center;gap:10px;margin:16px 22px 0;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:#fafbfc}.termination-employee>span{width:38px;height:38px;display:grid;place-items:center;border-radius:7px;color:var(--purple);background:var(--purple-soft);font-weight:800}.termination-employee>div{display:grid;gap:2px}.termination-employee small{color:var(--muted);font-size:9px}.termination-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px 22px}.termination-fields label{display:grid;gap:6px;font-size:10px;font-weight:800}.termination-fields label>span b{color:#b42335}.termination-fields input,.termination-fields select,.termination-fields textarea{width:100%;padding:0 11px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit;font-size:11px;outline:0}.termination-fields input,.termination-fields select{height:43px}.termination-fields textarea{padding-block:10px;resize:vertical}.termination-fields input:focus,.termination-fields select:focus,.termination-fields textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(98,67,159,.1)}.termination-fields .full-field{grid-column:1/-1}.termination-check{grid-template-columns:auto 1fr!important;align-items:center;padding:11px;border:1px solid var(--line);border-radius:7px}.termination-check input{width:18px;height:18px;accent-color:var(--purple)}.termination-check>span{display:grid;gap:2px}.termination-check small{color:var(--muted);font-size:8px;font-weight:500}.termination-warning,.termination-final-warning{display:flex;align-items:flex-start;gap:8px;padding:11px 12px;border-radius:7px;color:#8b5d0d;background:#fff5df}.termination-warning svg,.termination-final-warning svg{width:17px;flex:0 0 auto}.termination-warning p,.termination-final-warning p{margin:0;font-size:9px;line-height:1.7}.termination-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--line);background:#fafbfc}.termination-review-data{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 22px}.termination-review-data div{display:grid;gap:3px;padding:11px;border:1px solid var(--line);border-radius:7px}.termination-review-data dt{color:var(--muted);font-size:8px}.termination-review-data dd{margin:0;font-size:10px;font-weight:800}.termination-final-warning{margin:0 22px 18px;color:#9d2635;background:#fff0f2}.terminate-confirm{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;border:0;border-radius:7px;color:#fff;background:#b42335;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.terminate-confirm svg{width:16px}@media(max-width:620px){.termination-card>header{padding-inline:16px}.termination-employee{margin-inline:16px}.termination-fields{grid-template-columns:1fr;padding-inline:16px}.termination-fields .full-field{grid-column:auto}.termination-review-data{grid-template-columns:1fr;margin-inline:16px}.termination-final-warning{margin-inline:16px}.termination-card>footer{display:grid;grid-template-columns:1fr;padding-inline:16px}.termination-card>footer .btn,.terminate-confirm{width:100%}}
.password-dialog{width:min(560px,calc(100vw - 28px));max-height:92vh;padding:0;border:0;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(19,29,51,.25)}.password-dialog::backdrop,.password-confirm-dialog::backdrop{background:rgba(10,21,41,.62);backdrop-filter:blur(3px)}.password-card{display:grid;max-height:92vh;overflow:auto}.password-card>header{display:grid;grid-template-columns:auto 1fr auto;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}.password-card>header>span{width:44px;height:44px;display:grid;place-items:center;border-radius:7px;color:var(--purple);background:var(--purple-soft)}.password-card>header>span svg{width:20px}.password-card header small{color:var(--purple);font-size:9px;font-weight:800}.password-card header h3{margin:3px 0 4px;font-size:19px}.password-card header p{margin:0;color:var(--muted);font-size:10px}.password-employee{display:flex;align-items:center;gap:10px;margin:16px 22px 0;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fafbfc}.password-employee>span{width:37px;height:37px;display:grid;place-items:center;border-radius:7px;color:var(--purple);background:var(--purple-soft);font-weight:800}.password-employee>div{display:grid;gap:2px}.password-employee small{color:var(--muted);font-size:8px}.password-fields{display:grid;gap:12px;padding:18px 22px}.password-fields>label{display:grid;gap:6px;font-size:10px;font-weight:800}.password-fields b{color:#b42335}.password-input{position:relative}.password-input input{width:100%;height:44px;padding:0 11px;padding-inline-end:46px;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:11px;outline:0}.password-input input:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(98,67,159,.1)}.password-input button{position:absolute;inset-inline-end:5px;top:5px;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:6px;color:var(--muted);background:#f3f4f7;cursor:pointer}.password-input button svg{width:16px}.password-strength{display:grid;gap:5px}.password-strength>div{height:5px;overflow:hidden;border-radius:999px;background:#eceff3}.password-strength>div span{display:block;height:100%;width:0;border-radius:inherit;background:#b42335;transition:.2s}.password-strength>div span[data-score="2"]{background:#d58b17}.password-strength>div span[data-score="3"]{background:#4a79b0}.password-strength>div span[data-score="4"]{background:#087a5b}.password-strength small{color:var(--muted);font-size:8px}.password-match{min-height:15px;margin:-5px 0 0;font-size:8px}.password-match.valid{color:#087a5b}.password-match.invalid{color:#b42335}.password-rules{padding:12px;border:1px solid var(--line);border-radius:7px;background:#fafbfc}.password-rules>strong{font-size:9px}.password-rules ul{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0 0;padding:0;list-style:none}.password-rules li{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:8px}.password-rules li svg{width:14px}.password-rules li.valid{color:#087a5b}.password-option{grid-template-columns:auto 1fr!important;align-items:center;padding:10px;border:1px solid #d9d0ed;border-radius:7px;background:#faf8fe}.password-option input{width:18px;height:18px;accent-color:var(--purple)}.password-option>span{display:grid;gap:2px}.password-option small{color:var(--muted);font-size:8px;font-weight:500}.generate-password-btn{min-height:39px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #b8a8d8;border-radius:7px;color:var(--purple);background:#fbf9fe;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.generate-password-btn svg{width:15px}.password-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--line);background:#fafbfc}.password-confirm-note{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:7px;color:#805509;background:#fff7e4;font-size:9px}.password-confirm-note svg{width:17px}@media(max-width:520px){.password-card>header{padding-inline:16px}.password-employee{margin-inline:16px}.password-fields{padding-inline:16px}.password-rules ul{grid-template-columns:1fr}.password-card>footer{display:grid;grid-template-columns:1fr;padding-inline:16px}.password-card>footer .btn{width:100%}}
.employee-action-toast { position: fixed; z-index: 80; inset-inline-start: 24px; bottom: 24px; width: min(390px, calc(100vw - 32px)); padding: 14px 17px; border-radius: 7px; color: #fff; background: #087a5b; box-shadow: 0 12px 30px rgba(8,122,91,.24); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(14px); transition: .2s ease; }
.employee-action-toast.show { opacity: 1; transform: translateY(0); }
.empty-table-row td { height: 330px; border-bottom: 0; }
.table-empty { display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; }
.table-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); }
.table-empty > span svg { width: 24px; height: 24px; }
.table-empty strong { margin-top: 3px; font-size: 14px; }
.table-empty p { max-width: 510px; margin: 0 0 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.table-empty > div { display: flex; gap: 8px; }
.table-empty .btn { min-height: 38px; font-size: 11px; }
.nav-children a.active { color: #fff; font-weight: 700; }
.nav-children a.active::before { content: ""; position: absolute; inset-inline-start: -11px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); transform: translateY(-50%); }

@media (max-width: 1050px) {
  .employee-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .employees-heading { align-items: stretch; flex-direction: column; }
  .employees-heading h2 { font-size: 23px; }
  .employees-stats { grid-template-columns: 1fr; gap: 9px; }
  .employees-stats article { min-height: 70px; }
  .employee-tools-top { align-items: flex-start; }
  .filter-toggle { width: 43px; padding: 0; }
  .filter-toggle span { display: none; }
  .employee-filters { grid-template-columns: 1fr; padding-inline: 14px; }
  .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .table-toolbar { padding-inline: 14px; }
  .table-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .table-actions .btn:first-child { grid-column: 1 / -1; }
  .table-empty { min-width: calc(100vw - 48px); justify-items: center; }
}
