@font-face {
    font-family: OpenSans;
    src: url(/font/OpenSans-VariableFont_wdth\,wght.ttf);
}

:root {
    --color-1: #003a2c;
    --color-2: #d6bd79;
    /* --color-2: rgb(80, 80, 80); */
    --color-3: #0d6efd;
    --color-4: #198754;
    --color-5: #dc3545;

}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

th,
td {
    text-align: start !important;
}

* {
    margin: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    scroll-behavior: smooth;
    transition: .2s ease-in-out;
    font-family: OpenSans !important;
}

.adjust {
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-adjust {
    width: 100%;
    background: transparent;
    height: 75px;
}

.page-header {
    background: var(--color-1);
    color: white;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
}

.date-input {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    outline: none;
    border: .5px solid lightgray;
}

/* sidebar and main content */
.main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.sidebar {
    width: 25%;
    height: 100dvh;
    background: var(--color-1);
    overflow-y: scroll;
}

.sidebar .navbar-logo {
    display: block;
    width: 200px;
    margin: 10px auto 0 auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    font-weight: 400;
    padding: 15px 25px;
    letter-spacing: 3px;
    color: white;

    &:not(.sidebar-active):hover {
        background: var(--color-2);
        color: black;
    }
}

.sidebar-active {
    background: var(--color-2);
}

.content {
    width: 75%;
    height: 100dvh;
    overflow-y: scroll;
}

/* sidebar and main content end*/

/* navbar */
.navbar-logo {
    width: 65px;
}

.custom-navbar {
    width: 100%;
    padding: 0 1%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 98;
    background: var(--color-1);
    display: none;
    align-items: center;
    justify-content: space-between;
}

#sidebar-open-button {
    width: 55px;
    height: 55px;
}

#sidebar-close-button {
    font-size: 55px;
    color: white;
    font-weight: 1000;
}

.hidden-sidebar {
    width: 100%;
    height: 100dvh;
    background: var(--color-1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transform: translateX(100vw);
    display: none;
    transition: .8s ease-in-out;
}

.hidden-sidebar-top {
    width: 100%;
    height: 70px;
    background: var(--color-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1%;
    border-bottom: .5px solid var(--color-2);
}

.sidebar-open {
    display: block !important;
}

/* navbar end */

.open-modal-button {
    display: block;
    width: max-content;
    outline: none;
    border: none;
    border-radius: 5px;
    background: var(--color-3);
    color: white;
    font-family: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    &:hover {
        background: #198754;
    }
}

.table-edit-modal-button {
    display: block;
    width: max-content;
    border-radius: 5px;
    background: var(--color-4);
    color: white;
    outline: none;
    border: none;

    &:disabled {
        background: var(--color-5);
    }
}

.sale-history-card {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid var(--color-2);
}

.sale-history-card li {
    font-weight: 600;
    font-size: 18px;
}

.sale-history-card>p {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: var(--color-2);
    text-decoration-thickness: 2px;
}

/* loader */

.loader-container {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.7);
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 40px;
    aspect-ratio: 1;
    color: var(--color-1);
    position: relative;
    background: radial-gradient(10px, currentColor 94%, #0000);
}

.loader:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(9px at bottom right, #0000 94%, currentColor) top left,
        radial-gradient(9px at bottom left, #0000 94%, currentColor) top right,
        radial-gradient(9px at top right, #0000 94%, currentColor) bottom left,
        radial-gradient(9px at top left, #0000 94%, currentColor) bottom right;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    animation: l18 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l18 {
    33% {
        inset: -10px;
        transform: rotate(0deg)
    }

    66% {
        inset: -10px;
        transform: rotate(90deg)
    }

    100% {
        inset: 0;
        transform: rotate(90deg)
    }
}

/* loader end */

@media (max-width:1200px) {
    .custom-navbar {
        display: flex;
    }

    #sidebar-logo {
        display: none;
    }

    .page-header {
        margin-top: 75px !important;
    }

    .content {
        width: 100%;
        height: max-content;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width:576px) {
    .sale-history-card li {
        font-size: 14px;
    }
}