/* Job Dashboard */
.job-dashboard {
    --jd-blue: #3b82f6;
    --jd-blue-dark: #1e40af;
    --jd-green: #16a34a;
    --jd-orange: #ea580c;
    --jd-red: #dc2626;
    --jd-purple: #7c3aed;
    --jd-slate: #475569;
    --jd-border: #e5e7eb;
    --jd-muted: #6b7280;
    --jd-bg: #f3f4f6;
    --jd-radius: 10px;
    --jd-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.job-dashboard .jd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-radius: var(--jd-radius);
    padding: 18px 22px;
    color: #fff;
    box-shadow: var(--jd-shadow);
}

.job-dashboard .jd-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.job-dashboard .jd-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(147, 197, 253, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #dbeafe;
    flex-shrink: 0;
}

.job-dashboard .jd-header__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.job-dashboard .jd-header__title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.job-dashboard .jd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.job-dashboard .jd-badge--success {
    background: #bbf7d0;
    color: #166534;
}

.job-dashboard .jd-badge--warning {
    background: #fde68a;
    color: #92400e;
}

.job-dashboard .jd-badge--danger {
    background: #fecaca;
    color: #991b1b;
}

.job-dashboard .jd-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.job-dashboard .jd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.job-dashboard .jd-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: inherit;
}

.job-dashboard .jd-btn--light {
    background: #fff;
    color: #111827;
}

.job-dashboard .jd-btn--primary {
    background: #3b82f6;
    color: #fff;
}

.job-dashboard .jd-btn--success {
    background: #16a34a;
    color: #fff;
}

.job-dashboard .jd-btn--dark {
    background: #1f2937;
    color: #fff;
}

.job-dashboard .jd-btn--purple {
    background: #7c3aed;
    color: #fff;
}

.job-dashboard .jd-btn--complete {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.job-dashboard .jd-locked-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    color: #0f766e;
    border-radius: var(--jd-radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.job-dashboard .jd-btn.dropdown-toggle::after {
    margin-left: 6px;
}

.job-dashboard .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    padding: 8px 16px;
    cursor: pointer;
}

.job-dashboard .dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #4b5563;
}

.job-dashboard .dropdown-menu .dropdown-item:hover,
.job-dashboard .dropdown-menu .dropdown-item:focus {
    background: #f3f4f6;
    color: #111827;
}

.job-dashboard .jd-meta {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    padding: 16px 18px;
    margin-top: 14px;
    box-shadow: var(--jd-shadow);
}

.job-dashboard .jd-meta__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--jd-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.job-dashboard .jd-meta__label i {
    opacity: 0.7;
    width: 14px;
}

