#fileInput {
    cursor: pointer;
}

.dataTables_length {
    display: none;
}

input[type="checkbox"] {
    transform: scale(1.2);
}

input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid grey;
    border-radius: 4px;
    font-size: 0.65rem;
    text-align: center;
}

input {
    border: none; /* No border initially */
    outline: none; /* Remove default outline */
    padding: 8px;
    background-color: transparent;
}

/*    input:focus {
        border: 1px solid grey !important;
    }*/

.edit-btn, .save-btn {
    font-size: 0.8rem;
    color: #4f8ded;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    /*width: 100%;*/
    background-color: transparent;
}

.delete-btn {
    font-size: 0.8rem;
    color: red;
    text-decoration: none;
    border-radius: 4px;
    border: none;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    font-size: 0.8rem;
    font-family: Helvetica Neue, sans-serif !important;
    font-weight: 600;
    padding: 8px;
}

.table thead th {
    border-bottom: none !important;
    border-top: none !important;
}

table tbody tr:nth-child(odd) {
    background-color: white !important;
}

table tbody tr:nth-child(even) {
    background-color: #ECF8FE !important;
}

table tbody td {
    color: black !important;
}

.dataTables_scroll ::-webkit-scrollbar {
    height: 8px;
    width: 5px;
}

/* Track */
.dataTables_scroll ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.dataTables_scroll ::-webkit-scrollbar-thumb {
    background: #cbeeff !important;
}

    /* Handle on hover */
    .dataTables_scroll ::-webkit-scrollbar-thumb:hover {
        background: #cbeeff !important;
    }

thead th {
    background-color: #ecf8fe !important;
    border: none !important;
    text-align: center;
}


.custom-placeholder::placeholder {
    color: lightgray; /* Set your desired color */
    opacity: 1; /* Ensure full opacity */
}

/* For WebKit browsers (Chrome, Safari, Edge) */
.custom-placeholder::-webkit-input-placeholder {
    color: grey;
}

.upload-button {
    background-color: #ffaa00;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.modal {
    display: none;
    position: absolute;
    top: 6.8rem;
    left: 80.1rem;
    width: 24%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow-y: auto !important;
    z-index: 999;
}

.modal-backdrop {
    height: 0 !important;
    width: 0 !important;
}
#customModalBg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #8597ab;
    opacity: 0.5;
    z-index: 0; /* Behind the modal */
    display: none; /* Hidden by default */
    pointer-events: none; /* Allows click-through */
}

.blacklistModal {
    display: none;
    position: absolute;
    top: 10.8rem;
    left: 30rem;
    width: 50%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow-y: auto !important;
    /*z-index: 999;*/
}


