/* Natasun Persianize module - safer font/RTL/login enhancements */

/* Vazirmatn Farsi-Digits (Persian numerals) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-FD-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Font application - keep it conservative to avoid breaking Tailwind/layout/icons */
body.natasun-persianize-font {
  font-family: 'Vazirmatn', Tahoma, 'IRANSansWebFaNum', 'Segoe UI', sans-serif;
}
body.natasun-persianize-font input,
body.natasun-persianize-font button,
body.natasun-persianize-font select,
body.natasun-persianize-font textarea,
body.natasun-persianize-font .btn,
body.natasun-persianize-font .dropdown-menu,
body.natasun-persianize-font .modal-content,
body.natasun-persianize-font .tooltip,
body.natasun-persianize-font .popover,
body.natasun-persianize-font .dataTables_wrapper,
body.natasun-persianize-font .fc,
body.natasun-persianize-font .ui-widget {
  font-family: inherit;
}

/* Preserve/reassert icon fonts */
body.natasun-persianize-font .fa,
body.natasun-persianize-font .fas,
body.natasun-persianize-font .fa-solid,
body.natasun-persianize-font [class^="fa-"],
body.natasun-persianize-font [class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}
body.natasun-persianize-font .fa,
body.natasun-persianize-font .fas,
body.natasun-persianize-font .fa-solid {
  font-weight: 900;
}
body.natasun-persianize-font .far,
body.natasun-persianize-font .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400;
}
body.natasun-persianize-font .fab,
body.natasun-persianize-font .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}
body.natasun-persianize-font .glyphicon,
body.natasun-persianize-font [class^="glyphicon-"],
body.natasun-persianize-font [class*=" glyphicon-"] {
  font-family: "Glyphicons Halflings" !important;
}
body.natasun-persianize-font .material-icons { font-family: "Material Icons" !important; }
body.natasun-persianize-font .fc-icon { font-family: inherit !important; }

/* Jalali picker helpers */
.natasun-jalali-alt { cursor: pointer; background-color: #fff; }
.natasun-jalali-original-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.natasun-jalali-wrapper { position: relative; }
.natasun-jalali-wrapper .calendar-icon { cursor: pointer; }
.pdatepicker-plot-area { font-family: 'Vazirmatn', Tahoma, sans-serif; }

/* RTL helpers (scoped) */
html[dir="rtl"] body.natasun-persianize-rtl,
body.rtl.natasun-persianize-rtl { direction: rtl; }

html[dir="rtl"] body.natasun-persianize-rtl .sidebar ul.nav li a i.menu-icon,
body.rtl.natasun-persianize-rtl .sidebar ul.nav li a i.menu-icon {
  float: right;
  margin-right: 0;
  margin-left: 14px;
}
html[dir="rtl"] body.natasun-persianize-rtl #side-menu .arrow,
html[dir="rtl"] body.natasun-persianize-rtl #setup-menu .arrow,
body.rtl.natasun-persianize-rtl #side-menu .arrow,
body.rtl.natasun-persianize-rtl #setup-menu .arrow {
  float: left;
}
html[dir="rtl"] body.natasun-persianize-rtl .table > thead > tr > th,
html[dir="rtl"] body.natasun-persianize-rtl .table > tbody > tr > td,
body.rtl.natasun-persianize-rtl .table > thead > tr > th,
body.rtl.natasun-persianize-rtl .table > tbody > tr > td {
  text-align: right;
}

/* DataTables empty/loading/processing cells centered */
table.dataTable td.dataTables_empty,
table.dataTable tbody td.dataTables_empty,
.dataTables_empty,
table.dataTable td.dt-empty,
div.dataTables_wrapper .dataTables_processing {
  text-align: center !important;
}

/* LTR fields */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[name="email"],
html[dir="rtl"] input[name="password"],
html[dir="rtl"] input[name="passwordr"],
html[dir="rtl"] input[name="code"],
body.rtl input[type="email"],
body.rtl input[type="password"],
body.rtl input[type="url"],
body.rtl input[name="code"] {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] textarea#theme_style_custom_clients_and_admin_area,
html[dir="rtl"] textarea#theme_style_custom_admin_area,
html[dir="rtl"] textarea#theme_style_custom_clients_area,
body.rtl textarea#theme_style_custom_clients_and_admin_area,
body.rtl textarea#theme_style_custom_admin_area,
body.rtl textarea#theme_style_custom_clients_area {
  direction: ltr;
  text-align: left;
}

