table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    width: 1%;
    text-align: left;
    padding: 8px;
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f7f9fc;
    color: #1a1a1a;
    padding: 30px;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
}

/* BUTTONS */
.btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.header {
    margin-bottom: 25px;
}

/* CARD */
.card {
    background: white;
    border-radius: 14px;
    padding: 17px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 12px 0;
}

td {
    padding: 12px 0;
    border-top: 1px solid #eee;
    font-size: 16px;
    color: inherit;
    text-transform: none;
}

/* FORM */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
    font-size: 16px;
}

input:focus {
    border-color: #4f46e5;
    outline: none;
}

/* STATUS BADGE */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
}

.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.badge-salvo {
    background: #d1fae5;
    color: #065f46;
}

.badge-erro {
    background: #fee2e2;
    color: #7f1d1d;
}

.full-width {
    grid-column: 1 / -1;
}

.sub-group {
    display: flex;
    flex-direction: column;
}

/* Motorista 2 colunas */
.motorista-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Placas 4 colunas */
.placas-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}