:root {
    --box-shadow: 0 0.125rem 0.25rem #42443f40;
    --primary-color: rgba(245, 138, 7, 0.5);
    --primary-color-75: rgba(245, 138, 7, 0.75);
    --primary-color-100: rgba(245, 138, 7, 1);
}

html {
    font-family: "Roboto Mono", "Cascadia Code", "Consolas", "Courier New",
        monospace;
    font-size: 20px;
}
body {
    margin: 0 0 4rem 0;
    font-weight: 400;
    color: #42443f;
}

header {
    background-color: #ffffff;
    border-color: var(--primary-color);
    border-bottom: 2px solid #42443f7f;
    margin: 0;
    padding-left: 0.5rem;
}

header div#logo {
    letter-spacing: 0.25rem;
}

main {
    margin: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

h1 {
    font-family: Pacifico;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}

h3 {
    font-weight: 700;
    color: #42443f;
    font-size: 1.5rem;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

table {
    border-color: #fbf9ff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background-color: #fbf9ff;
    width: 100%;
    box-shadow: var(--box-shadow);
}

table div.order-headers {
    padding: 0.5rem;
}

table#menu-table {
    table-layout: auto;
    box-shadow: unset;
}

table#menu-table th div.menu-headers {
    padding: 0.5rem;
}

table#summary-table th,
table#summary-table td {
    text-align: center;
    border-right: 1px solid #c0bec4;
    min-width: 6rem;
}

table#summary-table th:last-child,
table#summary-table td:last-child {
    border-right: unset;
}

table,
th,
td {
    table-layout: auto;
    border-collapse: collapse;
    text-align: center;
    margin-top: 1rem;
    color: #42443f;
    font-size: 1rem;
}

tbody#order-data-body td select,
tbody#order-data-body td i.fa-print,
td.menu-price {
    cursor: pointer;
}

th {
    background-color: #c0bec4;
}

th div.order-headers,
th div.menu-headers {
    display: flex;
    flex-direction: column;
    align-items: center;
}

th:first-child {
    border-top-left-radius: 1rem;
}

th:last-child {
    border-top-right-radius: 1rem;
}

th,
td {
    padding: 0.5rem 1rem 0.5rem 1rem;
    height: 2.5rem;
}

tr:nth-child(even) {
    background-color: #f0eef5;
}

tr:hover {
    background-color: #e3e1e7;
}

form#orderForm label,
form#updateForm label {
    display: inline-block;
    width: 10rem;
    text-align: right;
}

form#orderForm div.payment-options label,
form#updateForm div.payment-options label {
    display: unset;
    width: unset;
    text-align: unset;
}

form {
    display: inline-block;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}

form p {
    align-content: center;
}

input[type="number"] {
    font-size: 1rem;
    height: 2rem;
    box-sizing: border-box;
    margin-left: 0.25rem;
    color: var(--primary-color-75);
    border: 2px solid #c0bec4;
}

form input[type="datetime-local"],
form input[type="text"] {
    font-size: 1rem;
    color: var(--primary-color-75);
    width: 16rem;
    height: 2rem;
    box-sizing: border-box;
    border: 2px solid #c0bec4;
    margin-left: 0.25rem;
}

input[type="radio"] {
    height: 1rem;
    width: 1rem;
    font-size: 1rem;
    vertical-align: text-top;
}

input:-webkit-autofill {
    -webkit-text-fill-color: var(--primary-color-75);
}

input::-webkit-datetime-edit {
    font-size: 1rem;
    font-family: "Roboto Mono", "Cascadia Code", "Consolas", "Courier New",
        monospace;
}

input#newItemName,
input#newCategoryName,
input#newUnit,
td.menu-price input {
    border: 0;
    background-color: inherit;
    margin-left: 0.5rem;
    padding: 0;
    text-align: center;
    width: inherit;
}

input[name="discount"] {
    width: 3.5rem;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 0.25rem;
}

