body {
    --color-primary: #009579;
    --color-primary-dark: #007f67;
    --color-secondary: #252c6a;
    --color-error: #cc3333;
    --color-success: #4bb544;
    --border-radius: 4px;

    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: url(/images/bg.jpg);
    background-size: cover;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    max-width: 400px;
    margin: 1rem;
    padding: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    background: #ffffff;
}

.container,
.form__input,
.form__button {
    font: 500 1rem 'Quicksand', sans-serif;
}

.form--hidden {
    display: none;
}

.form > *:first-child {
    margin-top: 0;
}

.form > *:last-child {
    margin-bottom: 0;
}

.form__title {
    margin-bottom: 2rem;
    text-align: center;
}

.form__message {
    text-align: center;
    margin-bottom: 1rem;
}

.form__message--success {
    color: var(--color-success);
}

.form__message--error {
    color: var(--color-error);
}

.form__input-group {
    margin-bottom: 1rem;
}

.form__input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
    border-radius: var(--border-radius);
    border: 1px solid #dddddd;
    outline: none;
    background: #eeeeee;
    transition: background 0.2s, border-color 0.2s;
}

.form__input:focus {
    border-color: var(--color-primary);
    background: #ffffff;
}

.form__input--error {
    color: var(--color-error);
    border-color: var(--color-error);
}

.form__input-error-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-error);
}

.form__button {
    width: 100%;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
    cursor: pointer;
    background: var(--color-primary);
}

.form__button:hover {
    background: var(--color-primary-dark);
}

.form__button:active {
    transform: scale(0.98);
}

.form__text {
    text-align: center;
}

.form__link {
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
}

.form__link:hover {
    text-decoration: underline;
}

.banner img {
    width: 100%;
    height: 100%;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: darkcyan;
    color: white;
    z-index: 999;
}

.top-bar nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar nav a {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    font-size: 1.2em;
}

.order-number-cell {
    padding-right: 10px;
    margin-right: 10px;
}

#orderTableContainer {
    overflow-x: auto; /* Enable horizontal scrolling */
}

#orderTable {
    margin-top: 100px;
    margin-left: 50px; /* Move the table to the right */
    margin-bottom: 100px;
    border-collapse: collapse; /* Remove the border between cells */
    width: 95%; /* Set the table width to 100% */
}

#orderTable th {
    background-color: #ddd; /* Add background color to the table header */
    font-weight: bold;
    text-align: left;
}

#orderTable th:first-child {
    cursor: default; /* First header column has default cursor */
}

#orderTable th:not(:first-child) {
    cursor: pointer; /* Other columns have pointer cursor */
}

#orderTable th,
#orderTable td {
    border: 1px solid #ccc; /* Add a border to table cells */
    padding: 8px;
}

#tableWrapper {
    height: 200px; /* Set the height of the wrapper element to 95% of the viewport height */
    width: 100%;
}

button#submit {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.popup-content {
    background-color: white;
    border-radius: 5px;
    border: 10px solid blue; /* New border rule */
    padding: 20px;
}

#okButton,
#cancelButton,
#deleteDeleteButton,
#deleteCancelButton,
#confirmButton,
#cancelConfirmButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    display: block;
    margin: auto;
}

#deleteDeleteButton,
#confirmButton {
    background-color: green;
}

.selectorPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 200px;
    display: none;
    border-radius: 10px;
    transform: translate(-50%, -50%);
}

.selectorPopupContent {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 5px;
    border: 10px solid blue; /* New border rule */
}

#selectorPopupCancelButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    align-self: flex-end; /* align the button to the bottom of the container */
    justify-self: flex-end; /* align the button to the right of the container */
    position: absolute; /* position the button relative to the container */
    bottom: 0; /* position the button at the bottom of the container */
    right: 0; /* position the button at the right of the container */
    margin: 10px; /* add some margin to the button */
}

.order-table,
.item-table,
.reportTable,
.report-table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.order-table th,
.item-table th,
.reportTable th,
.report-table th,
.order-table td,
.item-table td,
.reportTable td,
.report-table td {
    text-align: left;
    padding: 8px;
}

.order-table th,
.item-table th,
.reportTable th,
.report-table th {
    background-color: #0070c0;
    color: white;
}

.order-table tr:hover,
.item-table tr:hover {
    background-color: #ddd;
}

.report-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -0%);
    background-color: lightgoldenrodyellow;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 75%;
    border: 4px solid black;
    font-weight: bold;
}

.report-popup .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    cursor: pointer;
    color: firebrick;
}

.spinner .spinner-icon {
    animation: spinner-rotate 1s infinite linear;
}

.spinner {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner.animate {
    animation-name: spin;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.lightgreen-background {
    background-color: lightgreen !important;
}

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 10px; /* width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* color of the track */
}

::-webkit-scrollbar-thumb {
    background-color: blue; /* color of the thumb */
    border-radius: 5px; /* roundness of the thumb */
}

#dataTableContainer {
    height: 600px;
    width: 150%;
    margin-left: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    overflow: auto;
    scrollbar-color: lightblue #f1f1f1 !important;
}

.selected {
    background-color: #0dd;
}

/* Add these styles */
.form__input-group {
    position: relative;
}

.toggle-password::before {
    content: '\f06e'; /* FontAwesome eye icon */
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.password-input.show-password + .toggle-password::before {
    content: '\f070'; /* FontAwesome eye-slash icon */
}

.toggle-password:hover::before {
    color: #333;
}