body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f9;
    color: #333;
}
.container {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1, h2 {
    color: #0056b3;
}

/* Estilos da Tabela de Listagem */
.sales-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.sales-table th, .sales-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.sales-table th {
    background-color: #007bff;
    color: white;
}
.sales-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
.sales-table tbody tr:hover {
    background-color: #f1f1f1;
}
.sales-table td:last-child {
    text-align: right;
    font-weight: bold;
}
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

/* Estilos do Detalhe do Pedido */
.pedido-header, .pedido-cliente, .pedido-produtos, .pedido-totais {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.pedido-info span {
    display: block;
    margin-bottom: 5px;
}
.pedido-info strong {
    color: #555;
}
.pedido-totais {
    text-align: right;
}
.pedido-totais h3 {
    margin: 5px 0;
}
.total-final {
    font-size: 1.5em;
    color: #007bff;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* Estilos dos Filtros */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
}
.filter-item {
    display: flex;
    flex-direction: column;
}
.filter-item label {
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}
.filter-item input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.filter-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
#btn-filtrar {
    background-color: #007bff;
    color: white;
}
#btn-limpar {
    background-color: #6c757d;
    color: white;
}

/* Estilos das ações da página de detalhe */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#btn-imprimir-pdf {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    background-color: #28a745;
    color: white;
}