button {
    font-family: "Roboto Mono", "Cascadia Code", "Consolas", "Courier New",
        monospace;
    font-size: 1rem;
    color: #f7f5fb;
    background-color: #084887;
    border: 1px solid #084887;
    border-radius: 2rem;
    min-width: 10rem;
    cursor: pointer;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
}

button:hover:enabled {
    background-color: #2a86c9;
    border: 1px solid #2a86c9;
    border-radius: 2rem;
    min-width: 10rem;
}

select {
    font-size: 1rem;
    width: 16rem;
    height: 2rem;
    box-sizing: border-box;
    border: 2px solid #c0bec4;
    margin-left: 0.25rem;
    -webkit-appearance: none;
    padding-left: 0.25rem;
}

tbody#order-data-body select,
tbody#order-archive-body select {
    border: 0;
    margin-left: unset;
    padding-left: unset;
    text-align: center;
    background-color: inherit;
    color: #42443f;
    width: 8rem;
    font-family: "Roboto Mono", "Cascadia Code", "Consolas", "Courier New",
        monospace;
}

img.cash-icon {
    width: 1.75rem;
    height: 1.75rem;
}

img.etransfer-icon {
    width: 1.5rem;
    height: 1.5rem;
}

div {
    display: inline-block;
}

address {
    font-style: normal;
}

td.menu-name i,
label i {
    color: var(--primary-color);
}

div#order-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

button:disabled {
    opacity: 0.3;
}

hr {
    border: 1px solid #c0bec4;
}

span.responseMsg[msg="ok"] {
    color: #43a047;
}

span.responseMsg[msg="error"] {
    color: #e53935;
}

span.responseMsg i {
    margin-left: 0.5rem;
}

span[name="amtValue"] {
    display: inline-block;
    min-width: 3.5rem;
    height: 2rem;
    box-sizing: border-box;
    align-content: center;
    padding-top: 1px;
    padding-bottom: 1px;
}

span.totalNum {
    display: inline-block;
    min-width: 3.5rem;
    height: 2rem;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    border: 2px solid;
    text-align: left;
    box-sizing: border-box;
    align-content: center;
}

p.discountNode {
    text-align: right;
}

p.discountNode label {
    /* Uniform size & alignment */
    all: unset;
}

p.totalNode {
    text-align: right;
    color: var(--primary-color-75);
}

div#newFormDiv,
div#updateFormDiv {
    flex: 1;
}

div#sell-items {
    margin-left: 2rem;
    margin-right: 2rem;
}

div#orderHeaders {
    display: flex;
    width: 100%;
}

div.header {
    justify-content: center;
}

div#updateFormDiv {
    display: none;
}

div.buttons-set {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
}

div#orderHeaders div {
    margin: 0rem 1rem 1rem 1rem;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    background-color: rgba(245, 138, 7, 0.5);
    color: #42443f;
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 0.5rem;
}

div#orderHeaders div[state="active"] {
    background-color: rgba(245, 138, 7, 0.5);
}

div#orderHeaders div[state="inactive"] {
    background-color: rgba(245, 138, 7, 0.1);
    color: #42443f1a;
}

div#new-order[state="inactive"]:hover {
    background-color: rgba(245, 138, 7, 0.3);
    color: #42443f7f;
    cursor: pointer;
}

div#date-filter-tabs {
    display: flex;
    margin: 1rem 1rem 1rem 1rem;
}

.filter-tab {
    border: 2px, solid, rgba(245, 138, 7, 0.1);
    box-shadow: 1px 1px 2px rgba(245, 138, 7, 0.1);
    border-radius: 0.5rem;
    margin-right: 2rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    color: #42443f40;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.filter-tab:hover {
    border: 2px, solid, rgba(245, 138, 7, 0.5);
}

.filter-tab[highlighted] {
    border: 2px, solid, rgba(245, 138, 7, 1);
    box-shadow: 1px 1px 2px rgba(245, 138, 7, 0.1);
    font-weight: 800;
    color: #42443f;
}

