/* PRO-100: Arabic text flows RTL; drawing coordinates and media remain LTR. */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/noto-sans-arabic-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../fonts/noto-sans-arabic-bold.woff2') format('woff2');
}
html[dir='rtl'] body,
html[dir='rtl'] button,
html[dir='rtl'] input,
html[dir='rtl'] select,
html[dir='rtl'] textarea {
  font-family: 'Noto Sans Arabic', Roboto, Arial, sans-serif;
}
html[dir='rtl'] body { direction: rtl; }
html[dir='rtl'] input[type='email'],
html[dir='rtl'] input[type='url'],
html[dir='rtl'] input[type='number'],
html[dir='rtl'] input[type='tel'],
html[dir='rtl'] input[autocomplete='one-time-code'],
html[dir='rtl'] code,
html[dir='rtl'] pre,
html[dir='rtl'] kbd {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir='rtl'] .public-site h1,
html[dir='rtl'] .public-site h2,
html[dir='rtl'] .public-site h3 {
  text-align: start;
  letter-spacing: normal;
  line-height: 1.5;
}
html[dir='rtl'] .public-eyebrow { letter-spacing: normal; }
html[dir='rtl'] .public-site ul,
html[dir='rtl'] .public-site ol { padding-inline-start: 1.4em; padding-inline-end: 0; }
html[dir='rtl'] .public-languages a,
html[dir='rtl'] .public-brand { unicode-bidi: isolate; }
html[dir='rtl'] .user-menu-container { right: auto; left: 20px; }
html[dir='rtl'] .user-menu-dropdown { right: auto; left: 0; }
html[dir='rtl'] .user-menu-dropdown a,
html[dir='rtl'] .user-menu-dropdown .logout-menu-btn,
html[dir='rtl'] .legal-company-table th,
html[dir='rtl'] .legal-company-table td { text-align: start; }
html[dir='rtl'] .user-menu-btn .menu-arrow { margin-left: 0; margin-right: 4px; }
html[dir='rtl'] #diagrama3d,
html[dir='rtl'] #columnLabelsContainer,
html[dir='rtl'] video { direction: ltr; }
html[dir='rtl'] video::cue { font-family: 'Noto Sans Arabic', sans-serif; }
html[dir='rtl'] #tablaPiezas tbody td:first-child {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir='rtl'] #tablaPiezas tbody td:nth-child(2) { text-align: start; }
html[dir='rtl'] #tablaPiezas tbody td:nth-child(n+3),
html[dir='rtl'] #pesoTotalGlobal {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
html[dir='rtl'] #tablaPiezas bdi { white-space: nowrap; }
html[dir='rtl'] .modal-content {
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html[dir='rtl'] .modal-header,
html[dir='rtl'] .modal-footer { flex-shrink: 0; }
html[dir='rtl'] .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
