html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.card { border-radius: 8px; background: #fff; box-shadow: 0 12px 35px rgba(15, 23, 42, .07); }
.field { width: 100%; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: .75rem 1rem; outline: none; }
.field:focus { border-color: #0f172a; box-shadow: 0 0 0 4px rgba(15, 23, 42, .08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 8px; padding: .75rem 1rem; font-weight: 700; }
.btn-primary { background: #0f172a; color: #fff; }
.btn-soft { background: #f1f5f9; color: #0f172a; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.status { border-radius: 999px; padding: .25rem .65rem; font-size: .75rem; font-weight: 700; }
.status-ativo, .status-aprovado, .status-concluida, .status-entregue { background: #dcfce7; color: #166534; }
.status-pendente, .status-rascunho { background: #fef3c7; color: #92400e; }
.status-roteirizada, .status-em_andamento, .status-em_rota { background: #dbeafe; color: #1e40af; }
.status-inativo, .status-cancelada, .status-cancelado, .status-nao_entregue { background: #fee2e2; color: #991b1b; }
@media print {
    aside, header, .no-print { display: none !important; }
    body { background: #fff !important; }
    main { padding: 0 !important; }
}

#route-map { min-height: 420px; }
.leaflet-container { font-family: inherit; }
.route-marker { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #0f172a; color: #fff; border: 2px solid #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .25); font-size: 12px; font-weight: 800; }
.route-marker-origin { background: #059669; }

.waze-qr { display: inline-grid; place-items: center; width: 96px; height: 96px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.waze-qr svg { width: 84px; height: 84px; display: block; }
@media print {
    .print-route { padding: 0 !important; }
    .print-route-table th, .print-route-table td { break-inside: avoid; page-break-inside: avoid; }
    .waze-qr { width: 86px; height: 86px; padding: 4px; }
    .waze-qr svg { width: 78px; height: 78px; }
}