.print-tab {
    border: 1px solid #084887;
    background-color: #084887;
    border-radius: 0.5rem;
    margin-right: 2rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    color: #f7f5fb;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.print-tab:hover {
    background-color: #2a86c9;
    border: 1px solid #2a86c9;
}

div.container {
    display: flex;
}

div#logo,
div.navigation {
    display: flex;
    align-items: center;
}

div.navigation ul {
    display: flex;
    list-style-type: none;
    font-size: 1.5rem;
    margin: 0;
}

div.navigation ul li {
    margin: 0 1rem 0 1rem;
    padding: 0 0.5rem 0 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

div.navigation ul li:hover {
    background-color: rgba(245, 138, 7, 0.3);
}

div.navigation ul li[active] {
    color: var(--primary-color);
}

div#container-order,
div#container-menu,
div#container-analytic {
    flex-direction: column;
    align-items: center;
}

i.fa-trash {
    opacity: 0.3;
}

i.fa-trash:hover {
    opacity: 1;
}

td.menu-name i.fa-trash {
    margin-left: 0.5rem;
}

div.flex-row {
    display: flex;
    flex-flow: row;
}

div.flex-wrap {
    flex-wrap: wrap;
}

div.flex-col {
    display: flex;
    flex-direction: column;
}

div#sell-revenue-summary-container,
div#container-archive,
div.order-table {
    margin: 0 2rem 1rem 2rem;
}

div#sell-revenue-summary-container div.summary-card {
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1rem 2rem 1rem 0rem;
    padding: 1rem;
    color: #333;
    cursor: pointer;
    min-width: 8rem;
    transition: background-color 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

div#sell-revenue-summary-container div.summary-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.2rem;
    background: linear-gradient(
        to right,
        rgba(245, 138, 7, 0.5),
        rgba(245, 138, 7, 0.8)
    ); /* Primary color gradient */
    border-radius: 0.5rem 0.5rem 0 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

div#sell-revenue-summary-container div.summary-card:hover:before {
    opacity: 1;
}

div#sell-revenue-summary-container div.summary-card:hover {
    background-color: #e5e5e5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

div#sell-revenue-summary,
div#sell-revenue-total-summary {
    justify-content: center;
}

div#sell-revenue-total-summary div.summary-card {
    max-width: unset;
    flex: unset;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    div#summary-main-total {
        font-size: 2rem;
        margin-left: 2rem;
    }
    div#summary-main-date {
        font-size: 2rem;
    }
    img#etransfer-icon {
        height: 1.5rem;
        width: 1.5rem;
    }
}

div#date-summary-main,
div#date-summary-details,
div#date-summary-orders,
div#date-summary-payment,
div.summary-details {
    flex: 1;
    align-items: center;
}

div#summary-main-date,
div#summary-main-total {
    flex: 1;
    align-items: center;
}

div#summary-main-date {
    color: #42443fbf;
    font-size: 1.25rem;
    flex: 1;
}

div#summary-main-total {
    color: #00d647;
    font-size: 1.5rem;
    flex: 1;
    margin: 0 0.5rem 0 0.5rem;
}

div#date-summary-details {
    color: #42443fbf;
    margin-top: 0.5rem;
}

div.grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}

div#date-summary-orders {
    margin-right: 0.5rem;
}

div#date-summary-payment {
    margin-left: 0.5rem;
}

div.flex-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

img#etransfer-icon {
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

div.date-picker-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.date-picker-container label {
    color: #42443f;
}

.date-picker-container input[type="date"] {
    font-size: 1rem;
    color: var(--primary-color-75);
    height: 2rem;
    box-sizing: border-box;
    border: 2px solid #c0bec4;
    margin-left: 0.25rem;
}

#container-inventory {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    max-width: 50%;
    padding: 1rem;
    background-color: #ffff;
}

