﻿body {
    /*
    padding-top: 50px;
    padding-bottom: 20px;
    */
    /*
    line-height: 1.0 !important;
     */
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    /*
    max-width: 280px;
    */
}

.navbar-brand img {
    height: 1.5rem;
}

.h-48px {
    height: 2.5rem !important;
}

.content-inner {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    position: relative;
    /*overflow-y: auto;*/
    -webkit-overflow-scrolling: touch
}

@media (prefers-reduced-motion:no-preference) {
    .content-inner {
        scroll-behavior: smooth
    }
}

.page-title {
    padding: 1rem 0;
    position: relative;
}

.page-content {
    padding: .625rem;
}

.content {
    flex-grow: 1;
}
.no-page-padding  {
    padding: 0 !important; /* or any other padding you want */
    background-color: white !important;
}


/*************** Start Datatable CSS ***********************/

.table {
    line-height: 0.8;
}

.table thead{
    background-color: #f4f6f9;
}

.highlight tbody tr:hover {
    background-color: #f5f5f5;
}
/****************** End Datatable CSS *********************/


/* For Webkit browsers like Chrome and Safari */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* For Firefox */
input[type="search"]::-moz-clear {
    display: none;
}

/* For Edge and Internet Explorer */
input[type="search"]::-ms-clear {
    display: none;
}

.card-header {
    padding: .8rem 1.25rem;
}

/******************* Start Filter CSS *********************/
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.filter-box {
    position: absolute;
    width: 400px;
    height: auto;
    max-height: 400px;
    z-index: 100;
    top: 60px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-box .filter-scrollbar {
    max-height: 250px;
}

.filter-scrollbar {
    height: 80%;
    overflow-y:auto;
}

/******************** End Filter CSS **********************/


/******************** Start Search Box CSS ******************/
.search-container {
    display: flex;
    flex-direction: column;
    /*align-items: start;*/
}

.search-box {
    position: absolute;
    width: 170%; 
    height: auto;
    z-index: 100;
    top: 40px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.search-box .search-scrollbar {
    max-height: 220px;
}

.search-scrollbar {
    height: 80%;
    overflow-y: auto;
}

.search-box .search-scrollbar ul li:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}
/* Make each list item behave like a row */
.card.search-box .list-group-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr; /* name, role, phone, email */
    gap: 8px;
    align-items: center;
}

    /* All spans truncate nicely */
    .card.search-box .list-group-item .col {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0; /* needed for truncation in grid */
    }

.card.search-box .list-group-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .card.search-box .list-group-item span {
        max-width: 15ch;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0; /* REQUIRED for flex truncation */
    }

/******************* End Search Box CSS *********************/


.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #2ba59a;
    width: 0;
    z-index: 10000;
}
/*To Add Spinner on Button*/
.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

    .spinner-overlay i {
        font-size: 1.2rem;
        display: inline-block;
        vertical-align: middle;
        line-height: 1;
    }


/* To Maintain card Width in  Forgot password workflow*/
.card-360 {
    width: 260px; /* Set the width to match the Login card */
    /* height:375px;*/
}


.nav-tabs-highlight .nav-link.active:before {
    background-color: #008080 /*#2196f3*/
}

/*To change the color of wizard*/
.wizard > .steps > ul > li:after, .wizard > .steps > ul > li:before {
    content: '';
    display: block;
    position: absolute;
    top: 2.375rem;
    width: 50%;
    height: 2px;
    background-color: #009688; 
    z-index: 9
}


.wizard > .steps > ul > li.current .number {
    font-size: 0;
    border-color: #009688;  
    color: #009688;  
}

.wizard > .steps > ul > li.done .number {
    font-size: 0;
    background-color: #009688; 
    border-color: #009688; 
    color: #fff

}



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0, 0.3); 
    display: none;
    z-index: 9999;
    transition: opacity 0.2s ease-in-out;
}


/* Bulk Edit Panel  styling */
.panel {
    overflow: visible !important;
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 99vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    padding: 0px !important;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

    .panel.show {
        right: 0;
    }




/* Full-page dim effect */
.navbar.blur, .dimmed-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
   
    z-index: 9998;
    display: none;
}
    .dimmed-content.active {
        display: block;
    }


.panel-header {
    padding-top: 0.5rem; 
    padding-left: 1rem; 
    border-bottom: 1px solid #dee2e6;
}
.panel-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.panel-body {
    
    flex-grow: 1; 
    padding: 1rem; 
}


.footer {
    /*  position: fixed; Stick the footer */
    bottom: 0;
    /* left: 0;*/
    width: 100%;
    z-index: 999; /* Ensure it stays above other elements */
    /*background: #fff;*/ /* Match the background color */
    /*box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);*/
}
.big-close-btn {
   
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-bottom: 1rem;

}
/* Hide scrollbar but allow scrolling */
html, body {
    overflow: auto; /* Allows scrolling */
    -ms-overflow-style: none; /* Hides scrollbar in IE & Edge */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Hides scrollbar in Chrome, Safari, Edge */
    }

