/* IEICII Eventos · contraste final v274.1.3
   Se carga al FINAL de la cascada tanto en event_manager como en layout general. */

/* Acciones primarias realmente activas */
body.event-workspace-body .btn.primary:not(:disabled):not([aria-disabled="true"]),
body.event-workspace-body button.btn.primary[data-modal-target]:not(:disabled),
body.event-workspace-body button.btn.primary[data-modal-open]:not(:disabled),
body[data-ui-domain="event"] .btn.primary:not(:disabled):not([aria-disabled="true"]),
body[data-ui-domain="event"] button.btn.primary[data-modal-target]:not(:disabled),
body[data-ui-domain="event"] button.btn.primary[data-modal-open]:not(:disabled){
  background:linear-gradient(180deg,#2468f2 0%,#1859d8 100%)!important;
  color:#fff!important;
  border:1px solid #164bb9!important;
  box-shadow:0 7px 18px rgba(24,89,216,.23)!important;
  opacity:1!important;
  filter:none!important;
  text-shadow:none!important;
  font-weight:900!important;
}
body.event-workspace-body .btn.primary:not(:disabled):not([aria-disabled="true"]):hover,
body[data-ui-domain="event"] .btn.primary:not(:disabled):not([aria-disabled="true"]):hover{
  background:linear-gradient(180deg,#1e5ddd 0%,#1449b7 100%)!important;
  border-color:#123f9e!important;
  box-shadow:0 9px 22px rgba(24,89,216,.28)!important;
  transform:translateY(-1px);
}

/* Secundarios: visibles, no lavados */
body.event-workspace-body .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]),
body[data-ui-domain="event"] .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]){
  background:#fff!important;
  color:#17345f!important;
  border:1px solid #9eafc7!important;
  box-shadow:0 3px 10px rgba(23,52,95,.09)!important;
  opacity:1!important;
  filter:none!important;
  font-weight:850!important;
}
body.event-workspace-body .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]):hover,
body[data-ui-domain="event"] .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]):hover{
  background:#f2f6fc!important;
  color:#0f2b53!important;
  border-color:#6883a7!important;
  box-shadow:0 5px 13px rgba(23,52,95,.13)!important;
}

/* Peligro */
body.event-workspace-body .btn.danger:not(:disabled),
body[data-ui-domain="event"] .btn.danger:not(:disabled){
  background:#fff4f2!important;
  color:#a52f25!important;
  border:1px solid #e2a39d!important;
  opacity:1!important;
  font-weight:850!important;
}
body.event-workspace-body .btn.danger:not(:disabled):hover,
body[data-ui-domain="event"] .btn.danger:not(:disabled):hover{
  background:#fee8e5!important;
  border-color:#cf7269!important;
}

/* Solo los botones realmente deshabilitados deben verse suaves */
body.event-workspace-body .btn:disabled,
body.event-workspace-body .btn[aria-disabled="true"],
body[data-ui-domain="event"] .btn:disabled,
body[data-ui-domain="event"] .btn[aria-disabled="true"]{
  background:#e8edf5!important;
  color:#62728a!important;
  border:1px solid #b9c4d4!important;
  box-shadow:none!important;
  opacity:1!important;
  filter:none!important;
  cursor:not-allowed!important;
}

/* Acciones de cabecera: evitar aspecto fantasma y asegurar alineación */
body.event-workspace-body .section-head>.btn,
body.event-workspace-body .section-head>.actions .btn,
body[data-ui-domain="event"] .section-head>.btn,
body[data-ui-domain="event"] .section-head>.actions .btn{
  min-height:42px!important;
  padding:9px 15px!important;
  border-radius:12px!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

/* Botones pequeños de tablas: contraste suficiente */
body.event-workspace-body .row-actions .btn.tiny:not(:disabled),
body.event-workspace-body .data-table .btn.tiny:not(:disabled),
body[data-ui-domain="event"] .row-actions .btn.tiny:not(:disabled),
body[data-ui-domain="event"] .data-table .btn.tiny:not(:disabled){
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:10px!important;
  opacity:1!important;
}

/* Contadores y estados con aire; no pegar número al concepto */
body.event-workspace-body .event-config-status-v76>div,
body[data-ui-domain="event"] .event-config-status-v76>div{
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:15px!important;
}
body.event-workspace-body .event-config-status-v76>div>strong,
body[data-ui-domain="event"] .event-config-status-v76>div>strong{
  display:grid!important;place-items:center!important;
  width:46px!important;height:46px!important;border-radius:14px!important;
  background:#edf3ff!important;color:#1859d8!important;
  font-size:1.45rem!important;line-height:1!important;
}
body.event-workspace-body .event-module-card-v184>div:first-child,
body[data-ui-domain="event"] .event-module-card-v184>div:first-child{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:12px!important;
}
body.event-workspace-body .event-module-card-v184>div:first-child>strong,
body[data-ui-domain="event"] .event-module-card-v184>div:first-child>strong{
  display:inline-grid!important;place-items:center!important;
  min-width:34px!important;height:34px!important;padding:0 9px!important;
  border-radius:999px!important;background:#edf3ff!important;color:#1859d8!important;
  font-weight:950!important;
}

/* Dark mode */
html[data-theme="dark"] body.event-workspace-body .btn.primary:not(:disabled):not([aria-disabled="true"]),
html[data-theme="dark"] body[data-ui-domain="event"] .btn.primary:not(:disabled):not([aria-disabled="true"]){
  background:linear-gradient(180deg,#4b82ff,#2f68df)!important;border-color:#6b98ff!important;color:#fff!important;
}
html[data-theme="dark"] body.event-workspace-body .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]),
html[data-theme="dark"] body[data-ui-domain="event"] .btn:not(.primary):not(.danger):not(.light):not(:disabled):not([aria-disabled="true"]){
  background:#182336!important;color:#eef4ff!important;border-color:#60718c!important;
}

@media(max-width:760px){
  body.event-workspace-body .section-head>.actions,
  body[data-ui-domain="event"] .section-head>.actions{width:100%;display:grid!important;grid-template-columns:1fr!important}
  body.event-workspace-body .section-head>.actions .btn,
  body[data-ui-domain="event"] .section-head>.actions .btn{width:100%!important}
}