.bulkmodal {
    display: none;
    position: absolute;
    top: 6.8rem;
    left: 73rem;
    /*width: 100%;*/
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.savemodal {
    display: none;
    position: absolute;
    top: 10.8rem;
    left: 72.8rem;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.editmodal {
    display: none;
    position: relative;
    top: -57.2rem;
    left: 42.8rem;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background-color: #ffe3b9;
    padding: 10px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 0px;
}
.blackListmodal-content {
    background-color: #ffe3b9;
    padding: 10px;
    border-radius: 10px;
    /*width: 50%;*/
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 0px;
}

.bulkmodal-content {
    background-color: #e6f5e9;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 0px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.bulkModalclose {
    position: absolute;
    top: 10px;
    right: 5%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1000;
}
.savebulkModalclose {
    position: absolute;
    top: 10px;
    right: 77%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1000;
}
.editbulkModalclose {
    position: absolute;
    top: 10px;
    right: 5%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1000;
}

/* Style for the upload area container */
.upload-area {
    text-align: center;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff3e0;
}

.bulkmodalupload-area {
    text-align: center;
    margin-top: 0.8rem;
    border-radius: 8px;
    padding: 10px;
    background-color: #c7e6c9;
}
.savemodalupload-area {
    text-align: center;
    margin-top: 0.8rem;
    border-radius: 8px;
    padding: 10px;
    background-color: #c7e6c9;
}

/* Style for the upload icon */
.upload-icon {
    max-width: 100%;
    width: 120px;
    height: auto;
}

.file-upload-icon {
    max-width: 100%;
    width: 40px;
    height: 40px;
}

/* Style for text */
.upload-text {
    font-size: 0.65rem;
    font-family: Helvetica Neue, sans-serif !important;
    font-weight: bold;
    margin-bottom: 5px;
}

.upload-instructions {
    font-size: 0.55rem;
    font-family: Helvetica Neue, sans-serif !important;
    color: gray;
    margin-bottom: 20px;
}

/* Style for the button */
.browse-files {
    padding: 8px 15px;
    font-size: 0.65rem;
    font-family: Helvetica Neue, sans-serif !important;
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}

.modal-actions button {
    background-color: #ffe3b9;
    color: black;
    border: 1px solid black;
    padding: 10px 15px;
    font-size: 0.65rem;
    font-family: Helvetica Neue, sans-serif !important;
    width: 100%;
    margin: 5px;
    cursor: pointer;
    border-radius: 10px;
}

.bulkmodal-actions {
    grid-column: span 2;
    display: flex;
    justify-content: left;
    gap: 20px;
}

    .bulkmodal-actions button {
        border: none;
        border-radius: 5px;
        padding: 8px 10px;
        font-size: 0.65rem;
        font-family: Helvetica Neue, sans-serif !important;
        font-weight: bold;
        cursor: pointer;
    }

.text-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
}

/* Styling for individual text elements */
.title {
    font-weight: bold;
    font-size: 0.65rem;
    text-align: left;
    font-family: Helvetica Neue, sans-serif !important;
    padding-top: 5px;
}

.subtitle {
    font-size: 0.65rem;
    color: gray;
    font-family: Helvetica Neue, sans-serif !important;
}

.container {
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.add-field {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: end;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.6rem;
}

.custom-input, .custom-select {
    border: 1px solid black;
    border-radius: 5px;
    outline: none;
    font-size: 0.65rem;
    height: 55%;
}

    .custom-input:focus, .custom-select:focus {
        border-color: #66bb6a;
    }

.add-field button {
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
    /*background-color: #c7e6c9;*/
}

.add-field button:hover {
    background-color: #007bff;
    color: white;
}
/* Style for Pagination Wrapper */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

/* Style for Page Links (Numbers and Buttons) */
.page-link {
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #cddde4;
}

    .page-link:hover {
        background-color: #022f56;
        color: white;
    }

/* Active Page Styling */
.page-item.active .page-link {
    background-color: #022f56;
    color: #ffffff;
    border: none;
}

.page-item.disabled .page-link {
    color: #c0c9d6;
    pointer-events: fill;
    cursor: pointer;
    background-color: #f3f8ff;
    border: none;
    /*border-color: #dee2e6;*/
}

/* Previous and Next Button Styling */

.paginate_button.previous .page-link {
    background-color: #cddde4;
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.paginate_button.next .page-link {
    background-color: #cddde4;
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

    .paginate_button.previous .page-link:hover,
    .paginate_button.next .page-link:hover {
        background-color: #022f56;
        color: white;
    }

/* Remove Default List Style */
ul.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* First button: Product Categorization */
.btn-outline-secondary.active {
    background-color: #022f56 !important;
    color: white !important;
}

/*.btn:hover {
    background-color: #cbeeff;
    color: black;
}*/

.table-product-image {
    width: 60px;
    height: auto;
    margin-right: 25px;
}

.dt-buttons {
    margin-bottom: -5px;
    background-color: white;
}

    .dt-buttons:hover {
        background-color: white !important;
        color: white !important;
    }

.btn-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

div.dataTables_wrapper div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: right !important;
    background-color: #4f8ded !important;
    border-bottom-left-radius: 8px !important;
    border-top-left-radius: 8px !important;
    font-size: 0.65rem !important;
    padding-left: 10px !important;
    color: white !important;
    border-color: #4f8ded !important;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: .5em;
    display: inline-block;
    width: auto;
    border-color: gray !important;
    background-color: white !important;
    border: 1px solid lightgray !important;
    border-radius: 0px;
}

.btn-group-vertical > .btn:hover, .btn-group > .btn:hover {
    z-index: 0 !important;
}

.btn-group-vertical > .btn.active, .btn-group-vertical > .btn:active, .btn-group-vertical > .btn:focus, .btn-group > .btn.active, .btn-group > .btn:active, .btn-group > .btn:focus {
    z-index: 0 !important;
}

.nav-tabs .nav-link {
    display: block;
    max-width: 80px; /* Adjust width as needed */
    text-align: center;
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word;
    word-break: break-word; /* Ensures text breaks properly */
    line-height: 1.2; /* Adjust line spacing */
}

.edit-btn i, .save-btn i {
    pointer-events: none;
}

/* Ensure Select2 container takes full width */
.select2-container {
    width: 100% !important;
}

    /* Remove duplicate borders */
    .select2-container .select2-selection--multiple {
        min-height: 40px;
        border: 1px solid #ccc !important;
        background-color: #fff;
        border-radius: 6px;
        padding: 5px;
        display: flex;
        align-items: center;
    }

/* Remove extra borders inside the input */
.select2-selection__rendered {
    border: none !important;
    padding: 0 !important;
}

/* Ensure proper width of the input field inside the multi-select */
.select2-search__field {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: auto !important;
    min-width: 150px !important; /* Ensures proper typing space */
    max-width: 100% !important;
}

/* Fix for disappearing input field */
.select2-selection--multiple .select2-search--inline {
    flex: 1;
}

/* Style selected tags */
.select2-selection__choice {
    background-color: #007bff !important;
    color: white !important;
    border: 1px solid #007bff !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    margin: 3px !important;
}

/* Remove default close button on selected tags */
.select2-selection__choice__remove {
    color: white !important;
    margin-left: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

/* Style dropdown options */
.select2-dropdown {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Style each dropdown option */
.select2-results__option {
    padding: 10px !important;
    font-size: 14px !important;
    transition: background 0.3s ease !important;
}

    /* Hover effect on options */
    .select2-results__option:hover {
        background-color: #007bff !important;
        color: white !important;
    }

    /* Highlight selected option */
    .select2-results__option[aria-selected="true"] {
        background-color: #0056b3 !important;
        color: white !important;
    }

/* Ensure placeholder text is visible */
.select2-selection__placeholder {
    color: #999 !important;
    font-size: 14px !important;
}
