.renova-os-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: sans-serif;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 14px;
}

.btn-primary { background: #0073aa; color: #fff; }
.btn-secondary { background: #555; color: #fff; }
.btn-outline { border: 1px solid #0073aa; color: #0073aa; background: transparent; }

.btn-primary:hover { background: #005177; }
.btn-secondary:hover { background: #333; }
.btn-outline:hover { background: #f0f0f0; }

.form-header {
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area h2 { margin: 0 0 5px 0; font-size: 24px; color: #d32f2f; }
.logo-area p { margin: 0; font-size: 16px; font-weight: bold; }

.header-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 600px;
}

.field-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 150px;
}

.field-group.row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1 1 100%;
}

.field-group label { font-weight: bold; font-size: 13px; margin-bottom: 5px; }
.field-group input[type="text"], .field-group input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-body h3 { border-bottom: 1px solid #eee; padding-bottom: 5px; }

.pecas-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pecas-col {
    flex: 1;
}

.pecas-header, .peca-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pecas-header { font-weight: bold; background: #fafafa; }

.p-name { flex: 2; font-size: 13px; }
.p-qtd { flex: 0.5; text-align: center; }
.p-check { flex: 0.5; text-align: center; }

.input-qtd { width: 40px; text-align: center; padding: 2px; }

.custom-pecas {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.add-peca-row {
    display: flex;
    gap: 10px;
}

.add-peca-row input { flex: 1; padding: 8px; }

.truck-diagram-container {
    text-align: center;
    margin: 20px 0;
}

.diagram-hint {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-large {
    font-size: 18px;
    padding: 12px 24px;
}

/* List table */
.renova-os-list-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.os-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.os-table th, .os-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.os-table th { background: #f5f5f5; }
.actions a { margin-right: 10px; font-size: 12px; }
.search-form { display: flex; gap: 10px; }
.search-form input { padding: 8px; width: 250px; }

@media (max-width: 768px) {
    .pecas-grid { flex-direction: column; }
}
