/* Persian desktop shell: sidebar on the physical right, content on the left. */
@media (min-width:761px){
 html[dir=rtl] .company-shell.admin-shell{
  grid-template-columns:270px minmax(0,1fr)!important;
 }
 html[dir=rtl] .company-shell>.admin-sidebar{
  grid-column:1!important;
  grid-row:1!important;
  border-left:1px solid #204a78!important;
  border-right:0!important;
  direction:rtl;
 }
 html[dir=rtl] .company-shell>.admin-main{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  direction:rtl;
 }
 html[dir=rtl] .company-shell.sidebar-collapsed.admin-shell{
  grid-template-columns:78px minmax(0,1fr)!important;
 }
 html[dir=rtl] .company-shell .workspace-utility{
  right:auto!important;
  left:24px!important;
  z-index:50!important;
  direction:ltr;
  flex-wrap:nowrap!important;
 }
 html[dir=rtl] .company-shell .workspace-language,
 html[dir=rtl] .company-shell .workspace-notifications,
 html[dir=rtl] .company-shell .site-theme-toggle{
  direction:rtl;
 }
 html[dir=rtl] .company-shell .notification-popover{
  right:auto!important;
  left:0!important;
  direction:rtl;
 }
 html[dir=rtl] .company-shell .premium-page-heading{
  padding-right:0!important;
  padding-left:220px!important;
 }
 html[dir=rtl] .module-employees .hr-filter-bar.hr-directory-filters{
  margin-right:0!important;
  margin-left:160px!important;
 }
}

/* Keep Persian employee identity columns on the right and actions on the left. */
html[dir=rtl] .module-employees .hr-table,
html[data-theme=light][dir=rtl] .module-employees .hr-table,
html[dir=rtl] .module-employees .hr-table table,
html[data-theme=light][dir=rtl] .module-employees .hr-table table{
 direction:rtl!important;
 text-align:right!important;
}
html[dir=rtl] .module-employees .employee-directory-table th:last-child,
html[dir=rtl] .module-employees .employee-directory-table td:last-child{
 right:auto!important;
 left:0!important;
}
html[dir=rtl] .module-employees .employee-directory-table th:last-child{
 text-align:right!important;
}
html[dir=rtl] .module-employees .hr-row-actions{
 justify-content:flex-end!important;
}

@media (max-width:760px){
 html[dir=rtl] .company-shell .workspace-utility{
  right:auto!important;
  left:14px!important;
 }
 html[dir=rtl] .company-shell .notification-popover{
  right:12px!important;
  left:12px!important;
 }
}

html[data-theme=light][dir=rtl] .company-shell>.admin-sidebar{
 border-left-color:#e3e9f1!important;
}

.company-shell .workspace-utility .site-theme-toggle{
 min-width:42px!important;
 width:42px!important;
 padding:0!important;
}
.company-shell .workspace-utility .site-theme-toggle .theme-moon{
 display:block!important;
}
