/**
 * Admin panel layout overrides (no Vite build required).
 * Aligned with docs/UI-UX-STANDARDS.md & DASHBOARD-DESIGN.md — full width, ERP density, primary blue.
 */
.fi-body .fi-main {
    width: 100%;
    max-width: none;
    padding-inline: 1rem;
}

@media (min-width: 768px) {
    .fi-body .fi-main {
        padding-inline: 1.5rem; /* 24px */
    }
}

/* Dashboard filter bar */
.fi-page-dashboard .fi-schemas .fi-section {
    margin-bottom: 0.5rem;
}

.fi-page-dashboard .fi-wi {
    align-items: stretch;
    gap: 1rem;
}

/* Dashboard: Project Management + Attendance — equal card height */
.fi-body .fi-wi-widget:has(.fi-wi-chart),
.fi-body .fi-wi-widget:has(.fi-hr-attendance-widget) {
    display: flex;
    flex-direction: column;
}

.fi-body .fi-wi-chart,
.fi-body .fi-hr-attendance-widget {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100%;
}

.fi-body .fi-wi-chart .fi-section,
.fi-body .fi-hr-attendance-widget .fi-section {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100%;
}

.fi-body .fi-wi-chart .fi-section-content-ctn,
.fi-body .fi-hr-attendance-widget .fi-section-content-ctn {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.fi-body .fi-wi-chart .fi-section-content,
.fi-body .fi-hr-attendance-widget .fi-section-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* KPI stat cards — consistent card height on dashboard */
.fi-page-dashboard .fi-wi-stats-overview .fi-wi-stats-overview-stat {
    height: 100%;
}

/* ── App launcher navigation (SinnoERP mega-menu pattern) ── */

.fi-topbar-ctn {
    display: flex;
    flex-direction: column;
}

.fi-hr-brand-bar {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2rem;
    padding: 0.375rem 1rem;
    background: #1e3a8a;
    color: #fff;
}

.fi-hr-brand-bar__title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fi-topbar .fi-topbar-nav-groups {
    display: none !important;
}

.fi-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.fi-hr-app-launcher {
    position: relative;
    flex-shrink: 0;
}

.fi-hr-app-launcher__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(55 65 81);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.fi-hr-app-launcher__trigger:hover,
.fi-hr-app-launcher__trigger:focus-visible {
    background: rgb(243 244 246);
    outline: none;
}

.dark .fi-hr-app-launcher__trigger {
    color: rgb(229 231 235);
}

.dark .fi-hr-app-launcher__trigger:hover,
.dark .fi-hr-app-launcher__trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.fi-hr-app-launcher__grid-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.fi-hr-app-launcher__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 50;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(28rem, calc(100vh - 8rem));
    overflow-y: auto;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    padding: 0.75rem;
}

.dark .fi-hr-app-launcher__panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-app-launcher__panel-enter {
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.fi-hr-app-launcher__panel-enter-start,
.fi-hr-app-launcher__panel-leave-end {
    opacity: 0;
    transform: translateY(-0.25rem);
}

.fi-hr-app-launcher__panel-enter-end,
.fi-hr-app-launcher__panel-leave-start {
    opacity: 1;
    transform: translateY(0);
}

.fi-hr-app-launcher__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
}

.fi-hr-app-launcher__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.375rem;
    border-radius: 0.625rem;
    text-decoration: none;
    color: rgb(17 24 39);
    transition: background-color 0.15s ease;
}

.fi-hr-app-launcher__item:hover {
    background: rgb(243 244 246);
}

.fi-hr-app-launcher__item--active {
    background: rgb(243 244 246);
}

.dark .fi-hr-app-launcher__item {
    color: rgb(255 255 255);
}

.dark .fi-hr-app-launcher__item:hover,
.dark .fi-hr-app-launcher__item--active {
    background: rgba(255, 255, 255, 0.08);
}

.fi-hr-app-launcher__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--module-color) 0%,
        var(--module-accent) 100%
    );
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.fi-hr-app-launcher__icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.fi-hr-app-launcher__label {
    max-width: 100%;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
}

.fi-hr-module-tabs {
    display: none;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    margin-inline-start: 0.25rem;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .fi-hr-module-tabs {
        display: flex;
    }
}

