/* Shared direction-sensitive manager UI. Preserve fixed numeric/time direction. */
html[dir=ltr] .workspace-scroll{direction:ltr}
html[dir=ltr] :is(.ds-page-heading,.ds-directory-metrics,.ds-overview-metrics,.ds-global-monthly-stats,.stats-grid,.storage-grid,.customer-metrics,.ds-directory-panel-head,.ds-directory-filter-row,.ds-directory-filter-actions){direction:ltr;text-align:start}
html[dir=ltr] .ds-directory-metric{direction:ltr;text-align:start}
html[dir=ltr] .ds-directory-metric-arrow{transform:scaleX(-1)}
html[dir=ltr] .ds-directory-search-input>i{left:12px;right:auto}
html[dir=ltr] .ds-directory-search-input input{padding-left:39px;padding-right:12px;text-align:start}
html[dir=ltr] .ds-ui-trigger{direction:ltr;text-align:start}
html[dir=ltr] .ds-ui-popup[popover],html[dir=ltr] .ds-ui-popup.ds-ui-popup-visible{direction:ltr;text-align:start}
html[dir=ltr] .ds-ui-option{direction:ltr;text-align:start}
html[dir=ltr] .ds-ui-wrapper:is(.ds-ui-time,.ds-ui-date,.ds-ui-month) .ds-ui-trigger-text[dir=ltr],
html[dir=ltr] .ds-client-installation>.ds-ui-select .ds-ui-trigger-text{ text-align:left }
html[dir=ltr] .ds-profile-machine-popover{direction:ltr;text-align:start}
html[dir=ltr] .ds-profile-machine-popover .ds-profile-menu-item{direction:ltr;text-align:start;justify-content:flex-start}
html[dir=ltr] .ds-profile-machine-popover .ds-profile-menu-item>span{min-width:0}
html[dir=ltr] .ds-modal{direction:ltr;text-align:start}
html[dir=ltr] .ds-confirm-message{unicode-bidi:plaintext}
html[dir=ltr] :is(.ds-settings-footer,.ds-profile-machine-title,.ds-profile-machine-info,.ds-profile-machine-sync,.ds-machine-credential,.ds-directory-actions,.ds-directory-schedule-tag,.ds-updates-target-version){direction:ltr;text-align:start}
html[dir=ltr] .ds-directory-schedule-form .ds-ui-trigger{direction:ltr}
html[dir=ltr] .ds-directory-schedule-form .ds-ui-trigger-text{text-align:start}
html[dir=ltr] .ds-customer-sync-time .ds-ui-time .ds-ui-trigger-text{text-align:center}
html[dir=ltr] .ds-users-directory-page .ds-directory-table.ds-users-table td.ds-user-job-cell,
html[dir=ltr] .ds-users-directory-page .ds-users-name small,
html[dir=ltr] .ds-users-directory-page.ds-access-directory-page .ds-directory-table.ds-access-table-history tbody td:nth-child(4){direction:ltr;text-align:start}
html[dir=ltr] .ds-shade-gallery-meta{text-align:start}
html[dir=ltr] :is(.ds-map-customer,.ds-map-cluster-list,.ds-map-cluster-list>button,.ds-map-popup-copy,.ds-map-popup-copy h3,.ds-map-canvas .ds-map-popup-copy p,.ds-map-canvas .leaflet-popup-content){direction:ltr;text-align:start}
html[dir=ltr] .ds-client-card :is(.ds-client-date-time,.ds-report-table,.ds-rank-table){direction:ltr}
html[dir=ltr] .ds-client-card .ds-client-time-sub{text-align:start}
html[dir=ltr] :is(.ds-machine-description,.ds-hourly-description,.ds-overview-info-body p){text-align:start}
html[dir=ltr] .ds-ui-popup-time .ds-ui-time-label{direction:ltr}

/* Align the business heading with the leading edge of customer rows. */
html[dir=ltr] .ds-directory-page .ds-customer-directory-table thead th:first-child{text-align:left}

