/* ==========================================================================
   GEBEZY OUTER ADMIN SHELL — CANONICAL REFERENCE V1
   File: public/assets/css/gebezy-dark-reference.css

   Responsibility:
   - Sidebar / brand / menu / mobile app card
   - Outer top navigation geometry
   - Content iframe, footer and toolbar offsets

   This file replaces all historical V7/V9/V10/V11/V20 blocks.
   Do not append another "final override" block below this file.
   ========================================================================== */

:root {
  --gz-shell-bg: #07111d;
  --gz-shell-bg-2: #091522;
  --gz-shell-panel: #0f1c2b;
  --gz-shell-panel-2: #132235;
  --gz-shell-border: #26384b;
  --gz-shell-border-soft: rgba(148, 163, 184, .14);
  --gz-shell-gold: #e2aa3c;
  --gz-shell-gold-hi: #f1c363;
  --gz-shell-gold-soft: rgba(226, 170, 60, .15);
  --gz-shell-text: #f5f7fb;
  --gz-shell-muted: #94a3b8;
  --gz-shell-danger: #ef6b63;
  --gz-shell-success: #31c48d;

  --gz-sidebar-width: 260px;
  --gz-sidebar-collapsed-width: 64px;
  --gz-header-height: 58px;
  --gz-brand-height: 84px;
  --gz-footer-height: 38px;
}

/* ---------- Shell geometry ---------- */
html,
body.g9s-outer-theme {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--gz-shell-bg) !important;
  color: var(--gz-shell-text);
}

body.g9s-outer-theme .wrapper {
  width: 100% !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--gz-shell-bg) !important;
}

/* ---------- Sidebar ---------- */
body.g9s-outer-theme .main-sidebar,
body.g9s-outer-theme .left-side {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1040 !important;
  display: flex !important;
  flex-direction: column !important;
  width: var(--gz-sidebar-width) !important;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(460px 260px at -15% -12%, rgba(226, 170, 60, .09), transparent 62%),
    linear-gradient(180deg, #0a1624 0%, #08131f 100%) !important;
  border-right: 1px solid var(--gz-shell-border) !important;
  box-shadow: 10px 0 28px rgba(0, 0, 0, .14) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
}

/* ---------- Brand ---------- */
body.g9s-outer-theme .g9s-sidebar-brand {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 var(--gz-brand-height) !important;
  width: 100% !important;
  height: var(--gz-brand-height) !important;
  min-height: var(--gz-brand-height) !important;
  margin: 0 !important;
  padding: 0 18px !important;
  background: rgba(6, 14, 24, .76) !important;
  border-bottom: 0 !important;
}

body.g9s-outer-theme .g9s-sidebar-brand-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  color: var(--gz-shell-text) !important;
  text-decoration: none !important;
}

body.g9s-outer-theme .g9s-sidebar-brand-logo {
  display: block !important;
  flex: 0 0 176px !important;
  width: 176px !important;
  height: 52px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: drop-shadow(0 6px 12px rgba(226, 170, 60, .18));
}

/* ---------- Sidebar search ---------- */
body.g9s-outer-theme .sidebar-form {
  position: relative !important;
  flex: 0 0 auto !important;
  margin: 14px 15px 10px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
}

body.g9s-outer-theme .sidebar-form .input-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 40px !important;
  overflow: hidden !important;
  background: rgba(17, 30, 45, .92) !important;
  border: 1px solid #2a3a4b !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .sidebar-form:focus-within .input-group {
  border-color: var(--gz-shell-gold) !important;
  box-shadow: 0 0 0 2px rgba(226, 170, 60, .12) !important;
}

body.g9s-outer-theme .sidebar-form .form-control {
  flex: 1 1 auto !important;
  width: 1% !important;
  height: 38px !important;
  padding: 0 12px !important;
  color: var(--gz-shell-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 38px !important;
}

body.g9s-outer-theme .sidebar-form .form-control::placeholder {
  color: #718096 !important;
}

body.g9s-outer-theme .sidebar-form .input-group-btn {
  display: block !important;
  flex: 0 0 38px !important;
  width: 38px !important;
}

body.g9s-outer-theme .sidebar-form .btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  color: var(--gz-shell-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .sidebar-form .menuresult {
  width: 100% !important;
  margin-top: 6px !important;
  background: var(--gz-shell-panel) !important;
  border: 1px solid var(--gz-shell-border) !important;
  border-radius: 9px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35) !important;
}

/* ---------- Menu scroll area ---------- */
body.g9s-outer-theme .sidebar {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 10px 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.g9s-outer-theme .sidebar::-webkit-scrollbar {
  width: 5px;
}

body.g9s-outer-theme .sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .2);
  border-radius: 99px;
}