.fi-hr-module-tabs__link {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(107 114 128);
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.fi-hr-module-tabs__link:hover {
    color: rgb(37 99 235);
    background: rgb(239 246 255);
}

.fi-hr-module-tabs__module {
    flex-shrink: 0;
    margin-right: 0.5rem;
    padding-right: 0.75rem;
    border-right: 1px solid rgb(229 231 235);
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgb(17 24 39);
    white-space: nowrap;
}

.dark .fi-hr-module-tabs__module {
    border-right-color: rgb(55 65 81);
    color: rgb(243 244 246);
}

.fi-hr-module-tabs__link--active {
    color: rgb(29 78 216);
    background: rgb(239 246 255);
    font-weight: 600;
}

.dark .fi-hr-module-tabs__link {
    color: rgb(156 163 175);
}

.dark .fi-hr-module-tabs__link:hover,
.dark .fi-hr-module-tabs__link--active {
    color: rgb(147 197 253);
    background: rgba(59, 130, 246, 0.15);
}

/* ── Plugins page (SinnoERP card grid) ── */

.fi-hr-plugins__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fi-hr-plugins__search {
    position: relative;
    flex: 1;
    min-width: min(100%, 18rem);
    max-width: 24rem;
}

.fi-hr-plugins__search-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: rgb(156 163 175);
    transform: translateY(-50%);
    pointer-events: none;
}

.fi-hr-plugins__search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
    color: rgb(17 24 39);
}

.fi-hr-plugins__search-input:focus {
    outline: 2px solid rgb(59 130 246);
    outline-offset: 0;
    border-color: rgb(59 130 246);
}

.dark .fi-hr-plugins__search-input {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
    color: #fff;
}

.fi-hr-plugins__count {
    margin: 0;
    font-size: 0.8125rem;
    color: rgb(107 114 128);
}

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

@media (min-width: 768px) {
    .fi-hr-plugins__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .fi-hr-plugins__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fi-hr-plugins__card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
    min-height: 10rem;
}

.dark .fi-hr-plugins__card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-plugins__card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Ensure Flatpickr / Filament datepicker dropdowns sit above other UI layers and are clickable */
.flatpickr-calendar,
.flatpickr-calendar * {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* Position as fixed to avoid being clipped by overflow-hidden ancestors */
.flatpickr-calendar {
    position: fixed !important;
}

/* Make form/section containers allow visible overflow so calendar isn't clipped */
.fi-schemas .fi-section,
.fi-schemas .fi-section-content-ctn,
.fi-schemas .fi-section-content,
.fi-forms .fi-section,
.fi-forms .fi-section-content-ctn,
.fi-forms .fi-section-content {
    overflow: visible !important;
}

/* Remove transform on containers that may create a new stacking context and clip fixed elements */
.fi-schemas,
.fi-forms,
.fi-section,
.fi-section-content-ctn {
    transform: none !important;
}

.fi-hr-plugins__card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--module-color) 0%,
        var(--module-accent) 100%
    );
}

.fi-hr-plugins__card-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.fi-hr-plugins__card-heading {
    min-width: 0;
}

.fi-hr-plugins__card-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgb(17 24 39);
}

.dark .fi-hr-plugins__card-title {
    color: #fff;
}

.fi-hr-plugins__card-link {
    color: inherit;
    text-decoration: none;
}

.fi-hr-plugins__card-link:hover {
    color: rgb(37 99 235);
}

.fi-hr-plugins__card-version {
    font-size: 0.75rem;
    color: rgb(107 114 128);
}

.fi-hr-plugins__card-description {
    margin: 0;
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgb(107 114 128);
}

.dark .fi-hr-plugins__card-description {
    color: rgb(156 163 175);
}

.fi-hr-plugins__card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.fi-hr-plugins__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.fi-hr-plugins__badge--installed {
    background: rgb(220 252 231);
    color: rgb(21 128 61);
}

.fi-hr-plugins__badge--available {
    background: rgb(243 244 246);
    color: rgb(75 85 99);
}

.fi-hr-plugins__badge--dependencies {
    background: rgb(254 243 199);
    color: rgb(180 83 9);
}