/* Login customizations (scoped to effect-enabled login pages) */
body.natasun-login-effects .natasun-login-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
body.natasun-login-effects.natasun-login-admin,
body.natasun-login-effects.natasun-login-client {
  background: radial-gradient(circle, #F9A72B 0%, #FA9026 70%, #FB6C1F 100%) !important;
  min-height: 100vh;
}
body.natasun-login-effects .authentication-form-wrapper,
body.natasun-login-effects .login-form,
body.natasun-login-effects .panel_s,
body.natasun-login-effects .kt-login__wrapper,
body.natasun-login-effects .company-logo {
  position: relative;
  z-index: 2;
}
body.natasun-login-effects .authentication-form,
body.natasun-login-effects .panel_s .panel-body {
  background: rgba(255, 250, 250, 0.92);
}
body.natasun-login-effects .login-heading,
body.natasun-login-effects .authentication-form-wrapper h1 {
  color: #fff;
}
body.natasun-login-effects .authentication-form-wrapper p {
  color: rgba(255,255,255,0.95);
}
body.natasun-login-effects .authentication-form-wrapper p.text-muted,
body.natasun-login-effects .authentication-form-wrapper .text-muted {
  color: rgba(255,255,255,0.9) !important;
}
body.natasun-login-effects .natasun-clouds {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: auto;
  height: 35%;
  overflow: hidden;
  animation: natasunFadeIn 3s ease-out;
  user-select: none;
}
@keyframes natasunFadeIn { from { opacity: 0; } to { opacity: 1; } }
body.natasun-login-effects .natasun-cloud {
  position: absolute;
  width: 100%;
  background-repeat: no-repeat;
  background-size: auto 100%;
  height: 70px;
  animation-duration: 120s;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  animation-name: natasunFloat, natasunFadeFloat;
  z-index: -1;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAABgCAYAAACTzNnjAAAFCklEQVR42u3d34uVRRjA8YMsEi0iSwhdRBGhSJgZiNRFIkWhQVEXBipKUVBBLCF6k0h4UxFkBLq4QT/Qiyi80EgxCjXMWqOMtqy0bBNja92yXatN3c3pGc9sHU/v+X3emWfe93vx+QN23u+e95x5Z94pmNWFQo5NEytErzgoBsSIOCf+FqbEBTEhzophcVTsFxvFEjE152PZHGMukbcB6BAPij0uqgtl0bXCBvyjeFPcS2wEWc0y0ec++Ywnf7rwbyc8grQ6RY8Y9RhhJT+Jde4TmghzFuR08bo4ryDEpE/N58QUYsx+kFPcD4yzCkMsZz+1uwkyu0HeKYYiCLHcN2I2QWYnSPudbHubfy37NuFu4wQZeZD2k2Uw4hDLHRZdBBnnH3K/5ykcX86IeQQZl6civ0XXYv/RlhJkHLZkOMTypz7dBKnbyzmJsfTZeTdB6vRszmIsjXI5QeryWMa/M9ZinzjdTJA63CLGcxzjpD/ElQQZfq3iKDFe8lSHIAPqI8L/6SHIMB4nvorTQQsI0v+teoz4KjpBkH7tIrqaNhCkH9cnbK5C8q/uywiSHzKabCLIdM3K+QR4o8YysfVWcZDvElnD1hNkOi5XuilLu5MlOyzni3vESnGfWCRuIMjm1zgSWPM7GWvNXdonXkdM8Q0dCwmytu8Iy/vK9B3iRoJMnghnqifc8jb7yXkXQf5nLWGo2WR2HUGuLrxPDKq25D6d9yBPE4I6/e6rVO6CnMpkuFq/eLmFKwtyMRde/dOg2XkKkvlH/X5P9ZNSWZBvcMGjMJza6iJlQe7nYkfjozwE+TkXOiprsx7kES5yVOzLYK/IcpA/cJGj806Wg/yaCxzlzsersxpkPxc4SruzGuQBLm603yU7DPOQUOSJWIK0E6j2lcvPm+JJVp+674oDbiFuv5t/fEXs5cJG65DmIO3KY3vG3yCLbXO1N1xVkB3uWfQQFye3rtUS5DN1bC5C9j0cOki7XOwUFwJOb6gg7TmCW1lMizI7QwQ5nW2qqGCv7yDtwsxfGXhU0OczyKvECIOOKvb5CnKa2+TDoKOat3wFyaIH1ONFH0H2MNCo00NpBzmXR39owIy0gzzOIKNOv6X9LHsZg4wGp3xsM/ZMoUfF3aaZ4++qBDnIIKMNzrsHKb11Lb6oEORtDCRSYB81f+vWxzYUJBv2kTYb5vx6gzzHgMHTjsUXagV5BwMFzz78d5NYQpDbGCAEcOzissaEIL9kcBDIx0lBsrwMIW0uD3KcQUHgqaEFpUGyLQGhnSgNkgGBBg8QJDQ5Phkky82g5bvkNQXDscDQY6MNcpiBgBL9NsjDDAS0LPq1Qb7EQECJicLFSUkGAkpMLgMaYzCgKci3GQxomPqZDPImBgMa9uOULifnDWcI7VRpkIsYEAR2sHwX2GcMCgJak/QKPh4lIsgcpOhM2iv7JIODAPqqvY7vPQYInlf6zKsWpN2iOMBAwZMD9bzSudPwvh+kr3gofJ0vve/ikxIp36pXNHosiD2j5gMGD2ksyG3lJK917qc5A4l2eNW04Wi5OaZ41DADilZu0xtMmw/fXCV+ZnDRoFFTfBdpaudlLxVfsXMRNYy7W3SH8XSAu/01bo8s/kL8xQWAM+JC7DIeDnCvZqZ4RGxxi3/3iUPOJ+5TtRXfG/v6jeadNMVjlqsZquG0uwU164ybg2vFuPuh2ax23tkm3N91VLwmbjVNvPT+H7Ro4730ITNPAAAAAElFTkSuQmCC");
}
body.natasun-login-effects .natasun-cloud.background {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAqCAYAAAAUJM0rAAACFUlEQVRo3u3aPSwDYRzH8UZEbAYiYrDYjLZGpIPBJLGwSKwi0k1iYBKDdFJsEiMxSZgsFZJGiGjqJWEhSKuaNKRUG8r5PfI8SXOud72+PH2eu2f47Ndv7+V5/nee/G6bh5MWmIV9iEMWvkGjfiADD7AHk9BU6+PSNK0kPAINwwXkC6KU6gvC4HVyKB/clhHHCDnbTqHbSaEaYIv+OK3KyBk274RQrXBXg0B6B/QPkTIUiZTiEIm5gkbZQjXTJ5nG2ZFsocJ1iMQEZQk1VcdIGl2L9Yoeitwj3uocirgRPVRAgEjMoMihkgKFStIzK063QVHYhKF6h/IKFMlKGpaNlhM8Qq1JFIp5gQHeoSIShmJPST/PUElJQ7FN9hivUGmJQxE56OQRKiN5qL/NNY9QKQeEIpdgR7VC9cEqHeGeUyEHXHrMUiWhyKx6BV4dEsNMtNxQI4Ls33h5LidUoEYjXKEXoXZDLbgsEBOzE8qne8fmJhE7oWIujUQcwhyMmy0VSKRRF0cyWlclYMYo1LEKZOgRugpDpVWUot5ZLI8LlwN23bNQKoY1vwpVmmsS6kOFsPRJQl2qENZIqGkVwnp9xb5nUksEcxm2hZlQMcy3OYXTgx0VpOi2pl8/jwqpMP9sF5twBl08ctE7I/dws5l5D5y4OBj51HvdzluYdlik0RL06cjkKpSlB1Span5x/AQb5Hfrxyy/oU5ISeVw53AAAAAASUVORK5CYII=");
  height: 9%;
  min-height: 8px;
  animation-duration: 210s;
}
body.natasun-login-effects .natasun-cloud.foreground { height: 10%; min-height: 20px; z-index: 0; }
@keyframes natasunFloat {
  from { transform: translateX(100%) translateZ(0); }
  to { transform: translateX(-15%) translateZ(0); }
}
@keyframes natasunFadeFloat {
  0%,100% { opacity: 0; }
  5%,90% { opacity: 1; }
}
body.natasun-login-effects .natasun-cloud:nth-child(1){animation-delay:-18s; top:6%}
body.natasun-login-effects .natasun-cloud:nth-child(2){animation-delay:-37s; top:12%}
body.natasun-login-effects .natasun-cloud:nth-child(3){animation-delay:-55s; top:18%}
body.natasun-login-effects .natasun-cloud:nth-child(4){animation-delay:-74s; top:24%}
body.natasun-login-effects .natasun-cloud:nth-child(5){animation-delay:-92s; top:30%}
body.natasun-login-effects .natasun-cloud:nth-child(6){animation-delay:-111s; top:36%}
body.natasun-login-effects .natasun-cloud:nth-child(7){animation-delay:-129s; top:42%}
body.natasun-login-effects .natasun-cloud:nth-child(8){animation-delay:-148s; top:48%}
body.natasun-login-effects .natasun-cloud:nth-child(9){animation-delay:-166s; top:54%}
body.natasun-login-effects .natasun-cloud:nth-child(10){animation-delay:-184s; top:60%}
body.natasun-login-effects .natasun-cloud.foreground:nth-child(odd){height:18%}
body.natasun-login-effects .natasun-cloud.foreground:nth-child(even){height:24%}
body.natasun-login-effects .natasun-cloud.background:nth-child(odd){height:7%}
body.natasun-login-effects .natasun-cloud.background:nth-child(even){height:5%}

.natasun-staff-login-btn { margin-top: 8px; }
body.natasun-login-effects .natasun-staff-login-btn.btn,
body.natasun-login-effects .btn.loginasadmin {
  color: #fff;
  background-color: #000;
  border-color: #444;
}
body.natasun-login-effects .natasun-staff-login-btn.btn:hover,
body.natasun-login-effects .btn.loginasadmin:hover {
  color: #fff;
  background-color: #535353;
  border-color: #444;
}

/* RTL horizontal tabs fix (client/admin) - core/theme disable scrollable tabs in RTL */
html[dir="rtl"] .horizontal-scrollable-tabs,
body.rtl .horizontal-scrollable-tabs,
html[dir="rtl"] .panel-full-width-tabs,
body.rtl .panel-full-width-tabs,
html[dir="rtl"] .natasun-rtl-tabs-enabled,
body.rtl .natasun-rtl-tabs-enabled {
  position: relative;
  background: transparent !important;
}

/* Match even when core removes .horizontal-scrollable-tabs / .nav-tabs-horizontal in RTL (runs on full load) */
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal,
body.rtl .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal,
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs,
body.rtl .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs ul.customer-profile-tabs,
body.rtl .panel-full-width-tabs .horizontal-tabs ul.customer-profile-tabs,
html[dir="rtl"] .horizontal-tabs ul.customer-profile-tabs,
body.rtl .horizontal-tabs ul.customer-profile-tabs,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs ul.customer-profile-tabs,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs ul.customer-profile-tabs,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs .nav-tabs-horizontal,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs .nav-tabs-horizontal {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  justify-content: flex-start !important; /* in RTL this aligns to the right/start edge */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 !important;
  margin-bottom: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  direction: rtl !important;
  min-height: 0 !important;
}
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal::-webkit-scrollbar,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal::-webkit-scrollbar,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal::-webkit-scrollbar,
body.rtl .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal::-webkit-scrollbar,
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar,
body.rtl .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar,
html[dir="rtl"] .horizontal-tabs ul.customer-profile-tabs::-webkit-scrollbar,
body.rtl .horizontal-tabs ul.customer-profile-tabs::-webkit-scrollbar,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal > li,
body.rtl .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal > li,
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs > li,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs ul.nav.nav-tabs > li,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs > li,
body.rtl .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs > li,
html[dir="rtl"] .horizontal-tabs ul.customer-profile-tabs > li,
body.rtl .horizontal-tabs ul.customer-profile-tabs > li,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs > li,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs > li {
  float: none !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  display: block;
  direction: rtl;
  background: transparent !important;
  margin-bottom: 0 !important;
}
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li > a,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li > a,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal > li > a,
body.rtl .panel-full-width-tabs .horizontal-tabs .nav-tabs-horizontal > li > a,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs > li > a,
body.rtl .panel-full-width-tabs .horizontal-tabs ul.nav.nav-tabs > li > a,
html[dir="rtl"] .horizontal-tabs ul.customer-profile-tabs > li > a,
body.rtl .horizontal-tabs ul.customer-profile-tabs > li > a,
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs > li > a,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs ul.nav.nav-tabs > li > a {
  white-space: nowrap !important;
  direction: rtl;
}

/* Active module RTL tabs: keep row sizing stable beside scrollers without clipping content */
html[dir="rtl"] .natasun-rtl-tabs-enabled .horizontal-tabs,
body.rtl .natasun-rtl-tabs-enabled .horizontal-tabs,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs,
body.rtl .panel-full-width-tabs .horizontal-tabs,
html[dir="rtl"] .horizontal-scrollable-tabs .horizontal-tabs,
body.rtl .horizontal-scrollable-tabs .horizontal-tabs {
  overflow: hidden !important;
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[dir="rtl"] .natasun-rtl-tabs-enabled .scroller,
body.rtl .natasun-rtl-tabs-enabled .scroller,
html[dir="rtl"] .panel-full-width-tabs .scroller,
body.rtl .panel-full-width-tabs .scroller {
  user-select: none;
  cursor: pointer;
  z-index: 6;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[dir="rtl"] .natasun-rtl-tabs-enabled .scroller.disabled,
body.rtl .natasun-rtl-tabs-enabled .scroller.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* keep arrows vertically aligned in full-width panel tabs */
html[dir="rtl"] .panel-full-width-tabs.natasun-rtl-tabs-enabled .scroller,
body.rtl .panel-full-width-tabs.natasun-rtl-tabs-enabled .scroller,
html[dir="rtl"] .panel-full-width-tabs .scroller,
body.rtl .panel-full-width-tabs .scroller {
  line-height: 1.2;
  background: transparent !important;
}
/* avoid extra horizontal offsets in RTL panel-full-width tabs/nav */
html[dir="rtl"] .panel-full-width-tabs .nav,
body.rtl .panel-full-width-tabs .nav,
html[dir="rtl"] .natasun-rtl-tabs-enabled .nav,
body.rtl .natasun-rtl-tabs-enabled .nav,
html[dir="rtl"] .panel-full-width-tabs .horizontal-tabs,
body.rtl .panel-full-width-tabs .horizontal-tabs {
  padding-right: 0 !important;
  padding-left: 0 !important;
  background: transparent !important;
}

/* RTL: setup menu submenu padding flip */
html[dir="rtl"] #setup-menu li .nav-second-level li a,
body.rtl #setup-menu li .nav-second-level li a {
  padding-right: 24px !important;
  padding-left: 10px !important;
}

/* RTL: Tailwind space-x utilities (common compiled variants missing reverse in markup)
   Important: core compiled utilities often come later in cascade; !important ensures RTL reversal wins. */
html[dir="rtl"] .tw-space-x-0 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-0 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-0\.5 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-0\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-1 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-1 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-1\.5 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-2 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-2\.5 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-3 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-4 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-5 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
html[dir="rtl"] .tw-space-x-6 > :not([hidden]) ~ :not([hidden]), body.rtl .tw-space-x-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
@media (min-width: 640px) {
  html[dir="rtl"] .sm\:tw-space-x-1 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-1 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .sm\:tw-space-x-1\.5 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .sm\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .sm\:tw-space-x-2\.5 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .sm\:tw-space-x-3 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .sm\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]), body.rtl .sm\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
}
@media (min-width: 768px) {
  html[dir="rtl"] .md\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]), body.rtl .md\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .md\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]), body.rtl .md\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
}
@media (min-width: 1024px) {
  html[dir="rtl"] .lg\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]), body.rtl .lg\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
  html[dir="rtl"] .lg\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]), body.rtl .lg\:tw-space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }
}
/* negative space-x used by avatar stacks etc */
html[dir="rtl"] .-tw-space-x-1 > :not([hidden]) ~ :not([hidden]), body.rtl .-tw-space-x-1 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1 !important; }

