@import '../../boxuiVariables';
@import 'base';

.bp-text-csv {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    overflow: auto;
    color: $black;
    white-space: pre;
    word-wrap: normal;
    word-break: normal;

    .bp-text-csv-grid {
        width: 100%;
    }

    .bp-text-csv-odd-row {
        background-color: $haze;
    }

    .bp-text-csv-cell {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0 .5em;
        overflow: auto;
        border-right: 1px solid $off-white;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    ::-webkit-scrollbar-track {
        background-color: $off-white;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:vertical {
        background-color: rgba($black, .2);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:horizontal:hover,
    ::-webkit-scrollbar-thumb:vertical:hover {
        background: rgba($black, .4);
    }

    ::-webkit-scrollbar-thumb:horizontal {
        background-color: rgba($black, .2);
        border-radius: 6px;
    }
}
