/* CALENDAR ICON STATUS FILTERS HOTFIX */

/* ukrycie tekstów w kratkach — zostaje numer + ikona */
.av-day{
  min-width:0!important;
  overflow:hidden!important;
  position:relative!important;
  padding:6px!important;
  min-height:42px!important;
}

.av-day b{
  display:block!important;
  font-size:14px!important;
  line-height:1!important;
  position:relative!important;
  z-index:2!important;
}

.av-day small,
.av-day em,
.av-day i{
  display:none!important;
}

/* ikony statusów w kratce */
.av-day::after{
  content:"●";
  position:absolute;
  right:5px;
  bottom:4px;
  font-size:12px;
  line-height:1;
  font-weight:900;
}

.av-day.available::after{color:#16a34a}
.av-day.pending::after{color:#2563eb}
.av-day.reserved::after{color:#dc2626}
.av-day.blocked::after{color:#ea580c}

.av-day.available{
  background:#f0fdf4!important;
  border-color:#bbf7d0!important;
}
.av-day.pending{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}
.av-day.reserved{
  background:#fef2f2!important;
  border-color:#fecaca!important;
}
.av-day.blocked{
  background:#fff7ed!important;
  border-color:#fed7aa!important;
}

.av-day.available b{color:#166534!important}
.av-day.pending b{color:#1d4ed8!important}
.av-day.reserved b{color:#991b1b!important}
.av-day.blocked b{color:#9a3412!important}

.av-day.selected,
.av-day.range{
  background:#111827!important;
  border-color:#111827!important;
}
.av-day.selected b,
.av-day.range b{
  color:#fff!important;
}
.av-day.selected::after,
.av-day.range::after{
  color:#f3d98d!important;
}

/* pasek filtrów jako prawdziwe przyciski */
.av-status-filter-bar{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin:16px 0 18px!important;
}

.av-status-filter-btn{
  appearance:none!important;
  border:1px solid rgba(24,20,14,.12)!important;
  background:#fff!important;
  color:#111827!important;
  min-height:42px!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  cursor:pointer!important;
  font-weight:950!important;
  font-size:13px!important;
  box-shadow:5px 5px 0 rgba(15,18,24,.05)!important;
  transition:.18s ease!important;
}

.av-status-filter-btn:hover{
  transform:translateY(-2px)!important;
}

.av-status-filter-btn.is-active{
  background:#111827!important;
  color:#fff!important;
  border-color:#111827!important;
}

.av-status-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:999px!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:950!important;
  flex:0 0 22px!important;
}

.av-status-icon.available{background:#16a34a!important}
.av-status-icon.pending{background:#2563eb!important}
.av-status-icon.reserved{background:#dc2626!important}
.av-status-icon.blocked{background:#ea580c!important}
.av-status-icon.all{background:#111827!important}

.av-status-filter-btn.is-active .av-status-icon{
  background:#f3d98d!important;
  color:#17130b!important;
}

.av-status-count{
  display:inline-flex!important;
  min-width:22px!important;
  height:22px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#334155!important;
  padding:0 7px!important;
  font-size:11px!important;
  font-weight:950!important;
}

.av-status-filter-btn.is-active .av-status-count{
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}

.av-filter-results{
  display:none;
  margin:0 0 18px!important;
  padding:16px!important;
  background:#fff!important;
  border:1px solid rgba(24,20,14,.10)!important;
  box-shadow:7px 7px 0 rgba(15,18,24,.04)!important;
}

.av-filter-results.is-visible{
  display:block!important;
}

.av-filter-results h3{
  margin:0 0 12px!important;
  font-size:20px!important;
  line-height:1.05!important;
  letter-spacing:-.04em!important;
}

.av-filter-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}

.av-filter-item{
  padding:10px!important;
  background:#f8fafc!important;
  border:1px solid #e5e7eb!important;
  font-size:12px!important;
  font-weight:900!important;
  color:#111827!important;
}

.av-filter-item span{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:11px!important;
}

.av-day.av-filter-hidden{
  display:none!important;
}

/* usuwamy stare dynamiczne przyciski jeśli zostały zdublowane */
.av-dynamic-legend,
.av-legend-btn{
  display:none!important;
}

@media(max-width:1000px){
  .av-filter-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  .av-status-filter-bar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }

  .av-status-filter-btn{
    width:100%!important;
    justify-content:flex-start!important;
  }

  .av-filter-list{
    grid-template-columns:1fr!important;
  }

  .av-calendar-grid,
  .av-calendar{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:3px!important;
  }

  .av-day{
    min-height:36px!important;
    padding:4px!important;
  }

  .av-day b{
    font-size:12px!important;
  }

  .av-day::after{
    right:3px;
    bottom:3px;
    font-size:9px;
  }
}
