/* Owner 2026-10-31 batch 14 (screens): display only. Loaded by base.html, base_print.html and the login page. */

/* R38 Arabic: arrows / chevrons point the reading way (back = right, forward = left). Add .no-flip to keep one. */
[dir="rtl"] :is(.fa-arrow-left, .fa-arrow-right, .fa-chevron-left, .fa-chevron-right, .fa-angle-left, .fa-angle-right,
  .fa-angles-left, .fa-angles-right, .fa-angle-double-left, .fa-angle-double-right, .fa-long-arrow-alt-left,
  .fa-long-arrow-alt-right, .fa-arrow-left-long, .fa-arrow-right-long, .fa-caret-left, .fa-caret-right,
  .fa-circle-arrow-left, .fa-circle-arrow-right, .fa-arrow-circle-left, .fa-arrow-circle-right,
  .fa-circle-chevron-left, .fa-circle-chevron-right, .fa-chevron-circle-left, .fa-chevron-circle-right):not(.no-flip) {
  transform: scaleX(-1);
}

/* R39 Arabic: letters must stay joined - no letter-spacing, no fake italic, no capitals styling */
html[dir="rtl"] body *:not(code):not(kbd):not(pre):not(samp) { letter-spacing: normal !important; }
html[dir="rtl"] :is(.fst-italic, em, cite, blockquote, i:not([class*="fa"]):not([class*="bi"]), .pfn-empty-msg) { font-style: normal !important; }
html[dir="rtl"] :is(.text-uppercase, .nav-section-label, .user-role) { text-transform: none !important; }
body.rtl .nav-section-label { font-size: 13px; }
body.rtl .user-role { font-size: 12px; }

/* R44-R46 touch screens (tablets): every button and box at least 40 px tall, eye-value boxes included.
   Mouse screens keep their look (this block needs a touch-only screen). */
@media (hover: none) and (pointer: coarse) {
  html body .main-content :is(.btn, .btn-sm, .btn-xs, .btn-group-sm > .btn):not(.btn-link):not(.btn-close):not(.accordion-button) {
    min-height: 40px !important;
  }
  html body .main-content .table td :is(.btn-sm, .btn-xs):not(.btn-link) { min-width: 40px; }
  html body .main-content :is(.form-control, .form-select, .form-control-sm, .form-select-sm,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select) {
    min-height: 40px !important;
  }
  html body .main-content .input-group > :is(.btn, .input-group-text) { min-height: 40px !important; }
  html body .sidebar .nav-link { min-height: 44px; }
  #sidebar-toggle { min-width: 40px; min-height: 40px; }
  .navbar-main :is(.btn, .nav-link, .dropdown-toggle) { min-height: 40px; min-width: 40px; }
}
