﻿/* SCROLLBAR VERTICALE CUSTOM */
.custom-scrollbar-track {
    position: absolute;
    right: 8px;
    width: 8px;
    background: transparent;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.custom-scrollbar-arrow {
    width: 100%;
    height: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 6px;
    color: rgba(0,0,0,0.5);
    user-select: none;
}

    .custom-scrollbar-arrow:hover {
        background: rgba(0,0,0,0.2);
        color: rgba(0,0,0,0.7);
    }

.custom-scrollbar-arrow-up {
    border-radius: 4px 4px 0 0;
}

.custom-scrollbar-arrow-down {
    border-radius: 0 0 4px 4px;
}

.custom-scrollbar-area {
    flex: 1;
    position: relative;
    background: rgba(0,0,0,0.05);
}

.custom-scrollbar-thumb {
    position: absolute;
    width: 100%;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

    .custom-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.5);
    }

/* NON toccare width/height - nascondi solo visivamente */
.force-vertical-scroll .mud-table-container {
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: inherit !important;
}

/* Firefox */
.force-vertical-scroll .mud-table-container {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

    /* Chrome/Safari - scrollbar trasparenti invece di width: 0 */
    .force-vertical-scroll .mud-table-container::-webkit-scrollbar {
        background: transparent;
    }

    .force-vertical-scroll .mud-table-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .force-vertical-scroll .mud-table-container::-webkit-scrollbar-thumb {
        background: transparent;
    }

    /* Scrollbar orizzontale visibile */
    .force-vertical-scroll .mud-table-container::-webkit-scrollbar:horizontal {
        height: 10px;
        background: rgba(0,0,0,0.05);
    }

    .force-vertical-scroll .mud-table-container::-webkit-scrollbar-track:horizontal {
        background: rgba(0,0,0,0.05);
    }

    .force-vertical-scroll .mud-table-container::-webkit-scrollbar-thumb:horizontal {
        background: rgba(0,0,0,0.3);
        border-radius: 5px;
    }

        .force-vertical-scroll .mud-table-container::-webkit-scrollbar-thumb:horizontal:hover {
            background: rgba(0,0,0,0.5);
        }
