/* Excel Uploader - Custom Styles */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

h2 {
    color: #007bff;
}

.container {
    margin-top: 50px;
}

.alert {
    margin-top: 20px;
}

.download-button {
    display: none;
}

.table {
    background-color: #ffffff;
}

button {
    margin-top: 15px;
}

/* Loading state for buttons */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form elements */
.form-control {
    margin-bottom: 15px;
}

/* Gestione layout dei campi per diverse risoluzioni */
.fields-row {
    display: flex;
    gap: 1rem;
}

.fields-row .field-col {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 1400px) {
    .fields-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fields-row .field-col {
        width: 100%;
    }
}

/* Table styles */
#dataTable {
    margin-top: 30px;
    border-collapse: collapse;
    width: 100%;
}

#dataTable th, #dataTable td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

#plannerTable tbody tr {
    height: 30px;
}

#plannerTable td, #plannerTable th {
    padding: 6px;
    vertical-align: middle;
}

/* Buttons for table actions */
.delete-row {
    text-align: center;
    font-size: 1rem;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px 10px;
}

.delete-row:hover {
    background-color: #c82333;
}

.table-actions {
    text-align: center;
    vertical-align: middle;
}

.table-row-small {
    height: 30px;
}

.table-row-small td {
    padding: 6px;
    vertical-align: middle;
}

/* Media query per dispositivi mobili */
@media (max-width: 576px) {
    .container {
        margin-top: 20px;
        padding: 10px;
    }

    h2 {
        font-size: 1.5em;
    }

    button {
        width: 100%;
    }
    /* Mantieni i pulsanti in linea nel toolbar della transport-request Milkrun */
    .transport-btn-inline .btn {
        width: auto;
        margin-top: 0;
    }
}

/* Allinea i pulsanti su una sola riga e rimuovi margine superiore nel toolbar specifico */
.transport-btn-inline .btn {
    margin-top: 0;
}
