/* ========================================
   MODERN UI COMPONENTS - REUSABLE STYLES
   ======================================== */

/* Variables CSS para fácil personalización */
:root {
  --modern-border-radius: 12px;
  --modern-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --modern-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
  --modern-border-color: #e9ecef;
  --modern-text-primary: #212529;
  --modern-text-secondary: #6c757d;
  --modern-text-muted: #6c757d;
  --modern-bg-white: white;
  --modern-bg-light: #f8f9fa;
  --modern-primary-color: #007bff;
  --modern-transition: all 0.2s ease;
  --modern-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.main-content {
  font-family: var(--modern-font-family);
  padding: 2rem;
}

.page-header {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.client-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--modern-text-primary);
  margin: 0;
}

.client-subtitle {
  color: var(--modern-text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ========================================
   SUMMARY CARDS (Cards de arriba)
   ======================================== */

.summary-card-title {
  color: var(--modern-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.summary-card-main {
  font-weight: 600;
  color: var(--modern-text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.summary-card-secondary {
  color: var(--modern-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.summary-card-secondary div {
  margin-bottom: 0.25rem;
}

.summary-card-secondary div:last-child {
  margin-bottom: 0;
}

/* ========================================
   METRICS CARDS
   ======================================== */

.metrics-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metrics-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.metric-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0; /* Permite que se comprima */
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--modern-shadow-hover);
}

.metric-number {
  font-size: 2rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--modern-text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive que ocupa TODO el ancho */
@media (max-width: 1199px) {
  .metric-card {
    min-width: calc(25% - 0.75rem); /* 4 por fila en pantallas medianas */
  }
}

@media (max-width: 991px) {
  .metric-card {
    min-width: calc(33.333% - 0.67rem); /* 3 por fila en tablets */
    padding: 1rem;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .metric-card {
    min-width: calc(50% - 0.5rem); /* 2 por fila en móviles grandes */
    padding: 1rem;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  .metrics-cards {
    flex-direction: column;
  }

  .metric-card {
    min-width: auto;
    padding: 1rem;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }
}

/* ========================================
   NAVIGATION PILLS
   ======================================== */

.nav-pills-custom {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 0.375rem; /* Reducido de 0.5rem */
  margin-bottom: 2rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.nav-pills-custom .nav-link {
  border-radius: 6px;
  color: var(--modern-text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.125rem;
  transition: var(--modern-transition);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.nav-pills-custom .nav-link.active {
  background-color: var(--modern-primary-color);
  color: white;
}

.nav-pills-custom .nav-link:hover:not(.active) {
  background-color: var(--modern-bg-light);
  color: #495057;
}

/* ========================================
   PAYMENT INFO SECTION
   ======================================== */

.payment-info-section {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.payment-info-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--modern-text-muted);
  margin-bottom: 0.5rem;
}

.payment-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--modern-text-primary);
  margin-bottom: 0.25rem;
}

.payment-info-secondary {
  font-size: 0.8rem;
  color: var(--modern-text-muted);
  margin-bottom: 0.25rem;
}

/* Responsive para payment info */
@media (max-width: 768px) {
  .payment-info-section .row {
    text-align: center !important;
  }

  .payment-info-section .col-md-4 {
    margin-bottom: 1rem;
    text-align: center !important;
  }

  .payment-info-section .col-md-4:last-child {
    margin-bottom: 0;
  }

  .payment-info-section .col-md-4.text-right {
    text-align: center !important;
  }
}

/* ========================================
   INFO CARDS
   ======================================== */

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Distribución automática según cantidad de items */
.info-cards-grid[data-cols="2"] > * {
  grid-column: span 6;
}

.info-cards-grid[data-cols="3"] > * {
  grid-column: span 4;
}

.info-cards-grid[data-cols="4"] > * {
  grid-column: span 3;
}

/* Por defecto (sin data-cols) */
.info-cards-grid > * {
  grid-column: span 3;
}

/* Clases opcionales para controlar cards individuales */
.col-12 {
  grid-column: span 12 !important;
}
.col-6 {
  grid-column: span 6 !important;
}
.col-4 {
  grid-column: span 4 !important;
}
.col-3 {
  grid-column: span 3 !important;
}

/* Responsive: 2 columnas en tablets */
@media (max-width: 1500px) {
  .info-cards-grid[data-cols="2"] > *,
  .info-cards-grid[data-cols="3"] > *,
  .info-cards-grid[data-cols="4"] > * {
    grid-column: span 6;
  }

  .info-cards-grid > * {
    grid-column: span 6;
  }
}

/* Responsive: 1 columna en móviles */
@media (max-width: 768px) {
  .info-cards-grid[data-cols="2"] > *,
  .info-cards-grid[data-cols="3"] > *,
  .info-cards-grid[data-cols="4"] > * {
    grid-column: span 12;
  }

  .info-cards-grid > * {
    grid-column: span 12 !important;
  }
}

.info-card {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 1.5rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.info-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  min-height: 1.5rem;
  padding-bottom: 0.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

.info-label {
  font-size: 0.875rem;
  color: var(--modern-text-muted);
  font-weight: 500;
  line-height: 1.3;
  padding-right: 1rem;
  word-wrap: break-word;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.875rem;
  color: var(--modern-text-primary);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  text-align: right;
  min-width: 0;
}

/* Ajustes específicos para las columnas de Bootstrap */
.info-item .col-auto {
  padding-right: 0;
}

.info-item .col.text-right {
  padding-left: 0;
}

/* ========================================
   TABLE COMPONENTS
   ======================================== */

.table-card {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
  overflow: hidden;
}

/* Responsive table wrapper */
.table-responsive-custom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.table-modern {
  margin: 0;
  min-width: 600px; /* Ancho mínimo para mantener legibilidad */
}

.table-modern th {
  border-top: none;
  border-bottom: 1px solid var(--modern-border-color);
  font-weight: 500;
  color: var(--modern-text-muted);
  font-size: 0.875rem;
  padding: 1rem 0.75rem;
  background: var(--modern-bg-light);
  vertical-align: middle;
  white-space: nowrap;
}

.table-modern td {
  border-top: 1px solid #f1f3f4;
  padding: 1rem 0.75rem;
  color: var(--modern-text-primary);
  font-size: 0.875rem;
  vertical-align: middle;
  white-space: nowrap;
}

.table-modern th:first-child,
.table-modern td:first-child {
  padding: 1rem 1.1rem;
}

.table-modern th:last-child,
.table-modern td:last-child {
  padding: 1rem 1.1rem;
}

.table-modern tbody tr:hover {
  background-color: var(--modern-bg-light);
}

/* Centrado vertical específico para text-center */
.table-modern th.text-center,
.table-modern td.text-center {
  vertical-align: middle;
  text-align: center;
}

/* Anchos específicos para columnas */
.table-modern th:first-child,
.table-modern td:first-child {
  min-width: 80px;
}

.table-modern th:last-child,
.table-modern td:last-child {
  min-width: 60px;
}

/* Tabla de domicilios - permitir wrap */
.tabla-domicilios th,
.tabla-domicilios td {
  white-space: normal;
  word-wrap: break-word;
}

/* NUEVA CLASE PARA TRUNCADO ESPECÍFICO DE RIESGO */
.cell-riesgo-truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

.cell-riesgo-truncate:hover::after {
  content: attr(data-full-text);
  position: absolute;
  background: #333;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 1000;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .table-responsive-custom::after {
    display: block;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-icon {
  border: none;
  background: none;
  color: var(--modern-text-muted);
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--modern-transition);
}

.btn-icon:hover {
  background-color: var(--modern-bg-light);
  color: var(--modern-primary-color);
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-expired {
  background-color: #f8d7da;
  color: #721c24;
}

.status-pending {
  background-color: #cce7ff;
  color: #0056b3;
}

/* ========================================
   5. CUSTOM PAGINATION
   ======================================== */

.custom-pagination-wrapper {
  padding: 0.75rem 1.5rem 0.25rem 1.5rem;
  background: var(--modern-bg-white);
  border-top: 1px solid #f1f3f4;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem; /* Reducido de 1rem */
}

.custom-pagination .page-btn {
  border: none;
  background: none;
  color: var(--modern-text-muted);
  padding: 0.375rem; /* Reducido de 0.5rem */
  border-radius: 4px;
  font-size: 0.875rem;
  transition: var(--modern-transition);
  cursor: pointer;
  min-width: 28px; /* Reducido de 32px */
  height: 28px; /* Reducido de 32px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-decoration: none;
}

.custom-pagination .page-btn:hover:not(.disabled):not(.active) {
  background-color: var(--modern-bg-light);
  color: var(--modern-primary-color);
  text-decoration: none;
}

.custom-pagination .page-btn.active {
  background-color: var(--modern-primary-color);
  color: white;
  font-weight: 600;
}

.custom-pagination .page-btn.disabled {
  color: #dee2e6;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-pagination .page-btn.disabled:hover {
  background: none;
  color: #dee2e6;
}

.custom-pagination-page-numbers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.custom-pagination-info {
  text-align: center;
  color: var(--modern-text-muted);
  font-size: 0.8rem; /* Reducido de 0.875rem */
}

/* Responsive para paginación */
@media (max-width: 768px) {
  .custom-pagination-wrapper {
    padding: 0.75rem 1rem; /* Reducido */
  }

  .custom-pagination .page-btn {
    min-width: 26px; /* Reducido */
    height: 26px; /* Reducido */
    font-size: 0.8rem;
  }

  .custom-pagination-info {
    font-size: 0.75rem; /* Reducido */
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .page-header {
    padding: 1.5rem;
  }

  .metrics-cards {
    grid-template-columns: 1fr;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Nav pills centrados en móvil */
  .nav-pills-custom {
    text-align: center;
  }

  .nav-pills-custom .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-pills-custom .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    margin: 0.125rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.modern-card {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.modern-hover {
  transition: var(--modern-transition);
}

.modern-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--modern-shadow-hover);
}

/* ========================================
   COBERTURAS Y COLUMNAS RESPONSIVAS
   ======================================== */

/* Espaciado para la sección de coberturas */
.coberturas-section {
  margin-top: 2rem;
}

.section-title {
  color: var(--modern-text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--modern-border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem !important;
}

/* Separadores uniformes para columnas */
@media (min-width: 1200px) {
  /* 3 columnas: solo primera y segunda tienen borde derecho */
  .info-card .row .col-xl-4:nth-child(1),
  .info-card .row .col-xl-4:nth-child(2) {
    border-right: 1px solid var(--modern-border-color);
  }

  /* Padding uniforme para todas las columnas */
  .info-card .row .col-xl-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* 2 columnas: solo primera tiene borde derecho */
  .info-card .row .col-lg-6:nth-child(1) {
    border-right: 1px solid var(--modern-border-color);
  }

  /* Padding uniforme para ambas columnas */
  .info-card .row .col-lg-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mejoras para las coberturas detalladas */
.cobertura-franquicia-section,
.cobertura-limites-section {
  background-color: var(--modern-bg-light);
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
}

.cobertura-franquicia-section small,
.cobertura-limites-section small {
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

/* Mensaje de sin información */
.info-card.text-center.py-5 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed var(--modern-border-color);
}

.info-card.text-center.py-5 i {
  opacity: 0.6;
}

/* Mejoras para la forma de pago responsiva */
@media (max-width: 767px) {
  .payment-info-value {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Botones modernos mejorados */
.btn-modern {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--modern-transition);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.btn-modern.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-modern.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-modern.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border-color: #28a745;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
  color: white;
}

.btn-modern.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  color: white;
}

.btn-modern.btn-outline-secondary {
  background: white;
  border-color: #dee2e6;
  color: #6c757d;
}

.btn-modern.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
}

/* Responsive para botones */
@media (max-width: 768px) {
  .page-header .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .page-header .d-flex > div:last-child {
    margin-top: 1rem;
  }

  .btn-modern {
    width: 100%;
    justify-content: center;
  }
}

/* Mejoras específicas para la pantalla genérica */

/* Reducir espaciado en info-items para pantalla genérica */
.info-card .row.info-item {
  margin-bottom: 0.5rem; /* Reducido de 0.75rem */
  min-height: 1.2rem; /* Reducido de 1.5rem */
  padding-bottom: 0.3rem; /* Reducido de 0.5rem */
}

.info-card .row.info-item:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

/* Mejorar el espaciado en columnas de la pantalla genérica */
.info-card .row .col-5,
.info-card .row .col-7 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Separador vertical entre columnas en pantallas medianas y grandes */
@media (min-width: 768px) {
  .info-card .row .col-md-6:first-child {
    border-right: 1px solid var(--modern-border-color);
    padding-right: 1.5rem;
  }

  .info-card .row .col-md-6:last-child {
    padding-left: 1.5rem;
  }
}

/* Ajustes para labels y values más compactos */
.info-label {
  font-size: 0.83rem; /* Reducido de 0.875rem */
  line-height: 1.2;
}

.info-value {
  font-size: 0.83rem; /* Reducido de 0.875rem */
  line-height: 1.2;
}

/* Mejorar la detección de paginación */
.table-modern tbody tr.pagination-row {
  display: none;
}

/* Estilos para debug de paginación */
.pagination-debug {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* ========================================
   FLEET NAVIGATION COMPONENTS
   ======================================== */

.fleet-controls {
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 1.5rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
}

.fleet-search .input-group {
  max-width: 300px;
}

.fleet-search .input-group-text {
  background: var(--modern-bg-light);
  border-color: var(--modern-border-color);
  color: var(--modern-text-muted);
}

.fleet-search .form-control {
  border-color: var(--modern-border-color);
  font-size: 0.875rem;
}

.fleet-search .form-control:focus {
  border-color: var(--modern-primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.fleet-counter {
  font-size: 0.875rem;
  color: var(--modern-text-muted);
  font-weight: 500;
}

.fleet-nav-container {
  display: flex;
  align-items: center;
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 1rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
  gap: 1rem;
}

.fleet-nav-arrow {
  background: none;
  border: none;
  color: var(--modern-text-muted);
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--modern-transition);
  cursor: pointer;
  min-width: 18px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fleet-nav-arrow:hover:not(:disabled) {
  background-color: var(--modern-bg-light);
  color: var(--modern-primary-color);
}

.fleet-nav-arrow:disabled {
  color: #dee2e6;
  cursor: not-allowed;
}

.fleet-nav-arrow:disabled:hover {
  background: none;
  color: #dee2e6;
}

/* MEJORAS PARA FLEET NAVIGATION */

.fleet-nav-pills-wrapper {
  /* Asegurar que el wrapper tenga un ancho definido */
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0; /* Importante para flex shrinking */
}

.fleet-nav-pills {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
  flex-wrap: nowrap;
  overflow: visible;
  width: 100%; /* Asegurar que use todo el ancho disponible */
}

.fleet-nav-item {
  flex-shrink: 0;
  /* Remover cualquier width fijo que pueda interferir */
}

.fleet-nav-pills .nav-link {
  border-radius: 6px;
  color: var(--modern-text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--modern-transition);
  font-size: 0.875rem;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  /* Permitir que el ancho se ajuste al contenido */
  width: auto;
  min-width: fit-content;
}

/* Mejoras para el contenedor principal */
.fleet-nav-container {
  display: flex;
  align-items: center;
  background: var(--modern-bg-white);
  border-radius: var(--modern-border-radius);
  padding: 1rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid var(--modern-border-color);
  gap: 1rem;
  /* Asegurar que el contenedor tenga un ancho definido */
  width: 100%;
  box-sizing: border-box;
}

/* Mejoras responsive */
@media (max-width: 768px) {
  .fleet-nav-container {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .fleet-nav-pills .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .fleet-search-compact .input-group {
    width: 150px;
  }
}

@media (max-width: 576px) {
  .fleet-nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .fleet-nav-pills-wrapper {
    order: 1;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .fleet-search-compact {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .fleet-search-compact .input-group {
    width: 100%;
  }
}

/* Debug helper (remover en producción) */
.fleet-debug {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
  display: none;
}

.td-secondary-text {
  font-size: 0.75rem;
  color: #6c757d;
}

.link-sin-color {
  color: inherit;
}
