/* ==========================================================================
   GELEX HUB — Cài đặt (Settings) — Enterprise redesign
   Layout 2 cột: nav trái sticky + pane card. Gọn, ít scroll.
   ========================================================================== */

/* Layout 2 cột */
.st-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .st-layout { grid-template-columns: 1fr; gap: 14px; }
}

/* Nav trái (sticky) */
.st-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}
@media (max-width: 720px) {
  .st-nav { position: static; flex-direction: row; border-bottom: 1px solid var(--border); padding-bottom: 8px; overflow-x: auto; }
}
.st-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease) 120ms, color var(--ease) 120ms;
}
.st-nav-item svg { flex: none; }
.st-nav-item:hover { background: var(--surface-sunken); color: var(--text); }
.st-nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}
@media (max-width: 720px) {
  .st-nav-item { white-space: nowrap; }
  .st-nav-item.active { background: transparent; border-bottom: 2px solid var(--brand); border-radius: 0; }
}

/* Pane phải */
.st-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

/* Card */
.st-card {
  padding: 18px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.st-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.st-card-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Form grid (2 cột) */
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 560px) { .st-grid { grid-template-columns: 1fr; } }
.st-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.st-field > span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}
.st-field input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--ease) 120ms, box-shadow var(--ease) 120ms;
}
.st-field input:focus {
  outline: none;
  border-color: var(--brand-border);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.st-field input:disabled {
  background: var(--surface-sunken);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Card actions (button row) */
.st-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* Hint + error */
.st-hint { font-size: 12px; color: var(--text-3); line-height: 1.55; margin: 0; }
.st-error {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
}
.st-push-status { font-size: 12.5px; color: var(--text-2); margin-top: 10px; }

/* Integration info row */
.st-int-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.st-int-label { font-size: 13px; font-weight: 600; color: var(--text); }
.st-int-value { font-size: 12px; color: var(--text-3); }

/* Badge */
.st-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-3);
}
.st-badge.success { background: #ecfdf5; color: #047857; }
