/*
 * تحسينات بصرية للوحة تحكم الأدمن: أيقونات ملوّنة لكل مجموعة في القائمة الجانبية
 * + أنيميشن CSS خفيف عند التفاعل. مستهدفة عبر data-group-label الثابت الذي يولّده Filament v4
 * (لا نغيّر أي سلوك أو منطق، فقط مظهر).
 */

/* -- أنيميشن عام لعناصر القائمة الجانبية -- */
.fi-sidebar-item-btn {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fi-sidebar-item-icon {
    border-radius: 9999px;
    padding: 5px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease;
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
    transform: scale(1.15) rotate(-6deg);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55) inset;
}

.fi-sidebar-group-btn {
    transition: background-color 0.2s ease;
    border-inline-start: 3px solid transparent;
}

/* -- لون لكل مجموعة عبر data-nav: مفتاح ثابت يضعه AdminPanelProvider::navigationGroups()
      فلا تتأثر الألوان بلغة الواجهة أو بتغيير اسم المجموعة. -- */
.fi-sidebar-group[data-nav] { --nav-from: #a1a1aa; --nav-to: #52525b; }
.fi-sidebar-group[data-nav="employees"]         { --nav-from: #a78bfa; --nav-to: #7c3aed; }
.fi-sidebar-group[data-nav="attendance"]        { --nav-from: #34d399; --nav-to: #059669; }
.fi-sidebar-group[data-nav="leaves"]            { --nav-from: #fbbf24; --nav-to: #d97706; }
.fi-sidebar-group[data-nav="payroll"]           { --nav-from: #2dd4bf; --nav-to: #0d9488; }
.fi-sidebar-group[data-nav="performance"]       { --nav-from: #facc15; --nav-to: #ca8a04; }
.fi-sidebar-group[data-nav="communication"]     { --nav-from: #f472b6; --nav-to: #db2777; }
.fi-sidebar-group[data-nav="reports"]           { --nav-from: #38bdf8; --nav-to: #0284c7; }
.fi-sidebar-group[data-nav="financial_system"]  { --nav-from: #fb7185; --nav-to: #e11d48; }
.fi-sidebar-group[data-nav="org_structure"]     { --nav-from: #94a3b8; --nav-to: #475569; }
.fi-sidebar-group[data-nav="attendance_setup"]  { --nav-from: #a3e635; --nav-to: #65a30d; }
.fi-sidebar-group[data-nav="general_settings"]  { --nav-from: #60a5fa; --nav-to: #2563eb; }
.fi-sidebar-group[data-nav="users_permissions"] { --nav-from: #818cf8; --nav-to: #4f46e5; }

.fi-sidebar-group[data-nav] .fi-sidebar-group-btn { border-color: var(--nav-to); }
.fi-sidebar-group[data-nav] .fi-sidebar-item-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--nav-from), var(--nav-to));
}

/* عناوين المجموعات: أوضح وأخف من عناصرها، مع مسافة تفصل كل مجموعة عن التي قبلها. */
.fi-sidebar-group + .fi-sidebar-group { margin-top: 0.35rem; }
.fi-sidebar-group-btn .fi-sidebar-group-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* -- تذييل الحقوق البرمجية ورقم الإصدار أسفل القائمة الجانبية (بأسلوب "Powered by" الشهير) -- */

/* ===== شعار النظام أعلى القائمة الجانبية ===== */
.hr-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    text-decoration: none;
}

.hr-brand__mark {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow:
        0 8px 18px -8px rgba(146, 64, 14, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.hr-brand__mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hr-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
    line-height: 1.15;
}

.hr-brand__name {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgb(41 37 36);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hr-brand__tagline {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgb(120 113 108);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .hr-brand__name {
    color: rgb(255 251 235);
}

.dark .hr-brand__tagline {
    color: rgb(214 211 209);
}

.fi-logo:has(.hr-brand) {
    height: auto !important;
    max-height: none;
}

.fi-sidebar-header .fi-logo:has(.hr-brand) {
    padding-block: 0.15rem;
}

/* عند طي القائمة: أخفِ النص وأبقِ الشعار فقط */
@media (min-width: 1024px) {
    .fi-sidebar:not(.fi-sidebar-open) .hr-brand__text {
        display: none;
    }

    .fi-sidebar:not(.fi-sidebar-open) .hr-brand {
        justify-content: center;
        width: 100%;
    }
}

.fi-sidebar-version {
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgb(113 113 122);
    border-top: 1px solid rgba(113, 113, 122, 0.15);
    letter-spacing: 0.02em;
}

.fi-sidebar-version-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    color: rgb(63 63 70);
}

.fi-sidebar-version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fi-sidebar-version-copyright {
    margin-top: 0.2rem;
    opacity: 0.85;
}

:root[data-theme="dark"] .fi-sidebar-version,
.dark .fi-sidebar-version {
    color: rgb(161 161 170);
    border-top-color: rgba(161, 161, 170, 0.15);
}

:root[data-theme="dark"] .fi-sidebar-version-line,
.dark .fi-sidebar-version-line {
    color: rgb(212 212 216);
}

/* -- تذييل الصفحة الرئيسي (يظهر في كل صفحات لوحة الأدمن) -- */
.hr-admin-footer {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(180, 83, 9, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 251, 235, 0.55), rgba(255, 255, 255, 0.92));
}

.dark .hr-admin-footer {
    border-top-color: rgba(251, 191, 36, 0.12);
    background: linear-gradient(180deg, rgba(41, 37, 36, 0.5), rgba(28, 25, 23, 0.92));
}

.hr-admin-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 88rem;
    margin-inline: auto;
    padding: 0.85rem 1.25rem 1rem;
}

.hr-admin-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hr-admin-footer__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(63 63 70);
}

.dark .hr-admin-footer__name {
    color: rgb(228 228 231);
}

.hr-admin-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hr-admin-footer__copy {
    font-size: 0.72rem;
    color: rgb(113 113 122);
}

.dark .hr-admin-footer__copy {
    color: rgb(161 161 170);
}

@media (max-width: 640px) {
    .hr-admin-footer__inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* عرض كامل بدون فراغات جانبية كبيرة */
.fi-main.fi-width-full {
    max-width: none !important;
    width: 100%;
}

.fi-page-content,
.fi-main > section,
.fi-wi-widget {
    max-width: none;
}

.hr-admin-footer__inner {
    max-width: none;
}


.fi-main {
    flex: 1 1 auto;
}

.hr-admin-footer {
    flex-shrink: 0;
}

/* فوتر صفحة تسجيل الدخول أيضاً */
.fi-simple-layout .hr-admin-footer {
    margin-top: 0;
    width: 100%;
}

/* ===== الهيكل التنظيمي المتسلسل (موظف / قسم / مسمى) ===== */
.hr-org-cascade .fi-fo-placeholder {
    margin-bottom: 0.15rem;
}

.hr-org-path {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.10), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(180, 83, 9, 0.18);
}

.dark .hr-org-path {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(28, 25, 23, 0.35));
    border-color: rgba(245, 158, 11, 0.22);
}

.hr-org-path__step {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 5.5rem;
    padding: 0.15rem 0.35rem;
}

.hr-org-path__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a8a29e;
    text-transform: none;
}

.hr-org-path__value {
    font-size: 0.82rem;
    font-weight: 500;
    color: #78716c;
}

.hr-org-path__step.is-set .hr-org-path__label {
    color: #b45309;
}

.hr-org-path__step.is-set .hr-org-path__value {
    color: #1c1917;
    font-weight: 700;
}

.dark .hr-org-path__step.is-set .hr-org-path__label {
    color: #fbbf24;
}

.dark .hr-org-path__step.is-set .hr-org-path__value {
    color: #fafaf9;
}

.hr-org-path__sep {
    align-self: center;
    color: #d6d3d1;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 0.1rem;
}

.dark .hr-org-path__sep {
    color: #57534e;
}

/* ===== بطاقة الموظف / الملف الشخصي ===== */
.hr-employee-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 340px);
    gap: 1.5rem;
    align-items: start;
    padding: 0.25rem 0 0.5rem;
}

@media (max-width: 900px) {
    .hr-employee-profile { grid-template-columns: 1fr; }
}

.hr-employee-profile__hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(1200px 280px at 100% 0%, rgba(251, 191, 36, 0.22), transparent 55%),
        linear-gradient(145deg, #fffbeb 0%, #ffffff 55%, #ffedd5 100%);
    border: 1px solid rgba(180, 83, 9, 0.18);
}

.dark .hr-employee-profile__hero {
    background:
        radial-gradient(900px 240px at 100% 0%, rgba(217, 119, 6, 0.25), transparent 55%),
        linear-gradient(145deg, #1c1917, #292524);
    border-color: rgba(251, 191, 36, 0.2);
}

.hr-employee-profile__photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.hr-photo-frame {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.hr-photo-frame__ring {
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background:
        conic-gradient(from 210deg, #fbbf24, #fdba74, #b45309, #f59e0b, #fbbf24);
    z-index: 0;
    animation: hr-photo-spin 12s linear infinite;
    opacity: 0.95;
}

.hr-photo-frame__ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: #fffbeb;
}

.dark .hr-photo-frame__ring::after {
    background: #1c1917;
}

.hr-photo-frame--lg { width: 138px; height: 138px; }
.hr-photo-frame--md { width: 118px; height: 118px; }

.hr-employee-profile__photo {
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px rgba(180, 83, 9, 0.12),
        0 14px 32px rgba(146, 64, 14, 0.28);
    background: #fff7ed;
}

.hr-employee-profile__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #f59e0b, #b45309);
}

.hr-employee-profile__photo-badge {
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    box-shadow: 0 6px 14px rgba(28, 25, 23, 0.12);
}

.hr-employee-profile__photo-badge--active {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.hr-employee-profile__photo-badge--on_leave {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.hr-employee-profile__photo-badge--suspended,
.hr-employee-profile__photo-badge--terminated {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.hr-employee-profile__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}

.hr-employee-profile__name {
    margin: 0.2rem 0 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: #1c1917;
    line-height: 1.25;
}

.dark .hr-employee-profile__name { color: #fafaf9; }

.hr-employee-profile__name-en {
    margin: 0.15rem 0 0;
    color: #78716c;
    font-size: 0.9rem;
    direction: ltr;
    text-align: right;
}

.hr-employee-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.hr-employee-profile__chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}

.hr-employee-profile__chip--soft {
    font-weight: 600;
    color: #57534e;
}

.hr-employee-profile__hint {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: #78716c;
    line-height: 1.6;
}

.hr-employee-profile__card-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
}

.hr-badge-modal {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 0.25rem;
}

@media (max-width: 800px) {
    .hr-badge-modal { grid-template-columns: 1fr; }
}

.hr-badge-modal__preview {
    display: flex;
    justify-content: center;
}

.hr-badge-modal__photo {
    width: 100%;
    aspect-ratio: 1;
    max-height: 260px;
    object-fit: cover;
    border-radius: 1.1rem;
    border: 1px solid rgba(180, 83, 9, 0.18);
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.12);
}

.hr-badge-modal__photo--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: #92400e;
    font-weight: 800;
    font-size: 2rem;
}

.hr-badge-modal__photo--empty p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #78716c;
}

.hr-badge-modal__tips {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: #fffbeb;
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.hr-badge-modal__tips-title {
    margin: 0 0 0.45rem;
    font-weight: 800;
    color: #92400e;
    font-size: 0.9rem;
}

.hr-badge-modal__tips ul {
    margin: 0;
    padding-inline-start: 1.1rem;
    color: #57534e;
    font-size: 0.82rem;
    line-height: 1.7;
}

.hr-badge-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.hr-badge-modal__print-btn,
.hr-badge-modal__edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.hr-badge-modal__print-btn {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
}

.hr-badge-modal__edit-btn {
    background: #fff;
    color: #92400e;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.hr-id-card {
    position: relative;
    width: min(340px, 100%);
    border-radius: 1.15rem;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #fffbeb 100%);
    border: 1px solid rgba(180, 83, 9, 0.22);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 18px 40px rgba(180, 83, 9, 0.12);
    text-align: right;
}

.hr-id-card__glow {
    position: absolute;
    inset: auto -20% -30% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
    pointer-events: none;
}

.hr-id-card__stripe {
    height: 5px;
    background: linear-gradient(90deg, #b45309, #f59e0b, #d97706);
}

.hr-id-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.65rem;
}

.hr-id-card__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.hr-id-card__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fff;
    padding: 3px;
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.hr-id-card__logo-fallback {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.hr-id-card__company {
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    margin: 0;
    line-height: 1.3;
}

.hr-id-card__type {
    font-size: 0.65rem;
    color: #78716c;
    margin: 0.1rem 0 0;
}

.hr-id-card__chip { color: #d97706; opacity: 0.85; flex-shrink: 0; }

.hr-id-card__body { padding: 0.35rem 1.1rem 0.85rem; }

.hr-id-card__profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.hr-id-card__photo-ring {
    position: relative;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(145deg, #fbbf24, #b45309 55%, #92400e);
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.28);
}

.hr-id-card__photo-glow {
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hr-id-card__avatar {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2.5px solid #fff;
    background: #fff7ed;
}

.hr-id-card__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #d97706, #b45309);
}

.hr-id-card__info { min-width: 0; flex: 1; }

.hr-id-card__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1c1917;
    margin: 0;
    line-height: 1.35;
}

.hr-id-card__name-en {
    font-size: 0.72rem;
    color: #78716c;
    margin: 0.1rem 0 0;
    direction: ltr;
    text-align: right;
}

.hr-id-card__meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #57534e;
    margin: 0.2rem 0 0;
}

.hr-id-card__meta--muted { font-weight: 500; color: #78716c; }

.hr-id-card__qr-block {
    text-align: center;
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px dashed rgba(180, 83, 9, 0.28);
}

.hr-id-card__qr-frame {
    display: inline-block;
    padding: 0.45rem;
    border-radius: 0.65rem;
    background: #fff;
    border: 2px solid #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.hr-id-card__qr-frame svg {
    display: block;
    width: 148px;
    height: 148px;
}

.hr-id-card__qr-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #b45309;
    margin: 0.55rem 0 0.1rem;
}

.hr-id-card__qr-hint {
    font-size: 0.65rem;
    color: #a8a29e;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hr-id-card__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 1rem 0.8rem;
    background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%);
    border-top: 1px solid rgba(180, 83, 9, 0.14);
}

.hr-id-card__footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.hr-id-card__footer-grid:has(> :only-child) {
    grid-template-columns: 1fr;
}

.hr-id-card__number {
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(180, 83, 9, 0.12);
    text-align: center;
}

.hr-id-card__number-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #78716c;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.hr-id-card__number-value {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    letter-spacing: 0.02em;
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    unicode-bidi: isolate;
    line-height: 1.25;
}

.hr-id-card__valid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.hr-id-card__valid-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: hr-pulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes hr-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ===== مرفقات عرض الموظف ===== */
.hr-employee-files {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hr-employee-files__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .hr-employee-files__grid { grid-template-columns: 1fr; }
}

.hr-employee-files__card,
.hr-employee-files__docs {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(120, 113, 108, 0.2);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%);
}

.dark .hr-employee-files__card,
.dark .hr-employee-files__docs {
    background: #1c1917;
    border-color: rgba(168, 162, 158, 0.25);
}

.hr-employee-files__label {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.02em;
}

.hr-employee-files__photo,
.hr-employee-files__thumb {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.5),
        0 10px 22px rgba(146, 64, 14, 0.22);
    display: block;
    margin-bottom: 0.75rem;
    background: #fff7ed;
}

