/* ISCO right-to-left additions.
   The main file (adminlte.rtl.min.css) is generated from adminlte.min.css by tools/rtlflip.py;
   this file only holds what a generic flip cannot know. Loaded only when the interface language is Arabic. */

/* numbers, e-mails, codes and dates are typed left to right but sit on the right edge */
body.isco-rtl input[type=email],
body.isco-rtl input[type=url],
body.isco-rtl input[type=tel],
body.isco-rtl input[type=number],
body.isco-rtl input[type=password],
body.isco-rtl .ltr-field {
  direction: ltr;
  text-align: right;
}
body.isco-rtl input[type=email]::placeholder,
body.isco-rtl input[type=url]::placeholder,
body.isco-rtl input[type=password]::placeholder { text-align: right; }

/* the date picker widget is a left to right calendar */
body.isco-rtl .xdsoft_datetimepicker,
body.isco-rtl .xdsoft_datetimepicker * { direction: ltr; }

/* technical strings (asset codes, tokens, urls) never get reordered */
body.isco-rtl code,
body.isco-rtl .asset-code,
body.isco-rtl .code-ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* DataTables: the search box sits on the opposite side from the length selector */
body.isco-rtl div.dataTables_wrapper div.dataTables_length { text-align: start; }
body.isco-rtl div.dataTables_wrapper div.dataTables_filter { text-align: end; }
body.isco-rtl div.dataTables_wrapper div.dataTables_filter label,
body.isco-rtl div.dataTables_wrapper div.dataTables_length label { white-space: nowrap; }

/* select2 (the library has its own rtl rules; make sure the text stays inside the box) */
body.isco-rtl .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { text-align: right; }

/* icons that point somewhere are mirrored */
body.isco-rtl .fa-arrow-right:before { content: "\f060"; }
body.isco-rtl .fa-arrow-left:before { content: "\f061"; }
body.isco-rtl .fa-chevron-right:before { content: "\f053"; }
body.isco-rtl .fa-chevron-left:before { content: "\f054"; }
body.isco-rtl .fa-angle-double-right:before { content: "\f100"; }
body.isco-rtl .fa-angle-double-left:before { content: "\f101"; }

/* the closed-section arrow points to the left when the page runs right to left */
body.isco-rtl .acc-toggle.collapsed .acc-chevron { transform: rotate(90deg); }
