html, body {
    font-family: Verdana;
    font-size: 0.9rem;
}

.btn.forbtn {
    background-color: #6495ed;
    font-weight: bold;
    color: white;
}

.tab-button {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    /*    z-index: 1050;*/
    white-space: nowrap;
}

.forinpt {
    font-size: 0.9rem;
}

.table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    height: 30vh;
    border: 1px solid #dee2e6;
}

.table thead.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #6495ed;
    z-index: 10;
    color: white;
}

.table.wide-table {
    width: 200%;
    border-collapse: collapse;
    table-layout: auto;
}

.table tfoot.sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
}

    .table tfoot.sticky-footer td {
        background-color: #ebebeb;
    }

td {
    text-align: left;
}

.active {
    background: #6495ed !important;
    color: white !important;
}

@media (max-width: 768px) {
    .table.wide-table {
        width: 800%;
    }

    /*    .table-scroll table {
        width: 200%;
        overflow-x: auto;
        overflow-y: auto;
    }*/

    .tab-button {
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-direction: column !important;
        align-items: stretch;
    }

    .button-container {
        flex-direction: column !important;
        align-items: stretch;
    }
}

.filter-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    width: 90vw;
    max-width: 68rem;
    height: 68vh;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.2);
    padding: 0.625rem;
}

    .filter-popup.show {
        display: block;
    }

    .filter-popup table {
        width: 100%;
    }

    .filter-popup tr:hover {
        background-color: #f5f5f5;
        cursor: pointer;
    }

    .filter-popup tr.table-active {
        background-color: #e0e0e0;
    }

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1099;
}

    .popup-overlay.show {
        display: block;
    }

.popup-label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
    display: block;
}

.no-data-message {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 0;
    color: #000;
    cursor: pointer;
    z-index: 9999;
}

@media (max-width: 768px) {
    .filter-popup {
        width: 95vw;
        max-width: none;
        max-height: 70vh;
        padding: 0.5rem;
    }
}
