body { font-family: system-ui, -apple-system, Segoe UI, sans-serif; margin: 0; background: #f5f5f5; color: #1f2937; }
nav { display: flex; gap: 20px; align-items: center; padding: 14px 24px; background: #1f2937; }
nav a { color: white; text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }
main { padding: 24px; max-width: 1100px; margin: 0 auto; }
.acoes-principais { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.botao-grande { background: #2563eb; color: white; border: none; padding: 14px 22px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-block; }
.botao-grande:hover { background: #1d4ed8; }
.botao-secundario { background: white; color: #2563eb; border: 2px solid #2563eb; }
.botao-secundario:hover { background: #eff6ff; }
.form-manual { background: white; border-radius: 10px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.form-manual label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 500; }
.form-manual label.checkbox { flex-direction: row; align-items: center; font-weight: 400; }
.form-manual input, .form-manual select { padding: 8px 10px; border-radius: 6px; border: 1px solid #d1d5db; font-size: 0.95rem; }
.form-manual button { align-self: flex-start; }
h1 { margin-top: 0; }
.flash { background: #fef9c3; border: 1px solid #eab308; padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; }
.flash p { margin: 4px 0; }
.cards { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.card { background: white; border-radius: 10px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); min-width: 180px; }
.card span { display: block; color: #6b7280; font-size: 0.85rem; }
.card strong { font-size: 1.4rem; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 24px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; font-size: 0.92rem; }
th { background: #f3f4f6; }
tr.pago { opacity: 0.5; }
button { cursor: pointer; }
select, input[type=text] { padding: 6px 8px; border-radius: 6px; border: 1px solid #d1d5db; margin-bottom: 12px; }
.filtros-periodo { display: flex; gap: 8px; margin-bottom: 16px; }
.link-editar { color: #2563eb; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.link-editar:hover { text-decoration: underline; }
.link-excluir { background: none; border: none; color: #dc2626; font-size: 0.88rem; font-weight: 500; padding: 0; cursor: pointer; text-decoration: none; }
.link-excluir:hover { text-decoration: underline; }
tr.linha-filtros td { background: #f9fafb; padding: 6px 8px; }
tr.linha-filtros input, tr.linha-filtros select { margin-bottom: 0; font-size: 0.85rem; padding: 4px 6px; width: 100%; }
.filtros-periodo button { padding: 6px 14px; border-radius: 999px; background: white; border: 1px solid #d1d5db; color: #374151; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.filtros-periodo button:hover { background: #f3f4f6; }
.filtros-periodo button.ativo { background: #2563eb; color: white; border-color: #2563eb; }
.filtros-periodo a { padding: 6px 14px; border-radius: 999px; background: white; border: 1px solid #d1d5db; color: #374151; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.filtros-periodo a:hover { background: #f3f4f6; }
.filtros-periodo a.ativo { background: #2563eb; color: white; border-color: #2563eb; }
.grupo-categoria { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 12px; margin-bottom: 20px; padding: 4px 18px 16px; }
.grupo-categoria > summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; padding: 16px 0; color: #3730a3; }
.grupo-categoria summary .contagem { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.grupo-fornecedor { background: white; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 12px; padding: 4px 16px 12px; }
.grupo-fornecedor summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 14px 0; }
.grupo-fornecedor summary .contagem { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.grupo-fornecedor table { box-shadow: none; margin-bottom: 0; }
.variacao { font-weight: 600; font-size: 0.88rem; color: #6b7280; }
.variacao-alta { color: #dc2626; }
.variacao-baixa { color: #16a34a; }
.filtro-detalhado { display: flex; gap: 10px; margin-bottom: 16px; }
.filtro-detalhado input { margin-bottom: 0; }
.form-mover { display: flex; gap: 6px; align-items: center; }
.form-mover select { margin-bottom: 0; }
.form-mover button { padding: 5px 10px; font-size: 0.82rem; background: #374151; color: white; border: none; border-radius: 6px; }
.form-mover button:hover { background: #1f2937; }
.periodo-personalizado { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.periodo-personalizado label { display: flex; gap: 6px; align-items: center; font-size: 0.88rem; font-weight: 500; }
.periodo-personalizado input[type=date] { padding: 6px 8px; border-radius: 6px; border: 1px solid #d1d5db; margin-bottom: 0; }
.botao-aplicar { background: #374151; color: white; border: none; padding: 7px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; }
.botao-aplicar:hover { background: #1f2937; }
.bloco-itens { border-top: 1px solid #e5e7eb; padding-top: 14px; }
.bloco-itens h3 { margin: 0 0 4px; font-size: 0.95rem; }
.bloco-itens .ajuda { margin: 0 0 10px; font-size: 0.82rem; color: #6b7280; }
.bloco-itens table { box-shadow: none; margin-bottom: 10px; }
.bloco-itens th, .bloco-itens td { padding: 4px 6px; }
.bloco-itens input { margin-bottom: 0; width: 100%; box-sizing: border-box; }
.bloco-itens td:last-child, .bloco-itens th:last-child { width: 24px; }
.bloco-itens td button { background: none; border: none; color: #dc2626; font-size: 1rem; padding: 0 4px; }
.aviso { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; max-width: 640px; }
.aviso-ok { background: #dcfce7; border: 1px solid #16a34a; color: #166534; }
.aviso-atencao { background: #fef3c7; border: 1px solid #d97706; color: #92400e; }
.form-logout { margin-left: auto; }
.link-sair { background: none; border: 1px solid #4b5563; color: white; padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; }
.link-sair:hover { background: #374151; }
.tela-login { display: flex; align-items: center; justify-content: center; min-height: 90vh; }
.form-login { max-width: 320px; width: 100%; }
.form-login h1 { text-align: center; margin-bottom: 4px; }