.dark .fi-hr-plugins__badge--installed {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

.dark .fi-hr-plugins__badge--available {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(209 213 219);
}

.dark .fi-hr-plugins__badge--dependencies {
    background: rgba(251, 191, 36, 0.2);
    color: rgb(253 224 71);
}

/* Employees module — card grid list */
.fi-ta-content-grid .fi-hr-employees__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-ta-content-grid .fi-hr-employees__card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-employees__card-top {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.fi-hr-employees__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    object-fit: cover;
    background: rgb(243 244 246);
}

.fi-hr-employees__name {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgb(17 24 39);
}

.dark .fi-hr-employees__name {
    color: #fff;
}

.fi-hr-employees__meta {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fi-hr-employees__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgb(75 85 99);
    word-break: break-word;
}

.dark .fi-hr-employees__meta-item {
    color: rgb(156 163 175);
}

.fi-hr-employees__meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: rgb(107 114 128);
}

.fi-hr-employees__badge {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.fi-hr-employees__badge--employee {
    background: rgb(252 231 243);
    color: rgb(190 24 93);
}

.fi-hr-employees__badge--admin {
    background: rgb(243 244 246);
    color: rgb(75 85 99);
}

.fi-hr-employees__badge--trainer {
    background: rgb(219 234 254);
    color: rgb(29 78 216);
}

.dark .fi-hr-employees__badge--employee {
    background: rgba(236, 72, 153, 0.2);
    color: rgb(244 114 182);
}

.dark .fi-hr-employees__badge--admin {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(209 213 219);
}

.dark .fi-hr-employees__badge--trainer {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(147 197 253);
}

.fi-hr-employees__plafond {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    background: rgb(249 250 251);
}

.dark .fi-hr-employees__plafond {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(31 41 55);
}

.fi-hr-employees__plafond-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.125rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.fi-hr-employees__plafond-row dt {
    color: rgb(107 114 128);
}

.dark .fi-hr-employees__plafond-row dt {
    color: rgb(156 163 175);
}

.fi-hr-employees__plafond-row dd {
    margin: 0;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .fi-hr-employees__plafond-row dd {
    color: #fff;
}

.fi-hr-employees__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(243 244 246);
}

.dark .fi-hr-employees__actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fi-hr-employees__action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(55 65 81);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fi-hr-employees__action:hover {
    color: rgb(37 99 235);
}

.fi-hr-employees__action--danger {
    color: rgb(220 38 38);
}

.fi-hr-employees__action--danger:hover {
    color: rgb(185 28 28);
}

.fi-hr-employees__action-icon {
    width: 1rem;
    height: 1rem;
}

.fi-hr-employees__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 16rem;
    padding: 2rem;
    border: 1px dashed rgb(229 231 235);
    border-radius: 0.75rem;
    text-align: center;
}

.dark .fi-hr-employees__empty {
    border-color: rgba(255, 255, 255, 0.12);
}

.fi-hr-employees__empty-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgb(156 163 175);
}

.fi-hr-employees__empty-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .fi-hr-employees__empty-title {
    color: #fff;
}

.fi-hr-employees__empty-text {
    margin: 0;
    max-width: 28rem;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}

/* Departments module — card grid list */
.fi-ta-content-grid .fi-hr-departments__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-ta-content-grid .fi-hr-departments__card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-departments__card-top {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.fi-hr-departments__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    object-fit: cover;
    background: rgb(243 244 246);
}

.fi-hr-departments__name {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgb(17 24 39);
}

.dark .fi-hr-departments__name {
    color: #fff;
}

.fi-hr-departments__meta {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.fi-hr-departments__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgb(75 85 99);
    word-break: break-word;
}

.dark .fi-hr-departments__meta-item {
    color: rgb(156 163 175);
}

.fi-hr-departments__meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: rgb(107 114 128);
}

.fi-hr-departments__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(243 244 246);
}

.dark .fi-hr-departments__actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fi-hr-departments__action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(55 65 81);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fi-hr-departments__action:hover {
    color: rgb(37 99 235);
}

.fi-hr-departments__action--danger {
    color: rgb(220 38 38);
}

.fi-hr-departments__action--danger:hover {
    color: rgb(185 28 28);
}

