/* SELECT2 FIXES – Match Bootstrap .form-select look */
/* Ensure full width */
.select2-container {
    width: 100% !important;
}

.select2-selection--multiple .select2-search__field{
    width:100%!important;
    min-height: 24px; /* Match Bootstrap .form-select */
    padding: 0.375rem 0.75rem;
    padding-right: 2.5rem; /* Room for the arrow */
    line-height: 1.5;
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: 0.375rem;
    background-color: #fff;
}

/* Style the single select field */
.select2-container--default .select2-selection--single {
    position: relative;
    min-height: 38px; /* Match Bootstrap .form-select */
    padding: 0.375rem 0.75rem;
    padding-right: 2.5rem; /* Room for the arrow */
    line-height: 1.5;
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: 0.375rem;
    background-color: #fff;
}

/* Fix arrow positioning */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    height: 100%;
    top: 0;
    right: 10px;
    display: flex;
    align-items: center;
    pointer-events: none;
}


/* Optional: Fix arrow triangle spacing */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 0 !important;
}

/* Overide place holder color */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #666 !important; /* your override color */
}


/* Limit dropdown height and prevent full-page scroll */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto;
}

/* Prevent dropdown from affecting layout */
.select2-dropdown {
    position: absolute;
    z-index: 9999;
}

/* Style the Select2 clear (cancel) button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 2rem; /* Adjust depending on your arrow padding */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 2;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333;
}


/* Optional: Clear button fix for multiple select (though rarely used) */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 10px;
    color: #aaa;
    cursor: pointer;
}

/* Override Just overflow: hidden in One Case*/

.select2-no-overflow + .select2-container .select2-selection--single .select2-selection__rendered {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important; /* <-- Keep this */
    display: block;
}


/* Prevent page scrollbars when dropdown opens */
body {
    overflow-x: hidden;
}


/*CUSTOM OVERLAY IMAGE BG DIFFERENT PAGES*/
.bg-overlay.custom-auth-image {
    background: url(../images/bg-alt-auth-overlay.png); /* Use your new image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.bg-overlay.custom-auth-image-alt {
    background: url(../images/bg-alt-two-auth-overlay.png); /* Use your new image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bg-overlay.custom-auth-image-alt-three {
    background: url(../images/bg-alt-three-auth-overlay.png); /* Use your new image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/*OWL CAROUSEL ARROW SIZE FIXES*/
.owl-carousel .owl-nav {
    text-align: center;
    margin-top: 0px !important; /* Reduce gap below carousel */
    padding-top: 0px;
    margin-bottom: 5px;
}

/* Nav arrow buttons */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    font-size: 12px !important;
    width: 20px;
    height: 20px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    border: none;
    padding: 0;
    line-height: 20px;
    margin: 2px 5px;
    transition: background 0.3s ease;
}

/* Hover effect */
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: #0056b3;
}


/*COMPANY LOGO DISPLAY ON GRID TO BE FIXED*/
.company-logo-img {
    width: auto;
    height: 70px;
    object-fit: contain;
}

/*VERTICAL DISPLAY OF TEXT ON GRID ESPECIALLy WITH IMAGES*/
.vertical-center {
    vertical-align: middle !important;
}



/* To make the active tab more visually distinct, especially the border*/
.nav-tabs .nav-link.active {
    border-bottom: 3px solid #0d6efd !important; /* Bootstrap primary color, change as needed */
    font-weight: 600;
    color: #0d6efd !important;
    background-color: #d4dbf9; /* optional: adds slight contrast */
}

.nav-tabs .nav-link {
    color: #6c757d; /* muted color for inactive tabs */
    border: none;
}


/* for the holidays hide all form-sections by default*/
.form-section { 
    display: none; 
}


/*manually Restore the + Icon in datatable its being overriden by custom style.css*/
td.dtr-control::before {
    content: '+';
    color: #0d6efd; /* bootstrap primary or any visible color */
    font-weight: bold;
    display: inline-block;
    width: 1.25em;
    text-align: center;
    margin-right: 10px;
}


/*fix for livewire pagination display*/
.pagination-wrapper .pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}


/* define a custom class like form-control-ms to override or fine-tune the size (or any other styling) without affecting all .form-control elements.*/
.form-control-ms {
    height: 53px; /* Adjust this as needed */
    background: #fff !important;
    color: #000000 !important;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: none !important;
}

/*custom text wrap*/
.text-wrap {
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 600px; /* Optional: limit width */
}


/*background for the row groups in a datatable*/
.group {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-top: 2px solid #ccc;
}


/* Force word wrap in responsive child rows */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.child ul li {
    white-space: normal !important;
    word-break: break-word;
    word-wrap: break-word;
    max-width: 100%;
}















