/* World Green Projects v37.6 — bilingual text, identical EN/AR geometry.
   Scope is ONLY the Projects listing, not the site-wide Arabic navbar/RTL pages.
   Keep header, controls, table columns, numbers and icons physically LTR. */
.wgpp-main .wgpp37-section[dir="ltr"] {
    direction: ltr;
}
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-heading,
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"],
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-toolbar,
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-toolbar__primary,
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-footer,
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-pager {
    direction: ltr !important;
}
/* Do not reverse S.No., Project, Description, Client, Status, Details columns. */
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] table.wgpp37-table {
    direction: ltr !important;
}
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] table.wgpp37-table :is(th, td) {
    text-align: left !important;
}
/* Preserve natural direction of user-entered Arabic/English project names.
   Mixed-language dates and client names must stay readable. */
.wgpp-main .wgpp37-panel[lang="ar"] :is(.wgpp37-project, .wgpp37-description, .wgpp37-client) {
    unicode-bidi: plaintext;
}
/* Allow the long Arabic placeholder to shrink instead of overlapping the status field. */
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-toolbar__primary,
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-control--search,
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-search-wrap {
    min-width: 0;
}
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-search-wrap input {
    box-sizing: border-box;
    max-width: 100%;
}
/* Input icon left; dropdown arrows right, as on the English Projects page. */
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-control label {
    direction: rtl;
    text-align: left;
}
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-control :is(input, select) {
    direction: ltr;
    text-align: left;
}
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-search-wrap svg {
    inset-inline-start: 14px;
    inset-inline-end: auto;
    transform: none;
}
.wgpp-main .wgpp37-panel[lang="ar"] .wgpp37-search-wrap input {
    padding-left: 41px;
    padding-right: 14px;
}
/* The view-details arrow points right in both languages, never reversed. */
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-view {
    direction: ltr;
}
.wgpp-main .wgpp37-section[dir="ltr"] .wgpp37-panel[lang="ar"] .wgpp37-view svg {
    transform: none !important;
}
/* Stable 01, 02, ... numbers and 1 / 1 page indication. */
.wgpp-main .wgpp37-panel[lang="ar"] :is(.wgpp37-rownum, #wgpp37-page, .wgpp37-heading__count strong) {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}
/* Let Arabic info text itself read RTL without moving the info/pager positions. */
.wgpp-main .wgpp37-panel[lang="ar"] #wgpp37-info {
    direction: rtl;
    unicode-bidi: plaintext;
}