.fi-hr-departments__action-icon {
    width: 1rem;
    height: 1rem;
}

/* Reportings — sidebar layout */
.fi-hr-reportings {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .fi-hr-reportings {
        grid-template-columns: 1fr;
    }
}

.fi-hr-reportings__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-hr-reportings__sidebar {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-reportings__sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    text-decoration: none;
}

.fi-hr-reportings__sidebar-link:hover {
    background: rgb(243 244 246);
    color: rgb(37 99 235);
}

.fi-hr-reportings__sidebar-link--active {
    background: rgb(239 246 255);
    color: rgb(37 99 235);
}

.dark .fi-hr-reportings__sidebar-link {
    color: rgb(209 213 219);
}

.dark .fi-hr-reportings__sidebar-link--active {
    background: rgba(59, 130, 246, 0.15);
    color: rgb(147 197 253);
}

.fi-hr-reportings__sidebar-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.fi-hr-reportings__content {
    min-width: 0;
}

/* Skills proficiency progress bar */
.fi-hr-skill-proficiency__track {
    position: relative;
    height: 1.5rem;
    border-radius: 9999px;
    background: rgb(243 244 246);
    overflow: hidden;
}

.dark .fi-hr-skill-proficiency__track {
    background: rgba(255, 255, 255, 0.08);
}

.fi-hr-skill-proficiency__bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 9999px;
    background: rgb(37 99 235);
}

.fi-hr-skill-proficiency__label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .fi-hr-skill-proficiency__label {
    color: #fff;
}

/* Skills reporting table */
.fi-hr-reportings__content .fi-ta-table {
    border-radius: 0.75rem;
}

.fi-hr-reportings__content .fi-ta-group-header {
    font-weight: 600;
}

.fi-hr-skill-level {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
}

.fi-hr-skill-level--expert {
    background: rgb(219 234 254);
    color: rgb(29 78 216);
}

.fi-hr-skill-level--outlined {
    border: 1px solid rgb(209 213 219);
    background: #fff;
    color: rgb(17 24 39);
}

.dark .fi-hr-skill-level--expert {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(147 197 253);
}

.dark .fi-hr-skill-level--outlined {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgb(229 231 235);
}

.fi-hr-skill-level--empty,
.fi-hr-skill-type--empty {
    color: rgb(156 163 175);
    font-size: 0.875rem;
}

.fi-hr-skill-type {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: rgb(55 65 81);
    background: #fff;
    white-space: nowrap;
}

.dark .fi-hr-skill-type {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgb(209 213 219);
}

.fi-hr-reportings__content .fi-hr-skill-proficiency__track {
    min-width: 8rem;
    max-width: 12rem;
}

