/* ==========================================================
   SISTEMA ERP Y POS - MOVA ELÉCTRICA (CHÍA, CUNDINAMARCA)
   Tema Odoo Moderno UI/UX con Identidad MOVA
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa Oficial MOVA Eléctrica (según logo) */
  --mova-blue: #004F90;
  --mova-blue-dark: #003666;
  --mova-yellow: #FAB818;
  --mova-yellow-hover: #e5a408;
  --mova-sky: #CBE5FC;
  --mova-sky-light: #EBF4FE;

  /* Aliases para compatibilidad */
  --mova-navy: #004F90;
  --mova-navy-light: #0060ad;
  --mova-cyan: #004F90;
  --mova-cyan-glow: #FAB818;
  --mova-amber: #FAB818;
  --mova-emerald: #10b981;
  --mova-purple: #7c3aed;
  --mova-red: #ef4444;

  /* Superficies y Neutros */
  --bg-app: #F0F6FC;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #F7FAFD;
  --border-color: #D3E2F2;
  --border-color-subtle: #B9D3EC;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Sombras y Elevaciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------
   BARRA SUPERIOR ESTILO ODOO (Top Navigation Bar)
   ---------------------------------------------------------- */
.odoo-navbar {
  background: var(--mova-navy);
  color: #ffffff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.odoo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--mova-cyan-glow), var(--mova-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--mova-cyan-glow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Módulos de Navegación (App Switcher) */
.odoo-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  height: 100%;
}

.nav-tab-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0 0.85rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--mova-cyan-glow);
}

.nav-tab-icon {
  font-size: 1.05rem;
}

/* Controles de Usuario y Rol */
.odoo-user-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.role-switcher-dropdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
}

.role-switcher-dropdown option {
  background: var(--mova-navy);
  color: #ffffff;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--mova-cyan-glow);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.65rem;
  color: var(--mova-cyan-glow);
  text-transform: uppercase;
  font-weight: 600;
}

.btn-qr-direct {
  background: linear-gradient(135deg, var(--mova-amber), #d97706);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-qr-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* ----------------------------------------------------------
   SUB-BARRA DE ACCIONES (Odoo Control Panel / Breadcrumb)
   ---------------------------------------------------------- */
.odoo-control-panel {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.control-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-root {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-separator {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.breadcrumb-active {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mova-navy);
}

.control-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Botones Principales */
.btn-mova {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-mova-primary {
  background: var(--mova-cyan);
  color: #ffffff;
}

.btn-mova-primary:hover {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-mova-secondary {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-mova-secondary:hover {
  background: var(--bg-surface-secondary);
  border-color: var(--border-color-subtle);
}

.btn-mova-success {
  background: var(--mova-emerald);
  color: #ffffff;
}

.btn-mova-success:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-mova-purple {
  background: var(--mova-purple);
  color: #ffffff;
}

.btn-mova-purple:hover {
  background: #6d28d9;
}

/* ----------------------------------------------------------
   CONTENEDOR PRINCIPAL DE MÓDULOS
   ---------------------------------------------------------- */
.odoo-main-content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.module-section {
  display: none;
}

.module-section.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   MODALES Y DRAWERS TIPO ODOO
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-container-lg {
  max-width: 1050px;
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-secondary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mova-navy);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--mova-red);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-surface-secondary);
}

/* ----------------------------------------------------------
   FORMULARIOS Y CAMPOS DE ENTRADA
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--mova-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-col {
  flex: 1;
}

/* ----------------------------------------------------------
   INDICADORES Y BADGES DE ESTADO
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-queue { background: #dbeafe; color: #1e40af; }
.badge-progress { background: #fef3c7; color: #92400e; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-billed { background: #ede9fe; color: #5b21b6; }

.badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-high { background: #ffedd5; color: #c2410c; }
.badge-normal { background: #e0f2fe; color: #0369a1; }
.badge-low { background: #f1f5f9; color: #475569; }

/* ----------------------------------------------------------
   RESPONSIVIDAD Y AJUSTES MÓVILES
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .odoo-navbar {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .odoo-nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav-tab-btn {
    height: 38px;
    white-space: nowrap;
  }
  .odoo-main-content {
    padding: 1rem;
  }
}

/* ----------------------------------------------------------
   PANTALLA DE LOGIN Y SEGURIDAD MOVA ERP
   ---------------------------------------------------------- */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #003666 0%, #081a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem;
  animation: loginSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 79, 144, 0.25);
  margin-bottom: 0.75rem;
  background: #ffffff;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mova-blue);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.login-badge-secure {
  display: inline-block;
  background: var(--mova-sky-light);
  color: var(--mova-blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.login-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  margin-left: 0.5rem;
}

.btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================
   MÓDULO DE CONTACTOS Y TRAZABILIDAD 360° (ESTILO ODOO)
   ========================================================== */
.contact-avatar-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.contact-avatar-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
  flex-shrink: 0;
}

.smart-badge-tickets {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #bae6fd;
}

.btn-table-action {
  background: #f8fafc;
  color: var(--mova-navy);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: var(--mova-sky-light);
  border-color: var(--mova-blue);
  color: var(--mova-blue);
}

/* Smart Buttons Estilo Odoo (Top Right en la Ficha de Contacto) */
.odoo-smart-buttons-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.smart-button-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  min-width: 110px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.smart-button-card:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-1px);
}

.smart-button-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.smart-button-meta {
  display: flex;
  flex-direction: column;
}

.smart-button-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.smart-button-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Línea de Tiempo de Trazabilidad 360° */
.traceability-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.traceability-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 11px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0284c7;
  transform: translateX(4px);
  z-index: 2;
}

.timeline-marker.latest {
  border-color: #10b981;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-ticket-pill {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

/* ==========================================================
   DASHBOARD ANALÍTICA COMPARATIVA DE SERVICIOS (ESTILO ODOO)
   ========================================================== */
.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.dash-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--mova-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dash-kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-kpi-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--mova-navy);
  margin: 0.35rem 0 0.15rem 0;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.dash-kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-growth-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.dash-growth-pill.positive {
  background: #d1fae5;
  color: #065f46;
}

.dash-growth-pill.negative {
  background: #fee2e2;
  color: #991b1b;
}

/* Grillas de Gráficos */
.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.dash-chart-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mova-navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-chart-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-chart-body {
  position: relative;
  height: 280px;
  width: 100%;
}

.dash-chart-body.tall {
  height: 320px;
}

/* Badges de cumplimiento SLA */
.sla-badge-met {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
  display: inline-block;
  white-space: nowrap;
}

.sla-badge-breached {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #fecaca;
  display: inline-block;
  white-space: nowrap;
}