.hr-employee-files__thumb {
    border-radius: 0.75rem;
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 140px;
    box-shadow: 0 8px 18px rgba(28, 25, 23, 0.12);
}

.hr-employee-files__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #b45309;
    font-weight: 650;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hr-employee-files__empty {
    margin: 0;
    color: #78716c;
    font-size: 0.875rem;
}

.hr-employee-files__doc-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(168, 162, 158, 0.25);
}

.hr-employee-files__doc-row:last-child { border-bottom: 0; }

.hr-employee-files__value {
    color: #44403c;
    font-size: 0.9rem;
    text-align: end;
    word-break: break-word;
}

.hr-employee-files--open {
    padding: 0.25rem 0;
}

/* ===== صورة التعديل ===== */
.hr-edit-photo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(180, 83, 9, 0.2);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 65%);
}

.dark .hr-edit-photo {
    background: #1c1917;
    border-color: rgba(168, 162, 158, 0.3);
}

.hr-edit-photo__img,
.hr-edit-photo__empty {
    position: relative;
    z-index: 1;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(146, 64, 14, 0.22);
}

.hr-edit-photo__empty {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f59e0b, #b45309);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.hr-edit-photo__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #92400e;
}

.dark .hr-edit-photo__title { color: #fbbf24; }

.hr-edit-photo__hint {
    margin: 0;
    color: #78716c;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== صور Filament (قائمة / عرض) ===== */
.hr-photo-table-cell .fi-image-entry-image,
.hr-photo-table-cell img,
.hr-photo-img--table {
    width: 48px !important;
    height: 48px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    box-shadow:
        0 0 0 2px rgba(245, 158, 11, 0.55),
        0 6px 14px rgba(146, 64, 14, 0.22) !important;
    background: #fff7ed;
}

.hr-photo-infolist .fi-image-entry-image,
.hr-photo-infolist img,
.hr-photo-img {
    border-radius: 999px !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.45),
        0 12px 28px rgba(146, 64, 14, 0.24) !important;
    background: #fff7ed;
}

@keyframes hr-photo-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hr-photo-frame__ring { animation: none; }
}