/* Shared overview charts: coordinates are mirrored by the PHP renderer. */
html[dir=ltr] .ds-global-monthly-months{direction:ltr;margin-inline-start:8.292683%;margin-inline-end:1.463415%}
html[dir=ltr] .ds-global-overview-page .ds-global-filter-row input[type=date]{text-align:left}
html[dir=ltr] :is(.ds-global-overview-page,.ds-client-card) .ds-overview-info-trigger{text-align:start}
html[dir=ltr] .ds-overview-info-body p{text-align:start}
html[dir=ltr] .ds-shade-ranking-panel :is(.ds-shade-ranking-search,.ds-shade-ranking-search input){direction:ltr;text-align:start}
html[dir=ltr] .ds-hourly-clock{direction:ltr}
html[dir=ltr] :is(.ds-global-overview-page,.ds-client-card) .ds-net-footer :is(.ds-net-liter-dose,.ds-net-unit-dose){direction:ltr}
html[dir=ltr] .ds-component-modal :is(.ds-global-monthly-stat,.ds-global-monthly-stat-copy,.ds-global-monthly-stat-value){direction:ltr;text-align:start}

/* Align rank headings with their data; mirror only textual positions. */
html[dir=ltr] .ds-client-card .ds-rank-table{text-align:left}
html[dir=ltr] .ds-client-card .ds-rank-table :is(th,td):is(:first-child,:last-child){text-align:center}
html[dir=ltr] .ds-client-card .ds-rank-table :is(th,td):nth-child(2){text-align:left}
html[dir=ltr] .ds-global-overview-page .ds-fan-shades-colhead>span:last-child,
html[dir=ltr] .ds-global-overview-page .ds-fan-shades-count{text-align:right}
html[dir=ltr] .ds-global-overview-page .ds-fan-shades-shade strong,
html[dir=ltr] .ds-global-area-distribution .ds-global-manager-identity{text-align:left}
html[dir=ltr] .ds-global-area-distribution .ds-global-manager-tints,
html[dir=ltr] .ds-global-region-legend .ds-global-region-tints{align-items:flex-end;text-align:right}
html[dir=ltr] .ds-overview-info-body p{text-align:left;text-align-last:left}
html[dir=ltr] .ds-client-card .ds-net-chart-heading h2,
html[dir=ltr] .ds-client-card .ds-net-chart-heading>div:first-child{text-align:left}
html[dir=ltr] .ds-overview-metric .ds-metric-text,
html[dir=ltr] .ds-overview-card-title{text-align:start}
html[dir=ltr] .ds-component-modal .ds-global-monthly-stat-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* Match KPI number alignment and the ranking grid to the LTR reading order. */
html[dir=ltr] .ds-client-card .ds-overview-metric .ds-metric-text>strong{text-align:left}
html[dir=ltr] .ds-client-card table.ds-rank-table>thead>tr>th,
html[dir=ltr] .ds-client-card table.ds-rank-table>tbody>tr>td{border-left:0;border-right:1px solid var(--ds-line)}
html[dir=ltr] .ds-client-card table.ds-rank-table tr>:last-child{border-right:0}
html[dir=ltr] .ds-client-card table.ds-rank-table>thead>tr>th:nth-child(2),
html[dir=ltr] .ds-client-card table.ds-rank-table>tbody>tr>td:nth-child(2){text-align:left;padding-inline:10px}
html[dir=ltr] .ds-global-overview-page .ds-rank-table td.ds-rank-trend-cell>.ds-rank-trend{left:auto;right:8px}
@media(max-width:700px){
 html[dir=ltr] .ds-client-card table.ds-rank-table>thead>tr>th:nth-child(2),
 html[dir=ltr] .ds-client-card table.ds-rank-table>tbody>tr>td:nth-child(2){padding-inline:8px}
}

