/* Skin 3 — right-to-left pages (ar, he), on top of the mirrored sheets in public/css/rtl/.
   Charts, the order book, prices and codes stay left-to-right: they are numbers, read the same way everywhere. */
[dir="rtl"] .vt-chart, [dir="rtl"] .kx-chart, [dir="rtl"] canvas, [dir="rtl"] .kx-book-col [data-kx-book-panel],
[dir="rtl"] .v-num, [dir="rtl"] .ap-input--code, [dir="rtl"] input[type="email"], [dir="rtl"] input[inputmode="decimal"],
[dir="rtl"] .wd-hist__addr, [dir="rtl"] .hx-addr { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[inputmode="decimal"] { text-align: right; }
/* arrows that point "forward" turn around */
[dir="rtl"] .vh-dd__go, [dir="rtl"] .v-more svg, [dir="rtl"] .vx-bal__row > svg, [dir="rtl"] .ap-submit svg { transform: scaleX(-1); }
/* the iPad on the home hero shows a left-to-right terminal: its brand overlay stays at the screen's top-left */
[dir="rtl"] .vx-pad__screen .vx-dev__brand { right: auto; left: 24px; direction: ltr; }
/* stocks: the country row fades toward its end edge */
@media (max-width: 767px) { [dir="rtl"] .vk-geo { margin-right: 0; margin-left: -16px; padding-right: 0; padding-left: 16px; -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); } }
/* account section tabs fade toward their end edge */
@media (max-width: 767px) { [dir="rtl"] body.vega .vlk-tabs { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); } }
/* terminal: the order book sits left of the chart, so its fold / unfold icons turn around */
[dir="rtl"] .vt-fold svg, [dir="rtl"] .vt-rail__ico svg { transform: scaleX(-1); }
/* terminal: the order slider is a number line and stays left-to-right (the mirrored sheet flips its marks
   and offsets, which pushed "100%" off the screen); the phone book keeps its price | qty gap on the left */
[dir="rtl"] .kf-slider { direction: ltr; }
[dir="rtl"] .kf-slider__dot { margin-left: -5px; margin-right: 0; }
[dir="rtl"] .kf-slider__handle { margin-left: -7px; margin-right: 0; }
[dir="rtl"] .kf-slider__marks span { margin: 0; transform: translateX(-50%); }
[dir="rtl"] .kf-slider__marks span:first-child { margin-left: -7px; transform: none; }
[dir="rtl"] .kf-slider__marks span:last-child { margin-left: 7px; transform: translateX(-100%); }
@media (max-width: 767px) {
  [dir="rtl"] .vt .vt-book :is(.kx-book-row__qty, .kx-tape-row span:nth-child(2), .kx-tape-head span:nth-child(2)) { padding-left: 6px; padding-right: 0; }
}

/* history / orders pager on phones: in right-to-left pages "previous" sits on the right and points right */
@media (max-width: 767px) {
  [dir="rtl"] body.vega .vhx .vhx-pager > :first-child:not(.vod-pager__n)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
  [dir="rtl"] body.vega .vhx .vhx-pager > :last-child:not(.vod-pager__n)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); }
}