.fi-hr-reportings__content .fi-hr-skill-proficiency__label {
    color: rgb(255 255 255);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.fi-hr-reportings__content .fi-hr-skill-proficiency__bar {
    background: rgb(59 130 246);
}

/* Configurations — sidebar layout */
.fi-hr-configurations {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .fi-hr-configurations {
        grid-template-columns: 1fr;
    }
}

.fi-hr-configurations__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-hr-configurations__sidebar {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.fi-hr-configurations__section-title {
    margin: 0 0 0.25rem;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(107 114 128);
}

.fi-hr-configurations__section-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fi-hr-configurations__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(55 65 81);
    text-decoration: none;
}

.fi-hr-configurations__link:hover {
    background: rgb(243 244 246);
    color: rgb(37 99 235);
}

.fi-hr-configurations__link--active {
    background: rgb(239 246 255);
    color: rgb(37 99 235);
}

.dark .fi-hr-configurations__link {
    color: rgb(209 213 219);
}

.dark .fi-hr-configurations__link--active {
    background: rgba(59, 130, 246, 0.15);
    color: rgb(147 197 253);
}

.fi-hr-configurations__link-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.fi-hr-configurations__content {
    min-width: 0;
}

.fi-hr-configurations__content .fi-ta-ctn {
    border-radius: 0.75rem;
}

/* ── Recruitments module (applications + configuration) ── */

.fi-hr-recruitments {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .fi-hr-recruitments {
        grid-template-columns: 14rem minmax(0, 1fr);
        align-items: start;
    }
}

.fi-hr-recruitments__sidebar {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem;
}

.dark .fi-hr-recruitments__sidebar {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-hr-recruitments__sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fi-hr-recruitments__sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(75 85 99);
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.fi-hr-recruitments__sidebar-link:hover {
    color: rgb(37 99 235);
    background: rgb(239 246 255);
}

.fi-hr-recruitments__sidebar-link--active {
    color: rgb(29 78 216);
    background: rgb(243 244 246);
    font-weight: 600;
}

.dark .fi-hr-recruitments__sidebar-link {
    color: rgb(156 163 175);
}

.dark .fi-hr-recruitments__sidebar-link--active {
    color: rgb(147 197 253);
    background: rgba(59, 130, 246, 0.12);
}

.fi-hr-recruitments__sidebar-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.fi-hr-recruitments__content {
    min-width: 0;
}

.fi-hr-recruitments__content .fi-ta-ctn {
    border-radius: 0.75rem;
}

.fi-ta-content-grid .fi-hr-recruitments__card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-ta-content-grid .fi-hr-recruitments__card {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-hr-recruitments__card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

.dark .fi-hr-recruitments__card-title {
    color: rgb(243 244 246);
}

.fi-hr-recruitments__card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fi-hr-recruitments__card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgb(107 114 128);
}

.fi-hr-recruitments__card-meta-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.fi-hr-recruitments__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.fi-hr-recruitments__applications-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.875rem;
    border-radius: 0.375rem;
    background: rgb(37 99 235);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.fi-hr-recruitments__applications-btn:hover {
    background: rgb(29 78 216);
    color: #fff;
}

.fi-hr-recruitments__card-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: rgb(107 114 128);
    cursor: pointer;
    text-decoration: none;
}

.fi-hr-recruitments__card-menu-btn:hover {
    background: rgb(243 244 246);
    color: rgb(55 65 81);
}

.fi-hr-recruitments__card-menu-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Attendance module (my attendance + analysis cards) ── */

.fi-hr-attendance {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .fi-hr-attendance {
        grid-template-columns: 14rem minmax(0, 1fr);
        align-items: start;
    }
}

.fi-hr-attendance__sidebar {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem;
}

.dark .fi-hr-attendance__sidebar {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-hr-attendance__sidebar-title {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(107 114 128);
}

.fi-hr-attendance__sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fi-hr-attendance__sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(75 85 99);
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.fi-hr-attendance__sidebar-link:hover {
    color: rgb(37 99 235);
    background: rgb(239 246 255);
}

.fi-hr-attendance__sidebar-link--active {
    color: rgb(29 78 216);
    background: rgb(243 244 246);
    font-weight: 600;
}

.dark .fi-hr-attendance__sidebar-link--active {
    color: rgb(147 197 253);
    background: rgba(59, 130, 246, 0.12);
}

.fi-hr-attendance__sidebar-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.fi-hr-attendance__content {
    min-width: 0;
}

.fi-hr-attendance__analysis-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgb(55 65 81);
}

.dark .fi-hr-attendance__analysis-title {
    color: rgb(209 213 219);
}

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

@media (min-width: 768px) {
    .fi-hr-attendance__analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .fi-hr-attendance__analysis-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fi-hr-attendance__analysis-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-height: 7.5rem;
    padding: 1rem 1.125rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
}

.dark .fi-hr-attendance__analysis-card {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-hr-attendance__analysis-card-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(107 114 128);
}

.fi-hr-attendance__analysis-card-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: rgb(17 24 39);
}

.dark .fi-hr-attendance__analysis-card-value {
    color: rgb(243 244 246);
}

.fi-hr-attendance__analysis-card-footer {
    margin: auto 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(220 38 38);
}

.fi-hr-attendance__analysis-card-footer--muted {
    color: rgb(107 114 128);
}

.dark .fi-hr-attendance__analysis-card-footer--muted {
    color: rgb(156 163 175);
}