/* Customer history: text starts at the leading edge, numeric columns stay centered. */
html[dir=ltr] .ds-client-card table.ds-report-table{direction:ltr;text-align:left}
html[dir=ltr] .ds-client-card table.ds-report-table>thead>tr>th,
html[dir=ltr] .ds-client-card table.ds-report-table>tbody>tr>td{border-left:0;border-right:1px solid var(--ds-line);text-align:left}
html[dir=ltr] .ds-client-card table.ds-report-table tr>:last-child{border-right:0}
html[dir=ltr] .ds-client-card table.ds-report-table.ds-client-table-formulas tr>:is(:nth-child(5),:nth-child(6),:nth-child(7)),
html[dir=ltr] .ds-client-card table.ds-report-table.ds-client-table-history tr>:not(:first-child){text-align:center}
html[dir=ltr] .ds-client-card table.ds-report-table :is(th,td).customer-time,
html[dir=ltr] .ds-client-card table.ds-report-table td.customer-time :is(.ds-client-date,.ds-client-time-sub,.ds-client-date-time,.ds-client-time-inline){direction:ltr;text-align:left}
html[dir=ltr] .ds-client-card .table-scroll:has(>table.ds-report-table){direction:ltr}
html[dir=ltr] .ds-client-card table.ds-report-table td.customer-value{direction:ltr;text-align:center}
html[dir=ltr] .ds-client-card .ds-shade-history-label{direction:ltr;text-align:left}
html[dir=ltr] .ds-client-card .ds-shade-label-copy{text-align:left}
html[dir=ltr] .ds-client-card .customer-code-pills{direction:ltr;justify-content:flex-start}
html[dir=ltr] .ds-client-card .ds-client-field input,
html[dir=ltr] .ds-client-card .ds-client-field select,
html[dir=ltr] .ds-client-card .ds-client-field input[type=date]{text-align:left}
html[dir=ltr] .ds-client-card :is(.ds-client-table-summary,.ds-table-panel-heading-copy,.ds-client-heading-copy,.ds-profile-header-copy){text-align:left}
html[dir=ltr] .ds-client-card .ds-data-range-badge{direction:ltr}

/* Customer machine panels and profile fields follow the page direction. */
html[dir=ltr] .ds-profile-machine-table{direction:ltr;text-align:left}
html[dir=ltr] .ds-profile-machine-table :is(th,td){text-align:center}
html[dir=ltr] .ds-profile-machine-table tr>:first-child{text-align:left;padding-left:12px;padding-right:9px}
html[dir=ltr] .ds-profile-machine-table :is(th,td).ds-profile-machine-datetime,
html[dir=ltr] .ds-profile-machine-table .ds-profile-machine-datetime :is(.ds-profile-machine-date,.ds-profile-machine-time){direction:ltr;text-align:left}
html[dir=ltr] .ds-profile-machine-compact-copy{text-align:left}
html[dir=ltr] .ds-client-card .ds-machine-control-track{direction:ltr}
html[dir=ltr] .ds-client-card .ds-machine-control-marker{transform:translateX(-50%)}
html[dir=ltr] .ds-client-card :is(.ds-machine-control-tile-text,.ds-profile-customer-copy,.ds-customer-lifecycle-copy,.ds-profile-header-copy){text-align:left}
html[dir=ltr] .ds-client-card .ds-customer-sync-form{direction:ltr}
html[dir=ltr] .ds-client-card .ds-machine-control-tile-text :is(strong,small){text-align:left}
html[dir=ltr] .ds-customer-create-modal .ds-modal-field :is(input,select){text-align:left}

html[dir=ltr] .ds-availability :is(.av-week,.av-month){direction:ltr}
html[dir=ltr] .ds-availability :is(.av-foot,.av-tile,.av-header-actions){direction:ltr;text-align:start}
html[dir=ltr] .ds-availability .av-tile .ds-machine-control-tile-text{text-align:left}

html[dir=ltr] .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field{direction:ltr;text-align:left}
html[dir=ltr] .ds-profile-business-panel .ds-profile-customer-field :is(dt,dd){text-align:left}
html[dir=ltr] .ds-client-card .ds-v2-import-footer,
html[dir=ltr] .ds-client-card .ds-v2-import-confirm{direction:ltr}
html[dir=ltr] .ds-client-card .ds-v2-import-confirm span,
html[dir=ltr] .ds-client-card .ds-v2-file-name{text-align:left}
html[dir=rtl] .ds-client-card .ds-v2-file-name{text-align:right}
html[dir=ltr] .ds-users-directory-page.ds-access-directory-page .ds-directory-table.ds-access-table-history :is(th,td):nth-child(2){text-align:left}
html[dir=ltr] .ds-access-directory-page .ds-access-table-history td:nth-child(2) .ds-access-datetime{margin-left:0;margin-right:auto;align-items:flex-start;text-align:left}

html[dir=ltr] .ds-users-directory-page.ds-access-directory-page .ds-directory-table thead th:is(.ds-directory-name-cell,.ds-directory-date),
html[dir=ltr] .ds-users-directory-page.ds-access-directory-page .ds-directory-table tbody td:is(.ds-directory-name-cell,.ds-directory-date){text-align:left}
html[dir=ltr] .ds-access-directory-page .ds-directory-table .ds-access-datetime{direction:ltr;align-items:flex-start;text-align:left;margin-left:0;margin-right:auto}

