/* ### DEFAULT TABLE ### */

table {
    width: 100%;
    font-size: .9rem;
    border-collapse: collapse;
    margin: 2rem 0;
}

td {
    border: 1px solid transparent;
}

tr {
    border-bottom: 1px solid var(--sky-blue-10);
}

table th {
    background-color: var(--sky-blue);
    color: white;
    padding: 10px;
    margin: 10px;
}

table tr:nth-of-type(even) {
    background-color: var(--sky-blue-05);
}

table tr td {
    padding: 10px;
}

/* ### DARK BLUE HEADER TABLE ###*/

table.table-dark-blue {
    border-spacing: 5px 0;
    border-collapse: separate;
    width: 100%;
}

.table-dark-blue td {
    vertical-align: middle;
}

.table-dark-blue tr:first-of-type td {
    background-color: var(--dark-blue);
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    vertical-align: middle;
    font-weight: bold;
    font-size: .9rem;
    height: 2rem;
    text-align: center;
    border-bottom: 10px solid #fff;
}

.table-dark-blue tr:nth-of-type(odd) {
    background-color: var(--dark-blue-05);
}

.table-dark-blue tr:nth-of-type(even) {
    background-color: #fff;
}

.table-dark-blue tr:last-of-type td {
    background-color: var(--dark-blue);
    color: white;
    border-radius: 10px;
    font-weight: bold;
    font-size: .9rem;
    height: 2rem;
    text-align: center;
    border-top: 10px solid #fff;
}

.table-dark-blue tr:last-of-type {
    border-top: 10px solid #fff;
}

.table-dark-blue .tr-blank {
    background-color: white !important;
    font-size: 0px;
    line-height: 0;
}

/* ### TEST PRICES ARTICLE ### */

.search-bar {
    height: 2.5rem;
    width: 100%;
    background-color: var(--sky-blue-05);
    outline: none;
    border-radius: 30px;
    padding: 0 3rem;
    border: 1px solid #fff;
    background-image: url('/images/icons/icon-search-gray.png');
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: 15px 8px;
    font-weight: 400;
    color: var(--dark-blue);
}

.search-bar::placeholder {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .9px;
    color: var(--dark-gray);
    opacity: .9;
}

.search-bar::-webkit-input-placeholder {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .9px;
    color: var(--dark-gray);
    opacity: .9;
}

.search-bar:-ms-input-placeholder {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .9px;
    color: var(--dark-gray);
    opacity: .9;
}

.test-prices-article td {
    color: var(--dark-blue);
    padding: .3rem .3rem .2rem .3rem;
}

.test-prices-article tr {
    vertical-align: middle;
}

.test-prices-article td:nth-child(1) {
    text-transform: uppercase;
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    width: 52%;
}

.test-prices-article td:nth-child(1)::before {
    content: '';
    background-image: url('/images/icons/caret-right-solid-dark-blue.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 10px;
    height: 10px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.test-prices-article td:nth-child(1).open::before {
    transform: rotate(90deg);
    transform-origin: 25% 50%;
}

.test-prices-article td:nth-child(2),
.test-prices-article td:nth-child(3) {
    display: inline-block;
    font-weight: 600;
    font-size: .85rem;
    text-align: right;
    width: 22%;
}

.test-prices-article td:nth-child(2)::after {
    content: " GHS";
    font-weight: 400;
    font-size: .7rem;
}

.test-prices-article td:nth-child(3)::after {
    content: " kn";
    font-weight: 400;
    font-size: .7rem;
}

.test-prices-article td:nth-child(4) {
    display: block;
    padding: 20px;
    text-align: left;
    width: 96%;
}

@media only screen and (min-width: 550px) {
    .test-prices-article td:nth-child(1)::before {
        margin: 0 .3rem;
    }
}

@media only screen and (min-width: 768px) {
    .search-bar {
        width: 50%;
        margin-left: 50%;
    }
    .test-prices-article td {
        font-size: 1rem;
        padding: .5rem;
    }
    .test-prices-article td::after {
        font-size: .85rem;
    }
}

/* ### RESPONSIVE TABLES ### */

@media only screen and (max-width:690px) {
    .table-responsive td {
        display: block;
    }
}