@media print {
    body * { visibility: hidden; }
    #employee-badge-card,
    #employee-badge-card * { visibility: visible; }
    #employee-badge-card {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        box-shadow: none;
        border: 1px solid #d6d3d1;
    }
    .no-print { display: none !important; }
}

/* ===== لوحة التحكم الرئيسية: بانر الترحيب ===== */
.hr-welcome-widget {
    width: 100%;
}

.hr-welcome-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    width: 100%;
    padding: 1.35rem 1.5rem;
    border-radius: 1.25rem;
    color: #fff;
    background:
        linear-gradient(125deg, #92400e 0%, #b45309 28%, #d97706 62%, #f59e0b 100%);
    box-shadow:
        0 18px 40px -12px rgba(180, 83, 9, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    isolation: isolate;
}

.hr-welcome-banner__glow {
    position: absolute;
    inset: -40% -10% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hr-welcome-banner__glow--secondary {
    inset: auto auto -55% 5%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 70%);
    animation-delay: -3.5s;
}

.hr-welcome-banner__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(115deg, transparent 0%, transparent 22%, #000 70%, #000 100%);
    mask-image: linear-gradient(115deg, transparent 0%, transparent 22%, #000 70%, #000 100%);
}

.hr-welcome-banner__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 0;
}

.hr-welcome-banner__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.hr-welcome-banner__identity-text {
    min-width: 0;
}

.hr-welcome-banner__avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #b45309;
    background: #fff;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        0 0 0 3px rgba(255, 255, 255, 0.35);
}

