:root {
    --green: rgb(91, 206, 170);
    --light-green: rgb(235, 250, 246);
    --grey: rgb(178, 171, 171);
    --background-green: rgb(237, 246, 222);
    --color-green: rgb(163, 221, 171);
    --background-red: rgb(253, 241, 240);
    --color-red: rgb(240, 111, 106);
    --range-purple: rgb(99, 103, 220);
    --range-powderblue: rgb(84, 197, 235);
    --range-yellow: rgb(251, 182, 73);
    --range-red: rgb(240, 89, 101);
    --light-color-red: rgb(243, 137, 133);
    --background-grey: rgb(250, 250, 250);
    --darker-background-grey: rgb(220, 220, 220);
    --color-grey: rgb(148, 148, 148);
    --light-color-grey: rgb(224, 224, 224);
    --transition-duration: 1s;
}

/* General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open sans', sans-serif;
}
.red {
    color: var(--color-red);
}
.green {
    color: var(--green);
}
.white {
    color: #FFF !important;
}
.black {
    color: #000;
}
.d-flex_ {
    display: flex !important;
}
.d-none_ {
    display: none !important;
}
.dark-background {
    background-color: #000 !important;
}
.theme-dark-background {
    background-color: #1E1E1E !important;
}
.light-background {
    background-color: var(--background-grey) !important;
}
.white-background {
    background-color: #FFF !important;
}
.theme-light-background {
    background-color: var(--background-grey) !important;
}
.dark-background,
.theme-dark-background,
.light-background,
.white-background,
.theme-light-background,
.white {
    transition: background-color var(--transition-duration), color var(--transition-duration);
}
.border-bottom-light {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.green-div {
    padding: 2px 7px;
    border-radius: 50px;
}
.red-div {
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 600;
    background-color: var(--background-red);
    color: var(--color-red);
    font-size: 12px;
}
.green-div {
    background-color: var(--background-green);
    color: var(--green);
}
.purple {
    color: var(--range-purple);
}
.light-grey {
    color: var(--light-color-grey);
}
.grey, th, .grey-600 {
    color: var(--color-grey);
}
.grey-600, .green-div {
    font-weight: 600;
    font-size: 12px;
}
.small-img {
    font-size: 10px;
}
body, .all-contain {
    width: 100vw;
    height: auto;
    display: flex;
    background-color: var(--background-grey);
    position: relative;
    margin: 0;
}
hr {
    border: 1px solid var(--light-color-grey);
    border-radius: 10px;
    margin: 20px 0;
}
.head-1, .head-2, .head-3 {
    font-weight: 600;
}
.head-1 {
    font-size: 20px;
}
.downloadIcon, #hamburger, .viewText {
    cursor: pointer;
}
.nav-icons, .viewText, #light-mode, #dark-mode, .downloadIcon {
    transition: transform 0.35s ease-in-out;
}
.nav-icons:hover, .viewText:hover, #light-mode:hover, #dark-mode:hover, .downloadIcon:hover {
    transform: scale(1.15);
}
.head-2 {
    font-size: 16px;
}
.head-3 {
    font-size: 15px;
}
p {
    font-size: 14px;
}
.weekly {
    font-size: 12px;
}
.dflex {
    display: flex;
}
.normal-padding {
    padding: 15px 20px;
}
.loading-overlay {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.99);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--green);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin .6s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.bounded {
    border: 1px solid var(--color-grey);
    border-radius: 50%;
}
.dflex-gap, .main-bottom, .analytics-flex {
    display: flex;
    gap: 15px;
}
.dflex-gap-center {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dflex-between {
    display: flex;
    justify-content: space-between;
}
.dflex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dflex-between-end {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.dflex-column-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dflex-column-between-gap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
}
.inline {
    display: inline;
}
.reduced {
    width: 2rem;
}
.graph-reduced {
    width: 6rem;
}
.block {
    display: block;
}
.mb-2_ {
    margin-bottom: 20px;
}
.mb-0_ {
    margin-bottom: 0;
}
nav.side-menu {
    width: 5%;
}
main.dashboard-section {
    width: 95%;
}
.side-menu, main.dashboard-section {
    padding: 10px;
}
.w-100 {
    width: 100%;
}
.dark-light-mode {
    padding: 7px 4px;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.weekly {
    border-radius: 50px;
    border: 1px solid var(--color-grey);
    padding: 5px 10px;
}
.active-mode {
    border: none;
    font-size: 25px;
    background-color: var(--green);
    border-radius: 50%;
    padding: 5px;
    transition: background-color 1s ease;
}
.main-right-div, .dashboard-head-div {
    flex: 3;
}
.date-div, .main-left-div {
    flex: 2;
}
.main-right-div {
    gap: 15px;
}
.main-top {
    width: 100%;
}
.top-right-div, .bottom-right-div, .bottom-left-div {
    border: 1px solid var(--light-color-grey);
    border-radius: 15px;
}
.chart-header {
    padding-top: 10px;
    padding-bottom: 10px;
}
.see-all {
    font-weight: 500;
}
.see-all, .green-color {
    color: var(--green);
}
.date-end-div {
    padding: 5px;
    border: 1px solid var(--light-color-grey);
    border-radius: 50px;
}
.orders-table, .chart-container {
    background-color: #FFF;
    width: 100%;
}
.bottom-left-div {
    background-color: #fff;
}
.top-right-div, .bottom-right-div {
    border-radius: 15px;
    background-color: #FFF;
    padding: 20px
}
.analytics-box {
    flex: 1;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #FFF;
    padding: 15px;
    border: 1px solid var(--light-color-grey);
}
.analytics {
    background-color: lemon;
}
img:hover, #light-mode:hover, #dark-mode:hover, #close-overlay:hover {
    cursor: pointer;
}
table {
    width: 100%;
    padding: 10px;
}
th, td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
}
tr,  thead tr {
    border-bottom: 1px solid var(--background-grey);
}
tr:last-of-type {
    border-bottom: none;
}
.platform-amount {
    color: var(--color-grey);
    font-weight: 500;
    font-size: 15px;
}
.bottom-bottom-left {
    overflow-y: auto;
}
input[type="range"].book-range::-moz-range-thumb {
    background-color: var(--range-purple);
}
input[type="range"].book-range {
    accent-color: var(--range-purple);
}
input[type="range"].artisan-range::-moz-range-thumb {
    background-color: var(--range-powderblue);
}
input[type="range"].artisan-range {
    accent-color: var(--range-powderblue);
}
input[type="range"].toy-range::-moz-range-thumb {
    background-color: var(--range-yellow);
}
input[type="range"].toy-range {
    accent-color: var(--range-yellow);
}
input[type="range"].xstore-range::-moz-range-thumb {
    background-color: var(--range-purple);
}
input[type="range"].xstore-range {
    accent-color: var(--range-red);
}
.search-div {
    position: relative;
    width: 300px;
    color: var(--color-grey);
    background-color: #fff;
    border:none;
    border-radius: 50px;
}
#main-search {
    padding: 10px 4px 10px 40px;
    border: 1px solid var(--light-color-grey);;
    width: 100%;
    border-radius: 50px;
    color: var(--color-grey);
}
#main-search:focus {
    border: none;
}
.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}
.vy {
    vertical-align: middle;
}
.total-order-text, .email {
    color: var(--color-grey)
}
.circular {
    border: 1px solid var(--light-color-grey);
    border-radius: 50%;
    padding: 5px;
}
.circular:hover, span.material-symbols-outlined {
    cursor: hover;
}
#invoice-overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: rgba(200, 200, 200, .1);
    z-index: 100;
}
.form-div {
    width: 400px;
    border-radius: 15px;
    border: none;
    background-color: rgb(20, 20, 20);
    color: #fff;
    padding: 15px;
}
.form-div input {
    border: none;
    background-color: rgb(60, 60, 60);
    color: #FFF;
    padding-left: 10px;
    border-radius: 10px;
}
.label-input-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
#close-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
}
.hamburger {
    display: none;
    align-self: center;
    vertical-align: middle;
    font-size: 36px;
}
.block {
    display: block;
}

@media (max-width: 999px) {
    body {
        padding: 0;
    }
    .search-div, .date-div {
        display: none;
    }
    .main-right-div {
        margin-bottom: 15px;
    }
    .bottom-right-div {
        margin-bottom: 0;
    }
    nav.side-menu {
        position: absolute;
        left: -100%;
        width: 80%;
        text-align: center;
        padding: 30px auto;
        transition: transform 1s ease-in-out;
        z-index: 1000;
        background-color: var(--background-grey);
        gap:20px;
    }
    .nav-icons {
        width: 40px;
    }
    .inactive-mode {
        font-size: 30px;
    }
    .active-mode {
        font-size: 20px;
        padding: 5px;
    }
    main.dashboard-section {
        width: 100%;
    }
    nav.side-menu.shownav {
        transform: translateX(120%);
    }
    .dflex-column-between-gap {
        align-items: center;
    }
    .hamburger {
        display: flex;
    }
    .orders-table, .chart-container {
        width: 100%;
        height: 100%;
        overflow-x: auto;
    }
    #table {
        min-width: 700px;
    }
    #myChart {
        min-height: auto;
        min-width: auto;
    }
    .main-bottom {
        display: flex;
        flex-direction: column;
        gap: 15px
    }
    .main-right-div, .dashboard-head-div, .date-div, .main-left-div {
        flex: 1;
    }
}

@media (min-width: 768px) and (max-width: 999px) {
    .all-contain {
        padding: 25px 30px;
    }
}

@media (max-width: 767px) {
    .analytics-flex {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .short-by {
        display: none;
    }
    .form-div {
        width: 300px;
    }
    #close-overlay {
        top: 50px;
    }
}

@media (min-width: 599px) and (max-width: 767px) {
    .all-contain {
        padding: 25px 10px;
    }
}

@media (max-width: 600px) {
    .all-contain {
        padding: 20px 8px;
    }
}