/* ===== TAB CONTENT ===== */
.tab-content {
    display: none !important;
}

    .tab-content.active {
        display: block !important;
    }

/* Ensure no tab content is visible unless specifically active */
#employee-tab:not(.active),
#supervisor-tab:not(.active),
#general-tab:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.content-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 44%);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* ===== SECTION HEADERS ===== */

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.section-title p {
    font-size: 14px;
    color: white;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== SEARCH AND FILTERS ===== */
.search-box {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #cc00007a;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #CC0000;
        box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

/* ===== ACTION BUTTONS ===== */
.add-employee-btn {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #cc00007a !important;
    background: white !important;
    color: #333 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    padding: 0 !important;
}

    .add-employee-btn:hover {
        border-color: #CC0000 !important;
        color: #CC0000 !important;
        background: rgba(204, 0, 0, 0.05) !important;
    }

/* ===== DATA GRID ===== */
.data-grid {
    background: white;
    overflow: auto;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

    .grid-table th {
        background: #CC0000;
        color: white;
        padding: 16px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        border-bottom: 2px solid #a00000;
    }

    .grid-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #dedede;
        vertical-align: middle;
        text-align: left;
        font-size: 14px;
    }

    .grid-table tbody tr {
        transition: all 0.2s ease;
    }

        .grid-table tbody tr:hover {
            background: rgba(204, 0, 0, 0.09);
        }

/* ===== EMPLOYEE COMPONENTS ===== */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #CC0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.employee-details {
    flex-grow: 1;
}

    .employee-details h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
    }

    .employee-details span {
        font-size: 12px;
        color: #6c757d;
        line-height: 1.2;
    }

/* ===== PROGRESS BARS ===== */
.skills-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.progress-text {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.progress-fill {
    height: 100%;
    background: #CC0000;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    min-width: 35px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* ===== ACTION BUTTONS IN GRID ===== */
.action-buttons {
    display: flex;
    gap: 6px;
    min-width: 90px;
}

    .action-buttons .action-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #cc00007a;
        border-radius: 6px;
        background: white;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
    }

.expand-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.add-skills-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.release-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* ===== EXPANDABLE ROWS ===== */
.expand-btn.expanded {
    transform: rotate(180deg);
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.skills-detail-row {
    background: #f8f9fa !important;
    border: none !important;
    display: none;
}

    .skills-detail-row.show {
        display: table-row !important;
    }

    .skills-detail-row td {
        padding: 0 !important;
        border: none !important;
    }

.skills-detail-cell {
    padding: 0 !important;
    background: #f0f8ff !important;
    border: 1px solid #e9ecef !important;
}

.skills-detail-container {
    padding: 16px !important;
    background: #5a5a5a !important;
    border-left: 4px solid #cc0000 !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 0 !important;
}

.skills-detail-grid {
    background: white !important;
    border-radius: 6px !important;
    overflow: auto !important;
    border: 1px solid #cc0000 !important;
    box-shadow: 0 0px 15px rgb(255 255 255 / 89%) !important;
}

.skills-table {
    width: 100% !important;
    border-collapse: collapse !important;
    min-width: 800px !important;
}

    .skills-table th {
        background: #cc0000 !important;
        color: white !important;
        padding: 8px 6px !important;
        text-align: left !important;
        font-weight: 600 !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        border-bottom: 2px solid #a00000 !important;
    }

    .skills-table td {
        padding: 8px 6px !important;
        border-bottom: 1px solid #f8f9fa !important;
        font-size: 11px !important;
        vertical-align: middle !important;
        text-align: left !important;
    }

    .skills-table tbody tr:hover {
        background: rgba(0, 123, 255, 0.05) !important;
    }

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #e83e8c;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* ===== EMPLOYEE GRID SECTION - VERY COMPACT ===== */
#supervisor-tab #employee-skills-section {
    margin-bottom: 10px !important;
}

    #supervisor-tab #employee-skills-section .section-header {
        padding: 4px 8px !important;
        gap: 8px !important;
    }

    #supervisor-tab #employee-skills-section .section-title h2 {
        font-size: 18px !important;
        margin-bottom: 0px !important;
    }

    #supervisor-tab #employee-skills-section .section-title p {
        font-size: 12px !important;
    }

    #supervisor-tab #employee-skills-section .action-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    /* ===== DATA GRID - EXTREMELY COMPACT ===== */
    #supervisor-tab #employee-skills-section .grid-table th {
        padding: 12px 8px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px !important;
    }

    #supervisor-tab #employee-skills-section .grid-table td {
        padding: 12px 8px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    #supervisor-tab #employee-skills-section .action-buttons .action-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }

/* ===== GRID WITH SHADOW CLASS FOR COMPACT STYLING ===== */
    .content-section.grid-with-shadow .section-title h2 {
        font-size: 14px !important;
        margin-bottom: 1px !important;
        font-weight: 600 !important;
    }

    .content-section.grid-with-shadow .section-title p {
        font-size: 11px !important;
        margin: 0 !important;
    }

    .content-section.grid-with-shadow .search-box {
        min-width: 200px !important;
    }

    .content-section.grid-with-shadow .search-input {
        padding: 6px 30px 6px 10px !important;
        font-size: 12px !important;
    }

    

    .content-section.grid-with-shadow .grid-table th {
        padding: 8px 6px !important;
        font-size: 10px !important;
        letter-spacing: 0.3px !important;
    }

    .content-section.grid-with-shadow .employee-cell {
        gap: 8px !important;
        min-width: 120px !important;
    }

    .content-section.grid-with-shadow .employee-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .content-section.grid-with-shadow .employee-details h4 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .content-section.grid-with-shadow .employee-details span {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .content-section.grid-with-shadow .skills-progress {
        gap: 4px !important;
        min-width: 100px !important;
    }

    .content-section.grid-with-shadow .progress-text {
        font-size: 9px !important;
        min-width: 25px !important;
    }

    .content-section.grid-with-shadow .progress-percentage {
        font-size: 9px !important;
        min-width: 25px !important;
    }

    .content-section.grid-with-shadow .status-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
        gap: 3px !important;
    }

    .content-section.grid-with-shadow .action-buttons {
        gap: 4px !important;
        min-width: 60px !important;
    }

        .content-section.grid-with-shadow .action-buttons .action-btn {
            width: 24px !important;
            height: 24px !important;
            font-size: 10px !important;
            border-radius: 4px !important;
        }

    .content-section.grid-with-shadow code {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }

