/* ==================================================================
 * SLZ7 V46 - Pendencias em aberto no painel + formulario de suporte
 * Carregado apenas no contexto "account" (core/assets.php).
 * Usa os tokens do tema; nao altera nenhum layout existente.
 * ================================================================== */

/* ---------- Cartao de pendencias ---------- */
.slz7-pend {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6e6);
  border-radius: var(--r, 14px);
  padding: 14px 16px;
  margin: 0 0 16px;
}

.slz7-pend-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.slz7-pend-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.slz7-pend-head h3 > i { flex: 0 0 auto; opacity: .7; }

.slz7-pend-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand, #111);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.slz7-pend-all {
  flex: 0 0 auto;
  font-size: .82rem;
  text-decoration: none;
  white-space: nowrap;
}

.slz7-pend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Tarja colorida por situacao */
.slz7-pend-item {
  border: 1px solid var(--line, #e6e6e6);
  border-left: 5px solid var(--pend-tone, #9aa0a6);
  border-radius: 10px;
  background: var(--bg-soft, #fafafa);
  overflow: hidden;
}

.slz7-pend-item.is-wait { --pend-tone: #e0a800; }
.slz7-pend-item.is-work { --pend-tone: #1f7ae0; }
.slz7-pend-item.is-open { --pend-tone: #e05a1f; }

.slz7-pend-link {
  display: grid;
  /* V46.3 - sem a etiqueta de status: texto, data e acao. */
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.slz7-pend-link:hover { background: rgba(0, 0, 0, .035); }

.slz7-pend-tag {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pend-tone, #9aa0a6);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.slz7-pend-txt { min-width: 0; display: grid; gap: 2px; }
.slz7-pend-txt strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slz7-pend-txt span { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.slz7-pend-when { flex: 0 0 auto; font-size: .76rem; white-space: nowrap; }

.slz7-pend-go {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: .85;
}

.slz7-pend-empty { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .88rem; }
.slz7-pend-more { margin: 8px 0 0; font-size: .78rem; }

@media (max-width: 640px) {
  .slz7-pend { padding: 12px; }
  .slz7-pend-link { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .slz7-pend-when { grid-column: 2; grid-row: 1; justify-self: end; }
  .slz7-pend-txt { grid-column: 1 / -1; }
  .slz7-pend-txt strong,
  .slz7-pend-txt span { white-space: normal; }
  .slz7-pend-go { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Formulario de suporte: campos empilhados ---------- */
.slz7-sp-stack { grid-template-columns: 1fr !important; }
.slz7-sp-stack > * { grid-column: 1 / -1 !important; min-width: 0; }
.slz7-sp-stack label { display: block; margin-bottom: 4px; }
.slz7-sp-stack input,
.slz7-sp-stack select,
.slz7-sp-stack textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
