.hr-page{display:grid;gap:16px;color:#0b2c68}
.hr-card{background:#fff;border:1px solid #e1e9f7;border-radius:13px;padding:20px;box-shadow:0 5px 22px rgba(14,54,111,.05);min-width:0}
.hr-tabs{display:flex;gap:26px;background:#fff;border:1px solid #e1e9f7;border-radius:13px 13px 0 0;padding:0 22px;overflow:auto}
.hr-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:#425984;font-weight:600;padding:16px 4px;white-space:nowrap}
.hr-tabs button[aria-selected="true"]{border-bottom-color:#1765eb;color:#1765eb}
.hr-tabs+.hr-card{margin-top:-16px;border-radius:0 0 13px 13px}
.hr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;flex-wrap:wrap}
.hr-toolbar input[type="search"]{width:min(390px,100%);height:39px;border:1px solid #d6e1f4;border-radius:7px;padding:0 12px}
.hr-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hr-actions button,.hr-btn,.hr-pager button,.hr-dialog-footer button,.hr-dialog-head button,.hr-detail button{border:1px solid #c7d8f4;border-radius:7px;background:#fff;color:#0f4bba;padding:8px 13px;text-decoration:none;cursor:pointer}
.hr-actions button:last-child,.hr-dialog-footer .primary{background:#1568ed;border-color:#1568ed;color:#fff}
.hr-table-wrap{max-width:100%;overflow:auto;border:1px solid #dce7f6;border-radius:8px}
.hr-table{border-collapse:collapse;width:100%;min-width:700px;font-size:13px}
.hr-table th,.hr-table td{padding:11px 13px;border-bottom:1px solid #e6edf8;text-align:left;vertical-align:middle;white-space:nowrap}
.hr-table th{background:#eff5ff;font-weight:700;color:#173e80}
.hr-table tr:last-child td{border-bottom:0}
.hr-table td small{display:block;color:#8090ae;margin-top:3px}
.hr-table td button{border:0;background:none;color:#1265de;padding:2px 4px;cursor:pointer}
.hr-status{background:#eaf2ff;color:#125cc5;border-radius:30px;padding:3px 9px;font-size:12px}
.hr-empty{color:#6780ab;text-align:center;padding:38px 15px}
.hr-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#667a9f;font-size:13px;margin-top:14px}
.hr-pager>div{display:flex;align-items:center;gap:10px}
.hr-pager button:disabled{opacity:.45;cursor:default}
.hr-three{display:grid;grid-template-columns:minmax(190px,23%) minmax(280px,1fr) minmax(230px,28%);gap:14px;min-width:0}
.hr-pane{border:1px solid #e4ebf6;border-radius:9px;padding:14px;min-width:0}
.hr-pane h3{font-size:15px;margin:2px 0 14px}
.hr-department-list{display:grid;gap:6px}
.hr-department-list button,.hr-role{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;color:#254979;border-radius:6px;padding:9px 10px;text-align:left;cursor:pointer}
.hr-department-list button.selected,.hr-role.selected{background:#e8f1ff;color:#0c59d5;font-weight:700}
.hr-department-list small{color:#7d95b5}
.hr-org-node{border:1px solid #bfddfb;border-radius:9px;padding:15px;margin-bottom:10px;background:#f5faff;display:flex;justify-content:space-between;gap:12px}
.hr-org-node.sub{margin-left:22px;background:#fff}
.hr-facts{display:grid;grid-template-columns:90px 1fr;gap:12px;font-size:13px}.hr-facts dt{color:#7589a9}.hr-facts dd{margin:0;overflow-wrap:anywhere}
.hr-toggle{display:flex;align-items:center;gap:9px;margin:10px 0;color:#254979;font-size:13px}.hr-toggle input{accent-color:#1765eb}
.hr-help{background:#eef5ff;color:#47699a;padding:12px 15px;border-radius:8px;font-size:13px;margin:0 0 18px}
.hr-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.hr-stat{border:1px solid #e0eaf7;background:#f8fbff;border-radius:8px;padding:12px}.hr-stat span{font-size:12px;color:#6980a6}.hr-stat strong{display:block;font-size:24px;margin-top:5px}
.hr-filters{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}.hr-filter{display:grid;gap:5px;min-width:150px;color:#526b94;font-size:12px}.hr-filter select{height:36px;border:1px solid #d4e0f2;border-radius:7px;background:#fff;color:#15376b;padding:0 9px}
.hr-dialog{border:0;border-radius:13px;padding:0;width:min(820px,calc(100vw - 36px));max-height:90vh;box-shadow:0 16px 60px rgba(4,30,80,.25);color:#0b2c68}.hr-dialog::backdrop{background:rgba(5,24,59,.45)}
.hr-dialog-head,.hr-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid #e7ecf5}.hr-dialog-head h2{font-size:18px;margin:0}.hr-dialog-footer{border-top:1px solid #e7ecf5;border-bottom:0;justify-content:flex-end}
.hr-dialog-body{padding:20px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;overflow:auto;max-height:62vh}.hr-field{display:grid;gap:7px;font-size:13px;font-weight:600}.hr-field input,.hr-field select,.hr-field textarea{border:1px solid #d4e0f2;border-radius:7px;padding:9px 11px;min-width:0;width:100%;font:inherit;color:#15376b}.hr-field textarea{resize:vertical}.hr-wide{grid-column:1/-1}.hr-dialog .form-status{padding:0 22px 12px}
.hr-detail{padding:20px 22px;max-height:68vh;overflow:auto}.hr-detail h3{font-size:14px;margin:16px 0 5px}.hr-detail p{margin:8px 0;color:#466087;white-space:pre-wrap}.hr-detail form{display:grid;gap:10px;margin-top:15px}
@media(max-width:1050px){.hr-three{grid-template-columns:1fr 1fr}.hr-three .hr-pane:last-child{grid-column:1/-1}.hr-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.hr-three{grid-template-columns:1fr}.hr-three .hr-pane:last-child{grid-column:auto}.hr-dialog-body{grid-template-columns:1fr}.hr-stats{grid-template-columns:repeat(2,1fr)}}
