/* estilosFormato.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

header {
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.logo img {
    max-width: 80px;
    height: auto;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    font-size: 13px;
}

th, td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
}

th {
    background-color: #4a4a4a;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.export-button {
    text-align: center;
    margin-top: 20px;
}
.export-button button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.export-button button:hover {
    background-color: #45a049;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: 100%;
    margin-top: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #4a4a4a;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 13px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

.btn:hover {
    background-color: #333;
}

form {
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #333;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
}

.confirmation-dialog {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.confirmation-dialog .btn {
    margin: 0 10px;
}
.mensaje {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}
.exito {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

td[data-label="Remito"] {
    padding: 0; /* Elimina el padding de la celda */
}

.remito-form {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

.btn-remito-table {
    display: block;
    width: 100%;
    padding: 4px;
    background-color: #721c24;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-remito-table:hover {
    background-color: #5a171d;
}

@media screen and (max-width: 600px) {
    td[data-label="Remito"] {
        padding-left: 50%; /* Restaura el padding para vista móvil */
    }
    
    .btn-remito-table {
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.2rem;
    }

    .logo img {
        max-width: 60px;
    }

    main {
        padding: 10px;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.8rem;
    }

    .buttons-container {
        padding: 15px;
        max-width: 100%;
    }

    .btn {
        font-size: 0.8rem;
    }

    form {
        padding: 15px;
    }

    th, td {
        padding: 8px;
    }
}

@media screen and (max-width: 600px) {
    table {
        font-size: 11px;
    }
    
    th {
        font-size: 12px;
    }
    
    th, td {
        padding: 4px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1rem;
    }

    .logo img {
        max-width: 50px;
    }

    main {
        padding: 5px;
    }

    .buttons-container {
        padding: 10px;
    }

    .btn {
        font-size: 0.7rem;
    }

    form {
        padding: 10px;
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="number"],
    form select {
        font-size: 12px;
    }

    form input[type="submit"] {
        font-size: 13px;
    }
}