﻿[md-theme=dark] {
    background: #303030;
    color: white;
}

    [md-theme=dark] .md-dialog-container {
        background: none;
    }

.md-avatar {
    object-fit: cover;
}

.avatar {
    height: 4rem;
    width: 4rem;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .avatar.no-avatar {
        background-color: lightgrey;
    }

    .avatar > img {
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        border-radius: 50%;
        width: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }

    .avatar > md-icon,
    .avatar > img {
        height: 100%;
    }

    .avatar > div {
        display: none;
        background-color: #0008;
        height: 4rem;
        width: 4rem;
        position: absolute;
        color: white;
        font-size: .8em;
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        border-radius: 50%;
    }

    .avatar:hover {
        cursor: pointer;
    }

        .avatar:hover > div {
            display: flex;
        }

.pointer:hover {
    cursor: pointer;
    background: #0001;
}

.custom-menu {
    background: white;
    border-radius: 4px;
    box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
    width: 256px;
}

.md-dark-theme .custom-menu {
    background: #303030;
    color: white;
    fill: #ffffffb3;
}

.md-dark-theme md-icon {
    fill: #ffffffb3;
}

.custom-menu-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 48px;
    padding: 0 16px;
    position: relative;
    transition: background 0.15s linear;
    width: auto;
    gap: 8px;
}

    .custom-menu-item:not([disabled]):hover,
    .custom-menu-item:not([disabled]):focus {
        background-color: rgb(238, 238, 238);
    }

.md-dark-theme .custom-menu-item:not([disabled]):hover,
.md-dark-theme .custom-menu-item:not([disabled]):focus {
    background-color: #121212;
}

.custom-menu-item[disabled] {
    cursor: default;
    opacity: .5;
}

.custom-menu-item.selected {
    color: rgb(16, 108, 200);
}

@media only screen and (max-width: 599px) {
    .md-button.md-icon-button-xs {
        margin: 0 6px;
        height: 40px;
        min-width: 0;
        line-height: 24px;
        padding: 8px;
        width: 40px;
        border-radius: 50%;
    }

        .md-button.md-icon-button-xs md-icon {
            display: block;
        }
}