body.g9s-outer-theme .sidebar-menu {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.g9s-outer-theme .sidebar-menu > li {
  margin: 2px 0 !important;
  padding: 0 !important;
}

body.g9s-outer-theme .sidebar-menu > li > a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 13px !important;
  color: #e5ebf3 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  transition: background .16s ease, color .16s ease !important;
  letter-spacing: 0 !important;
}

body.g9s-outer-theme .sidebar-menu > li > a > .fa,
body.g9s-outer-theme .sidebar-menu > li > a > .glyphicon,
body.g9s-outer-theme .sidebar-menu > li > a > .ion {
  flex: 0 0 18px !important;
  width: 18px !important;
  margin: 0 !important;
  color: #bac6d3 !important;
  font-size: 15px !important;
  text-align: center !important;
}

body.g9s-outer-theme .sidebar-menu > li > a:hover {
  color: var(--gz-shell-text) !important;
  background: rgba(255, 255, 255, .055) !important;
}

body.g9s-outer-theme .sidebar-menu > li.active > a,
body.g9s-outer-theme .sidebar-menu > li.menu-open > a {
  color: var(--gz-shell-gold-hi) !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .sidebar-menu > li.active > a > .fa,
body.g9s-outer-theme .sidebar-menu > li.menu-open > a > .fa,
body.g9s-outer-theme .sidebar-menu > li.active > a > .glyphicon,
body.g9s-outer-theme .sidebar-menu > li.menu-open > a > .glyphicon,
body.g9s-outer-theme .sidebar-menu > li.active > a > .ion,
body.g9s-outer-theme .sidebar-menu > li.menu-open > a > .ion {
  color: var(--gz-shell-gold) !important;
}

body.g9s-outer-theme .sidebar-menu > li > a > .pull-right-container {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

body.g9s-outer-theme .sidebar-menu .treeview-menu {
  margin: 0 !important;
  padding: 3px 0 5px !important;
  background: transparent !important;
}

body.g9s-outer-theme .sidebar-menu .treeview-menu > li > a {
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 0 12px 0 42px !important;
  color: #aeb9c7 !important;
  background: transparent !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.g9s-outer-theme .sidebar-menu .treeview-menu > li > a:hover {
  color: #e5ebf3 !important;
  background: rgba(255, 255, 255, .030) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

body.g9s-outer-theme .sidebar-menu .treeview-menu > li.active > a {
  color: var(--gz-shell-gold-hi) !important;
  background: rgba(255, 255, 255, .045) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* GEBEZY_SIDEBAR_READABILITY_V2_SUBMENU_ICON */
body.g9s-outer-theme .sidebar-menu .treeview-menu > li > a > .fa,
body.g9s-outer-theme .sidebar-menu .treeview-menu > li > a > .glyphicon,
body.g9s-outer-theme .sidebar-menu .treeview-menu > li > a > .ion {
  flex: 0 0 12px !important;
  width: 12px !important;
  margin: 0 7px 0 0 !important;
  color: #8291a4 !important;
  font-size: 6px !important;
  text-align: center !important;
}

body.g9s-outer-theme .sidebar-menu .treeview-menu > li.active > a > .fa,
body.g9s-outer-theme .sidebar-menu .treeview-menu > li.active > a > .glyphicon,
body.g9s-outer-theme .sidebar-menu .treeview-menu > li.active > a > .ion {
  color: var(--gz-shell-gold) !important;
}

/* ---------- Mobile app card ---------- */
body.g9s-outer-theme .g9s-mobile-app-card {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  min-height: 154px !important;
  margin: 8px 15px 16px !important;
  padding: 15px !important;
  overflow: hidden !important;
  background: linear-gradient(150deg, #101f30, #0d1927) !important;
  border: 1px solid var(--gz-shell-border) !important;
  border-radius: 11px !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18) !important;
}

body.g9s-outer-theme .g9s-mobile-app-copy {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  max-width: 62% !important;
}

body.g9s-outer-theme .g9s-mobile-app-kicker {
  display: block !important;
  margin-bottom: 1px !important;
  color: var(--gz-shell-text) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body.g9s-outer-theme .g9s-mobile-app-copy strong {
  display: block !important;
  margin-bottom: 7px !important;
  color: var(--gz-shell-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.g9s-outer-theme .g9s-mobile-app-copy small {
  display: block !important;
  margin-bottom: 13px !important;
  color: var(--gz-shell-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.55 !important;
}

body.g9s-outer-theme .g9s-mobile-app-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 29px !important;
  padding: 0 12px !important;
  color: #0b1524 !important;
  background: linear-gradient(145deg, var(--gz-shell-gold-hi), var(--gz-shell-gold)) !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.g9s-outer-theme .g9s-mobile-phone {
  position: absolute !important;
  right: -5px !important;
  bottom: -9px !important;
  width: 74px !important;
  height: 132px !important;
  border: 2px solid #66788d !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, #0b1522, #13263a) !important;
  box-shadow: -8px 10px 22px rgba(0, 0, 0, .45) !important;
  transform: rotate(7deg) !important;
}

body.g9s-outer-theme .g9s-mobile-phone::before {
  content: "" !important;
  position: absolute !important;
  inset: 6px !important;
  border-radius: 9px !important;
  background:
    linear-gradient(180deg, rgba(226, 170, 60, .15), transparent 34%),
    repeating-linear-gradient(180deg, transparent 0 15px, rgba(148, 163, 184, .10) 15px 16px) !important;
}

body.g9s-outer-theme .g9s-mobile-phone-speaker {
  position: absolute !important;
  top: 4px !important;
  left: 50% !important;
  z-index: 2 !important;
  width: 20px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: #67788c !important;
  transform: translateX(-50%) !important;
}

body.g9s-outer-theme .g9s-mobile-phone-chart {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  z-index: 2 !important;
  height: 2px !important;
  background: var(--gz-shell-gold) !important;
  transform-origin: left center !important;
}

body.g9s-outer-theme .g9s-chart-one {
  top: 44px !important;
  transform: rotate(-11deg) !important;
}

body.g9s-outer-theme .g9s-chart-two {
  top: 68px !important;
  transform: rotate(7deg) !important;
}

body.g9s-outer-theme .g9s-chart-three {
  top: 92px !important;
  transform: rotate(-4deg) !important;
}

/* ---------- Header ---------- */
body.g9s-outer-theme #header,
body.g9s-outer-theme .main-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important;
  height: var(--gz-header-height) !important;
  min-height: var(--gz-header-height) !important;
  background: transparent !important;
}

body.g9s-outer-theme .main-header .navbar {
  height: var(--gz-header-height) !important;
  min-height: var(--gz-header-height) !important;
  margin: 0 0 0 var(--gz-sidebar-width) !important;
  background: rgba(8, 18, 30, .96) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gz-shell-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .main-header #firstnav {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: var(--gz-header-height) !important;
  min-height: var(--gz-header-height) !important;
  background: transparent !important;
  border: 0 !important;
}

body.g9s-outer-theme .main-header .sidebar-toggle {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  height: var(--gz-header-height) !important;
  padding: 0 !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  font-family: FontAwesome !important;
  font-size: 0 !important;
  line-height: var(--gz-header-height) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

body.g9s-outer-theme .main-header .sidebar-toggle::before {
  content: "\f0c9" !important;
  display: block !important;
  color: inherit !important;
  font-family: FontAwesome !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
}

body.g9s-outer-theme .main-header .sidebar-toggle:hover,
body.g9s-outer-theme .main-header .sidebar-toggle:focus {
  color: var(--gz-shell-gold-hi) !important;
  background: rgba(255, 255, 255, .04) !important;
  outline: none !important;
}

body.g9s-outer-theme .g9s-context {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 38% !important;
  height: var(--gz-header-height) !important;
  margin: 0 auto 0 0 !important;
  padding: 0 12px !important;
  overflow: hidden !important;
}

body.g9s-outer-theme .g9s-context-label {
  color: #748397 !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
}

body.g9s-outer-theme .g9s-context-value {
  overflow: hidden !important;
  color: var(--gz-shell-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.g9s-outer-theme .navbar-custom-menu {
  position: static !important;
  flex: 0 0 auto !important;
  height: var(--gz-header-height) !important;
  margin-left: auto !important;
}

body.g9s-outer-theme .navbar-custom-menu > .navbar-nav {
  display: flex !important;
  align-items: center !important;
  height: var(--gz-header-height) !important;
  margin: 0 !important;
}

body.g9s-outer-theme .navbar-custom-menu > .navbar-nav > li {
  float: none !important;
  height: var(--gz-header-height) !important;
}

body.g9s-outer-theme .navbar-custom-menu > .navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--gz-header-height) !important;
  padding: 0 12px !important;
  color: #aeb9c8 !important;
  background: transparent !important;
}

body.g9s-outer-theme .navbar-custom-menu > .navbar-nav > li > a:hover,
body.g9s-outer-theme .navbar-custom-menu > .navbar-nav > li > a:focus,
body.g9s-outer-theme .navbar-custom-menu > .navbar-nav > .open > a {
  color: var(--gz-shell-gold-hi) !important;
  background: rgba(255, 255, 255, .045) !important;
}

body.g9s-outer-theme #btn-choose-warehouse {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  height: 34px !important;
  margin: 12px 4px 0 0 !important;
  padding: 0 12px !important;
  color: var(--gz-shell-text) !important;
  background: rgba(15, 28, 43, .88) !important;
  border: 1px solid var(--gz-shell-border) !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}

body.g9s-outer-theme #btn-choose-warehouse:hover {
  border-color: var(--gz-shell-gold) !important;
}

body.g9s-outer-theme #btn-choose-warehouse #wh-current {
  max-width: 190px !important;
  overflow: hidden !important;
  font-size: 11.5px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.g9s-outer-theme .g9s-notification-dot {
  position: absolute !important;
  top: 15px !important;
  right: 9px !important;
  width: 6px !important;
  height: 6px !important;
  background: var(--gz-shell-gold) !important;
  border: 1px solid var(--gz-shell-bg) !important;
  border-radius: 50% !important;
}

body.g9s-outer-theme .navbar-nav > .user-menu > a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 118px !important;
  padding: 0 15px 0 11px !important;
}

body.g9s-outer-theme .navbar-nav > .user-menu .user-image {
  float: none !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  object-fit: cover !important;
  border: 1px solid rgba(226, 170, 60, .32) !important;
  border-radius: 50% !important;
}

body.g9s-outer-theme .g9s-user-summary {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.g9s-outer-theme .g9s-user-name {
  color: var(--gz-shell-text) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body.g9s-outer-theme .g9s-user-role {
  color: #7f8da0 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
}

/* ---------- Content, footer and toolbar ---------- */
body.g9s-outer-theme .content-wrapper,
body.g9s-outer-theme .right-side,
body.g9s-outer-theme .content-wrapper.tab-content,
body.g9s-outer-theme .content-wrapper.tab-addtabs {
  position: fixed !important;
  top: var(--gz-header-height) !important;
  right: 0 !important;
  bottom: var(--gz-footer-height) !important;
  left: var(--gz-sidebar-width) !important;
  z-index: 800 !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--gz-shell-bg) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .content-wrapper .tab-pane {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--gz-shell-bg) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.g9s-outer-theme .content-wrapper .tab-pane > iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--gz-shell-bg) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  vertical-align: top !important;
}

body.g9s-outer-theme .main-footer {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: var(--gz-sidebar-width) !important;
  z-index: 910 !important;
  display: block !important;
  width: auto !important;
  height: var(--gz-footer-height) !important;
  min-height: var(--gz-footer-height) !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: #77869a !important;
  background: #08131f !important;
  border: 0 !important;
  border-top: 1px solid var(--gz-shell-border-soft) !important;
}

body.g9s-outer-theme .main-footer .footer-center {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  color: inherit !important;
  background: transparent !important;
  font-size: 9.5px !important;
  letter-spacing: .35px !important;
}

body.g9s-outer-theme .main-footer a {
  color: var(--gz-shell-gold) !important;
}

body.g9s-outer-theme .custom-toolbar-wrapper {
  left: var(--gz-sidebar-width) !important;
  bottom: var(--gz-footer-height) !important;
}

/* ---------- Desktop slide sidebar ---------- */
@media (min-width: 768px) {
  body.g9s-outer-theme .main-sidebar,
  body.g9s-outer-theme .left-side {
    width: var(--gz-sidebar-width) !important;
    margin-left: 0 !important;
    transform: none !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme .main-header .navbar {
    margin-left: var(--gz-sidebar-width) !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme .content-wrapper,
  body.g9s-outer-theme .right-side,
  body.g9s-outer-theme .content-wrapper.tab-content,
  body.g9s-outer-theme .content-wrapper.tab-addtabs {
    left: 0 !important;
    margin-left: var(--gz-sidebar-width) !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme .main-footer {
    left: 0 !important;
    margin-left: var(--gz-sidebar-width) !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme .custom-toolbar-wrapper {
    left: 0 !important;
    margin-left: var(--gz-sidebar-width) !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme.sidebar-collapse .main-sidebar,
  body.g9s-outer-theme.sidebar-collapse .left-side {
    width: var(--gz-sidebar-width) !important;
    margin-left: calc(-1 * var(--gz-sidebar-width)) !important;
    transform: none !important;
  }

  body.g9s-outer-theme.sidebar-collapse .main-header .navbar {
    margin-left: 0 !important;
  }

  body.g9s-outer-theme.sidebar-collapse .content-wrapper,
  body.g9s-outer-theme.sidebar-collapse .right-side,
  body.g9s-outer-theme.sidebar-collapse .content-wrapper.tab-content,
  body.g9s-outer-theme.sidebar-collapse .content-wrapper.tab-addtabs {
    left: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme.sidebar-collapse .main-footer {
    left: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme.sidebar-collapse .custom-toolbar-wrapper {
    left: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* ---------- Small screens push layout ---------- */
@media (max-width: 767px) {
  body.g9s-outer-theme .main-sidebar,
  body.g9s-outer-theme .left-side {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1040 !important;
    width: var(--gz-sidebar-width) !important;
    margin-left: calc(-1 * var(--gz-sidebar-width)) !important;
    transform: none !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme.sidebar-open .main-sidebar,
  body.g9s-outer-theme.sidebar-open .left-side {
    margin-left: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme #header,
  body.g9s-outer-theme .main-header,
  body.g9s-outer-theme .main-header .navbar,
  body.g9s-outer-theme .navbar-static-top,
  body.g9s-outer-theme .content-wrapper,
  body.g9s-outer-theme .right-side,
  body.g9s-outer-theme .content-wrapper.tab-content,
  body.g9s-outer-theme .content-wrapper.tab-addtabs,
  body.g9s-outer-theme .main-footer,
  body.g9s-outer-theme .custom-toolbar-wrapper,
  body.g9s-outer-theme.sidebar-collapse #header,
  body.g9s-outer-theme.sidebar-collapse .main-header,
  body.g9s-outer-theme.sidebar-collapse .main-header .navbar,
  body.g9s-outer-theme.sidebar-collapse .navbar-static-top,
  body.g9s-outer-theme.sidebar-collapse .content-wrapper,
  body.g9s-outer-theme.sidebar-collapse .right-side,
  body.g9s-outer-theme.sidebar-collapse .content-wrapper.tab-content,
  body.g9s-outer-theme.sidebar-collapse .content-wrapper.tab-addtabs,
  body.g9s-outer-theme.sidebar-collapse .main-footer,
  body.g9s-outer-theme.sidebar-collapse .custom-toolbar-wrapper {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    transition: margin-left .22s ease !important;
  }

  body.g9s-outer-theme.sidebar-open #header,
  body.g9s-outer-theme.sidebar-open .main-header,
  body.g9s-outer-theme.sidebar-open .content-wrapper,
  body.g9s-outer-theme.sidebar-open .right-side,
  body.g9s-outer-theme.sidebar-open .content-wrapper.tab-content,
  body.g9s-outer-theme.sidebar-open .content-wrapper.tab-addtabs,
  body.g9s-outer-theme.sidebar-open .main-footer,
  body.g9s-outer-theme.sidebar-open .custom-toolbar-wrapper {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: var(--gz-sidebar-width) !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme.sidebar-open .main-header .navbar,
  body.g9s-outer-theme.sidebar-open .navbar-static-top {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme.sidebar-open .main-header .sidebar-toggle {
    position: relative !important;
    left: 0 !important;
    z-index: 1060 !important;
  }

  body.g9s-outer-theme .content-wrapper .tab-pane,
  body.g9s-outer-theme .content-wrapper.tab-content .tab-pane,
  body.g9s-outer-theme .content-wrapper.tab-addtabs .tab-pane,
  body.g9s-outer-theme .content-wrapper .tab-pane > iframe,
  body.g9s-outer-theme .content-wrapper.tab-content .tab-pane > iframe,
  body.g9s-outer-theme .content-wrapper.tab-addtabs .tab-pane > iframe {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  body.g9s-outer-theme .custom-toolbar-wrapper {
    bottom: 0 !important;
  }

  body.g9s-outer-theme .g9s-context {
    display: none !important;
  }
}
