/* YesAdmin responsive layout helpers v1.0.0 */

.yesadmin-panel-responsive {
    width: 100%;
}

.yesadmin-header-toolbar {
    max-width: 100%;
}

@media (max-width: 1023px) {
    .yesadmin-header-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.35rem;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .yesadmin-header-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
    }

    .yesadmin-header-stats__item {
        font-size: 0.625rem;
        padding: 0.15rem 0.35rem;
    }

    .yesadmin-header-account {
        padding: 0.1rem 0.1rem 0.1rem 0.35rem;
    }

    .yesadmin-header-account__role {
        font-size: 0.625rem;
        max-width: 5.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .yesadmin-language-switcher {
        max-width: 100%;
    }

    .yesadmin-language-switcher__select {
        max-width: 5.75rem;
    }
}

@media (max-width: 767px) {
    .yesadmin-auth-panel {
        padding: 1.75rem 1.25rem;
    }

    .yesadmin-auth-form__title {
        font-size: 2rem;
    }

    .yesadmin-auth-form__subtitle {
        margin-bottom: 1.5rem;
    }

    .yesadmin-settings-form-actions,
    .yesadmin-settings-maintenance__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .yesadmin-settings-form-actions .fi-btn,
    .yesadmin-settings-maintenance__actions .fi-btn {
        width: 100%;
    }
}

@media (max-width: 639px) {
    .fi-topbar .fi-topbar-end {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.35rem;
    }
}

.yesadmin-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255 / 0.85);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.dark .yesadmin-language-switcher {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42 / 0.85);
}

.yesadmin-language-switcher__label {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(100 116 139);
}

.dark .yesadmin-language-switcher__label {
    color: rgb(148 163 184);
}

.yesadmin-language-switcher__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    margin: 0;
    padding: 0 1.1rem 0 0;
    min-width: 0;
    max-width: 6.75rem;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgb(15 23 42);
    cursor: pointer;
}

.yesadmin-language-switcher__select::-ms-expand {
    display: none;
}

.dark .yesadmin-language-switcher__select {
    color: rgb(248 250 252);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.yesadmin-language-switcher__select:focus {
    outline: none;
}

[dir='rtl'] .yesadmin-auth-panel,
[dir='rtl'] .yesadmin-auth-form-wrap,
[dir='rtl'] .yesadmin-settings-maintenance {
    text-align: right;
}

[dir='rtl'] .yesadmin-language-switcher__select {
    padding: 0 0 0 1.1rem;
    background-position: left 0 center;
}

[dir='rtl'] .yesadmin-header-toolbar,
[dir='rtl'] .yesadmin-header-stats,
[dir='rtl'] .yesadmin-settings-form-actions {
    direction: rtl;
}
