/* Fix for table border clipping when scrolling */
.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    overflow-x: auto;
}

.table-responsive .table-bordered {
    border: 0 !important;
    margin-bottom: 0;
}

.table-responsive .table-bordered th,
.table-responsive .table-bordered td {
    border: 0;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* Remove right border from last column */
.table-responsive .table-bordered th:last-child,
.table-responsive .table-bordered td:last-child {
    border-right: 0;
}

/* Remove bottom border from last row */
.table-responsive .table-bordered tbody tr:last-child td,
.table-responsive .table-bordered tbody tr:last-child th {
    border-bottom: 0;
}

/* First row needs no top border */
.table-responsive .table-bordered tbody tr:first-child th,
.table-responsive .table-bordered tbody tr:first-child td {
    border-top: 0;
}

/* Remove tbody border */
tbody, td, tfoot, th, thead, tr {
    border-style: none;
}

/* Style for compatibility table cells */
.compatibility-table td {
    min-width: 60px;
    white-space: nowrap;
}

/* Collapsible section styles */
.collapsible-header {
    transition: color 0.2s;
}

.collapsible-header:hover {
    color: #0d6efd;
}

.triangle {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-right: 8px;
}

.triangle.expanded {
    transform: rotate(90deg);
}

/* Animated collapse/expand */
#table2-wrapper {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

#table2-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
}

.compatibility-table th:first-child,
.compatibility-table td:first-child {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 1;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}