/* ==========================================================================
   القائمة الجانبية للبوابة (حسابي) — منقولة من index.php كما هي
   نسخة من تنسيق index.php تستخدمها صفحات منصة المشاريع مع projects/lib/portal-chrome.php
   ========================================================================== */
    .portal-drawer__nav .drawer-static-label { font: inherit; font-weight: inherit; }
    /* يبقى backLink في DOM لأن script.js الحالي يعتمد عليه؛ نخفيه بصريًا فقط. */
    #backLink { display: none !important; }
    .portal-page-back-wrap {
      padding-top: 24px;
      padding-bottom: 0;
    }
    .portal-page-back {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 48px;
      padding: 11px 18px;
      border: 1.5px solid #00a9a5;
      border-radius: 12px;
      background: #fff;
      color: #009fa3;
      font: inherit;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(11,30,65,.08);
      transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
    }
    .portal-page-back:hover,
    .portal-page-back:focus-visible {
      background: #f3fbfb;
      color: #007f83;
      box-shadow: 0 4px 12px rgba(11,30,65,.12);
      outline: none;
    }
    .portal-page-back:active { transform: translateY(1px); }
    .portal-page-back__label::before { content: "رجوع"; }
    html[lang="en"] .portal-page-back__label::before { content: "Back"; }
    html[dir="rtl"] .portal-page-back > i { transform: rotate(180deg); }
    #profileHomeLink .drawer-static-label::before { content: "البوابة الرئيسية"; }
    #profileEvaluationLink .drawer-static-label::before { content: "التقييم"; }
    #profileSupportLink .drawer-static-label::before { content: "الدعم التقني"; }
    #profileTravelExpenseLink .drawer-static-label::before { content: "طلب مستحقات"; }
    #profileElectronicSignatureLink .drawer-static-label::before { content: "خدمات التوقيع الإلكتروني"; }
    #profileHrLink .drawer-static-label::before { content: "لوحة الموارد البشرية"; }
    #profileItLink .drawer-static-label::before { content: "لوحة تذاكر IT"; }
    #profileCorporateDashboardLink .drawer-static-label::before { content: "لوحة التواصل المؤسسي"; }
    #profileHrPolicyLink .drawer-static-label::before { content: "سياسة الموارد البشرية"; }
    #profileSlaLink .drawer-static-label::before { content: "اتفاقية مستوى الخدمة"; }
    #profileBrandLibraryLink .drawer-static-label::before { content: "مكتبة الهوية"; }
    #profileCorporateFilesLink .drawer-static-label::before { content: "مكتبة الملفات"; }
    #profileCorporateRequestLink .drawer-static-label::before { content: "تقديم طلب"; }
    #profileValleyWeekendLink .drawer-static-label::before { content: "ويكند الوادي"; }
    #drawerSlaAgreementsLabel::before { content: "اتفاقيات مستوى الخدمة"; }
    #profileHrSlaAgreementLink .drawer-static-label::before { content: "خدمات الموارد البشرية"; }
    #profileDigitalSlaAgreementLink .drawer-static-label::before { content: "خدمات التحول الرقمي"; }
    #profileProcurementSlaAgreementLink .drawer-static-label::before { content: " خدمات المشتريات"; }
    #profilePoliciesLink .drawer-static-label::before { content: "السياسات"; }
    #profileProjectsLink .drawer-static-label::before { content: "متابعة سير العمليات"; }

        #profileDigitalTransformationLink .drawer-static-label::before { content: "خدمات التحول الرقمي"; }
