/* =========================================================
   AUDITORÍA DEL SISTEMA - INVENTORY GENETIX
   Vista administrativa de logs_sistema.
   ========================================================= */

#moduloAuditoriaInventory .small-box {
  min-height: 94px;
  border-radius: .55rem;
  overflow: hidden;
  position: relative;
}

#moduloAuditoriaInventory .small-box .inner {
  padding: 14px 16px;
  position: relative;
  z-index: 2;
}

#moduloAuditoriaInventory .small-box h3 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

#moduloAuditoriaInventory .small-box p {
  font-size: .86rem;
  line-height: 1.2;
  margin-bottom: 0;
}

#moduloAuditoriaInventory .small-box .icon {
  top: 13px;
  right: 16px;
  font-size: 42px;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

#moduloAuditoriaInventory .small-box .icon > i,
#moduloAuditoriaInventory .small-box .icon > i.fas,
#moduloAuditoriaInventory .small-box .icon > i.fa,
#moduloAuditoriaInventory .small-box .icon > i.far {
  font-size: 42px !important;
  top: 0;
  color: rgba(0, 0, 0, .24);
}

#moduloAuditoriaInventory .small-box:hover .icon > i,
#moduloAuditoriaInventory .small-box:hover .icon > i.fas,
#moduloAuditoriaInventory .small-box:hover .icon > i.fa,
#moduloAuditoriaInventory .small-box:hover .icon > i.far {
  font-size: 45px !important;
}

#moduloAuditoriaInventory .auditoria-help-box {
  border-left: 4px solid #2563eb !important;
}

#moduloAuditoriaInventory .auditoria-actions .btn {
  min-width: 105px;
}

#moduloAuditoriaInventory .auditoria-json-box {
  min-height: 210px;
  max-height: 380px;
  overflow: auto;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: .45rem;
  padding: 12px;
  font-size: .78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

#moduloAuditoriaInventory .auditoria-detail-summary,
#moduloAuditoriaInventory .auditoria-detail-description {
  background: #fff;
}

#moduloAuditoriaInventory #tablaAuditoriaSistema td {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  #moduloAuditoriaInventory .small-box {
    min-height: 82px;
  }

  #moduloAuditoriaInventory .small-box .inner {
    padding: 12px 13px;
  }

  #moduloAuditoriaInventory .small-box h3 {
    font-size: 1.35rem;
  }

  #moduloAuditoriaInventory .small-box p {
    font-size: .78rem;
  }

  #moduloAuditoriaInventory .small-box .icon {
    top: 13px;
    right: 12px;
    font-size: 32px;
  }

  #moduloAuditoriaInventory .small-box .icon > i,
  #moduloAuditoriaInventory .small-box .icon > i.fas,
  #moduloAuditoriaInventory .small-box .icon > i.fa,
  #moduloAuditoriaInventory .small-box .icon > i.far {
    font-size: 32px !important;
  }

  #moduloAuditoriaInventory .small-box:hover .icon > i,
  #moduloAuditoriaInventory .small-box:hover .icon > i.fas,
  #moduloAuditoriaInventory .small-box:hover .icon > i.fa,
  #moduloAuditoriaInventory .small-box:hover .icon > i.far {
    font-size: 34px !important;
  }

  #moduloAuditoriaInventory .auditoria-actions {
    justify-content: flex-start !important;
  }

  #moduloAuditoriaInventory .auditoria-actions .btn {
    min-width: auto;
  }
}

/* TRAZION_AUDITORIA_AZUL_INICIO */

/* Identidad principal del módulo */
.auditoria-brand-border,
.auditoria-kpi-card.auditoria-brand-border {
    border-left-color: #2563eb !important;
}

.auditoria-brand-text {
    color: #2563eb !important;
}

/* Botón de acción principal */
#btnFiltrarAuditoria.auditoria-btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    min-height: 2rem;
    padding: .38rem .82rem;
    border: 1px solid #235fd5 !important;
    border-radius: .42rem;
    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1c4ca0 55%,
            #2563eb 100%
        ) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .2);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

#btnFiltrarAuditoria.auditoria-btn-brand:hover {
    color: #ffffff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

#btnFiltrarAuditoria.auditoria-btn-brand:focus {
    color: #ffffff !important;
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .2),
        0 7px 16px rgba(37, 99, 235, .22);
}

/* Etiquetas de acciones heredadas como warning */
#tablaAuditoriaSistema .badge-warning,
#modalDetalleAuditoria .badge-warning {
    border: 1px solid #2563eb !important;
    border-radius: .32rem;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: .3rem .48rem;
    box-shadow: none;
}

/* Encabezado del modal de detalle */
.modal .modal-header.auditoria-modal-brand {
    border-bottom: 0 !important;
    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1c4ca0 55%,
            #2563eb 100%
        ) !important;
    color: #ffffff !important;
}

.modal .modal-header.auditoria-modal-brand .modal-title,
.modal .modal-header.auditoria-modal-brand .close {
    color: #ffffff !important;
}

/* Evita reaparición del amarillo heredado dentro del módulo */
#btnFiltrarAuditoria.btn-warning {
    border-color: #235fd5 !important;
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #2563eb
        ) !important;
    color: #ffffff !important;
}

/* TRAZION_AUDITORIA_AZUL_FIN */

/* ============================================================
   TRAZION_C8_5C_AUDITORIA_POLISH_START
   Final visual polish
   ============================================================ */

#moduloAuditoriaInventory .auditoria-help-box {
    padding: 15px 16px !important;
    border: 1px solid var(--trz-color-info-border) !important;
    border-left: 4px solid var(--trz-color-blue-600) !important;
    border-radius: var(--trz-radius-md) !important;
    background: var(--trz-color-info-bg) !important;
    color: var(--trz-color-slate-700) !important;
}

#moduloAuditoriaInventory #btnExportarAuditoria {
    box-shadow: none !important;
}

#moduloAuditoriaInventory #btnExportarAuditoria:hover {
    background: var(--trz-color-slate-50) !important;
    border-color: var(--trz-color-slate-400) !important;
    color: var(--trz-color-navy-950) !important;
}

#moduloAuditoriaInventory .btnVerDetalleAuditoria {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--trz-radius-sm) !important;
}

#moduloAuditoriaInventory .btnVerDetalleAuditoria:hover {
    background: var(--trz-color-slate-50) !important;
    border-color: var(--trz-color-slate-400) !important;
    color: var(--trz-color-navy-950) !important;
}

/* ============================================================
   TRAZION_C8_5C_AUDITORIA_POLISH_END
   ============================================================ */
