/* Page identity stays in navigation and remains available to screen readers. */
html[dir="rtl"]
  :is(
    .omni-stage .marsa-omni .content > .page-heading,
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  ) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 0;
  min-height: 0;
}
html[dir="rtl"]
  :is(
    .omni-stage .marsa-omni .content > .page-heading,
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  )
  > div:first-child:has(> h1) {
  display: contents;
}
html[dir="rtl"]
  :is(
    .omni-stage .marsa-omni .content > .page-heading,
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  )
  h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
html[dir="rtl"]
  :is(
    .omni-stage .marsa-omni .content > .page-heading,
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  )
  .eyebrow {
  display: none;
}
html[dir="rtl"]
  :is(
    .omni-stage .marsa-omni .content > .page-heading,
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  ):not(:has(button, a, select, input, small, p, .manager-lock)) {
  display: contents;
  margin: 0;
}
html[dir="rtl"]
  :is(
    .crm-shell .workspace .page-title,
    .crm-shell .workspace .settings-title,
    .erp-app.business-app .erp-list-workspace .page-heading
  )
  > div:first-child
  > p {
  margin: 0;
  font-size: 11px;
}
/* Standalone explanatory title blocks have no controls or record counts. */
html[dir="rtl"]
  .crm-shell
  .workspace
  :is(.tracking-title, .settings-title)
  > div:first-child
  > p {
  display: none;
}
html[dir="rtl"] .crm-shell .workspace .tracking-title {
  display: contents;
  margin: 0;
}
html[dir="rtl"] .erp-app.business-app .erp-list-workspace .access-heading {
  display: none;
}
html[dir="rtl"] .omni-stage .marsa-omni .content,
html[dir="rtl"] .crm-shell > main > .workspace,
html[dir="rtl"] .erp-app.business-app .workspace {
  padding-top: 18px;
}
@media (max-width: 620px) {
  html[dir="rtl"] .omni-stage .marsa-omni .content,
  html[dir="rtl"] .crm-shell > main > .workspace,
  html[dir="rtl"] .erp-app.business-app .workspace {
    padding-top: 14px;
  }
}
html[dir="rtl"] .crm-shell .workspace .ai-hero {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Refresh belongs to the content tools and uses one marine secondary style. */
html[dir="rtl"] body button.marsa-refresh.marsa-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  width: auto;
  min-width: 94px;
  min-height: 44px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #a5c7cc;
  border-radius: 12px;
  background: #f5fafb;
  color: #28656d;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
html[dir="rtl"][data-theme="dark"] body button.marsa-refresh.marsa-refresh {
  background: #203841;
  border-color: #52737b;
  color: #c4e7ec;
}
html[dir="rtl"] body button.marsa-refresh.marsa-refresh:hover {
  background: #eaf4f5;
}
html[dir="rtl"][data-theme="dark"]
  body
  button.marsa-refresh.marsa-refresh:hover {
  background: #294751;
}
html[dir="rtl"] body button.marsa-refresh.marsa-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}
html[dir="rtl"] body button.marsa-refresh.marsa-refresh:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
button.marsa-refresh[aria-busy="true"] > svg {
  animation: marsa-refresh-turn 1s linear infinite;
}
@keyframes marsa-refresh-turn {
  to {
    transform: rotate(360deg);
  }
}
.crm-shell .homele-search-row .crm-list-status,
.crm-shell .crm-property-tools .crm-list-status {
  margin: 0;
  min-height: 44px;
}
.crm-shell .crm-list-summary {
  color: var(--crm-chrome-muted);
  font-size: 11px;
  white-space: nowrap;
}
.crm-shell .crm-property-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.crm-shell .crm-property-tools .crm-property-search {
  flex: 1 1 240px;
  margin: 0;
}
.crm-refresh-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[dir="rtl"] .crm-shell .workspace .page-title > div:first-child > p {
  display: none;
}
html[dir="rtl"]
  .crm-shell
  .workspace
  .page-title:not(:has(button, a, select, input, small, .manager-lock)) {
  display: contents;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  button.marsa-refresh[aria-busy="true"] > svg {
    animation: none;
  }
}
.marine-dashboard-utilities,
.crm-dashboard-footer,
.marsa-page-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 12px;
}
.crm-dashboard-footer .crm-dashboard-updated {
  margin: 0;
  margin-inline-end: auto;
}
.crm-shell .homele-search-row { flex-wrap: wrap; gap: 8px; }
.crm-shell .homele-search-row > label { flex: 1 1 240px; min-width: 0; }
