body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
    background-color: white;
}

h1 {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: rgb(0,50,100);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border: 2px solid rgb(70, 180, 220);
    border-radius: 8px;
    table-layout: fixed;
    overflow: visible;
}

th, td {
    padding: 10px;
    border: 1px solid rgb(70, 180, 220);
    text-align: left;
    font-weight: bold;
    vertical-align: middle;
}

thead {
    background-color: rgb(50, 110, 130);
    color: white;
}

    thead th:first-child {
        border-top-left-radius: 6px;
    }

    thead th:last-child {
        border-top-right-radius: 6px;
    }

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

tbody tr:nth-child(odd) {
    background-color: rgb(205, 235, 245);
}

tbody tr:nth-child(even) {
    background-color: rgb(240, 245, 255);
}

th:nth-child(1), td:nth-child(1) {
    width: 7%;
}

th:nth-child(2), td:nth-child(2) {
    width: 38%;
}

th:nth-child(3), td:nth-child(3) {
    width: 55%;
}

td:nth-child(1) {
    text-align: center;
}

td:nth-child(2) {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.choices__inner {
    width: 100%;
    padding: 14px 44px 14px 12px;
    border: 2px solid rgb(70, 180, 220);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    min-height: 52px;
    line-height: 1.2;
    background-color: inherit;
    box-sizing: border-box;
}

.choices__list--single {
    color: rgb(0, 64, 128);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.choices {
    position: relative;
}

    .choices::after {
        content: "";
        pointer-events: none;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 8px solid rgb(70, 180, 220);
        transition: transform 150ms ease;
        z-index: 1002;
    }

    .choices.is-open::after {
        transform: translateY(-50%) rotate(180deg);
    }

.choices__list--dropdown {
    background-color: rgb(230, 215, 200);
    border: 2px solid rgb(70, 180, 220);
    border-radius: 6px;
    color: blue;
    z-index: 1001;
    position: absolute;
    left: 0;
    right: 0;
    box-sizing: border-box;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.choices__item--choice {
    font-weight: bold;
    font-size: 16px;
    padding: 10px 12px;
    min-height: 38px;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 4px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: rgb(0, 100, 150);
    color: white;
}

.choices__item--choice:hover {
    background-color: rgb(50, 150, 250);
    color: white;
}

tbody tr.row-is-active td:nth-child(1),
tbody tr.row-is-active td:nth-child(2) {
    background-color: rgb(200, 240, 220);
}

tbody tr.row-is-active .choices__inner,
tbody tr.row-is-active td:nth-child(3) {
    background-color: rgb(230, 215, 200);
}

.submit-btn, .clear-btn {
    position: fixed;
    bottom: 20px;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1200;
}

.submit-btn {
    right: 20px;
    background-color: rgb(0, 64, 128);
    color: yellow;
}

.clear-btn {
    left: 20px;
    background-color: rgb(0, 64, 128);
    color: white;
}

.submit-btn:disabled {
    background-color: rgb(173, 216, 230);
    color: white;
    cursor: not-allowed;
}

.results-table {
    margin-bottom: 50px;
}

    .results-table th {
        background-color: rgb(0, 100, 150);
        color: white;
        padding: 12px;
        font-size: 1.1em;
    }

    .results-table td {
        padding: 12px;
        border-bottom: 1px solid rgb(200, 200, 200);
    }

    .results-table tr:nth-child(even) {
        background-color: rgb(240, 240, 240);
    }

    .results-table tr:nth-child(odd) {
        background-color: rgb(230, 230, 250);
    }

    .results-table tr:last-child td {
        border-bottom: none;
    }

    .results-table td:first-child {
        width: 25%;
    }

.immediate-action {
    color: red;
    font-weight: bold;
}
