html[dir="rtl"] body,
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body,
body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .numeric,
html[dir="ltr"] .code,
html[dir="ltr"] code,
html[dir="ltr"] pre {
  direction: ltr;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .numeric,
html[dir="rtl"] .code,
html[dir="rtl"] code,
html[dir="rtl"] pre {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

.localization-audit-card {
  border: 1px solid rgba(120, 130, 160, .22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, .80);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
}

.localization-checklist {
  display: grid;
  gap: .75rem;
}

.localization-checklist li {
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(64, 115, 255, .06);
}


/* SMARTCO Post-Freeze v5.25.108 - unified data grid alignment policy.
   Headers stay centered. Row cells are centered by default.
   Semantic text columns such as name/title/description/details are aligned to text start:
   right in Persian/RTL and left in English/LTR. */
main.content table th,
.page-surface table th,
.admin-table th,
.smartco-data-grid-table th,
.table-wrap table th {
  text-align: center !important;
  vertical-align: middle !important;
}

main.content table tbody td,
.page-surface table tbody td,
.admin-table tbody td,
.smartco-data-grid-table tbody td,
.table-wrap table tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}

main.content table tbody td.smartco-grid-text-cell,
.page-surface table tbody td.smartco-grid-text-cell,
.admin-table tbody td.smartco-grid-text-cell,
.smartco-data-grid-table tbody td.smartco-grid-text-cell,
.table-wrap table tbody td.smartco-grid-text-cell {
  text-align: start !important;
  white-space: normal;
  min-width: 10rem;
}

main.content table tbody td.smartco-grid-centered-cell,
.page-surface table tbody td.smartco-grid-centered-cell,
.admin-table tbody td.smartco-grid-centered-cell,
.smartco-data-grid-table tbody td.smartco-grid-centered-cell,
.table-wrap table tbody td.smartco-grid-centered-cell {
  text-align: center !important;
}

.smartco-data-grid-table tbody tr.smartco-grid-group-row td,
.smartco-grid-group-row td {
  text-align: start !important;
  vertical-align: middle !important;
}

main.content table tbody td[colspan],
.page-surface table tbody td[colspan],
.admin-table tbody td[colspan],
.smartco-data-grid-table tbody td[colspan],
.table-wrap table tbody td[colspan] {
  text-align: center !important;
}

html[dir="rtl"] .smartco-data-grid-table tbody td.smartco-grid-text-cell,
html[dir="rtl"] main.content table tbody td.smartco-grid-text-cell,
html[dir="rtl"] .page-surface table tbody td.smartco-grid-text-cell {
  direction: rtl;
  text-align: right !important;
}

html[dir="ltr"] .smartco-data-grid-table tbody td.smartco-grid-text-cell,
html[dir="ltr"] main.content table tbody td.smartco-grid-text-cell,
html[dir="ltr"] .page-surface table tbody td.smartco-grid-text-cell {
  direction: ltr;
  text-align: left !important;
}
