﻿.polar-table.mud-table {
    width: 100%;
}

    .polar-table.mud-table .mud-table-toolbar {
        height: fit-content;
        flex-wrap: wrap;
    }

        .polar-table.mud-table .mud-table-toolbar .table-toolbar-header {
            display: flex;
            align-items: center;
            height: 56px;
        }

            .polar-table.mud-table .mud-table-toolbar .table-toolbar-header .mud-typography {
                margin-left: 8px !important;
            }

        .polar-table.mud-table .mud-table-toolbar .table-toolbar-content {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            flex-grow: 1;
        }

            .polar-table.mud-table .mud-table-toolbar .table-toolbar-content .table-search-field {
                align-content: center;
                flex-grow: 1;
            }

    .polar-table.mud-table .mud-table-cell {
        border-collapse: collapse;
        text-align: center;
    }

    /*The Sort label adds 26 px to the right where the arrow icon shows up
      to keep the text centered add 26px to the right*/
    .polar-table.mud-table .mud-table-sort-label {
        padding-left: 26px;
    }

.polar-table.users-table {
    min-width: 0;
    max-width: 100%;
}

.polar-table.users-table .mud-table-container {
    max-width: 100%;
    overflow-x: auto;
}

@media(max-width:600px) {
    .polar-table.users-table .mud-table-toolbar {
        max-height: none;
    }

    .polar-table.users-table .mud-table-toolbar .table-toolbar-content {
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }

    .polar-table.users-table .mud-table-toolbar .table-toolbar-content .table-search-field {
        flex-basis: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .polar-table.mud-table .table-mudchip-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media(min-width:600px) {
    .polar-table.mud-table .mud-table-toolbar .table-toolbar-content .table-search-field {
        max-width: 300px;
        min-width: 150px;
    }

    .polar-table.mud-table-dense * .mud-table-row .mud-table-cell {
        padding: 5px !important;
    }
}

.polar-table.mud-data-grid .mud-table-cell .column-header {
    justify-content: center;
}