.hr-welcome-banner__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
}

.hr-welcome-banner__title {
    margin: 0.15rem 0 0;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hr-welcome-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
}

.hr-welcome-banner__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.hr-welcome-banner__meta svg {
    opacity: 0.85;
    flex-shrink: 0;
}

.hr-welcome-banner__meta-subtle {
    opacity: 0.7;
    font-size: 0.72rem;
}

.hr-welcome-banner__ring {
    position: relative;
    z-index: 1;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
}

.hr-welcome-banner__ring-svg {
    position: absolute;
    inset: 0;
    width: 84px;
    height: 84px;
    transform: rotate(-90deg);
}

.hr-welcome-banner__ring-track,
.hr-welcome-banner__ring-progress {
    fill: none;
    stroke-width: 7;
}

.hr-welcome-banner__ring-track {
    stroke: rgba(255, 255, 255, 0.22);
}

.hr-welcome-banner__ring-progress {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: calc(213.6 - (213.6 * var(--hr-progress, 0) / 100));
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
    animation: hr-ring-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hr-welcome-banner__ring-label {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.1;
}

.hr-welcome-banner__ring-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
}

.hr-welcome-banner__ring-caption {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    opacity: 0.9;
}

.hr-welcome-banner__chips {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.hr-welcome-banner__chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.hr-welcome-banner__chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.35);
}

