:root {
    --title-open-bg: rgb(200, 240, 220);
    --select-open-bg: rgb(230, 215, 200);
    --option-hover: rgb(50, 150, 250);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
    background-color: rgb(255, 255, 255);
}

.page-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: rgb(0, 64, 128);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border: 2px solid rgb(0, 64, 128);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    border: 1px solid rgb(0, 64, 128);
    text-align: left;
    font-weight: bold;
}

thead {
    background-color: rgb(50, 110, 130);
    color: rgb(255, 255, 255);
}

tbody tr:nth-child(odd) {
    background-color: rgb(205, 235, 245);
}

tbody tr:nth-child(even) {
    background-color: rgb(240, 245, 255);
}

.category-label {
    font-weight: bold;
    background-color: rgb(233, 236, 239);
    width: 200px;
    color: rgb(0, 64, 128);
}

.clinical-concerns-label {
    padding-top: 150px;
}

.cbc-label {
    padding-top: 150px;
}

.specimen-types-container {
    padding: 10px 0;
}

.specimen-option {
    display: inline-block;
    margin-right: 50px;
    margin-top: 10px;
}

.clinical-concern-item {
    margin-bottom: 10px;
    padding-top: 15px;
}

.subcategories-container {
    margin-left: 20px;
    margin-top: 5px;
}

.clinical-concern-container {
    cursor: pointer;
    border-bottom: 2px dashed rgb(0, 64, 128);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

    .clinical-concern-container:last-child {
        border-bottom: none;
    }

.subcat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 5px;
    border: 1px solid rgb(0, 64, 128);
    border-radius: 8px;
    overflow: hidden;
}

    .subcat-table th, .subcat-table td {
        padding: 8px;
        border: 1px solid rgb(0, 64, 128);
        text-align: left;
        font-weight: bold;
    }

    .subcat-table thead {
        background-color: rgb(50, 110, 130);
        color: rgb(255, 255, 255);
    }

    .subcat-table tbody tr:nth-child(even) {
        background-color: rgb(255, 255, 255);
    }

    .subcat-table tbody tr:nth-child(odd) {
        background-color: rgb(180, 230, 250);
    }

.blood-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    table-layout: fixed;
}

    .blood-table tbody tr:nth-child(odd) td {
        background-color: rgb(180, 230, 250);
    }

    .blood-table tbody tr:nth-child(even) td {
        background-color: rgb(255, 255, 255);
    }

    .blood-table tbody tr:nth-child(odd) select {
        background-color: rgb(180, 230, 250) !important;
    }

    .blood-table tbody tr:nth-child(even) select {
        background-color: rgb(255, 255, 255) !important;
    }

    .blood-table td {
        position: relative;
        border: none;
        border-bottom: 1px solid rgb(0, 64, 128);
        height: 1px;
    }

        .blood-table td:first-child {
            padding: 10px;
            width: 30%;
            white-space: normal;
            word-wrap: break-word;
            border: 2px solid rgb(0, 64, 128);
            border-right: none;
            vertical-align: middle;
        }

        .blood-table td:nth-child(2) {
            width: 70%;
            padding: 0;
        }

    .blood-table tr:last-child td {
        border-bottom: none;
    }

        .blood-table tr:last-child td:first-child {
            border-bottom: 2px solid rgb(0, 64, 128);
        }

    .blood-table tbody tr:first-child td:first-child {
        border-top-left-radius: 8px;
    }

    .blood-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 2px solid rgb(0, 64, 128);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 64, 128);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpolygon points='0,0 10,0 5,6' fill='%23004080'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-size: 10px 6px;
    white-space: normal;
    word-wrap: break-word;
    overflow-y: hidden;
    transition: background-color 0.12s ease-in-out;
}

    select[size] {
        overflow-y: auto;
        max-height: calc(44px * 8);
        background-image: none;
        z-index: 9999;
        background-color: var(--select-open-bg);
        color: rgb(0, 64, 128);
    }

    select:focus, select:hover {
        border-color: rgb(50, 150, 250);
        outline: none;
    }

    select option {
        display: block;
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        padding: 12px 10px;
        font-weight: bold;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: rgb(0, 64, 128);
        border-bottom: 1px solid rgba(0, 64, 128, 0.15);
        white-space: normal;
        background-color: transparent;
        cursor: pointer;
    }

        select option[value=""] {
            min-height: 44px;
            height: 44px;
            display: block;
        }

.blood-table tr.open td:first-child {
    background-color: var(--title-open-bg);
}

select[size] option {
    background-color: var(--select-open-bg) !important;
    color: rgb(0, 64, 128) !important;
}

    select[size] option:hover,
    select[size] option:focus,
    select option:hover,
    select option:focus {
        background-color: var(--option-hover) !important;
        color: rgb(255, 255, 255) !important;
    }

tbody tr:nth-child(odd) select option {
    background-color: rgb(180, 230, 250);
}

tbody tr:nth-child(even) select option {
    background-color: rgb(255, 255, 255);
}

input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2);
}

    input[type="checkbox"]:checked:disabled + label {
        position: relative;
        display: inline-block;
    }

        input[type="checkbox"]:checked:disabled + label::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 100%;
            height: 3px;
            background-color: rgb(255, 0, 0);
        }

.action-buttons {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.submit-btn {
    padding: 15px 25px;
    background-color: rgb(0, 64, 128);
    color: rgb(255, 255, 0);
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
}

    .submit-btn:disabled {
        background-color: rgb(173, 216, 230) !important;
        color: rgb(255, 255, 255) !important;
        cursor: not-allowed;
    }

    .submit-btn.submitted {
        background-color: rgb(173, 216, 230);
        color: rgb(255, 255, 255);
    }

.clear-btn {
    padding: 15px 25px;
    background-color: rgb(0, 64, 128);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 50px;
    border: 2px solid rgb(0, 64, 128);
    border-radius: 8px;
    overflow: hidden;
}

    .results-table th {
        background-color: rgb(0, 100, 150);
        color: rgb(255, 255, 255);
        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: 12%;
    }

.noscript-warning {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 15px 25px;
    background-color: rgb(220, 53, 69);
    color: rgb(255, 255, 255);
    border-radius: 5px;
    z-index: 1001;
    font-weight: bold;
}
