/* Estilos específicos para el módulo de OT */
.filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filters select, .filters input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  min-width: 200px;
}

.filters input {
  flex-grow: 1;
  max-width: 400px;
}

button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background-color: var(--secondary-color);
}

/* ----- ESTADÍSTICAS ----- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #4361ee;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* MEJORAS PARA LA TABLA PRINCIPAL */
.table-wrapper {
  position: relative;
  max-width: 100%;
  margin: 20px 0;
  padding-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  overflow-y: auto; /* Habilitar scroll vertical */
  max-height: 600px; /* Altura máxima para mostrar ~10 filas */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: linear-gradient(to right, white 30%, rgba(255,255,255,0)),
              linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0,
              radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
              radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Tabla moderna */
#ordersTable {
  table-layout: fixed; /* Cambiado a fixed para mejor control */
  width: 100%;
  white-space: nowrap;  
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px; /* Reducido ligeramente */
}

/* Altura fija para filas */
#ordersTable tbody tr {
  height: 45px; /* Altura fija para mostrar exactamente 10 filas */
  transition: all 0.2s;
}

/* Estilos para el texto en las celdas */
#ordersTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.2;
}

/* Asegurar que los headers no se rompan */
#ordersTable th {
  white-space: nowrap;
  position: relative;
  vertical-align: middle;
  height: 50px;
}

/* Anchos fijos optimizados para columnas */
#ordersTable th[data-column="index"],
#ordersTable td:nth-child(1) {
  width: 40px; /* Columna # */
  min-width: 40px;
  max-width: 40px;
  text-align: center;
}

#ordersTable th[data-column="nroOT"],
#ordersTable td:nth-child(2) {
  width: 80px; /* NRO OT */
  min-width: 80px;
  max-width: 80px;
}

#ordersTable th[data-column="placa"],
#ordersTable td:nth-child(3) {
  width: 80px; /* PLACA */
  min-width: 80px;
  max-width: 80px;
}

#ordersTable th[data-column="marca"],
#ordersTable td:nth-child(4) {
  width: 100px; /* MARCA */
  min-width: 100px;
  max-width: 100px;
}

#ordersTable th[data-column="modelo"],
#ordersTable td:nth-child(5) {
  width: 120px; /* MODELO */
  min-width: 120px;
  max-width: 120px;
}

#ordersTable th[data-column="año"],
#ordersTable td:nth-child(6) {
  width: 60px; /* AÑO */
  min-width: 60px;
  max-width: 60px;
  text-align: center;
}

#ordersTable th[data-column="cabecera"],
#ordersTable td:nth-child(7) {
  width: 150px; /* CABECERA */
  min-width: 150px;
  max-width: 150px;
}

#ordersTable th[data-column="km"],
#ordersTable td:nth-child(8) {
  width: 80px; /* KM */
  min-width: 80px;
  max-width: 80px;
  text-align: right;
}

#ordersTable th[data-column="fIngreso"],
#ordersTable td:nth-child(9) {
  width: 100px; /* F. INGRESO */
  min-width: 100px;
  max-width: 100px;
}

#ordersTable th[data-column="cliente"],
#ordersTable td:nth-child(10) {
  width: 180px; /* CLIENTE */
  min-width: 180px;
  max-width: 180px;
}

#ordersTable th[data-column="totalPedido"],
#ordersTable td:nth-child(11) {
  width: 100px; /* TOTAL */
  min-width: 100px;
  max-width: 100px;
  text-align: right;
}

#ordersTable th[data-column="estado"],
#ordersTable td:nth-child(12) {
  width: 140px; /* ESTADO */
  min-width: 140px;
  max-width: 140px;
}

#ordersTable th[data-column="fCita"],
#ordersTable td:nth-child(13) {
  width: 100px; /* F. CITA */
  min-width: 100px;
  max-width: 100px;
}

#ordersTable th[data-column="usuario"],
#ordersTable td:nth-child(14) {
  width: 120px; /* USUARIO */
  min-width: 120px;
  max-width: 120px;
}

#ordersTable th[data-column="creacion"],
#ordersTable td:nth-child(15) {
  width: 100px; /* CREACION */
  min-width: 100px;
  max-width: 100px;
}

