.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}


.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px); /* Match the height of .form-control */
    padding: 0.375rem 0.75rem;   /* Match padding of .form-control */
    color: #495057;             /* Match text color */
    background-color: #fff;     /* Match background color */
    border: 1px solid #ced4da;  /* Match border */
    border-radius: 0.25rem;     /* Match border radius */
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem); /* Match height */
    top: 50%;             /* Center the arrow vertically */
    transform: translateY(-50%);
}

.select2-container {
    width: 100% !important; /* Force full width */
}

/* Add a border and padding around the product rows container */
#product-rows-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Add a bottom border or separation between each product row */
.product-row {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* Remove bottom border for the last product row */
.product-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Styling for the amount fields container */
#amount-fields-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

#amount-fields-container .section-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

/* Styling for the dealer field container */
#dealer-field-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

#dealer-field-container .section-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

#product-rows-container .section-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 25px !important;
}

.c-sidebar-nav-dropdown-items {
    padding-left: 1.5rem; /* Indent inner elements */
}

.c-sidebar-nav-link:hover {
    background-color: #f8f9fa; /* Highlight on hover */
    color: #007bff; /* Text color on hover */
}

/* Section Containers */
#basic-info-container,
#packing-materials-container,
#finished-products-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Section Titles */
.section-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

/* Product Rows */
.product-row,
.material-row {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.product-row:last-child,
.material-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Bulk Products Section */
#bulk-products-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.bulk-item-row {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.bulk-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Add these styles for better button alignment */
.bulk-item-row .btn-danger {
    margin-top: 32px; /* Aligns with input fields */
}

/* Add hover effect for better UX */
.bulk-item-row:hover {
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

/* Add these classes for rate display */
.bulk-rate {
    font-weight: bold;
    color: #28a745;
}

/* Total cost display */
.bulk-total-cost {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
    padding: 10px 0;
    border-top: 2px solid #dee2e6;
    margin-top: 15px;
}

/* Validation styles */
.bulk-item-row .select2-container--default.select2-container--error .select2-selection {
    border-color: #dc3545;
}

/* Loading indicator for rate calculations */
.bulk-item-row .loading {
    position: relative;
    opacity: 0.7;
}

.bulk-item-row .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7) url('loading.gif') center no-repeat;
}