/* ----- SITE-WIDE STYLING ----- */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #222222;
        background-image: url(../images/background.svg);
    } 
}

@media (prefers-color-scheme: light){
    body {
        background-color: #e6f4ef;
        background-image: url(../images/background.svg);
    }
}

html {
    font-family: sans-serif;
}

a {
    text-decoration: none;
}

.error {
    font-style: italic;
    font-size: 12px;
    margin-top: -10px;
}

.white-green-fg {
    color: #e6f4ef;
}
.white-green-bg {
    background-color: #e6f4ef;
}

.red {
    color: #af5052;
}

.blue {
    color: #5091af;
}

.dark-green {
    color: #2C3532;
}

.green {
    color: #459162;
}

.yellow {
    color: #e1d48c;
}

#search {
    border: 2px solid #2C3532;
    border-radius: 8px;
    background-color: #1c1c1c91;
    padding: 4px 4px 4px 6px;
    height: 25px;
    width: 200px;
    margin-bottom: 20px;
    float: right;
}
#search:focus {
    outline: none;
}

.full-page {
    background-color: #1c1c1c91;
    border: solid 2px #2C3532;
    padding: 0 10px;
    border-radius: 8px;
    padding-bottom: 10px;
    width: 50%;
    margin: 0 auto;
}

.full-page button {
    border: none;
    background-color: transparent;
}

.full-page a {
    display: flex;
    align-items: center;
    margin: 15px 0px;
}

.full-page a span {
    margin-right: 5px;
}

/* ----- NAV BAR STYLING ----- */

.nav-bar {
    display: flex;
    overflow: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 5px;
    border-radius: 4px;
    background-image: linear-gradient(to right, #52af8e, #52af8ed2);
    margin-bottom: 20px;
}

.nav-bar img {
    margin-top: -3px;
    cursor: pointer;
}

.nav-dropdown {
    display: inline-block;
    position: relative;
}

.nav-dropdown button {
    border: none;
    background-color: transparent;
    font-size: 24px;
    font-family: sans-serif;
    height: 50px;
}

.nav-dropdown div {
    display: none;
    position: absolute;
    border: 3px solid #76c0a6;
    border-top: none;
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.2);
    max-height: 250px;
    width: max-content;
    overflow: auto;
}

.nav-dropdown:hover div {
    display: block;
}

.nav-dropdown div a {
    padding: 10px;
    font-size: 16px;
    color: #222222;
    display: flex;
    align-items: center;
}

.nav-dropdown span {
    margin-right: 5px;
}

.nav-dropdown a:hover {
    background-color: #c1e2d7;
}

/* ----- TABLE STYLING ----- */

table {
    background-color: #1c1c1c91;
    margin-top: 60px;
    /* border: solid 2px #515151; */
    border: solid 2px #2C3532;
    padding: 0 10px;
    padding-bottom: 15px;
    width: 100%;
    border-radius: 8px;
}

th div, td div, th p {
    display: flex;
    align-items: center;
    /* font-size: 16.5px; */
}

/* th div span, td div span {
    margin-right: 5px;
} */

/* tbody tr td {
    padding-left: 4px;
} */

tbody tr td:last-child {
    text-align: right; /* Originally set to 'center'. See how it looks on laptop. */
    /* vertical-align: middle; */ /* I may not need this line. I'll remove it if the buttons display fine on my laptop. */
}

tbody tr td a, div a {
    color: #5091af;
}

tbody tr td a:hover {
    transform: scale(1.02);
}

td button, .filter div button {
    /* display: flex;
    align-items: center; */
    margin-left: -5px;
    font-size: 18px;
    background-color: transparent;
    color: #5091af;
    border: none;
    cursor: pointer;
}
td button:hover, td button:focus, .filter div button {
    /* transform: scale(1.03); */
    transform: scale(1.02);
}
td button:active, .filter div button {
    transform: scale(1);
}
/* td button span:hover, td button span:focus {
    transform: scale(1.02);
} */

tfoot tr td {
    padding-top: 15px;
}

tfoot tr td button {
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #5091af;
    /* color: #459162; */
}

tfoot tr td button span {
    /* margin-left: -5px; */
    margin-right: 5px;
    font-size: 22px!important;
}

/* ----- FORM STYLING ----- */

.pop-up {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #0e0f0e9d; 
    /* background-image: linear-gradient(to right, #0e0f0ece, #0e0f0e9d, #0e0f0ece); */
}

.form-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* max-height: 700px; */
    max-height: 65%;
    border-radius: 8px;
    padding: 40px;
    padding-top: 20px;
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.2);
    overflow-y: scroll;
    /* scrollbar-width: none; */
    /* background-color: #bdcfc9; */
    background-image: url(../images/white-form-bg.png);
}
.form-card::-webkit-scrollbar {
    display: none;
}

.notice {
    font-size: 14px;
    font-style: italic;
    color: #333333;
}

