/* Gestor de solicitudes de eventos: sobre facturas.css, consola.css y valoracion.css */

.ev-ai::after {
  content: "+ OpenAI Chat Model";
  justify-self: start;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.ev-text {
  font-size: 0.875rem;
  min-height: 12rem;
}

.fx-count.is-quoted .fx-count-n {
  color: var(--accent);
}

.fx-count.is-full .fx-count-n {
  color: var(--warn);
}

.fx-status.is-quoted {
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.fx-status.is-full {
  background: var(--warn-tint);
  color: #9b3324;
}

.ev-table td.fx-reason {
  min-width: 300px;
}

.ev-two {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .ev-two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.ev-two .vm-table th,
.ev-two .vm-table td {
  white-space: normal;
}

.ev-cost-table td:last-child {
  white-space: nowrap;
}

.ev-two > .cd-panel {
  display: block;
  min-width: 0;
}

#ev-out > .cd-panel {
  display: block;
}

.ev-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.ev-pick select {
  font: inherit;
  font-weight: 400;
  max-width: 18rem;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.ev-pick select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.ev-cost-table td:nth-child(2) {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.ev-cost-table tfoot th,
.ev-cost-table tfoot td {
  border-top: 1px solid var(--rule-strong);
}

.ev-cost-table tfoot th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
}

.ev-cost-table .ev-total td:last-child {
  font-weight: 600;
  color: var(--accent-strong);
}

.ev-cost-table .ev-total td.fx-warn {
  color: #b7791f;
}

.fx-mail.ev-mail-client {
  border-left-color: var(--accent);
}
