/* Shared workspace controls. Keep plugin layout and visibility behavior intact. */
html { height: 100%; }
body#page-top { height: 100%; overflow: hidden; background: #f3f5fa; color: #243149; }
#wrapper { height: 100vh; height: 100dvh; overflow: hidden; }
#content-wrapper {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #f3f5fa !important;
  scrollbar-gutter: stable;
}
#content { min-height: calc(100vh - 5rem); padding-bottom: 24px; }
#content > .topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  margin-bottom: 1.5rem !important;
}
#content > .container-fluid { padding-inline: clamp(16px, 2.3vw, 36px); }
#accordionSidebar { background: #111e38 !important; box-shadow: 6px 0 24px #111e3810; }
#accordionSidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #536786 transparent;
  scrollbar-width: thin;
}
#accordionSidebar::-webkit-scrollbar { width: 7px; }
#accordionSidebar::-webkit-scrollbar-track { background: transparent; }
#accordionSidebar::-webkit-scrollbar-thumb { background: #536786; border: 2px solid #111e38; border-radius: 999px; }
#accordionSidebar::-webkit-scrollbar-thumb:hover { background: #7185a5; }
#accordionSidebar .sidebar-brand { min-height: 84px; border-bottom: 1px solid #ffffff12; }
#accordionSidebar .sidebar-brand {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #111e38;
}
#accordionSidebar .nav-item { margin: 3px 10px; }
#accordionSidebar .nav-item > .nav-link { width: auto; border-radius: 10px; padding: 13px 14px; color: #c8d3e7; transition: background .15s, color .15s; }
#accordionSidebar .nav-item > .nav-link:hover { background: #ffffff0d; color: white; }
#accordionSidebar .nav-item.active > .nav-link { background: #3158d4; color: #fff; box-shadow: 0 4px 12px #0002; }
#accordionSidebar .nav-link i { color: inherit; opacity: .85; }
#accordionSidebar .collapse-inner { background: #ffffff08 !important; border: 1px solid #ffffff10; padding: 6px !important; }
#accordionSidebar .admin-nav-group > .nav-link { border: 1px solid transparent; }
#accordionSidebar .admin-nav-group.is-open > .nav-link {
  color: #fff;
  background: #ffffff0d;
  border-color: #ffffff12;
}
#accordionSidebar .admin-nav-group > .collapse { margin: 4px 7px 8px !important; }
#accordionSidebar .admin-nav-group > .collapse.show { animation: admin-submenu-open .16s ease-out both; }
#accordionSidebar .admin-nav-group .collapse-inner {
  padding: 6px !important;
  background: #08152c99 !important;
  border: 1px solid #ffffff12;
  border-radius: 10px !important;
  box-shadow: inset 0 1px #ffffff08;
}
#accordionSidebar .collapse-item {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: 2px 0 !important;
  padding: 9px 10px 9px 13px !important;
  color: #aebdd5 !important;
  border: 1px solid transparent;
  border-radius: 7px !important;
  white-space: normal;
  transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
#accordionSidebar .collapse-item:hover {
  color: #fff !important;
  background: #ffffff0d !important;
  border-color: #ffffff10;
  transform: translateX(2px);
}
#accordionSidebar .collapse-item.active {
  color: #fff !important;
  background: linear-gradient(100deg, #3158d4, #3f6bea) !important;
  border-color: #7391ef;
  box-shadow: 0 5px 14px #08142f66;
  font-weight: 750;
}
#accordionSidebar .collapse-item.active::before {
  content: "";
  flex: 0 0 3px;
  align-self: stretch;
  min-height: 18px;
  margin: 1px 2px 1px -7px;
  background: #9fc2ff;
  border-radius: 999px;
}
#accordionSidebar .collapse-item.active i { color: #fff !important; opacity: .92; }

#accordionSidebar .admin-currency-selector {
  width: auto !important;
  margin: 10px 10px 18px;
  padding-top: 10px;
  border-top: 1px solid #ffffff12;
}

#accordionSidebar .admin-currency-selector > .nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100% !important;
  min-height: 46px;
  padding: 11px 13px;
  color: #d8e2f2;
  background: #ffffff08;
  border: 1px solid #ffffff12;
  border-radius: 10px;
}

#accordionSidebar .admin-currency-selector > .nav-link:hover,
#accordionSidebar .admin-currency-selector.show > .nav-link,
#accordionSidebar .admin-currency-selector.open > .nav-link {
  color: #fff;
  background: #ffffff0f;
  border-color: #ffffff22;
}

#accordionSidebar .admin-currency-selector > .nav-link > i {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  place-items: center;
  color: #9fc2ff;
  background: #3158d433;
  border-radius: 8px;
}

#accordionSidebar .admin-currency-selector > .nav-link::after {
  margin-left: auto;
  color: #91a3c2;
}

#accordionSidebar .admin-currency-selector > .admin-currency-menu {
  position: static !important;
  float: none;
  width: 100%;
  min-width: 0;
  max-height: 14rem;
  margin: 5px 0 0 !important;
  padding: 6px !important;
  overflow-y: auto;
  background: #08152ccc !important;
  border: 1px solid #ffffff14 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px #ffffff08 !important;
}

#accordionSidebar .admin-currency-menu > li { margin: 2px 0; }

#accordionSidebar .admin-currency-item {
  min-height: 36px;
  padding: 8px 10px !important;
  color: #aebdd5 !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 7px !important;
}

