.language-switch-item {
    display: flex;
    align-items: center;
    order: 2;
}

.account-name-item {
    order: 1;
}

.logout-item,
.login-item {
    order: 3;
}

.language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 128px;
    min-height: 46px;
    padding: 7px 11px 7px 9px;
    border: 1px solid rgba(15, 107, 79, .18);
    border-radius: 15px;
    background: linear-gradient(135deg, #f7f9fb, #e9eff4);
    color: #172936;
    box-shadow: 0 7px 22px rgba(15, 107, 79, .09);
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.language-switch::after {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    inset-inline-end: -25px;
    bottom: -35px;
    border-radius: 50%;
    background: rgba(21, 128, 94, .13);
}

.language-switch:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 107, 79, .4);
    box-shadow: 0 10px 27px rgba(15, 107, 79, .16);
}

.language-switch:focus-visible {
    outline: 3px solid rgba(21, 128, 94, .22);
    outline-offset: 2px;
}

.language-switch-globe {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, #165687, #0f436b);
    box-shadow: 0 5px 13px rgba(15, 107, 79, .2);
}

.language-switch-globe svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
}

.language-switch-copy {
    display: grid;
    line-height: 1.05;
    text-align: start;
    flex: 1;
}

.language-switch-copy strong {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.language-switch-copy small {
    margin-top: 4px;
    color: #70817b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.language-switch-swap {
    position: relative;
    z-index: 1;
    color: #165280;
    font-size: 15px;
    transition: transform .25s ease;
}

.language-switch:hover .language-switch-swap {
    transform: rotate(180deg);
}

html[dir="rtl"] body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .sidebar,
html[dir="rtl"] .main-area,
html[dir="rtl"] .panel,
html[dir="rtl"] .page-head {
    text-align: right;
}

html[dir="rtl"] .topbar .navbar-nav {
    padding-right: 0;
}

html[dir="rtl"] .comment time {
    float: left;
}

html[dir="rtl"] .metric.urgent {
    border-left: 1px solid var(--line);
    border-right: 4px solid #dc4d52;
}

html[dir="rtl"] .form-select {
    background-position: left .75rem center;
    padding-left: 2.25rem;
    padding-right: .75rem;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="password"] {
    direction: ltr;
    text-align: right;
}

html[dir="ltr"] .request-tracking-page,
html[dir="ltr"] .monthly-report-page {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .request-tracking-page,
html[dir="rtl"] .monthly-report-page {
    direction: rtl;
    text-align: right;
}

@media (max-width: 760px) {
    .topbar .navbar-nav {
        gap: 7px;
    }

    .language-switch {
        min-width: 47px;
        min-height: 43px;
        padding: 6px;
        border-radius: 13px;
    }

    .language-switch-copy,
    .language-switch-swap {
        display: none;
    }

    .language-switch-globe {
        width: 31px;
        height: 31px;
    }
}

@media print {
    .language-switch-item {
        display: none !important;
    }
}
