body {
    direction: rtl;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
 
html, body {
    height: 100%;
    margin: 0;
}

 
.dropdown-item {
    text-align: right;
}

.dropdown-container {
    display: flex;
    justify-content: flex-start;
    /* Align items to the start (left) */
    align-items: flex-start;
    /* Align items to the top */
    height: 100vh;
    /* Full viewport height for demonstration */
    padding: 20px;
    /* Add some padding */
}

.dropdown-menu {
    position: absolute;
    /* Ensure dropdown menu is positioned correctly */
}

.dropdown-header {
    text-align: right;
    font-size: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Adjust the gap as needed */
}

.badge {
    background-color: #007bff;
    /* Adjust the color as needed */
    color: #fff;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    border-radius: 0.2rem;
    display: inline-block;
    line-height: 1;

}

.dropdown-toggle-card-setting {

    position: absolute;
    top: 5px !important;
    left: 5px !important;
}

.dropdown-toggle-card-setting::after {
    display: none;
}

.btn-close {
    position: absolute;
    left: 1rem;
    /* Adjust as needed */
    right: auto;
    /* Remove any default right positioning */
}

textarea {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .btn-close {
    left: 1rem;
    /* Position on the left in RTL mode */
    right: auto;
    /* Ensure it doesn't override RTL positioning */
}

.custom_tenant_notes_textarea {
    height: 100px;
    resize: none;
}

#curve_chart {
    width: 100%;
    height: 500px;
}

.id_img_edit_style {
    width: 440px !important;
    height: 280px !important;
}

.form-check-input {
    float: right !important;
    margin-left: 10px !important;
}

.form-check-label {
    float: right !important;

}

.btn_light_links {

    position: absolute;
    top: 15px;
    right: 15px;
    opacity: .78;

}

.header {
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 10px 0;
}

.bill-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.bill-item:last-child {
    border-bottom: none;
}

.bills-list {
    margin-top: 15px;
}

.calendar-header-days,
#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 equal columns */
    gap: 5px;
    margin-top: 10px;
    direction: ltr;
}

.calendar-header-days div,
.day {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    direction: ltr;
}

.day {
    position: relative;
    max-width: 100%;
    /* Ensure the days fill the grid cell */
    height: auto;
}

.upcoming {
    background-color: #e0f7fa;
}

.tenant-name {
    margin-top: 5px;
    font-size: 0.8em;
    color: #00796b;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.today {
    background-color: #00BFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .calendar-header-days,
    #calendar-days {
        grid-template-columns: repeat(7, 1fr);
        /* Ensure 7 columns on tablet-sized screens */
    }
}

@media (max-width: 600px) {

    .calendar-header-days,
    #calendar-days {
        grid-template-columns: repeat(7, minmax(40px, 1fr));
        /* Allow smaller minimum widths for each column */
    }
}

@media (max-width: 400px) {

    .calendar-header-days,
    #calendar-days {
        grid-template-columns: repeat(4, 1fr);
        /* Stack into 4 columns on very small screens */
    }

    .day,
    .calendar-header-days div {
        font-size: 0.8em;
        /* Reduce font size for small screens */
        padding: 5px;
        /* Reduce padding for smaller areas */
    }
}

.btn_light_links_complexes {
    left: 0px;
    right: 0px;
    top: 0px;
    position: relative;
    opacity: .70;

}


.order-card {
    color: #fff;
}

.bg-c-blue {
    background: linear-gradient(45deg, #4099ff, #73b4ff);
}

.bg-c-green {
    background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}

.bg-c-yellow {
    background: linear-gradient(45deg, #FFB64D, #ffcb80);
}

.bg-c-pink {
    background: linear-gradient(45deg, #FF5370, #ff869a);
}


.card {
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
    box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
    border: none;
    margin-bottom: 30px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.card .card-block {
    padding: 25px;
}

.order-card i {
    font-size: 26px;
}

.f-left {
    float: left;
}

.f-right {
    float: right;
}





#suggestion-box {
    max-height: 300px;
    /* Maximum height of the suggestion box */
    overflow-y: auto;
    /* Enable vertical scrolling if needed */

    background-color: white;
    /* Background color */
    border-radius: 0.25rem;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    margin-top: 37px;

}

.list-group-item {
    cursor: pointer;
    /* Pointer cursor on hover */
}

.list-group-item:hover {
    background-color: #f8f9fa;
    /* Light background on hover */
    color: #0056b3;
    /* Darker text color on hover */
}

.custom-border {
    border-color: #dee2e6 !important;
    /* Match this color with Bootstrap's info color */
    outline: none;
}

/* Optionally, you can remove the default button border color when focused */
.custom-border:focus {
    border-color: #dee2e6 !important;
    /* Keep the same border color on focus */
}

.list-group-item.active {
    background-color: #007bff;
    color: white;
}

#chart_div_months,
#chart_div_years,
#chart_div_month_years {
    width: 100%;
    /* Ensure the chart takes full width */
    height: 400px;
    /* Set a fixed height */
    margin: 0;
    /* Remove any default margins */
    padding: 0;
    /* Remove any default padding */
    overflow: hidden;
    /* Prevent overflow */
    position: relative;
    /* Ensure positioning */
}

.loginBG {
    background: linear-gradient(120deg, #d3d3d3, #a1c4fd);
    /* Gray to Blue gradient */
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.loginBG::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.3);
    /* Light gray/white glow */
    border-radius: 50%;
    filter: blur(80px);
}

.loginBG::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: rgba(173, 216, 230, 0.3);
    /* Light blue glow */
    border-radius: 50%;
    filter: blur(100px);
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes move-reverse {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}


.pagination,
.pagination ul,
.pagination nav {
    margin-left: 0px !important;
    margin-right: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;

}

.custom-hover:hover {
    background-color: #f8f9fa;
    /* Light background color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add shadow on hover */
    transform: scale(1.02);
    /* Slight zoom effect */
    transition: all 0.3s ease;
    /* Smooth transition */
}


.btn-container-appCustom {
    margin-top: 30px;
    text-align: center;
}

.btn-appCustom {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    margin: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-appCustom:hover {
    background: #0056b3;
    transform: translateY(-2px);
}



main {
    flex-grow: 1;
}

footer {
    margin-top: auto;
}
@media print {
      
    .HideOnPrint  {
           display: none !important;
       }
}
#sumCard {
    width: 100%;
    margin-bottom: 1rem;
}

.tenant-card {
    cursor: grab;
}

.sortable-ghost {
    opacity: 0.5;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 1.2rem;
}

.icon-btn:hover {
    color: #0a58ca;
}

/* Search wrapper and input */
.search-wrapper {
    position: relative;
}

#searchIcon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
    opacity: 1;
}

/* Clear icon style */
#clearSearch {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 10;
    transition: opacity 0.2s ease;
}

#clearSearch:hover {
    color: #dc3545;
}

#suggestions {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

#suggestions div {
    padding: 8px 12px;
    cursor: pointer;
}

#suggestions div:hover,
#suggestions .selected {
    background-color: #0d6efd;
    color: white;
}