/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

h1 {
    color: #333;
}

.user-info {
    text-align: right;
}

.user-info a {
    color: #0066cc;
    text-decoration: none;
    margin-left: 10px;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.9em;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.item-id-display {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table .actions {
    white-space: nowrap;
}

.table .actions .btn {
    margin-right: 5px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table .actions {
    white-space: nowrap;
}

.table .actions .btn {
    margin-right: 5px;
}

.tabledel-responsive {
    overflow-x: auto;
}

.tabledel {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tabledel th, .tabledel td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabledel th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.tabledel tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabledel .actions {
    white-space: nowrap;
}

.tabledel .actions .btn {
    margin-right: 5px;
}

.tabledel {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tabledel th, .tabledel td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabledel th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.tabledel tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabledel .actions {
    white-space: nowrap;
}

.tabledel .actions .btn {
    margin-right: 5px;
}



/* Barra de acciones */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    margin-right: -1px;
}

.search-form button {
    border-radius: 0 4px 4px 0;
}

.search-form .btn-secondary {
    margin-left: 5px;
}

.items-per-page {
    display: flex;
    align-items: center;
}

.items-per-page label {
    margin-right: 10px;
    font-weight: 600;
}

.items-per-page select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pagination-info {
    margin-bottom: 10px;
    color: #666;
    font-style: italic;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.pagination .page-ellipsis {
    margin: 0 5px;
}

.pagination a.btn {
    margin: 0 2px;
}

.page-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.goto-page-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.goto-page-form label {
    margin-right: 5px;
}

.goto-page-form input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    text-align: center;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Dashboard */
.dashboard-menu {
    text-align: center;
    padding: 40px 0;
}

.menu-options {
    margin-top: 30px;
}

.menu-options .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 1.1em;
}
.table th:nth-child(1), .table td:nth-child(1) { width: 5%; }   /* ID */
.table th:nth-child(2), .table td:nth-child(2) { width: 40%; }  /* Nombre */
.table th:nth-child(3), .table td:nth-child(3) { width: 15%; text-align: center; }  /* Vaperalia */
.table th:nth-child(4), .table td:nth-child(4) { width: 15%; text-align: center; }  /* Eciglogistica */
.table th:nth-child(5), .table td:nth-child(5) { width: 10%; text-align: center; }  /*oil4vap */
.table th:nth-child(6), .table td:nth-child(6) { width: 5%; text-align: center; }  /* Pack */
.table th:nth-child(7), .table td:nth-child(7) { width: 10%; text-align: center; }  /* Acciones */

.tabledel th:nth-child(1), .table td:nth-child(1) { width: 5%; text-align: center }   /* Fecha */
.tabledel th:nth-child(2), .table td:nth-child(2) { width: 15%; }  /* Nombre */
.tabledel th:nth-child(3), .table td:nth-child(3) { width: 20%; text-align: center; }  /* Vaperalia */
.tabledel th:nth-child(4), .table td:nth-child(4) { width: 10%; text-align: center; }  /* Eciglogistica */
.tabledel th:nth-child(5), .table td:nth-child(5) { width: 50%; text-align: center; }  /* Pack */



/* Footer */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #777;
}

/* Media queries */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 10px;
        text-align: left;
    }
    
    .actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        margin-top: 10px;
        width: 100%;
    }
    
    .items-per-page {
        margin-top: 10px;
    }
    
    .table .actions {
        display: flex;
        flex-direction: column;
    }
    
    .table .actions .btn {
        margin-bottom: 5px;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .page-info {
        flex-direction: column;
        margin-top: 15px;
    }
    
    .goto-page-form {
        margin-left: 0;
        margin-top: 10px;
    }
}
