/* AYMAN HR INTERFACE V1 - Scoped, RTL, responsive */
.hr-page{--hr-navy:#142d49;--hr-ink:#1f3550;--hr-teal:#237a85;--hr-border:#dae5ed;color:var(--hr-ink)}
.hr-page .hr-hero{min-height:190px;border-radius:24px;background:linear-gradient(112deg,#193650,#31536a);color:#fff;padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;margin-bottom:18px;box-shadow:0 15px 30px rgba(22,49,77,.13)}
.hr-page .hr-eyebrow{font-size:11px;letter-spacing:1.8px;color:#8bdee0;font-weight:900}
.hr-page .hr-hero h2{margin:10px 0 8px;font-size:clamp(21px,3vw,30px);line-height:1.45}
.hr-page .hr-hero p{font-size:13px;opacity:.81;line-height:1.85;max-width:630px;margin:0}
.hr-page .hr-hero-visual{font-size:76px;font-weight:900;opacity:.16;white-space:nowrap;letter-spacing:-5px;display:grid}.hr-page .hr-hero-visual span{font-size:17px;letter-spacing:7px;text-align:left}
.hr-page .hr-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.hr-page .hr-mini-stats>div{border:1px solid var(--hr-border);background:#fff;border-radius:17px;padding:18px 19px;min-width:0;display:grid;gap:6px;box-shadow:0 6px 17px rgba(22,49,77,.045)}
.hr-page .hr-mini-stats small{font-size:12px;color:#678098}.hr-page .hr-mini-stats strong{font-size:25px;color:var(--hr-navy);overflow-wrap:anywhere}
.hr-page .hr-home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hr-page .hr-action-card{border:1px solid var(--hr-border);border-radius:19px;background:#fff;min-height:200px;text-align:right;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;cursor:pointer;position:relative;box-shadow:0 8px 19px rgba(22,49,77,.05);font:inherit;color:var(--hr-ink);transition:transform .2s,border-color .2s}
.hr-page .hr-action-card:hover:not(.hr-soon){transform:translateY(-3px);border-color:#85b5c1}.hr-page .hr-action-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:#e8f5f6;color:#257d85;font-size:29px}
.hr-page .hr-action-card span:nth-child(2){display:grid;gap:9px}.hr-page .hr-action-card b{font-size:20px}.hr-page .hr-action-card small{font-size:12px;line-height:1.9;color:#688096}.hr-page .hr-action-card>i{position:absolute;left:22px;top:28px;font-style:normal;font-size:24px;color:#537c8a}.hr-page .hr-soon{background:#f7f9fc;cursor:default;border-style:dashed}.hr-page .hr-soon em{font-size:11px;color:#718498;font-style:normal}
.hr-page .hr-caption{font-size:12px;color:#738498;line-height:1.9;margin:18px 2px}.hr-page .hr-subhead{display:flex;align-items:center;gap:16px;margin:8px 0 20px}.hr-page .hr-subhead h2{margin:0 0 4px;font-size:23px}.hr-page .hr-subhead p{margin:0;color:#6e8394;font-size:12px}
.hr-page .hr-quiet-button,.hr-page .hr-primary-button{border-radius:12px;padding:11px 15px;min-height:43px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.hr-page .hr-quiet-button{background:#fff;color:#275368;border:1px solid #cadde5}.hr-page .hr-primary-button{border:0;background:#207785;color:#fff}.hr-page button:disabled{opacity:.5;cursor:wait}
.hr-page .hr-filters{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr auto auto;gap:12px;align-items:end;border:1px solid var(--hr-border);border-radius:18px;background:#fff;padding:16px;margin-bottom:12px}
.hr-page .hr-filters label,.hr-page .hr-modal-panel form>label:not(.hr-inline-field){display:grid;gap:6px;font-size:12px;color:#5b7086;font-weight:700}
.hr-page input:not([type=checkbox]){height:43px;border-radius:10px;border:1px solid #d5e2e9;padding:8px 12px;min-width:0;width:100%;background:#fff;font:inherit;color:#20374e}
.hr-page .hr-result-stat{font-size:13px;background:#eaf4f5;color:#235c65;border:1px solid #d7e8ea;padding:12px 16px;border-radius:12px;margin:12px 0}
.hr-page .hr-table-scroll{background:#fff;border:1px solid var(--hr-border);border-radius:17px;overflow:auto;max-width:100%;max-height:64vh}
.hr-page .hr-table{border-collapse:collapse;width:100%;min-width:780px;text-align:right}.hr-page .hr-table th{position:sticky;top:0;background:#edf3f7;font-size:12px;color:#4f6579;z-index:1}.hr-page .hr-table th,.hr-page .hr-table td{padding:13px 15px;border-bottom:1px solid #e8eff4;font-size:12px;white-space:nowrap}.hr-page .hr-table tbody tr:hover{background:#f8fbfd}.hr-page .hr-table .hr-empty{text-align:center;padding:32px;color:#748797}.hr-page .hr-row-name{font-size:13px;font-weight:800;color:#1d384c}.hr-page .hr-badge{display:inline-block;font-size:11px;border-radius:9px;background:#def4eb;color:#216b4a;padding:5px 9px;font-weight:800}.hr-page .hr-badge.hr-warn{background:#fff0e1;color:#8b551c}.hr-page .hr-badge.hr-off{background:#f0f1f4;color:#7a8590}
.hr-page .hr-directory-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.hr-page .hr-directory-tools input{flex:1 1 250px}.hr-page .hr-emp-edit{border:1px solid #cbdde5;color:#237785;background:#fff;border-radius:10px;padding:7px 12px;font:inherit;cursor:pointer}
.hr-page .hr-modal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;background:rgba(8,26,42,.68);padding:15px;overflow:auto}.hr-page .hr-modal.hidden{display:none!important}
.hr-page .hr-modal-panel{width:min(570px,100%);background:#fff;padding:23px;border-radius:23px;max-height:95vh;overflow:auto;box-shadow:0 25px 75px rgba(0,0,0,.23)}
.hr-page .hr-modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px}.hr-page .hr-modal-head span{font-size:11px;color:#7a909c}.hr-page .hr-modal-head h2{margin:4px 0 0;font-size:23px}.hr-page .hr-modal-head button{background:#f3f6f9;border:0;border-radius:10px;width:37px;height:37px;font-size:22px;cursor:pointer}
.hr-page .hr-modal-panel form{display:grid;gap:13px}.hr-page .hr-inline-field{display:flex;align-items:center;gap:10px;line-height:1.7;font-size:12px;cursor:pointer}.hr-page .hr-inline-field input{accent-color:#237a85;flex:0 0 auto}.hr-page .hr-pin-history{background:#edf7f8;border:1px solid #d3e8ea;padding:12px;font-size:12px;line-height:1.8;border-radius:12px;color:#315d67}.hr-page .hr-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
@media(max-width:1050px){.hr-page .hr-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.hr-page .hr-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-page .hr-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hr-page .hr-hero{padding:22px 19px;min-height:0}.hr-page .hr-hero-visual{display:none}.hr-page .hr-mini-stats{gap:9px}.hr-page .hr-mini-stats>div{padding:14px}.hr-page .hr-mini-stats strong{font-size:20px}.hr-page .hr-home-cards{grid-template-columns:1fr}.hr-page .hr-action-card{min-height:146px;padding:17px;gap:8px}.hr-page .hr-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}.hr-page .hr-filters button{min-width:0}.hr-page .hr-subhead{align-items:flex-start;flex-direction:column}.hr-page .hr-directory-tools{align-items:stretch}.hr-page .hr-directory-tools button{flex:1}.hr-page .hr-modal-panel{padding:17px}.hr-page .hr-table th,.hr-page .hr-table td{padding:11px}}

/* AYMAN_HR_THREE_MENUS_V11: do not show unauthorized submenu even if display rules exist */
.hr-page [data-perm][hidden] { display: none !important; }
