/* HorizontalTabs */

.horizontal-tabs-tab-header
{
    border-radius: 0 !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.horizontal-tabs-tab-buttons
{
    letter-spacing: 0;
    min-width: auto !important;
    padding: 0 20px;
}

    .horizontal-tabs-tab-buttons .mud-badge-wrapper,
    .horizontal-tabs-tab-buttons .mud-badge
    {
        position: static;
    }

.horizontal-tabs-active-tab
{
    font-weight: bold;
}

.horizontal-tabs-tab-panel
{
    padding: 20px;
}

@media (max-width: 599.98px)
{
    .horizontal-tabs-tab-panel
    {
        padding: 12px;
    }
}

/* Profile page */

/* The identity card: a banner in the brand gradient of the auth layout, with the avatar overlapping its lower edge. */
.profile-card
{
    overflow: hidden;
}

.profile-card-banner
{
    height: 112px;
    background: radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--mud-palette-secondary) 55%, transparent) 0%, transparent 45%), linear-gradient(90deg, var(--mud-palette-appbar-background) 0%, var(--mud-palette-primary) 100%);
}

.profile-card-body
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 20px;
    padding: 0 24px 24px;
}

.mud-avatar.profile-card-avatar
{
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    margin-top: -56px;
    border: 4px solid var(--mud-palette-surface);
    box-shadow: var(--mud-elevation-4);
    font-family: var(--mud-typography-h6-family);
    font-weight: 700;
    font-size: 2.5rem;
}

.profile-card-identity
{
    flex: 1 1 240px;
    min-width: 0;
    padding-top: 12px;
}

.profile-card-name,
.profile-card-username
{
    overflow-wrap: anywhere;
}

.profile-card-username
{
    color: var(--mud-palette-text-secondary);
}

.profile-card-roles
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.profile-card-role
{
    padding: 3px 12px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.profile-card-role-none
{
    background-color: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-secondary);
}

.profile-card-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-detail
{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.profile-detail-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

.profile-detail-text
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.profile-detail-label
{
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.profile-detail-value
{
    overflow-wrap: anywhere;
    font-weight: 600;
}

@media (max-width: 599.98px)
{
    .profile-card-banner
    {
        height: 88px;
    }

    /* On a phone the card centers: avatar, names, roles, then full-width actions. */
    .profile-card-body
    {
        flex-direction: column;
        align-items: center;
        padding: 0 16px 20px;
        text-align: center;
    }

    .mud-avatar.profile-card-avatar
    {
        width: 96px;
        height: 96px;
        margin-top: -48px;
        font-size: 2rem;
    }

    .profile-card-identity
    {
        flex: 0 1 auto;
        padding-top: 0;
    }

    .profile-card-roles
    {
        justify-content: center;
    }

    .profile-card-actions
    {
        width: 100%;
    }

        .profile-card-actions .mud-button-root
        {
            flex: 1 1 100%;
        }
}

/* StepperDefault */

/* The step labels sit on the same surface as PaperDefault (Elevation 25); the step content and actions follow. */
.stepper-default-nav
{
    background-color: var(--mud-palette-surface);
    border-radius: var(--mud-default-borderradius);
    box-shadow: var(--mud-elevation-25);
    padding: 12px 16px;
}

.stepper-default-step
{
    padding: 20px 0 0;
}

.stepper-default-actions
{
    padding: 16px 0 0;
}

/* TextFieldSearch */

/* MudTextField puts Class on its root but Style on the inner input, and the root grows by default (flex: 1 1 auto);
   sizing the root keeps a MudSpacer from sharing the free space with it and pushing the box to the middle. */
.text-field-search
{
    flex: 0 1 auto;
    width: 100%;
    max-width: 300px;
}
