* {
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    background-color: #ffffff;
    height: 100%;
}

header {
    width: 100%;
    height: 15vh;
    background: black;
    display: flex;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

h1 {
    color: white;
    font-size: 80px;
    margin: 0;
}

h2 {
    font-size: 30px;
    padding-left: 20px;
}

main {
    padding: 30px;
    margin-top: calc(15vh + 17px);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* .btn-motorista {
    align-items: center;
    display: flex;
    width: calc(50% - 30px);
    padding: 90px 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    background-color: black;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 60px;
    height: 246px;
} */

.btn-motorista {
    /* 1. Layout Base */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(50% - 30px);
    height: 246px;
    
    /* 2. Reset de Espaçamento */
    margin: 0;
    padding: 0 !important; /* Força zero para garantir que o flex faça o trabalho */
    box-sizing: border-box;
    
    /* 3. Tipografia (Ajustada) */
    font-size: 50px; /* Reduzi um pouco para garantir que não bata no teto */
    font-weight: bold;
    text-align: center;
    line-height: 1; /* Altura de linha mínima para o texto não ocupar espaço extra */
    color: white !important;
    text-decoration: none;
    
    /* 4. Estética */
    background-color: black;
    border-radius: 35px;
    border: none;
    
    /* 5. Bloqueio de Rolagem (A "Solução Final") */
    overflow: hidden !important; 
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    
    /* 6. Mobile/Webkit fixes */
    -webkit-appearance: none;
    touch-action: none; /* Impede gestos de rolagem dentro do botão */
}

.btn-motorista .placa {
    font-size: 0.8em; 
    opacity: 0.9;
}

/* Estilo Geral da Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden; /* Garante que o border-radius funcione */
    font-size: 20px;
    table-layout: fixed;
}

/* Cabeçalho */
th {
    background-color: black;
    color: white;
    text-align: left;
    padding: 15px;
    text-transform: uppercase;
    font-size: 25px;
    letter-spacing: 0.5px;
}

/* Linhas e Células */
td {
    padding: 25px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:hover {
    background-color: #f9f9f9; /* Efeito de destaque ao passar o mouse */
}

/* Estilização dos Status */
.entregue {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: bold;
}

.pendente {
    background-color: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: bold;
}

.reentrega {
    background-color: #ffcdcd;
    color: #fc2525;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: bold;
}

/* Estilo do Botão de Ação */
td a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px;
    transition: background 0.3s;
}

/* td a:hover {
    background-color: #2980b9;
} */

.btn-confirmar {
    background-color: green;
}

.btn-reentrega {
    background-color: red;
}

.btn-desfazer {
    background-color: #e74c3c !important;
    color: white;
}