#hoverLabel {
    min-height: 60px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #eee;
    font-weight: bold;
}

th[title] {
    cursor: help;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

thead th:nth-of-type(n+2) {
    cursor: zoom-in;
}

td>section {
    height: 25px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2px;
}

td>section span {
    display: block;
    width: 20px;
    height: 100%;
    padding: 0;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 3px;
    position: relative;
}

td>section span:nth-of-type(1) {
    background-color: rgb(9, 255, 0);
}

td>section span:nth-of-type(1).selected:after {
    content: "Excellent"
}

td>section span:nth-of-type(2).selected:after {
    content: "Standard Met"
}

td>section span:nth-of-type(3).selected:after {
    content: "Below Average"
}

td>section span:nth-of-type(4).selected:after {
    content: "Poor";
    color: white;

}

td>section span:nth-of-type(5).selected:after {
    content: "Absent";
    color: white;
}

td>section span.selected:after {
    position: absolute;
    left: 5px;
    top: 4px;
}

td>section span:nth-of-type(2) {
    background-color: rgb(255, 238, 0);
}

td>section span:nth-of-type(3) {
    background-color: rgb(255, 145, 0);
}

td>section span:nth-of-type(4) {
    background-color: rgb(255, 72, 0);
}

td>section span:nth-of-type(5) {
    background-color: rgb(9, 6, 17);
}

td>section span:hover {
    opacity: 0.8;
}

td>section span.selected {
    outline: 2px solid black;
    flex: 1;
    opacity: 1;
}

.button-container {
    margin-top: 20px;
    text-align: right;
}

.button-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
}

.button-container button:hover {
    background-color: #4cae4c;
}

.comment-box {
    margin-top: 20px;
}

.comment-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}