*:focus-visible {
    outline: none;
}

.btn {
    font-size: 14px;
}

.btn-primary {
    background-color: #286DCB;
    border-color: #286DCB;
}

.btn-secondary {
    background-color: transparent;
    border-color: #191919;
    color: #191919;
}

/* Loding Spinner */
.loading-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgb(40 109 203);
    border-radius: 50%;
    border-top-color: #fff;
    position: relative;
    top: 3px;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

/* Toast */
.toast-block {
    position: relative;
    top: 1rem;
    right: 1rem;
}

.custom-toast {
    width: 300px;
    max-width: 100%;
    font-size: 14px;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, .85);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    border-radius: 0.25rem;
    position: fixed;
    z-index: 1001;
    right: 1rem;
}

.custom-toast button.close {
    background: transparent;
    border: none;
    position: absolute;
    right: 6px;
    font-size: 18px;
    top: 2px;
}

.custom-toast button.close:focus {
    background: transparent;
}

/* spinner */
.loading-wrap {
    width: 2em;
    height: 2em;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(to right, #4bbfe9, #286dcb);
    animation: spin 1s linear infinite;
}

.loading-wrap .loading-hole {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: white;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Map */
.map .modal-body button.close {
    position: absolute;
    z-index: 1;
    right: 3px;
    top: 0;
}

#map-canvas {
    height: 350px;
}


/* Select2 form-control design */
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    height: calc(1.5em + 0.75rem + 2px);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default .select2-selection--multiple {
    height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: inherit;
    font-size: 14px;
}

.select2-search--dropdown, .select2-results {
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}

.select2-container .select2-search--inline .select2-search__field, .select2-container--default .select2-selection--multiple .select2-selection__clear, .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 14px;
    margin-top: inherit;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #286DCB;
    border: 1px solid #286DCB;
    border-radius: 3px;
    color: #fff;
    padding: 1px 8px;
    margin-top: 5px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-dropdown {
    border-color: #ced4da;
}


/* Breadcrumb */
.breadcrumb {
    background: transparent;
    color: #fff;
    text-align: right;
    justify-content: end;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    margin: 0;
}

.breadcrumb-item.active {
    color: #ffffffbf;
    font-weight: 400;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "|";
    color: #fff;
}

.back-route {
    color: #fff;
    font-size: 14px;
}

/* Cards */
.card {
    border: unset;
    border-radius: 8px;
    box-shadow: 1px 2px 0px 0 rgb(0 0 0 / 5%);
}

.card.active {
    background: #007bff;
    color: #fff;
    position: relative;
}

.card.active::after {
    border-right: solid 0.5rem transparent;
    border-left: solid 0.5rem transparent;
    border-top: solid 0.6rem #007bff;
    transform: translateX(-50%);
    position: absolute;
    z-index: 1;
    content: '';
    top: 100%;
    left: 50%;
    height: 0;
    width: 0;
}

.card.active .card-body h4, .card.active small.msg {
    color: #fff;
}

.card-body {
    padding: 0.6rem 1rem;
}

.align-self-center {
    padding: 1rem;
    border-radius: 50%;
}

small.msg {
    font-size: 10px;
    color: #ADAFB4;
}

.align-self-center img {
    width: 27px;
}

.info-bg {
    background-color: #DFE9F6;
}

.warning-bg {
    background-color: #FFEFCF;
}

.success-bg {
    background-color: #C4EFD4;
}

.danger-bg {
    background-color: #FFE0E0;
}

.gray-bg {
    background-color: #EEF0F4;
}

.info {
    color: #286DCB;
}

.warning, .warning:hover {
    color: #F0C20B;
}

.success {
    color: #37B955;
}

.danger {
    color: #F51818;
}

.gray {
    color: #191919;
}


/* index page image */
.index-image {
    width: 50px;
    object-fit: contain;
}

.index-dummy-image {
    width: 50px;
    padding: 5px;
    background: #EEF0F4;
    border-radius: 3px;
    text-align: center;
    margin: auto;
}

.index-dummy-image img {
    width: 30px;
}

/* DataTable */
#listTable .table {
    font-size: 14px;
    width: 100% !important;
}

#listTable .table th, #listTable .table td {
    vertical-align: middle;
    border: none;
}

#listTable .table td.action form {
    display: inline-block;
}

#listTable .table td.action a {
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#listTable .table td.action a.success {
    background-color: #C4EFD4;
}

#listTable .table td.action a.danger {
    background-color: #FFC9C9;
    padding: 10px 12px;
}

#listTable .table td.action a.dark {
    background-color: #D6E4DB;
}

#listTable .table td.action a.warning {
    background-color: #FFEFCF;
}

#listTable .table td.action a.info {
    background-color: #DFE9F6;
}

#listTable .table td.action .edit img {
    width: 16px;
}

#listTable .table td.action .delete img {
    width: 15px;
}

#listTable .table td.action img {
    width: 18px;
}

