
* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { margin: 0; background: #f1f5f9; color: #1e293b; }
.hidden { display: none !important; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); width: 100%; max-width: 380px; }
.login-card h1 { margin: 0 0 24px; text-align: center; color: #1d4ed8; font-size: 26px; }
.erro-msg { color: #dc2626; text-align: center; font-size: 14px; margin-top: 12px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; margin-bottom: 12px; }
button { cursor: pointer; border: none; border-radius: 8px; font-weight: 600; font-size: 15px; padding: 12px 16px; }
.btn-blue { background: #2563eb; color: #fff; }
.btn-green { background: #16a34a; color: #fff; }
.btn-red { background: #dc2626; color: #fff; }
.btn-gray { background: #e2e8f0; color: #334155; }
.btn-sair { background: #1e3a8a; color: #fff; padding: 6px 12px; font-size: 13px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-finalizar { width: 100%; font-size: 17px; padding: 15px; }
.w-full { width: 100%; }
nav { background: #1d4ed8; color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.tabs { background: #fff; display: flex; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.tab-btn { flex: 1; background: none; border-radius: 0; padding: 14px; color: #64748b; border-bottom: 3px solid transparent; }
.tab-btn.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.container { max-width: 850px; margin: 0 auto; padding: 16px; }
.card { background: #fff; padding: 18px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.dropdown-list { border: 1px solid #cbd5e1; border-radius: 8px; max-height: 200px; overflow-y: auto; background: #fff; margin-top: -8px; margin-bottom: 12px; }
.dropdown-item { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.badge-cliente { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 10px; border-radius: 8px; font-weight: 600; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; gap: 10px; }
.cart-item input { width: 75px; padding: 6px; margin: 0; text-align: center; }
.btn-remove { background: none; color: #dc2626; padding: 2px; font-size: 12px; }
.total-box { text-align: right; font-size: 20px; font-weight: 700; color: #1d4ed8; margin-top: 12px; }
.badge { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge-ped { background: #dcfce7; color: #166534; }
.badge-orc { background: #fef9c3; color: #854d0e; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: #fff; padding: 24px; border-radius: 12px; width: 100%; max-width: 440px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
th, td { border: 1px solid #334155; padding: 6px; }
th { background: #f8fafc; text-align: left; }
.recibo-box { border: 1px solid #334155; padding: 12px; font-size: 13px; color: #000; }
.recibo-header, .recibo-totais, .promissoria-topo { display: flex; justify-content: space-between; }
.recibo-header, .recibo-cli { border-bottom: 1px solid #334155; padding-bottom: 8px; margin-bottom: 8px; }
.recibo-totais { border-top: 1px solid #334155; padding-top: 8px; margin-top: 8px; font-weight: 700; }
.assinatura-linha { margin-top: 28px; text-align: center; }
.assinatura-linha span { border-top: 1px solid #000; padding: 4px 40px 0; font-size: 12px; }
.promissoria-corte { border-top: 2px dashed #64748b; margin: 18px 0; text-align: center; font-size: 11px; color: #64748b; }
.promissoria-box { border: 2px solid #000; padding: 12px; background: #fff; font-size: 12px; color: #000; line-height: 1.5; }
.promissoria-topo { border-bottom: 1px solid #000; padding-bottom: 6px; margin-bottom: 8px; font-weight: 700; }
.promissoria-valor-extenso { background: #f1f5f9; border: 1px solid #94a3b8; padding: 6px 8px; font-weight: 700; margin: 6px 0; }
.promissoria-rodape { border-top: 1px solid #000; padding-top: 6px; margin-top: 8px; font-size: 11px; }
@media print { .no-print { display: none !important; } body.modo-pos80 .container { padding: 0; margin: 0; max-width: 76mm; } }
body.modo-pos80 #area-impressao { width: 76mm; max-width: 76mm; padding: 4mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 11px; }
body.modo-pos80 .recibo-header, body.modo-pos80 .recibo-totais, body.modo-pos80 .promissoria-topo { flex-direction: column; gap: 4px; }