.inventory-tile {
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    width: 12rem;
    height: 12rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.inventory-text {
    font-size: 4rem;
    font-weight: bold;
    color: #ffff;
    transition: opacity 0.3s ease-in-out;
}

.inventory-text:focus {
    outline: none;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #333;
}

.inventory-tile:hover {
    transform: scale(1.05);
    box-shadow: 0px 0.125rem 0.25rem rgba(66, 68, 63, 0.2);
    cursor: pointer;
}
.inventory-form {
    text-align: center;
}
.inventory-form span {
    color: #ffff;
}

.inventory-form input[type="number"] {
    width: 5rem;
    margin: 1rem 1rem 1rem 1rem;
}

.confirm-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fbf9ff;
    padding: 2rem;
    border-radius: 0.5rem;
    z-index: 1001;
    text-align: center;
}

.confirm-form p {
    margin-bottom: 1rem;
}

.dimmed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #42443fbf;
    z-index: 900;
}

tr[status="Done"] td {
    color: #42443f40;
}

tr[status="Done"] i.fa-square-check {
    color: #00d647;
    font-size: 1.15rem;
}

tr[status="Done"] img {
    opacity: 0.5;
}

table#summary-table .cooked {
    color: #f51307bf;
}

table#summary-table .frozen {
    color: #0772f5bf;
}

table#summary-table .total {
    color: var(--primary-color-75);
}

table#summary-table span[value="0"] {
    color: #42443f1a;
}

table#summary-table th {
    position: sticky;
    top: 0;
}

table#summary-table {
    i {
        font-size: 0.75rem;
    }
}

table#summary-table,
table#print-table-date,
table#print-table-hour {
    th,
    td {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
}

@media print {
    table#print-table-date,
    table#print-table-hour {
        th,
        td {
            text-align: center;
            border-right: 1px solid #c0bec4;
            border-bottom: 1px solid #c0bec4;
            min-width: 6rem;
        }

        th:last-child,
        td:last-child {
            border-right: unset;
        }
        span[value="0"] {
            color: #42443f1a;
        }
        i {
            font-size: 0.75rem;
        }
    }
    body {
        zoom: 70%;
    }
}

span.print-status {
    background-color: var(--primary-color);
    box-shadow: 1px 1px 2px rgba(245, 138, 7, 0.1);
    border-radius: 0.5rem;
    padding: 0.05rem 0.15rem 0.05rem 0.15rem;
}

tbody#order-data-body td select:hover,
tbody#order-data-body td i.fa-print:hover {
    color: var(--primary-color);
}

.center-container {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-family: "Roboto Mono", "Cascadia Code", "Consolas",
        "Courier New", monospace;
}

.center-container .center-card {
    display: flex;
    flex-direction: column;
    min-width: 25rem;
    min-height: 25rem;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}

.center-container .center-card form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem 1rem 1rem;
    flex-grow: 1;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('login-bg.png');
    background-size: cover;
    background-position: center;
}

.center-container .center-card input {
    font-size: 1rem;
    color: rgba(245, 138, 7, 0.75);
    width: 80%;
    height: 2rem;
    box-sizing: border-box;
    border: 2px solid #c0bec4;
    margin-left: 0.25rem;
    margin-bottom: 2rem;
}

.center-container .center-card button[type="submit"] {
    font-family: "Roboto Mono", "Cascadia Code", "Consolas",
        "Courier New", monospace;
    font-size: 1rem;
    color: #f7f5fb;
    background-color: #084887;
    border: 1px solid #084887;
    border-radius: 2rem;
    width: 80%;
    cursor: pointer;
    margin: 0 0.5rem 2rem 0.5rem;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
}

.center-container .center-card button[type="submit"]:hover {
    background-color: #2a86c9;
    border: 1px solid #2a86c9;
    border-radius: 2rem;
    min-width: 10rem;
}

.center-container .center-card span.header {
    text-align: center;
    margin-bottom: 1rem;
    box-sizing: border-box;
    font-family: Pacifico;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color-100);
    letter-spacing: 0.25rem;
}

.center-container .center-card div {
    color: var(--primary-color-100);
    text-align: center;
    margin-bottom: 2rem;
}

.center-container .center-card div.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem 1rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('login-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
}