/* ==========================================================================
   Kitgenix Stock Sync for WooCommerce – Admin UI
   Built on top of the shared kitgenix-admin-ui.css component library.
   Only plugin-specific layout helpers and content styling live here; all
   cards, tables, toggles, notices, badges, stat tiles and modals use the
   shared classes and are styled by kitgenix-admin-ui.css itself.
   ========================================================================== */

/* ----------------------------------------------------------------
   Page wrapper
----------------------------------------------------------------- */
.wrap.kitgenix-stock-sync-for-woocommerce-admin {
  max-width: 100%;
}

/* ----------------------------------------------------------------
   Panel stack – vertical rhythm between the cards inside each
   data-kitgenix-tab-panel. Replaces the old single "section card"
   wrapper now that each panel can hold several .kitgenix-card blocks.
----------------------------------------------------------------- */
.kitgenix-panel-stack {
  display: flex;
  flex-direction: column;
  gap: var(--kitgenix-space-6, 24px);
}

.kitgenix-panel-stack .kitgenix-card {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Configuration tab wraps multiple cards in a single <form> (they
   save together). That form is the panel-stack's only direct flex
   child, so the panel-stack's own gap never reaches the cards
   inside it – give the form the same flex/gap treatment.
----------------------------------------------------------------- */
.kitgenix-panel-stack > form {
  display: flex;
  flex-direction: column;
  gap: var(--kitgenix-space-6, 24px);
}

/* ----------------------------------------------------------------
   Support tab – plain bullet lists inside cards
----------------------------------------------------------------- */
.kitgenix-support-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kitgenix-support-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--kitgenix-text-muted);
}

/* ----------------------------------------------------------------
   Failover readiness, Stock History and SKU Mapping Repair cards
----------------------------------------------------------------- */
.kss-findings {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kss-findings li {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.kss-subheading {
  margin: var(--kitgenix-space-6, 24px) 0 var(--kitgenix-space-3, 12px);
  font-size: 14px;
}

.kss-recovery-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kss-recovery-steps li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--kitgenix-text-muted);
}

.kss-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.kss-inline-form .regular-text {
  width: 14em;
  max-width: 100%;
}

/* ----------------------------------------------------------------
   Accessibility
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wrap.kitgenix-stock-sync-for-woocommerce-admin * {
    transition: none !important;
  }
}
