/* site.css — ajustes locais do RoehnDeploy sobre o roehn.css (copiado do RoehnID).
   Regra herdada: nenhuma cor escrita à mão — só tokens --roehn-* (seção 2 do roehn.css), para o tema escuro funcionar. */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

/* ===== Portal ===== */

.deploy-nav__product {
  font-family: var(--roehn-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-left: 0.6rem;
  color: var(--roehn-accent);
}

.deploy-hero {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.deploy-hero__tag {
  font-family: var(--roehn-font-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roehn-stone);
  margin: 0;
}

.deploy-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.deploy-head .roehn-h1 { margin-bottom: 0.25rem; }
.deploy-head__meta { color: var(--roehn-muted); font-size: 0.9rem; }

/* KPIs: mesma altura em toda a linha e a linha do valor com altura fixa, seja número grande ou texto. */
.deploy-kpis { margin-bottom: 1.25rem; }

.deploy-kpis > [class*="col-"] > .roehn-kpi {
  /* No admin o respiro vem do .card-body (py-3); aqui o .roehn-kpi é usado sem .card, então vem daqui. */
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deploy-kpis .roehn-kpi__value {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.deploy-kpi__text { font-size: 1rem; color: var(--roehn-gray); }

.deploy-table { margin: 0.5rem 0 0; }
.deploy-table th { font-family: var(--roehn-font-display); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--roehn-muted); border-bottom-color: var(--roehn-line-strong); }
.deploy-table td { vertical-align: middle; font-size: 0.9rem; }

.deploy-login__roehnid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.deploy-login__roehnid svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.deploy-login__hint { margin-top: 1rem; font-size: 0.85rem; color: var(--roehn-muted); text-align: center; }

/* Badges de status de deploy (além de --on/--off do roehn.css). */
.roehn-badge--run {
  color: var(--roehn-warning-text);
  background: var(--roehn-warning-bg);
  border-color: var(--roehn-warning-border);
}

.roehn-badge--fail {
  color: var(--roehn-danger-text);
  background: var(--roehn-danger-bg);
  border-color: var(--roehn-danger-border);
}

/* ===== Área Admin (Bootstrap re-temado pelo roehn.css) ===== */

.admin-nav-avatar {
  width: 1.25em;
  height: 1.25em;
}

.admin-nav-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.admin-user-email {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Detalhe: a coluna do valor pode encolher (minmax(0, 1fr)) para GUIDs e hashes quebrarem em vez de cortar. */
.deploy-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; font-size: 0.9rem; max-width: 880px; }
.deploy-dl dt { color: var(--roehn-muted); font-weight: 500; white-space: nowrap; }
.deploy-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }

/* Console do log de transferência (detalhe do deploy), como na UI local do RoehnHost. */
.deploy-console {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  min-height: 12rem;
  max-height: 60vh;
  overflow: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--roehn-gray);
  background: var(--roehn-tint);
  border: 1px solid var(--roehn-line);
  border-radius: var(--roehn-radius);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.deploy-console .is-warning { color: var(--roehn-warning-text); }
.deploy-console .is-error { color: var(--roehn-danger-text); font-weight: 600; }

.deploy-live {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--roehn-line);
  color: var(--roehn-muted);
  background: var(--roehn-tint);
}

.deploy-live[data-state="on"] {
  color: var(--roehn-success-text);
  background: var(--roehn-success-bg);
  border-color: var(--roehn-success-border);
}
