.form-control:focus {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.choices[data-type*=select-one] .choices__input {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.choices__inner:focus {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.choices:focus {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.form-select:focus {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.choices__inner:focus {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.is-focused .choices__inner, .is-open .choices__inner {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.choices__inner .choices__input:focus {
    border-color: transparent !important;
    background-color: transparent !important;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/*dropzone image preview layout updated*/
#dropzone-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; /* Adjust the gap between items */
}

#dropzone-preview li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#dropzone-preview button {
    margin-top: 8px;
}

#dropzone-preview h5 {
    word-wrap: break-word; /* Allows the word to wrap when necessary */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevent wrapping */
    display: block;
    width: 100%;
}

#dropzone-preview .flex-grow-1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Ensures content doesn't overflow the container */
}

#dropzone-preview .pt-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    justify-content: space-between;
    overflow: hidden; /* Prevent overflow of text */
}

#dropzone-preview .avatar-sm {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

#dropzone-preview .avatar-sm img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/*sidebar scrollbar*/
#scrollbar {
    height: 100vh;
    overflow-y: hidden; /* hide by default */
    transition: all 0.3s ease;
}

#scrollbar:hover {
    overflow-y: auto; /* show on hover */
}

/* Custom scrollbar styles (WebKit) */
#scrollbar::-webkit-scrollbar {
    width: 6px;
}

#scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox support */
#scrollbar {
    scrollbar-width: none; /* hide */
}

#scrollbar:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}


/********* CUSTOM CSS FOR SALES ********/

.sales-info {
    background: #4051891f;
    /*max-width: 250px;*/
}

.amount-row {
    border-bottom-width: 0px !important;
}

.amount-row > * {
    padding: 5px !important;
}

.amount-row {
    background-color: rgba(178, 178, 178, 0.2) !important;
}

.amount-row .form-control:focus {
    color: initial;
    background-color: var(--vz-input-bg) !important;
    border-color: var(--vz-input-focus-border) !important;
}

.invoice-table td{
    padding: 4px;
}

@media (max-width: 767px) {

    .sales-invoice-table tbody tr td {
        display: block;
        padding: 5px;
    }

    .sales-invoice-table .table-label {
        font-weight: 600;
        width: 150px;
    }

    .sales-invoice-total-row table th, .sales-invoice-total-row table td {
        width: 50%;
        display: block;
    }

    .sales-invoice-table thead {
        display: none;
    }

    .sales-invoice-table tbody#newlink tr td {
        display: flex;
        gap: 10px;
        padding: 5px;
    }

    .sales-invoice-total-row tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .sales-invoice-table thead tr th {
        display: block;
    }

    .sales-invoice-table .table-label {
        font-weight: 600;
        width: 110px;
        min-width: 110px;
    }

    .sales-invoice-table .choices {
        margin-bottom: 5px;
    }

}

/*select2*/

.select2-container.select2-focus .select2-selection {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

.select2-container.select2-keyboard-focus .select2-selection {
    border-color: #9C27B0 !important;
    background-color: #dd83bc70 !important;
}

/* Target the Select2 container generated around your select element */
.select2-container--default .select2-selection--single {
    position: relative;
    padding: 8px 36px 8px 12px; /* Left for text, right for arrow */
    height: auto !important;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Ensure the text inside is vertically centered after adding padding */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    margin: 0;
    line-height: 1.5;
    color: #333;
    width: 100%;
}

/* Style for the arrow, if padding makes it look off */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    transform: translateY(20%);
    /*position: absolute;*/
    /*top: 50%;*/
    /* right: 10px;*/
    /*transform: translateY(25%);*/
    /*height: 20px;
    width: 20px;*/
    /* pointer-events: none;*/
}

/* Optional: Padding for dropdown options themselves */
.select2-container--default .select2-results__option {
    padding: 8px 12px; /* Adjust as needed */
}

.select2-container--default .select2-results__option--highlighted[aria-selected="false"],
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #405189 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f0f4ff; /* light background for selected item */
    color: #333;
}


/*
   If the class 'form-select' (likely from Bootstrap or another framework)
   is overriding your padding or height, you might need to be more specific
   or adjust the Bootstrap variables if you're using Sass.

   For a direct override, you could try:
*/
.form-select.select2-hidden-accessible + .select2-container .select2-selection--single {
    /* Your padding rules here again if the above doesn't work due to specificity */
    padding: 4px 6px !important;
    height: auto !important;
}

/*autocomplete*/
.ui-state-active {
    border: none !important;
    background: #405189 !important;
    color: #fff !important;
    padding: 10px 14px;
}

.ui-menu-item-wrapper {
    /* styles for non-active items */
    background: #fff;
    color: #333;
    padding: 10px 14px;
    cursor: pointer;
}


/*website*/

#website .navbar .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

#website .navbar .navbar-nav .nav-link:hover,
#website .navbar .navbar-nav .nav-link:focus {
    color: #007bff;
    text-decoration: none;
}

#website .navbar .navbar-nav .nav-link.active {
    color: #0d6efd;
    font-weight: bold;
}

