/**
 * NEO360 - Estilos Unificados basados en DashboardProyectosConstruccion
 * Mismo diseño exacto que el componente de referencia
 */

/* ============================================================================
   CONTENEDOR PRINCIPAL
   ============================================================================ */
.neo360-view-container {
  padding: 20px;
  background: #f5f6fa;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================================================
   HEADER DE PÁGINA
   ============================================================================ */
.neo360-page-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.neo360-page-hdr h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #2c3e50;
  font-weight: 600;
}

.neo360-page-hdr p {
  margin: 0;
  font-size: 14px;
  color: #7f8c8d;
}

/* ============================================================================
   BARRA DE FILTROS
   ============================================================================ */
.neo360-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.neo360-filter-bar .fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neo360-filter-bar label {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.neo360-filter-bar select,
.neo360-filter-bar input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 150px;
  font-family: inherit;
}

.neo360-filter-bar select:focus,
.neo360-filter-bar input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.neo360-filter-bar .fbtns {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

/* ============================================================================
   FILTROS Y TABS - Estilos independientes (PresupuestosMediciones pattern)
   ============================================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-bar .fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-bar label {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 150px;
  font-family: inherit;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-bar .fbtns {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Botones generales (fuera de .filter-bar) - Azules como en PresupuestosMediciones */
.btn-pers {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  color: white !important;
  border: 1px solid #3498db !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-pers:hover {
  background: linear-gradient(135deg, #2980b9, #1c6ea4) !important;
  border-color: #1c6ea4 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-sec {
  background: white;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sec:hover {
  background: #f5f6fa;
  border-color: #3498db;
}

.btn-crear {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border: 1px solid #27ae60;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-crear:hover {
  background: linear-gradient(135deg, #229954, #1c7a44);
  border-color: #1c7a44;
}

.filter-bar .btn {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #2c3e50;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-bar .btn:hover {
  background: #f5f6fa;
  border-color: #3498db;
}

.filter-bar .btn.btn-pers {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-color: #3498db;
}

.filter-bar .btn.btn-pers:hover {
  background: linear-gradient(135deg, #2980b9, #1c6ea4);
  border-color: #1c6ea4;
}

.filter-bar .btn.btn-sec {
  background: white;
  color: #2c3e50;
  border-color: #e0e0e0;
}

.filter-bar .btn.btn-sec:hover {
  background: #f5f6fa;
  border-color: #3498db;
}

.filter-bar .btn.btn-crear {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border-color: #27ae60;
}

.filter-bar .btn.btn-crear:hover {
  background: linear-gradient(135deg, #229954, #1c7a44);
  border-color: #1c7a44;
}

/* ============================================================================
   BOTONES TÁCTILES - Para tablas (PM pattern)
   ============================================================================ */
.neo360-tact-btns {
  display: flex;
  gap: 4px;
}

.neo360-tact-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f6fa;
  color: #2c3e50;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.neo360-tact-btn:hover {
  background: #3498db;
  color: white;
}

.neo360-tact-btn.danger:hover {
  background: #e74c3c;
}

/* ============================================================================
   BOTONES
   ============================================================================ */
.neo360-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.neo360-btn-pers {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.neo360-btn-pers:hover {
  background: linear-gradient(135deg, #2980b9, #1c6ea4);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.neo360-btn-crear {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
}

.neo360-btn-crear:hover {
  background: linear-gradient(135deg, #229954, #1c7a44);
}

.neo360-btn-fil {
  background: #3498db;
  color: white;
}

.neo360-btn-lim {
  background: #95a5a6;
  color: white;
}

.neo360-btn-secondary {
  background: white;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
}

.neo360-btn-secondary:hover {
  background: #f5f6fa;
  border-color: #3498db;
}

/* ============================================================================
   KPI CARDS - ESTILO EXACTO DASHBOARDPROYECTOS
   ============================================================================ */
.neo360-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.neo360-kpi {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.neo360-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.neo360-kpi-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
  margin-bottom: 12px;
}

.neo360-kpi-lbl span:first-child {
  font-size: 18px;
}

.neo360-kpi-val {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.neo360-kpi-val.blue { color: #3498db; }
.neo360-kpi-val.green { color: #27ae60; }
.neo360-kpi-val.orange { color: #f39c12; }
.neo360-kpi-val.red { color: #e74c3c; }

.neo360-kpi-delta {
  font-size: 12px;
  font-weight: 500;
}

.neo360-kpi-delta.up { color: #27ae60; }
.neo360-kpi-delta.down { color: #e74c3c; }

/* ============================================================================
   SECCIONES Y TARJETAS
   ============================================================================ */
.neo360-areas-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.neo360-areas-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.neo360-areas-hdr span {
  font-size: 16px;
  font-weight: 600;
}

.neo360-areas-hdr-btns {
  display: flex;
  gap: 8px;
}

.neo360-areas-hdr-btns .neo360-btn {
  padding: 8px 16px;
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.neo360-areas-hdr-btns .neo360-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Section Content - para contenido de tabs */
.section-content {
  background: white;
  border-radius: 10px;
  margin: 0 20px 20px 20px;
  overflow: hidden;
}

/* ============================================================================
   TABLAS - ESTILO EXACTO
   ============================================================================ */
.neo360-areas-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.neo360-areas-tbl thead {
  background: #f8fafc;  /* Gris claro, NO azul */
  border-bottom: 2px solid #dde3ec;
}

.neo360-areas-tbl th {
  padding: 9px 16px;
  text-align: left;
  font-weight: 700;
  color: #2c3e50;
  font-size: 11px;
  border-bottom: 2px solid #dde3ec;
  white-space: nowrap;
}

.neo360-areas-tbl th:hover {
  background: #eef2f7;
}

.neo360-areas-tbl tbody tr {
  border-bottom: 1px solid #dde3ec;
  transition: background 0.2s;
}

.neo360-areas-tbl tbody tr:hover {
  background: #f8fafc;
}

.neo360-areas-tbl td {
  padding: 11px 16px;
  font-size: 11.5px;
  color: #2c3e50;
  vertical-align: middle;
}

/* ============================================================================
   BADGES DE ESTADO
   ============================================================================ */
.neo360-est-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.neo360-est-badge.activo,
.neo360-est-badge.eb-green {
  background: #d5f5e3;
  color: #27ae60;
}

.neo360-est-badge.planificacion,
.neo360-est-badge.eb-yellow {
  background: #fdebd0;
  color: #f39c12;
}

.neo360-est-badge.pausa,
.neo360-est-badge.eb-orange {
  background: #f9e79f;
  color: #f1c40f;
}

.neo360-est-badge.completado,
.neo360-est-badge.eb-blue {
  background: #d6eaf8;
  color: #3498db;
}

.neo360-est-badge.cancelado,
.neo360-est-badge.eb-red {
  background: #fadbd8;
  color: #e74c3c;
}

/* ============================================================================
   BOTONES DE ACCIÓN TÁCTIL
   ============================================================================ */
.neo360-tact-btns {
  display: flex;
  gap: 4px;
}

.neo360-tact-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f6fa;
  color: #2c3e50;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.neo360-tact-btn:hover {
  background: #3498db;
  color: white;
}

.neo360-tact-btn.danger:hover {
  background: #e74c3c;
}

/* ============================================================================
   NOTIFICACIONES
   ============================================================================ */
.neo360-erp-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  font-family: inherit;
}

.neo360-erp-notification.success {
  background: #d5f5e3;
  color: #27ae60;
  border: 1px solid #27ae60;
}

.neo360-erp-notification.error {
  background: #fadbd8;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.neo360-erp-notification.info {
  background: #d6eaf8;
  color: #3498db;
  border: 1px solid #3498db;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================================
   MODALES
   ============================================================================ */
.neo360-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.neo360-modal-content {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}

.neo360-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.neo360-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-family: inherit;
}

.neo360-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.neo360-modal-body {
  padding: 20px;
}

/* ============================================================================
   FORMULARIOS
   ============================================================================ */
.neo360-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.neo360-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.neo360-form-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  font-family: inherit;
}

.neo360-form-group input,
.neo360-form-group select,
.neo360-form-group textarea {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.neo360-form-group input:focus,
.neo360-form-group select:focus,
.neo360-form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1400px) {
  .neo360-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .neo360-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .neo360-page-hdr {
    flex-direction: column;
    gap: 16px;
  }
  
  .neo360-filter-bar {
    flex-direction: column;
  }
  
  .neo360-filter-bar .fg,
  .neo360-filter-bar select,
  .neo360-filter-bar input {
    width: 100%;
  }
}

/* ============================================================================
   UTILIDADES
   ============================================================================ */

/* ============================================================================
   MÓDULOS ESPECÍFICOS - CLASES NECESARIAS
   ============================================================================ */

/* Tabs generales */
.compras-tabs, .obra-tabs, .riesgos-tabs, .proveedores-tabs, .academia-tabs, .auditoria-tabs, .reportes-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.tab.active {
  color: #3498db;
  font-weight: 600;
  border-bottom-color: #3498db;
}

/* Secciones */
.rfq-section, .orders-section, .suppliers-section, .inventory-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rfq-section h3, .orders-section h3, .suppliers-section h3, .inventory-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #2c3e50;
}

/* Tablas */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead {
  background: #f8f9fa;
}

.table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

.code-cell {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #3498db;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.approved, .status-badge.OK {
  background: #d5f5e3;
  color: #1e8449;
}

.status-badge.pending, .status-badge.BAJO {
  background: #fef5e7;
  color: #d68910;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-sec {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-sec:hover {
  background: #bdc3c7;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Grids y Cards */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.supplier-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.supplier-card h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #2c3e50;
}

.supplier-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #888;
}

.inventory-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.inventory-stat {
  text-align: center;
}

.inventory-stat strong {
  display: block;
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 4px;
}

.inventory-stat.stat-warning strong {
  color: #e67e22;
}

/* ============================================================================
   MÓDULO DE OBRA - ESTILOS MEJORADOS
   ============================================================================ */

/* Secciones principales */
.daily-section, .workers-section, .machinery-section, .photos-section, .progress-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.daily-section h3, .workers-section h3, .machinery-section h3, 
.photos-section h3, .progress-section h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

/* ============================================================================
   PARTES DIARIOS - TARJETAS MEJORADAS
   ============================================================================ */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.daily-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.daily-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
}

.daily-card:hover {
  border-color: #3498db;
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
  transform: translateY(-4px);
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.daily-header h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
}

.daily-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-transform: capitalize;
}

.daily-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #0369a1;
  font-weight: 500;
}

.daily-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.daily-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  transition: background 0.2s;
}

.daily-stat-item:hover {
  background: #f1f5f9;
}

.daily-stat-item span:first-child {
  font-size: 18px;
}

.daily-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.daily-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 12px;
}

/* ============================================================================
   TRABAJADORES - TABLA MEJORADA
   ============================================================================ */
.workers-section table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.workers-section table.table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.workers-section table.table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.workers-section table.table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.workers-section table.table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #fafafa 100%);
}

.workers-section table.table tbody td {
  padding: 14px 16px;
  color: #475569;
  vertical-align: middle;
}

.workers-section table.table tbody td strong {
  color: #1e293b;
  font-weight: 600;
}

/* ============================================================================
   MAQUINARIA - CARDS MEJORADAS
   ============================================================================ */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.machinery-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.machinery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.machinery-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  transform: translateY(-4px);
}

.machinery-card h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.machinery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.machinery-info > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}

.machinery-info > div:hover {
  background: #f1f5f9;
}

.machinery-info .label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.machinery-info .value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
}

/* Barras de combustible para maquinaria */
.fuel-bar-container {
  width: 100%;
  margin-top: 8px;
}

.fuel-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.fuel-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.fuel-fill.high {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.fuel-fill.medium {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.fuel-fill.low {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Clases específicas de Riesgos */
.risk-matrix-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 40px repeat(5, 1fr);
  gap: 4px;
  margin: 16px 0;
}

.matrix-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.matrix-cell.critical {
  background: #fadbd8;
  color: #c0392b;
}

.matrix-cell.high {
  background: #fdebd0;
  color: #d35400;
}

.matrix-cell.medium {
  background: #fef5e7;
  color: #d68910;
}

.matrix-cell.low {
  background: #d5f5e3;
  color: #1e8449;
}

/* Clases específicas de Academia */
.academia-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.academia-stat {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

/* Clases específicas de Reportes */
.reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.report-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.report-icon {
  font-size: 32px;
}

.report-info {
  flex: 1;
}

.report-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #2c3e50;
}

.report-info p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* Utilidades adicionales */
.approved {
  background: #d5f5e3;
  color: #1e8449;
}

.pending {
  background: #fef5e7;
  color: #d68910;
}

.stat-warning {
  color: #e67e22;
}

.negative {
  color: #e74c3c;
}

.positive {
  color: #27ae60;
}

/* ============================================================================
   MÓDULO DE RIESGOS - CSS COMPLETO
   ============================================================================ */
.matrix-title {
  font-size: 16px;
  color: #2c3e50;
  margin: 0 0 16px 0;
}

.matrix-wrapper {
  position: relative;
  padding: 20px;
}

.matrix-y-label, .matrix-x-label {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
  position: absolute;
}

.matrix-y-label {
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.matrix-x-label {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.matrix-y-labels, .matrix-x-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #888;
}

.matrix-x-labels {
  flex-direction: row;
}

.matrix-axis-label {
  padding: 8px;
  text-align: center;
}

.matrix-cells {
  display: flex;
  gap: 4px;
}

.matrix-row {
  display: flex;
  gap: 4px;
}

.matrix-cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.matrix-count {
  font-size: 16px;
  font-weight: 700;
}

.matrix-score {
  font-size: 9px;
  opacity: 0.8;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-right: 16px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

.risk-level-badge, .change-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.risks-list-container, .changes-list-container, .claims-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.risks-table, .changes-table, .claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.risks-table th, .changes-table th, .claims-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.risks-table td, .changes-table td, .claims-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.risk-name, .change-name {
  font-weight: 500;
  color: #2c3e50;
}

.rating-stars {
  color: #f39c12;
  font-size: 12px;
}

.risk-score {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

.risk-actions, .change-actions {
  display: flex;
  gap: 8px;
}

.risk-actions button, .change-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #888;
  transition: color 0.2s;
}

.risk-actions button:hover, .change-actions button:hover {
  color: #3498db;
}

.btn-success {
  background: #27ae60;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-danger {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.changes-summary, .claims-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.summary-card, .claim-stat {
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
}

.summary-label, .claim-stat-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.summary-value, .claim-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

.summary-impact .summary-value {
  color: #e74c3c;
}

/* ============================================================================
   MÓDULO DE PROVEEDORES - CSS COMPLETO
   ============================================================================ */
.proveedores-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.suppliers-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.supplier-stat {
  background: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #3498db;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #888;
}

.certification-steps {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.cert-step {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.cert-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3498db;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 20px;
}

.cert-step-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #2c3e50;
}

.cert-step-content p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* ============================================================================
   MÓDULO DE ACADEMIA - CSS COMPLETO
   ============================================================================ */
.courses-section, .employees-section, .certificates-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.courses-grid, .certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.course-card, .certificate-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}

.course-card h4, .certificate-card h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #2c3e50;
}

.course-card p, .certificate-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #888;
}

.course-progress {
  margin-top: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: width 0.3s ease;
}

.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.employee-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.employee-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 auto 12px;
}

.employee-role {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
}

.employee-stats {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin: 12px 0;
}

.employee-stat {
  text-align: center;
}

.employee-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #3498db;
}

.employee-stat-label {
  font-size: 11px;
  color: #888;
}

/* ============================================================================
   MÓDULO DE AUDITORÍA - CSS COMPLETO
   ============================================================================ */
.audit-logs, .compliance-section, .access-control, .traceability-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.audit-table, .compliance-table {
  width: 100%;
  border-collapse: collapse;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #d5f5e3;
  color: #1e8449;
}

.badge-warning {
  background: #fef5e7;
  color: #d68910;
}

.badge-danger {
  background: #fadbd8;
  color: #c0392b;
}

.compliance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.compliance-stat {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #3498db;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #888;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.role-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.role-card h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #2c3e50;
}

.permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission {
  background: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #555;
  border: 1px solid #e0e0e0;
}

.traceability-tree {
  padding-left: 20px;
}

.trace-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #3498db;
}

