body {
    font-family: Arial, Helvetica, sans-serif;
}

#revenueTable td, #revenueTable th {
    text-align: start;
    width: 9rem;
    border: 1px solid #ccc;
    padding: 0.3rem;
}

#revenueTable td[colspan="2"] {
    width: 18rem;
}

#revenueTable {
    border-collapse: collapse;
    table-layout: auto;
}

#revenueTable th {
    background-color: #007BFF;
    font-weight: normal;
    color: white;
    border: 1px solid #ccc;
}

.tablecolumn form {
    margin: 0 auto;
}

.tablecolumn select {
    margin-bottom: 0;
    width: 9rem;
    text-align-last: center;
}

#revenueTable tr:nth-child(even){background-color: #f2f2f2;}

#revenueTable tr:hover {background-color: #eaeaea;}

.center {
    margin: 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 20rem;
}

button, input[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

.tables {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-direction: row;
}

.tablecolumn {
    display: flex;
    flex-direction: column;
    align-items: end;
}

@media screen and (max-width: 768px) {
    .tables {
        flex-direction: column;
        align-items: center;
    }
    .tablecolumn {
        align-items: center;
    }
    .center {
        margin: 2rem 1rem;
    }
}

.uploaded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 8rem 4rem;
}


.tablecolumn * {
    margin: 2rem 4rem;
}



.uploaded h2 {
    margin: 0;
}

.centercolumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.error-message {
    background-color: #fd9393;
    color:red;
    font-weight: bold;
    border: red;
    border-radius: 25px;
    padding: 0.5rem;
    margin: 1rem 0;
    width: 30%;
    text-align: center;
    font-size: 1.2rem;
    border: 3px solid red;
}

.rowdiv {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}