/* Fonts */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nunito.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('/fonts/nunito.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('/fonts/nunito.woff2') format('woff2'), /* Super Modern Browsers */
         url('/fonts/nunito.woff') format('woff'), /* Modern Browsers */
         url('/fonts/nunito.ttf') format('truetype'), /* Safari, Android, iOS */
         url('/fonts/nunito.svg#Nunito') format('svg'); /* Legacy iOS */
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css");

/* Global CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

:root {
    --orange: #ff7e00;
    --white: #fff;
    --gray: #f5f5f5;
    --gray-light: #999;
    --gray-dark: #222;
    --black: #000;
    --primary: #4da6ff;
    --primary-dark: #1a8cff;
    --secondary: #888;
    --secondary-dark: #666;
    --success: #5cd65c;
    --success-dark: #2eb82e;
    --warning: #ffcc66;
    --warning-dark: #ffb31a;
    --danger: #ff5c33;
    --danger-dark: #ff3300;
    --info: #bf80ff;
    --info-dark: #a64dff;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Navigation */
.navigation {
    position: fixed;
    width: 280px;
    height: 100%;
    background: var(--orange);
    border-left: 10px solid var(--orange);
    transition: 0.5s;
    overflow: hidden;
}

.navigation.active {
    width: 80px;
}

.navigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 0 !important;
}

.navigation ul li {
    position: relative;
    width: 100%;
    list-style: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;    
}

.navigation ul li:hover,
.navigation ul li.hovered  {
    background-color: var(--white);
}

.navigation ul li:nth-child(1) {
    margin-bottom: 40px;
    pointer-events: none;
}

.navigation ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: var(--white);
}

.navigation ul li:hover a,
.navigation ul li.hovered a {
    color: var(--gray-dark);
}

.navigation ul li a.brand-logo {
    margin: 15px 0 50px 0;
}

.navigation ul li a .logo {
    border-radius: 50%;
    overflow: hidden;
}

.navigation ul li a .logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navigation ul li a .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 70px;    
    text-align: center;
}

.navigation ul li a .icon .fa-solid {    
    padding: 13px;
}

.navigation ul li a .title {
    position: relative;
    display: block;
    padding: 0 10px;    
    height: 60px;
    line-height: 60px;
    text-align: start;
    white-space: nowrap;
}

/* Main */
.main {
    position: absolute;
    width: calc(100% - 280px);
    left: 280px;
    min-height: 100vh;
    background: var(--white);
    transition: 0.5s;
}

.main.active {
    width: calc(100% - 80px);
    left: 80px;
}

