/* ==============================
   CONTENEDOR ERP GENERAL
============================== */
.erp-wrapper {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

/* ==============================
   HEADER ERP
============================== */
.erp-header {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  color: #ffffff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==============================
   CUERPO
============================== */
.erp-body {
  padding: 18px;
}

/* ==============================
   SECCIONES
============================== */
.erp-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 10px;
}

/* ==============================
   TITULOS DE SECCION
============================== */
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e88e5;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ==============================
   COMPACTAR ESPACIOS
============================== */
.erp-body .mb-3 {
  margin-bottom: 10px !important;
}

.erp-body .row > [class*="col-"] {
  margin-bottom: 8px;
}

/* ==============================
   LABELS
============================== */
.erp-body label {
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 3px;
}

/* ==============================
   INPUTS & SELECTS
============================== */
.erp-body .form-control,
.erp-body .form-select {
  height: 34px;
  padding: 5px 9px;
  font-size: 13px;
  border-radius: 6px;
}

/* READONLY */
.erp-body .form-control[readonly] {
  background-color: #f8f9fa;
}

/* ==============================
   RADIOS Y CHECKBOX
============================== */
.erp-body input[type="radio"],
.erp-body input[type="checkbox"] {
  margin-right: 4px;
}

.erp-body label.me-3 {
  font-size: 13px;
}

/* ==============================
   BOTONES
============================== */
.erp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.erp-actions .btn {
  min-width: 140px;
  font-weight: 600;
}

/* ==============================
   ALERTAS
============================== */
.erp-body .alert {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 6px;
}

/* ==============================
   FORM COMPACTO (SENSACIÓN ERP)
============================== */
.erp-body form {
  line-height: 1.3;
}

/* ==============================
   RESPONSIVE (MÓVIL)
============================== */
@media (max-width: 768px) {
  .erp-body {
    padding: 14px;
  }

  .erp-actions {
    flex-direction: column;
  }

  .erp-actions .btn {
    width: 100%;
  }
}

/* quitar línea superior a la primera sección */
.erp-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ==============================
   DASHBOARD ERP
============================== */
.erp-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 16px;
  position: relative;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

.erp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.erp-card-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.erp-card-body strong {
  display: block;
  font-size: 14px;
}

.erp-card-body small {
  color: #6c757d;
  font-size: 12px;
}

.erp-card-link {
  position: absolute;
  inset: 0;
}

/* ==============================
   DASHBOARD ERP – FIX DEFINITIVO
============================== */
.erp-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.erp-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: all .2s ease;
}

.erp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

.erp-card-icon {
  font-size: 34px;
  line-height: 1;
}

.erp-card-body {
  display: flex;
  flex-direction: column;
}

.erp-card-body strong {
  font-size: 15px;
  font-weight: 600;
}

.erp-card-body small {
  font-size: 12px;
  color: #6c757d;
}

.erp-card-link {
  position: absolute;
  inset: 0;
}

/* ======================================================
   🔥 ERP DARK MODE – SAAS STYLE (AGREGADO)
====================================================== */

body {
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
}

/* CONTENEDOR */
.erp-wrapper {
  background: linear-gradient(180deg, #0b1220, #020617);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  border-radius: 14px;
}

/* HEADER */
.erp-header {
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  color: #ffffff;
  font-size: 15px;
}

/* SECCIONES */
.erp-section {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* TITULOS */
.section-title {
  color: #38bdf8;
}

/* LABELS */
.erp-body label {
  color: #cbd5f5;
}

/* INPUTS */
.erp-body .form-control,
.erp-body .form-select {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

.erp-body .form-control::placeholder {
  color: #64748b;
}

.erp-body .form-control:focus,
.erp-body .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 .15rem rgba(56,189,248,.25);
}

/* TABLAS */
.table {
  color: #e5e7eb;
}

.table thead {
  background: rgba(255,255,255,.04);
}

.table-hover tbody tr:hover {
  background: rgba(56,189,248,.08);
}

/* CARDS */
.erp-card {
  background: #020617;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.erp-card-icon {
  color: #38bdf8;
}

.erp-card-body strong {
  color: #f8fafc;
}

.erp-card-body small {
  color: #94a3b8;
}

/* BOTONES */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border: none;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
  border: none;
}

/* BADGES */
.badge.bg-success {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b, #facc15) !important;
  color: #020617;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc2626, #f43f5e) !important;
}
