/* Portal de agentes — frontend */
.tgc-portal { max-width: 980px; margin: 0 auto; font-size: 16px; }
.tgc-portal-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.tgc-btn { display:inline-block; background:#fff; color:#005B4A; border:1.5px solid #005B4A; padding:8px 16px; border-radius:8px; text-decoration:none; cursor:pointer; font-weight:600; font-size:14px; }
.tgc-btn:hover { background:#F1F6F4; color:#005B4A; }
.tgc-btn-primario { background:#005B4A; color:#fff; }
.tgc-btn-primario:hover { background:#024237; color:#fff; }
.tgc-btn-grande { font-size:16px; padding:12px 26px; }
.tgc-tabla { width:100%; border-collapse:collapse; }
.tgc-tabla th { background:#005B4A; color:#fff; text-align:left; padding:10px 12px; }
.tgc-tabla td { padding:12px; border-bottom:1px solid #e3e8e6; vertical-align:middle; }
.tgc-sub { color:#6a7672; font-size:13px; }
.tgc-acciones { white-space:nowrap; }
.tgc-acciones .tgc-btn { margin-right:6px; }
.tgc-nota { padding:10px 14px; border-radius:8px; margin:10px 0 16px; }
.tgc-nota-ok { background:#e6f3ee; border:1px solid #9fd0bd; color:#0b5138; }
.tgc-nota-error { background:#fbeaea; border:1px solid #e3a6a6; color:#8a1f1f; }
.tgc-portada { background:#F1F6F4; border-radius:8px; padding:12px 16px; margin-bottom:14px; }
.tgc-envio { margin-top:18px; }
/* el formulario compartido usa .tgc-form del css del admin, cargado también aquí */
.tgc-portal input[type=text], .tgc-portal textarea { border:1px solid #c3cdc9; border-radius:6px; padding:9px 11px; font-size:16px; }

/* PUNTO 4 (v1.4.0) — overlay de carga al generar el PDF */
#tgc-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(2,66,55,.55); z-index:99999; display:none; align-items:center; justify-content:center; }
.tgc-overlay-box { background:#fff; border-radius:12px; padding:26px 34px; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.25); max-width:340px; }
.tgc-overlay-box p { margin:14px 0 4px; color:#024237; font-weight:700; font-size:15px; }
.tgc-overlay-sub { color:#6a7672; font-size:13px; }
.tgc-spinner { width:42px; height:42px; margin:0 auto; border:4px solid #d8e5e0; border-top-color:#005B4A; border-radius:50%; animation:tgc-spin .8s linear infinite; }
@keyframes tgc-spin { to { transform:rotate(360deg); } }
.tgc-btn[disabled], .tgc-btn:disabled { opacity:.7; cursor:progress; }

/* v1.6.0 — botón Eliminar compacto (solo admin): X cuadrada.
   El tema/Elementor aplica `button { width:100% }` y solo estira este <button>
   (Descargar/Editar son <a>). Forzamos el tamaño con especificidad + !important. */
.tgc-portal .tgc-acciones .btn-delete-x,
.tgc-portal .btn-delete-x,
.btn-delete-x {
  display:inline-block !important;
  box-sizing:border-box !important;
  width:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  height:32px !important;
  padding:2px 6px !important;
  margin-left:2px;
  flex:0 0 auto !important;
  line-height:1;
  text-align:center;
  vertical-align:middle;
  color:#dc3545;
  background:#fff;
  border:1px solid #dc3545;
  border-radius:6px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}
.tgc-portal .btn-delete-x:hover,
.btn-delete-x:hover { background:#dc3545 !important; color:#fff !important; }
.btn-delete-x[disabled], .btn-delete-x:disabled { opacity:.6; cursor:progress; }