#accordionSidebar .admin-currency-item:hover,
#accordionSidebar .admin-currency-item:focus {
  color: #fff !important;
  background: #ffffff0d !important;
  border-color: #ffffff10;
}

#accordionSidebar .admin-currency-item.active {
  color: #fff !important;
  background: linear-gradient(100deg, #3158d4, #3f6bea) !important;
  border-color: #7391ef;
  box-shadow: 0 5px 14px #08142f66;
}

#accordionSidebar .admin-currency-tick {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  color: #173b85;
  background: #dce9ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
@keyframes admin-submenu-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
  #accordionSidebar:not(.toggled) {
    flex: 0 0 15rem;
    width: 15rem !important;
  }

  #accordionSidebar:not(.toggled) .nav-item > .nav-link {
    width: auto !important;
  }
}
.admin-nav-section { padding: 20px 24px 6px; font-size: .65rem; font-weight: 800; letter-spacing: .12em; color: #91a3c2; text-transform: uppercase; }
.topbar { border-bottom: 1px solid #e2e7f0; box-shadow: 0 2px 8px #1f365008 !important; gap: 12px; }
.admin-workspace-title { font-weight: 800; color: #223452; font-size: .95rem; }
.admin-locale-control { max-width: 145px; }
#content .card, #content .panel { border: 1px solid #e0e6ef; border-radius: 14px; box-shadow: 0 4px 18px #24395806 !important; }
#content .card-header, #content .panel-heading { background: #fff; border-bottom: 1px solid #e7ebf2; padding: 18px 22px; border-radius: 14px 14px 0 0; }
#content .card-body, #content .panel-body { padding: 22px; }
#content .form-group { margin-bottom: 20px; }
#content label.control-label, #content .form-group > label { color: #34425a; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
#page-top .form-control, #page-top .custom-select, #page-top .bootstrap-select > .dropdown-toggle { min-height: 42px; border: 1px solid #ced7e5; border-radius: 8px; color: #26364f; background-color: #fff; box-shadow: 0 1px 2px #192d4c04; }
#page-top textarea.form-control { min-height: 108px; }
#page-top .form-control:focus, #page-top .custom-select:focus { border-color: #5377e1; box-shadow: 0 0 0 3px #3158d421; }
#page-top .form-control:disabled { background: #edf0f5; color: #6b7890; }
#page-top .btn { border-radius: 8px; font-weight: 700; line-height: 1.4; padding: 10px 16px; transition: background .15s, box-shadow .15s; }
#page-top .btn-sm, #page-top .btn-xs { padding: 7px 11px; font-size: .78rem; }
#page-top .btn-primary { background: #3158d4; border-color: #3158d4; box-shadow: 0 3px 6px #3158d41a; }
#page-top .btn-primary:hover { background: #2445b4; border-color: #2445b4; }
#page-top .btn-default, #page-top .btn-light { background: #fff; border: 1px solid #d5ddeb; color: #34435d; }
#page-top .btn-default:hover, #page-top .btn-light:hover { background: #eef2f9; }
#page-top :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #638bf0; outline-offset: 3px; }
#page-top .dropdown-menu { border: 1px solid #dde4ef; border-radius: 12px; padding: 7px; box-shadow: 0 12px 36px #172d4d24; }
#page-top .dropdown-item { padding: 10px 12px; border-radius: 6px; }
#page-top .dropdown-item:hover, #page-top .dropdown-item:focus { background: #edf2fd; color: #2445b4; }
#page-top .table thead th { background: #f6f8fc; color: #647189; font-size: .72rem; letter-spacing: .025em; padding-block: 14px; border-bottom: 1px solid #dfe6f1; }
#page-top .table td { vertical-align: middle; padding-block: 14px; border-color: #edf0f6; }
#page-top .table tbody tr:hover { background: #f8faff; }
#page-top .nav-tabs { gap: 5px; border-color: #e0e6ef; }
#page-top .nav-tabs .nav-link { padding: 12px 16px; border-radius: 8px 8px 0 0; }
#page-top .nav-tabs .nav-link.active { color: #3158d4; font-weight: 800; border-bottom: 3px solid #3158d4; }
#page-top .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 80px #10244240; }
#page-top .modal-header, #page-top .modal-footer { padding: 18px 24px; border-color: #e8edf4; }
#page-top .modal-body { padding: 24px; }
.admin-language-intro { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin-bottom: 20px; background: #eef3ff; border: 1px solid #dbe5fc; border-radius: 10px; }
.admin-language-intro span { background: white; border: 1px solid #dbe5fc; border-radius: 6px; padding: 6px 12px; font-size: .8rem; }
html[dir=rtl] body { text-align: right; }
html[dir=rtl] .sidebar .nav-item .nav-link { text-align: right; }
html[dir=rtl] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir=rtl] .dropdown-menu-right { right: auto; left: 0; }
html[dir=rtl] .sidebar .nav-item .collapse { text-align: right; }
@media (max-width: 767px) { .admin-nav-section { padding-inline: 14px; } .admin-workspace-title { display: none; } #content .card-body { padding: 16px; } .topbar { gap: 6px; } #page-top .topbar .btn { padding: 8px; } #accordionSidebar { position: fixed; height: auto; min-height: 0; scrollbar-gutter: auto; } #content-wrapper { scrollbar-gutter: auto; } }
@media (prefers-reduced-motion: reduce) { #page-top .btn, #accordionSidebar .nav-link { transition: none; } }
