﻿/* Responsive column visibility */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Scroll and table aesthetics */
.scroll-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

    .scroll-table-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .scroll-table-wrapper::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

thead th, .table td {
    position: sticky;
    top: 0;
    background-color: #212529;
    color: white;
    font-size: 0.95rem;
    z-index: 2;
}

/* Toggle icon */
.toggle-icon {
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .toggle-icon:hover {
        background-color: #333;
    }

/* Detail row animation */
.details-row {
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    border: none;
    overflow: hidden;
    transition: height 0.4s ease;
}

.details-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.details-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 0rem;
    background-color: #212121;
}

.details-row.expanded .details-wrapper {
    height: auto;
}

.details-row.expanded .details-content {
    opacity: 1;
    transform: translateY(0);
}
.details-cell {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    border: none !important;
    background: transparent;
}
