/* تصميم إدارة الصلاحيات: مستقل عن بقية شاشات المؤسسة */
.gh-permissions{padding:28px 34px 50px;color:#163b2c;font-family:'Cairo',Tahoma,sans-serif;background:#f3f6f4;min-height:100vh}
.gh-pm-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.gh-pm-heading h1{font-size:25px;font-weight:800;margin:7px 0;color:#143e31}.gh-pm-heading p{color:#789086;margin:0}
.gh-pm-eyebrow{color:#248366;font-size:12px;font-weight:700}.gh-pm-back,.gh-pm-light{border:1px solid #dfe9e2;color:#306c55;background:#fff;border-radius:11px;padding:10px 14px;text-decoration:none;font-weight:700;cursor:pointer}
.gh-pm-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.gh-pm-card{background:#fff;border:1px solid #e3ede6;border-radius:18px;padding:22px;box-shadow:0 6px 24px #183d2809;margin-bottom:18px;min-width:0}
.gh-pm-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.gh-pm-card-head h2{margin:0;font-size:18px;color:#164c38}.gh-pm-card-head span{color:#849a8f;font-size:12px}
.gh-pm-search{display:flex;gap:6px;margin-bottom:12px}.gh-pm-search input{width:100%;min-width:0;border:1px solid #d6e5da;padding:11px;border-radius:10px;background:#fbfdfb;outline-color:#27885e}.gh-pm-search button,.gh-pm-save{border:0;border-radius:10px;background:#147852;color:#fff;font-weight:800;padding:10px 17px;cursor:pointer}
.gh-pm-employee-list{max-height:68vh;overflow-y:auto;scrollbar-width:thin}.gh-pm-person{width:100%;display:flex;align-items:center;gap:10px;background:transparent;border:1px solid transparent;padding:12px 10px;margin:3px 0;border-radius:12px;cursor:pointer;text-align:right;font-family:inherit;color:inherit}
.gh-pm-person:hover,.gh-pm-person.active{border-color:#b3d8bf;background:#eef8f1}.gh-pm-person-avatar{background:#e2efe6;color:#187350;width:43px;height:43px;flex:0 0 43px;border-radius:13px;display:grid;place-items:center;font-weight:800}.gh-pm-person-info{display:grid;gap:3px;flex:1;min-width:0}.gh-pm-person-info strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}.gh-pm-person-info small,.gh-pm-selected small{font-size:11px;color:#7f9186}.gh-pm-indicator{width:8px;height:8px;border-radius:50%;background:#d1d8d2}.gh-pm-indicator.active{background:#1c9b64}
.gh-pm-selected{display:flex;align-items:center;gap:12px;margin-bottom:16px}.gh-pm-selected div{display:grid;gap:4px}.gh-pm-access-line{padding:14px 0 0;border-top:1px solid #e5eee7;display:flex;align-items:center;justify-content:space-between;gap:18px}.gh-pm-access-line p,.gh-pm-help{font-size:12px;color:#7f9186;margin:7px 0 0}.gh-pm-toggle{border:1px solid #a9d6bf;color:#12794c;background:#eff8f1;padding:10px 16px;border-radius:25px;font-weight:800;cursor:pointer;white-space:nowrap}.gh-pm-toggle.on{border-color:#f1d1c9;background:#fff4f0;color:#b35440}
.gh-pm-alert{margin:12px 0;padding:13px 16px;border-radius:12px;font-size:13px}.gh-pm-alert.danger{color:#a8413c;background:#fff0ed;border:1px solid #f3d7cd}.gh-pm-alert.success{color:#166c44;background:#e9f8ef;border:1px solid #c1e4cf}
.gh-pm-template{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.gh-pm-template button{font-family:inherit;border-radius:10px;padding:9px 13px;border:1px solid #b5dac4;color:#177b56;background:#eef9f2;font-weight:700;cursor:pointer}
.gh-pm-table-wrap{overflow:auto;max-height:490px;border:1px solid #e5ede7;border-radius:12px}.gh-pm-table{border-collapse:collapse;min-width:900px;width:100%;font-size:12px;text-align:center}.gh-pm-table th,.gh-pm-table td{border-bottom:1px solid #ebf0ec;padding:12px 10px}.gh-pm-table thead th{position:sticky;top:0;background:#eef6f0;color:#315f48;z-index:1}.gh-pm-table tbody th{text-align:right;white-space:nowrap}.gh-pm-table input{width:19px;height:19px;accent-color:#138158;cursor:pointer}
.gh-pm-actions{display:flex;justify-content:flex-end;margin-top:16px}.gh-pm-save{padding:12px 30px}.gh-pm-placeholder{min-height:190px;display:grid;place-content:center;text-align:center}.gh-pm-placeholder p,.gh-pm-empty{color:#849a8e}
@media(max-width:1050px){.gh-pm-layout{grid-template-columns:260px minmax(0,1fr)}.gh-permissions{padding:18px}}
@media(max-width:760px){.gh-pm-layout{grid-template-columns:1fr}.gh-pm-employee-list{max-height:260px}.gh-pm-heading{align-items:flex-start;flex-direction:column}.gh-pm-access-line{align-items:flex-start;flex-direction:column}.gh-permissions{padding:14px}}
