.text-disable {
    cursor: default;
    color: grey !important;
    text-decoration: none;
}

.modal-loader {
    position: absolute;
    inset: 0;
    z-index: 1056;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body-container {
    position: relative;
    min-height: 300px;
}

.modal-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
}

.modal-loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* SETTINGS MENU: make active pill show a strong indicator (Bootstrap puts .active on <a>) */
.roles-menu .nav-link {
    border-left: 4px solid transparent;
    /* thicker than existing 3px */
    border-radius: 0;
}

.roles-menu .nav-link.active {
    border-left-color: #0f9848;
    /* green marker */
    background: #f2f3f5;
    /* subtle selected row bg */
    color: #0b5ed7;
    /* Bootstrap-ish blue (adjust to your theme) */
    font-weight: 600;
}

.roles-menu .nav-link:hover {
    background: #ecedee;
    border-left-color: #0f9848;
}

.status-active {
    color: #198754;
    /* Bootstrap green */
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    /* Bootstrap red */
    font-weight: 600;
}

html,
body {
    height: 100%;
}

.main-wrapper {
    height: 100vh;
    overflow: hidden;
}

.page-wrapper {
    height: 100%;
}

.content.container-fluid {
    height: calc(100vh - 120px);
    /* adjust based on header height */
}

.sticky-profile {
    position: sticky;
    top: 20px;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.scroll-section {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-section {
    scrollbar-width: thin;
}

.scroll-section::-webkit-scrollbar {
    width: 6px;
}

.scroll-section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

#employeeTable tbody tr {
    cursor: pointer;
}

#employeeTable .employee-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

#mngAccTable tbody tr {
    cursor: pointer;
}

.select2-selection.is-invalid {
    border-color: #dc3545 !important;
}

.select2-selection.is-invalid {
    border-color: #dc3545 !important;
}

.employee201-skeleton-row td {
    height: 64px;
    vertical-align: middle;
}

.employee201-skeleton {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 4px;
}

.employee201-skeleton::after {
    position: absolute;
    top: 0;
    right: -100%;
    bottom: 0;
    left: -100%;
    content: "";
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent);
    animation: employee201-skeleton-shimmer 1.25s infinite;
}

.employee201-skeleton-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
}

.employee201-skeleton-name {
    width: 65%;
    height: 14px;
}

.employee201-skeleton-position {
    width: 40%;
    height: 10px;
}

.employee201-skeleton-id {
    width: 55%;
    height: 14px;
}

.employee201-skeleton-email {
    width: 75%;
    height: 14px;
}

.employee201-skeleton-code {
    width: 55%;
    height: 14px;
}

.employee201-skeleton-action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

@keyframes employee201-skeleton-shimmer {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(50%);
    }
}

.employee-dashboard {
    --dash-primary: #2563eb;
    --dash-border: #e8edf3;
    --dash-muted: #64748b;
}

.employee-dashboard .dash-card {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .05);
}

.employee-dashboard .employee-photo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #eff6ff;
}

.employee-dashboard .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.employee-dashboard .attendance-card {
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 55%);
}

.employee-dashboard .current-time {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #0f172a;
    line-height: 1;
}

.employee-dashboard .attendance-detail {
    padding: 12px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .85);
    height: 100%;
}

.employee-dashboard .detail-label {
    color: var(--dash-muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.employee-dashboard .detail-value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.employee-dashboard .clock-button {
    min-width: 132px;
    min-height: 44px;
    border-radius: 11px;
    font-weight: 600;
}

.employee-dashboard .nav-tabs {
    border-bottom: 1px solid var(--dash-border);
    gap: 6px;
}

.employee-dashboard .nav-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    padding: 14px 18px;
}

.employee-dashboard .nav-tabs .nav-link.active {
    color: var(--dash-primary);
    border-bottom-color: var(--dash-primary);
    background: transparent;
}

.employee-dashboard .filter-control {
    min-width: 175px;
}

.employee-dashboard .summary-card {
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    height: 100%;
}

.employee-dashboard .summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.employee-dashboard .table> :not(caption)>*>* {
    padding: 12px 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.employee-dashboard .table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    border-bottom-width: 1px;
}

.employee-dashboard .empty-state {
    padding: 42px 16px;
    text-align: center;
    color: var(--dash-muted);
}

.employee-dashboard .profile-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.employee-dashboard .profile-list li {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.employee-dashboard .profile-list li:last-child {
    border-bottom: 0;
}

.employee-dashboard .profile-list .title {
    color: var(--dash-muted);
}

.employee-dashboard .profile-list .text {
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .employee-dashboard .employee-photo {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .employee-dashboard .clock-button {
        flex: 1 1 0;
        min-width: 0;
    }

    .employee-dashboard .filter-control {
        min-width: 100%;
    }

    .employee-dashboard .nav-tabs .nav-link {
        padding: 12px 10px;
        font-size: 13px;
    }
}

.employee-dashboard #employeeDtrTable > :not(caption) > * > * {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.employee-dashboard #employeeDtrTable tbody tr.dtr-main-row {
    cursor: pointer;
}

.employee-dashboard #employeeDtrTable tbody tr.dtr-main-row:hover {
    background: #f8fbff;
}

.employee-dashboard #employeeDtrTable .dtr-date {
    min-width: 92px;
    font-weight: 600;
    color: #0f172a;
}

.employee-dashboard #employeeDtrTable .dtr-sub-row td {
    padding-top: 5px;
    padding-bottom: 5px;
    background: #fafcff;
    color: #475569;
}

.employee-dashboard #employeeDtrTable .dtr-sub-label {
    position: relative;
    padding-left: 22px;
}

.employee-dashboard #employeeDtrTable .dtr-sub-label::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    border-top: 1px solid #cbd5e1;
}

.employee-dashboard .dtr-view-button {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
}

.employee-dashboard .dtr-detail-box {
    height: 100%;
    padding: 12px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #f8fafc;
}

.employee-dashboard .dtr-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
}

.employee-dashboard .dtr-metric span {
    color: #64748b;
    font-size: 12px;
}

.employee-dashboard .dtr-metric strong {
    color: #0f172a;
}

.employee-dashboard #employeeDtrTable {
    font-size: 12px;
}

.employee-dashboard #employeeDtrTable thead th {
    padding: 9px 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.employee-dashboard #employeeDtrTable tbody td {
    padding: 8px;
    white-space: nowrap;
    border-color: #edf1f5;
}

.employee-dashboard #employeeDtrTable .dtr-main-row {
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.employee-dashboard #employeeDtrTable .dtr-main-row:hover {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.employee-dashboard #employeeDtrTable .dtr-main-row:focus {
    outline: none;
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.employee-dashboard #employeeDtrTable .dtr-detail-row td {
    padding-top: 5px;
    padding-bottom: 5px;
    background: #fbfdff;
    color: #64748b;
}

.employee-dashboard #employeeDtrTable .dtr-hd-row td {
    background: #fffbeb;
}

.employee-dashboard #employeeDtrTable .dtr-ob-row td {
    background: #eff6ff;
}

.employee-dashboard #employeeDtrTable .dtr-ot-row td {
    background: #ecfeff;
}

.employee-dashboard #employeeDtrTable .dtr-detail-connector {
    display: inline-block;
    width: 10px;
    height: 8px;
    margin-top: -5px;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.employee-dashboard #employeeDtrTable .badge {
    min-width: 46px;
    padding: 5px 7px;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .employee-dashboard #employeeDtrTable {
        min-width: 900px;
    }
}