/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    max-width: 1600px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Tabelas (usado em simpli-search.html e index.html) */
.table-container {
    width: 100%;
    overflow: hidden; /* Remove qualquer overflow */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto; /* Permite que as colunas se ajustem ao conteúdo */
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 12px;
    overflow-wrap: break-word; /* Quebra o texto longo */
    max-width: 200px; /* Limita a largura máxima das colunas */
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.obs {
    max-width: 200px;
    word-wrap: break-word;
}

.checkbox-column {
    width: 30px;
    min-width: 30px;
}

.status-column {
    width: 120px;
    min-width: 120px;
}

/* Estilo para a linha de cabeçalho do veículo */
.vehicle-header {
    background-color: #f9f9f9;
    font-weight: bold;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
}

.vehicle-header td {
    padding: 10px;
    text-align: left;
}

.vehicle-header input[type="checkbox"] {
    margin-right: 10px;
}

/* Estilo para pedidos com endereços duplicados */
.duplicate-address td {
    color: red; /* Pinta o texto de vermelho */
}

/* Indicadores e mensagens */
.loading-status {
    font-weight: bold;
    margin-top: 10px;
}

#loadingIndicator {
    color: blue;
    margin-top: 10px;
}

#errorMessage {
    color: red;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.progress {
    margin-top: 10px;
}

/* Indicadores e mensagens */
.success {
    background-color: #e6ffe6;
}

.error {
    background-color: #ffe6e6;
}

.status-column.success {
    background-color: #e6ffe6;
}

.status-column.error {
    background-color: #ffe6e6;
}

/* Botões e ações */
.actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #45a049;
}

.success {
    background-color: #e6ffe6;
}

.error {
    background-color: #ffe6e6;
}

/* Estilos específicos do login */
.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ajuste para o layout do login */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
    padding: 0;
}