.form-typeahead-wrap {
    position: relative;
}
.typeahead.dropdown-menu {
    right: 0px;
    max-height: 250px; /* scroll if too many options */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #fff;
    margin-top: 2px;
    z-index: 1000; /* make sure it appears above other elements */
}

/* Each option */
.typeahead.dropdown-menu li a {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Hovered / active option */
.typeahead.dropdown-menu li.active > a,
.typeahead.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

/* Optional: highlight matching text */
.typeahead.dropdown-menu li a strong {
    font-weight: bold;
}

.upload-wrapper {
    /* width: 200px; */
    width: 100%;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    height: 145px;
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: #3b82f6;
    background-color: #eef4ff;
}

.upload-content {
    text-align: center;
    color: #6b7280;
}

.upload-icon > i {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.preview-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}


.preview-image-show {
    display: block !important;
}

/* Remove Icon */
.upload-image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    transition: 0.2s;
}

.remove-btn:hover {
    background: red;
}

.table-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-icon {
    padding: 6px;
}
.btn-icon i {
    font-size: 12px;
}
.pagination-custom .page-link {
    border-radius: 0px !important;
    margin: 0 2px;
    min-width: 38px;
    text-align: center;
    padding: 6px 12px;
    transition: all 0.2s;
}

.pagination-custom .page-item:first-child .page-link {
    border-top-left-radius:0.375rem !important;
    border-bottom-left-radius:0.375rem !important;
}
.pagination-custom .page-item:last-child .page-link {
    border-top-right-radius:0.375rem !important;
    border-bottom-right-radius:0.375rem !important;
}

.pagination-custom .page-link:hover,
.navbar-vertical .navbar-nav .nav-link:hover,
.navbar-vertical .navbar-nav .nav-link.active {
    background-color: #4B45C4 !important;
    color: white !important;
}

.pagination-custom .page-item.active .page-link {
    background-color: #5A54D6;
    border-color: #5A54D6;
    color: white;
    font-weight: 600;
}
.custom-table thead {
    background-color: #f3f3f3;
}
.custom-table thead tr th {
    padding: 0.8rem 0.5rem;
    color: #161616;
}
.select2-selection__rendered,
.custom-table thead tr th {
    font-size: 0.90rem !important;
}
.custom-table tbody tr:hover {
    background-color: #f8f8f8;    
}
.btn-primary-custom {
    background-color: #5A54D6;
    border: none;
    color: #fff;
    border-radius: 22px !important;
    padding-right: 1.8rem;
    padding-left: 1.8rem;
    margin: 0 !important;
}
.btn-primary-custom:hover,
.btn-primary-custom:active:focus,
.btn-primary-custom:focus,
.btn-suffix:focus,
.btn-suffix:hover,
.btn-suffix:active:focus
 {
    background-color: #4B45C4 !important;
    color: #fff !important;
}
.btn-suffix {
    background-color: #5A54D6;
    color: #fff;
    border-bottom-left-radius: 0px !important;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 0px;
}
.wrap-input-suffix > input,
.wrap-input-suffix .select2-selection {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}
.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}
.card-header > h5{
    color: #2d2b2b;
    font-weight: 700;
}
.form-control-color {
    height: 40px;
}
.select2-ajax {
    min-width: 180px;
}
.dropdown .dropdown-toggle:after, .dropup .dropdown-toggle:after, .dropstart .dropdown-toggle:after, .dropend .dropdown-toggle:after {
    display: none;
}
.img-thumbnail {
    height: 80px;
    line-height: 80px;
}
.btn-open-filter {
    padding: 11px !important;
}
.no-print { display: block; }

/* ── Print scope ── */
@media print {

    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the invoice area */
    #print-area,
    #print-area * {
        visibility: visible;
    }

    /* Position it top-left */
    /* #print-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    } */

    /* Hide buttons, sidebar, navbar */
    .no-print {
        display: none !important;
    }
}