.fi-hr-attendance__summary-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .fi-hr-attendance__summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fi-hr-attendance__calendar {
    margin-top: 1.25rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.dark .fi-hr-attendance__calendar {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-hr-attendance__calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .fi-hr-attendance__calendar-toolbar {
    border-bottom-color: rgb(55 65 81);
}

.fi-hr-attendance__calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fi-hr-attendance__calendar-nav-group {
    display: inline-flex;
    border: 1px solid rgb(37 99 235);
    border-radius: 0.375rem;
    overflow: hidden;
}

.fi-hr-attendance__calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgb(37 99 235);
    color: #fff;
    cursor: pointer;
}

.fi-hr-attendance__calendar-nav-btn + .fi-hr-attendance__calendar-nav-btn {
    border-left: 1px solid rgb(29 78 216);
}

.fi-hr-attendance__calendar-nav-btn:hover {
    background: rgb(29 78 216);
}

.fi-hr-attendance__calendar-nav-icon {
    width: 1rem;
    height: 1rem;
}

.fi-hr-attendance__calendar-today-btn {
    padding: 0.4375rem 0.875rem;
    border: 1px solid rgb(37 99 235);
    border-radius: 0.375rem;
    background: rgb(37 99 235);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.fi-hr-attendance__calendar-today-btn:hover {
    background: rgb(29 78 216);
}

.fi-hr-attendance__calendar-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

.dark .fi-hr-attendance__calendar-title {
    color: rgb(243 244 246);
}

.fi-hr-attendance__calendar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fi-hr-attendance__calendar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgb(37 99 235);
    border-radius: 0.375rem;
    background: rgb(37 99 235);
    color: #fff;
    cursor: pointer;
}

.fi-hr-attendance__calendar-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: 0.375rem;
    background: rgb(22 163 74);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.fi-hr-attendance__calendar-new-btn:hover {
    background: rgb(21 128 61);
}

.fi-hr-attendance__calendar-action-icon {
    width: 1rem;
    height: 1rem;
}

.fi-hr-attendance__calendar-view-toggle {
    display: inline-flex;
    border: 1px solid rgb(37 99 235);
    border-radius: 0.375rem;
    overflow: hidden;
}

.fi-hr-attendance__calendar-view-btn {
    padding: 0.4375rem 0.75rem;
    border: none;
    background: #fff;
    color: rgb(37 99 235);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.fi-hr-attendance__calendar-view-btn + .fi-hr-attendance__calendar-view-btn {
    border-left: 1px solid rgb(37 99 235);
}

.fi-hr-attendance__calendar-view-btn--active {
    background: rgb(37 99 235);
    color: #fff;
}

.dark .fi-hr-attendance__calendar-view-btn {
    background: rgb(17 24 39);
    color: rgb(147 197 253);
}

.dark .fi-hr-attendance__calendar-view-btn--active {
    background: rgb(37 99 235);
    color: #fff;
}

.fi-hr-attendance__calendar-grid {
    padding: 0.75rem 1rem 1rem;
}

.fi-hr-attendance__calendar-weekdays,
.fi-hr-attendance__calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fi-hr-attendance__calendar-weekday {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(107 114 128);
}

.fi-hr-attendance__calendar-weekday--weekend {
    background: rgb(249 250 251);
}

.dark .fi-hr-attendance__calendar-weekday--weekend {
    background: rgb(31 41 55);
}

.fi-hr-attendance__calendar-day {
    min-height: 5.5rem;
    padding: 0.5rem;
    border: 1px solid rgb(243 244 246);
    background: #fff;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    cursor: pointer;
}

.fi-hr-attendance__calendar-day:hover {
    background: rgb(249 250 251);
}

.fi-hr-attendance__calendar-day--weekend {
    background: rgb(249 250 251);
}

.fi-hr-attendance__calendar-day--outside {
    color: rgb(156 163 175);
}

.fi-hr-attendance__calendar-day--today,
.fi-hr-attendance__calendar-day--selected {
    background: rgb(237 233 254);
}

.dark .fi-hr-attendance__calendar-day {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
    color: rgb(209 213 219);
}

.dark .fi-hr-attendance__calendar-day--weekend {
    background: rgb(31 41 55);
}

.dark .fi-hr-attendance__calendar-day--today,
.dark .fi-hr-attendance__calendar-day--selected {
    background: rgba(139, 92, 246, 0.25);
}

.fi-hr-attendance__calendar-placeholder {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}