.job-dashboard .jd-meta__value {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.job-dashboard .jd-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.job-dashboard .jd-kpi {
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    padding: 16px;
    box-shadow: var(--jd-shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 14px;
}

.job-dashboard .jd-kpi__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.job-dashboard .jd-kpi__body {
    min-width: 0;
}

.job-dashboard .jd-kpi__label {
    color: var(--jd-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.job-dashboard .jd-kpi__amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

.job-dashboard .jd-kpi__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    color: var(--jd-muted);
    font-size: 12px;
}

.job-dashboard .jd-kpi__pct {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.job-dashboard .jd-kpi--blue .jd-kpi__icon {
    background: #dbeafe;
    color: #2563eb;
}

.job-dashboard .jd-kpi--green .jd-kpi__icon {
    background: #dcfce7;
    color: #16a34a;
}

.job-dashboard .jd-kpi--green .jd-kpi__amount {
    color: var(--jd-green);
}

.job-dashboard .jd-kpi--green .jd-kpi__pct {
    background: #dcfce7;
    color: #166534;
}

.job-dashboard .jd-kpi--orange .jd-kpi__icon {
    background: #ffedd5;
    color: #ea580c;
}

.job-dashboard .jd-kpi--orange .jd-kpi__amount {
    color: var(--jd-orange);
}

.job-dashboard .jd-kpi--orange .jd-kpi__pct {
    background: #ffedd5;
    color: #9a3412;
}

.job-dashboard .jd-kpi--red .jd-kpi__icon {
    background: #fee2e2;
    color: #dc2626;
}

.job-dashboard .jd-kpi--red .jd-kpi__amount {
    color: var(--jd-red);
}

.job-dashboard .jd-kpi--red .jd-kpi__pct {
    background: #fee2e2;
    color: #991b1b;
}

.job-dashboard .jd-kpi--purple .jd-kpi__icon {
    background: #ede9fe;
    color: #7c3aed;
}

.job-dashboard .jd-kpi--purple .jd-kpi__amount {
    color: var(--jd-purple);
}

.job-dashboard .jd-kpi--purple .jd-kpi__pct {
    background: #ede9fe;
    color: #5b21b6;
}

.job-dashboard .jd-kpi--teal .jd-kpi__icon {
    background: #ccfbf1;
    color: #0d9488;
}

.job-dashboard .jd-kpi--teal .jd-kpi__amount {
    color: #0d9488;
}

.job-dashboard .jd-kpi--teal .jd-kpi__pct {
    background: #ccfbf1;
    color: #115e59;
}

.job-dashboard .jd-kpi--indigo .jd-kpi__icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.job-dashboard .jd-kpi--indigo .jd-kpi__amount {
    color: #4f46e5;
}

.job-dashboard .jd-kpi--indigo .jd-kpi__pct {
    background: #e0e7ff;
    color: #3730a3;
}

.job-dashboard .jd-tabs-card {
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    box-shadow: var(--jd-shadow);
    margin-top: 16px;
    overflow: hidden;
}

.job-dashboard .jd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.job-dashboard .jd-tabs .nav-item {
    margin: 0;
}

.job-dashboard .jd-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border: 1px solid var(--jd-border);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.job-dashboard .jd-tabs .nav-link:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.job-dashboard .jd-tabs .nav-link.active {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.job-dashboard .jd-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e5e7eb;
    color: #374151;
}

.job-dashboard .jd-tabs .nav-link.active .jd-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.job-dashboard .jd-tab-content {
    padding: 0;
}

.job-dashboard .jd-tab-content > .tab-pane {
    display: none;
}

.job-dashboard .jd-tab-content > .tab-pane.active {
    display: block;
}

.job-dashboard .jd-panel__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-dashboard .jd-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.job-dashboard .jd-panel__header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.job-dashboard .jd-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.job-dashboard .jd-link:hover {
    color: #1d4ed8;
}

.job-dashboard .jd-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.job-dashboard .jd-btn-sm:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.job-dashboard .jd-panel__body {
    padding: 0;
}

.job-dashboard .jd-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.job-dashboard .jd-table thead th {
    background: #f9fafb;
    color: var(--jd-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--jd-border);
    white-space: nowrap;
}

.job-dashboard .jd-table tbody td {
    padding: 11px 12px;
    font-size: 13px;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.job-dashboard .jd-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.job-dashboard .jd-table tbody tr:last-child td {
    border-bottom: none;
}

.job-dashboard .jd-empty {
    text-align: center;
    color: var(--jd-muted);
    padding: 24px 12px !important;
}

.job-dashboard .jd-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.job-dashboard .jd-pill--success {
    background: #dcfce7;
    color: #166534;
}

.job-dashboard .jd-pill--warning {
    background: #ffedd5;
    color: #9a3412;
}

.job-dashboard .jd-pill--danger {
    background: #fee2e2;
    color: #991b1b;
}

.job-dashboard .jd-pill--muted {
    background: #f3f4f6;
    color: #4b5563;
}

.job-dashboard .jd-panel__footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    background: #fafafa;
}

.job-dashboard .jd-panel__footer--green {
    color: var(--jd-green);
}

.job-dashboard .jd-panel__footer--red {
    color: var(--jd-red);
}

.job-dashboard .jd-panel__footer--orange {
    color: var(--jd-orange);
}

.job-dashboard .jd-panel__footer--teal {
    color: #0d9488;
}

.job-dashboard .jd-panel__footer--indigo {
    color: #4f46e5;
}

.job-dashboard .jd-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    padding: 16px 18px;
    margin-top: 16px;
    box-shadow: var(--jd-shadow);
}

.job-dashboard .jd-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.job-dashboard .jd-summary__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.job-dashboard .jd-summary__icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.job-dashboard .jd-summary__icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.job-dashboard .jd-summary__icon--orange {
    background: #ffedd5;
    color: #ea580c;
}

.job-dashboard .jd-summary__icon--red {
    background: #fee2e2;
    color: #dc2626;
}

.job-dashboard .jd-summary__icon--slate {
    background: #e2e8f0;
    color: #475569;
}

.job-dashboard .jd-summary__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.job-dashboard .jd-summary__icon--indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

.job-dashboard .jd-summary__icon--teal {
    background: #ccfbf1;
    color: #0d9488;
}

.job-dashboard .jd-summary__label {
    color: var(--jd-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.job-dashboard .jd-summary__value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.job-dashboard .jd-summary__hint {
    color: var(--jd-muted);
    font-size: 11px;
    margin-top: 2px;
}

.job-dashboard .jd-text-green { color: var(--jd-green) !important; }
.job-dashboard .jd-text-orange { color: var(--jd-orange) !important; }
.job-dashboard .jd-text-red { color: var(--jd-red) !important; }
.job-dashboard .jd-text-purple { color: var(--jd-purple) !important; }
.job-dashboard .jd-text-teal { color: #0d9488 !important; }
.job-dashboard .jd-text-indigo { color: #4f46e5 !important; }

@media (max-width: 1399.98px) {
    .job-dashboard .jd-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .job-dashboard .jd-meta,
    .job-dashboard .jd-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .job-dashboard .jd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .job-dashboard .jd-header {
        padding: 16px;
    }

    .job-dashboard .jd-header__title h1 {
        font-size: 1.25rem;
    }

    .job-dashboard .jd-meta,
    .job-dashboard .jd-kpis,
    .job-dashboard .jd-summary {
        grid-template-columns: 1fr;
    }

    .job-dashboard .jd-header__actions {
        width: 100%;
    }

    .job-dashboard .jd-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Home dashboard */
.home-summary-cards {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.home-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--jd-radius);
    box-shadow: var(--jd-shadow);
    text-decoration: none;
    color: inherit;
}

.home-stat-card:hover {
    text-decoration: none;
    color: inherit;
    filter: brightness(1.04);
}

.home-stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
    flex-shrink: 0;
}

.home-stat-card__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.home-stat-card__value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 4px 0;
}

.home-stat-card__hint {
    font-size: 12px;
    opacity: 0.85;
}

.home-stat-card--employees {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #eff6ff;
}

.home-stat-card--pending {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    color: #fffbeb;
}

.home-stat-card--pending.is-alert {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
    color: #fff7ed;
}

.company-amount-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    border-radius: var(--jd-radius);
    box-shadow: var(--jd-shadow);
    color: #ecfdf5;
}

.company-amount-card.is-negative {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
    color: #fef2f2;
}

.company-amount-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 24px;
    flex-shrink: 0;
}

.company-amount-card__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.company-amount-card__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin: 4px 0;
}

.company-amount-card__hint {
    font-size: 12px;
    opacity: 0.85;
}

.home-dashboard.job-dashboard .jd-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 16px;
    margin-top: 16px;
}

.home-dashboard__side {
    display: grid;
    gap: 16px;
}

.home-dashboard .jd-tabs-card {
    margin-top: 16px;
}

.home-dashboard__grid .jd-tabs-card,
.home-dashboard__side .jd-tabs-card {
    margin-top: 0;
}

.home-pending {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.home-pending__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--jd-border);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-pending__item:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    text-decoration: none;
    color: inherit;
}