.trace-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.trace-action {
  font-weight: 600;
  color: #2c3e50;
}

.trace-user {
  font-size: 12px;
  color: #3498db;
}

.trace-version {
  font-size: 11px;
  color: #888;
  font-style: italic;
}

/* ============================================================================
   MÓDULO DE REPORTES - CSS COMPLETO
   ============================================================================ */
.reports-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.report-type {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.report-type:hover {
  border-color: #3498db;
  background: #ebf5ff;
}

.report-type.active {
  border-color: #3498db;
  background: #ebf5ff;
}

.report-type i {
  font-size: 32px;
  color: #3498db;
  margin-bottom: 12px;
  display: block;
}

.report-type strong {
  display: block;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 4px;
}

.report-type p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.reports-generator {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.date-range {
  display: flex;
  gap: 12px;
  align-items: center;
}

.date-range input {
  flex: 1;
}

/* ============================================================================
   MÓDULO DE OBRA - CSS COMPLETO ADICIONAL
   ============================================================================ */
.obra-module {
  padding: 20px;
}

.obra-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.obra-tabs .tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.obra-tabs .tab:hover {
  background: #f1f5f9;
  color: #3498db;
}

.obra-tabs .tab.active {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Responsive para tabs de obra */
@media (max-width: 768px) {
  .obra-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }
  
  .obra-tabs .tab {
    flex-shrink: 0;
  }
}

.workers-table, .machinery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.workers-table th, .machinery-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.workers-table td, .machinery-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

/* ============================================================================
   FOTOS DE OBRA - GRID MEJORADO
   ============================================================================ */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #3498db;
}

.photo-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.photo-card .photo-info {
  padding: 14px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.photo-info p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

/* Galería de fotos con imágenes reales */
.photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay-btn {
  background: white;
  color: #1e293b;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s;
}

.photo-overlay-btn:hover {
  transform: scale(1.1);
}

/* ============================================================================
   AVANCE DE OBRA - BARRAS DE PROGRESO MEJORADAS
   ============================================================================ */
.progress-chart {
  margin: 20px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.progress-bar-container {
  margin: 24px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-bar-label span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.progress-bar {
  height: 16px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
  transition: width 0.5s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.2) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-fill.planned {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.progress-fill.delayed {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-fill.critical {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.progress-value {
  font-size: 16px;
  font-weight: 700;
  color: #3498db;
  margin-top: 8px;
  text-align: right;
}

.progress-bar-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Comparativa de progreso */
.progress-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.progress-comparison-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.progress-comparison-item h4 {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
}

/* ============================================================================
   MÓDULO DE AUDITORÍA - CSS ESPECÍFICO COMPLETO
   ============================================================================ */
.auditoria-module {
  padding: 20px;
}

.auditoria-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auditoria-tabs .tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  border-radius: 6px 6px 0 0;
}

.auditoria-tabs .tab:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.auditoria-tabs .tab.active {
  color: #3498db;
  font-weight: 600;
  border-bottom-color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.audit-logs, .compliance, .access-control, .traceability {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.audit-logs h3, .compliance h3, .access-control h3, .traceability h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.audit-table, .compliance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.audit-table thead, .compliance-table thead {
  background: #f8f9fa;
}

.audit-table thead th, .compliance-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-table tbody td, .compliance-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
  font-size: 13px;
}

.audit-table tbody tr:hover, .compliance-table tbody tr:hover {
  background: #f8f9fa;
}

.audit-table tbody td strong {
  color: #2c3e50;
  font-weight: 600;
}

.compliance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.compliance-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 8px;
}

.stat-value.stat-success {
  color: #2ecc71;
}

.stat-value.stat-warning {
  color: #f39c12;
}

.stat-value.stat-danger {
  color: #e74c3c;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-badge.status-rejected {
  background: #fadbd8;
  color: #c0392b;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.role-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.role-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.role-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.role-card > p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #888;
}

.role-card .permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-card .permission {
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
}

.role-card .permission:hover {
  background: #ebf5ff;
  border-color: #3498db;
  color: #3498db;
}

.traceability-tree {
  padding: 0;
}

.trace-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #3498db;
  transition: all 0.2s;
}

.trace-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.trace-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-family: 'Courier New', monospace;
}

.trace-action {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: 4px;
}

.trace-user {
  font-size: 12px;
  color: #3498db;
  font-weight: 500;
}

.trace-version {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}

/* ============================================================================
   MÓDULO DE REPORTES - CSS ESPECÍFICO COMPLETO
   ============================================================================ */
.reportes-module {
  padding: 20px;
}

.reportes-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.reportes-sidebar {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
}

.reportes-sidebar h3 {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reportes-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-type {
  padding: 14px 16px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
}

.report-type:hover {
  background: #ebf5ff;
  border-color: #3498db;
}

.report-type.active {
  background: #ebf5ff;
  border-color: #3498db;
  color: #3498db;
  font-weight: 600;
}

.report-type i {
  font-size: 20px;
  margin-right: 12px;
  vertical-align: middle;
}

.reportes-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reportes-content h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.report-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.report-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

.report-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.report-info {
  flex: 1;
  min-width: 0;
}

.report-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-info p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.report-actions {
  display: flex;
  gap: 8px;
}

.report-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #888;
  border-radius: 6px;
  transition: all 0.2s;
}

.report-actions button:hover {
  background: #ebf5ff;
  color: #3498db;
}

.reportes-generator {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-item:hover {
  background: #ebf5ff;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.date-range input {
  width: 100%;
}

.date-range span {
  color: #888;
  font-size: 13px;
}

.report-actions-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-sec {
  background: #f8f9fa;
  color: #2c3e50;
  border: 2px solid #e0e0e0;
}

.btn-sec:hover {
  background: #e0e0e0;
}

/* Responsive para Reportes */
@media (max-width: 1024px) {
  .reportes-layout {
    grid-template-columns: 1fr;
  }
  
  .reportes-sidebar {
    order: 2;
  }
  
  .reportes-content {
    order: 1;
  }
}

/* ============================================================================
   MÓDULO DE RIESGOS - CSS COMPLETO Y MEJORADO
   ============================================================================ */
.risks-module {
  padding: 20px;
}

.risks-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.risk-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  border-radius: 6px 6px 0 0;
}

.risk-tab:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.risk-tab.active {
  color: #3498db;
  font-weight: 600;
  border-bottom-color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.matrix-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.matrix-section h4 {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

/* Matriz de Riesgos - Estilos Mejorados */
.risk-matrix-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.matrix-title {
  font-size: 18px;
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.matrix-wrapper {
  position: relative;
  padding: 20px;
}

.matrix-y-label, .matrix-x-label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  position: absolute;
}

.matrix-y-label {
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.matrix-x-label {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.matrix-y-labels, .matrix-x-labels {
  display: flex;
  gap: 4px;
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.matrix-y-labels {
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.matrix-x-labels {
  flex-direction: row;
  justify-content: space-around;
  margin-top: 8px;
}

.matrix-axis-label {
  padding: 8px;
  text-align: center;
  min-width: 24px;
}

.matrix-cells {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.matrix-row {
  display: flex;
  gap: 4px;
}

.matrix-cell {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid rgba(255,255,255,0.3);
}

.matrix-cell:hover {
  transform: scale(1.05);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.matrix-cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.matrix-count {
  font-size: 18px;
  font-weight: 700;
}

.matrix-score {
  font-size: 10px;
  opacity: 0.9;
}

.matrix-legend {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Top Risks */
.top-risks {
  margin-top: 24px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-risks h4 {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
}

.top-risks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.top-risk-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #e74c3c;
  transition: all 0.2s;
}

.top-risk-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.top-risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.risk-code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #3498db;
}

.risk-level {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-level-critico {
  background: #fadbd8;
  color: #c0392b;
}

.risk-level-alto {
  background: #fdebd0;
  color: #d35400;
}

.risk-level-medio {
  background: #fef5e7;
  color: #d68910;
}

.risk-level-bajo {
  background: #d5f5e3;
  color: #1e8449;
}

.top-risk-item h5 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
}

.top-risk-item p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.top-risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

.top-risk-meta span {
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Risks Section */
.risks-section, .changes-section, .claims-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.risks-section h3, .changes-section h3, .claims-section h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

/* Claims Section */
.claims-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.claim-stat {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.claim-stat-value {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.claim-stat-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tablas de Riesgos, Changes y Claims */
.risks-table, .changes-table, .claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.risks-table thead, .changes-table thead, .claims-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.risks-table thead th, .changes-table thead th, .claims-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.risks-table tbody tr, .changes-table tbody tr, .claims-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s;
}

.risks-table tbody tr:hover, .changes-table tbody tr:hover, .claims-table tbody tr:hover {
  background: #f8f9fa;
}

.risks-table tbody td, .changes-table tbody td, .claims-table tbody td {
  padding: 14px 16px;
  color: #555;
  font-size: 13px;
}

.risks-table tbody td strong, .changes-table tbody td strong, .claims-table tbody td strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Botones de Acción */
.risk-actions, .change-actions, .claims-actions {
  display: flex;
  gap: 8px;
}

.risk-actions button, .change-actions button, .claims-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  color: #888;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 13px;
}

.risk-actions button:hover, .change-actions button:hover, .claims-actions button:hover {
  background: #ebf5ff;
  color: #3498db;
}

/* Botones Especiales */
.btn-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Changes Summary */
.changes-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.summary-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.summary-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.summary-impact .summary-value {
  color: #e74c3c;
}

/* ============================================================================
   CLAIMS (RECLAMACIONES) - CSS ESPECÍFICO COMPLETO
   ============================================================================ */
.claims-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.claims-container h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  color: #2c3e50;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.claims-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.claim-stat {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.claim-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.claim-stat:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.claim-stat:nth-child(2) {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.claim-stat:nth-child(3) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.claim-stat:nth-child(4) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.claim-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.claim-stat-value {
  font-size: 36px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.claim-stat-label {
  font-size: 12px;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.claims-list {
  display: grid;
  gap: 20px;
}

.claim-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.claim-card:hover {
  border-color: #3498db;
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.12);
  transform: translateY(-3px);
}

.claim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.claim-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-header h4.claim-code-title {
  margin: 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.4;
}

.claim-header p.claim-description {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.claim-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.claim-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.claim-detail:hover {
  border-color: #3498db;
  background: #f8fafc;
}

.detail-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
  word-break: break-word;
}

.claim-amount {
  font-size: 18px;
  color: #059669;
  font-weight: 700;
}

.status-badge.status-completed {
  background: #d5f5e3;
  color: #1e8449;
}

.claim-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sec {
  background: #f8f9fa;
  color: #2c3e50;
  border: 2px solid #e0e0e0;
}

.btn-sec:hover {
  background: #e0e0e0;
  border-color: #bdc3c7;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive para Claims */
@media (max-width: 768px) {
  .claims-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .claim-stat {
    padding: 16px;
  }

  .claim-stat-value {
    font-size: 28px;
  }

  .claim-stat-label {
    font-size: 11px;
  }

  .claim-header {
    flex-direction: column;
    gap: 12px;
  }

  .claim-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .claim-detail {
    padding: 10px;
  }

  .claim-actions {
    flex-direction: column;
  }

  .claim-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* Status Badges para Claims */
.status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status-badge.status-completed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.status-badge.status-en-revisión {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Responsive para Riesgos */
@media (max-width: 1024px) {
  .matrix-cell {
    width: 40px;
    height: 40px;
  }
  
  .top-risks-list {
    grid-template-columns: 1fr;
  }
  
  .risks-tabs {
    flex-wrap: wrap;
  }
  
  .risk-tab {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }
}
.neo360-text-center { text-align: center; }
.neo360-text-right { text-align: right; }
.neo360-text-muted { color: #7f8c8d; }
.neo360-mt-4 { margin-top: 16px; }
.neo360-mb-4 { margin-bottom: 16px; }
.neo360-hidden { display: none; }