.badge-fixed-width {
    display: block;
    width: 80%; 
    text-align: center;
    padding: 4px 6px;
    box-sizing: border-box;
    white-space: nowrap; /* keep text on one line */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* add "..." when trimmed */
}

/************************ Widgets ***********************/

.std-widget {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
}

/*******************************************************/



/********************** Login Page **********************/

.display-area {
    padding-left: 20vh;
}

.display-header {
    font-size: 7vh;
}

.display-bullets {
    font-size: 1.2rem;
}

/*******************************************************/



/************************* Date Picker *****************************/
.picker__holder{
    min-width:20rem;
}
.custom-picker-wrapper .input-group {
    width: auto !important;
}

/************************* Date Picker *****************************/
.select2-selection.is-invalid {
    border-color: #ef5350 !important;
    padding-right: calc(1.5715em + .875rem);
    background-repeat: no-repeat;
    background-position: right calc(.39287em + .21875rem) center;
    background-size: calc(.78575em + .4375rem) calc(.78575em + .4375rem);
}

.z-index-1 {
    z-index: 1 !important;
}

.dropdown-menu-help {
    position: absolute;
    top: 100%;
    z-index: 1000;
    display: none;
    float: left;
    min-height: 150px;
    min-width: 350px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

/********************************************************* Country calling code ************************************************************/

.select2-container .select2-selection--single {
    height: 38px; /* Match Bootstrap input height */
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Apply styles ONLY inside calling-code-wrapper */
.calling-code-wrapper .select2-container--default .select2-selection--single {
    border: 1px solid #d0d0d0;
    background: #f1f3f5;
    /*border-radius: 6px 0 0 6px !important;*/
    display: flex;
    align-items: center;
}

.calling-code-wrapper .select2-container--default .select2-selection--single {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

    .calling-code-wrapper .select2-container--default
    .select2-selection--single .select2-selection__rendered {
        line-height: 24px !important;
        text-align: center;
    }

    .calling-code-wrapper .select2-container--default
    .select2-selection--single .select2-selection__arrow {
        height: 42px !important;
        right: 8px;
        align-items: flex-start;
    }

.calling-code-wrapper .phone-input {
    height: 42px;
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important;
}

.calling-code-wrapper
.select2-container--default.select2-container--open
.select2-selection--single {
    background: #e9ecef;
}

.calling-code-select2-container[aria-disabled="true"]
.select2-selection__rendered {
    color: #333 !important;
}
.calling-code-select2-dropdown {
    width: 289.5px !important;
    /*width: auto !important;*/
}

/********************************************************* DataTable ************************************************************/
.table td, .table th, .table tr {
    padding: 0.4rem;
    font-size: small;
    cursor: pointer;
   
}







.table #select-all,
.table .row-checkbox {
    margin-left: 13px !important;
   
}

.first-col {
    padding-left: 13px !important;
}


/*.pickadate[readonly] {
    background-color: #fff !important;
}*/


.dropdown-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}
.currency-width {
    min-width: 56.875px; /* 48px;  Adjust as needed for your font and padding */
    text-align: center;
    
}

/******************************************************************* Comment Tab **************************************************************/
.comment-input-wrapper {
    position: relative;
}


.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mention-user {
    color: #2196f3;
    cursor: pointer;
}

/*#comment {
    min-height: 80px;*/ /* adjust as needed */
    /*padding: 10px;
    color: black;
   
}*/
#comment {
    min-height: 80px;
    max-height: 200px;
    padding: 10px;
    color: black;
    overflow-y: auto;
    white-space: pre-wrap; /* allows wrapping */
    word-break: break-word; /* breaks long words */
    overflow-wrap: break-word; /* modern support */
    width: 100%; /* prevent overflow */
    box-sizing: border-box; /* include padding in width */
    border: 1px solid #ddd;
}

#comment.form-control {
    white-space: pre-wrap !important;
}

.media-chat-item {
    width: 100%;
    /*overflow: hidden;*/
}

.comments {
    color: black;
    overflow-y: auto;
    /*white-space: pre-wrap; */
    word-break: break-word; /* breaks long words */
    overflow-wrap: break-word; /* modern support */
    width: 100%; /* prevent overflow */
    box-sizing: border-box; /* include padding in width */
   
}

.profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color:white;
}
.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover; /* prevents stretching */
}
.media-body.comment {
    position: relative; /* required for arrow */

    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3);
}
/*.media-chat-item:before {  // for shodow on arrow
    content: '';
    left: -5px;
    top: 1rem;
    position: absolute;
    margin-left: 0;
    border-top: 5px solid transparent;
    border-right: 5px solid;
    border-right-color: inherit;
    border-bottom: 5px solid transparent;
}*/
.mention-item.active {
    background-color: #e9ecef;
    cursor: pointer;
    color:black;
}