/* Estilos comunes para todas las vistas */
/* Encabezados */
h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h2 {
    color: #34495e;
    font-size: 1.25rem;
    font-weight: 600;
}
/* Estilos para la tabla */
.table-responsive {
    margin-bottom: 30px;
}

.table-striped tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Estilos para enlaces en la tabla */
.table a, td a, th a {
    color: #0d6efd;
    text-decoration: none;
}

.table a:hover, td a:hover, th a:hover {
    text-decoration: underline;
}

/* Estilos para los encabezados de columna ordenables */
.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-link:hover {
    text-decoration: underline;
}

.sort-link span {
    margin-left: 5px;
}

/* Estilos para la paginación */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
}

.pagination li, .pagination .page-item {
    margin: 0 5px;
}

.pagination a, .pagination .page-link {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.pagination li.active a, .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.pagination li.disabled a, .pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: default;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Estilos para botones y controles */
.form-select {
    cursor: pointer;
}

.btn-primary, .btn-success, .btn-continue {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover, .btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Estilos para elementos de formulario */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para el botón de exportación */
.export-button {
    margin-bottom: 15px;
}

/* Estilos para mensajes de error y alerta */
.alert-error {
    background-color: #f8d7da;
    color: #842029;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c2c7;
}

/* Estilos para el modal de venta */
#saleModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#saleModal > div {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

/* Estilos para elementos clicables */
.sale-number {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table th, 
    .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .pagination .page-link,
    .pagination a {
        padding: 0.375rem 0.75rem;
    }
}