/* Retter-Portal v1.3.40
   Doppeltes Markenlogo in der eingeklappten Sidebar entfernt und
   Whitemode-Kontraste ohne Geometrie- oder Typografieänderungen nachgeschärft. */

/* --------------------------------------------------------------------------
   SIDEBAR-LOGO: Unabhängig von alten Regeln ist immer exakt ein Logo sichtbar.
   -------------------------------------------------------------------------- */
html body .sidebar .brand-logo.logo-light,
html body.sidebar-collapsed .sidebar .brand-logo.logo-light{
  display:none!important;
}
html body .sidebar .brand-logo.logo-dark,
html body.sidebar-collapsed .sidebar .brand-logo.logo-dark{
  display:block!important;
}

html body[data-theme="light"] .sidebar .brand-logo.logo-light,
html body[data-theme="light"].sidebar-collapsed .sidebar .brand-logo.logo-light{
  display:block!important;
}
html body[data-theme="light"] .sidebar .brand-logo.logo-dark,
html body[data-theme="light"].sidebar-collapsed .sidebar .brand-logo.logo-dark{
  display:none!important;
}

html body[data-theme="dark"] .sidebar .brand-logo.logo-light,
html body[data-theme="dark"].sidebar-collapsed .sidebar .brand-logo.logo-light{
  display:none!important;
}
html body[data-theme="dark"] .sidebar .brand-logo.logo-dark,
html body[data-theme="dark"].sidebar-collapsed .sidebar .brand-logo.logo-dark{
  display:block!important;
}

@media(min-width:1101px){
  html body.sidebar-collapsed .sidebar .brand-logo-wrap{
    position:relative!important;
    overflow:hidden!important;
  }
  html body.sidebar-collapsed .sidebar .brand-logo{
    position:static!important;
    inset:auto!important;
    margin:0!important;
  }
}

/* --------------------------------------------------------------------------
   WHITEMODE: Kontrast verbessern, Größen und Abstände bewusst unverändert.
   -------------------------------------------------------------------------- */
html body[data-theme="light"]{
  --rp40-text:#111c2f;
  --rp40-text-soft:#2f4158;
  --rp40-muted:#4b5f78;
  --rp40-muted-strong:#344960;
  --rp40-placeholder:#5b6e84;
  --rp40-border:rgba(51,65,85,.23);
  --rp40-border-soft:rgba(51,65,85,.15);
  --rp40-surface:#ffffff;
  --rp40-surface-soft:#f5f8fc;
}

html body[data-theme="light"] .main,
html body[data-theme="light"] .content{
  color:var(--rp40-text)!important;
}

html body[data-theme="light"] .content :is(h1,h2,h3,h4,h5,h6,strong,b,legend){
  color:var(--rp40-text)!important;
}
html body[data-theme="light"] .content :is(p,li,dd,dt,figcaption){
  color:var(--rp40-text-soft)!important;
}
html body[data-theme="light"] .content :is(.muted,.subtle,.help-text,.form-hint,.field-hint,.empty,small){
  color:var(--rp40-muted)!important;
  opacity:1!important;
}

html body[data-theme="light"] .content label,
html body[data-theme="light"] .content .smart-select-field label,
html body[data-theme="light"] .content .rights-assign-form label,
html body[data-theme="light"] .content .rights-department-switch label,
html body[data-theme="light"] .content .toolbar label,
html body[data-theme="light"] .content .form-grid label{
  color:var(--rp40-muted-strong)!important;
  opacity:1!important;
  text-shadow:none!important;
}

html body[data-theme="light"] .content :is(input,select,textarea){
  color:var(--rp40-text)!important;
  background:linear-gradient(180deg,var(--rp40-surface),var(--rp40-surface-soft))!important;
  border-color:var(--rp40-border)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95)!important;
}
html body[data-theme="light"] .content :is(input,textarea)::placeholder{
  color:var(--rp40-placeholder)!important;
  opacity:1!important;
}
html body[data-theme="light"] .content :is(input,select,textarea):disabled{
  color:#52657d!important;
  background:#e9eef5!important;
  opacity:1!important;
}
html body[data-theme="light"] .content select option,
html body[data-theme="light"] .content select optgroup{
  color:#111c2f!important;
  background:#ffffff!important;
}

html body[data-theme="light"] .content table thead th{
  color:#3a4d65!important;
}
html body[data-theme="light"] .content table tbody td{
  color:#24364d!important;
}
html body[data-theme="light"] .content :is(.pill,.status,.role){
  color:#2e4259!important;
  border-color:var(--rp40-border-soft)!important;
}

html body[data-theme="light"] .content .btn:not(.primary):not(.danger){
  color:#17253a!important;
  border-color:var(--rp40-border)!important;
}
html body[data-theme="light"] .content a:not(.btn){
  color:#9f1239!important;
}

html body[data-theme="light"] .content :is(input,select,textarea):focus{
  border-color:rgba(190,18,60,.58)!important;
  box-shadow:0 0 0 3px rgba(225,29,72,.11),inset 0 1px 0 #fff!important;
}

/* Sidebar-Kontrast im hellen Modus leicht anheben, Geometrie bleibt identisch. */
html body[data-theme="light"] .sidebar .brand-text{
  color:#172033!important;
}
html body[data-theme="light"] .sidebar .brand-context,
html body[data-theme="light"] .sidebar .brand-text small,
html body[data-theme="light"] .sidebar .nav-section{
  color:#53657b!important;
}
html body[data-theme="light"] .sidebar nav a.sidebar-nav-link{
  color:#263a52!important;
}
html body[data-theme="light"] .sidebar nav a.sidebar-nav-link:hover{
  color:#0f1d31!important;
}
html body[data-theme="light"] .sidebar nav a.sidebar-nav-link.active{
  color:#9f1239!important;
}
html body[data-theme="light"] .sidebar .sidebar-nav-icon{
  color:#52677f!important;
}
html body[data-theme="light"] .sidebar nav a.sidebar-nav-link.active .sidebar-nav-icon{
  color:#e11d48!important;
}