#listTable .page-item.active .page-link {
    background-color: #286DCB;
    border-color: #286DCB;
}

#listTable .row.head {
    justify-content: flex-end;
    align-items: center;
}

#listTable .row.head .import {
    background-color: #fff;
}

#listTable .row.head .import a {
    border: 1px solid #ddd;
}

#listTable .row.head .btn img {
    width: 15px;
}

#listTable div.dataTables_wrapper div.dataTables_filter label, #listTable div.dataTables_wrapper div.dataTables_filter input {
    width: 100%;
    margin: 0;
}

#listTable div.dataTables_wrapper div.dataTables_filter label img {
    position: absolute;
    right: 1.3rem;
    top: 6px;
    background: #fff;
}

#listTable div.dataTables_wrapper div.dataTables_filter input.form-control-sm {
    height: calc(1.5em + 0.75rem + 2px);
}

#listTable .pagination li {
    font-size: 14px;
}

#listTable td img.show-home-ico, img.show-home-ico {
    padding: 0.4rem;
    background: #eef0f4;
    margin-left: 5px;
    border-radius: 0.6rem;
}

#listTable table.dataTable {
    border-spacing: 0 0.6rem
}

#listTable table.dataTable tbody tr {
    background-color: #fff;
    line-height: 2
}

#listTable th.sorting_disabled.sorting_asc {
    padding: .75rem;
}

#listTable th.sorting_disabled.sorting_asc::after {
    content: none;
}

#listTable th.sorting_disabled.sorting_asc::before {
    content: none;
}

/* Forms */
form label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.2rem;
}

.form-control:focus {
    box-shadow: none;
}

.form-control {
    font-size: 14px
}

form label.error, form span.error {
    display: none;
    font-size: 12px;
    font-weight: 400;
    color: #F51818;
}

span.help-txt {
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
}

.banner-module span.help-txt{color: #a1a1a1;}

span.ico-help {
    font-size: 14px;
}

form .action .btn {
    width: 48%;
}

form .btn.btn-primary {
    background-color: #286DCB;
    border-color: #286DCB;
}

form .btn.btn-secondary {
    background-color: transparent;
    border-color: #191919;
    color: #191919;
}

/* Switch checkbox */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 21px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 3px;
    right: 0;
    bottom: 0;
    background-color: #F51818;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch.request .slider {
    background-color: #F0C20B;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked+.slider {
    background-color: #37B955;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #37B955;
}

.switch input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.switch .slider.round {
    border-radius: 25px;
}

.switch .slider.round:before {
    border-radius: 50%;
}

/* End switch checkbox */


/* Index page checkbox */
input[type=checkbox] {
    outline: none;
    border: 1px solid #cbced4;
    width: 20px;
    height: 20px;
}

.table th .blukCheck:after {
    top: -3px;
}

.blukCheck {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid rgba(220, 220, 225, 1);
}

.blukCheck:after {
    content: "";
    display: inline-block;
    position: relative;
    top: -6px;
    left: 6px;
    width: 6px;
    height: 12px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

input[type=checkbox]:checked {
    background: #286DCB;
    outline: none;
    border: 1px solid #286DCB;
}


/* Modal */
.modal-header {
    border: none;
    padding: 1rem 1rem 0;
}


/* Attachment Images */
.attachment-section .icon-img label, .attachment-section .banner-img label, .attachment-section .product-img label {
    text-decoration: underline;
    color: #286dcb;
    font-weight: 500;
    cursor: pointer;
}

.attachment-section .icon_image_result {
    width: 50%;
    text-align: center;
}

.attachment-section .banner_image_result, .attachment-section .product_image_result {
    width: 100%;
    text-align: center;
}

.attachment-section #icon_view, .attachment-section #banner_view, .attachment-section #product_img_view {
    border: 2px dotted #DFE3E9;
}

.attachment-section #icon_view img, .attachment-section #banner_view img, .attachment-section #product_img_view img {
    width: 90%;
    height: 100px;
    object-fit: contain;
}

.attachment-section .delete-btn {
    background-color: #DFE3E9;
}

.attachment-section .delete-upload-icon, .attachment-section .delete-upload-banner, .attachment-section .delete-upload-image {
    cursor: pointer;
}

.img label {
    text-decoration: underline;
    color: #286dcb;
    font-weight: 500;
    cursor: pointer;
}

.image_result {
    width: 100%;
    text-align: center;
}

#view {
    border: 2px dotted #DFE3E9;
}

#view img {
    width: 90%;
    height: 100px;
    object-fit: contain;
}

.delete-btn {
    background-color: #DFE3E9;
}

.delete-upload {
    cursor: pointer;
}

/* Map */
#myMap {
    height: 325px;
    margin: 1rem 0 0.5rem;
    border-radius: 8px;
}


