@charset "utf-8";

/* Responsive scrollable table container */
.table-container {
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #999;
    box-sizing: border-box;
}

/* Sticky header */
.table-container thead th {
    position: sticky;
    top: 0;
    background: #000;
    color: #fff;
    z-index: 2;
    border-bottom: 2px solid #666;
}

/* Responsive table */
.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Cells */
.table-container th,
.table-container td {
    padding: 6px 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tablet */
@media screen and (max-width: 768px) {
    .table-container {
        max-height: 65vh;
    }

    .table-container th,
    .table-container td {
        padding: 5px;
        font-size: 0.9rem;
    }
}

/* Phone */
@media screen and (max-width: 600px) {

    .table-container {
        max-height: 60vh;
    }

    .table-container th,
    .table-container td {
        padding: 4px;
        font-size: 0.8rem;
    }

    /* Optional: Hide less important columns */
    .hide-mobile {
        display: none;
    }
}