@layer components {
    .dashboard-dropdown {
            display: inline-flex;
            position: relative;
        }

    .dashboard-dropdown__trigger {
            align-items: center;
            background: var(--dashboard-color-pill);
            border: 0;
            border-radius: var(--dashboard-radius-pill);
            color: var(--dashboard-color-text);
            cursor: pointer;
            display: inline-flex;
            font-size: 0.875rem;
            font-weight: 650;
            gap: 0.375rem;
            line-height: 1.25rem;
            max-width: min(20rem, calc(100vw - 2.5rem));
            min-height: 2.75rem;
            padding: 0.75rem 1rem;
            white-space: nowrap;
        }

    .dashboard-dropdown__trigger:hover {
            background: var(--dashboard-color-pill-hover);
        }

    .dashboard-dropdown__trigger i,
        .dashboard-dropdown__trigger svg {
            flex-shrink: 0;
            height: 1rem;
            width: 1rem;
        }

    .dashboard-dropdown__menu {
            background: var(--dashboard-color-surface);
            border: 1px solid var(--dashboard-color-border);
            border-radius: 0.875rem;
            box-shadow: 0 1rem 2rem rgb(15 23 42 / 0.08);
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            left: 0;
            max-height: min(24rem, calc(100vh - 8rem));
            min-width: 13rem;
            overflow-y: auto;
            padding: 0.375rem;
            position: absolute;
            top: calc(100% + 0.5rem);
            z-index: 50;
        }

    .dashboard-dropdown__menu[hidden] {
            display: none;
        }

    .dashboard-dropdown__item {
            align-items: center;
            background: transparent;
            border: 0;
            border-radius: 0.625rem;
            color: var(--dashboard-color-text-muted);
            cursor: pointer;
            display: flex;
            font-size: 0.875rem;
            font-weight: 650;
            justify-content: flex-start;
            line-height: 1.25rem;
            padding: 0.625rem 0.75rem;
            text-align: left;
            text-decoration: none;
            white-space: nowrap;
            width: 100%;
        }

    .dashboard-dropdown__item:hover,
        .dashboard-dropdown__item--active {
            background: var(--dashboard-color-pill);
            color: var(--dashboard-color-text);
        }
}
