* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f6f9; color: #333; }

.container { display: flex; min-height: 100vh; }

/* Menu Lateral */
.sidebar { width: 250px; background: #2c2529; color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0; height: 100vh; overflow-y: auto; }

.sidebar h2 { color: #e5b869; margin-bottom: 30px; text-align: center; font-size: 22px; }
.menu-btn { width: 100%; background: none; border: none; color: #ddd; padding: 15px; text-align: left; font-size: 16px; cursor: pointer; border-radius: 8px; margin-bottom: 8px; transition: 0.2s; }
.menu-btn:hover, .menu-btn.active { background: #e5b869; color: #2c2529; font-weight: bold; }

/* Conteúdo Principal */
.content { flex: 1; padding: 30px; overflow-y: auto; }
.aba { display: none; }
.aba.ativa { display: block; }
h1 { margin-bottom: 20px; color: #2c2529; }

/* Cards e Formulários */
.card { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.form-card { max-width: 600px; }
label { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; color: #555; }
input, select { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; }
.row { display: flex; gap: 15px; }
.row > div { flex: 1; }

/* Botões */
button { cursor: pointer; border: none; border-radius: 6px; font-weight: bold; transition: 0.2s; }
.btn-primary { background: #2c2529; color: #e5b869; padding: 12px 20px; width: 100%; margin-top: 15px; font-size: 15px; }
.btn-primary:hover { background: #42383d; }
.btn-success { background: #28a745; color: #fff; padding: 15px; width: 100%; font-size: 16px; margin-top: 15px; }
.btn-success:hover { background: #218838; }
.btn-sec { background: #444; color: #fff; padding: 10px; width: 100%; }
.btn-del { background: #dc3545; color: white; padding: 5px 10px; font-size: 12px; }

/* Vendas e Extrato */
.grid-vendas, .grid-clientes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extrato { background: #fffdf5; border: 2px dashed #e5b869; display: flex; flex-direction: column; justify-content: space-between; }
.itens-extrato { min-height: 200px; max-height: 300px; overflow-y: auto; margin: 15px 0; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.item-linha { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted #eee; font-size: 15px; }
.totais-extrato h2 { color: #28a745; margin-top: 5px; }
.destaque-parcela { color: #d9534f; font-weight: bold; margin-top: 5px; }

/* Tabela de Estoque */
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.resumo-financeiro span { background: #fff; padding: 10px 15px; border-radius: 8px; margin-left: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dica { margin-bottom: 15px; color: #666; font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #2c2529; color: #e5b869; }
.foto-thumb { width: 45px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.input-tabela { width: 70px; padding: 5px; }

/* Clientes */
.cliente-box { border: 1px solid #eee; padding: 12px; border-radius: 8px; margin-bottom: 10px; background: #fafafa; }
.historico-lista { margin-top: 8px; padding-left: 15px; font-size: 13px; color: #555; }
/* Ajuste da caixa de quantidade na tela de vendas */
#aba-vendas .row { align-items: flex-end; }
#aba-vendas .row > div { flex: 0 0 110px; }
#aba-vendas .row button { flex: 1; margin-top: 0 !important; height: 42px; }


