button, input[type="submit"] {
    height: 2em;
    background-color: #e61717;
    color: #dedede;
}

.login-body {
    display: flex;
    flex-direction: column;
    height: 90vh;
    width: 99vw;
    align-items: center;
    justify-content: center;
}

#login-form {
    display: flex;
    flex-direction: column;
    padding: 2em;
    background-color: #ee4444;
    border-radius: 2em;
    min-width: 30%;
}

#login-form > * {
    margin: 1em;
}

#login-form > div {
    display: flex;
    flex-direction: column;
}

.main-view {
    display: flex;
    flex-direction: row;
}

.sidebar {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    min-height: 95vh;
    background-color: #e61717;
    border-radius: 0.25em;
}

.sidebar a {
    text-decoration: none;
    color: #dddddd;
    padding: 1em 0.5em;
    width: 80%;
}

.sidebar a::hover {
    background-color: #bbbbbb;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 7;
    padding: 1em;
    background-color: #dedede;
    width: 100%;
}

.logout {
    display: flex;
    justify-content: end;
}

.performance-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.performance-content > * {
    border-style: groove;
    flex: 1;
}

.pos-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.inventory {
    display: flex;
    flex-direction: column;
    flex: 2;
    width: 80%;
    align-items: center;
}

.inventory > * {
    width: 90%;
}

#results {
    padding: 0.5em;
    display: flex;
    flex-direction: column;
}

.result-item {
    padding: 0.25em;
    margin: 0.25em;
    display: flex;
    flex-direction: row;
    border-radius: 0.2em;
    background-color: #ffffff;
}

.result-item > div {
    display: flex;
    flex-direction: column;
    flex: 5;
}

.result-item > button {
    flex: 1;
}


.cart {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.5em;
    margin: 0.5em;
    background-color: #ffffff;
    border-radius: 0.5em;
    height: fit-content;
}

.cart > h5 {
    color: #ee4444;
}

.cart-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cart-item {
    margin: 0.25em;
    padding: 0.25em;
    display: flex;
    flex-direction: row;
    background-color: #ddddee;
}

.cart-item > * {
    flex: auto;
    margin: 0.5em;
}

.cart-item-price {
    text-align: right;
}

.cart-item-buttons {
    display: flex;
    flex-direction: row;
}

.cart-total {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 0.5em 0;
}

.cart-total > * {
    flex: auto;
}

.cart-total > div:nth-child(2) {
    text-align: right;
}

/*styles specific to inventory.php*/
.inventory-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.add-inventory {
    display: flex;
    flex-direction: column;
    padding: 0.5em;
}

#insert-form {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0.2em;
}

#insert-form > * {
    flex: 1;
}

.add-inventory input {
    width: 90%;
}

.view-inventory {
    padding: 0.5em;
    width: 100%;
}

.view-inventory table {
    width: 100%;
}

.view-inventory table thead {
    color: #dddddd;
    background-color: #000000;
}

.view-inventory table td, .view-inventory table th {
    padding: 0.5em;
}

.color-success {
    background-color: #44ee44;
}

.color-fail {
    background-color: #ee4444;
}

.report-content {
    display: flex;
    flex-direction: row;
    padding: 1em;
    flex: 1;
    max-height: fit-content;
    justify-content: center;
    align-items: center;
}

.report-content > button {
    height: fit-content;
    flex: 1;
    margin: 2em;
}

.modal {
    position: fixed;
    top: 25%;
    left: 25%;
    width: 50%;
    height: fit-content;
    padding: 2em;

    background: rgba(0, 0, 0, 0.75);

    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 1);
    padding: 2em;
    border-radius: 0.75em;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-body * {
    margin: 0.5em;
}

.modal-body > div {
    display: flex;
    flex-direction: row;
}

.modal-body > div > * {
    flex: 1;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    padding: 1em;
}

.modal-actions > * {
    flex: 1;
}