html[lang="en"] #profileHomeLink .drawer-static-label::before { content: "Portal home"; }
    html[lang="en"] #profileEvaluationLink .drawer-static-label::before { content: "Evaluation"; }
    html[lang="en"] #profileSupportLink .drawer-static-label::before { content: "IT Support"; }
    html[lang="en"] #profileTravelExpenseLink .drawer-static-label::before { content: "Expense Request"; }
    html[lang="en"] #profileElectronicSignatureLink .drawer-static-label::before { content: "Electronic Signature Services"; }
    html[lang="en"] #profileHrLink .drawer-static-label::before { content: "HR dashboard"; }
    html[lang="en"] #profileItLink .drawer-static-label::before { content: "IT Ticket Dashboard"; }
    html[lang="en"] #profileCorporateDashboardLink .drawer-static-label::before { content: "Corporate Communication Dashboard"; }
    html[lang="en"] #profileHrPolicyLink .drawer-static-label::before { content: "HR Policy"; }
    html[lang="en"] #profileSlaLink .drawer-static-label::before { content: "Service Level Agreement (SLA)"; }
    html[lang="en"] #drawerSlaAgreementsLabel::before { content: "Service Level Agreements"; }
    html[lang="en"] #profileHrSlaAgreementLink .drawer-static-label::before { content: "Human Resources Services"; }
    html[lang="en"] #profileDigitalSlaAgreementLink .drawer-static-label::before { content: "Digital Transformation Services"; }
    html[lang="en"] #profileProcurementSlaAgreementLink .drawer-static-label::before { content: "Procurement Services"; }
    html[lang="en"] #profileDigitalTransformationLink .drawer-static-label::before { content: "Digital Transformation Services"; }
    html[lang="en"] #profileBrandLibraryLink .drawer-static-label::before { content: "Brand Library"; }
    html[lang="en"] #profileCorporateFilesLink .drawer-static-label::before { content: "Files Library"; }
    html[lang="en"] #profileCorporateRequestLink .drawer-static-label::before { content: "Submit a Request"; }
    html[lang="en"] #profileValleyWeekendLink .drawer-static-label::before { content: "Valley Weekend"; }
    html[lang="en"] #profilePoliciesLink .drawer-static-label::before { content: "Policies"; }
    html[lang="en"] #profileProjectsLink .drawer-static-label::before { content: "Operations Tracking"; }
    #drawerLogoutBtn .drawer-static-label::before { content: "تسجيل الخروج"; }
    html[lang="en"] #drawerLogoutBtn .drawer-static-label::before { content: "Sign out"; }

    /* مجموعات خدمات القائمة الجانبية. روابط الصلاحيات نفسها تبقى كما هي؛
       التجميع هنا بصري فقط، والـJS الحالي يقرر ظهور HR/IT حسب الدور. */
    .drawer-service-group { display: block; }
    .drawer-service-group + .drawer-service-group { margin-top: 4px; }
    .drawer-service-group__toggle {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 12px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: #0b1e41;
      font: inherit;
      font-weight: 600;
      text-align: start;
      cursor: pointer;
    }
    .drawer-service-group__toggle:hover,
    .drawer-service-group__toggle:focus-visible { background: #f4f7fa; }
    .drawer-service-group__toggle > i:first-child {
      width: 18px;
      text-align: center;
      color: #607089;
    }
    .drawer-service-group__toggle .drawer-service-group__label { flex: 1; }
    .drawer-service-group__chevron {
      font-size: 11px;
      color: #7b8798;
      transition: transform .18s ease;
    }
    .drawer-service-group__toggle[aria-expanded="true"] .drawer-service-group__chevron {
      transform: rotate(180deg);
    }
    .drawer-service-group__items {
      display: grid;
      gap: 2px;
      padding: 2px 0 6px;
    }
    .drawer-service-group__items[hidden] { display: none !important; }
    .drawer-service-group__items > a {
      padding-inline-start: 38px !important;
    }

    /* Cooperative Services عنوان تنظيمي فقط، وليس زرًا أو رابطًا. */
    .drawer-section-heading {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 12px 7px;
      color: #0b1e41;
      font: inherit;
      font-weight: 700;
      cursor: default;
      user-select: none;
    }
    .drawer-section-heading > i {
      width: 18px;
      text-align: center;
      color: #607089;
    }
    .drawer-cooperative-groups {
      display: grid;
      gap: 2px;
      padding: 0 0 6px 14px;
    }
    .drawer-cooperative-groups .drawer-service-group__toggle {
      padding-inline-start: 18px;
    }
    .drawer-cooperative-groups .drawer-service-group__items > a {
      padding-inline-start: 48px !important;
    }

        #drawerCooperativeServicesLabel::before { content: "الخدمات المشتركة"; }
    #drawerHrServicesLabel::before { content: "خدمات الموارد البشرية"; }
    #drawerDigitalTransformationLabel::before { content: "التحول الرقمي"; }
    #drawerCorporateCommunicationLabel::before { content: "التواصل المؤسسي"; }
    html[lang="en"] #drawerCooperativeServicesLabel::before { content: "Cooperative Services"; }
    html[lang="en"] #drawerHrServicesLabel::before { content: "HR Services"; }
    html[lang="en"] #drawerDigitalTransformationLabel::before { content: "Digital Transformation"; }
    html[lang="en"] #drawerCorporateCommunicationLabel::before { content: "Corporate Communication"; }
    html[lang="en"] #drawerProcurementLabel::before { content: "Procurement"; }

#drawerEducationLabel::before { content: "قطاع التعليم"; }
html[lang="en"] #drawerEducationLabel::before { content: "Education Sector"; }
/* سجل الأصول — تحت التحول الرقمي (لفريق التحول الرقمي فقط) */
#profileAssetRegisterLink .drawer-static-label::before { content: "سجل الأصول"; }
html[lang="en"] #profileAssetRegisterLink .drawer-static-label::before { content: "Asset Register"; }
