/* AMS V2 RTL support — locale direction is set centrally by Translator/locale metadata. */
html[dir="rtl"]{direction:rtl}
html[dir="rtl"] body{direction:rtl;text-align:start}
html[dir="rtl"] input,html[dir="rtl"] select,html[dir="rtl"] textarea{direction:rtl;text-align:start}

/* Keep technical identifiers, timestamps and code predictable inside RTL text. */
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] kbd,
html[dir="rtl"] samp,
html[dir="rtl"] time,
html[dir="rtl"] .mono,
html[dir="rtl"] .id,
html[dir="rtl"] .fid,
html[dir="rtl"] .chief-id,
html[dir="rtl"] .player-id,
html[dir="rtl"] .version-number,
html[dir="rtl"] .admin-nav-version,
html[dir="rtl"] input[inputmode="numeric"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="time"],
html[dir="rtl"] input[type="datetime-local"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"]{direction:ltr!important;text-align:left!important;unicode-bidi:isolate!important}
html[dir="rtl"] table,html[dir="rtl"] .table,html[dir="rtl"] .ranking{direction:rtl}
html[dir="rtl"] th,html[dir="rtl"] td{text-align:start}

/* Admin shell. */
html[dir="rtl"] .admin-nav{left:auto!important;right:0!important;border-right:0!important;border-left:1px solid rgba(59,159,207,.24)!important;box-shadow:-12px 0 38px rgba(0,0,0,.25)!important}
html[dir="rtl"] body:has(.admin-nav){padding-left:0!important;padding-right:258px!important}
html[dir="rtl"] .admin-nav-link.active{box-shadow:inset -3px 0 #43c7f8!important}
html[dir="rtl"] .admin-topnav{margin-left:0!important;margin-right:calc(-1 * var(--admin-sidebar-width,258px))!important}
html[dir="rtl"] .admin-topnav-inner{padding-left:54px!important;padding-right:30px!important}
html[dir="rtl"] .admin-topnav-brand,html[dir="rtl"] .admin-topnav-wordmark,html[dir="rtl"] .admin-topnav-brand-copy small{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .admin-topnav-link:not(:first-child)::before{left:auto!important;right:0!important}
html[dir="rtl"] .admin-topnav-utility{justify-content:flex-start}
html[dir="rtl"] .admin-topnav-utility select,html[dir="rtl"] .admin-topbar select,html[dir="rtl"] .topbar-language select,html[dir="rtl"] .language-switch select{padding-left:24px!important;padding-right:7px!important}
html[dir="rtl"] .admin-task-nav-badge{right:auto!important;left:-10px!important}
html[dir="rtl"] .admin-scroll-top{right:auto!important;left:24px!important}

/* Player profile/help and Rally surfaces. */
html[dir="rtl"] .player-scroll-top{right:auto!important;left:24px!important}
html[dir="rtl"] .player-search-results{left:0;right:0}
html[dir="rtl"] .aka-panel{padding-left:0!important;padding-right:28px!important}
html[dir="rtl"] .aka-panel:before,html[dir="rtl"] .aka-panel::before{left:auto!important;right:0!important}
html[dir="rtl"] .metric{border-right:0!important;border-left:1px solid var(--line,#29435f)!important}
html[dir="rtl"] .metric:last-child{border-left:0!important}
html[dir="rtl"] .rally-column:first-child{border-right:0!important;border-left:1px solid var(--line,#29435f)!important}
html[dir="rtl"] .player-leader-badge{margin-left:0!important;margin-right:9px!important}
html[dir="rtl"] .alliance-value-stacked{align-items:flex-start!important}
html[dir="rtl"] .hero-link:after{right:auto!important;left:-26px!important}
html[dir="rtl"] .task{border-left-color:transparent!important;border-right-color:#f5bd2f!important}
html[dir="rtl"] .svs-flow-step{padding-left:14px!important;padding-right:48px!important}
html[dir="rtl"] .svs-step-no{left:auto!important;right:13px!important}
html[dir="rtl"] .svs-example{border-left:0!important;border-right:3px solid #58c4ef!important;border-radius:10px 0 0 10px!important}

/* Login/public/Event/SvS surfaces. */
html[dir="rtl"] .language-switch{right:auto!important;left:16px!important}
html[dir="rtl"] .topbar-actions,html[dir="rtl"] .actions,html[dir="rtl"] .ec-top-actions{justify-content:flex-start}
html[dir="rtl"] .ec-brand{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .table-wrap,html[dir="rtl"] .scroll,html[dir="rtl"] .ec-week-grid-wrap{direction:rtl}
html[dir="rtl"] [dir="ltr"],html[dir="rtl"] .ltr{unicode-bidi:isolate}

@media(max-width:900px){
  html[dir="rtl"] body:has(.admin-nav){padding-right:0!important}
  html[dir="rtl"] .admin-nav{right:-272px!important;left:auto!important}
  html[dir="rtl"] .admin-nav.open{right:0!important;left:auto!important}
  html[dir="rtl"] .admin-topnav{margin-right:-14px!important;margin-left:-14px!important}
}
@media(max-width:460px){
  html[dir="rtl"] .language-switch{left:auto!important;right:auto!important;justify-content:flex-start}
}