.home-pending__item.is-alert {
    border-color: #fdba74;
    background: #fff7ed;
}

.home-pending__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-pending__item.is-alert .home-pending__icon {
    background: #ffedd5;
    color: #c2410c;
}

.home-pending__label {
    color: var(--jd-muted);
    font-size: 12px;
    font-weight: 600;
}

.home-pending__count {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.home-dashboard .font-12 {
    font-size: 12px;
}

@media (max-width: 1399.98px) {
    .home-dashboard.job-dashboard .jd-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .home-summary-cards .company-amount-card {
        grid-column: 1 / -1;
    }

    .home-pending {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .home-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .home-dashboard.job-dashboard .jd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-pending {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-dashboard.job-dashboard .jd-kpis,
    .home-pending {
        grid-template-columns: 1fr 1fr;
    }

    .home-summary-cards {
        grid-template-columns: 1fr;
    }
}

/* Sidebar: collapsed by default, expand on hover (desktop) */
@media (min-width: 1025px) {
    body.sidebar-mini.sidebar-hover-expand .main-sidebar {
        overflow: hidden !important;
        transition: width 0.2s ease;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover {
        width: 250px;
        z-index: 1050;
        box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.12);
        overflow-y: auto !important;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover:after {
        opacity: 0 !important;
        width: 0;
        animation: none;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .logo-name {
        display: inline;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .sidebar-menu > li {
        padding: 0;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .sidebar-menu > li > a {
        justify-content: flex-start;
        height: 50px;
        padding: 0 20px;
        border-radius: 0;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .sidebar-menu > li > a span {
        display: inline;
        margin-top: 3px;
        width: 100%;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .sidebar-menu > li > a .feather {
        margin-right: 10px;
    }

    body.sidebar-mini.sidebar-hover-expand .main-sidebar:hover .sidebar-menu > li.active > a {
        box-shadow: none;
    }
}

/* Assign accountants picker */
.accountant-assigner {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.accountant-assigner.is-open {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.accountant-assigner--readonly {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.accountant-assigner__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 52px;
}

.accountant-assigner__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.accountant-assigner__search {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.accountant-assigner__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.accountant-assigner__search .form-control {
    padding-left: 34px;
    border: 0;
    box-shadow: none;
    background: transparent;
    height: 36px;
}

.accountant-assigner__search .form-control:focus {
    box-shadow: none;
}

.accountant-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.accountant-chip__remove {
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.accountant-assigner__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.accountant-assigner__dropdown[hidden] {
    display: none !important;
}

.accountant-assigner__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.accountant-assigner__item:last-child {
    margin-bottom: 0;
}

.accountant-assigner__item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.accountant-assigner__item.is-checked {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.accountant-assigner__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.accountant-assigner__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.accountant-assigner__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.accountant-assigner__name {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.accountant-assigner__email {
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accountant-assigner__tick {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.accountant-assigner__item.is-checked .accountant-assigner__tick {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.accountant-assigner__empty {
    padding: 18px;
    text-align: center;
    color: #64748b;
}

.accountant-assigner__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.accountant-assigner__count {
    color: #64748b;
    font-size: 13px;
}

.accountant-assigner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .accountant-assigner__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .accountant-assigner__actions {
        justify-content: flex-end;
    }
}


/* Notification bell unread count */
.navbar .dropdown-list-toggle .notification-toggle .headerBadge2 {
    position: absolute;
    top: 2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff !important;
    background: #ef4444 !important;
    border-radius: 999px;
    z-index: 2;
}

.navbar .dropdown-list-toggle .notification-toggle.beep:after {
    display: none;
}

/* Auth pages */
.auth-page {
    --auth-blue: #3b82f6;
    --auth-blue-dark: #1e40af;
    --auth-navy: #1e3a8a;
    --auth-ink: #111827;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-bg: #f3f4f6;
    min-height: 100vh;
    background: var(--auth-bg);
}

.auth-page .loader {
    display: none !important;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 56px 64px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 58%, #2563eb 100%);
}

.auth-brand__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand__glow--one {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -120px;
    background: rgba(147, 197, 253, 0.22);
}

.auth-brand__glow--two {
    width: 280px;
    height: 280px;
    left: -90px;
    bottom: -80px;
    background: rgba(30, 64, 175, 0.35);
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand__mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 197, 253, 0.25);
    color: #dbeafe;
    font-size: 22px;
    margin-bottom: 22px;
}

.auth-brand__mark--sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
}

.auth-brand__title {
    margin: 0 0 10px;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.auth-brand__tagline {
    margin: 0 0 36px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(219, 234, 254, 0.88);
}

.auth-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.auth-brand__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #e0e7ff;
}

.auth-brand__feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
    font-size: 13px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.auth-card__mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-card__header {
    margin-bottom: 24px;
}

.auth-card__header h2 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-card__header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
}

.auth-alert--success {
    background: #dcfce7;
    color: #166534;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input > i {
    color: #9ca3af;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.auth-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    height: 46px;
    font-size: 14px;
    color: var(--auth-ink);
    box-shadow: none !important;
}

.auth-input input::placeholder {
    color: #9ca3af;
}

.auth-input:focus-within {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-input.is-invalid {
    border-color: #dc2626;
}

.auth-input.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-input__toggle {
    border: 0;
    background: transparent;
    color: #9ca3af;
    padding: 6px;
    cursor: pointer;
    line-height: 1;
}

.auth-input__toggle:hover,
.auth-input__toggle:focus {
    color: #4b5563;
    outline: none;
}

.auth-error {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
}

.auth-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--auth-blue);
}

.auth-link,
.auth-back {
    color: var(--auth-blue-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.auth-link:hover,
.auth-back:hover {
    color: #1d4ed8;
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 6px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.auth-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 8px 18px rgba(29, 78, 216, 0.22);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-card__mobile-brand {
        display: flex;
    }

    .auth-main {
        min-height: 100vh;
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 22px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }
}

.attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.attendance-summary__item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    font-size: 13px;
}

.attendance-summary__item strong {
    font-size: 20px;
    color: #111827;
}

.attendance-summary__item.is-alert {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.attendance-summary__item.is-alert strong {
    color: #c2410c;
}

.attendance-table tbody tr.attendance-row--hours-pending {
    background: #fff7ed !important;
}

.attendance-table tbody tr.attendance-row--hours-pending td {
    border-color: #fed7aa;
}

.attendance-table .js-attendance-hours.is-invalid {
    border-color: #f59e0b;
    background: #fffbeb;
}

body.side-drawer-open {
    overflow: hidden;
}

.side-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.side-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
}

.side-drawer.is-open {
    transform: translateX(0);
}

.side-drawer--wide {
    width: 760px;
}

.side-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.side-drawer__header h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.side-drawer__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.side-drawer__body.is-form {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-drawer__form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.side-drawer__fields {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
}

.side-drawer__footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.side-detail__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 12px;
}

.side-detail__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.side-detail__row span {
    color: #6b7280;
    flex: 0 0 42%;
}

.side-detail__row strong {
    text-align: right;
    color: #111827;
    font-weight: 600;
}

.side-detail__row--block {
    flex-direction: column;
}

.side-detail__row--block strong {
    text-align: left;
}

@media (max-width: 767.98px) {
    .side-drawer--wide {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .side-drawer {
        width: 100%;
    }
}
