/* CRM overrides — Cork chrome without customizer / language */
.theme-customizer,
.btn-theme-customizer,
.tc-settings,
[data-bs-target='#themeCustomizer'],
.header-item.language-dropdown,
li.language-dropdown,
.h-item.language-dropdown {
  display: none !important;
}

/* Wordmark «ПОД КЛЮЧ» only (как в admin), без emblem + текста */
.header-container .header .theme-brand .theme-text,
#sidebar .theme-brand .theme-text {
  display: none !important;
}

.header-container .header .theme-logo img.navbar-logo-pk,
.header-container .header .theme-logo img.navbar-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  /* тёмный header → светлый логотип */
  filter: brightness(0) invert(1);
}

.header-container .header .theme-brand {
  min-width: 160px;
}

#sidebar .theme-brand .nav-logo {
  flex: 1 1 auto;
  min-width: 0;
}

#sidebar .theme-brand .theme-logo img.navbar-logo-pk,
#sidebar .theme-brand .theme-logo img.navbar-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}

body.dark #sidebar .theme-brand .theme-logo img.navbar-logo-pk,
body.dark #sidebar .theme-brand .theme-logo img.navbar-logo {
  filter: brightness(0) invert(1);
}

#root {
  min-height: 100%;
}

a.cork-router-link {
  text-decoration: none;
}

/* Profile sidebar поверх оверлея */
.profile-sidebar {
  z-index: 1035;
}
.psidebar-overlay.show {
  z-index: 1030;
}

/*
  Cork dark: utilities keyed off .dark (any ancestor).
  MUI раньше ставил class="dark" на <html> → серый текст на светлых карточках.
  Пока body без .dark — форсим светлые цвета поверх dark: утилит.
*/
body:not(.dark) .text-success\:900 {
  color: var(--success_900) !important;
}
body:not(.dark) .text-success\:1000 {
  color: var(--success_1000) !important;
}
body:not(.dark) .text-secondary\:900 {
  color: var(--secondary_900) !important;
}
body:not(.dark) .text-secondary\:1000 {
  color: var(--secondary_1000) !important;
}
body:not(.dark) .text-warning\:900 {
  color: var(--warning_900) !important;
}
body:not(.dark) .text-warning\:1000 {
  color: var(--warning_1000) !important;
}
body:not(.dark) .text-danger\:900 {
  color: var(--danger_900) !important;
}
body:not(.dark) .text-danger\:1000 {
  color: var(--danger_1000) !important;
}
body:not(.dark) .text-dark\:800 {
  color: var(--dark_800) !important;
}
body:not(.dark) .text-dark\:600 {
  color: var(--dark_600) !important;
}
body:not(.dark) .text-dark\:500 {
  color: var(--dark_500) !important;
}
