/* Netak Plus bilingual layout — direction-only overrides.
   Preserve the original responsive layout; change only physical left/right placement. */
.np-language-switch{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:38px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:11px;
 background:#fff;color:#2457a7;text-decoration:none;font-size:12px;font-weight:800;
 white-space:nowrap;transition:.15s
}
.np-language-switch:hover{background:#f3f7ff;color:#1748a0;border-color:#cbdaf8}

/* Admin desktop: sidebar is fixed to the left; content reserves the same width. */
@media (min-width:951px){
 html[dir="ltr"] body .app-shell{direction:ltr!important}
 html[dir="ltr"] body .app-shell>.sidebar{
  left:0!important;right:auto!important;inset:0 auto 0 0!important;
  border-left:0!important;border-right:1px solid #e6ebf2!important
 }
 html[dir="ltr"] body .app-shell>.main-area{
  margin-left:256px!important;margin-right:0!important;
  width:calc(100% - 256px)!important;max-width:calc(100% - 256px)!important
 }
}
@media (max-width:950px) and (min-width:681px){
 html[dir="ltr"] body .app-shell{direction:ltr!important}
 html[dir="ltr"] body .app-shell>.sidebar{
  left:0!important;right:auto!important;inset:0 auto 0 0!important;
  width:218px!important;border-left:0!important;border-right:1px solid #e6ebf2!important
 }
 html[dir="ltr"] body .app-shell>.main-area{
  margin-left:218px!important;margin-right:0!important;
  width:calc(100% - 218px)!important;max-width:calc(100% - 218px)!important
 }
}

/* Mobile keeps the existing fixed bottom navigation and single-column canvas. */
@media (max-width:680px){
 html[dir="ltr"] body .app-shell{direction:ltr!important;display:block!important}
 html[dir="ltr"] body .app-shell>.sidebar{
  left:0!important;right:0!important;inset:auto 0 0 0!important;
  width:100%!important;max-width:none!important;border:0!important;border-top:1px solid #e3eaf4!important
 }
 html[dir="ltr"] body .app-shell>.main-area{
  width:100%!important;max-width:100%!important;margin:0!important
 }
 html[dir="ltr"] body .app-shell>.sidebar>nav{direction:ltr!important}
}

/* Shared directional alignment. Avoid changing grid/flex display or component sizing. */
html[dir="ltr"] body .topbar,
html[dir="ltr"] body .top-actions,
html[dir="ltr"] body .brand,
html[dir="ltr"] body .user-chip,
html[dir="ltr"] body .sidebar-bottom,
html[dir="ltr"] body .panel-head,
html[dir="ltr"] body .toolbar{direction:ltr}
html[dir="ltr"] body .nav-link{
 text-align:left;border-right:0!important;border-left:3px solid transparent!important
}
html[dir="ltr"] body .nav-link.active{border-left-color:#2563eb!important}
html[dir="ltr"] body .page-content,
html[dir="ltr"] body .panel,
html[dir="ltr"] body .form-wrap,
html[dir="ltr"] body .record-form{ text-align:left }
html[dir="ltr"] body .form-actions{justify-content:flex-start}
html[dir="ltr"] body .logout{text-align:left}

/* Client portal: preserve its existing desktop/mobile geometry. */
html[dir="ltr"] body .client-app-shell{direction:ltr!important}
html[dir="ltr"] body .client-sidebar{
 border-left:0!important;border-right:1px solid rgba(255,255,255,.12)!important
}
html[dir="ltr"] body .client-sidebar .client-quicknav a{
 border-right:0!important;border-left:3px solid transparent!important;text-align:left!important
}
html[dir="ltr"] body .client-sidebar .client-quicknav a.active,
html[dir="ltr"] body .client-sidebar .client-quicknav a:hover{border-left-color:#20b9ad!important}
html[dir="ltr"] body .client-main-area,
html[dir="ltr"] body .client-main-area .client-wrap{direction:ltr;text-align:left}
html[dir="ltr"] body .client-admin-topbar,
html[dir="ltr"] body .client-topbar-title,
html[dir="ltr"] body .client-topbar-actions,
html[dir="ltr"] body .client-brand,
html[dir="ltr"] body .client-hero-banner{direction:ltr;text-align:left}
html[dir="ltr"] body .client-event{border-right:0!important;border-left:3px solid #19a798!important}
html[dir="ltr"] body .client-side-bottom{direction:ltr}
@media(max-width:680px){
 html[dir="ltr"] body .client-app-shell{display:block!important}
 html[dir="ltr"] body .client-sidebar{
  left:0!important;right:0!important;inset:auto 0 0 0!important;
  width:100%!important;max-width:none!important
 }
 html[dir="ltr"] body .client-main-area{width:100%!important;max-width:100%!important;margin:0!important}
 html[dir="ltr"] body .client-sidebar .client-quicknav{direction:ltr!important}
}

/* v2 hard override: the legacy RTL stylesheet has later !important rules that
   reserve the sidebar on the RIGHT. In English reserve it on the LEFT instead. */
@media (min-width:951px){
 html[dir="ltr"] body .app-shell > main.main-area{
  display:flex!important;flex-direction:column!important;
  margin-right:0!important;margin-left:252px!important;
  width:calc(100% - 252px)!important;max-width:calc(100% - 252px)!important;
  min-width:0!important;position:relative!important;left:auto!important;right:auto!important;
 }
 html[dir="ltr"] body .app-shell > aside.sidebar{
  position:fixed!important;left:0!important;right:auto!important;
  width:252px!important;min-width:252px!important;max-width:252px!important;
 }
}
@media (min-width:681px) and (max-width:950px){
 html[dir="ltr"] body .app-shell > main.main-area{
  margin-right:0!important;margin-left:218px!important;
  width:calc(100% - 218px)!important;max-width:calc(100% - 218px)!important;min-width:0!important;
 }
 html[dir="ltr"] body .app-shell > aside.sidebar{
  position:fixed!important;left:0!important;right:auto!important;width:218px!important;
 }
}
@media (min-width:681px){
 html[dir="ltr"] body .app-shell,
 html[dir="ltr"] body .main-area,
 html[dir="ltr"] body .page-content,
 html[dir="ltr"] body .stats-grid,
 html[dir="ltr"] body .content-grid,
 html[dir="ltr"] body .dashboard-bottom,
 html[dir="ltr"] body .dashboard-lists{direction:ltr!important}
}