.hr-welcome-banner__chip--alert {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(254, 202, 202, 0.5);
    animation: hr-alert-pulse 2.4s ease-in-out infinite;
}

.hr-welcome-banner__chip-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.18);
}

.hr-welcome-banner__chip-icon svg {
    opacity: 0.95;
}

.hr-welcome-banner__chip-text {
    min-width: 0;
}

.hr-welcome-banner__chip-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.hr-welcome-banner__chip-label {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .hr-welcome-banner__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hr-welcome-banner {
        padding: 1.15rem;
        gap: 1rem;
    }

    .hr-welcome-banner__top {
        align-items: flex-start;
    }

    .hr-welcome-banner__title {
        white-space: normal;
    }

    .hr-welcome-banner__meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .hr-welcome-banner__chips {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== بطاقات الإحصائيات والرسوم البيانية ===== */
.fi-wi-stats-overview .fi-sc-section,
.fi-wi-chart .fi-section,
.hr-dashboard-list .fi-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem !important;
    border: 1px solid rgba(180, 83, 9, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 251, 235, 0.55), rgba(255, 255, 255, 0.92));
    box-shadow: 0 10px 28px -18px rgba(120, 53, 15, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dark .fi-wi-stats-overview .fi-sc-section,
.dark .fi-wi-chart .fi-section,
.dark .hr-dashboard-list .fi-section {
    border-color: rgba(251, 191, 36, 0.12);
    background:
        linear-gradient(180deg, rgba(41, 37, 36, 0.85), rgba(28, 25, 23, 0.95));
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.65);
}

.fi-wi-stats-overview .fi-sc-section::before,
.fi-wi-chart .fi-section::before,
.hr-dashboard-list .fi-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706, #0ea5e9);
    background-size: 200% 100%;
    animation: hr-accent-shine 6s linear infinite;
    opacity: 0.95;
}

.fi-wi-stats-overview .fi-sc-section:hover,
.fi-wi-chart .fi-section:hover,
.hr-dashboard-list .fi-section:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: 0 16px 34px -14px rgba(146, 64, 14, 0.32);
}

.dark .fi-wi-stats-overview .fi-sc-section:hover,
.dark .fi-wi-chart .fi-section:hover,
.dark .hr-dashboard-list .fi-section:hover {
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7);
}

.fi-wi-stats-overview-stat {
    border-radius: 0.95rem !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
}

.fi-wi-stats-overview-stat-value {
    font-weight: 800 !important;
    letter-spacing: -0.015em;
    font-size: 1.55rem !important;
}

