body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #0a0a1a;
    color: #e0e0e0;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 20px; */
}

h1 {
    text-align: center;
    color: #ff8c00;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.button {
    padding: 8px 16px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #1e40af;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #888;
}

.table-container {
    overflow-x: auto;
    background-color: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 20px;
    background-color: #1a1a2e;
}

td {
    /*padding: 8px;*/
    text-align: center;
    border: 1px solid #2d3748;
    word-wrap: break-word;
    position: relative;
    min-height: 40px;
    vertical-align: middle;
    background-color: #1a1a2e;
}

th {
    /* background-color: #1e3a8a; */
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 200px;
}

/* th:first-child {
    width: 200px;
    min-width: 200px;
}

tr:first-child {
    width: 200px;
    min-width: 200px;
} */

tr:nth-child(even) {
    background-color: #1f2937;
}

tr:hover {
    background-color: #2d3748;
}

td.highlight-row,
td.highlight-col {
    background-color: #374151;
    color: #89D07F;
}
/* th.highlight-row, */
th.highlight-col {
    color: #89D07F;
}

.blueprint-cell {
    /* white-space: nowrap; */
    /* width: 1px;  Makes column as narrow as possible */
    width: 600px; 
    position: sticky;
    left: 0;
    background-color: #1a1a2e;
    z-index: 2;
    text-align: left;
    /* padding: 12px 15px; */
}

.engineer-cell {
    min-width: 100px;
    max-width: 150px;
    position: relative;
    vertical-align: middle;
    background-color: #1a1a2e;
    padding: 8px;
    height: auto;
} 

.engineer-name {
    position: absolute;
    bottom: 0;
    /* left: 45%; */
    transform: translateX(-65%) translateY(-500%) rotate(45deg);
    transform-origin: left bottom;
    white-space: nowrap;
    text-align: right;
    padding: 10px 0 0 10px;
    width: 200px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    /*padding: 5px 0;*/
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 1;
    position: relative;
    z-index: 1;
    margin: 0;
    accent-color: #ff8c00;
}

input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: pointer;
}

.grade {
    font-size: 12px;
    color: #ff8c00;
    font-weight: bold;
}

.grade-max {
    color: #89D07F;
}

.table-header{
    top:0;
    position: sticky;
    z-index: 100;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    th,
    td {
        /* padding: 8px 4px; */
        font-size: 12px;
    }

    .engineer-cell {
        min-width: 50px;
        max-width: 150px;
        height: 150px;
        position: relative;
    }
}