.navbar-horizontal .navbar-brand img {
    height: 70px;
}

@media (min-width: 768px){
    .navbar-vertical.navbar-expand-md .navbar-brand-img {
        max-height: 8.5rem;
    }
}

/*Back to top button*/
#button {
  display: inline-block;
  background-color: #8a99f1;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, 
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#button::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#button:hover {
  cursor: pointer;
  background-color: #333;
}
#button:active {
  background-color: #555;
}
#button.show {
  opacity: 1;
  visibility: visible;
}
.line-id-input-group {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529 !important;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef !important;
    border: 1px solid #ced4da;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.line-user-input {
    padding-left: 0.75rem !important;
}
.ord-msg-button {
    border-color: #214842;
    background-color: #214842;
}
.ord-msg-button:hover {
    border-color: #122b27;
    background-color: #122b27;
}

@media (max-width: 768px){
    .order-success .card.shadow.border-0.mt-8 {
        margin-top: 0px !important;
    }
}


/*updated css 04-10-2023 */

/*Apply red background when the checkbox is unchecked */
input[type="checkbox"]:checked + .custom-toggle-slider {
    background-color: #2dce89 !important;
    border-color:#2dce89 !important;
}
.custom-toggle-slider:before {
    background-color: #ffffff !important;
}

input[type="checkbox"]:not(:checked) + .custom-toggle-slider {
    background-color: #cf2c2c !important;
    border-color:#cf2c2c !important;
}

.accordion-button {
    cursor: pointer
}
.category-container {
    background: #fff;
    line-height: 40px;
}
.category-container ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding-left: 5px;
}
.category-container a {
    white-space: nowrap;    
    border: 1px solid #5e72e4;
    margin-right: 1em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 6px;
}
#sortableCats {
    list-style-type: none;
    text-align: left;
    padding: 0 24px;
}
#sortableCats .ui-sortable-handle {
    border: 1px solid #b3b3b3;
    padding: 0 8px;
    border-radius: 6px;
    background: #efefef;
    margin-bottom: 6px;
    cursor: grabbing;
}
.card-img-fig {
    background-color: transparent;
    height: 200px;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
}
.card-img-fig .card-img-top {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%, -50%) scale(1);
}
.items-search-container span.select2.select2-container.select2-container--default {
    width: 100% !important;
}
.drag-btn {
    position: absolute; 
    top: 10px; 
    right: 15px; 
    z-index: 1;
}


/*Add by MS*/
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 0px solid;
    border-radius: 4px;
    height: auto;
    padding: 8px 5px;
    border-color: rgba(50, 151, 211, .25);
    box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02);
    line-height: 1.5;
    font-size: .875rem;
    color: #8898aa;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px;
}
.order-details-page h6, .order-details-page h5, .order-details-page h4 {
    font-size: 16px;
}
@media (max-width: 768px) {
    .order-details-page h6, .order-details-page h5, .order-details-page h4 {
        font-size: 14px !important;
    }
}
.sticky-top.category-container ul li a.active {
    color: #ffffff;
    background: #5e72e4;
}
button.btn.btn-icon.btn-1.btn-sm.btn-warning.btn-update-image {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 1;
    width: 40px;
    height: 40px;
    font-size: 20px;
}
.drag-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1;
    width: 40px;
    height: 40px;
    font-size: 16px;
    padding: 6px;
    cursor: grabbing !important;
}
.card-img-fig .card-img-top {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%, -50%) scale(1);
    min-height: 100%;
    object-fit: cover;
}
.alert .col-auto button.btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
    padding: 0px;
}
.alert .col-auto .row {
    align-items: center;
}
.alert .col-auto .row label.custom-toggle {
    margin: 0 !important;
}
figure.card-img-fig {
    border-bottom: 1px solid #dddddd;
}
.sticky-top.category-container ul {
    padding: 0 16px;
}
.sticky-top.category-container ul li a {
    margin: 0 7px 0 0;
}
.sticky-top.category-container .tab-content.items-search-container.px-3 {
    padding-bottom: 10px;
    padding-top: 10px;
}
img.img-fluid.item-type {
    width: 16px;
    height: auto;
}
.items-sortable-container .card.active {
    outline: 2px solid #f5365c;
}
#bulkActionsForm #category_select, #bulkActionsForm #item_type_select {
    /*width: 300px !important;*/
    display: none;
}
#bulkActionsForm #bulk_option {
    background-color: #fff;
    border: 0px solid;
    border-radius: 4px;
    height: auto;
    padding: 12px 5px;
    border-color: rgba(50, 151, 211, .25);
    box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02);
    line-height: 1.5;
    font-size: .875rem;
    color: #000000;
}
.cb-select {
    transform: scale(1.5);
}
.cb-label {
    padding-right: 8px !important;
}
.items-search-container span.select2.select2-container.select2-container--default {
    padding: 0 !important;
    border: 0;
}
.items-search-container #bulkActionsForm span.select2.select2-container.select2-container--default {
    width: 250px !important;
}
@media(max-width: 768px) {
    #bulkActionsForm .d-flex.ml-3 {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 14px !important;
        padding-top: 14px;
        border-top: 1px solid #cad1d7;
    }
    button#change-bulk-category {
        margin-left: 0 !important;
    }
    #bulkActionsForm #bulk_option {
        width: 100% !important;
        margin-bottom: 5px;
    }
    #bulkActionsForm span.select2.select2-container.select2-container--default {
        margin-bottom: 5px;
    }
    .sticky-top.category-container {
        position: unset;
    }
    button.btn.btn-icon.btn-1.btn-sm.btn-info.btn-cat-reorder {
        margin-top: 8px;
    }
    .btn.btn-primary.drag-btn {
        display: none;
    }
    .items-search-container #bulkActionsForm span.select2.select2-container.select2-container--default {
        width: 100% !important;
    }
}