.fi-wi-chart .fi-section-header-heading {
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.fi-wi-chart-canvas-ctn {
    padding-top: 0.35rem;
}

.fi-wi-chart-canvas-ctn canvas {
    filter: drop-shadow(0 8px 14px rgba(120, 53, 15, 0.08));
}

/* ===== قوائم لوحة التحكم ===== */
.hr-dashboard-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hr-dashboard-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.45rem;
    border-radius: 0.75rem;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.hr-dashboard-list__item:hover {
    background: rgba(245, 158, 11, 0.08);
    transform: translateX(-2px);
}

.dark .hr-dashboard-list__item:hover {
    background: rgba(245, 158, 11, 0.12);
}

.hr-dashboard-list__avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #f59e0b, #b45309);
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
}

.hr-dashboard-list__avatar--sky {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.hr-dashboard-list__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hr-dashboard-list__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(24 24 27);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .hr-dashboard-list__name {
    color: rgb(250 250 250);
}

.hr-dashboard-list__meta {
    font-size: 0.72rem;
    color: rgb(113 113 122);
}

.dark .hr-dashboard-list__meta {
    color: rgb(161 161 170);
}

.hr-dashboard-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.35rem 0.75rem;
    text-align: center;
    color: rgb(113 113 122);
    font-size: 0.875rem;
}

.dark .hr-dashboard-list__empty {
    color: rgb(161 161 170);
}

/* ===== أنيميشن دخول تدريجي ===== */
@keyframes hr-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hr-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate(-18px, 12px) scale(1.12); opacity: 1; }
}

@keyframes hr-ring-draw {
    from { stroke-dashoffset: 213.6; }
}

@keyframes hr-accent-shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes hr-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 202, 202, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(254, 202, 202, 0); }
}

.fi-wi-widget {
    animation: hr-fade-in-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fi-wi-widget:nth-of-type(1) { animation-delay: 0.02s; }
.fi-wi-widget:nth-of-type(2) { animation-delay: 0.07s; }
.fi-wi-widget:nth-of-type(3) { animation-delay: 0.12s; }
.fi-wi-widget:nth-of-type(4) { animation-delay: 0.17s; }
.fi-wi-widget:nth-of-type(5) { animation-delay: 0.22s; }
.fi-wi-widget:nth-of-type(6) { animation-delay: 0.27s; }
.fi-wi-widget:nth-of-type(7) { animation-delay: 0.32s; }
.fi-wi-widget:nth-of-type(8) { animation-delay: 0.37s; }
.fi-wi-widget:nth-of-type(9) { animation-delay: 0.42s; }
.fi-wi-widget:nth-of-type(10) { animation-delay: 0.47s; }
.fi-wi-widget:nth-of-type(n + 11) { animation-delay: 0.52s; }

.hr-welcome-banner__glow {
    animation: hr-glow-drift 7s ease-in-out infinite;
}

.hr-welcome-banner__avatar {
    animation: hr-fade-in-up 0.5s ease both;
}

.hr-welcome-banner__ring {
    animation: hr-fade-in-up 0.55s ease both;
    animation-delay: 0.12s;
}

.hr-welcome-banner__chips .hr-welcome-banner__chip {
    animation: hr-fade-in-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hr-welcome-banner__chips .hr-welcome-banner__chip:nth-child(1) { animation-delay: 0.16s; }
.hr-welcome-banner__chips .hr-welcome-banner__chip:nth-child(2) { animation-delay: 0.22s; }
.hr-welcome-banner__chips .hr-welcome-banner__chip:nth-child(3) { animation-delay: 0.28s; }
.hr-welcome-banner__chips .hr-welcome-banner__chip:nth-child(4) { animation-delay: 0.34s; }

/* هيكل الصفحة الرئيسية */
.fi-page-dashboard .fi-page-content,
.fi-dashboard-page .fi-page-content {
    gap: 1.15rem;
}

.fi-wi-widget .fi-loading-section {
    border-radius: 1.1rem;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .fi-wi-widget,
    .hr-welcome-banner__glow,
    .hr-welcome-banner__avatar,
    .hr-welcome-banner__ring,
    .hr-welcome-banner__ring-progress,
    .hr-welcome-banner__chips .hr-welcome-banner__chip,
    .hr-welcome-banner__chip--alert,
    .fi-wi-stats-overview .fi-sc-section::before,
    .fi-wi-chart .fi-section::before,
    .hr-dashboard-list .fi-section::before {
        animation: none !important;
    }

    .fi-wi-stats-overview .fi-sc-section:hover,
    .fi-wi-chart .fi-section:hover,
    .hr-dashboard-list .fi-section:hover,
    .hr-welcome-banner__chip:hover {
        transform: none;
    }
}

/* ===== صفحة تسجيل الدخول: تخطيط مقسوم حديث ===== */
body.hr-login-body {
    min-height: 100%;
    background: #0c0a09;
}

body.hr-login-body #nprogress {
    display: none !important;
}

body.hr-login-body .hr-admin-footer {
    display: none;
}

body.hr-login-body .fi-simple-layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 0;
    background: #0c0a09;
}

