/* Business Suite dashboard switcher.
   Replaces Elementor's tabs widget, which wrapped its chips onto a second row,
   left a stray rule under the first row and framed the image in a box.
   Sits on the black panel, so every colour here is tuned for a dark ground. */

.kbx-suite {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Segmented control: six equal cells, not a ragged wrapped row. */
.kbx-suite__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.kbx-suite__tab {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--kbx-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.kbx-suite__tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--kbx-white);
}

.kbx-suite__tab:focus-visible {
  outline: 2px solid var(--kbx-blue);
  outline-offset: 2px;
}

.kbx-suite__tab.is-active {
  background: var(--kbx-blue);
  color: var(--kbx-white);
  box-shadow: 0 6px 18px rgba(82, 113, 255, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .kbx-suite__tab {
    transition: background-color 180ms ease-out, color 180ms ease-out,
      box-shadow 180ms ease-out;
  }
}

/* Panels */
.kbx-suite__panel[hidden] {
  display: none;
}

.kbx-suite__shot {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  outline: 1px solid rgba(255, 255, 255, 0.10);
  outline-offset: -1px;
}

.kbx-suite__caption {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--kbx-font-body);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: no-preference) {
  .kbx-suite__panel.is-entering .kbx-suite__shot,
  .kbx-suite__panel.is-entering .kbx-suite__caption {
    animation: kbx-suite-in 260ms ease-out both;
  }
}

@keyframes kbx-suite-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .kbx-suite__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .kbx-suite__tab {
    font-size: 0.75rem;
    padding: 10px 8px;
  }
}