.topbar {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.toggle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.toggle:hover {
    color: var(--orange);
}

.search {
    position: relative;
    width: 400px;
    margin: 0 10px;
}

.search label {
    position: relative;
    width: 100%;
}

.search label input {
    width: 100%;
    height: 40px;
    padding: 5px 20px 5px 40px;
    outline: none;
    border: none;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.search label input:is(:focus) {    
    border-bottom: 1px solid #ff7e00;
    transition: 0.3s;
}

.search label input:is(:focus) ~ i {
    color: #ff7e00;
    transition: 0.3s;
}

.search label .fas {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
}

.user-group {
    display: flex;
    margin-right: 20px;
}

.user {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ccc;
}

.user img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-logout {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.user-logout a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    padding-left: 10px;
}

.user-logout a:hover {    
    color: var(--orange);
    transition: 0.3s;
}

.user-logout-content {
    display: none;
    position: absolute;
    margin-top: 10px;
    background-color: var(--white);
    padding: 15px 0;
    min-width: 100%;
    box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

.user-logout-content a {
    color: var(--gray-light);
    text-decoration: none;
}

.user-logout-content a:hover {
    color: var(--gray-dark);
}

/* .user-logout:hover .user-logout-content {
    display: block;    
} */

.show {
    display: block;    
}

/* Cards */
.card-box {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

.card-box .card {
    position: relative;
    background: var(--white);
    padding: 30px;
    border: 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
}

.card-box .card .numbers {
    position: relative;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--orange);
}

.card-box .card .card-name {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-top: 5px;
}

.card-box .card .icon-box {
    font-size: 4rem;
    color: var(--gray-light);
    position: absolute;
    right: 30px;
}

.card-box .card:hover {
    background: var(--orange);
    transition: 0.3s;
}

.card-box .card:hover .numbers,
.card-box .card:hover .card-name,
.card-box .card:hover .icon-box {
    color: var(--white);
    transition: 0.3s;
}

/* Charts */
.grapx-box {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 30px;
    /* margin-top: 10px; */
    min-height: 200px;
}

.grapx-box .box {
    position: relative;
    display: grid;    
    background: var(--white);
    padding: 20px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* Order Details */
.details {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    grid-template-columns: 1fr;
    grid-gap: 30px;
    /* margin-top: 10px; */
}

.details .recent-orders {
    position: relative;
    display: grid;
    /* min-height: 500px; */
    background: var(--white);
    padding: 20px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.details .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-header h2 {
    font-weight: 600;
    color: var(--orange);
}

.card-header .btn {
    position: relative;
    padding: 5px 10px;    
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
}

.details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 35px;
    color: var(--gray-dark);
}

.details table thead td {    
    font-weight: 600;
    background: var(--gray);
}

.details .recent-orders table tr {
    color: var(--gray-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.details .recent-orders table tr:last-child {    
    border-bottom: none;
}

.details .recent-orders table tbody tr:hover {
    background: var(--gray);
}

.details .recent-orders table tr td {
    padding: 10px;
    color: var(--secondary-dark);
}

.details .recent-orders table tr td i {
    font-size: 20px;
}

.details .recent-orders table tr td:last-child {
    text-align: right;
}

.status {
    padding: 2px 8px;
    color: var(--white);
    border-radius: 2px;
    font-size: 14px;
}

.delivered {
    background: #5cd65c;
}

.pending {
    background: #ffcc66;
 }

.return {
    background: #ff5c33;
}

.in-progress {
    background: #4da6ff;
}

/* Recent Customer */
.recent-customers {
    position: relative;
    display: grid;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.recent-customers .image-box {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.recent-customers .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-customers table tr:hover {
    background: var(--gray);
}

.recent-customers table tr td {
    padding: 12px 10px;
}

.recent-customers table tr td h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2rem;
}

.recent-customers table tr td h4 span {
    font-size: 14px;    
    color: var(--gray-light);
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block !important;
    opacity: 1 !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Image Gallery */
.img-box a img {
    width: 100%;
}

.edit-delete-img {
    position: absolute;
    /* top: 50%;
    left: 50%; */    
    /* transform: translate(-50%, -50%); */
    /* -ms-transform: translate(-50%, -50%); */
    bottom: 20px;
    right: 35px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.3s linear;
}

.img-box:hover .edit-delete-img {
    visibility: visible;
    opacity: 1;
}

.img-menu form {
    display: inline-block;
}

/* Pagination */
.active>.page-link {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: var(--white) !important;
}

.page-link {
    color: var(--orange) !important;
}

/* Permission list */
.checkbox-content input {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    accent-color: #ff7e00;
    cursor: pointer;
}

.checkbox-content label {
    cursor: pointer;
    vertical-align: text-bottom;
}

.permission-field {
    margin-top: 30px;
}

.permission-list {
    margin-left: 0;
    padding-left: 0;
}

.permission-list li {
    list-style: none;
}

.pull-right {
    float: right;
}

/* Custom selectbox */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    outline: 0;
    box-shadow: none;
    border: 0 !important;
    background: var(--gray-light);
    background-image: none;
    flex: 1;
    padding: 0 0.5em;
    color: var(--white);
    cursor: pointer;
    font-size: 1em;
}

select::-ms-expand {
    display: none;    
}

.select {
    position: relative;
    display: flex;
    width: 20em;
    height: 2.5em;
    line-height: 2.5;
    background: var(--gray-light);
    overflow: hidden;
    border-radius: 0.25em;
    padding-left: 25px;
}

.select.create-user-select,
.select.edit-user-select {
    margin: 30px 0;
}

.select i {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    font-size: 25px;
    padding: 8px 12px;
    background: var(--orange);
    color: var(--white);
    cursor: pointer;
    pointer-events: none;
    transition: 0.3s;
}

.select:hover i {
    background: var(--black);
}
/* End Custom selectbox */

/* Flash Messages */
.message {
    display: table;
    position: relative;
    margin: 40px auto 0;
    width: 500px;
    background-color: #0074D9;
    color: #fff;
    transition: all 0.2s ease;
}
.message.is-hidden {
    opacity: 0;
    height: 0;
    font-size: 0;
    padding: 0;
    margin: 0 auto;
    display: block;
}

.message-orange {
    background-color: #F39C12;
}

.message-red {
    background-color: #FF4136;
}

.message-green {
    background-color: #2ECC40;
}

.message-icon {
    display: table-cell;
    vertical-align: middle;
    width: 60px;
    padding: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.25);
}

.message-icon > i {
    width: 20px;
    font-size: 20px;
}

.message-body {
    display: table-cell;
    vertical-align: middle;
    padding: 30px 20px 30px 10px;
}
.message-body > p {
    line-height: 1.2;
    margin-top: 6px;
}

.message-button {
    position: relative;
    margin: 15px 5px -10px;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 3px rgba(0, 0, 0, 0.4);
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-family: "Source Sans Pro";
    color: #fff;
    outline: none;
    cursor: pointer;
}

.message-button:hover {
    background: rgba(0, 0, 0, 0.3);
}

.message-button:active {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0px rgba(0, 0, 0, 0.4);
    top: 3px;
}

.message-close {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    outline: none;
    font-size: 20px;
    right: 5px;
    top: 5px;
    opacity: 0;
    cursor: pointer;
}

.message:hover .message-close {
    opacity: 1;
}

.message-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.u-italic {
    font-style: italic;
}

.alert {
    border-radius: 0 !important;
    border: 0 !important;
    color: var(--white) !important;
    padding: 0 !important;
}

.alert-success {
    background: var(--success) !important;
}

.alert-danger {
    background: var(--danger) !important;
}

.alert-info {
    /* background: var(--gray) !important; */
    background: rgba(255, 204, 102, 0.2) !important;
    margin-bottom: 30px;
}

.alert-success-btn i {
    background: var(--success-dark);
    color: var(--white);
    padding: 20px;
}

.alert-danger-btn i {
    background: var(--danger-dark);
    color: var(--white);
    padding: 20px 26px;
}

.alert-info-btn i {
    /* background: var(--warning-dark); */
    background: rgba(255, 204, 102, 0.5) !important;
    color: var(--gray-dark);
    padding: 48px 38px;
}

.alert-message {
    display: inline-block;
    vertical-align: middle;
    padding-left: 20px;
    padding-bottom: 15px;
}

.alert-info .alert-message {
    display: inline-block;
    vertical-align: middle;
    padding-left: 20px;
    padding-bottom: 15px;
}

.alert-info .alert-message p {
    margin-bottom: 0;
    color: var(--gray-dark);
}
/* End Flash Messages */

/* File Manager */
.main-option-icons {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--gray-dark);
    color: var(--white);
}

.ul-file li {
    list-style: none;
}

/* Preview Image when multiple files upload */
.multiple-file-upload {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* grid-gap: 30px; */
    /* align-items: center; */
}

.multiple-file-upload .input-file {
    text-align: center;
}

.multiple-file-upload .input-file label {
    margin: 0 auto;
}

.multiple-file-upload-field {
    /* border: 2px solid var(--white) !important; */
    background: var(--white) !important;
    padding: 40px 0 30px 0 !important;
    border-radius: 0 0 10px 10px !important;
}

.num-of-files {
    color: var(--gray-light);
    margin: 15px 0;
    text-align: center;
}

.images-preview-container {
    margin: 30px;
    border: 2px solid var(--gray);
    display: none;
}

#images {    
    width: 100%;
    margin: 0 auto;
    column-width: 300px;
    column-gap: 1em;
    /* display: flex;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap; */
    background: var(--white);
    padding: 30px;
}

figure {
    /* width: 48%; */
    /* width: 23%; */
    height: fit-content;
    position: relative;
    /* margin: 0 !important; */
    margin-bottom: 1em;
    box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.1);
    /* background-image: linear-gradient(to right top, #000000, #181818, #282828, #3a3a3a, #4c4c4c, #585858, #656565, #727272, #7c7c7c, #858585, #8f8f8f, #999999); */
}

figure img {
    width: 100%;
}

figure-caption {
    text-align: center;
    color: var(--white);
    font-size: 14px;
    background: var(--gray-light);    
    padding: 2px 15px 4px 15px;
    border-radius: 20px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    min-width: fit-content;
    top: 15px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--gray-dark);
}

.image-place img {
    margin: 0 15px 15px 0;    
    max-height: 150px;
    box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.5);
}

.figure-preview-upload {
    background: var(--gray);    
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 80px;
    font-size: 18px;
    color: var(--danger-dark);
}

.figure-preview-upload i {
    font-size: 100px;
    color: var(--gray-light);
}

/* Files list table */
table.files-list-table tbody tr {
    vertical-align: middle;
}

table.files-list-table tbody tr td i {
    font-size: 20px;
    color: var(--secondary-dark);
}

table.files-list-table tbody tr td.action-td {
    display: flex;
    justify-content: flex-end;
}

table.files-list-table thead tr th.action-td {
    text-align: right;
    padding-right: 115px;
}

.size-column {
    text-align: right;
    padding-right: 30px !important;
}

/* Progress bar */
.progress {
    position: relative;    
    margin: 30px 30px 0 30px;
    background: var(--gray) !important;
    height: 10px !important;
}

.bar {
    /* background: var(--success); */
    background: var(--orange);
    width: 0%;
    height: 20px;
}

/* Percent in progress bar */
/* .percent {
    position: absolute;
    display: inline-block;
    left: 50%;
    color: var(--white);
} */

/* Percent in Upload button */
/* .percent {
    position: relative;
    display: inline-block;
    color: var(--white);
    font-size: 28px;
    font-weight: 600;
} */

/* Percent in line with "Absage" button */
.percent {
    position: relative;
    display: inline-block;
    color: var(--orange);
    padding: 0;    
    font-size: 20px;
    font-weight: 600;
    vertical-align: bottom;
}


/* Custom Dropzone */
.drag-and-drop-area {
    /* background: rgba(255, 126, 0, 0.1) !important; */
    background: var(--gray);
    padding: 30px;
}

.dropzone {
    /* min-height: 300px !important; */
    border: 0 !important;
    /* background: rgba(255, 126, 0, 0.1) !important; */
    background: var(--white) !important;
    /* border: 2px dotted var(--orange) !important; */
    border-radius: 10px 10px 0 0 !important;
    /* width: fit-content !important; */
    padding: 10px 0 !important;
    margin: 0 auto !important;
}

.dz-default {
    display: none !important;
}

.dz-message .dz-message-files label {
    display: block;
    margin: 0 auto;
    color: var(--white);
    background: var(--secondary);
}

.dz-message .dz-message-files label:hover {
    background-color: var(--secondary-dark);
    /* background-color: #e67300; */
}

.dz-message .dz-message-files label .label-text{
    padding-top: 3px;
}

.dz-message-icon {
    font-size: 100px;
    color: var(--orange);
    margin: 30px 0;
}

.dz-message-drop {
    font-size: 20px;
    font-weight: 600;
}

.dz-message-or {
    font-size: 20px;
    color: var(--secondary);
    background: var(--white);
    text-transform: uppercase;
    text-align: center;
}

.dz-message-or:before {
    content: "";
    display: inline-block;
    height: 2px;
    vertical-align: middle;
    width: 60px;
    /* margin-right: -100%; */
    margin-right: 10px;
    border-top: 1px solid var(--secondary);
}

.dz-message-or:after {
    content: "";
    display: inline-block;
    height: 2px;
    vertical-align: middle;
    width: 60px;
    /* margin-right: -100%; */
    margin-left: 10px;
    border-top: 1px solid var(--secondary);
}

.upload-button {
    text-align: center;
}

.upload-button .btn-success.big-btn {    
    background: var(--orange);
    font-size: 24px !important;
}

.upload-button .btn-success.big-btn:hover {
    background: #e67300;
}

.upload-button .btn-success.cancel-upload-button {    
    background: var(--secondary);    
}

.upload-button .btn-success.cancel-upload-button:hover {    
    background: var(--secondary-dark);
}

.cancel-upload-button {
    vertical-align: middle;
    display: none;
}

.warning-modal-icon {    
    font-size: 50px;
    color: var(--danger);
}

.warning-modal-icon h2 {
    color: var(--gray-dark);
    display: inline-block;
    vertical-align: middle;
}

.warning-modal-icon p {
    font-size: 16px;
    color: var(--gray-dark);
    margin-left: 65px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navigation {
        left: -280px;
    }
    .navigation.active {
        width: 280px;
        left: 0;
    }
    .main {
        width: 100%;
        left: 0;
    }
    .main.active {
        left: 280px;
    }
    .card-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .grapx-box {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {
    .details {
        grid-template-columns: 1fr;
    }
    .recent-orders {
        overflow-x: auto;
    }
    .status.in-progress {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .card-box {
        grid-template-columns: repeat(1, 1fr);
    }
    .card-header h2 {
        font-size: 20px;
    }
    .user {
        min-width: 40px;
    }
    .navigation {
        width: 100%;
        left: -100%;
        z-index: 1000;
    }
    .navigation.active {
        width: 100%;
        left: 0;
    }
    .toggle {
        z-index: 1001;
    }
    .main.active .toggle {
        color: var(--white);
        position: fixed;
        right: 0;
        left: initial;
    }
}