
#student-table-container {
    font-size: 1.2em;
}

.custom-student-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background: #fff;
    color: #000;
    table-layout: fixed;
    min-width: 1200px;
    user-select: none;
}

.custom-student-table th, .custom-student-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
    text-overflow: ellipsis;
    background: #fff;
}

.custom-student-table th.editing, .custom-student-table td.editing {
    overflow: visible;
    z-index: 100;
    background: #fff;
}

.custom-student-table th {
    background-color: #0073aa;
    color: white;
    cursor: default;
    z-index: 10;
}

.custom-student-table th:hover {
    background-color: #005177;
}

.custom-student-table tbody tr:hover {
    background-color: #f1f1f1;
}

.custom-student-table th.selected {
    background-color: #004466 !important;
}

.custom-student-table td.column-selected {
    background-color: #d1ecf1 !important;
}

.custom-student-table thead th {
    position: sticky;
    top: 0;
    z-index: 25;
    background: #0073aa;
    color: white;
}

.scroll-x {
    overflow-x: auto;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

.scroll-y {
    overflow-y: auto;
    max-height: 400px;
    position: relative;
}

.custom-student-table td select, .custom-student-table td input[type="text"], .custom-student-table td input[type="checkbox"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    z-index: 5;
    position: relative;
    background: #fff;
}

.custom-student-table td input[type="checkbox"]:checked {
    background-color: #c7f9cc;
}

.custom-student-table td input[type="checkbox"] {
    background-color: #fff;
}

.header-input {
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
    margin: 0;
    border: 1px solid #ccc;
    font-size: 1em;
    background-color: #fff;
    color: #000;
    z-index: 100;
}

#edit-toggle {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 8px 12px 0;
    font-size: 1.1em;
}

#edit-toggle:hover {
    background-color: #005177;
}

#download-button {
    margin-top: 12px;
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
}

#download-button:hover {
    background-color: #005177;
}

#search-bar {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    float: right;
    margin-bottom: 12px;
    font-size: 1.1em;
}

@media (max-width: 900px) {
    .custom-student-table {
        font-size: 12px;
        min-width: 1200px;
    }
}

