/*
 * HebrewRtl overrides: every rule must be prefixed with html.hebrewortl-rtl so Core CSS
 * is unchanged when RTL is off. Exception: .hebrewortl-settings-page { ... } below —
 * layout for the HebrewRtl module settings page only (max-width, padding, spacing);
 * that block applies in both LTR and RTL. When RTL is on, html also has dir=rtl and
 * class hebrewortl-rtl (see modules/HebrewRtl/dist/hebrewortl.js).
 */

html.hebrewortl-rtl {
  direction: rtl;
}

html.hebrewortl-rtl #app {
  direction: rtl;
}

html.hebrewortl-rtl #main {
  text-align: right;
}

html.hebrewortl-rtl .settings-content,
html.hebrewortl-rtl .hebrewortl-settings-page {
  direction: ltr;
}

/* Module settings page: layout only — no html.hebrewortl-rtl prefix (applies LTR + RTL). */

.hebrewortl-settings-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1rem 2.75rem;
}

@media (min-width: 640px) {
  .hebrewortl-settings-page {
    padding: 0.75rem 1.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .hebrewortl-settings-page {
    padding: 1rem 2rem 3.5rem;
  }
}

.hebrewortl-settings-page > [data-slot='control'] {
  margin-bottom: 1.25rem;
}

.hebrewortl-settings-page.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.75rem !important;
}

html.hebrewortl-rtl .hebrewortl-settings-page,
html.hebrewortl-rtl .hebrewortl-settings-page [data-slot='label'],
html.hebrewortl-rtl .hebrewortl-settings-page [data-slot='description'] {
  text-align: right;
}

html.hebrewortl-rtl input,
html.hebrewortl-rtl textarea {
  text-align: right;
}

html.hebrewortl-rtl input[type='email'],
html.hebrewortl-rtl input[type='url'],
html.hebrewortl-rtl input[type='tel'],
html.hebrewortl-rtl input[type='number'],
html.hebrewortl-rtl input[type='search'],
html.hebrewortl-rtl input[type='password'],
html.hebrewortl-rtl input[type='date'],
html.hebrewortl-rtl input[type='datetime-local'],
html.hebrewortl-rtl input[type='time'] {
  direction: rtl;
  text-align: right;
}

html.hebrewortl-rtl select {
  direction: rtl;
  text-align: right;
}

@media (min-width: 640px) {
  html.hebrewortl-rtl select.sm\:pr-\[calc\(theme\(spacing\.3\)\+24px\)\] {
    padding-right: 0.75rem !important;
    padding-left: calc(0.75rem + 24px) !important;
  }
}

html.hebrewortl-rtl select.pr-\[calc\(theme\(spacing\[3\.5\]\)\+24px\)\] {
  padding-right: 0.875rem !important;
  padding-left: calc(0.875rem + 24px) !important;
}

html.hebrewortl-rtl .flex.items-center.space-x-1\.5:has([data-sortable-handle='table-customize-sorting']) {
  gap: 0.75rem;
}

html.hebrewortl-rtl
  .flex.items-center.space-x-1\.5:has([data-sortable-handle='table-customize-sorting'])
  > :not([hidden])
  ~ :not([hidden]) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html.hebrewortl-rtl .ql-editor,
html.hebrewortl-rtl .ProseMirror {
  direction: rtl;
  text-align: right;
}

html.hebrewortl-rtl .tox .tox-toolbar,
html.hebrewortl-rtl .tox .tox-toolbar__overflow,
html.hebrewortl-rtl .tox .tox-toolbar__primary {
  direction: rtl;
  text-align: right;
}

html.hebrewortl-rtl
  [data-slot='field']
  > [data-slot='control']:has(input, textarea, select, [role='combobox']) {
  direction: rtl;
}

html.hebrewortl-rtl
  [data-slot='field']
  > [data-slot='control']:has(input, textarea, select, [role='combobox'])
  > [data-slot='icon'] {
  margin-right: 0.75rem;
  margin-left: 0;
}

html.hebrewortl-rtl [role='button']:has([role='combobox']) {
  text-align: start !important;
}

html.hebrewortl-rtl [role='button']:has([role='combobox']) > .flex.items-center {
  /* flex-direction: row-reverse; */
}

