:root {
    --theme-color: #0168fa;
    --bs-btn-padding-x: 0.9375rem;
    --bs-btn-padding-y: 0.46875rem;
}

input.error {
    border: 1px solid red;
}

label.error {
    color: red;
}

.wd-15 {
    width: 15px;
}

.ht-15 {
    height: 15px;
}

.form-group {
    position: relative;
}

.switch {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 18px;
    border-radius: 20px;
    background: #c9c9c9;
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    cursor: pointer;
}

.switch::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fafafa;
    border-radius: 50%;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch:active::before {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 0 0 20px rgba(128, 128, 128, 0.1);
}

input:checked+.switch {
    background: #3AB795;
}

.bg-sucess-badge {
    background-color: #cee7d9;
    color: #075228;
}

input:checked+.switch::before {
    left: 22px;
    background: #fff;
}

input:checked+.switch:active::before {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 0 0 20px rgba(0, 150, 136, 0.2);
}



/* header */


.navbar-header {
    border-bottom: 1px solid rgba(72, 94, 144, 0.16);
}

.navbar-header .navbar-right .dropdown-notification .dropdown-menu::before,
.navbar-header .navbar-right .dropdown-message .dropdown-menu::before {
    opacity: initial;
}

.navbar-header .navbar-right .dropdown-notification .dropdown-menu,
.navbar-header .navbar-right .dropdown-message .dropdown-menu {
    margin-top: 19.5px;
}

.dropdown-profile .dropdown-menu::before {
    opacity: initial;
}

.dropdown-profile .dropdown-menu {
    margin-top: 14.5px;
}

.bootstrap-growl .close {
    position: absolute;
    right: 10px;
    color: #000;
    font-size: 16px;

}

.content-search {
    width: initial;
}

.navbar-header .navbar-right {
    gap: 12px;
}

.modalForm {
    width: 100%;
}

/* custom tab */

/* .nav-custom-tab{
    border-bottom: none;
} */
.nav-custom-tab .nav-link.active {
    color: #000;
    border-bottom: 1px solid #000;
    font-weight: 600;
}

.nav-custom-tab .nav-link {
    background: transparent;
    border: none;
    font-size: 15px;
}

.nav-custom-tab .nav-link:hover,
.nav-custom-tab .nav-link:focus {
    background: none;
}

.broker-d-table th,
.broker-d-table td {
    white-space: nowrap;
}