/* Software and data updates: LTR tables, matching header/cell alignment. */
html[dir=ltr] .ds-updates-page :is(.ds-updates-scroll,.ds-deployment-tabs,.ds-updates-form,.ds-updates-fields,.ds-updates-deploy-toolbar,.ds-directory-infinite){direction:ltr;text-align:start}
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-table{direction:ltr;text-align:left}
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-table :is(th,td){text-align:center}
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-versions :is(th,td):first-child,
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-computers :is(th,td):nth-child(2),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-deployment-computers :is(th,td):first-child,
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-rollouts:not(.ds-updates-rollouts-history) :is(th,td):is(:nth-child(1),:nth-child(3)),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-rollouts.ds-updates-rollouts-history :is(th,td):is(:nth-child(2),:nth-child(4)),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-versions:not(.ds-formula-release-versions) :is(th,td):nth-child(4),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-formula-release-versions :is(th,td):nth-child(6),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-computers :is(th,td):nth-child(9),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-deployment-computers :is(th,td):nth-child(7),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-rollouts:not(.ds-updates-rollouts-history) :is(th,td):nth-child(4),
html[dir=ltr] .ds-updates-page .ds-directory-table.ds-updates-rollouts.ds-updates-rollouts-history :is(th,td):nth-child(5){text-align:left}
html[dir=ltr] .ds-updates-page .ds-updates-table :is(.ds-updates-date-cell,.ds-updates-contact-cell) .ds-directory-last-sync{direction:ltr;text-align:left;align-items:flex-start;margin-left:0;margin-right:auto}
html[dir=ltr] .ds-update-details-dialog :is(.ds-update-detail-field,.ds-release-details-notes,.ds-deployment-issue-message){direction:ltr;text-align:left}

/* Localized update file pickers retain the native upload control. */
.ds-updates-page .ds-formula-file-input>.ds-v2-file-picker{flex:1 1 0;min-width:0}
.ds-updates-page .ds-v2-file-picker{height:43px;min-height:43px}
.ds-updates-page .ds-v2-file-picker input[type=file]{padding:0}

/* Settings: use leading-edge alignment without changing Hebrew layouts or switch semantics. */
html[dir=ltr] .ds-settings-page{direction:ltr;text-align:left}
html[dir=ltr] .ds-settings-page :is(.ds-settings-tabs,.ds-settings-heading,.ds-profile-header-copy,.ds-settings-form,.ds-settings-field,.ds-settings-software-option,.ds-settings-software-option-copy,.ds-settings-mfa-toggle,.ds-settings-sync-policy,.ds-settings-card-footer,.ds-signing-body,.ds-signing-footer,.ds-signing-summary,.ds-branding-option-heading,.ds-accent-controls,.ds-accent-preview){direction:ltr;text-align:left}
html[dir=ltr] .ds-settings-page .ds-settings-field input:not([type=color]):not([type=checkbox]):not([type=radio]),html[dir=ltr] .ds-settings-page .ds-settings-field textarea{direction:ltr;text-align:left}
html[dir=ltr] .ds-settings-page .ds-settings-security-card>.ds-settings-heading{height:auto;max-height:none;min-height:72px}
html[dir=ltr] .ds-settings-page .ds-settings-security-card>.ds-settings-heading p,html[dir=ltr] .ds-settings-page .ds-settings-mfa-toggle>span>small,html[dir=ltr] .ds-settings-page .ds-settings-sync-cleanup>span{white-space:normal;overflow:visible;text-overflow:clip}
html[dir=ltr] .ds-settings-page :is(.ds-settings-software-footer,.ds-signing-footer) button{white-space:normal}
.ds-settings-page .ds-settings-file-picker{min-height:43px;height:43px}
.ds-settings-page .ds-settings-file-picker input[type=file]{padding:0;border:0}
html[dir=ltr] .ds-settings-page .ds-storage-dashboard{direction:ltr;text-align:left}
html[dir=ltr] .ds-settings-page .ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy strong{direction:ltr;text-align:left}
html[dir=ltr] .ds-settings-page .ds-storage-search>i{left:12px;right:auto}
html[dir=ltr] .ds-settings-page .ds-storage-search input{padding:10px 12px 10px 37px;text-align:left}
html[dir=ltr] .ds-settings-page .ds-storage-dashboard .ds-storage-table{direction:ltr}
html[dir=ltr] .ds-settings-page .ds-storage-dashboard .ds-storage-table :is(th,td){text-align:center}
html[dir=ltr] .ds-settings-page .ds-storage-dashboard .ds-storage-table :is(th,td):nth-child(-n+2),html[dir=ltr] .ds-settings-page .ds-storage-table .ds-directory-name small{text-align:left}
html[dir=ltr] .ds-settings-page .ds-storage-table td.ds-storage-action-cell .ds-directory-action-icon{margin:0 auto}
html[dir=ltr] .ds-storage-detail-dialog :is(.ds-storage-modal-subtitle,.ds-storage-modal-facts strong,.ds-storage-modal-section,.ds-storage-exact-count){text-align:left}
html[dir=ltr] .ds-settings-page .ds-storage-category-top>span{white-space:normal;flex-wrap:wrap}

