/* Wali branding shared by the ERP shell, sign-in and TestSys.
   The vendor stylesheet and customer-selected themes remain independent. */
:root { --body-color: var(--gray-900); }
:root:not([data-color]), :root[data-color="primary"] {
  --primary: #072F62;
  --primary-rgb: 7, 47, 98;
  --primary-hover: #05244B;
  --primary-200: #E8EEF5;
  --primary-300: #CFDBEA;
  --primary-500: #6186AE;
  --primary-600: #315E88;
  --primary-700: #072F62;
  --primary-transparent: rgba(7, 47, 98, .08);
  --bs-primary: #072F62;
  --bs-primary-rgb: 7, 47, 98;
}
.wali-logo-full { width: 180px; height: auto !important; max-width: 100%; object-fit: contain; }
.sidebar .sidebar-logo .wali-logo-full,
.header .header-left .wali-logo-full { width: 160px; }
.wali-logo-icon { width: 36px; height: auto !important; object-fit: contain; }

/* Company identity heads the navigation; Wali branding stays below its scroll area. */
#sidebar-two [data-sidebar-scroll] {
  top: 0;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}
#sidebar-two .sidebar-company { min-height: 56px; }
#sidebar-two .sidebar-company > a:first-child { color: var(--gray-900); }
#sidebar-two .sidebar-logo .wali-logo-full { width: 100px; }
#sidebar-two .sidebar-logo .wali-logo-icon { width: 24px; }
@media (min-width: 992px) {
  .mini-sidebar:not(.expand-menu) #sidebar-two .sidebar-company > a:first-child { display: none; }
  .mini-sidebar:not(.expand-menu) #sidebar-two .sidebar-company { justify-content: center; }
  [data-bs-theme="dark"] .mini-sidebar:not(.expand-menu) #sidebar-two .sidebar-logo .logo-small { display: none; }
  [data-bs-theme="dark"] .mini-sidebar:not(.expand-menu) #sidebar-two .sidebar-logo .dark-small { display: block; }
}