.nav-aside img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.nav-aside .nav-item ul a {
    margin-left: 5px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-detail {
    position: relative;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.aside-logo img {
    max-width: 101px;
}

.log-logo img {
    max-width: 130px;
}

.product-img {
    width: 90px;
    height: 90px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: var(--bs-modal-width);
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width:767px) {

    .navbar-header .navbar-right .dropdown-notification .dropdown-menu,
    .navbar-header .navbar-right .dropdown-message .dropdown-menu {
        margin-top: 17.5px;
    }

    .dropdown-message .dropdown-link svg,
    .dropdown-notification .dropdown-link svg {
        width: 18px;
        height: 18px;
    }

}

@media (max-width:1199px) {
    .navbar-search-header .form-control {
        padding-left: 48px;
    }
}

.table-hover.cust-table tbody tr:hover {
    background: #f7f7f7;
}

.table.cust-table {
    --bs-table-hover-bg: #f7f7f7;
}

.table.cust-table tr td,
.table.cust-table tr th {
    vertical-align: middle;
}

.pointer {
    cursor: pointer;
}

.wd-fit {
    width: fit-content;
}

.ht-fit {
    height: fit-content;
}

.right-modal .modal-dialog {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
}

.right-modal .modal-dialog .modalForm,
.right-modal .modal-dialog .modal-content {
    height: 100%;
}

.right-modal .modal-dialog {
    margin-right: 0;
}

.bg-yellow {
    background-color: #f19c00 !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 58%;

}

.cust-pd-label {
    padding: 2px 8px;
}

.select2 .select2-selection__rendered {
    margin-bottom: 0;

}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
}



.panso-btn-outline-success {
    --bs-btn-color: #3AB795;
    --bs-btn-border-color: #3AB795;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1C524D;
    --bs-btn-hover-border-color: #1C524D;
    --bs-btn-focus-shadow-rgb: 12, 136, 66;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1C524D;
    --bs-btn-active-border-color: #1C524D;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #3AB795;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3AB795;
    --bs-gradient: none;
}

.panso-btn-outline-success:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.tooltip.cust-tooltip {
    position: relative;

    display: inline-block;

    opacity: 1;

    font-size: 17px;

    cursor: pointer;

    z-index: 1;

    padding: 0;
}

.tooltip.cust-tooltip .tooltiptext {
    visibility: hidden;

    width: 250px;

    background-color: black;

    color: #fff;

    text-align: start;

    border-radius: 6px;

    padding: 5px 14px;

    position: absolute;

    z-index: 1;

    top: 50%;

    left: 110%;

    transform: translateY(-50%);

    font-size: 12px;
}

.cust-tooltip.center-top .tooltiptext {
    width: 210px;
    top: -30px;
    left: -135px;
    text-align: center;
}

.tooltip.cust-tooltip .tooltiptext::after {
    content: "";

    position: absolute;

    top: 50%;

    right: 100%;

    margin-top: -5px;

    border-width: 5px;

    border-style: solid;

    border-color: transparent black transparent transparent;
}

.noafter.cust-tooltip .tooltiptext::after {
    content: none;
}

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

.custom-tab .nav-link.active {
    color: var(--theme-color);
    border: none;
    border-radius: 0;
    font-weight: 600;
    border-bottom: 2px solid var(--theme-color);
}

.custom-tab .nav-link {
    color: var(--dark-color);
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.custom-tab .nav-link:hover,
.custom-tab .nav-link:focus {
    background-color: transparent;
    color: var(--theme-color);
}

.notification-card.read,
.notification-card.read:hover {
    background: #fff;
    cursor: auto;
}

.notification-card.read .notif-message-read {
    display: none !important;
}

.notification-card.unread {
    background: #0c88421c;
    cursor: pointer;

}

.dropdown-message .dropdown-item,
.dropdown-notification .dropdown-item {
    margin: 0;
}

.btn-outline-dark:hover h6,
.btn-outline-dark.show h6 {
    color: #fff;
}

.content-body {
    height: 100% !important;
    overflow-y: visible;
}

.dropzone {
    border-radius: 5px;
}

.ui-datepicker {
    z-index: 99999 !important;
}

.fileupload-new {
    position: relative;
}

.fileupload-new .btn-file>input {
    transform: none;
    direction: unset;
    right: unset;
    left: 0;
}

.form-cust-check {
    position: relative;
}

.form-cust-check .form-check-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    float: unset;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.form-cust-check .form-check-label {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    color: #4a5568;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    border: 1px solid rgba(154, 154, 154, .4);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    -webkit-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
    position: relative;

}

.form-cust-check .form-check-input:checked~.form-check-label {
    border-color: var(--theme-color);
    background: var(--theme-color);
    color: #fff;
}

.check-success.form-cust-check .form-check-input:checked~.form-check-label {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.check-danger.form-cust-check .form-check-input:checked~.form-check-label {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.check-primary.form-cust-check .form-check-input:checked~.form-check-label {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.new-nav {
    flex-direction: column;
    border-right: none !important;
}

.new-nav .nav-link {
    justify-content: flex-start;
    height: max-content;
    padding: 15px;
    border: none !important;
    cursor: pointer;
    border-radius: 0 !important;

}

.new-nav .nav-link.active {
    background-color: #b6d4fe;
}

.new-nav.flex-column .nav-item+.nav-item {
    margin-top: 0px;

}

.new-nav.flex-column .nav-item+.nav-item .nav-link {
border-top: 1px solid #dfdfdf !important;

}

.new-nav .nav-link:hover {
    background: #f6f5f5;
}

.readonly-dropdown {
    pointer-events: none;  
    background-color: #e9ecef;  
    color: #6c757d; 
}

.no-focus-outline:focus {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.BasiinfoTab .icon-set {
    position: absolute;
    right: 10px;
    top: 10px;
}
.deliveries-box {
    height: 150px;
    width: 100%;
    object-fit: contain;
}
.h-150 {
    height: 150px;
}