#ordersTable th[data-column="acciones"],
#ordersTable td:nth-child(16) {
  width: 200px; /* ACCIONES */
  min-width: 200px;
  max-width: 200px;
  text-align: center;
}

/* Contenedor de acciones horizontal */
.acciones-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px; /* Espacio reducido entre botones */
  flex-wrap: nowrap;
  height: 100%;
}

/* Botones de acción mejorados */
.btn-accion {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  color: #000000; /* Color negro */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-accion:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Fondo sutil al hover */
  transform: translateY(-1px);
}

.btn-accion i {
  font-size: 14px;
  color: #000000; /* Asegurar que los iconos sean negros */
}

/* Estados específicos para diferentes botones */
.btn-accion[title*="Editar Pedido"]:hover i {
  color: #007bff;
}

.btn-accion[title*="Abonos"]:hover i {
  color: #28a745;
}

.btn-accion[title*="Aceite"]:hover i {
  color: #ffc107;
}

.btn-accion[title*="Visto Bueno"]:hover i {
  color: #17a2b8;
}

.btn-accion[title*="Correctivos"]:hover i {
  color: #6f42c1;
}

.btn-accion[title*="Check Engine"]:hover i {
  color: #dc3545;
}

.btn-accion[title*="Editar OT"]:hover i {
  color: #fd7e14;
}

#ordersTable thead th {
  position: sticky;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: 500;
  z-index: 10;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#ordersTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#ordersTable tbody tr:hover {
  background-color: #f1f5ff;
}

#ordersTable td {
  padding: 8px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
}

/* Estilos para estados */
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-citado {
  background-color: #021bf7;
  color: #fdfdfd;
}

.status-taller {
  background-color: #2dff03;
  color: #ffffff;
}

.status-proceso {
  background-color: #d9f00eb6;
  color: #ffffff;
}

.status-cerrado {
  background-color: #000000;
  color: #ffffff;
}
.status-cerrado_pagado {
  background-color: #ffa600;
  color: #ffffff;
}
.status-cerrado_cobrar {
  background-color: #fc0202;
  color: #ffffff;
}

/* Mejoras en la paginación */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.pagination-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-buttons button {
  padding: 8px 12px;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid #ddd;
}

.pagination-buttons button:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: white;
  color: var(--gray-color);
}

#pageInfo {
  font-size: 14px;
  color: var(--gray-color);
  margin: 0 10px;
}

/* Scroll personalizado */
.table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Efecto de sombra al hacer scroll */
.table-container.scrolling {
  box-shadow: inset 0 -5px 10px -5px rgba(0,0,0,0.1);
}

/* Estilos para el nuevo HTML */
.search-container {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
  pointer-events: none;
}

#searchInput {
  padding: 10px 35px 10px 15px;
  width: 100%;
}

.rows-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rows-per-page label {
  font-size: 14px;
  color: var(--gray-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 25px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--danger-color);
}

/* Mejoras de accesibilidad */
[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

#ordersTable th:hover {
  background-color: rgba(67, 97, 238, 0.8) !important;
  color: white !important;
}

#ordersTable th {
  transition: all 0.2s ease;
}

/* Estilos para enlaces de OT */
.ot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  display: block;
  text-align: center;
}

.ot-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Ajustes para alineación de texto */
#ordersTable td:nth-child(1), /* # */
#ordersTable td:nth-child(6), /* AÑO */
#ordersTable td:nth-child(8), /* KM */
#ordersTable td:nth-child(11) { /* TOTAL */
  text-align: center;
}

#ordersTable td:nth-child(2) { /* NRO OT */
  text-align: center;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 1400px) {
  .table-container {
    max-height: 500px;
  }
  
  #ordersTable {
    font-size: 12px;
  }
  
  #ordersTable td {
    padding: 6px 4px;
  }
  
  .btn-accion {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
  
  .btn-accion i {
    font-size: 12px;
  }
}

/* El resto de tus estilos existentes para modales, etc. se mantienen igual... */

/* Estilos para el modal de detalle de NRO OT */
#otDetailModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 25px;
    padding-top: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    margin-top: 20px;
}

/* Estilos para las secciones de detalle */
.ot-detail-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ot-detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 15px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

/* Estilos para tablas de detalle */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.detail-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: left;
}

.detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.detail-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos para imágenes */
.ot-image-container {
    margin: 15px 0;
    text-align: center;
}