body.hr-login-body .fi-simple-main-ctn {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.hr-login-body .fi-simple-main,
body.hr-login-body .fi-simple-main.fi-width-lg,
body.hr-login-body .fi-simple-main.fi-width-md,
body.hr-login-body .fi-simple-main.fi-width-xl {
    display: flex;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.hr-login-body .fi-simple-page,
body.hr-login-body .fi-simple-page-content {
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hr-login-page {
    display: flex;
    width: 100%;
    min-height: 100dvh;
}

.hr-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    width: 100%;
    min-height: 100dvh;
}

.hr-login-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.15rem;
    padding: 2.4rem 3.2rem 2rem;
    color: #fff7ed;
    background:
        radial-gradient(900px 520px at 12% -10%, rgba(251, 191, 36, 0.28), transparent 55%),
        radial-gradient(700px 480px at 110% 80%, rgba(180, 83, 9, 0.35), transparent 50%),
        linear-gradient(165deg, #1c1917 0%, #0c0a09 48%, #292524 100%);
}

.hr-login-showcase__glow {
    pointer-events: none;
    position: absolute;
    width: 22rem;
    height: 22rem;
    inset-inline-start: -4rem;
    top: 18%;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 68%);
    filter: blur(8px);
    animation: hr-login-float 9s ease-in-out infinite;
}

.hr-login-showcase__grid {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 247, 237, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 247, 237, 0.09) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 35%, transparent 78%);
}

.hr-login-showcase__watermark {
    pointer-events: none;
    position: absolute;
    inset-inline-end: -0.4rem;
    bottom: -1.4rem;
    font-size: 18rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
    color: rgba(255, 247, 237, 0.045);
    user-select: none;
}

.hr-login-showcase__top,
.hr-login-showcase__brand,
.hr-login-showcase__title,
.hr-login-showcase__body,
.hr-login-features,
.hr-login-showcase__foot {
    position: relative;
    z-index: 1;
}

.hr-login-showcase__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.hr-login-showcase__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.hr-login-showcase__brand img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.05rem;
    box-shadow: 0 18px 36px -18px rgba(251, 191, 36, 0.8);
}

.hr-login-showcase__brand strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
}

.hr-login-showcase__brand span {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.82rem;
    color: #d6d3d1;
}

.hr-login-showcase__title {
    max-width: 16ch;
    margin: 0.4rem 0 0;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.hr-login-showcase__body {
    max-width: 34rem;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #e7e5e4;
}

.hr-login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.hr-login-features li {
    padding: 0.48rem 0.82rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 247, 237, 0.12);
    backdrop-filter: blur(10px);
}

.hr-login-showcase__foot {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    font-size: 0.78rem;
    color: #a8a29e;
}

.hr-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.5rem;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(251, 191, 36, 0.16), transparent 55%),
        linear-gradient(180deg, #fffbeb 0%, #f8fafc 100%);
}

.hr-login-card {
    width: min(100%, 26.5rem);
    min-height: 32rem;
    padding: 2.15rem 1.85rem 1.45rem;
    border-radius: 1.7rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(180, 83, 9, 0.12);
    box-shadow:
        0 30px 70px -34px rgba(28, 25, 23, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(18px);
}

.hr-login-form-head {
    margin-bottom: 1.35rem;
}

.hr-login-form-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.hr-login-form-brand img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
}

.hr-login-form-brand strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: #1c1917;
}

.hr-login-form-brand span {
    display: block;
    font-size: 0.75rem;
    color: #78716c;
}

.hr-login-form-head h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1c1917;
}

.hr-login-form-head p {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #78716c;
}

.hr-login-page .fi-simple-header,
.hr-login-page .fi-logo {
    display: none !important;
}

.hr-login-page .fi-sc-form {
    gap: 0.95rem;
}

.hr-login-page .fi-fo-field-label,
.hr-login-page .fi-fo-field-wrp-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #44403c;
}

.hr-login-page .fi-input-wrp {
    border-radius: 0.95rem !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.hr-login-page .fi-input {
    min-height: 2.7rem;
}

.hr-login-page .fi-btn {
    min-height: 2.85rem;
    border-radius: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px -16px rgba(146, 64, 14, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hr-login-page .fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -14px rgba(146, 64, 14, 0.9);
}

.hr-login-secure {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: #a8a29e;
}

.hr-login-stage--wait,
.hr-login-stage--error {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 28rem;
    gap: 0.55rem;
    padding: 1.25rem 0.35rem;
}

.hr-login-stage--error {
    display: flex;
}

.hr-login-stage__title {
    margin: 0.85rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgb(41 37 36);
}

.hr-login-stage__body {
    margin: 0;
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgb(87 83 78);
}

.hr-login-stage__hint {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: rgb(120 113 108);
}

.hr-login-wait-mark {
    position: relative;
    width: 6.25rem;
    height: 6.25rem;
    display: grid;
    place-items: center;
}

.hr-login-wait-mark img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 24px -12px rgba(146, 64, 14, 0.7);
}

.hr-login-wait-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 3px solid rgba(251, 191, 36, 0.22);
    border-top-color: #d97706;
    animation: hr-login-spin 0.9s linear infinite;
}

