@import '~@angular/cdk/overlay';
@import './variables';

// override index for implementation inside a modal: https://github.com/HealthCatalyst/Fabric.Cashmere/issues/867
$cdk-z-index-overlay-container: $zindex-cdk-overlay;
$cdk-z-index-overlay: $zindex-cdk-overlay;

@include cdk-overlay();

.hc-menu-panel {
    font-family: $default-font-family;
    display: flex;
    flex-direction: column;
    padding: 5px 16px;
    margin: -12px;
    background-color: $white;

    .hc-divider {
        width: auto;
        margin: 5px 0;
    }
}

.hc-divider.hc-menu-item {
    margin: 5px -16px;
}

button.hc-menu-item,
a.hc-menu-item {
    @include fontSize(14px);
    font-family: $default-font-family;
    color: $gray-90;
    padding: 10px 16px;
    margin: 0 -16px;
    border: 0;
    background: 0 0;
    text-align: left;
    display: flex;
    align-items: center;

    &[disabled] {
        opacity: 0.5;
    }

    &:hover:not([disabled]) {
        background-color: $wcf-blue;
        color: $white;
        cursor: pointer;

        .hc-menu-icon {
            color: $white;
        }
    }

    .hc-menu-icon {
        font-size: 20px;
        height: 20px;
        width: 20px;
        margin-right: 14px;
        color: $gray-70;
    }

    .hc-menu-text {
        font-weight: 700;
    }

    .hc-menu-sub-text {
        flex: 1 0 auto;
        margin-left: 15px;
        color: $gray-300;
        text-align: right;
    }
}