.ot-image-container img {
    transition: opacity 0.3s;
    opacity: 0;
}

.ot-image-container img.loaded {
    opacity: 1;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.9);
    z-index: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(67, 97, 238, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Estilos para estados históricos */
.status-history {
    margin-top: 20px;
}

.status-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.status-date {
    font-weight: bold;
    min-width: 120px;
    color: var(--primary-color);
}

.status-info {
    flex-grow: 1;
}

.status-user {
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 3px;
}

/* Estilos mejorados para imágenes */
.ot-image-container {
    position: relative;
    min-height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    overflow: hidden;
}

.ot-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s;
    opacity: 0;
    z-index: 2;
}

.ot-image-container img.loaded {
    opacity: 1;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.9);
    z-index: 1;
}

.image-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(67, 97, 238, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.image-error {
    padding: 20px;
    text-align: center;
    color: #666;
    width: 100%;
}

.image-error i {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.image-error p {
    margin-bottom: 10px;
}

.image-error small {
    display: block;
    margin-bottom: 15px;
    word-break: break-all;
    font-size: 12px;
    opacity: 0.7;
}

.image-actions {
    text-align: center;
    margin-top: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-link:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-link i {
    font-size: 12px;
}

/* Estilos para la tabla de dos columnas */
.dual-column-table {
    display: flex;
    gap: 20px;
    width: 100%;
}

.dual-column-table .detail-table {
    width: 50%;
    margin: 0;
}

.dual-column-table th {
    background-color: var(--primary-color);
    color: white;
}

.dual-column-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.dual-column-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos para el header fijo */
.modal-header.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 20px;
}

.status-display {
    margin-left: 20px;
}

.status-display .status {
    font-size: 16px;
    padding: 6px 12px;
}

.modal-body {
    margin-top: 20px;
}

.status-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.status-history-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: left;
}

.status-history-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.status-history-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.modal-content h2 {
    display: none; /* Oculta el título duplicado */
}

.modal-header.sticky-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--primary-color);
}

.modal-header.sticky-header {
    padding: 15px 25px; /* Ajustar padding para alinear con el contenido */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra sutil para separación visual */
}

/* Estilos para el header fijo */
.modal-header.sticky-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 25px;
    z-index: 10;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ot-title {
    flex: 1;
    min-width: 0; /* Permite que el texto se trunque */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 2em;
    font-weight: bold;
    color: black;
}

.ot-title-container {
    display: flex;
    flex-grow: 1;
    min-width: 0;
}

.ot-title-container h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 1.3em;
}

.ot-number {
    font-weight: bold;
    margin-left: 5px;
    color: #333;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Evita que se reduzca */
}

.status-display .status {
    font-size: 14px;
    padding: 6px 12px;
}

.modal-content-body {
    padding: 20px 25px;
}

/* Estilos para el botón de PDF */
.pdf-button {
    padding: 8px 15px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.pdf-button:hover {
    background-color: #c1121f;
}

.pdf-button i {
    font-size: 16px;
}

@media print {
    body * {
        visibility: hidden;
    }
    #pdf-container, #pdf-container * {
        visibility: visible;
    }
    #pdf-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10mm !important;
        box-shadow: none !important;
    }
    
    /* Optimización de espacio */
    .detail-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 8px !important;
    }
    .dual-column-table {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .dual-column-table .detail-table {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .ot-detail-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #eee !important;
    }
    table {
        font-size: 9pt !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    th, td {
        padding: 4px 6px !important;
    }
    .modal-header.sticky-header {
        position: static !important;
        padding: 10px 0 !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    /* Ocultar elementos innecesarios */
    .close-modal, .pdf-button, .btn-link, .image-actions {
        display: none !important;
    }
}

img {
    max-width: 150mm !important;
    max-height: 200mm !important;
}

/* --------------------------- estilos para salidas de rptos en ot detalles ----------------------------------------------*/
/* Estilos para la sección de repuestos */
.loading-repuestos {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-repuestos .spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0 auto 10px;
}

.repuestos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.repuestos-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.repuestos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.repuestos-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 8px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.repuestos-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.repuestos-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.repuestos-table tr:hover {
    background-color: #f1f5ff;
}

.no-repuestos {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 4px;
}

.table-responsive {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* Scroll personalizado para la tabla */
.table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}