/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 * ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
 * ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
 * ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
 * ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
 * ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
 * ┃ Copyright (c) 2017, the Perspective Authors.                              ┃
 * ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
 * ┃ This file is part of the Perspective library, distributed under the terms ┃
 * ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
 * ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */

:host {
    /* Wrapper prevents the width of the selector options from increasing the width of */
    /* the container it is embedded in. */
    .aggregate-selector-wrapper {
        height: 19px;
        display: flex;
        padding-left: 6px;
        width: 68px;
        min-width: 68px;
        max-width: 68px;
        flex: 0 0 68px;

        label {
            font-size: 10px;
            white-space: nowrap;
            height: 19px;
            display: flex;
            align-items: center;
            margin-right: 3px;
            max-width: 60px;
            overflow: hidden;
        }

        .aggregate-selector {
            border-bottom-width: 0px;
            margin-top: 0px;
            height: 19px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 12px;
            border: 1px solid transparent;
            select {
                font-size: 0.8em;
            }

            &:hover {
                border: 1px solid var(--psp--color);
                border-radius: 2px;
                transition: none;
            }
        }

        label + .aggregate-selector {
            display: none;
        }

        &:hover {
            label + .aggregate-selector {
                display: flex;
            }

            label {
                display: none;
            }
        }

        .dropdown-width-container:after {
            content: none !important;
        }
    }
}
