@import "global.css";

table {
    width: 90%;
    border-collapse: collapse;
    margin: 3% auto;
    white-space: nowrap;
}

td, th {
    color: black;
    padding: 0.75vw;
    border: 0.2vmin solid;
    text-align: left;
    border-color: inherit;

}

.title {
    text-align: center;
    font-size: 1.5em;
}

th {
    color: white;
    background-color: var(--md-sys-color-on-primary-fixed-variant);
}

button {
    color: white;
}

button.active-users {
    background-color: var(--md-sys-color-on-primary-fixed-variant);
}

button.deleted-users {
    background-color: var(--md-sys-color-on-tertiary-fixed-variant);
}

.active-users {
    background-color: var(--md-sys-color-primary-fixed);
}

.deleted-users {
    background-color: var(--md-sys-color-tertiary-fixed-dim);
}


@media screen and (max-width: 650px) {
    table {
        white-space: normal;
    }

    .disappearSmall {
        display: none;
    }

    tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 3vh;
        border: 1vmin solid;
    }

    td {
        display: flex;
        align-items: baseline;
        padding: 0.5vw;
        border: none;
        width: 100%;
        white-space: normal;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 30%;
        text-align: right;
        margin-right: 1em;
    }

    td button {
        width: auto;
        margin: 0;
    }
}

