﻿/* Table header: sticky on top with shadow */
thead th {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    border-bottom: 1px #dee2e6 solid !important;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Prevent text wrap, add ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px; /* Adjust as needed */
    padding: 0.75rem 1rem;
}

/* Zebra striping (alternative to Bootstrap) */
tbody tr:nth-child(odd) {
    background-color: #fdfdfe;
}

/* Hover highlight */
tbody tr:hover {
    background-color: #e9ecef;
}

/* Make table container scrollable */
.table-responsive-custom {
/*    max-height: 80vh;*/
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 5px;
}

.min-height-50 {
    min-height: 50vh;
}

/* Buttons inside table */
.table .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Text truncate utility for table cells if needed */
.text-truncate-custom {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    vertical-align: middle;
}