.notice2 {
    font-size: 14px;
    color: #333333;
}

form {
    display: flex;
    flex-direction: column;
    /* gap: 35px; */
}

form div {
    display: flex;
    align-items: center;
}

.title {
    margin-bottom: -20px;
}

form div span {
    margin-right: 10px;
    /* color: gray; */
    color: #242424;
    /* margin-top: 25px; */
    margin-bottom: 15px;
}

form div label, form label {
    /* color: gray; */
    color: #242424;
    font-size: 20px;
    margin-right: 5px;
    /* margin-top: 25px; */
    margin-bottom: 15px;
    font-weight: 500;
}

form select {
    font-size: 16px;
    background-color: transparent;
    color: #2f2f2f;
    border-top: none;
    border-left: none;
    /* border: none; */
    /* border: 1px solid #515151; */
    border: 1px solid #242424;
    border-radius: 4px;
    margin-right: 20px;
    /* margin-top: 10px; */
    padding: 3px 3px;
    width: min-content;
    margin-bottom: 15px;
    cursor: pointer;
    /* -webkit-appearance: none; */
    /* -moz-appearance: none; */
    /* text-overflow: ''; */
}

form input[type=checkbox] {
    margin-bottom: 19px;
    margin-right: 6px;
}

form input[type=text], input[type=password], input[type=tel] {
    border: none;
    border-bottom: 1px solid #515151;
    background-color: transparent;
    font-size: 20px;
    width: min-content;
    margin-right: 20px;
    margin-bottom: 20px;
    color: #2f2f2f;
}

form input[type=text]:focus, input[type=password]:focus, input[type=tel]:focus {
    /* transform: scale(1.03); */
    transform: scale(1.01);
    border: 0px solid #52af8e;
    border-bottom-width: 1px;
    outline: none;
}

input[type=text]:disabled, input[type=tel]:disabled, select:disabled {
    color: #6a6a6a;
}

input[type=text]:disabled:hover, input[type=tel]:disabled:hover, select:disabled:hover {
    cursor: not-allowed;
}

.form-close {
    margin-left: 100%;
    border: none;
    background-color: transparent;
}
.form-close:hover {
    cursor: pointer;
    /* transform: scale(1.03); */
    transform: scale(1.01);
}
.form-close:active {
    transform: scale(1);
}

form input[type=submit], button[name="submitBtn"], div[name="submitBtn"], .submit {
    font-size: 18px;
    background-image: linear-gradient(to right, #52af8e, #52af8ed2);
    padding: 10px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    align-content: center;
    /* margin-bottom: -60px; */
}
form input[type=submit]:hover, button[name="submitBtn"]:hover, div[name="submitBtn"]:hover, .submit:hover {
    /* transform: scale(1.03); */
    transform: scale(1.01);
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.2);
}
form input[type=submit]:active, button[name="submitBtn"]:active, button[name="submitBtn"]:active, .submit:active {
    box-shadow: none;
    transform: scale(1.0);
}

form input[type=time]{
    height: 27px;
    width: 145px;
    border: 1px solid #515151;
    border-radius: 4px;
    background-color: #51515111;
    margin-right: 20px;
    font-size: 20px;
    margin-bottom: 20px;
}
form input[type=time]:focus{
    outline: none;
}

form input[type=number]{
    padding-left: 5px;
    margin-right: 20px;
    height: 25px;
    width: 50px;
    border: 1px solid #515151;
    border-radius: 4px;
    background-color: #51515111;
    font-size: 20px;
    margin-bottom: 15px;
}
form input[type=number]:focus{
    outline: none;
}

.timeButton {
    font-size: 18px;
    cursor: pointer;
}

form textarea {
    background-color: #51515111;
    /* color: white; */
    resize: none;
    outline: none;
    padding: 5px;
    border: 1px solid #515151;
    border-radius: 4px;
    height: 150px;
    margin-bottom: 20px;
    /* margin-top: -25px; */
}

/* select:focus {
    outline: none;
} */

.graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(/static/images/white-form-bg.png);
    padding: 10px 25px 10px 25px;
    border-radius: 8px;
    width: 25%;
}

.filter {
    background-color: #1c1c1c91;
    margin-top: 60px;
    border: solid 2px #2C3532;
    padding: 0 10px;
    margin-bottom: 40px;
    border-radius: 8px;
    display: flex;
    gap: 50px;
}

.filter div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter div input {
    height: 20px;
    border-width: 0;
    border-radius: 4px;
    padding: 2px;
}

.filter div select {
    border-width: 0;
    border-radius: 4px;
    padding: 4px;
}

.reportTable {
    border-width: 0px;
    margin-top: 0px;
    font-size: 12px;
    background: none;
    /* border: 1px solid black; */
    /* padding: 5px; */
}

.textChart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.textChart p {
    margin-bottom: -10px;
}