.hr-login-wait-ring--slow {
    inset: 8px;
    border-width: 2px;
    border-color: rgba(245, 158, 11, 0.12);
    border-bottom-color: #f59e0b;
    animation-duration: 1.45s;
    animation-direction: reverse;
}

.hr-login-dots {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.hr-login-dots span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    background: #d97706;
    animation: hr-login-pulse 1.1s ease-in-out infinite;
}

.hr-login-dots span:nth-child(2) { animation-delay: 0.15s; }
.hr-login-dots span:nth-child(3) { animation-delay: 0.3s; }

.hr-login-error-mark {
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    color: #e11d48;
    background: radial-gradient(circle at 30% 25%, #fff1f2, #ffe4e6);
    box-shadow: 0 12px 28px -16px rgba(225, 29, 72, 0.7);
    animation: hr-login-pop-shake 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hr-login-error-mark svg {
    width: 2.4rem;
    height: 2.4rem;
}

.hr-login-stage--error .hr-login-stage__title {
    color: #9f1239;
}

.hr-login-progress {
    width: min(100%, 14rem);
    height: 0.28rem;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 9999px;
    background: rgba(244, 63, 94, 0.12);
}

.hr-login-progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: right center;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb7185, #e11d48);
    animation: hr-login-progress 2.8s linear forwards;
}

[dir="ltr"] .hr-login-progress__bar {
    transform-origin: left center;
}

.hr-login-error-back {
    margin-top: 0.85rem;
    padding: 0.55rem 1.15rem;
    border: 0;
    border-radius: 9999px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9f1239;
    background: rgba(255, 228, 230, 0.9);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.hr-login-error-back:hover {
    background: #ffe4e6;
    transform: translateY(-1px);
}

.hr-login-page.is-waiting [wire\:loading\.remove] {
    display: none !important;
}

.hr-login-page.is-waiting .hr-login-stage--wait {
    display: flex !important;
}

@keyframes hr-login-spin {
    to { transform: rotate(360deg); }
}

@keyframes hr-login-pulse {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); }
    40% { opacity: 1; transform: scale(1); }
}

@keyframes hr-login-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 14px, 0); }
}

@keyframes hr-login-pop-shake {
    0% { transform: scale(0.6); opacity: 0; }
    55% { transform: scale(1.08); opacity: 1; }
    70% { transform: translateX(-4px); }
    82% { transform: translateX(4px); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes hr-login-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 960px) {
    .hr-login-shell {
        grid-template-columns: 1fr;
    }

    .hr-login-showcase {
        min-height: auto;
        padding: 1.25rem 1.35rem 1.1rem;
        gap: 0.55rem;
    }

    .hr-login-showcase__title,
    .hr-login-showcase__body,
    .hr-login-features,
    .hr-login-showcase__foot,
    .hr-login-showcase__watermark,
    .hr-login-showcase__glow {
        display: none;
    }

    .hr-login-form-brand {
        display: flex;
    }

    .hr-login-panel {
        align-items: flex-start;
        padding: 1.1rem 1rem 2rem;
    }

    .hr-login-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hr-login-showcase__glow,
    .hr-login-wait-ring,
    .hr-login-dots span,
    .hr-login-error-mark,
    .hr-login-progress__bar {
        animation: none !important;
    }
}

/*
 * أرقام لاتينية (0123456789) حتى مع واجهة عربية.
 * خطوط مثل Almarai تستبدل الأرقام عبر locl عند lang=ar — نعطّل ذلك صراحة.
 */
html, body, .fi-body, .fi-simple-layout {
    -webkit-font-feature-settings: "locl" 0, "tnum" 1, "lnum" 1;
    font-feature-settings: "locl" 0, "tnum" 1, "lnum" 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.hr-latin-nums,
.fi-ta-text,
.fi-in-text,
.fi-input,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-pagination,
td, th {
    font-variant-numeric: lining-nums tabular-nums;
    -webkit-font-feature-settings: "locl" 0, "tnum" 1, "lnum" 1;
    font-feature-settings: "locl" 0, "tnum" 1, "lnum" 1;
}

.hr-latin-nums,
input[inputmode="numeric"],
input[inputmode="decimal"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
    letter-spacing: 0.02em;
}



