// (C) 2025 GoodData Corporation
@use "../../../styles/scss/variables";

.gd-ui-kit-submenu-header {
    display: flex;
    align-items: center;
    gap: var(--gd-spacing-5px);
    width: 100%;
    // The horizontal padding must come out of the 100% width, not be added on top of it: without
    // this the header renders wider than the menu that contains it and juts out of the panel in any
    // app that does not carry a global border-box reset.
    box-sizing: border-box;
    color: var(--gd-palette-complementary-6, #94a1ad);
    background: var(--gd-palette-complementary-2, #ebeff4);

    &__title {
        flex: 1 1 auto;
        overflow: hidden;
        white-space: nowrap;
    }

    h3.gd-ui-kit-submenu-header__title-text {
        margin: 0;
        font-weight: 700;
        color: inherit;
        font-family: variables.$gd-font-primary;
        text-transform: uppercase;
    }

    &--small {
        padding: 0 10px;
        height: 35px;
        min-height: 35px;

        h3.gd-ui-kit-submenu-header__title-text {
            font-size: 11px;
            line-height: normal;
        }
    }

    &--medium {
        padding: 0 10px;
        height: 36px;
        min-height: 36px;

        h3.gd-ui-kit-submenu-header__title-text {
            font-size: 11px;
            line-height: normal;
        }
    }

    &--large {
        padding: 0 10px;
        height: 40px;
        min-height: 40px;

        h3.gd-ui-kit-submenu-header__title-text {
            font-size: 11px;
            line-height: normal;
        }
    }
}