/* RTL: physical margin utilities commonly used in core views */
html[dir="rtl"] .tw-ml-0, body.rtl .tw-ml-0 { margin-left: 0 !important; margin-right: 0 !important; }
html[dir="rtl"] .tw-ml-1, body.rtl .tw-ml-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .tw-ml-1\.5, body.rtl .tw-ml-1\.5 { margin-left: 0 !important; margin-right: 0.375rem !important; }
html[dir="rtl"] .tw-ml-2, body.rtl .tw-ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="rtl"] .tw-ml-3, body.rtl .tw-ml-3 { margin-left: 0 !important; margin-right: 0.75rem !important; }
html[dir="rtl"] .tw-ml-4, body.rtl .tw-ml-4 { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] .tw-ml-5, body.rtl .tw-ml-5 { margin-left: 0 !important; margin-right: 1.25rem !important; }
html[dir="rtl"] .tw-mr-0, body.rtl .tw-mr-0 { margin-right: 0 !important; margin-left: 0 !important; }
html[dir="rtl"] .tw-mr-1, body.rtl .tw-mr-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .tw-mr-1\.5, body.rtl .tw-mr-1\.5 { margin-right: 0 !important; margin-left: 0.375rem !important; }
html[dir="rtl"] .tw-mr-2, body.rtl .tw-mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .tw-mr-3, body.rtl .tw-mr-3 { margin-right: 0 !important; margin-left: 0.75rem !important; }
html[dir="rtl"] .tw-mr-4, body.rtl .tw-mr-4 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .tw-mr-5, body.rtl .tw-mr-5 { margin-right: 0 !important; margin-left: 1.25rem !important; }
html[dir="rtl"] .sm\:tw-ml-2, body.rtl .sm\:tw-ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="rtl"] .sm\:tw-mr-2, body.rtl .sm\:tw-mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }

