:root { --bottom-nav-h: 64px; }
body { font-size: 16px; background: #f4f6f8; }
.sidebar { width: 230px; min-height: 100vh; background: #1f2937; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.sidebar a, .offcanvas .menu a { color: #d1d5db; text-decoration: none; display: block; padding: .55rem 1rem; border-radius: .4rem; }
.sidebar a:hover, .sidebar a.ativo { background: #374151; color: #fff; }
.offcanvas .menu a { color: #1f2937; font-size: 1.1rem; }
.offcanvas .menu a.ativo { background: #e5e7eb; }
.menu-titulo { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: .8rem 1rem .2rem; }
.marca { color: #fff; font-weight: 700; padding: 1rem; font-size: 1.15rem; }
main { min-width: 0; }
@media (max-width: 767.98px) { main { padding-bottom: calc(var(--bottom-nav-h) + 1.5rem) !important; } }
.bottom-nav { height: var(--bottom-nav-h); background: #fff; border-top: 1px solid #dee2e6; z-index: 1030; }
.bottom-nav a, .bottom-nav button { flex: 1; text-align: center; color: #374151; text-decoration: none; font-size: .8rem; padding-top: .45rem; border: 0; background: none; }
.bottom-nav .icone { display: block; font-size: 1.35rem; line-height: 1.2; }
.bottom-nav .nova { color: #fff; background: #198754; border-radius: .6rem; margin: .4rem; padding-top: .3rem; }
.btn, .form-control, .form-select { min-height: 48px; }
.btn-sm { min-height: 36px; }
.form-control-color { min-height: 48px; width: 5rem; }
.btn-xl { font-size: 1.25rem; padding: 1rem 1.25rem; border-radius: .8rem; }
.card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.servico-opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.servico-opcoes label.btn { min-width: 46%; flex: 1 1 46%; font-weight: 600; color: #fff; opacity: .5; border: 3px solid transparent; }
.servico-opcoes .btn-check:checked + label.btn { opacity: 1; border-color: #111; box-shadow: 0 0 0 2px #fff inset; }
.opcoes-radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.opcoes-radio label.btn { flex: 1 1 auto; }
.cliente-btn { text-align: left; }
.numero-destaque { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.peso { font-size: 1.4rem; font-weight: 600; }
.st-RECEBIDO { background: #6c757d !important; }
.st-EM_PROCESSO { background: #0d6efd !important; }
.st-EM_RETRABALHO { background: #dc3545 !important; }
.st-PRONTO { background: #198754 !important; }
.st-ENTREGUE { background: #212529 !important; }
.fs-RASCUNHO { background: #6c757d !important; }
.fs-FECHADO { background: #0d6efd !important; }
.fs-FATURADO { background: #fd7e14 !important; }
.fs-PAGO { background: #198754 !important; }
.lote-card.parado { border-left: 5px solid #dc3545; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 1rem; overflow-x: auto; }
@media (max-width: 991.98px) { .kanban { grid-template-columns: 1fr; } }
.kpi .valor { font-size: 1.6rem; font-weight: 700; }
.kpi .rotulo { font-size: .8rem; color: #6b7280; text-transform: uppercase; }
#aviso-conexao { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 2000; }
#aviso-conexao.mostrar { display: block; }
.item-nota { border-left: 4px solid #0d6efd; }
.timeline { padding-left: .5rem; }
.timeline li { border-left: 2px solid #dee2e6; padding: 0 0 .8rem 1rem; position: relative; list-style: none; }
.timeline li::before { content: ""; width: 10px; height: 10px; background: #0d6efd; border-radius: 50%; position: absolute; left: -6px; top: .4rem; }
.table td, .table th { vertical-align: middle; }
.grafico { position: relative; height: 280px; }
.linha-filtro { cursor: pointer; }
.linha-filtro.apagada td { opacity: .45; }
.chip-filtro { font-size: .85rem; padding: .45em .8em; }
.chip-filtro:hover { background: #0a58ca !important; }
.filtros-dashboard .form-control, .filtros-dashboard .form-select { min-height: 40px; }
.multisel-menu { min-width: 260px; max-width: 340px; }
.multisel-lista { max-height: 260px; overflow-y: auto; }
.multisel-lista .dropdown-item { white-space: normal; cursor: pointer; padding: .35rem .5rem; }
#painel { transition: opacity .15s; overflow-anchor: none; }
#painel.carregando { opacity: .55; pointer-events: none; }
.paginador .btn { min-height: 30px; min-width: 34px; }
.cor-amostra { display: inline-block; width: 1rem; height: 1rem; border-radius: .2rem; vertical-align: middle; }
