/* Custom patch: hide the old overview/search area and keep status info in the top bar */
body[data-komari-custom-bg="1"]::before,
body::before {
  background-image: none !important;
}

/* Hide the large dashboard overview cards area */
main .container.mx-auto.px-4.space-y-4 > .flex.flex-col.gap-4 {
  display: none !important;
}

/* Hide the search/filter toolbar block that was framed in the screenshot */
.ds-home-toolbar,
.ds-home-toolbar-quad {
  display: none !important;
}

main.flex-1 {
  padding-top: 1rem !important;
}

nav .container {
  position: relative !important;
}

.knp-top-stats {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.1vw, 46px);
  max-width: calc(100% - 420px);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 600;
  line-height: 1;
  color: hsl(var(--primary));
  opacity: .96;
  letter-spacing: .01em;
}

.knp-top-stats .knp-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.knp-top-stats .knp-label {
  color: hsl(var(--foreground) / .68);
  font-weight: 600;
}

.knp-top-stats .knp-value {
  color: hsl(var(--primary));
  font-weight: 700;
}

@media (max-width: 1100px) {
  .knp-top-stats {
    max-width: calc(100% - 300px);
    gap: 14px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .knp-top-stats {
    display: none;
  }
}