html.hebrewortl-rtl [role='button']:has([role='combobox']) > .flex.items-center > .mr-4.grow {
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

html.hebrewortl-rtl [role='button']:has([role='combobox']) [role='combobox'],
html.hebrewortl-rtl [role='button']:has([role='combobox']) .cs__search {
  direction: rtl;
  text-align: start;
}

html.hebrewortl-rtl
  [role='button']:has([role='combobox'])
  > .flex.items-center
  > div.flex.items-center:last-child
  .mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html.hebrewortl-rtl
  [role='button']:has([role='combobox'])
  > .flex.items-center
  > div.flex.items-center:last-child
  .-mt-0\.5.mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html.hebrewortl-rtl #app [data-slot='label'].mb-1.inline-flex.items-center {
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  text-align: start;
}

html.hebrewortl-rtl #app .grid.grid-cols-12.gap-x-4 {
  direction: rtl;
}

html.hebrewortl-rtl #app .mb-3 > .flex:has(> [data-slot='label'].grow) {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl .relative:has(> input.pr-8) > input.pr-8 {
  padding-right: 0.875rem;
  padding-left: 2rem;
}

html.hebrewortl-rtl
  .relative:has(> .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3)
  > .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3 {
  right: 0;
  left: auto;
  padding-right: 1rem;
  padding-left: 0;
}

html.hebrewortl-rtl
  .relative:has(> .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3)
  input.pl-10 {
  padding-right: 2.5rem;
  padding-left: 0.875rem;
}

html.hebrewortl-rtl
  .relative:has(> .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3)
  input.pl-11,
html.hebrewortl-rtl
  .relative:has(> .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3)
  input[class*='pl-11'] {
  padding-right: 3rem;
  padding-left: 0.75rem;
}

html.hebrewortl-rtl .\!pl-11 {
  padding-left: 0.75rem !important;
}

html.hebrewortl-rtl
  .relative:has(> .absolute.left-1.top-1.z-20.flex)
  > .absolute.left-1.top-1.z-20.flex {
  right: 0.25rem;
  left: auto;
}

html.hebrewortl-rtl
  .relative:has(> .absolute.left-1.top-1.z-20.flex)
  > .absolute.right-1\.5.top-1\.5.z-20.flex.sm\:top-1 {
  right: auto;
  left: 0.375rem;
}

html.hebrewortl-rtl
  .relative:has(> .absolute.left-1.top-1.z-20.flex)
  input.pl-32.pr-12 {
  padding-right: 8rem;
  padding-left: 3rem;
}

html.hebrewortl-rtl .mr-3 {
  margin-left: 0.75rem;
}

html.hebrewortl-rtl .lg\:ml-2 {
  margin-right: 0.5rem;
  margin-left: 0;
}

html.hebrewortl-rtl .ml-2 {
  margin-left: 0;
  margin-right: 0.5rem;
}

html.hebrewortl-rtl .ml-4 {
  margin-left: 0;
  margin-right: 1rem;
}

html.hebrewortl-rtl .ml-auto {
  margin-right: auto;
  margin-left: 0;
}

html.hebrewortl-rtl .flex.flex-1.justify-between.pr-4.sm\:pr-6.lg\:pr-8 {
  padding-right: 0;
}

html.hebrewortl-rtl [data-sortable-handle='insights'] {
  left: auto;
  right: 0.75rem;
}