/* RTL: gaps for table/action icon clusters that have no utility spacing */
html[dir="rtl"] table td .row-options > a + a,
html[dir="rtl"] table td .row-options > a + span,
html[dir="rtl"] table td .row-options > span + a,
body.rtl table td .row-options > a + a,
body.rtl table td .row-options > a + span,
body.rtl table td .row-options > span + a { margin-right: 6px; margin-left: 0; }
html[dir="rtl"] table td a + .btn, html[dir="rtl"] table td .btn + a, html[dir="rtl"] table td .btn + .btn,
body.rtl table td a + .btn, body.rtl table td .btn + a, body.rtl table td .btn + .btn { margin-right: 4px; margin-left: 0; }
html[dir="rtl"] .todo-date, body.rtl .todo-date { display: inline-block; margin-top: 2px; }
html[dir="rtl"] .list-status h3, body.rtl .list-status h3 { line-height: 1.4; }

/* RTL: modules upload/install inline form spacing */
html[dir="rtl"] #module_install_form .tw-inline-flex > .btn,
body.rtl #module_install_form .tw-inline-flex > .btn { margin-right: 0.5rem !important; margin-left: 0 !important; }



/* RTL float alerts / toasts (alert_float) */
html[dir="rtl"] .float-alert,
body.rtl .float-alert {
  right: auto !important;
  left: 20px !important;
  direction: rtl;
  text-align: right;
  padding: 15px 15px 15px 42px !important;
}
html[dir="rtl"] .float-alert .close,
body.rtl .float-alert .close {
  float: none !important;
  position: absolute !important;
  left: 10px !important;
  right: auto !important;
  top: 10px !important;
  margin: 0 !important;
  line-height: 1;
}
html[dir="rtl"] .float-alert [data-notify="icon"],
body.rtl .float-alert [data-notify="icon"] {
  display: inline-block;
  margin-left: 6px;
  margin-right: 0;
  vertical-align: middle;
}
html[dir="rtl"] .float-alert .alert-title,
body.rtl .float-alert .alert-title {
  display: inline;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* Toastr (if used by theme/plugins) */
html[dir="rtl"] #toast-container > div,
body.rtl #toast-container > div {
  direction: rtl;
  text-align: right;
  padding: 15px 50px 15px 15px !important;
  background-position: calc(100% - 15px) center;
}
html[dir="rtl"] #toast-container .toast-close-button,
body.rtl #toast-container .toast-close-button {
  right: auto !important;
  left: -0.3em !important;
  float: left !important;
}
