/* v464 — kanoniczny wyglad glownego menu administratora/zarzadcy.
   Ten plik jest jedynym stylem dla glownych kafli lewego menu.
   Cel: biale kafle, czarny tekst, niebieska ramka i jedna warstwa niebieskich ikon.
   Nie dokladac kolejnych nakladek CSS na sidebar bez usuniecia konfliktu u zrodla. */
:root{
  --wp-sidebar-blue:#1f2937;
  --wp-sidebar-blue-soft:#eef2f7;
  --wp-sidebar-blue-bg:#f6faff;
  --wp-sidebar-text:#111827;
  --wp-sidebar-muted:#64748b;
  --wp-sidebar-border:#1f2937;
  --wp-sidebar-radius:18px;
}

/* Bazowy panel boczny — dotyczy wspolnego base.html dla ADMIN/MANAGER. */
.app-shell-unified-v211.app-shell-manager .sidebar.sidebar-main-canonical-v459,
.app-shell-unified-v211.theme-manager .sidebar.sidebar-main-canonical-v459{
  background:#fff!important;
  border-right:1px solid #eef2f7!important;
  box-shadow:8px 0 28px rgba(15,23,42,.06)!important;
  padding:20px 16px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}

.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 *,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 *{
  box-sizing:border-box!important;
}

/* Naglowek — bez ucinania Wspolnota Plus. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand-block,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand-block{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
  width:100%!important;
  margin:0 0 18px!important;
  padding:0 2px 16px!important;
  border-bottom:1px solid #edf2f7!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand-mark,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand-mark{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #eef2f7!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand-mark img,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand-mark img{
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand-copy,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand-copy{
  min-width:0!important;
  flex:1 1 auto!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand{
  color:var(--wp-sidebar-text)!important;
  font-size:22px!important;
  line-height:1.08!important;
  font-weight:950!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .brand-subtitle,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .brand-subtitle{
  color:var(--wp-sidebar-muted)!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Reset konfliktow: details/summary potrafia generowac czarne markery obok naszych ikon. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 details,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 details{
  display:block!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 summary,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 summary{
  list-style:none!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 summary::-webkit-details-marker,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 summary::-webkit-details-marker,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 summary::marker,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 summary::marker{
  display:none!important;
  content:""!important;
  font-size:0!important;
}

/* Sekcje glowne. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section{
  margin:10px 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-summary,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-summary{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  min-height:39px!important;
  padding:7px 12px!important;
  margin:0!important;
  border:1px solid var(--wp-sidebar-border)!important;
  border-radius:var(--wp-sidebar-radius)!important;
  background:#fff!important;
  color:var(--wp-sidebar-text)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  cursor:pointer!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:900!important;
  text-transform:none!important;
  letter-spacing:0!important;
  overflow:visible!important;
  white-space:normal!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-summary span,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-summary span{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  color:var(--wp-sidebar-text)!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  line-height:1.2!important;
}

/* Ikony menu sa dostarczane przez sidebar-icons-v545.css. Tu zostaje tylko stabilny slot. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home::before,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home::before,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-summary::before,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-summary::before{
  content:""!important;
  display:block!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  flex:0 0 22px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  opacity:1!important;
}

/* Jedyna strzalka akordeonu — bez tekstowego czarnego znaku. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-summary::after,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-summary::after{
  content:""!important;
  width:9px!important;
  height:9px!important;
  min-width:9px!important;
  margin-left:auto!important;
  border-right:2px solid var(--wp-sidebar-blue)!important;
  border-bottom:2px solid var(--wp-sidebar-blue)!important;
  transform:rotate(-45deg)!important;
  transform-origin:center!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section[open] .nav-section-summary::after,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section[open] .nav-section-summary::after{
  transform:rotate(45deg)!important;
}

.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home:hover,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home:hover,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home.active-link,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .sidebar-direct-link--home.active-link,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-summary:hover,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-summary:hover,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section[open] .nav-section-summary,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section[open] .nav-section-summary{
  background:var(--wp-sidebar-blue-bg)!important;
  color:var(--wp-sidebar-text)!important;
  border-color:var(--wp-sidebar-blue)!important;
  box-shadow:0 0 0 1px rgba(31, 41, 55,.12)!important;
  transform:none!important;
}

/* Podmenu zostawione funkcjonalnie, tylko bez nachodzenia i kolorowych konfliktow. */
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-links,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-links{
  display:block!important;
  background:#fff!important;
  border:1px solid var(--wp-sidebar-blue-soft)!important;
  border-top:0!important;
  border-radius:0 0 16px 16px!important;
  margin:-2px 8px 10px!important;
  padding:10px 8px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section:not([open]) .nav-section-links,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section:not([open]) .nav-section-links{
  display:none!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-links a,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-links a{
  display:block!important;
  color:#111827!important;
  background:transparent!important;
  border:0!important;
  border-left:0!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
  padding:9px 10px!important;
  margin:2px 0!important;
  box-shadow:none!important;
  text-decoration:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-links a:hover,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-links a:hover,
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .nav-section-links a.active-link,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .nav-section-links a.active-link{
  background:#eef2f7!important;
  color:var(--wp-sidebar-blue)!important;
}

.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .logout-form,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .logout-form{
  margin-top:22px!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .logout-form button,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .logout-form button{
  width:100%!important;
  min-height:46px!important;
  justify-content:center!important;
  border:1px solid #eef2f7!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#111827!important;
  font-weight:900!important;
  box-shadow:none!important;
}
.app-shell-unified-v211.app-shell-manager .sidebar-main-canonical-v459 .logout-form button:hover,
.app-shell-unified-v211.theme-manager .sidebar-main-canonical-v459 .logout-form button:hover{
  border-color:var(--wp-sidebar-blue)!important;
  color:var(--wp-sidebar-blue)!important;
  background:#f6faff!important;
}

@media(max-width:992px){
  .app-shell-unified-v211.app-shell-manager .sidebar.sidebar-main-canonical-v459,
  .app-shell-unified-v211.theme-manager .sidebar.sidebar-main-canonical-v459{
    max-width:86vw!important;
  }
}
