/* Custom fixes for design issues */

/* Fix for table horizontal and vertical scrolling - applied globally */
.table-responsive {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    max-height: 70vh; /* Set maximum height to 70% of viewport height */
}

/* Increase scrollbar height for better visibility */
.scroll-sm::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    border-radius: 40px;
}

/* Make sure the logout button is visible on all screen sizes */
#logoutBtnMain {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
}

#logoutBtnMain span {
    display: inline-block !important;
}

/* Ensure proper spacing in the navbar for the logout button */
.navbar-header .col-auto:last-child .d-flex {
    flex-wrap: nowrap !important;
}

/* Ensure the table doesn't overflow its container */
.table-responsive table {
    width: 100%;
    margin-bottom: 0;
}

/* Add some padding to the table cells for better readability */
.table-responsive .table td, 
.table-responsive .table th {
    white-space: nowrap;
}

/* Additional scrollbar styling for tables with scroll-sm class */
.table-responsive.scroll-sm {
    scrollbar-width: thin;
    scrollbar-color: #b1b3b8 #d6d9de;
}

.btn-outline-primary {
  --bs-btn-color: #fff!important;
}
.btn-outline-info:hover {
  background-color: #19296f!important;
}