/* Shade catalog: mirror chart, gallery and filters; keep shade codes and colors unchanged. */
html[dir=ltr] .ds-shade-catalog-page :is(.ds-shade-usage-bar,.ds-shade-usage-label,.ds-shade-families,.ds-shade-gallery,.ds-shade-group-heading,.ds-directory-panel-meta,.ds-shade-header-actions,.ds-directory-infinite){direction:ltr;text-align:left}
html[dir=ltr] .ds-shade-catalog-page .ds-shade-gallery-meta{direction:ltr;text-align:left}
html[dir=ltr] .ds-shade-catalog-page .ds-shade-gallery-usage{left:auto;right:8px}
html[dir=ltr] .ds-shade-catalog-page .ds-shade-gallery-fan{padding-left:0;padding-right:24px}
html[dir=ltr] .ds-shade-catalog-page .ds-directory-metric-copy{align-items:flex-start;text-align:left}
html[dir=ltr] .ds-shade-catalog-page .ds-directory-metric-copy :is(strong,small){text-align:left}
html[dir=ltr] .ds-shade-catalog-page .ds-directory-metric-copy small{white-space:normal}
html[dir=ltr] :is(#shadeEditDialog,#shadeImportDialog,#shadeDeleteDialog,#shadePreviewDialog) :is(.ds-modal-field,.ds-modal-field input:not([type=color]),.ds-modal-field select,.ds-modal-body){text-align:left}
html[dir=ltr] #shadePreviewDialog .ds-directory-table td:first-child{text-align:left}
#shadeImportDialog .ds-settings-file-picker{position:relative;display:flex;align-items:center;gap:10px;min-width:0;height:43px;padding:0 10px;border:1px solid var(--separator-color);border-radius:9px;background:var(--app-bg);font-size:12px;cursor:pointer}
#shadeImportDialog .ds-v2-file-button{flex:0 0 auto;padding:6px 9px;border-radius:5px;background:var(--accent-wash);color:var(--accent-strong);white-space:nowrap}
#shadeImportDialog .ds-v2-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#shadeImportDialog .ds-settings-file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#shadeImportDialog .ds-settings-file-picker:focus-within{outline:2px solid var(--accent);outline-offset:2px}

/* Tint history: keep the group toggle at the trailing edge, clear of colorant pills. */
html[dir=ltr] .ds-client-card .ds-client-table-formulas tr.ds-tint-group-parent > td:last-child{
 padding-left:13px;
 padding-right:41px;
}
html[dir=ltr] .ds-client-card .ds-client-table-formulas .ds-tint-group-toggle{
 left:auto;
 right:10px;
}

/* Shared permissions and customer map: mirror controls without changing their values. */
html[dir=ltr] :is(.ds-users-permission-editor,.ds-users-permission-toggle,.ds-users-permission-title,.ds-users-permission-check,.ds-users-notification-permission){direction:ltr;text-align:left}
html[dir=ltr] .ds-map-popup-head{padding:15px 54px 15px 16px}
html[dir=ltr] .ds-map-canvas a.leaflet-popup-close-button{left:auto!important;right:14px!important}
html[dir=ltr] .ds-map-popup-row>bdi{text-align:right}

/* User-directory permission counters contain numeric ranges in both languages. */
html[dir=ltr] .ds-users-permission-summary{direction:ltr;text-align:left}
