/* Training Portal v16 - concise RTL typography and form alignment.
   Loaded after page-local CSS; changes only text direction/alignment.
   Purposefully excludes charts, player/SCORM and intentional centered components. */
html[lang="ar"] { direction: rtl; }
body.dga-lite { direction: rtl; text-align: right; }
body.dga-lite :is(main#main-content, .dashboard-content-wrap, .tp-support, .tp-my-courses-page,
  .tp-catalog-section, .tp-course-details-header, .tp-journey-summary, .tp-support-panel,
  .course-details-area, .card-body, .input-box, .tp-form-field, .tp-course-toolbar) {
  direction: rtl;
  text-align: right;
}
body.dga-lite :is(label, .label-text, .form-group, .tp-support-toolbar, .tp-ticket-description,
  .tp-ticket-thread, .tp-info-list, .tp-support-header, .tp-section-heading) {
  text-align: right;
}
/* ASP.NET TextBox, HTML inputs and select: right-aligned, readable Arabic. */
body.dga-lite :is(input.form-control, textarea.form-control, select.form-control,
  .form--control, input.tp-control, textarea.tp-control, select.tp-control,
  .tp-form-select, .tp-form-textarea, .tp-search-input-wrap input,
  .tp-catalog-search input) {
  direction: rtl;
  text-align: right;
}
body.dga-lite :is(input[type="email"],input[type="url"],input[type="tel"],
  input[type="number"],input[type="date"],input[type="time"]) {
  direction: ltr;
  text-align: right;
}
body.dga-lite :is(.table, table:not([dir="ltr"])) { direction: rtl; text-align: right; }
body.dga-lite :is(.table th, .table td, table:not([dir="ltr"]) th, table:not([dir="ltr"]) td) {
  text-align: right;
}
/* Correct legacy left-align helper on the course breadcrumb, without overriding explicit centers elsewhere. */
body.dga-lite .tp-course-details-header .breadcrumb-content.text-left { text-align: right !important; }
/* Honor opt-in centered/Latin content and native controls. */
body.dga-lite .text-center { text-align: center !important; }
body.dga-lite :is(code,pre,[dir="ltr"]) { direction: ltr; }