/* Media Gallery List */
#mediaLibrary .media-gallery-list {
    height: auto;
    max-height: 70vh;
    overflow: auto;
    margin-top: 1rem;
}

.file-preview {
    width: 15%;
    display: inline-block;
    height: 125px;
    position: relative;
    margin: 0.25rem;
    -webkit-transition: all 350ms ease-in-out;
    -o-transition: all 350ms ease-in-out;
    transition: all 350ms ease-in-out;
    border-radius: 3px;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #DFE3E9;
    cursor: pointer;
}

.file-preview img, .file-preview video {
    width: 100%;
    object-fit: contain;
    background: #eee;
}

.file-picker {
    position: relative;
    cursor: pointer;
    width: 100%;
}

.file-picker input[type=radio] {
    opacity: 0;
    position: absolute;
}

.file-checked {
    display: block;
    font-style: normal;
    width: 20px;
    height: 20px;
    position: absolute;
    right: -2px;
}

.file-checked:after {
    content: '\2713';
    display: block;
    line-height: 18px;
    width: 18px;
    height: 18px;
    background-color: #1481b8;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity .34s ease-in-out;
}

input[type=radio]:checked~.file-checked:after {
    opacity: 1;
}

#mediaModal .drag-area {
    border: 1px dashed #286dcb;
    height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#mediaModal .drag-area.active {
    border: 1px solid #286dcb;
}

#mediaModal .drag-area .icon {
    font-size: 2.5rem;
    color: #286dcb;
}

#mediaModal .drag-area header {
    font-size: 1rem;
    font-weight: 500;
    color: #286dcb;
}

#mediaModal .drag-area span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #286dcb;
    margin: 0.2rem;
}

#mediaModal #loading-image {
    display: none
}

#mediaModal .file-section {
    border: 1px solid #eee;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
}

#mediaModal .file-section img {
    width: 95%;
    object-fit: contain;
}

#mediaModal .basic-info {
    font-size: 14px;
}

#mediaModal .basic-info span.heading {
    font-size: 12px;
    color: #b9b9b9;
}

#mediaModal .basic-info .line-blocks {
    line-height: 2;
    align-items: center;
}

#mediaModal .basic-info h6 {
    margin: 0;
    font-size: 14px;
    overflow-wrap: break-word;
}

#selectedFile img {
    width: 100%;
    object-fit: contain;
}

.banner-module #selectedFile img {
    width: 585px;
    height: 334.5px;
    object-fit: unset;
}

/* Quill text editor */
#standalone-container p {
    color: unset;
}
.quill-editor {
    height: 300px;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 25px 0 15px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    transition: 0.2s;

}

/* .choose-file-button {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 12px;
    text-transform: uppercase;
    } */

.file-message {
    font-size: small;
    font-weight: 300;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    background-color: #37B955;
}

.mt-100 {
    margin-top: 100px;
}

/* Variants Table */
#existingVariantTable.table, #variantList .table {
    display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;
    /* margin: 0 auto; */
    overflow: auto;
    white-space: nowrap;
    height: auto;
    max-height: 400px;
}
/*
#existingVariantTable.table td, #existingVariantTable.table th, #variantList .table td, #variantList .table th {
    min-width: 125px;
}

#existingVariantTable.table th.status, #variantList .table th.status {
    min-width: 100px;
}

#existingVariantTable.table th.title, #variantList .table th.title {
    min-width: 100px;
} */

#existingVariantTable.table th, #variantList .table th {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 2;
    background-color: #fff;
}

#existingVariantTable.table::-webkit-scrollbar-track, #variantList .table::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

#existingVariantTable.table::-webkit-scrollbar, #variantList .table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #F5F5F5;
}

#existingVariantTable.table::-webkit-scrollbar-thumb, #variantList .table::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border: 2px solid #286dcb;
    border-radius: 0.5rem;
}

.product-view .product-description {
    height: auto;
    max-height: 400px;
    overflow: auto;
}

.product-view .product-description::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.product-view .product-description::-webkit-scrollbar {
    width: 8px;
    background-color: #F5F5F5;
}

.product-view .product-description::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border: 2px solid #286dcb;
    border-radius: 0.5rem;
}

.table td .dropdown-menu {
    padding: 0.25rem 0;
}

.table td .dropdown-item {
    width: 225px;
    word-wrap: break-word;
    font-size: 14px;
    white-space: normal;
    padding: 0.25rem 0.5rem;
    line-height: 1.5;
}

.table td .dropdown-item:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

.switch.read-only {
    pointer-events: none;
}


#loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    background-color: #000;
    z-index: 999;
    opacity: 0.5;
}

.card.active .card-body i {
    color: #191919;
}


.dataTables_wrapper div.dataTables_paginate {
    font-size: 14px;
}
.dataTables_paginate.paging_input span{
    padding: 0.3rem;
}
.dataTables_paginate.paging_input .paginate_input{
    width: 75px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button{
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    z-index: 2;
    color: #0056b3;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}