@media (min-width: 1024px) {
  html.hebrewortl-rtl
    .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
    > div.px-3.py-4.sm\:p-6
    > .flex.grow.flex-col.lg\:flex-row.lg\:items-center {
    flex-direction: row-reverse;
  }
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .flex.shrink-0.flex-col.items-center.lg\:ml-6.lg\:flex-row {
  margin-left: 0 !important;
  margin-right: 1.5rem !important;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .mr-2.mt-5.lg\:mt-0.lg\:shrink-0 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .lg\:space-x-2
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .space-x-0\.5
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .lg\:text-left {
  text-align: start;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .lg\:space-x-4
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .lg\:space-x-3
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

@media (min-width: 1024px) {
  html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col {
    direction: rtl;
  }

  html.hebrewortl-rtl
    nav[aria-label='Progress']
    ol.lg\:grid-flow-col
    li.relative.overflow-hidden
    > div.absolute.right-0.top-0.h-full.w-5 {
    left: 0 !important;
    right: auto !important;
  }

  html.hebrewortl-rtl
    nav[aria-label='Progress']
    ol.lg\:grid-flow-col
    li.relative.overflow-hidden
    > div.absolute.right-0.top-0.h-full.w-5
    svg {
    transform: scaleX(-1);
  }
}

html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li > a > span.flex.items-center.px-4.py-2,
html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li > a.flex.items-center.px-4.py-2 {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li a span.flex.items-center.px-4.py-2,
html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li > a.flex.items-center.px-4.py-2 {
  gap: 5px;
}

html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li .ml-4 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  > div.px-3.py-4.sm\:p-6 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (min-width: 640px) {
  html.hebrewortl-rtl
    .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
    > div.px-3.py-4.sm\:p-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  > div.px-3.py-4.sm\:p-6
  > nav[aria-label='Progress'] {
  margin-inline: 0.125rem;
}

@media (min-width: 1024px) {
  html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col {
    padding-inline: 0.625rem;
    scroll-padding-inline: 0.5rem;
  }
}

html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li.relative.overflow-hidden {
  min-width: 0;
}

html.hebrewortl-rtl
  nav[aria-label='Progress']
  ol.lg\:grid-flow-col
  li
  a
  span.flex.items-center.px-4.py-2,
html.hebrewortl-rtl nav[aria-label='Progress'] ol.lg\:grid-flow-col li > a.flex.items-center.px-4.py-2 {
  padding-left: 0.875rem !important;
  padding-right: 1rem !important;
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .order-1
  button.flex.flex-wrap.items-center
  svg.size-4:first-of-type {
  transform: scaleX(-1);
}

html.hebrewortl-rtl
  .overflow-hidden.rounded-lg:has(nav[aria-label='Progress'] ol.lg\:grid-flow-col)
  .order-1
  div.flex.flex-wrap.items-center.justify-center
  svg.size-4:first-of-type {
  transform: scaleX(-1);
}

html.hebrewortl-rtl table[id^="table-"] {
  direction: rtl;
}

@media (min-width: 768px) {
  html.hebrewortl-rtl div.mb-4.space-y-2.md\:flex.md\:items-center.md\:space-x-3\.5 {
    flex-direction: row;
    direction: rtl;
  }

  html.hebrewortl-rtl div.mb-4.space-y-2.md\:flex.md\:items-center.md\:space-x-3\.5 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1 !important;
  }
}

html.hebrewortl-rtl div.group.relative.flex.cursor-move.items-center > button.inline-flex .absolute.left-1\.5.h-4.w-4 {
  left: auto !important;
  right: 0.375rem !important;
}

html.hebrewortl-rtl table[id^="table-"] td:first-child,
html.hebrewortl-rtl table[id^="table-"] th:first-child {
  min-width: 3rem;
}

html.hebrewortl-rtl table[id^="table-"] td:first-child > div.flex.items-center {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
}

html.hebrewortl-rtl table[id^="table-"] th:first-child > div.inline-flex.items-center {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
}

html.hebrewortl-rtl table[id^="table-"] td:first-child > div.flex > .overflow-hidden,
html.hebrewortl-rtl table[id^="table-"] th:first-child > div.inline-flex > div.overflow-hidden,
html.hebrewortl-rtl table[id^="table-"] th:first-child > div.inline-flex > div:has(span.truncate) {
  min-width: 0;
}

html.hebrewortl-rtl table[id^="table-"] td:first-child > div.flex,
html.hebrewortl-rtl table[id^="table-"] th:first-child > div.inline-flex {
  width: 100%;
}

html.hebrewortl-rtl th div.inline-flex.items-center > .mr-2,
html.hebrewortl-rtl td div.flex.items-center > .mr-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

html.hebrewortl-rtl th div.inline-flex.items-center > div.ml-6,
html.hebrewortl-rtl td div.flex.items-center > div.ml-6 {
  margin-left: 0;
  margin-right: 1.5rem;
}

html.hebrewortl-rtl th div.inline-flex.items-center > div.ml-4,
html.hebrewortl-rtl td div.flex.items-center > div.ml-4 {
  margin-left: 0;
  margin-right: 1rem;
}

html.hebrewortl-rtl th div.inline-flex.items-center.mt-px {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl th div.inline-flex.items-center.mt-px span.mr-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

html.hebrewortl-rtl table th .absolute.top-0.h-full.w-px.left-8,
html.hebrewortl-rtl table td .absolute.top-0.h-full.w-px.left-8 {
  left: auto;
  right: 3rem;
}

html.hebrewortl-rtl table th .absolute.top-0.h-full.w-px.left-12,
html.hebrewortl-rtl table td .absolute.top-0.h-full.w-px.left-12 {
  left: auto;
  right: 3rem;
}

html.hebrewortl-rtl table th .absolute.top-0.h-full.w-px.right-0,
html.hebrewortl-rtl table td .absolute.top-0.h-full.w-px.right-0 {
  right: auto;
  left: 0;
}

html.hebrewortl-rtl table th .absolute.top-0.h-full.w-px.-left-px,
html.hebrewortl-rtl table td .absolute.top-0.h-full.w-px.-left-px {
  left: auto;
  right: -1px;
}

html.hebrewortl-rtl table tbody tr.group\/tr > td:first-child::before {
  left: auto !important;
  right: 0 !important;
  border-left-width: 0 !important;
  border-right-width: 2px !important;
}

html.hebrewortl-rtl table .lg\:sticky.lg\:left-0 {
  left: auto;
  right: 0;
}

html.hebrewortl-rtl table .lg\:sticky.lg\:right-0 {
  right: auto;
  left: 0;
}

html.hebrewortl-rtl table[id^='table-'] th .absolute.top-0.h-full.w-px.shadow-\[1px_0px_10px\],
html.hebrewortl-rtl table[id^='table-'] td .absolute.top-0.h-full.w-px.shadow-\[1px_0px_10px\] {
  box-shadow: none !important;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
}

html.hebrewortl-rtl table[id^='table-'] .lg\:sticky .absolute.top-0.h-full.w-px[class*='shadow-['] {
  box-shadow: none !important;
}

html.hebrewortl-rtl table[id^="table-"] thead th .resizer {
  left: 0 !important;
  right: auto !important;
  min-width: 0px;
  margin-left: 0px;
  z-index: 2;
  box-sizing: content-box;
}

html.hebrewortl-rtl div.overflow-x-auto:has(> div > table[id^="table-"]) {
  direction: rtl;
}

html.hebrewortl-rtl
  .relative.overflow-hidden:has(table[id^="table-"])
  > div.absolute.top-0.z-50.h-11 {
  z-index: 70 !important;
}

html.hebrewortl-rtl table .text-left {
  text-align: start;
}

html.hebrewortl-rtl table .text-right {
  text-align: end;
}

html.hebrewortl-rtl table .text-center {
  text-align: center;
}

html.hebrewortl-rtl table .absolute.right-0\.5.mr-4 {
  right: auto !important;
  left: 0.125rem !important;
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

html.hebrewortl-rtl .settings-sidebar .pointer-events-none.absolute.right-4 {
  left: 1rem;
  right: auto;
}

html.hebrewortl-rtl .right-4 {
  right: auto;
  left: 1rem;
}

html.hebrewortl-rtl
  .relative:has(> input, > select, > [role='button'])
  > .absolute.right-1\.5.top-1\.5.sm\:top-1 {
  right: auto;
  left: 0.375rem;
}

html.hebrewortl-rtl .dialog .pointer-events-none.fixed.inset-y-0.right-0.flex.max-w-full.pl-10 {
  left: 0;
  right: auto;
  padding-left: 0;
  padding-right: 2.5rem;
}

html.hebrewortl-rtl .dialog .pointer-events-none.fixed.inset-y-0.right-0.flex.max-w-full.pl-10 .border-l {
  border-left-width: 0;
  border-right-width: 1px;
}

html.hebrewortl-rtl .dialog .translate-x-full {
  transform: translateX(-100%);
}

html.hebrewortl-rtl .absolute.left-1\/2.top-1\/2.-translate-x-1\/2.-translate-y-1\/2.transform {
  left: 50%;
}

html.hebrewortl-rtl .dialog .ml-3 {
  margin-left: 0;
  margin-right: 0.75rem;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) {
  direction: rtl;
  text-align: start;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .grid.grid-cols-12 {
  direction: rtl;
  row-gap: 1.5rem;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .mb-1.inline-flex.items-center {
  justify-content: start;
  width: 100%;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .mb-1.mt-3 .inline-flex.items-center {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .mb-1.mt-3 .inline-flex.items-center svg.mr-1\.5 {
  margin-right: 0 !important;
  margin-left: 0.375rem !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center:has(> .relative.mr-2):has(> .flex.items-center.space-x-2) {
  flex-direction: row-reverse;
  justify-content: flex-end;
  width: 100%;
  gap: 0.75rem;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center:has(> .relative.mr-2)
  > .relative.mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center:has(> .relative.mr-2)
  > .flex.items-center.space-x-2 {
  flex-direction: row-reverse;
  gap: 10px;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center:has(> .relative.mr-2)
  > .flex.items-center.space-x-2
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center:has(> .relative.mr-2)
  .truncate.ml-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

/*
 * Reminder number field: Core uses absolute left + !pl-11 for the clear control.
 * Keep the clear control on the physical left.
 *
 * With direction:rtl on the input, browsers put native steppers on the left too — same
 * side as the clear icon (two controls stacked). Use direction:ltr + text-align:right
 * so spinners sit on the right (next to the value) and the clear button stays on the left.
 */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .relative.mr-2
  > button.absolute.left-1\.5.top-1\.5 {
  left: 0.375rem !important;
  right: auto !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .relative.mr-2
  input[type='number'] {
  direction: ltr;
  text-align: right;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .tox-tinymce {
  direction: rtl;
}

/*
 * TinyMCE placeholder (::before). Core positions with left; in RTL align to logical start.
 * Note: applies when this stylesheet reaches the editor document (e.g. content_css); the
 * parent page cannot style inside the iframe otherwise.
 */
html.hebrewortl-rtl .mce-content-body:not([dir='rtl'])[data-mce-placeholder]:not(.mce-visualblocks)::before,
html.hebrewortl-rtl .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
  right: 0 !important;
  left: auto !important;
}

/* TinyMCE bottom toolbar: mirror groups to the visual start (right) */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .tox-editor-header {
  direction: rtl;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .tox-toolbar__primary {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .tox-toolbar__group {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl .dialog :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg) .shrink-0.px-4.py-4 .flex.justify-end.space-x-2 {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .shrink-0.px-4.py-4
  .flex.space-x-2
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

/* IModal footer (Create Activity, etc.): primary action on visual start */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.justify-end.space-x-2 {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.justify-end.space-x-2
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

/* Due / end date rows: time picker + dash */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center.space-x-1 {
  flex-direction: row-reverse;
  gap: 10px;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center.space-x-1
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .absolute.-right-3.md\:block {
  right: auto !important;
  left: -0.75rem !important;
}

/* Activity type icon row */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='radiogroup']
  .flex.flex-wrap.gap-x-1\.5 {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Combobox (associate records, owner): chevron + clear on visual start */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='button'].relative.w-full.text-left {
  text-align: right !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='button'].relative.w-full
  > .flex.items-center {
  flex-direction: row-reverse;
  justify-content: start;
  width: 100%;
}

/* Selected value + chips: logical start in RTL (reading edge) */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='combobox'] {
  justify-content: start;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='combobox'].flex.items-center {
  width: 100%;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='combobox']
  .space-x-1\.5 {
  flex-direction: row-reverse;
  justify-content: start;
  gap: 10px !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='combobox']
  span.gap-x-2 {
  text-align: right;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [role='button'].relative.w-full
  .mr-4.grow {
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  [data-slot='badge'] {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Guests / Description links */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  a.flex.items-center.text-primary-600 {
  flex-direction: row-reverse;
  justify-content: flex-end;
  width: 100%;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  a.flex.items-center.text-primary-600
  svg.mr-1 {
  margin-right: 0 !important;
  margin-left: 0.25rem !important;
}

/* English helper under TinyMCE — avoid leading punctuation in RTL */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .mb-3
  p.text-neutral-500.mt-1 {
  unicode-bidi: plaintext;
  text-align: right;
}

/* Associate with records — chain icon on the reading side of the title */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .mb-1.mt-3
  h3.inline-flex.items-center {
  flex-direction: row-reverse;
  width: 100%;
  justify-content: flex-end;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .mb-1.mt-3
  h3.inline-flex.items-center
  svg.mr-1\.5 {
  margin-right: 0 !important;
  margin-left: 0.375rem !important;
}

/* Standard inputs (title, dates, etc.) — exclude combobox search + hidden */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  input.w-full.rounded-lg:not(.cs__search):not([type='hidden']) {
  text-align: right;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  input.cs__search {
  text-align: right;
  direction: rtl;
}

/* Reminder unit select — mirror padding so the chevron sits on the visual start */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  .flex.items-center.space-x-2
  select.block.w-full.rounded-lg {
  text-align: right;
  direction: rtl;
  padding-left: 2.75rem !important;
  padding-right: 0.875rem !important;
  background-position: left 0.75rem center;
}

/* Labels: title then required marker for RTL reading order */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  label[data-slot='label'].inline-flex.items-center {
  flex-direction: row-reverse;
}

html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  label[data-slot='label'].inline-flex.items-center
  span.mr-1 {
  margin-right: 0 !important;
  margin-left: 0.25rem !important;
}

/* Combobox chevron: mirror like LTR (arrow points to logical “open”) */
html.hebrewortl-rtl
  .dialog
  :is(form.pointer-events-auto.w-screen, form.rounded-2xl.bg-white.text-left.shadow-lg)
  svg.toggle-icon {
  transform: scaleX(-1);
}

html.hebrewortl-rtl .dialog :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg,
html.hebrewortl-rtl .dialog div.rounded-xl.bg-white.text-left.shadow-xl.ring-1 {
  direction: rtl;
  text-align: start;
}

html.hebrewortl-rtl .dialog :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg .text-left,
html.hebrewortl-rtl .dialog div.rounded-xl.bg-white.text-left.shadow-xl.ring-1 .text-left {
  text-align: start;
}

html.hebrewortl-rtl .dialog :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg .absolute.right-5.top-6 {
  right: auto !important;
  left: 1.25rem !important;
}

@media (min-width: 640px) {
  html.hebrewortl-rtl
    .dialog
    :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg
    .absolute.right-5.top-6.sm\:right-7.sm\:top-8 {
    left: 1.75rem !important;
    right: auto !important;
  }
}

html.hebrewortl-rtl .dialog :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg .mb-6 .mr-5 {
  margin-right: 0 !important;
  margin-left: 1.25rem !important;
}

html.hebrewortl-rtl
  .dialog
  :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg
  [data-slot='rule']
  > button.absolute.\-right-7 {
  right: auto !important;
  left: -1.75rem !important;
}

html.hebrewortl-rtl
  .dialog
  :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg
  [data-slot='rule']
  .absolute.z-20.rounded-full.border.border-white {
  left: auto !important;
  right: -31.5px !important;
}

html.hebrewortl-rtl
  .dialog
  :is(div, form).rounded-2xl.bg-white.text-left.shadow-lg
  [data-slot='rule']
  .sm\:space-x-3
  > :not([hidden])
  ~ :not([hidden]) {
  --tw-space-x-reverse: 1 !important;
}

html.hebrewortl-rtl .fixed.inset-0.z-50.flex.md\:hidden:has(#sidebar-sm) {
  justify-content: flex-end;
  direction: ltr;
}

html.hebrewortl-rtl .relative.w-56:has(#sidebar-sm).-translate-x-full,
html.hebrewortl-rtl .relative.w-56.max-w-xs:has(#sidebar-sm).-translate-x-full,
html.hebrewortl-rtl .relative.flex.w-56:has(#sidebar-sm).-translate-x-full,
html.hebrewortl-rtl .relative.flex.w-56.max-w-xs:has(#sidebar-sm).-translate-x-full {
  transform: translateX(100%);
}

html.hebrewortl-rtl .relative.w-56:has(#sidebar-sm).translate-x-0,
html.hebrewortl-rtl .relative.w-56.max-w-xs:has(#sidebar-sm).translate-x-0,
html.hebrewortl-rtl .relative.flex.w-56:has(#sidebar-sm).translate-x-0,
html.hebrewortl-rtl .relative.flex.w-56.max-w-xs:has(#sidebar-sm).translate-x-0 {
  transform: translateX(0);
}

html.hebrewortl-rtl .relative.flex.w-56:has(#sidebar-sm) .absolute.right-0.top-0.-mr-12,
html.hebrewortl-rtl .relative.flex.w-56.max-w-xs:has(#sidebar-sm) .absolute.right-0.top-0.-mr-12 {
  right: auto;
  left: 0;
  margin-right: 0;
  margin-left: -3rem;
}

html.hebrewortl-rtl #sidebar-sm,
html.hebrewortl-rtl #sidebar-lg {
  direction: rtl;
  text-align: right;
}

html.hebrewortl-rtl #sidebar-sm button,
html.hebrewortl-rtl #sidebar-sm a,
html.hebrewortl-rtl #sidebar-lg button,
html.hebrewortl-rtl #sidebar-lg a {
  justify-content: flex-start;
  text-align: right;
}

html.hebrewortl-rtl #sidebar-sm .mr-4.size-6,
html.hebrewortl-rtl #sidebar-sm .mr-4.size-5,
html.hebrewortl-rtl #sidebar-lg .mr-3.size-6,
html.hebrewortl-rtl #sidebar-lg .mr-3.size-5 {
  margin-right: 0;
  margin-left: 1rem;
}

html.hebrewortl-rtl #sidebar-sm .mr-3.size-5 {
  margin-right: 0;
  margin-left: 0.75rem;
}

html.hebrewortl-rtl #sidebar-sm .ml-auto,
html.hebrewortl-rtl #sidebar-lg .ml-auto {
  margin-left: 0;
  margin-right: auto;
}

html.hebrewortl-rtl #sidebar-sm .space-y-0\.5.border-l.border-neutral-700,
html.hebrewortl-rtl #sidebar-lg .space-y-1.border-l.border-neutral-700 {
  margin-left: 0;
  margin-right: 1.25rem;
  border-left-width: 0;
  border-right-width: 1px;
  padding-left: 0;
  padding-right: 0.375rem;
}

html.hebrewortl-rtl #sidebar-sm button .ml-auto svg,
html.hebrewortl-rtl #sidebar-lg button .ml-auto svg {
  transform: scaleX(-1);
}

html.hebrewortl-rtl [data-hebrewortl-notifications='1'] {
  direction: rtl;
}

html.hebrewortl-rtl [data-hebrewortl-notifications='1'] th,
html.hebrewortl-rtl [data-hebrewortl-notifications='1'] td,
html.hebrewortl-rtl [data-hebrewortl-notifications='1'] [role='columnheader'],
html.hebrewortl-rtl [data-hebrewortl-notifications='1'] [role='cell'] {
  direction: rtl;
  vertical-align: middle;
}

html.hebrewortl-rtl [data-hebrewortl-notifications='1'] p,
html.hebrewortl-rtl [data-hebrewortl-notifications='1'] [data-slot='text'] {
  text-align: right;
}

html.hebrewortl-rtl [data-hebrewortl-document-form-header-row='1'] {
  direction: rtl;
  flex-direction: row-reverse;
}

html.hebrewortl-rtl [data-hebrewortl-document-form-sections='1'] {
  direction: rtl;
  flex-direction: row-reverse;
}

html.hebrewortl-rtl [data-hebrewortl-document-form-sections='1'] > * {
  margin-right: 0 !important;
  margin-left: 1.5rem !important;
}

html.hebrewortl-rtl [data-hebrewortl-document-form-sections='1'] > *:last-child {
  margin-left: 0 !important;
}

html.hebrewortl-rtl [data-hebrewortl-document-form-sections='1'] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

html.hebrewortl-rtl [data-hebrewortl-document-form-sections='1'] svg {
  transform: scaleX(-1);
}

html.hebrewortl-rtl [data-hebrewortl-document-details-tabs='1'] {
  direction: rtl;
}

@media (min-width: 768px) {
  html.hebrewortl-rtl
    .mb-4.mt-3.flex.items-center.md\:absolute.md\:right-1.md\:top-3\.5.md\:my-0.md\:space-x-2\.5 {
    left: 0 !important;
    right: auto !important;
  }
}

html.hebrewortl-rtl [data-hebrewortl-document-status-row='1'] {
  direction: rtl;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html.hebrewortl-rtl [data-hebrewortl-document-status-row='1'] > .order-last {
  order: 0;
  margin-left: 0 !important;
  margin-right: auto !important;
}

html.hebrewortl-rtl [data-hebrewortl-document-status-row='1'] .mr-2\.5 {
  margin-right: 0 !important;
  margin-left: 0.625rem !important;
}

html.hebrewortl-rtl .rounded-lg.bg-white.shadow.ring-1.ring-neutral-200.dark\:bg-neutral-900.dark\:ring-neutral-500\/30.has-\[\[data-slot\=empty\]\]\:h-52.md\:h-52 {
  margin-left: 10px;
  margin-right: 0px;
}

html.hebrewortl-rtl .\[\&\>\[data-slot\=icon\]\]\:sm\:size-4 > [data-slot='icon'] {
  width: 1rem;
  height: 1rem;
  margin-left: 10px;
}

html.hebrewortl-rtl button#headlessui-popover-button-v-9 {
  padding-left: 0.75rem;
  margin-right: 34rem;
}

html.hebrewortl-rtl
  span.border-transparent.bg-primary-600.mt-0\.5.flex.size-4.shrink-0.cursor-pointer.items-center.justify-center.rounded-full.border,
html.hebrewortl-rtl
  span.border-neutral-300.bg-white.mt-0\.5.flex.size-4.shrink-0.cursor-pointer.items-center.justify-center.rounded-full.border {
  margin-left: 0.75rem;
}

html.hebrewortl-rtl p.text-neutral-500.dark\:text-neutral-300.text-base\/6.sm\:text-sm\/6.ml-2 {
  text-align: right;
}

html.hebrewortl-rtl .settings-sidebar .cursor-pointer > div > [data-slot='control']:not(:first-child) {
  margin-left: 0;
  margin-right: 1.5rem;
}

html.hebrewortl-rtl
  [data-slot='field']
  > [data-slot='control']:not(:has(input, textarea, select, [role='combobox'])) {
  direction: ltr;
}

html.hebrewortl-rtl [data-slot='field'] > [data-slot='control'] > span.translate-x-0 {
  transform: translateX(0) !important;
}

html.hebrewortl-rtl [data-slot='field'] > [data-slot='control'] > span.translate-x-4 {
  transform: translateX(1rem) !important;
}

html.hebrewortl-rtl .space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  margin-left: calc(1rem * var(--tw-space-x-reverse));
}

html.hebrewortl-rtl div:has(> #navInputSearch) > div.pointer-events-none.absolute.inset-y-0 {
  left: auto;
  right: 0.75rem;
}

html.hebrewortl-rtl #navInputSearch {
  padding-left: 4rem;
  padding-right: 4rem;
}

html.hebrewortl-rtl div:has(> #navInputSearch) > div.absolute.left-56 {
  left: auto;
  right: 20.5rem;
}

@media (min-width: 640px) {
  html.hebrewortl-rtl .sm\:pl-14 {
    padding-right: 3.5rem;
    padding-left: 0;
  }

  html.hebrewortl-rtl
    .relative:has(> .pointer-events-none.absolute.inset-y-0.left-0.flex.items-center.pl-3)
    input.sm\:pl-11 {
    padding-right: 2.75rem;
    padding-left: 0.75rem;
  }

  html.hebrewortl-rtl
    .relative:has(> .absolute.left-1.top-1.z-20.flex)
    input.sm\:pl-28.sm\:pr-11 {
    padding-right: 7rem;
    padding-left: 2.75rem;
  }

  html.hebrewortl-rtl .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
    margin-left: calc(0.5rem * var(--tw-space-x-reverse));
  }

  html.hebrewortl-rtl div:has(> #navInputSearch) > div.pointer-events-none.absolute.inset-y-0 {
    right: 1.5rem;
  }

  html.hebrewortl-rtl #navInputSearch {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  html.hebrewortl-rtl div:has(> #navInputSearch) > div.absolute.left-56 {
    left: auto;
    right: 20.5rem;
  }

  html.hebrewortl-rtl [data-sortable-handle='insights'] {
    right: 0.25rem;
  }
}

html.hebrewortl-rtl body > div.pointer-events-none.absolute.left-0.top-0.z-\[1300\] {
  right: auto !important;
  width: max-content !important;
  max-width: min(24rem, calc(100vw - 1.5rem)) !important;
  min-width: 0;
  box-sizing: border-box;
}

html.hebrewortl-rtl
  body
  > div.pointer-events-none.absolute.left-0.top-0.z-\[1300\]
  .overflow-hidden.rounded-md {
  width: max-content !important;
  max-width: min(24rem, calc(100vw - 1.5rem)) !important;
  box-sizing: border-box;
}

html.hebrewortl-rtl
  body
  > div.pointer-events-none.absolute.left-0.top-0.z-\[1300\]
  .relative.max-w-sm {
  width: max-content !important;
  max-width: min(24rem, calc(100vw - 1.5rem)) !important;
  box-sizing: border-box;
}

html.hebrewortl-rtl
  body
  > div.pointer-events-none.absolute.left-0.top-0.z-\[1300\]
  .relative.max-w-sm
  > div {
  unicode-bidi: plaintext;
  width: max-content !important;
  max-width: min(24rem, calc(100vw - 1.5rem)) !important;
  box-sizing: border-box;
}
.text-left{
  text-align: right;
}
html.hebrewortl-rtl th div.inline-flex.items-center > div.ml-6, html.hebrewortl-rtl td div.flex.items-center > div.ml-6{
  margin-right: 0.25rem;
  margin-left: 0.25rem;
}
html.hebrewortl-rtl table[id^="table-"] td span.mr-1{
      margin-right: 0;
    margin-left: 0.25rem;
}
.space-x-1{
  direction: ltr;
}
a .space-x-1{
  direction: rtl;
}
.absolute.-top-3.right-5 {
left: 1.25rem;
right: auto;
}
.mr-1{
  margin-left: 0.25rem;
}
.first\:rounded-tl-lg:first-child{
  border-top-left-radius: 0;
    border-top-right-radius: .5rem;
    border-left: 0;
}
.btn{
  border-radius: 0;
}
.rounded-tr-lg {
    border-top-right-radius: 0;
    border-top-left-radius: 0.5rem;
    border-left: 1px solid rgb(203 213 225);
}
.rounded-r-none {
    border-top-right-radius: .5rem !important;
    border-bottom-right-radius: .5rem;
}
.rounded-l-none{
  border-top-left-radius: .5rem !important;
    border-bottom-left-radius: .5rem !important;
}