/* BeCRM fixed logo sizing */

img[src*="becrm-logo"] {
    width: 11.5rem !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 2.25rem !important;
    object-fit: contain !important;
    display: block !important;
}

/* Auth pages: always light shell + inputs (login, password reset, tenant registration). */
html[color-theme='light'] .auth-shell,
html[color-theme='light'] .auth-card {
  background-color: rgb(250 250 250) !important;
  color: rgb(23 23 23) !important;
}

html[color-theme='light'] .auth-card {
  background-color: rgb(255 255 255) !important;
}

html[color-theme='light'] .auth-shell input:not([type='color']):not([type='checkbox']):not([type='radio']),
html[color-theme='light'] .auth-card input:not([type='color']):not([type='checkbox']):not([type='radio']),
html[color-theme='light'] .auth-shell textarea,
html[color-theme='light'] .auth-card textarea,
html[color-theme='light'] .auth-shell select,
html[color-theme='light'] .auth-card select {
  background-color: rgb(255 255 255) !important;
  color: rgb(23 23 23) !important;
  border-color: rgb(212 212 212) !important;
}

html[color-theme='light'] .auth-shell label,
html[color-theme='light'] .auth-card label,
html[color-theme='light'] .auth-shell .text-neutral-600,
html[color-theme='light'] .auth-card .text-neutral-600 {
  color: rgb(82 82 82) !important;
}

.becrm-auth-logo-img,
.becrm-logo-img--desktop,
[dir="rtl"] .becrm-logo-img--desktop {
    width: min(100%, 18rem) !important;
    max-height: 2.25rem !important;
}

/* SaaS sidebar: hide legacy JS dropdown, duplicate chevrons, submenu RTL */
#sidebar-lg .sidebar-dropdown-wrapper,
#sidebar-sm .sidebar-dropdown-wrapper {
  display: none !important;
}

#sidebar-lg button.sidebar-lg-item-saas > span.ml-auto,
#sidebar-sm button.sidebar-sm-item-saas > span.ml-auto,
#sidebar-lg a.sidebar-lg-item-saas > span.ml-auto,
#sidebar-sm a.sidebar-sm-item-saas > span.ml-auto {
  display: none !important;
}

html.hebrewortl-rtl #sidebar-lg .sidebar-submenu-children,
html.hebrewortl-rtl #sidebar-sm .sidebar-submenu-children,
html[dir="rtl"] #sidebar-lg .sidebar-submenu-children,
html[dir="rtl"] #sidebar-sm .sidebar-submenu-children {
  margin-left: 0 !important;
  margin-right: 1.5rem !important;
  padding-left: 0 !important;
  padding-right: 0.5rem !important;
  border-left-width: 0 !important;
  border-right-width: 1px !important;
  border-right-style: solid !important;
  border-right-color: rgb(64 64 64) !important;
}

#sidebar-lg button.sidebar-lg-item-saas.font-semibold,
#sidebar-sm button.sidebar-sm-item-saas.font-semibold,
#sidebar-lg button.sidebar-lg-item-saas.bg-white\/10,
#sidebar-sm button.sidebar-sm-item-saas.bg-white\/10,
#sidebar-lg a.sidebar-lg-item-saas.font-semibold,
#sidebar-sm a.sidebar-sm-item-saas.font-semibold,
#sidebar-lg a.sidebar-lg-item-saas.bg-white\/10,
#sidebar-sm a.sidebar-sm-item-saas.bg-white\/10 {
  font-weight: 600 !important;
}
